/* Красотка, студия красоты — Красноярск, Ольховая, 4
   Композиция: журнальный разворот — текстовая колонка и фотография,
   уходящая в край экрана; дальше нумерованные разделы с крупной
   типографикой, плитки услуг 3×3 и строчная спецификация.
   Палитра: слива (базовый) + охра (акцент) по тёплому кремовому фону. */

:root {
  /* Цвет */
  --plum:      #7a2f56;
  --plum-deep: #5b1f3f;
  --plum-soft: #f4e5ed;
  --ochre:     #b9762a;
  --ochre-soft:#f8ecdc;

  --bg:      #faf6f1;
  --bg-2:    #f3ece3;
  --surface: #ffffff;
  --ink:     #241a26;
  --ink-2:   #6d5c70;
  --line:    #e4d8cd;
  --line-2:  #efe6dc;
  --dark:    #241528;
  --on-dark: #f8efe9;
  --on-btn:  #fff8f4;

  /* Форма: небольшие радиусы и видимые линии — не «мягкий бенто» */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --pill: 999px;

  --s1: 6px;  --s2: 10px; --s3: 16px; --s4: 24px;
  --s5: 34px; --s6: 48px; --s7: 68px; --s8: 96px;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .68, .3, 1);
  --t: 190ms var(--ease);

  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --plum:      #e79bc2;
  --plum-deep: #f2b9d5;
  --plum-soft: #35203a;
  --ochre:     #e0a55f;
  --ochre-soft:#33261c;

  --bg:      #17111a;
  --bg-2:    #1e1622;
  --surface: #221a27;
  --ink:     #f4ecf2;
  --ink-2:   #b7a6ba;
  --line:    #382c3d;
  --line-2:  #2c2231;
  --dark:    #100b13;
  --on-dark: #f4ecf2;
  --on-btn:  #1c1020;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--plum); color: #fff; }
html[data-theme="dark"] ::selection { color: #1a1020; }

img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.05; font-weight: 750; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

.nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 4px; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Надзаголовки, заголовки ---------- */
.over {
  margin: 0 0 var(--s3);
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.over .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--plum); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: var(--r-sm);
}
.over--light { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.num--light { color: var(--on-dark); border-color: color-mix(in srgb, var(--on-dark) 34%, transparent); }
.rule { width: 34px; height: 2px; background: var(--ochre); display: inline-block; }

.head { max-width: 78ch; }
.h2 { font-size: clamp(29px, 3.9vw, 48px); }
.h2--light { color: var(--on-dark); }
.sub { margin-top: var(--s4); max-width: 64ch; color: var(--ink-2); font-size: clamp(15.5px, 1.3vw, 17.5px); }
.sub--light { color: color-mix(in srgb, var(--on-dark) 80%, transparent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px;
  border-radius: var(--r-md);
  background: var(--plum); color: var(--on-btn);
  font-weight: 640; font-size: 16px; text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.btn:hover { background: var(--plum-deep); transform: translateY(-2px); }
.btn--big { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.btn--sm { min-height: 42px; padding: 8px 14px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--plum); }
.btn--white { background: var(--surface); color: var(--ink); }
.btn--white:hover { background: var(--surface); border-color: var(--ochre); }

.icobtn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t);
}
.icobtn:hover { border-color: var(--plum); }
.ic--moon { display: none; }
html[data-theme="dark"] .ic--sun { display: none; }
html[data-theme="dark"] .ic--moon { display: block; }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 620; text-decoration: none;
  color: var(--plum);
  border-bottom: 2px solid color-mix(in srgb, var(--plum) 40%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--t);
}
.link:hover { border-color: var(--plum); }
.link .ic { width: 16px; height: 16px; }
.link--light { color: var(--on-dark); border-color: color-mix(in srgb, var(--ochre) 80%, transparent); }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { border-radius: 9px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 17px; letter-spacing: -0.01em; }
.brand__txt i {
  font-style: normal; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 3px;
}
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 560; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.nav a:hover { color: var(--ink); border-color: var(--ochre); }
.nav__n { font-family: var(--mono); font-size: 11px; color: var(--ochre); margin-right: 4px; }
.hdr__act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hdr__act { margin-left: 0; }
.burger { display: none; }

/* ---------- Первый экран: разворот с фотографией в край ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 43%);
  align-items: stretch;
  position: relative;
}
.hero__txt {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: clamp(36px, 5vw, 76px) var(--s5) clamp(44px, 6vw, 88px)
           max(var(--gut), calc((100vw - var(--wrap)) / 2));
}
.hero__col { max-width: 660px; }
.hero h1 { display: grid; gap: 2px; margin-bottom: var(--s4); }
.h1__l { font-size: clamp(29px, 4.9vw, 60px); letter-spacing: -0.03em; }
.h1__l--sm { font-size: clamp(24px, 3.6vw, 44px); color: var(--ink-2); font-weight: 700; }
/* крупный жест: слово выходит на границу текста и фотографии */
.h1__mega {
  font-size: clamp(44px, 8.2vw, 102px);
  line-height: 1.02; letter-spacing: -0.045em;
  color: var(--plum);
  white-space: nowrap;
  align-self: start;
  background: var(--bg);
  padding-right: .12em;
  margin: 2px 0 4px -0.03em;
}
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 48ch; }

.state {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  align-items: center; margin-top: var(--s5);
}
.state .dot { grid-row: 1; }
.state b { font-size: 16px; font-variant-numeric: tabular-nums; }
.state__sub { grid-column: 2; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.state--hero { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); max-width: 460px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2f9e6b; flex: none; }
.dot--off { background: var(--ochre); }

.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.hero__btns .btn > span + span { margin-left: 2px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s6); border-top: 1px solid var(--line);
}
.hero__meta > div { padding: var(--s3) var(--s3) 0 0; border-right: 1px solid var(--line); }
.hero__meta > div:last-child { border-right: 0; }
.hero__meta > div + div { padding-left: var(--s3); }
.hero__meta dt {
  font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px;
}
.hero__meta dd { font-weight: 650; font-size: 16px; }
.hero__meta a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero__meta a:hover { color: var(--plum); border-color: var(--plum); }

.hero__ph {
  position: relative; margin: 0; overflow: hidden;
  min-height: clamp(430px, 74vh, 820px);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
}
.hero__ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
}
.hero__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 20px 14px;
  font-size: 12.5px; color: #fff;
  background: linear-gradient(to top, rgba(20,10,22,.72), rgba(20,10,22,0));
}

/* ---------- Секции ---------- */
.sec { position: relative; padding: clamp(52px, 7vw, 100px) 0; }
.sec--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec--dark { background: var(--dark); color: var(--on-dark); }

/* ---------- Услуги: плитки 3×3 ---------- */
.cards {
  margin-top: var(--s6);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2vw, 26px);
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--plum); transform: translateY(-3px); }
.card__ic {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--plum-soft); color: var(--plum);
}
.card__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: clamp(17.5px, 1.6vw, 21px); letter-spacing: -0.015em; }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.card__tag {
  margin-top: auto; align-self: flex-start;
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre); background: var(--ochre-soft);
  padding: 6px 9px; border-radius: var(--r-sm);
}
.card--cta { background: var(--plum); color: var(--on-btn); border-color: var(--plum); justify-content: space-between; gap: var(--s4); }
.card--cta:hover { transform: none; border-color: var(--plum); }
.card--cta .state { margin-top: 0; }
.card--cta .state__sub { color: color-mix(in srgb, var(--on-btn) 82%, transparent); }
.card--cta .btn { background: var(--surface); color: var(--ink); }
.card--cta .btn:hover { background: var(--surface); transform: none; border-color: var(--ochre); }

/* ---------- Счётчики и спецификация ---------- */
.nums {
  margin-top: var(--s6);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.nums li {
  background: var(--bg-2);
  padding: clamp(18px, 2vw, 26px);
  display: flex; flex-direction: column; gap: 8px;
}
.nums b {
  font-size: clamp(40px, 4.6vw, 60px); font-weight: 780;
  line-height: .95; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--plum);
}
.nums span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

.spec { margin-top: var(--s6); border-top: 1px solid var(--line); }
.spec__row {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: var(--s4); align-items: start;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.spec__k {
  font: 600 11px/1.5 var(--sans); letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-2);
}
.spec__v { font-size: 16px; color: var(--ink-2); }
.spec__v b { color: var(--ink); font-weight: 700; }
.spec__v--tel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.spec__v--tel a {
  font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line);
}
.spec__v--tel a:hover { color: var(--plum); border-color: var(--plum); }
.spec__v--tel i { font-style: normal; font-size: 14px; flex-basis: 100%; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 560px; }
.week li {
  text-align: center; padding: 8px 2px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 12px; color: var(--ink);
}
.week li span { display: block; color: var(--ink-2); font-size: 11px; letter-spacing: .04em; }
.week li b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.week li.is-today { border-color: var(--plum); background: var(--plum-soft); color: var(--plum); }
.week li.is-today span { color: inherit; }

/* ---------- Фотографии ---------- */
.gal {
  margin-top: var(--s6);
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--s4); align-items: stretch;
}
.gal__big { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: #1b1220; }
.gal__big img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; cursor: zoom-in; transition: transform 500ms var(--ease); }
.gal__big img:hover { transform: scale(1.03); }
.gal__big figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 16px; font-size: 13.5px; color: #fff;
  background: linear-gradient(to top, rgba(15,8,18,.8), rgba(15,8,18,0));
}
.gal__side { display: grid; gap: var(--s4); align-content: stretch; }
.gal__note {
  border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: var(--s3); justify-content: center;
}
.gal__note p { font-size: 15px; color: color-mix(in srgb, var(--on-dark) 78%, transparent); }
.gal__note b { color: var(--on-dark); }
.gal__num {
  font-size: clamp(42px, 4.6vw, 60px); font-weight: 780; line-height: .9;
  letter-spacing: -0.04em; color: var(--ochre); font-variant-numeric: tabular-nums;
}
.gal__note--soft { background: color-mix(in srgb, var(--on-dark) 8%, transparent); }
.gal__note .btn { align-self: flex-start; }

/* ---------- Контакты, карта, как доехать ---------- */
.cts {
  margin-top: var(--s6);
  display: grid; gap: var(--s4);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}
.cts__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: var(--s4);
}
.cts__dl { display: grid; }
.cts__dl > div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s3);
  padding: 13px 0; border-top: 1px solid var(--line-2); align-items: start;
}
.cts__dl > div:first-child { border-top: 0; padding-top: 0; }
.cts__dl dt {
  font: 600 10px/1.5 var(--sans); letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-2);
}
.cts__dl dd { font-size: 15.5px; overflow-wrap: anywhere; }
.cts__dl dd b { font-weight: 680; }
.cts__dl a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cts__dl a:hover { color: var(--plum); border-color: var(--plum); }
.cts__card .btn { margin-top: auto; }

.map {
  position: relative; overflow: hidden;
  min-height: 460px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-2);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.map.is-drag { cursor: grabbing; }
.map__layer { position: absolute; inset: 0; }
.map__layer img {
  position: absolute; width: 256px; height: 256px; max-width: none;
  -webkit-user-drag: none; user-select: none;
}
html[data-theme="dark"] .map__layer { filter: invert(.92) hue-rotate(180deg) saturate(.72); }
.map__fallback {
  position: absolute; inset: auto 16px 16px 16px;
  font-size: 14px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px;
}
.map__fallback[hidden] { display: none; }
.map__pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  width: 34px; pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(30,10,25,.45));
}
.map__pin svg { width: 100%; display: block; fill: var(--plum); stroke: #fff; stroke-width: 2; }
.map__pin circle { fill: #fff; stroke: none; }
.map__hint {
  position: absolute; left: 12px; top: 12px; max-width: 62%;
  font-size: 12.5px; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  padding: 7px 10px; border-radius: var(--r-sm);
  transition: opacity var(--t);
}
.map__hint.is-hidden { opacity: 0; pointer-events: none; }
.map__ui { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; }
.map__btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font: 700 20px/1 var(--sans); cursor: pointer;
  transition: border-color var(--t);
}
.map__btn:hover { border-color: var(--plum); }
.map__btn--home .ic { width: 18px; height: 18px; }
.map__att {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 10.5px; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 2px 6px; border-radius: 5px;
}

.road {
  margin-top: var(--s4);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s5); align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 32px);
}
.road__no {
  display: grid; justify-items: center; gap: 2px;
  padding: var(--s3) var(--s5);
  background: var(--plum-soft); border-radius: var(--r-md);
}
.road__lab { font: 600 10px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.road__no b {
  font-size: clamp(52px, 6vw, 78px); font-weight: 800; line-height: 1;
  letter-spacing: -0.05em; color: var(--plum);
}
.road__st { font-size: 13px; color: var(--ink-2); }
.road__txt h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: var(--s2); }
.road__txt p { font-size: 15.5px; color: var(--ink-2); }
.road__txt p + p { margin-top: var(--s2); font-size: 14.5px; }
.road__act { display: grid; gap: var(--s3); justify-items: start; }

/* ---------- Призыв ---------- */
.cta { background: var(--ochre-soft); border-top: 1px solid var(--line); padding: clamp(40px, 5.6vw, 72px) 0; }
.cta__in { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.cta .h2 { font-size: clamp(25px, 3.2vw, 40px); }
.cta__act { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Подвал ---------- */
.ft { background: var(--dark); color: var(--on-dark); padding: clamp(40px, 5.6vw, 68px) 0 calc(var(--s6) + 40px); }
.ft__in { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.ft .brand__txt i { color: color-mix(in srgb, var(--on-dark) 60%, transparent); }
.ft__adr { margin-top: var(--s3); font-size: 14px; color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.ft h3 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--on-dark) 62%, transparent); margin-bottom: var(--s3); font-weight: 600; }
.ft ul { display: grid; gap: 9px; }
.ft a { text-decoration: none; font-size: 14.5px; border-bottom: 1px solid transparent; }
.ft a:hover { border-color: var(--ochre); }
.ft__sm { font-size: 13px; color: color-mix(in srgb, var(--on-dark) 68%, transparent); }

/* ---------- Кнопка звонка на телефоне ---------- */
.callbar { display: none; }

/* ---------- Лайтбокс ---------- */
.lb {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 10, 20, .94);
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: grid; gap: 12px; }
.lb__fig img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--r-md); }
.lb__fig figcaption { color: #efe4ec; font-size: 14px; text-align: center; }
.lb__x, .lb__nav {
  position: absolute; width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--pill); cursor: pointer;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1); color: #fff;
  transition: background var(--t);
}
.lb__x:hover, .lb__nav:hover { background: rgba(255,255,255,.22); }
.lb__x { top: 16px; right: 16px; }
.lb__nav--p { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__nav--n { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Появление при прокрутке ----------
   Прячем только под классом .js, который снимает сам скрипт: без скрипта
   и при любой его ошибке содержимое видно. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .cts { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 400px; }
  .road { grid-template-columns: auto minmax(0, 1fr); }
  .road__act { grid-column: 1 / -1; grid-auto-flow: column; align-items: center; justify-content: start; gap: var(--s4); }
  .ft__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__ph { order: -1; min-height: 0; aspect-ratio: 16 / 10; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__txt { padding: clamp(28px, 5vw, 48px) var(--gut) clamp(36px, 6vw, 64px); }
  .hero__col { max-width: none; }
  .h1__mega { background: none; padding-right: 0; }
  .gal { grid-template-columns: minmax(0, 1fr); }
  .gal__big img { min-height: 260px; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gut) var(--s4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 17px; }
  .hdr__in { position: relative; }
  .burger { display: grid; }
  .hdr__act { margin-left: auto; }
  /* Текст номера убираем визуально, но оставляем доступным: имя ссылки не теряется */
  .btn__tel {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .btn--sm { width: 44px; padding: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .road { grid-template-columns: minmax(0, 1fr); gap: var(--s4); justify-items: start; }
  .road__no { justify-self: stretch; grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 12px; }
  .road__act { grid-auto-flow: row; justify-items: stretch; width: 100%; }
  .road__act .btn { width: 100%; }
  .hero__meta { grid-template-columns: minmax(0, 1fr); }
  .hero__meta > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .hero__meta > div + div { padding-left: 0; }
  .hero__meta > div:last-child { border-bottom: 0; }
  .hero__btns .btn { width: 100%; }
  .cta__in .btn { width: 100%; }
  .cta__act { width: 100%; }
  .ft__in { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 340px; }
  .map__hint { max-width: 70%; }

  .callbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 12px 18px;
    border-radius: var(--r-md);
    background: var(--plum); color: var(--on-btn);
    font-weight: 660; text-decoration: none;
    box-shadow: 0 14px 30px -14px rgba(60, 15, 45, .7);
  }
  .ft { padding-bottom: 96px; }
  .lb__nav { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .h1__mega { font-size: clamp(38px, 11.6vw, 54px); }
  .state--hero { grid-template-columns: auto 1fr; }
}
