/* ══════════════════════════════════════════════════════════════
   Sanctum24, рекламный лендинг
   Тёмная «ночная» палитра, латунное золото, гравюрные детали.
   Один файл, без сборки и внешних зависимостей (раздел 7 ТЗ: скорость).
   ══════════════════════════════════════════════════════════════ */

:root {
  --ink:        #08070d;
  --ink-2:      #0e0c17;
  --veil:       #16121f;
  --veil-2:     #1d1729;
  --line:       rgba(216, 180, 95, .22);
  --line-soft:  rgba(244, 236, 224, .10);

  --gold:       #d8b45f;
  --gold-lit:   #f3ddaa;
  --gold-deep:  #a07c31;
  --ember:      #c2705a;

  --parch:      #f3ebdd;
  /* Прозрачность подобрана под тёмный фон так, чтобы обычный текст держал
     контраст 4.5:1 по WCAG AA: на .44 вторичный текст давал только ~4:1. */
  --parch-dim:  rgba(243, 235, 221, .74);
  --parch-mute: rgba(243, 235, 221, .58);

  --display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --body:    "Golos Text", "Segoe UI", "Helvetica Neue", sans-serif;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --r: 3px;

  --ease: cubic-bezier(.22, .68, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parch);
  font-family: var(--body);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.62;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* Зерно поверх всей страницы, снимает «цифровую» плоскость фона.
   Без mix-blend-mode: режим наложения на полноэкранном fixed-слое даёт лишний
   слой композитинга и заметно бьёт по отрисовке на слабых телефонах. */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 60;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - var(--pad) * 2); }

/* ── Типографика ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { line-height: 1.04; }
h2 { line-height: 1.1; }

.eyebrow {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.4rem;
}

/* ── Кнопки ──────────────────────────────────────────────── */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.02em 2.1em;
  font: 500 .93rem/1 var(--body);
  letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); color: var(--parch);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .3s, color .3s, background-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 3px; }

.btn--gold {
  background: linear-gradient(168deg, var(--gold-lit), var(--gold) 48%, var(--gold-deep));
  color: #241a07; border-color: transparent; font-weight: 600;
  box-shadow: 0 10px 34px -14px rgba(216, 180, 95, .8);
}
.btn--gold:hover { box-shadow: 0 18px 42px -14px rgba(216, 180, 95, .95); }
/* блик, пробегающий по кнопке при наведении */
.btn--gold::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%;
  width: 40%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .6s var(--ease);
}
.btn--gold:hover::after { left: 120%; }

.btn--ghost { border-color: var(--line); color: var(--parch); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lit); }

.btn--quiet {
  border-color: transparent; padding-inline: .4em;
  color: var(--parch-dim); text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 6px;
}
.btn--quiet:hover { color: var(--gold-lit); text-decoration-color: var(--gold); }

.btn--sm { padding: .72em 1.3em; font-size: .82rem; }
.btn--block { width: 100%; }

/* ── Верхняя панель ──────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem var(--pad);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(8, 7, 13, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--gold); }
.brand__name {
  font-family: var(--display); font-size: 1.28rem; letter-spacing: .04em;
  color: var(--parch);
}
.brand__name em { font-style: italic; color: var(--gold); margin-left: .3em; }
.topbar__right { display: flex; align-items: center; gap: 1.2rem; }
.topbar__note {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--parch-mute);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(112px, 14vh, 168px) 0 clamp(64px, 10vh, 112px); }

.hero__sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__glow {
  position: absolute; left: 50%; top: -12%; width: min(1200px, 130vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%,
      rgba(120, 82, 168, .30) 0%,
      rgba(72, 46, 110, .18) 28%,
      rgba(8, 7, 13, 0) 62%);
}
.stars { position: absolute; inset: 0; }
.stars--far {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(243,235,221,.75) 50%, transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(243,235,221,.55) 50%, transparent),
    radial-gradient(1px 1px at 34% 62%, rgba(243,235,221,.45) 50%, transparent),
    radial-gradient(1px 1px at 88% 54%, rgba(243,235,221,.6) 50%, transparent),
    radial-gradient(1px 1px at 62% 82%, rgba(243,235,221,.4) 50%, transparent),
    radial-gradient(1px 1px at 8% 76%, rgba(243,235,221,.5) 50%, transparent),
    radial-gradient(1px 1px at 46% 30%, rgba(243,235,221,.35) 50%, transparent);
  animation: twinkle 7s var(--ease) infinite alternate;
}
.stars--near {
  background-image:
    radial-gradient(1.6px 1.6px at 24% 34%, rgba(243,222,180,.9) 50%, transparent),
    radial-gradient(1.6px 1.6px at 68% 24%, rgba(243,222,180,.7) 50%, transparent),
    radial-gradient(1.6px 1.6px at 92% 78%, rgba(243,222,180,.6) 50%, transparent),
    radial-gradient(1.6px 1.6px at 16% 88%, rgba(243,222,180,.55) 50%, transparent);
  animation: twinkle 5s var(--ease) 1.4s infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

.hero__inner {
  position: relative; z-index: 1;
  width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(24px, 5vw, 72px);
}
.hero__copy { max-width: min(100%, 40rem); }
.hero__title {
  /* ch здесь не годится: он считается от базового кегля, а не от дисплейного */
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
  line-height: 1.02;
  margin-bottom: 1.15rem;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(1rem, 1.32vw, 1.14rem);
  color: var(--parch-dim); margin: 0 0 2rem; max-width: 48ch;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  margin: 2.6rem 0 0; padding: 1.5rem 0 0;
  list-style: none; border-top: 1px solid var(--line-soft);
}
.hero__proof li { display: flex; flex-direction: column; gap: .18rem; }
.hero__proof strong {
  font-family: var(--display); font-size: 1.9rem; font-weight: 500; color: var(--gold-lit);
  line-height: 1;
}
.hero__proof span { font-size: .8rem; letter-spacing: .06em; color: var(--parch-mute); }

.hero__art { margin: 0; justify-self: center; }
.constellation { width: min(340px, 62vw); filter: drop-shadow(0 0 40px rgba(201, 154, 63, .25)); }
.constellation__lines path { stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.6s var(--ease) .5s forwards; }
.constellation__stars circle { opacity: 0; animation: pop .5s var(--ease) forwards; }
.constellation__stars circle:nth-child(1) { animation-delay: 1.1s; }
.constellation__stars circle:nth-child(2) { animation-delay: 1.3s; }
.constellation__stars circle:nth-child(3) { animation-delay: 1.5s; }
.constellation__stars circle:nth-child(4) { animation-delay: 1.7s; }
.constellation__stars circle:nth-child(5) { animation-delay: 1.9s; }
.constellation__stars circle:nth-child(6) { animation-delay: 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; z-index: 1;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 6px; margin-left: -1px;
  background: var(--gold); border-radius: 2px;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Секции ──────────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 11vw, 130px) 0; }
.section--trust { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.section--experts { background: var(--ink-2); }
.section--steps { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.section--form { background: var(--ink); }
.section--faq { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }

/* тонкая гравюрная линейка между секциями */
.section + .section::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

/* Ширина задаётся в rem, а не в ch: ch считается от кегля самого блока
   (наследованные ~16px), тогда как заголовок внутри набран втрое крупнее,
   колонка выходила ~200px, и h2 рассыпался в лесенку по одному слову. */
.sect-head { position: relative; margin-bottom: clamp(40px, 6vw, 68px); max-width: min(100%, 34rem); }
.sect-head h2 { font-size: clamp(1.95rem, 3.5vw, 3.1rem); text-wrap: balance; }
.sect-head__sub {
  margin: 1.1rem 0 0; max-width: 52ch; color: var(--parch-dim); font-size: .98rem;
}
.sect-head--center { margin-inline: auto; text-align: center; max-width: min(100%, 38rem); }
.sect-head--center .sect-head__sub { margin-inline: auto; }
.sect-head--center .numeral { position: static; display: block; margin: 0 auto .6rem; }

.numeral {
  display: block; margin-bottom: .8rem;
  font-family: var(--display); font-size: .95rem; letter-spacing: .3em;
  color: var(--gold-deep);
}
.numeral::after {
  content: ""; display: inline-block; width: 34px; height: 1px;
  margin-left: .7em; vertical-align: middle; background: var(--line);
}

/* ── Блок доверия ────────────────────────────────────────── */
.trust__lead {
  font-family: var(--display); font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5; color: var(--parch-dim);
  max-width: 62ch; margin: 0 0 clamp(38px, 5vw, 60px);
}
.trust__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line-soft);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border: 1px solid var(--line-soft);
}
.trust__card {
  background: var(--ink-2); padding: clamp(24px, 3vw, 34px);
  transition: background-color .4s var(--ease);
}
.trust__card:hover { background: var(--veil); }
.trust__card h3 { font-size: 1.28rem; margin: 1rem 0 .5rem; }
.trust__card p { margin: 0; font-size: .9rem; color: var(--parch-mute); }
.ico {
  width: 28px; height: 28px; fill: none; stroke: var(--gold);
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Эксперты ────────────────────────────────────────────── */
.experts {
  display: grid; gap: clamp(18px, 2.2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
/* Пять карточек: 3 сверху, 2 по центру снизу. Ширина у всех одинаковая,
   портретные фото людей должны читаться в одном масштабе, иначе один эксперт
   визуально «главнее» другого. */
@media (min-width: 900px) {
  .experts { grid-template-columns: repeat(6, 1fr); }
  .expert { grid-column: span 2; }
  /* Пятеро: 3 сверху, 2 по центру снизу */
  .experts[data-count="5"] .expert:nth-child(4) { grid-column: 2 / span 2; }
  .experts[data-count="5"] .expert:nth-child(5) { grid-column: 4 / span 2; }
  /* Четверо: два ряда по двое, ровнее, чем 3 + 1 с дырой в ряду */
  .experts[data-count="4"] .expert { grid-column: span 3; }
}

.expert {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--veil), var(--ink-2));
  border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s var(--ease);
}
.expert:hover {
  transform: translateY(-6px); border-color: var(--line);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .9), 0 0 0 1px rgba(216, 180, 95, .08);
}
/* Портрет 4:5, под то, как людей реально фотографируют.
   С горизонтальным кадром от вертикального снимка оставалась узкая полоска. */
.expert__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--veil-2); }
.expert__photo {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.03);
  transition: transform .7s var(--ease), filter .7s;
}
.expert:hover .expert__photo { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.expert__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 12, 23, .55) 78%, rgba(14, 12, 23, .95));
}
.expert__badge {
  position: absolute; z-index: 1; left: 14px; bottom: 12px;
  display: inline-flex; align-items: center; gap: .4em;
  padding: .34em .7em; border-radius: 100px;
  background: rgba(8, 7, 13, .68); border: 1px solid var(--line);
  font-size: .78rem; color: var(--gold-lit);
  backdrop-filter: blur(6px);
}
.expert__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 28px); }
.expert__name { font-size: 1.6rem; margin-bottom: .18rem; }
.expert__spec {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem;
}
.expert__bio { margin: 0 0 1.2rem; font-size: .9rem; color: var(--parch-mute); }
.expert__tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.expert__tags li {
  font-size: .74rem; padding: .3em .7em;
  border: 1px solid var(--line-soft); border-radius: 100px; color: var(--parch-dim);
}
.expert__cta { margin-top: auto; }

/* ── Как это работает ────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(24px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: 2.6rem; border-top: 1px solid var(--line-soft); }
.step::before {
  content: ""; position: absolute; inset: -1px auto auto 0; width: 34px; height: 2px;
  background: var(--gold);
}
.step__num {
  font-family: var(--display); font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold-deep);
  position: absolute; top: 1.1rem; right: 0; opacity: .55;
}
.step h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.step p { margin: 0; font-size: .9rem; color: var(--parch-mute); }

/* ── Форма ───────────────────────────────────────────────── */
.formcard {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 180, 95, .07), transparent 60%),
    linear-gradient(180deg, var(--veil), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 40px 90px -50px #000;
}
/* гравюрные уголки */
.formcard__corner { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.formcard__corner--tl { top: 10px; left: 10px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.formcard__corner--br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

.form { display: grid; gap: 1.15rem; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; }
.field label {
  font-size: .82rem; letter-spacing: .04em; color: var(--parch-dim);
}
.field label i { color: var(--ember); font-style: normal; }
.field label .opt { color: var(--parch-mute); }

.field input, .field textarea, .select select {
  width: 100%; padding: .92em 1em;
  font: 400 .98rem/1.45 var(--body); color: var(--parch);
  background: rgba(8, 7, 13, .55);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 235, 221, .3); }
.field input:focus, .field textarea:focus, .select select:focus {
  outline: none; border-color: var(--gold);
  background: rgba(8, 7, 13, .8);
  box-shadow: 0 0 0 3px rgba(216, 180, 95, .14);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--ember); }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 1.05em; top: 50%; width: 7px; height: 7px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select { padding-right: 2.6em; cursor: pointer; }
.select select option { background: var(--veil-2); color: var(--parch); }

.field__err { margin: 0; font-size: .8rem; color: var(--ember); min-height: 0; }
.field__err:empty { display: none; }

.check {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem;
  align-items: start; cursor: pointer; margin-top: .3rem;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 20px; height: 20px; margin-top: 2px; flex: none;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(8, 7, 13, .55);
  display: grid; place-items: center;
  transition: background-color .25s, border-color .25s;
}
.check__box::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid #241a07; border-bottom: 2px solid #241a07;
  transform: rotate(-45deg) scale(.4); opacity: 0;
  transition: opacity .2s, transform .2s var(--ease);
}
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-lit); outline-offset: 3px; }
.check__text { font-size: .82rem; line-height: 1.5; color: var(--parch-mute); }
.check__text a { color: var(--parch-dim); text-underline-offset: 3px; }
.check__text a:hover { color: var(--gold-lit); }
.check.is-invalid .check__box { border-color: var(--ember); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: .5rem; }
#submitBtn[disabled] { opacity: .7; pointer-events: none; }
.btn__spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(36,26,7,.35); border-top-color: #241a07; border-radius: 50%; animation: spin .7s linear infinite; }
#submitBtn.is-busy .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__foot {
  margin: .2rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--parch-mute);
  display: flex; align-items: flex-start; gap: .6rem;
}
.form__error { margin: 0; color: var(--ember); font-size: .85rem; }
.form__error:empty { display: none; }

/* Альтернатива форме: написать первым, не оставляя номер */
.formcard__alt {
  margin: 1.6rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: .86rem; line-height: 1.55; color: var(--parch-mute); text-align: center;
}
.formcard__alt a {
  color: var(--gold); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 4px; white-space: nowrap;
}
.formcard__alt a:hover { color: var(--gold-lit); text-decoration-color: var(--gold); }

.badge18 {
  flex: none; display: inline-grid; place-items: center;
  min-width: 30px; padding: .18em .45em;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: .7rem; letter-spacing: .06em; color: var(--gold);
}

/* экран благодарности (сценарий 3.2) */
.thanks { text-align: center; padding: clamp(10px, 3vw, 26px) 0; animation: fadeUp .6s var(--ease) both; }
.thanks__mark { width: 62px; height: 62px; margin: 0 auto 1.4rem; color: var(--gold); }
.thanks h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.thanks__text { margin: 0 auto 1rem; max-width: 42ch; color: var(--parch-dim); }
.thanks__text strong { color: var(--gold-lit); font-weight: 500; }
.thanks__hint { margin: 0 auto; max-width: 40ch; font-size: .85rem; color: var(--parch-mute); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.42rem);
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-lit); }
.faq__item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq__body { padding: 0 2rem 1.5rem 0; animation: fadeUp .4s var(--ease) both; }
.faq__body p { margin: 0; color: var(--parch-mute); font-size: .93rem; }

/* ── Подвал ──────────────────────────────────────────────── */
.footer { background: var(--ink); border-top: 1px solid var(--line-soft); padding: clamp(40px, 6vw, 66px) 0 calc(30px + env(safe-area-inset-bottom)); }
.footer__inner {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: start;
}
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand p { margin: .9rem 0 0; font-size: .8rem; color: var(--parch-mute); max-width: 48ch; }
.footer__links { display: grid; gap: .6rem; font-size: .85rem; }
.footer__links a { color: var(--parch-dim); text-decoration: none; text-underline-offset: 4px; }
.footer__links a:hover { color: var(--gold-lit); text-decoration: underline; }
.footer__meta { display: flex; align-items: center; gap: .8rem; font-size: .8rem; color: var(--parch-mute); }

/* ── Липкая мобильная CTA ────────────────────────────────── */
.stickycta {
  position: fixed; z-index: 45; inset: auto 0 0;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(14, 12, 23, .93);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--parch-dim);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.stickycta > span { min-width: 0; }
/* подпись ужимается, кнопка, нет: разорванный надвое призыв выглядит небрежно */
.stickycta .btn { flex: none; white-space: nowrap; padding-inline: 1.1em; }
.stickycta.is-on { transform: translateY(0); }
@media (max-width: 720px) {
  .stickycta { display: flex; }
  .topbar__note, .topbar .btn { display: none; }
  .hero__proof { gap: 1.4rem 2rem; }
  .hero__art { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 108px; }
}

/* ── Появление при скролле ───────────────────────────────── */
/* Прячем блоки только если JS жив: иначе при сбое скрипта страница
   осталась бы пустой, а это рекламный трафик.
   Видимое состояние задаётся обычными свойствами, а не «застывшей» анимацией:
   в фоновой или троттлящейся вкладке анимации не проигрываются, и с
   `animation: ... forwards` контент так и остался бы с opacity 0. */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }
/* Документ скрыт, переходы заморожены, показываем всё без эффекта */
.no-anim .reveal, .no-anim .reveal.is-in {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
/* То же и для рисованного созвездия: без проигранной анимации оно осталось бы пустым */
.no-anim .constellation__lines path { stroke-dashoffset: 0; }
.no-anim .constellation__stars circle { opacity: 1; animation: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .constellation__lines path { stroke-dashoffset: 0; }
  .constellation__stars circle { opacity: 1; }
}

::selection { background: var(--gold); color: #241a07; }

/* ══ Правовые документы ═══════════════════════════════════ */
.legal { padding: clamp(56px, 9vw, 100px) 0 clamp(48px, 7vw, 88px); }
.legal__back {
  display: inline-block; margin-bottom: 2.2rem;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.legal__back:hover { color: var(--gold-lit); }
.legal h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; }
.legal__updated {
  margin: .9rem 0 0; font-size: .82rem; letter-spacing: .06em; color: var(--parch-mute);
}
.legal__body { margin-top: clamp(32px, 4.5vw, 52px); }
.legal__lead {
  font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.5; color: var(--parch-dim);
  padding-bottom: 1.8rem; margin: 0 0 2.4rem;
  border-bottom: 1px solid var(--line);
}
.legal__body h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  margin: 2.6rem 0 .9rem; color: var(--parch);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { margin: 0 0 1rem; color: var(--parch-dim); font-size: .95rem; }
.legal__body ul { margin: 0 0 1.3rem; padding-left: 1.1rem; }
.legal__body li {
  margin-bottom: .55rem; color: var(--parch-dim); font-size: .95rem;
  padding-left: .3rem;
}
.legal__body li::marker { color: var(--gold-deep); }
.legal__body strong { color: var(--parch); font-weight: 500; }
.legal__body a { color: var(--gold); text-underline-offset: 3px; }
.legal__body a:hover { color: var(--gold-lit); }

/* врезка с телефонами кризисной помощи, её нельзя пролистать не заметив */
.legal__callout {
  border-left: 2px solid var(--ember);
  background: rgba(194, 112, 90, .07);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--r) var(--r) 0;
  margin: 1.6rem 0 2rem !important;
}
.legal__foot { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
