/* =========================================================================
   Здоровое поколение Кавказа — главная страница
   Перенос макета Claude Design (design_handoff_zpk_landing).

   Порядок файла: токены → база → примитивы → секции сверху вниз → оверлеи
   → адаптив. Значения взяты из макета один в один, менять их можно только
   вместе с макетом.

   Правила системы:
   • Радиусы строго из шкалы: 12 поля · 14 логотип · 18 cookie · 20 карточка
     · 24 форма · 26 модалка · 28 медиа и панель · 999 кнопки и чипы.
   • Градиент — фон секции, не карточки. Один градиент на слой.
   • Секции чередуются: светлая → тёмная → песочная.
   • Единый easing --ease для всего движения.
   ========================================================================= */

/* ---------- Токены ---------- */
:root {
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* поверхности */
  --sand: #F7F4EF;
  --cream: #FBF8F2;
  --cream-2: #FBF9F5;
  --white: #FFFFFF;
  --placeholder: #EDE7DC;

  /* чернила и текст */
  --ink: #0E2A33;
  --teal: #14606E;
  --text-2: #42585E;
  --text-3: #7A8A8E;
  --text-warm: #5A6B6F;

  /* действие */
  --green: #3E9C7A;
  --green-light: #48AC88;
  --green-dark: #31866A;
  --green-solid-hover: #33876A;
  --grad-btn: linear-gradient(135deg, #48AC88, #3E9C7A 60%, #31866A);

  /* акценты */
  --terracotta: #C9603F;
  --terracotta-dark: #A94B2E;
  --mint: #7FC7AC;
  --mint-2: #7FCFB4;
  --online: #4FC08D;

  /* на тёмном */
  --on-dark: #D8E1E2;
  --on-dark-2: #B9C6C9;
  --on-dark-3: #9FB4B8;
  --on-dark-4: #8FA0A4;
  --on-dark-5: #E4EAEB;

  /* линии */
  --line: #DCD5C9;
  --line-rail: #CFC5B4;
  --line-quiz: #E3DBCD;
  --watermark: #E4DCCE;

  /* градиенты секций */
  --grad-page: linear-gradient(180deg, #FBF9F5 0%, #F7F4EF 38%, #F4EFE7 100%);
  --grad-dark: linear-gradient(165deg, #14404E 0%, #0E2A33 52%, #0A1F27 100%);
  --grad-dark-teal: linear-gradient(150deg, #0E2A33 0%, #14404E 46%, #0F4C58 100%);
  --grad-sand: linear-gradient(200deg, #F2ECE3 0%, #EDE7DC 50%, #E7DFD2 100%);
  --grad-steps: linear-gradient(180deg, #F4EFE6 0%, #EDE7DC 45%, #E5DCCD 100%);
  --grad-warm: linear-gradient(140deg, #F6EDE4 0%, #F1E4D7 46%, #EBDBCB 100%);
  --grad-top: linear-gradient(90deg, #0E2A33 0%, #14404E 55%, #14606E 100%);
  --grad-footer: linear-gradient(180deg, #123540 0%, #0E2A33 60%, #081A21 100%);
  --grad-photo: linear-gradient(180deg, rgba(14, 42, 51, .55) 0%, rgba(14, 42, 51, .06) 32%, rgba(14, 42, 51, .82) 100%);

  /* тени */
  --sh-card: 0 20px 50px rgba(14, 42, 51, .06);
  --sh-form: 0 24px 60px rgba(14, 42, 51, .08);
  --sh-card-hover: 0 30px 60px rgba(14, 42, 51, .12);
  --sh-media: 0 34px 80px rgba(14, 42, 51, .16);
  --sh-photo-hover: 0 40px 80px rgba(14, 42, 51, .24);
  --sh-panel: 0 40px 90px rgba(5, 20, 25, .34);
  --sh-hero-form: 0 30px 70px rgba(0, 0, 0, .3);

  /* радиусы */
  --r-field: 12px;
  --r-logo: 14px;
  --r-cookie: 18px;
  --r-card: 20px;
  --r-form: 24px;
  --r-modal: 26px;
  --r-media: 28px;
  --r-pill: 999px;

  /* сетка */
  --shell: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --pad-head: clamp(20px, 4vw, 72px);
  --section-y: 112px;
  --header-h: 110px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--sand);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--grad-page) no-repeat;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }

button { font-family: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: pretty; }

p { margin: 0; text-wrap: pretty; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: fixed;
  top: 16px; left: 16px;
  width: auto; height: auto;
  margin: 0; padding: 14px 22px;
  clip: auto;
  z-index: 100;
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--r-pill);
}

/* Honeypot: поле-ловушка для ботов, человек его не видит. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Появление по скроллу ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes heroCue {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50% { transform: translateY(7px); opacity: 1; }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.55); opacity: .25; }
}
@keyframes popFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popRise {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Примитивы ---------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 0; }

.overline {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.overline--mint { color: var(--mint); }
.overline--mint2 { color: var(--mint-2); }
.overline--green { color: var(--green); }

.h2 { font-size: 46px; line-height: 1.08; letter-spacing: -.03em; }
.h2--sm { font-size: 42px; line-height: 1.1; }

.lead { font-size: 18px; line-height: 1.7; color: var(--text-2); }

.link-arrow { font-size: 17px; font-weight: 500; color: var(--teal); }
.link-arrow--mint { color: var(--mint); }

.head { display: flex; flex-direction: column; gap: 20px; }
/* Ширины заголовочных блоков заданы в макете поштучно — держим их числами,
   чтобы переносы строк совпадали с оригиналом. */
.head--620 { max-width: 620px; }
.head--640 { max-width: 640px; }
.head--660 { max-width: 660px; }
.head--680 { max-width: 680px; }

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  flex-wrap: wrap;
}

.watermark-num {
  font-weight: 200;
  font-size: clamp(56px, 6vw, 88px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--line);
}

/* Пульсирующая точка «консультант на линии» */
.pulse {
  position: relative;
  width: 8px; height: 8px;
  flex-shrink: 0;
}
.pulse::before, .pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--online);
}
.pulse::after { animation: heroPulse 2.4s ease-in-out infinite; }
.pulse--green::before, .pulse--green::after { background: var(--green); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  border: none;
  border-radius: var(--r-pill);
  padding: 19px 36px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .25s, color .25s, border-color .25s, opacity .3s;
}

.btn--primary { background: var(--grad-btn); color: #fff; }
.btn--primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(62, 156, 122, .4);
}

.btn--sm { font-size: 15px; padding: 14px 26px; }
.btn--sm:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(62, 156, 122, .34); }

.btn--ghost {
  color: var(--sand);
  background: transparent;
  border: 1px solid rgba(247, 244, 239, .5);
  padding: 18px 34px;
}
.btn--ghost:hover { background: var(--sand); color: var(--ink); }

.btn--dark { background: var(--ink); color: #fff; font-size: 16px; padding: 17px; width: 100%; }
.btn--dark:hover { background: var(--teal); color: #fff; }

.btn--green { background: var(--green); color: #fff; font-size: 16px; padding: 17px; width: 100%; }
.btn--green:hover { background: var(--green-solid-hover); color: #fff; }

.btn--block { width: 100%; padding: 19px; }

.btn[disabled], .btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}

.btn-link {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .25s;
}
.btn-link:hover { color: var(--ink); }
.btn-link--muted { font-weight: 400; color: var(--text-3); }
.btn-link--muted:hover { color: var(--teal); }

/* Круглые управляющие */
.circle-btn {
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 244, 239, .45);
  background: rgba(14, 42, 51, .28);
  backdrop-filter: blur(8px);
  color: var(--sand);
  font-size: 18px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.circle-btn:hover { background: var(--sand); color: var(--ink); }
.circle-btn--prev:hover { transform: translateX(-2px); }
.circle-btn--next:hover { transform: translateX(2px); }

.circle-btn--light {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  backdrop-filter: none;
  color: var(--ink);
  font-size: 17px;
}
.circle-btn--light:hover { border-color: var(--green); background: #F6FBF8; color: var(--ink); }

/* Поля и согласия */
.field {
  font-family: var(--font);
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: #fff;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.field::placeholder { color: var(--text-3); }
.field:focus { border-color: var(--green); }
.field--roomy { padding: 17px 18px; }
.field--cream { background: var(--cream-2); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  cursor: pointer;
}
.consent input[type='checkbox'] {
  width: 17px; height: 17px;
  margin: 1px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
  cursor: pointer;
}
.consent--lg { font-size: 13px; }

.form-error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--terracotta);
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--r-form);
  background: #fff;
  padding: 36px;
  box-shadow: var(--sh-form);
}
.form-card__title { font-weight: 600; font-size: 22px; letter-spacing: -.01em; }

/* Экран «заявка принята» внутри форм */
.done { display: flex; flex-direction: column; gap: 18px; }
.done__mark {
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #48AC88, #31866A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.done__title { font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.done__text { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 420px; }
.done__phone { font-weight: 600; font-size: 26px; color: var(--terracotta); }
.done__phone:hover { color: var(--terracotta-dark); }

[hidden] { display: none !important; }

/* =========================================================================
   Шапка
   ========================================================================= */
.header { position: sticky; top: 0; z-index: 30; }

.header__top { background: var(--grad-top); color: var(--on-dark); }
.header__top-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px var(--pad-head);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  font-size: 13px;
}
.header__online {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.header__online b { font-weight: 500; color: var(--sand); }
.header__muted { color: var(--on-dark-3); }
.header__clock { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--on-dark-3); }
.header__top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.header__top-right a { color: var(--sand); transition: color .25s; }
.header__top-right a:hover { color: var(--mint); }

.header__main {
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(250, 248, 244, .95), rgba(247, 244, 239, .82));
  border-bottom: 1px solid rgba(220, 213, 201, .7);
}
.header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px var(--pad-head);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: nowrap;
}

.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 46px; height: 46px;
  border-radius: var(--r-logo);
  background: linear-gradient(140deg, #14606E, #0E2A33);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; gap: 2px; }
.logo__name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.logo__note { font-size: 12px; color: var(--text-3); }

.nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  font-size: 14px;
  white-space: nowrap;
}
.nav a {
  color: var(--text-2);
  padding: 9px 12px;
  border-radius: var(--r-pill);
  transition: background .25s, color .25s;
}
.nav a:hover { background: rgba(62, 156, 122, .12); color: var(--ink); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}
.header__phone-box { display: flex; flex-direction: column; gap: 1px; align-items: flex-end; }
.header__phone {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s;
}
.header__phone:hover { color: var(--terracotta); }
.header__phone-note { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Бургер — макет мобильную навигацию не описывает, собрана по его же правилам. */
.burger {
  display: none;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-logo);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
}
.burger:hover { background: var(--ink); color: var(--sand); }
.burger__bars { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.burger__bars::before, .burger__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded='true'] .burger__bars { background: transparent; }
.burger[aria-expanded='true'] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad-head) 24px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: 17px;
  color: var(--ink);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: none; }

/* =========================================================================
   1. Первый экран
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(780px, 86vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute;
  inset: -14% 0;
  background-size: cover;
  background-position: center 40%;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 42, 51, .78) 0%, rgba(14, 42, 51, .34) 40%, rgba(14, 42, 51, .92) 100%);
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 82% 18%, rgba(62, 156, 122, .28) 0%, rgba(62, 156, 122, 0) 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 72px;
  align-items: center;
}
.hero__col {
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--sand);
}
.hero__overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
}
.hero__title {
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -.038em;
}
.hero__title span { font-weight: 200; color: var(--mint); }
.hero__lead {
  font-size: 21px;
  line-height: 1.6;
  max-width: 560px;
  color: var(--on-dark);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
}
.hero__cue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--on-dark-2);
  transition: color .25s;
}
.hero__cue:hover { color: var(--sand); }
.hero__cue span {
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 244, 239, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--sand);
  flex-shrink: 0;
  animation: heroCue 2.2s ease-in-out infinite;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 6px;
  font-size: 15px;
  color: var(--on-dark);
}
.hero__bullets span { display: flex; align-items: center; gap: 9px; }
.hero__bullets span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--mint);
  flex-shrink: 0;
}

.hero__form {
  background: rgba(247, 244, 239, .96);
  border-radius: var(--r-form);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--sh-hero-form);
}
.hero__form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero__form-title { font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.badge-24 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(62, 156, 122, .4);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  white-space: nowrap;
}
.hero__form-note { font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* =========================================================================
   2. Счётчики
   ========================================================================= */
.stats {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-weight: 400;
  font-size: 62px;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__caption { font-size: 16px; color: var(--text-2); line-height: 1.5; }

/* =========================================================================
   3. Условия: галерея и преимущества
   ========================================================================= */
.comfort { display: flex; flex-direction: column; gap: 56px; }
.comfort__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.comfort__head-right { display: flex; flex-direction: column; gap: 16px; }

.gallery { display: flex; flex-direction: column; gap: 18px; }
.gallery__frame {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--placeholder);
  box-shadow: var(--sh-media);
}
.gallery__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), opacity .45s var(--ease);
}
.gallery__frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(14, 42, 51, 0), rgba(14, 42, 51, .78));
  pointer-events: none;
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--sand);
}
.gallery__text { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.gallery__title {
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.gallery__desc { font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.gallery__nav { display: flex; align-items: center; gap: 16px; }
.gallery__counter { font-size: 14px; letter-spacing: .12em; color: rgba(247, 244, 239, .75); }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.gallery__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-field);
  cursor: pointer;
  padding: 0;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  opacity: .55;
  transition: border-color .3s, opacity .3s, transform .3s var(--ease);
}
.gallery__thumb:hover { opacity: .8; }
.gallery__thumb.is-active {
  border-color: var(--green);
  opacity: 1;
  transform: translateY(-3px);
}

.advantages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}
.advantage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
  transition: border-color .35s;
}
.advantage:hover { border-color: var(--green); }
.advantage__num {
  position: absolute;
  top: 18px; right: 0;
  font-weight: 200;
  font-size: 56px;
  line-height: 1;
  color: var(--watermark);
  pointer-events: none;
}
.advantage__title { position: relative; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.advantage__text {
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 340px;
}

/* =========================================================================
   4. Направления помощи
   ========================================================================= */
.directions { display: flex; flex-direction: column; gap: 40px; }
.directions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.direction {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-form);
  min-height: clamp(380px, 34vw, 460px);
  background: var(--placeholder);
  color: var(--sand);
  box-shadow: 0 24px 60px rgba(14, 42, 51, .14);
  transition: transform .45s var(--ease), box-shadow .45s;
}
.direction:nth-child(2) { margin-top: 34px; }
.direction:nth-child(3) { margin-top: 68px; }
.direction:hover { transform: translateY(-10px); box-shadow: var(--sh-photo-hover); color: var(--sand); }
.direction__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .9s var(--ease);
}
.direction:hover .direction__img { transform: scale(1.07); }
.direction::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-photo);
  pointer-events: none;
}
.direction__num {
  position: absolute;
  top: 22px; left: 24px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(247, 244, 239, .85);
}
.direction__arrow {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 244, 239, .45);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.direction:hover .direction__arrow {
  background: var(--sand);
  color: var(--ink);
  transform: rotate(-45deg);
}
.direction__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.direction__title {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.direction__text { font-size: 16px; line-height: 1.6; color: var(--on-dark); }

/* =========================================================================
   5. Программы лечения (тёмная)
   ========================================================================= */
.programs { background: var(--grad-dark); color: var(--sand); }
.programs__inner { display: flex; flex-direction: column; gap: 48px; }
.programs__tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-pill);
  padding: 13px 22px;
  cursor: pointer;
  background: transparent;
  color: var(--on-dark-2);
  border: 1px solid rgba(247, 244, 239, .35);
  transition: background .25s, color .25s, border-color .25s;
}
.tab:hover { color: var(--sand); border-color: rgba(247, 244, 239, .6); }
.tab.is-active { background: var(--sand); color: var(--ink); border-color: var(--sand); }

.program { display: flex; flex-direction: column; gap: 48px; }
.program__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid rgba(247, 244, 239, .18);
  padding-top: 48px;
}
.program__col { display: flex; flex-direction: column; gap: 20px; }
.program__title { font-weight: 500; font-size: 30px; letter-spacing: -.02em; }
.program__intro { font-size: 18px; line-height: 1.7; color: var(--on-dark-2); }
.program__items { display: flex; flex-direction: column; gap: 2px; }
.program__item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 244, 239, .14);
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-dark-5);
}
.program__item span:first-child { color: var(--mint); min-width: 28px; }

.program__media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 16px;
}
.media-tile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background-color: rgba(247, 244, 239, .06);
  background-size: cover;
  background-position: center;
  border: none;
  padding: 0;
  transition: transform .5s var(--ease), filter .5s;
}
.media-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.media-tile:nth-child(2), .media-tile:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.media-tile:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.media-tile:nth-child(5) { grid-column: span 4; grid-row: span 1; }
.media-tile:hover { transform: scale(1.015); filter: brightness(1.06); }
.media-tile--video { cursor: pointer; }
.media-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 42, 51, .15), rgba(14, 42, 51, .55));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  gap: 12px;
  pointer-events: none;
  text-align: left;
}
.media-tile__play {
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: rgba(247, 244, 239, .92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.media-tile__caption {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
  line-height: 1.35;
}

/* =========================================================================
   6. Подход к лечению
   ========================================================================= */
.approach { display: flex; flex-direction: column; gap: 96px; }
.approach__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.approach__media {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--placeholder);
}
.approach__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.approach__media:hover img { transform: scale(1.04); }
.approach__text { display: flex; flex-direction: column; gap: 20px; }
.approach__row--reversed .approach__text { order: 1; }
.approach__row--reversed .approach__media { order: 2; }

/* =========================================================================
   7. Восстановление в комфортных условиях
   ========================================================================= */
.conditions { display: flex; flex-direction: column; gap: 40px; }
.conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.condition { display: flex; flex-direction: column; gap: 16px; }
.condition__media {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--placeholder);
}
.condition__img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
}
.condition__media:hover .condition__img { transform: scale(1.05); }
.condition__body { display: flex; flex-direction: column; gap: 8px; }
.condition__title { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.condition__text { font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* =========================================================================
   8. Этапы — липкий таймлайн
   ========================================================================= */
.steps { position: relative; background: var(--grad-steps); }
.steps__ghost {
  position: absolute;
  bottom: 4%; left: 2%;
  font-weight: 200;
  font-size: clamp(120px, 12vw, 180px);
  line-height: .8;
  letter-spacing: -.05em;
  color: rgba(14, 42, 51, .05);
  pointer-events: none;
  user-select: none;
}
.steps__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
}
.steps__aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 120px;
  align-self: start;
}
.steps__count { display: flex; align-items: flex-end; gap: 14px; }
.steps__big {
  font-weight: 200;
  font-size: clamp(84px, 9vw, 124px);
  line-height: .82;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.steps__total { font-weight: 300; font-size: 24px; color: #9AA7A9; padding-bottom: 10px; }
.steps__bar {
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
  max-width: 280px;
}
.steps__bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #14606E, #3E9C7A);
  transition: width .5s var(--ease);
}
.steps__caption { font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 300px; }

.steps__list { display: flex; flex-direction: column; }
.step {
  position: relative;
  padding-left: 44px;
  will-change: transform;
  border-radius: 0 var(--r-cookie) var(--r-cookie) 0;
  background: transparent;
  transition: background .4s, box-shadow .4s;
}
.step::before {
  content: '';
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-rail);
}
.step:last-child::before { bottom: auto; height: 46px; }
.step::after {
  content: '';
  position: absolute;
  left: 4px; top: 42px;
  width: 15px; height: 15px;
  border-radius: var(--r-pill);
  background: var(--placeholder);
  border: 1px solid var(--line-rail);
  transition: background .4s, transform .4s var(--ease), box-shadow .4s;
}
.step:hover { background: #fff; }
.step.is-active { background: var(--cream); box-shadow: var(--sh-card); }
.step.is-active::after {
  background: linear-gradient(135deg, #48AC88, #31866A);
  border-color: transparent;
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(62, 156, 122, .18);
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 30px 34px 0;
}
.step__label { font-size: 12px; letter-spacing: .2em; color: var(--green); }
.step__title {
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.14;
}
.step__text { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 520px; }

/* =========================================================================
   9. Гайд в PDF
   ========================================================================= */
.guide { padding-top: 96px; }
.guide__card {
  background: #fff;
  border-radius: var(--r-media);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  box-shadow: var(--sh-card);
}
.guide__text { display: flex; flex-direction: column; gap: 16px; }
.guide__title {
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.guide__lead { font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 560px; }
.guide__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .8fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
.guide__cell { display: flex; flex-direction: column; }
.guide__form { display: flex; flex-direction: column; gap: 12px; }
.guide__form .btn { padding: 18px 32px; }

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform .5s var(--ease);
}
.cover:hover { transform: translateY(-6px); }
.cover__back {
  position: absolute;
  inset: 8% 14% 2% 2%;
  background: var(--placeholder);
  border-radius: 8px;
  transform: rotate(-5deg);
}
.cover__front {
  position: absolute;
  inset: 2% 6% 0 6%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(14, 42, 51, .16);
  transform: rotate(2.5deg);
  padding: 8% 9%;
  display: flex;
  flex-direction: column;
  gap: 6%;
}
.cover__row { display: flex; justify-content: space-between; align-items: center; }
.cover__brand { font-size: 10px; letter-spacing: .14em; color: var(--green); }
.cover__badge {
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  background: var(--terracotta);
  border-radius: 4px;
  padding: 3px 6px;
}
.cover__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
.cover__lines { display: flex; flex-direction: column; gap: 5px; }
.cover__lines span { height: 5px; border-radius: 3px; background: var(--placeholder); }
.cover__lines span.is-short { width: 70%; }
.cover__lines span.is-shorter { width: 52%; }
.cover__block { height: 24%; border-radius: 6px; background: rgba(20, 96, 110, .14); }
.cover__foot { margin-top: auto; font-size: 9px; color: var(--text-3); }

/* =========================================================================
   10. Специалисты
   ========================================================================= */
.team { display: flex; flex-direction: column; gap: 48px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  transition: transform .12s linear;
}
.person__media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--placeholder);
}
.person__img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: saturate(.92);
  transition: transform .7s var(--ease), filter .5s;
}
.person__media:hover .person__img { transform: scale(1.06); filter: saturate(1); }
.person__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(14, 42, 51, 0), rgba(14, 42, 51, .6));
  pointer-events: none;
}
.person__num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(247, 244, 239, .85);
}
.person__body { display: flex; flex-direction: column; gap: 6px; }
.person__name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.person__role { font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* =========================================================================
   11. Истории выздоровления
   ========================================================================= */
.stories { display: flex; flex-direction: column; gap: 40px; }
.story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  background: #fff;
  border-radius: var(--r-form);
  overflow: hidden;
  box-shadow: var(--sh-form);
}
.story__media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--placeholder);
}
.story__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .5s;
}
.story__body {
  padding: clamp(28px, 3.4vw, 52px) clamp(28px, 3.4vw, 52px) clamp(24px, 2.6vw, 40px) 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}
.story__quote { font-weight: 200; font-size: 64px; line-height: .7; color: var(--line); }
.story__text {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.6;
  color: var(--ink);
  min-height: 118px;
}
.story__who { display: flex; flex-direction: column; gap: 3px; }
.story__name { font-weight: 600; font-size: 17px; }
.story__term { font-size: 15px; color: var(--text-3); }
.story__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--placeholder);
  margin-top: 6px;
}
.story__arrows { display: flex; gap: 10px; }
.story__dots { display: flex; gap: 8px; align-items: center; }
.story__dot {
  height: 8px;
  width: 8px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  padding: 0;
  background: var(--line);
  transition: width .35s var(--ease), background .35s;
}
.story__dot.is-active { width: 28px; background: var(--green); }
.story__counter {
  margin-left: auto;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--text-3);
}

/* =========================================================================
   12. Частые вопросы (песочная)
   ========================================================================= */
.faq { background: var(--grad-sand); }
.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 110px;
}
.faq__note { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.faq__phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
}
.faq__phone:hover { color: var(--terracotta-dark); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  transition: color .25s;
}
.faq__q:hover { color: var(--teal); }
.faq__sign {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green);
}
.faq__a {
  padding: 0 60px 28px 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

/* =========================================================================
   13. Гарантии и документы
   ========================================================================= */
.guarantees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.guarantees__col { display: flex; flex-direction: column; gap: 20px; }
.guarantees__list { display: flex; flex-direction: column; gap: 2px; }
.guarantees__row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.guarantees__row span:first-child { color: var(--green); }
.docs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.docs__item {
  aspect-ratio: 210 / 300;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--placeholder);
  box-shadow: 0 12px 30px rgba(14, 42, 51, .08);
  transition: transform .35s var(--ease);
}
.docs__item:hover { transform: translateY(-4px); }
.docs__note { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* =========================================================================
   14. Сомнения (песочная)
   ========================================================================= */
.objections { background: var(--grad-sand); }
.objections__inner { display: flex; flex-direction: column; gap: 48px; }
.objections__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.objection {
  background: #fff;
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--sh-card);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.objection:hover { transform: translateY(-6px); box-shadow: var(--sh-card-hover); }
.objection__title {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.objection__text { font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* =========================================================================
   15. Подбор программы — квиз (тёмная)
   ========================================================================= */
.quiz { position: relative; overflow: hidden; background: var(--grad-dark-teal); }
.quiz__blob {
  position: absolute;
  border-radius: var(--r-pill);
  pointer-events: none;
}
.quiz__blob--green {
  top: -22%; right: -12%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(62, 156, 122, .34) 0%, rgba(62, 156, 122, 0) 68%);
}
.quiz__blob--warm {
  bottom: -28%; left: -14%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(201, 96, 63, .2) 0%, rgba(201, 96, 63, 0) 70%);
}
.quiz__inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.quiz__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--sand);
}
.quiz__title {
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.quiz__lead { font-size: 18px; line-height: 1.6; color: var(--on-dark-2); max-width: 430px; }
.quiz__cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 244, 239, .16);
}
.quiz__cta .btn { align-self: flex-start; }
.quiz__phone-box { display: flex; flex-direction: column; gap: 8px; }
.quiz__phone {
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--sand);
  transition: color .25s;
}
.quiz__phone:hover { color: var(--mint-2); }
.quiz__phone-note { font-size: 16px; line-height: 1.5; color: var(--on-dark-2); }

.quiz__card {
  position: relative;
  background: linear-gradient(170deg, #FFFFFF 0%, #FBF8F2 100%);
  border-radius: var(--r-media);
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: var(--sh-panel);
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  min-height: 460px;
  overflow: hidden;
}
.quiz__ghost {
  position: absolute;
  top: -34px; right: 14px;
  font-weight: 200;
  font-size: 190px;
  line-height: 1;
  color: rgba(14, 42, 51, .05);
  pointer-events: none;
  user-select: none;
}
.quiz__step { display: flex; flex-direction: column; gap: 26px; flex: 1; position: relative; }
.quiz__progress { display: flex; flex-direction: column; gap: 12px; }
.quiz__progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.quiz__dots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.quiz__dot {
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--watermark);
  transition: background .4s, transform .4s var(--ease);
}
.quiz__dot.is-done { background: linear-gradient(90deg, #14606E, #3E9C7A); }
.quiz__dot.is-current { background: var(--green); transform: scaleY(1.8); }
.quiz__question {
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.quiz__options { display: flex; flex-direction: column; gap: 12px; }
.quiz__option {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  line-height: 1.35;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--line-quiz);
  background: #fff;
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.quiz__option:hover {
  border-color: var(--green);
  background: #F6FBF8;
  transform: translateX(4px);
}
.quiz__option.is-picked {
  border-color: var(--green);
  background: #F1F8F4;
  box-shadow: 0 10px 26px rgba(62, 156, 122, .16);
}
.quiz__letter {
  font-size: 14px;
  font-weight: 500;
  width: 34px; height: 34px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2EDE4;
  color: var(--text-3);
  transition: background .3s, color .3s;
}
.quiz__option.is-picked .quiz__letter {
  background: linear-gradient(135deg, #48AC88, #31866A);
  color: #fff;
}
.quiz__option-label { flex: 1; }
.quiz__arrow {
  font-size: 16px;
  flex-shrink: 0;
  opacity: .25;
  color: var(--text-3);
  transition: opacity .3s, transform .3s;
}
.quiz__option.is-picked .quiz__arrow { opacity: 1; color: var(--green); }
.quiz__foot {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.quiz__contact-note { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.quiz__fields { display: flex; flex-direction: column; gap: 12px; }
.quiz__back { align-self: flex-start; }

/* =========================================================================
   16. Контакты (тёплая)
   ========================================================================= */
.contact { background: var(--grad-warm); color: var(--ink); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.contact__col { display: flex; flex-direction: column; gap: 24px; }
.contact__title {
  font-weight: 400;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.contact__lead { font-size: 19px; line-height: 1.65; color: var(--text-warm); max-width: 520px; }
.contact__phone {
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -.02em;
  color: var(--terracotta);
  transition: color .25s;
}
.contact__phone:hover { color: var(--terracotta-dark); }
.contact__messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.messenger {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 14px 24px;
  transition: border-color .25s, transform .25s var(--ease);
}
.messenger:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.messenger--sm { font-size: 14px; padding: 11px 20px; }
.contact__address { font-size: 16px; color: var(--text-warm); line-height: 1.6; }

/* =========================================================================
   Подвал
   ========================================================================= */
.footer { background: var(--grad-footer); color: var(--on-dark-2); }
.footer__top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--pad) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1fr);
  gap: 40px;
  font-size: 15px;
  line-height: 1.7;
}
.footer__org { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.footer__org b { font-weight: 600; font-size: 17px; color: var(--sand); }
.footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 244, 239, .32);
  color: var(--sand);
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--on-dark-2); transition: color .25s; }
.footer__col a:hover { color: var(--sand); }
.footer__phone { color: var(--sand) !important; font-size: 19px; }
.footer__legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px var(--pad) 56px;
  border-top: 1px solid rgba(247, 244, 239, .14);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--on-dark-4);
}
.footer__req { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__legal p { max-width: 980px; }

/* =========================================================================
   Внутренние страницы: благодарность и юридические тексты.
   Макет их не описывает — собраны из его же примитивов.
   ========================================================================= */
.page { padding-top: 88px; padding-bottom: var(--section-y); }
.page__inner { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.page__title {
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.page__lead { font-size: 19px; line-height: 1.65; color: var(--text-2); }
.page__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 16px;
  padding: 16px 30px;
}
.btn--outline:hover { border-color: var(--green); color: var(--ink); transform: translateY(-2px); }

.prose { display: flex; flex-direction: column; }
.prose h2 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 36px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--text-2); }

.chip-note {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid rgba(201, 96, 63, .4);
  border-radius: var(--r-pill);
  padding: 8px 16px;
}

.thanks-card {
  background: #fff;
  border-radius: var(--r-media);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.thanks-card .done__phone { font-size: 34px; }

/* =========================================================================
   Оверлеи: видео, модалка, панель звонка, cookie
   ========================================================================= */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 22, 27, .86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  cursor: zoom-out;
  border: none;
  animation: popFade .25s ease-out;
}
.video-overlay iframe {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--r-card);
  background: #000;
  border: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 22, 27, .72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: popFade .25s ease-out;
}
.modal__dialog {
  position: relative;
  width: min(1000px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  background: var(--cream);
  border-radius: var(--r-modal);
  box-shadow: 0 50px 110px rgba(5, 20, 25, .5);
  animation: popRise .38s var(--ease);
}
.modal__aside {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: var(--sand);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
}
.modal__aside::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 340px; height: 340px;
  border-radius: var(--r-pill);
  background: radial-gradient(circle, rgba(62, 156, 122, .34), rgba(62, 156, 122, 0) 68%);
  pointer-events: none;
}
.modal__aside-head { position: relative; display: flex; flex-direction: column; gap: 14px; }
.modal__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-2);
}
.modal__aside-title {
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.modal__aside-text { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }
.modal__promises {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--on-dark);
}
.modal__promises span { display: flex; gap: 11px; align-items: baseline; }
.modal__promises span::before { content: '—'; color: var(--mint); }
.modal__aside-phone {
  margin-top: 8px;
  font-weight: 500;
  font-size: 22px;
  color: var(--sand);
  transition: color .25s;
}
.modal__aside-phone:hover { color: var(--mint); }
.modal__body {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  font-size: 17px;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.modal__close:hover { background: var(--ink); color: var(--sand); transform: rotate(90deg); }
.modal__title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  padding-right: 52px;
}
.modal__form { display: flex; flex-direction: column; gap: 16px; }
.modal__fields { display: flex; flex-direction: column; gap: 12px; }
.when { display: flex; gap: 8px; flex-wrap: wrap; }
.when__chip {
  font-family: var(--font);
  font-size: 14px;
  border-radius: var(--r-pill);
  padding: 11px 18px;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background .25s, border-color .25s, color .25s;
}
.when__chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.modal__messengers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--placeholder);
}
.modal__messengers .messenger { margin-top: 14px; }

.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: linear-gradient(180deg, rgba(14, 42, 51, .96), rgba(8, 26, 33, .98));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(247, 244, 239, .14);
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.callbar.is-on { transform: none; }
.callbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 72px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.callbar__phone-box { display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.callbar__phone {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--sand);
  white-space: nowrap;
  transition: color .25s;
}
.callbar__phone:hover { color: var(--mint); }
.callbar__note { font-size: 12px; color: var(--on-dark-4); white-space: nowrap; }
.callbar__wa {
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
  border: 1px solid rgba(247, 244, 239, .4);
  border-radius: var(--r-pill);
  padding: 13px 22px;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.callbar__wa:hover { background: var(--sand); color: var(--ink); }
.callbar__call { font-size: 15px; padding: 14px 28px; }
.callbar__order {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s;
}
.callbar__order:hover { color: var(--mint); }

.cookie {
  position: fixed;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: 104px;
  z-index: 50;
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-cookie);
  box-shadow: 0 24px 60px rgba(5, 20, 25, .24);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie__text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.cookie__btn {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  cursor: pointer;
  transition: background .25s;
}
.cookie__btn:hover { background: var(--teal); }

body.is-locked { overflow: hidden; }

/* =========================================================================
   Адаптив. В макете проработан только десктоп — раскладки ниже собраны
   по его же правилам: сначала схлопываются двухколоночные сетки, потом
   карточные ряды, шапка уходит в бургер.
   ========================================================================= */

@media (max-width: 1180px) {
  :root { --section-y: 96px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__form { max-width: 520px; }
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__title { font-size: 44px; }
}

/* Шапка макета не помещается в свои же 1320px: логотип, пять пунктов меню,
   телефон и кнопка требуют ~1400px. Сначала убираем кнопку — призыв дублируется
   в первом экране и в нижней панели, — потом меню уходит в бургер. */
@media (max-width: 1500px) {
  .header__cta .btn--sm { display: none; }
  .header__inner { gap: 16px; }
}

@media (max-width: 1300px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 1100px) {
  [data-nav] { display: none !important; }
  .header__inner { gap: 16px; }
  .header__cta { gap: 12px; }
}

@media (max-width: 980px) {
  .h2, .h2--sm { font-size: 36px; }
  .comfort__head,
  .program__body,
  .approach__row,
  .steps__inner,
  .faq__inner,
  .guarantees,
  .quiz__inner,
  .contact__inner,
  .story,
  .guide__card { grid-template-columns: minmax(0, 1fr); }

  .approach { gap: 64px; }
  .approach__row--reversed .approach__text { order: 0; }
  .approach__row--reversed .approach__media { order: 0; }

  .steps__aside { position: static; }
  .faq__aside { position: static; }

  .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction:nth-child(2), .direction:nth-child(3) { margin-top: 0; }

  .conditions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__media { min-height: 300px; }
  .story__body { padding: clamp(24px, 4vw, 40px); }
  .story__text { min-height: 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal__dialog { grid-template-columns: minmax(0, 1fr); }
  .modal__aside { display: none; }
  .contact__title { font-size: 38px; }
  .contact__phone { font-size: 36px; }
  .quiz__ghost { font-size: 140px; }
}

@media (max-width: 760px) {
  :root { --section-y: 72px; }
  .h2, .h2--sm { font-size: 30px; }
  .hero__inner { padding-top: 64px; padding-bottom: 48px; }
  .hero__lead { font-size: 18px; }
  .hero__form { padding: 24px; }
  .hero__actions .btn { width: 100%; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 64px; padding-bottom: 64px; }
  .stat__value { font-size: 48px; }

  .comfort { gap: 40px; }
  .gallery__caption { position: static; padding: 20px 0 0; color: var(--ink); }
  .gallery__desc { color: var(--text-2); }
  .gallery__counter { color: var(--text-3); }
  .gallery__frame::after { display: none; }
  .circle-btn { background: #fff; border-color: var(--line); color: var(--ink); }
  .gallery__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .advantages { grid-template-columns: minmax(0, 1fr); }
  .advantage__text { max-width: none; }
  .directions__grid { grid-template-columns: minmax(0, 1fr); }
  .conditions__grid { grid-template-columns: minmax(0, 1fr); }
  .objections__grid { grid-template-columns: minmax(0, 1fr); }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .person { transform: none !important; }

  .program__media { grid-auto-rows: 120px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .media-tile:nth-child(4) { grid-column: span 2; }
  .media-tile:nth-child(5) { grid-column: span 2; }

  .steps__inner { gap: 32px; }
  .step { padding-left: 36px; }
  .step__body { padding: 24px 20px 28px 0; }
  .steps__ghost { display: none; }

  .guide { padding-top: 64px; }
  .guide__side { grid-template-columns: minmax(0, 1fr); }
  .cover { display: none; }

  .docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__title { font-size: 32px; }
  .contact__phone { font-size: 30px; }
  .contact__messengers .messenger { flex: 1; text-align: center; }

  .faq__q { font-size: 17px; gap: 16px; }
  .faq__a { padding-right: 0; }

  .quiz__inner { padding-top: 72px; padding-bottom: 72px; }
  .quiz__card { min-height: 0; padding: 24px; }
  .quiz__ghost { display: none; }
  .quiz__cta .btn { align-self: stretch; }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  .callbar__inner { gap: 12px; padding: 12px 16px; }
  .callbar__note { white-space: normal; }
  .callbar__wa { display: none; }
  .callbar__order { display: none; }
  .callbar__call { flex: 1; text-align: center; }
  .cookie { bottom: 92px; padding: 16px 18px; gap: 14px; }
  .cookie__btn { width: 100%; }
}

@media (max-width: 420px) {
  .header__phone { font-size: 17px; }
  .logo__name { font-size: 15px; }
  .logo__note { display: none; }
  .team__grid { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Уважаем настройку «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__bg { transform: none !important; }
  .person { transform: none !important; }
  .step { opacity: 1 !important; transform: none !important; }
}
