/* BodyFX landing — Oh My Body. Токены и компоненты: bodyfx/design.md */

/* ---------- 1. Шрифты (локальные сабсеты, cyrillic + latin) ---------- */

@font-face {
  font-family: "Forum";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/bodyfx/assets/fonts/forum-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Forum";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/bodyfx/assets/fonts/forum-latin-400-normal.woff2) format("woff2");
  unicode-range: U+00-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/bodyfx/assets/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/bodyfx/assets/fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+00-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2. Токены (design.md §12, дословно) ---------- */

:root {
  --cream-50:#fcf8f3; --cream-100:#f7f0e7;
  --sand-200:#efe4d5; --sand-300:#e4d4c0; --white:#fff;
  --ink-900:#14110e; --ink-700:#3b352f; --ink-500:#6e655b; --ink-300:#a79c8e;
  --blue-50:#eaf5fb; --blue-100:#d5ebf5; --blue-200:#aedaec;
  --blue-300:#83c6e1; --blue-500:#4fb0d8; --blue-600:#2e93bf; --blue-700:#1f7099;
  --peach-50:#fdf1e8; --peach-100:#fbe2d0; --peach-200:#f8cdae;
  --peach-300:#f3b488; --peach-500:#ed9a63; --peach-600:#dc8149; --peach-700:#b96435;

  --font-display:"Forum",Georgia,serif;
  --font-body:"Manrope Variable",system-ui,sans-serif;
  --fw-light:300; --fw-regular:400; --fw-medium:500;
  --fw-semibold:600; --fw-bold:700; --fw-black:800;

  --text-hero:clamp(2.5rem,5.2vw,4.5rem);
  --text-display:clamp(2rem,3.8vw,3.25rem);
  --text-h1:clamp(1.75rem,2.8vw,2.5rem);
  --text-h2:clamp(1.4rem,2.1vw,1.875rem);
  --text-h3:1.3125rem; --text-lead:1.125rem;
  --text-body-lg:1.0625rem; --text-base:1rem;
  --text-sm:.875rem; --text-xs:.75rem;
  --tracking-eyebrow:.22em; --tracking-tight:-.02em; --tracking-snug:-.01em;
  --leading-tight:1.05; --leading-snug:1.2; --leading-body:1.6;

  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;
  --section-y:clamp(64px,9vw,128px);
  --gutter:clamp(20px,5vw,80px); --maxw:1200px; --maxw-text:62ch;

  --radius-xs:8px; --radius-sm:12px; --radius-md:20px;
  --radius-lg:28px; --radius-xl:40px; --radius-pill:999px;
  --shadow-xs:0 1px 2px #14110e0d;
  --shadow-sm:0 4px 14px #14110e0f;
  --shadow-md:0 12px 32px #14110e17;
  --shadow-lg:0 26px 60px #14110e1f;
  --shadow-blue:0 18px 40px #1f70992e;
  --shadow-peach:0 18px 40px #b9643529;

  --blur-frost:14px; --frost-bg:#fcf8f3eb;
  --ease-out:cubic-bezier(.22,1,.36,1);
  --ease-inout:cubic-bezier(.65,0,.35,1);
  --dur-fast:.14s; --dur-base:.24s; --dur-slow:.42s;
  --header-height:74px; --duration-reveal:.6s;
}

/* Семантические алиасы (design.md §3.1) */
:root {
  --color-bg: var(--cream-50);
  --color-bg-warm: var(--peach-50);
  --color-bg-cool: var(--blue-50);
  --color-surface: var(--white);
  --color-surface-sand: var(--sand-200);

  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-faint: var(--ink-300);

  --accent: var(--blue-500);
  --accent-strong: var(--blue-700);
  --accent-warm: var(--peach-500);
  --accent-warm-strong: var(--peach-700);

  --border-soft: var(--sand-300);
  --border-cool: var(--blue-200);
  --focus-ring: var(--blue-500);
}

@media (max-width: 767px) {
  :root { --header-height: 64px; }
}

/* ---------- 3. Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, iframe { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- 4. База ---------- */

body {
  background: var(--color-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  font-synthesis: none;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h1); }
h3 {
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}

p { max-width: var(--maxw-text); }

strong { font-weight: var(--fw-bold); color: var(--text-strong); }

.lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }

.small {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. Лейаут ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--white { background: var(--color-surface); }
.section--blue { background: var(--color-bg-cool); }
.section--peach { background: var(--color-bg-warm); }
.section--cream { background: var(--color-bg); }

.section__head { margin-bottom: var(--space-7); }
.section__head p { margin-top: var(--space-4); }

.eyebrow + h2, .eyebrow + h1 { margin-top: var(--space-4); }

.grid { display: grid; gap: var(--space-5); }
.grid > *, .stack > *, .split > *, .contact__grid > *, .footer__grid > * { min-width: 0; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

/* На узких экранах колонки складываются в стопку — без сетки фото прилипало
   к кнопке предыдущего блока. С 900 px раскладка переопределяется на две колонки. */
.split { display: grid; gap: var(--space-6); }

.stack { display: grid; gap: var(--space-5); }
.stack--tight { gap: var(--space-3); }
.stack--wide { gap: var(--space-6); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ---------- 6. Eyebrow (design.md §6.2) ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent-strong);
  line-height: 1.2;
}

.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
  opacity: .5;
  flex: none;
}

.eyebrow--peach { color: var(--peach-700); }
.eyebrow--peach-light { color: var(--peach-300); }
.eyebrow--ink { color: var(--text-muted); }

/* ---------- 7. Кнопки (design.md §6.3) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  letter-spacing: .01em;
  line-height: 1;
  padding: 14px 26px;
  font-size: var(--text-base);
  border: 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              filter var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

.btn--small { padding: 10px 18px; font-size: var(--text-sm); gap: 8px; }
.btn--large { padding: 18px 34px; font-size: 1.0625rem; gap: 12px; }

.btn--primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn--secondary {
  background: var(--peach-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-peach);
}

.btn--outline {
  background: transparent;
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1.5px var(--ink-900);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-strong);
  padding-inline: 4px;
}

.btn:active { transform: scale(.97); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

@media (hover: hover) {
  .btn--primary:hover, .btn--secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
  .btn--primary:hover { box-shadow: 0 24px 48px #1f709940; }
  .btn--secondary:hover { box-shadow: 0 24px 48px #b9643540; }
  .btn--outline:hover { background: var(--ink-900); color: var(--cream-50); }
  .btn--ghost:hover { color: var(--blue-600); text-decoration: underline; }
  .btn[disabled]:hover, .btn[aria-disabled="true"]:hover {
    transform: none; filter: none;
  }
}

/* ---------- 8. Badge (design.md §6.4) ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .03em;
  line-height: 1.3;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge--peach { background: var(--peach-100); color: var(--peach-700); }
.badge--sand { background: var(--sand-200); color: var(--ink-700); }
.badge--solid-blue { background: var(--blue-500); color: var(--white); }
.badge--solid-peach { background: var(--peach-500); color: var(--ink-900); }
.badge--solid-dark { background: var(--ink-900); color: var(--white); }

/* ---------- 9. Card (design.md §6.5) ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.card--sand { background: var(--color-surface-sand); }
.card--blue { background: var(--blue-50); border-color: var(--border-cool); }
.card--peach { background: var(--peach-50); border-color: var(--peach-200); }
.card--plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.card p { color: var(--text-muted); font-size: var(--text-body-lg); max-width: none; }
.card h3 { color: var(--text-strong); }

.card__marker {
  width: 44px; height: 4px;
  border-radius: var(--radius-pill);
  background: var(--blue-500);
}
.card__marker--peach { background: var(--peach-500); }

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--text-h3);
  line-height: 1;
}

/* Иконка в подложке (design.md §4): те же 52×52, что и у .card__num */
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-700);
}

.card__icon svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .card { padding: var(--space-6); }
}

/* Список с маркерами-галочками */
.ticks { display: grid; gap: var(--space-3); }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-body);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}
.ticks--warm li::before {
  border: 0;
  top: .62em; left: 3px;
  width: 12px; height: 2px;
  background: var(--peach-600);
  transform: none;
}
.ticks--dots li::before {
  border: 0;
  top: .6em; left: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  transform: none;
}

/* ---------- 10. Заглушка медиа (служебный элемент скелета) ---------- */

.media-ph {
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: var(--sand-200);
  border: 2px dashed var(--sand-300);
  border-radius: var(--radius-xl);
  color: var(--ink-500);
  font: 600 0.875rem/1.5 var(--font-body);
  padding: 24px;
}

.media-ph--4x5 { aspect-ratio: 4/5; }
.media-ph--4x3 { aspect-ratio: 4/3; }
.media-ph--16x9 { aspect-ratio: 16/9; }
.media-ph__tag {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-300);
}

/* Реальные фотографии (design.md §5): пропорция задаётся заранее, чтобы не было CLS. */
.photo { margin: 0; display: grid; gap: var(--space-3); }

.photo__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  background: var(--sand-200);
}

.photo__caption {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- 10.1. Результаты до/после ---------- */

.result-card {
  min-width: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

/* Пропорция по самим снимкам (400×200), а не квадрат: иначе при object-fit:contain сверху и снизу
   остаются пустые полосы в пол-картинки. Третий снимок чуть уже (400×157) — у него полосы по 18px,
   зато у всех трёх карточек одинаковая высота и подписи стоят на одной линии. */
.result-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--cream-100);
  color: inherit;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.result-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream-100);
  transition: transform var(--dur-base) var(--ease-out);
}

.result-card__label {
  position: absolute;
  top: var(--space-3);
  z-index: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--cream-50);
  color: var(--ink-900);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.result-card__label--before { left: var(--space-3); }
.result-card__label--after { left: calc(50% + var(--space-3)); }

@media (hover: hover) {
  .result-card__media:hover img { transform: scale(1.025); }
}

.result-card__caption {
  display: grid;
  gap: var(--space-2);
}

.result-card__caption p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.results-note { margin-top: var(--space-6); }

/* ---------- 10.2. Центр и команда ---------- */

.center__head { max-width: 860px; }

.center__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.center-stat {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--white), var(--blue-50));
  box-shadow: var(--shadow-xs);
}

.center-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--blue-700);
}

.center-stat span {
  display: block;
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.center__features { margin-top: var(--space-5); }

.center__features .card p { font-size: var(--text-base); }

.center__license {
  color: var(--blue-700);
  font-weight: var(--fw-semibold);
}

.center__gallery-head {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
}

.center__gallery-head h3 {
  margin-top: var(--space-3);
  font-size: var(--text-h1);
  font-weight: var(--fw-regular);
}

.center__gallery-head > p {
  align-self: end;
  color: var(--text-muted);
}

.center-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.center-gallery__item {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--sand-200);
  box-shadow: var(--shadow-sm);
}

/* Портрет команды — единственный широкий кадр на узких экранах. */
.center-gallery__item--team {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.center-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.center-gallery__item--team img { object-position: center 29%; }
.center-gallery__item--facade img { object-position: center 62%; }

.center-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgba(20, 17, 14, .76));
  color: var(--white);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.center__actions { align-items: center; }

@media (hover: hover) {
  .center-gallery__item:hover img { transform: scale(1.025); }
}

@media (min-width: 640px) {
  .center__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .center__gallery-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}

@media (min-width: 900px) {
  .center-gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: var(--space-4);
  }

  .center-gallery__item { aspect-ratio: auto; }
  .center-gallery__item--team { grid-column: span 6; grid-row: span 2; }
  .center-gallery__item--facade { grid-column: span 6; }
  .center-gallery__item--room { grid-column: span 6; }
}

/* ---------- 10.3. Компактный перечень зон и карта тела ---------- */

.zones-block { margin-top: var(--space-7); }

.zones__title { margin-top: 0; }

.zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.zones li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.zones li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  flex: none;
}

.zones__other {
  background: var(--sand-200);
  border-color: var(--sand-300);
}

.zones__other::before { background: var(--ink-300); }

.zones__note { margin-top: var(--space-5); }

.prices__note { margin-top: var(--space-6); }

.for-whom__note { margin-top: var(--space-6); }

/* Карта зон. Точки позиционируются в процентах от кадра, поэтому держатся на теле
   при любой ширине — координаты сняты по фото 1122×1402 и с ним же связаны. */
.zone-map {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--sand-200);
  box-shadow: var(--shadow-sm);
}

.zone-map img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
}

.zone-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

/* Метка справа от точки: сдвигаем на половину точки, чтобы её центр попал в координату. */
.zone-point { transform: translate(-9px, -50%); }

/* Метка слева: якорим правым краем, точка остаётся в той же координате. */
.zone-point--flanks,
.zone-point--glutes,
.zone-point--other {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 9px), -50%);
}

.zone-point--back   { left: 58%;   top: 32%; }
.zone-point--belly  { left: 47%;   top: 55%; }
.zone-point--flanks { left: 37.5%; top: 53%; }
.zone-point--glutes { left: 38%;   top: 68%; }
.zone-point--hips   { left: 61%;   top: 84%; }
.zone-point--other  { left: 45%;   top: 88%; }

.zone-point__dot {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.zone-point__dot::before,
.zone-point__dot::after {
  content: "";
  position: absolute;
  border: 1.5px solid #ffffffa8;
  border-radius: 50%;
}

.zone-point__dot::before { inset: -8px; }
.zone-point__dot::after { inset: -18px; border-color: #ffffff5c; }

.zone-point__label {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--frost-bg);
  color: var(--ink-900);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: blur(var(--blur-frost));
  backdrop-filter: blur(var(--blur-frost));
}

/* Проявление по очереди — тем же наблюдателем, что и остальные [data-reveal]. */
.zone-map.is-revealed .zone-point { opacity: 1; }
.zone-map.is-revealed .zone-point--back { transition-delay: .15s; }
.zone-map.is-revealed .zone-point--belly { transition-delay: .27s; }
.zone-map.is-revealed .zone-point--flanks { transition-delay: .39s; }
.zone-map.is-revealed .zone-point--glutes { transition-delay: .51s; }
.zone-map.is-revealed .zone-point--hips { transition-delay: .63s; }
.zone-map.is-revealed .zone-point--other { transition-delay: .75s; }

@media (max-width: 479px) {
  .zone-point__dot { width: 14px; height: 14px; }
  .zone-point__dot::before { inset: -6px; }
  .zone-point__dot::after { inset: -13px; }
  .zone-point__label { padding: 4px 10px; font-size: var(--text-xs); }
  .zone-point { transform: translate(-7px, -50%); }
  .zone-point--flanks,
  .zone-point--glutes,
  .zone-point--other { transform: translate(calc(-100% + 7px), -50%); }
}

/* Маркер незаполненных данных заказчика. Служебная метка, а не контент:
   всегда мелким кеглем Manrope, чтобы длинный текст не ломал крупную типографику. */
.tbd {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--fw-semibold);
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--peach-700);
  background: var(--peach-100);
  border-radius: var(--radius-xs);
  padding: 1px 8px;
  overflow-wrap: anywhere;
}

/* ---------- 11. Header (design.md §6.1) ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-50);
  border-bottom: 1px solid var(--border-soft);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header {
    background: var(--frost-bg);
    -webkit-backdrop-filter: blur(var(--blur-frost));
    backdrop-filter: blur(var(--blur-frost));
  }
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-right: auto;
}

.header__brand img { width: 42px; height: auto; }

.header__wordmark {
  display: grid;
  line-height: 1.1;
}

.header__wordmark b {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 1.125rem;
  color: var(--ink-900);
  letter-spacing: var(--tracking-snug);
}

.header__wordmark span {
  font-size: 10px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-500);
  font-weight: var(--fw-semibold);
}

.header__nav { display: none; }

.header__nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header__nav a {
  font-size: 15px;
  white-space: nowrap;
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.header__external { display: none; }

.header__nav a.header__main-site {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
}

@media (hover: hover) {
  .header__nav a:hover { color: var(--blue-700); }
}

.header__phone {
  display: none;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .header__phone:hover { color: var(--blue-700); }
}

.header__cta { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--ink-900);
  cursor: pointer;
}

.icon-btn svg { width: 20px; height: 20px; }

.header__burger-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.header__burger-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.header__burger[aria-expanded="true"] .header__burger-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-bars i:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Выпадает поверх страницы, а не раздвигает её: .header — sticky, значит служит containing block.
   Фон обязательно непрозрачный (не --frost-bg), иначе сквозь меню просвечивает контент. */
.header__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--cream-50);
  box-shadow: var(--shadow-md);
  padding-block: var(--space-4) var(--space-5);
}

.header__menu.is-open { display: block; }

.header__menu ul { display: grid; gap: var(--space-1); }

/* :not(.btn) обязателен — иначе это правило перебивает .btn по специфичности (0,1,1 против 0,1,0)
   и ломает кнопкам display:inline-flex и боковые отступы: текст уезжает к левому краю пилюли. */
.header__menu a:not(.btn) {
  display: block;
  padding: var(--space-3) 0;
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
  text-decoration: none;
}

.header__menu a.header__menu-main-site {
  margin-top: var(--space-2);
  padding-inline: var(--space-4);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-700);
}

.header__menu-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}

.header__menu-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.header__menu .btn { width: 100%; }

/* ---------- 12. Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cream-50); /* пока фото не загрузилось */
  padding-block: var(--section-y);
  --hero-overlay: linear-gradient(180deg, #fcf8f3f5 0%, #fcf8f3e0 55%, #fcf8f3c4 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center; /* манипула остаётся в кадре на узких экранах */
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: -1;
}

.hero__content { max-width: 620px; }

/* Заголовок длинный (56 знаков): --text-hero даёт 7 строк и уводит CTA под фолд.
   --text-display — тот же набор токенов, 4 строки, оффер-карта остаётся на первом экране. */
.hero h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  margin-top: var(--space-4);
  max-width: 20ch;
}

/* У Forum нет курсива — акцент только цветом, без синтетического italic. */
.hero h1 em {
  font-style: normal;
  font-weight: var(--fw-regular);
  color: var(--blue-700);
}

.hero__sub {
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__benefits {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 560px;
}

.hero__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .78);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.hero__benefits li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  flex: none;
}

.hero__facts {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* Hero offer (design.md §6.6) */
.hero-offer {
  margin-top: var(--space-6);
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.hero-offer__label {
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--ink-500);
}

.hero-offer__price {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--ink-900);
}

.hero-offer .btn { width: 100%; }

.hero-offer__special-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-soft);
}

.hero-offer__special-price {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0;
  padding-top: var(--space-3);
}

.hero-offer__special-price + .hero-offer__special-price {
  margin-inline-start: var(--space-3);
  padding-inline-start: var(--space-3);
  border-inline-start: 1px solid var(--border-soft);
}

.hero-offer__special-price-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
}

.hero-offer__special-price-current {
  font-family: var(--font-display);
  font-size: var(--text-body-lg);
  line-height: var(--leading-snug);
  color: var(--ink-900);
}

.hero-offer__special-price .price-old {
  display: block;
  margin: 0;
  font-size: var(--text-xs);
}

/* ---------- 13. Timeline / нумерованные шаги ---------- */

.steps { counter-reset: step; display: grid; gap: var(--space-5); }

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 68px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-h3);
  line-height: 1;
}

.steps h3 { margin-bottom: var(--space-2); }
.steps p { color: var(--text-muted); }

.timeline { display: grid; gap: var(--space-5); }

.timeline > li {
  border-left: 2px solid var(--blue-200);
  padding: 0 0 var(--space-2) var(--space-5);
  position: relative;
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-500);
}

.timeline h3 { margin-bottom: var(--space-2); }
.timeline p { color: var(--text-muted); }

/* Ощущения и курс живут внутри блока «Как проходит» — им нужен только вертикальный ритм. */
.procedure__note { margin-top: var(--space-6); }
.procedure__course-title { margin-top: var(--space-7); margin-bottom: var(--space-5); }

/* ---------- 14. Price cards (design.md §6.8) ---------- */

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5) var(--space-5);
}

.price-card__name {
  font-size: 13px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-500);
}

.price-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  color: var(--ink-900);
}

/* Старая цена рядом с акционной — мелким кеглем Manrope, чтобы не спорить с крупной цифрой. */
.price-old {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--text-muted);
  white-space: nowrap;
}

/* В узкой карточке прайса пятизначная старая цена не помещается в строку — выносим её вниз,
   чтобы все карточки выглядели одинаково независимо от длины числа. */
.price-card__price .price-old { display: block; margin: 6px 0 0; }

.price-card__features {
  display: grid;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
}

.price-card .btn { margin-top: auto; width: 100%; }

.price-card--featured {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.price-card--featured .price-card__name { color: var(--blue-200); }
.price-card--featured .price-card__price { color: var(--white); }
.price-card--featured .price-card__features { color: var(--blue-100); }
.price-card--featured .tbd { background: #ffffff1f; color: var(--peach-300); }

.price-card__ribbon {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-5);
  background: var(--peach-500);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

@media (min-width: 900px) {
  .price-card { padding: var(--space-7) var(--space-6); }
}


/* ---------- 15. FAQ (design.md §6.9) ---------- */

.faq { display: grid; gap: var(--space-3); max-width: 860px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-base) var(--ease-out);
}

.faq-item.is-open { border-color: var(--border-cool); }

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 20px 24px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
  cursor: pointer;
  border-radius: inherit;
}

.faq-item__icon {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  transition: transform var(--dur-slow) var(--ease-inout),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}

.faq-item__icon::before {
  content: "";
  width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 12px no-repeat;
}

.faq-item.is-open .faq-item__icon {
  background: var(--blue-500);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-inout);
}

.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

.faq-item__panel > div { overflow: hidden; }

.faq-item__panel p {
  padding: 0 24px 22px;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-body);
  max-width: none;
}

/* ---------- 16. Form (design.md §6.10) ---------- */

.form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .form { padding: var(--space-6); }
}

.field { display: grid; gap: var(--space-2); }

.field > label {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--ink-700);
}

.field input,
.field select {
  min-height: 48px;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 16px;
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%),
                    linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.field input::placeholder { color: var(--ink-300); }

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--peach-700);
}

.field.has-error input:focus-visible,
.field.has-error select:focus-visible {
  box-shadow: 0 0 0 4px var(--peach-100);
}

.field__error {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--peach-700);
}

.field__error:empty { display: none; }

.field--consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-3);
}

.field--consent input[type="checkbox"] {
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--blue-500);
  flex: none;
}

.field--consent span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-500);
}

.field--consent a { color: var(--blue-700); text-decoration: underline; }

.field--consent .field__error { grid-column: 1 / -1; }

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn { width: 100%; }

.form__note {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}

.form__status {
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.form__status:empty { display: none; }

.form__status--error {
  background: var(--peach-50);
  color: var(--peach-700);
  border: 1px solid var(--peach-200);
  padding: var(--space-3) var(--space-4);
}

.form__status--success {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  padding: var(--space-5);
  font-size: var(--text-body-lg);
}

/* ---------- 17. Contact ---------- */

.contact {
  background: linear-gradient(150deg, var(--blue-50) 0%, var(--cream-50) 52%, var(--peach-50) 100%);
}

.contact__grid { display: grid; gap: var(--space-7); align-items: start; }

.contact__info { display: grid; gap: var(--space-5); }

.contact__list { display: grid; gap: var(--space-4); }

.contact__list dt {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--ink-500);
  margin-bottom: var(--space-1);
}

.contact__list dd {
  margin: 0;
  font-size: var(--text-body-lg);
  color: var(--ink-900);
}

.contact__list a { text-decoration: none; color: var(--ink-900); }

@media (hover: hover) {
  .contact__list a:hover { color: var(--blue-700); }
}

.contact__map {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact__promise {
  display: grid;
  align-content: center;
  gap: var(--space-5);
  min-height: 100%;
}

.contact__promise h2 {
  font-size: var(--text-display);
  max-width: 15ch;
}

.contact__promise .lead { margin: 0; }

/* ---------- 18. Просмотр результата ---------- */

.photo-dialog {
  width: min(var(--maxw), calc(100% - (2 * var(--space-4))));
  max-width: none;
  max-height: calc(100dvh - (2 * var(--space-4)));
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.photo-dialog__panel {
  position: relative;
  display: grid;
  gap: var(--space-3);
  max-height: calc(100dvh - (2 * var(--space-4)));
  overflow: auto;
  padding: var(--space-4);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl);
  background: var(--ink-900);
  box-shadow: var(--shadow-lg);
}

.photo-dialog__image {
  width: 100%;
  max-height: calc(100dvh - var(--space-10));
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
}

.photo-dialog__caption {
  max-width: none;
  color: var(--white);
  font-weight: var(--fw-semibold);
  text-align: center;
}

/* ---------- 18. Форма в модальном окне ---------- */

.lead-dialog {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--text-body);
  overflow: visible;
}

.lead-dialog::backdrop,
.photo-dialog::backdrop {
  background: rgba(20, 17, 14, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lead-dialog__panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-xl);
  background: var(--cream-50);
  box-shadow: var(--shadow-lg);
}

.lead-dialog__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-700);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-dialog__head {
  padding: var(--space-7) var(--space-5) 0;
}

.lead-dialog__head h2 {
  margin-top: var(--space-4);
  padding-right: var(--space-7);
}

.lead-dialog__head > p:last-child {
  margin-top: var(--space-3);
  color: var(--text-muted);
}

.lead-dialog .form {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lead-dialog__fields {
  display: grid;
  gap: var(--space-4);
}

.lead-dialog .form__status { margin: 0 var(--space-5) var(--space-5); }

.lead-dialog__alternate {
  max-width: none;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.lead-dialog__alternate a {
  color: var(--blue-700);
  font-weight: var(--fw-semibold);
}

@media (min-width: 640px) {
  .lead-dialog__head { padding-inline: var(--space-6); }
  .lead-dialog__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-dialog .form__status { margin-inline: var(--space-6); }
  .lead-dialog__alternate { padding-inline: var(--space-6); }
}

/* ---------- 18. Footer (design.md §6.14) ---------- */

.footer {
  background: var(--ink-900);
  color: var(--cream-100);
  padding-block: var(--space-8) var(--space-6);
}

.footer a { color: inherit; text-decoration: none; }

@media (hover: hover) {
  .footer a:hover { color: var(--blue-300); }
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
}

.footer__brand img { width: 56px; height: auto; }

.footer__brand p {
  margin-top: var(--space-4);
  color: var(--cream-100);
}

.footer__disclaimer {
  margin-top: var(--space-4);
  color: var(--ink-300);
  font-size: var(--text-sm);
}

.footer h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-300);
  margin-bottom: var(--space-4);
}

.footer ul { display: grid; gap: var(--space-3); }

.footer__legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--ink-300);
  font-size: var(--text-sm);
}

/* ---------- 19. Sticky mobile CTA (design.md §6.12) ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-4) calc(12px + env(safe-area-inset-bottom));
  background: var(--cream-50);
  border-top: 1px solid var(--border-soft);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-out);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sticky-cta {
    background: var(--frost-bg);
    -webkit-backdrop-filter: blur(var(--blur-frost));
    backdrop-filter: blur(var(--blur-frost));
  }
}

.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }

/* ---------- 20. Reveal (design.md §9) ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--duration-reveal) var(--ease-out),
                transform var(--duration-reveal) var(--ease-out);
  }
  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 21. Адаптив (design.md §8) ---------- */

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions .btn { width: auto; }
}

@media (max-width: 639px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

@media (min-width: 768px) {
  .header__nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
  .header__menu { display: none !important; }
  .sticky-cta { display: none; }
}

/* 768–899: место в шапке ограничено — телефон компактной иконкой, узкие интервалы. */
@media (min-width: 768px) and (max-width: 899px) {
  .header__inner { gap: var(--space-4); }
  .header__nav ul { gap: var(--space-4); }
  .header__nav a { font-size: 14px; }
  .header__brand img { width: 34px; }
}

@media (min-width: 900px) {
  .header__phone { display: inline-flex; }
  .header__icon-phone { display: none; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero {
    display: grid;
    align-content: center;
    min-height: clamp(560px, calc(100svh - var(--header-height)), 820px);
    --hero-overlay: linear-gradient(90deg, #fcf8f3ed 0%, #fcf8f3d4 40%, #fcf8f366 68%, #fcf8f31f 100%);
  }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--space-7); }
  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); align-items: start; }
  .contact__map { height: 380px; }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    column-gap: var(--space-7);
    align-items: start;
  }

  .hero__content > .eyebrow,
  .hero__content > h1,
  .hero__content > .hero__sub,
  .hero__content > .hero__benefits {
    grid-column: 1;
  }

  .hero-offer {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    width: 100%;
    margin-top: 0;
  }

  .hero__facts { grid-column: 1; }
  .grid--2 { gap: var(--space-6); }
}

@media (min-width: 1200px) {
  .header__external { display: list-item; }
}
