/* ==========================================================================
   Федерация ИИ — дизайн-система
   Токены сняты с живого рендера макета (computed styles), не «на глаз».
   ========================================================================== */

:root {
  /* Цвета */
  --navy: #0c1754;          /* заголовки, тёмные карточки, футер */
  --cobalt: #2545ff;        /* единственный акцент: кнопки, ссылки */
  --charcoal: #171417;      /* основной текст */
  --canvas: #f9f8f6;        /* фон страницы */
  --paper: #ffffff;         /* карточки, поля ввода */
  --cream: #f0e9e1;         /* тёплые хайрлайны вместо серых */
  --graphite: #222222;      /* второстепенный текст, навигация */
  --stone: #969696;         /* подписи, плейсхолдеры */
  --smoke: #cccccc;         /* границы полей */
  --lavender: #eaebf8;      /* мягкие подложки бейджей */

  /* Фирменное золото СКФ (с логотипа) — работает только на тёмном */
  --gold: #d9ab2e;
  --gold-deep: #b8890c;
  --gold-light: #f0cf62;
  --gold-grad: linear-gradient(135deg, #b8890c 0%, #e8c74a 45%, #f5dd8a 100%);

  /* Пастель отзывов */
  --quote-1: #d9d4ff;
  --quote-2: #cff9ff;
  --quote-3: #ffc13a;
  --quote-4: #ffb9df;

  /* Шрифты */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-head: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Раскладка */
  --container: 1280px;
  --page-pad: 40px;
  --gap-s: 8px;
  --gap-m: 24px;
  --gap-ml: 40px;
  --gap-l: 48px;
  --gap-xl: 56px;
  --gap-xxl: 80px;

  /* Радиусы */
  --r-card: 16px;
  --r-img: 24px;
  --r-pill: 100px;

  /* Тени: три уровня, всегда сине-чёрные — держат теплоту макета */
  --sh-1: 0 1px 2px rgba(12, 23, 84, .04), 0 2px 8px rgba(12, 23, 84, .04);
  --sh-2: 0 4px 24px rgba(12, 23, 84, .08);
  --sh-3: 0 18px 48px rgba(12, 23, 84, .12), 0 2px 8px rgba(12, 23, 84, .06);
  --sh-cobalt: 0 8px 24px rgba(37, 69, 255, .28);
  /* Внутренняя подсветка сверху — карточка перестаёт быть «плоским прямоугольником» */
  --edge: inset 0 1px 0 rgba(255, 255, 255, .9);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Никаких задержек по тапу и серых вспышек на мобильном */
a, button, input, label, summary, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 69, 255, .12);
}

/* Sticky-шапка не должна накрывать якорь при переходе */
[id] { scroll-margin-top: 84px; }

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

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

button { font: inherit; cursor: pointer; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  margin: 0;
  color: var(--charcoal);
  /* заголовок не должен заканчиваться одиноким словом на строке */
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

h1 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--navy);
}

h2 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
h4 { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }

/* Подпись брендового курсива — сигнатура макета.
   Playfair крупнее по очку, чем Onest: гасим на 4%, иначе перевешивает строку. */
.italic {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.96em;
  letter-spacing: 0;
}

/* Золотая надпись — только на тёмно-синих поверхностях */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0; }
.lead { font-size: 20px; line-height: 1.5; }
.muted { color: var(--stone); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0;
}
.eyebrow.on-dark { color: #fff; }
.eyebrow.on-navy { color: var(--navy); }

/* ---------- Раскладка ---------- */
.pad-global { padding-left: var(--page-pad); padding-right: var(--page-pad); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.section { position: relative; }
.bg-canvas { background: var(--canvas); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-paper { background: var(--paper); }

.sp-m { height: var(--gap-m); }
.sp-ml { height: var(--gap-ml); }
.sp-l { height: var(--gap-l); }
.sp-xxl { height: var(--gap-xxl); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-l); }
.grid-2.tight { gap: var(--gap-m); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-m); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-m); }

.vstack { display: flex; flex-direction: column; }
.vstack.g8 { gap: 8px; }
.vstack.g24 { gap: var(--gap-m); }
.vstack.g40 { gap: var(--gap-ml); }
.center-col { justify-content: center; }
.text-center { text-align: center; }
.hstack { display: flex; align-items: center; gap: var(--gap-m); }
.hstack.wrap { flex-wrap: wrap; }

.text-navy, .text-navy h1, .text-navy h2, .text-navy h3, .text-navy p { color: var(--navy); }
.on-dark, .on-dark h2, .on-dark h3, .on-dark p { color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  padding: 11.2px 32px;
  border-radius: var(--r-pill);
  border: 2px solid var(--cobalt);
  background: var(--cobalt);
  color: #fff;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #1b36d6; border-color: #1b36d6; box-shadow: var(--sh-cobalt); }

/* Видимый фокус — у всего, что кликается. Мышью не мешает, с клавиатуры спасает. */
.btn:focus-visible,
.navbar__links a:focus-visible,
.navbar__login:focus-visible,
.link-arrow:focus-visible,
.faq__q:focus-visible,
.steps-tabs button:focus-visible,
.article-card:focus-visible,
.next-links a:focus-visible,
.chat__chips button:focus-visible,
.chat__close:focus-visible,
.brand:focus-visible,
.footer a:focus-visible,
.breadcrumbs a:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-color: var(--navy); }

.btn.small { padding: 8px 24px; }

.btn.ghost { background: transparent; color: var(--cobalt); }
.btn.ghost:hover { background: var(--lavender); border-color: var(--cobalt); }

.btn.inverted { background: #fff; color: var(--cobalt); border-color: #fff; }
.btn.inverted:hover { background: var(--lavender); border-color: var(--lavender); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cobalt); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.link-arrow:hover { border-bottom-color: var(--cobalt); gap: 12px; }

/* Строка доверия под главной кнопкой */
.trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px; color: var(--stone);
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { flex: none; color: var(--success, #157347); }

/* ---------- Шапка ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--canvas);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap-m); height: 60px;
}
/* Знак и название стоят на одной оптической линии.
   Пробовали лок по основанию башни (align-items: baseline) — название
   проваливалось относительно соседних слов, вернули центрирование. */
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: auto; height: 32px; flex: none; }
.brand__name {
  font-family: var(--f-head); font-weight: 600; font-size: 20px; line-height: 1;
  letter-spacing: -0.025em; color: var(--navy);
  /* компенсируем нижний свес знака, чтобы текст сел ровно по центру логотипа */
  padding-top: 2px;
}
.footer .brand__name { color: #fff; }
.navbar__menu { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.navbar__links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.navbar__links a {
  display: block; padding: 18px 16px; font-size: 16px; color: var(--graphite);
}
.navbar__links a:hover { color: var(--cobalt); }
.navbar__actions { display: flex; align-items: center; gap: var(--gap-m); }
.navbar__login { font-weight: 500; color: var(--charcoal); padding: 4px 0; }
.navbar__login:hover { color: var(--cobalt); }
.navbar__burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  align-items: center; justify-content: center;
}
.navbar__burger span, .navbar__burger span::before, .navbar__burger span::after {
  display: block; width: 22px; height: 2px; background: var(--charcoal); content: '';
  position: relative;
}
.navbar__burger span::before { position: absolute; top: -7px; }
.navbar__burger span::after { position: absolute; top: 7px; }

/* ---------- Герой ---------- */
.hero__grid { grid-template-columns: 616fr 616fr; align-items: center; }
.hero p { font-size: 16px; line-height: 1.5; }

/* Макет дашборда (заглушка — заменяется картинкой) */
.mock-wrap { position: relative; }
.mock-wrap::before {
  content: '';
  position: absolute; left: -46px; top: 40px; bottom: 40px; width: 96px;
  background: var(--navy); border-radius: 10px;
  transform: rotate(-7deg);
}
.mock {
  position: relative; z-index: 1;
  border-radius: var(--r-img);
  background: var(--paper);
  border: 1px solid var(--cream);
  box-shadow: var(--sh-3), var(--edge);
  font-size: 12px;
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfaf9 100%);
  border-bottom: 1px solid var(--cream);
}
.mock__row { display: flex; gap: 20px; align-items: center; padding: 18px 18px 6px; }
.mock__chart { flex: 1 1 auto; min-width: 0; }
.mock__chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 11px; color: var(--stone); margin-bottom: 2px;
}
.mock__chart-head b { font-size: 12px; color: var(--navy); font-variant-numeric: tabular-nums; }
.mock__offers { padding: 4px 18px 18px; }
.mock__offers .shot__row { padding: 9px 2px; }
.mock__offers .shot__row.is-best { padding-left: 8px; padding-right: 8px; }
.mock__gauge { flex: none; position: relative; width: 86px; text-align: center; }
.mock__gauge-val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.05;
}
.mock__gauge b { display: block; font-family: var(--f-head); font-size: 26px; letter-spacing: -0.03em; color: var(--navy); }
.mock__gauge span { font-size: 10px; }
.mock__more {
  border-top: 1px solid var(--cream);
  padding: 12px 18px 16px;
  font-size: 12px; color: var(--cobalt); font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.mock__more::after { content: '→'; }

/* ---------- Бегущая строка логотипов ---------- */
.logos { display: flex; flex-direction: column; align-items: center; gap: var(--gap-m); }

.ticker {
  width: 100%; overflow: hidden; position: relative; margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: ticker-run 46s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes ticker-run { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Каждый логотип — одноцветный силуэт: маска + заливка цветом текста.
   Так пёстрые фирменные цвета не спорят с палитрой сайта. */
.ticker__logo {
  flex: none; width: 132px; height: 38px;
  background-color: var(--navy);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  opacity: .5;
  transition: opacity .25s ease, transform .25s ease;
}
.ticker__logo:hover { opacity: .9; transform: translateY(-2px); }
/* узкие/высокие знаки подгоняем индивидуально */
.ticker__logo.is-tall { width: 56px; height: 44px; }
.ticker__logo.is-wide { width: 176px; }

/* ---------- Карточки шагов ---------- */
.step-card {
  background: var(--paper);
  border: 1px solid var(--cream);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1), var(--edge);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 100%;
}
.step-card.dark { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.step-card.dark p { color: var(--lavender); }
.step-card.accent { border: 1.5px solid var(--cobalt); }
.step-card__num {
  width: 32px; height: 32px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  background: var(--cobalt); color: #fff;
  font-family: var(--f-mono); font-size: 14px;
}
.step-card.dark .step-card__num { background: #fff; color: var(--navy); }
.step-card h4 { font-family: var(--f-head); }
.step-card.dark h4 { color: #fff; }
.step-card p { font-size: 15px; line-height: 1.5; color: var(--graphite); }

/* ---------- Тёмный баннер внутри секции ---------- */
.banner {
  background: var(--navy); color: #fff;
  border-radius: var(--r-img); padding: 24px;
  display: flex; align-items: center; gap: var(--gap-l); flex-wrap: wrap;
}
.banner__text { flex: 1 1 480px; }
.banner h4 { color: #fff; margin-bottom: 8px; }
.banner p { color: var(--lavender); font-size: 15px; }

/* ---------- Статистика на тёмном ---------- */
.stat { max-width: 900px; margin: 0 auto; }
.stat h2 { color: #fff; }
.stat .italic { color: #fff; }

/* ---------- Шаги (табы + 2 колонки) ---------- */
.steps-tabs { display: flex; gap: var(--gap-xl); flex-wrap: wrap; }
.steps-tabs button {
  border: 0; background: transparent; padding: 9px 0;
  font-family: var(--f-mono); font-size: 14px; text-transform: uppercase;
  color: var(--stone); display: flex; align-items: center; gap: 8px;
}
.steps-tabs button::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--smoke);
}
.steps-tabs button[aria-selected="true"] { color: var(--cobalt); }
.steps-tabs button[aria-selected="true"]::before { background: var(--cobalt); }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 14px; height: 8px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}

/* Подложка под экран продукта: мягкий цветной ореол, а не заливка кобальтом.
   Правило палитры: кобальт — только акцент, большими полями он дешевеет. */
.panel {
  position: relative;
  border-radius: var(--r-img);
  padding: 28px;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(37, 69, 255, .12) 0%, rgba(37, 69, 255, 0) 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(232, 199, 74, .14) 0%, rgba(232, 199, 74, 0) 60%),
    var(--canvas);
  border: 1px solid var(--cream);
}
.panel.soft {
  background:
    radial-gradient(110% 90% at 80% 0%, rgba(37, 69, 255, .10) 0%, rgba(37, 69, 255, 0) 62%),
    var(--lavender);
}
.panel.paper {
  background:
    radial-gradient(110% 90% at 10% 100%, rgba(12, 23, 84, .06) 0%, rgba(12, 23, 84, 0) 60%),
    var(--paper);
}

/* ---------- Экран продукта («окно приложения») ---------- */
.shot {
  background: var(--paper);
  border: 1px solid var(--cream);
  border-radius: 14px;
  box-shadow: var(--sh-3), var(--edge);
  overflow: hidden;
  font-size: 13px;
  width: 100%;
}
.shot__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfaf9 100%);
  border-bottom: 1px solid var(--cream);
}
.shot__dots { display: flex; gap: 5px; flex: none; }
.shot__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cream); display: block; }
.shot__dots i:first-child { background: #f0d0c4; }
.shot__title {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--stone);
}
.shot__badge {
  margin-left: auto; flex: none;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em;
  background: var(--lavender); color: var(--navy);
  border-radius: var(--r-pill); padding: 4px 9px;
}
.shot__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* строка поиска внутри экрана */
.shot__search {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--smoke); border-radius: 10px;
  padding: 10px 12px; color: var(--charcoal); background: var(--canvas);
}
.shot__search svg { flex: none; color: var(--stone); }

/* чипсы фильтров */
.shot__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shot__chip {
  font-size: 11px; line-height: 1;
  border: 1px solid var(--cream); border-radius: var(--r-pill);
  padding: 6px 10px; color: var(--graphite); background: var(--paper);
}
.shot__chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* строки результатов и таблицы предложений */
.shot__rows { display: flex; flex-direction: column; }
.shot__row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 2px; border-top: 1px solid var(--cream);
}
.shot__row:first-child { border-top: 0; }
.shot__row.is-best {
  background: linear-gradient(90deg, rgba(21, 115, 71, .07), rgba(21, 115, 71, 0));
  border-radius: 8px; padding-left: 8px; padding-right: 8px;
}
.shot__co { display: flex; align-items: center; gap: 9px; min-width: 0; }
.shot__ava {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--lavender); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.shot__name { min-width: 0; }
.shot__name b { display: block; font-size: 12.5px; font-weight: 600; color: var(--charcoal);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot__name span { display: block; font-size: 11px; color: var(--stone); }
.shot__price { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.shot__price b { display: block; font-size: 13px; font-weight: 700; color: var(--charcoal); }
.shot__price span { display: block; font-size: 11px; color: var(--stone); }
.shot__tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; border-radius: var(--r-pill); padding: 3px 8px;
  background: var(--success-bg, #e6f4ea); color: var(--success, #157347);
}
.shot__tag.is-warn { background: #fff4d6; color: #8a6d00; }

/* подсказка ИИ и черновик письма */
.shot__note {
  border: 1px solid var(--cream); border-left: 3px solid var(--cobalt);
  border-radius: 10px; padding: 12px 14px; background: var(--canvas);
  font-size: 12.5px; line-height: 1.55; color: var(--graphite);
}
.shot__note b { color: var(--navy); }
.shot__draft {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 12px 14px; font-size: 12.5px; line-height: 1.55;
}
.shot__draft b { display: block; font-size: 11px; color: var(--gold-light); margin-bottom: 4px;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.shot__actions { display: flex; gap: 8px; padding-top: 2px; }
.shot__btn {
  font-size: 11.5px; border-radius: var(--r-pill); padding: 7px 14px;
  background: var(--cobalt); color: #fff; border: 0;
}
.shot__btn.ghost { background: transparent; color: var(--cobalt); border: 1px solid var(--cobalt); }

/* Пузырь-шаг (используется на странице «Как работает») */
.bubble {
  background: var(--paper); color: var(--charcoal);
  border: 1px solid var(--cream); border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.5;
  box-shadow: var(--sh-1), var(--edge);
}
/* Надзаголовок шага. Моноширинный в 10 px давал мыло на кириллице —
   ставим гротеск покрупнее и плотнее по цвету, буквы читаются чётко. */
.bubble b {
  display: block; margin-bottom: 4px;
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt);
}
.bubble.mine { background: var(--navy); border-color: var(--navy); color: #fff; margin-left: 40px; }
.bubble.mine b { color: var(--gold-light); }

/* hidden обязан побеждать display у компонентов — иначе скрытые состояния видны */
[hidden] { display: none !important; }

/* ---------- Карта на странице «О компании» ---------- */
.map {
  position: relative; overflow: hidden;
  border: 1px solid var(--cream); border-radius: var(--r-img);
  background: var(--paper); box-shadow: var(--sh-1), var(--edge);
}
.map__frame { display: block; width: 100%; height: 420px; border: 0; }
.map__facade {
  position: relative; height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 32px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(37, 69, 255, .10) 0%, rgba(37, 69, 255, 0) 60%),
    radial-gradient(90% 80% at 90% 90%, rgba(232, 199, 74, .12) 0%, rgba(232, 199, 74, 0) 60%),
    var(--canvas);
}
/* сетка «кварталов» — намёк на карту, пока она не загружена */
.map__facade::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--cream) 1px, transparent 1px),
    linear-gradient(90deg, var(--cream) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 100%);
}
.map__facade > * { position: relative; }
.map__pin {
  width: 44px; height: 44px; border-radius: 50% 50% 50% 4px;
  background: var(--cobalt); transform: rotate(-45deg);
  box-shadow: var(--sh-cobalt);
  display: flex; align-items: center; justify-content: center;
}
.map__pin i {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; display: block;
}
.map__addr { font-size: 15px; line-height: 1.5; color: var(--charcoal); max-width: 420px; }
.map__addr b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--navy); }
.map__hint { font-size: 12px; color: var(--stone); max-width: 460px; }

@media (max-width: 560px) {
  .map__frame, .map__facade { height: 320px; }
}

/* мини-полоски прогресса (сколько ответили) */
.shot__meter { height: 5px; border-radius: 3px; background: var(--cream); overflow: hidden; }
.shot__meter i { display: block; height: 100%; border-radius: 3px; background: var(--cobalt); }
.shot__legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--stone); }

/* ---------- Отзывы ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-m); }
.quote {
  background: var(--quote-1); color: var(--charcoal); box-shadow: var(--sh-1);
  border-radius: 24px 24px 0 24px; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 12px; min-height: 192px;
}
.quote.c2 { background: var(--quote-2); border-radius: 0 24px 24px 24px; }
.quote.c3 { background: var(--quote-3); border-radius: 24px 24px 24px 0; }
.quote.c4 { background: var(--quote-4); border-radius: 24px 24px 0 24px; }
.quote__score {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(12, 23, 84, .65);
  padding-bottom: 12px; border-bottom: 1px solid rgba(12, 23, 84, .14);
}
.quote p { font-size: 14px; line-height: 1.55; }
.quote p b {
  display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(12, 23, 84, .55); margin-bottom: 2px;
}
.quote p br { display: none; }
.quote p + p { margin-top: 10px; }
.quote cite {
  font-style: normal; font-size: 12px; line-height: 1.4;
  color: var(--navy); font-weight: 500;
  margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(12, 23, 84, .14);
}

/* ---------- Итоговый CTA ---------- */
.cta-card {
  border-radius: var(--r-img); padding: 56px 48px;
  background: linear-gradient(120deg, var(--navy) 0%, #1a2a86 55%, #3350ff 100%);
  color: #fff;
}
.cta-card h2 { color: #fff; max-width: 720px; }

/* ---------- Статьи ---------- */
.article-card {
  background: var(--paper); border: 1px solid var(--cream); border-radius: var(--r-card);
  box-shadow: var(--sh-1), var(--edge);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 100%;
}
.article-card:hover { border-color: var(--cobalt); }
.tag {
  align-self: flex-start; background: var(--lavender); color: var(--navy);
  border-radius: var(--r-card); padding: 4px 10px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
}
.article-card h4 { font-size: 20px; line-height: 1.3; }
.article-card .link-arrow { margin-top: auto; font-size: 15px; }

/* ---------- FAQ ---------- */
/* Одна колонка по центру: заголовок сверху, под ним вопросы */
.faq__grid { display: block; }
.faq__side {
  max-width: 720px; margin: 0 auto var(--gap-l);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.faq__list { display: flex; flex-direction: column; gap: 8px; max-width: 860px; margin: 0 auto; }
.faq__item { background: var(--paper); border-radius: var(--r-card); border: 1px solid var(--cream); box-shadow: var(--sh-1); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; text-align: left;
  padding: 24px; font-size: 16px; font-weight: 500; color: var(--charcoal);
}
.faq__q::after {
  content: ''; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq__item.open .faq__q::after { transform: rotate(-135deg) translateY(-3px); }
/* Высоту открытого ответа проставляет JS по факту содержимого (app.js).
   600 px здесь — только запасной вариант, если скрипт не выполнился:
   ответ раскроется без анимации, но целиком, а не обрежется. */
.faq__a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .25s cubic-bezier(.22,.61,.36,1), padding .25s ease; }
.faq__item.open .faq__a { max-height: 600px; padding: 0 24px 24px; }
.faq__a p { font-size: 16px; line-height: 1.6; color: var(--graphite); }

/* ---------- Футер ---------- */
.footer { background: var(--navy); color: var(--canvas); padding: 80px 0 40px; }
.footer a { color: rgba(249, 248, 246, .8); }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-l); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-m); }
.footer__col h5 {
  margin: 0 0 16px; font-family: var(--f-head); font-size: 16px; font-weight: 600; color: #fff;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.footer__form input {
  flex: 1 1 200px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-card); padding: 12px 16px; color: #fff; font: inherit;
}
.footer__form input::placeholder { color: rgba(255, 255, 255, .5); }
.footer__req { margin-top: 56px; }
.footer__req .gold-rule { margin-bottom: 28px; }
.footer__req-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-m);
  font-size: 13px; line-height: 1.6; color: rgba(249, 248, 246, .7);
}
.footer__req-grid b { color: #fff; font-weight: 500; }
.footer__req-grid a { color: rgba(249, 248, 246, .85); }
.footer__req-grid a:hover { color: var(--gold-light); }

.footer__legal {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap-m); flex-wrap: wrap;
  font-size: 13px; color: rgba(249, 248, 246, .7);
}
.footer .brand__name { color: #fff; }

/* ---------- Чат-виджет ---------- */
.chat {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 360px; max-width: calc(100vw - 32px); z-index: 50;
  background: var(--paper); border: 1px solid var(--cream); border-radius: var(--r-card);
  box-shadow: var(--sh-3), var(--edge); padding: 16px;
}
.chat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chat__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cobalt); flex: none; }
.chat__head p { font-size: 14px; line-height: 1.35; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__chips button {
  background: var(--canvas); color: var(--charcoal); border: 1px solid var(--cream);
  border-radius: var(--r-pill); padding: 10px 14px; font-size: 13px;
}
.chat__chips button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chat__close {
  position: absolute; top: 4px; right: 4px; border: 0; background: transparent;
  color: var(--stone); font-size: 18px; line-height: 1;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
}
.chat__close:hover { background: var(--canvas); color: var(--charcoal); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  font-size: 13px; color: var(--stone);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: '/'; color: var(--smoke); }
.breadcrumbs a { color: var(--graphite); }
.breadcrumbs a:hover { color: var(--cobalt); }
.breadcrumbs [aria-current="page"] { color: var(--stone); }

/* ---------- Блок перелинковки ---------- */
.next-links {
  border-top: 1px solid var(--cream); padding-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-m);
}
.next-links a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--cream); border-radius: var(--r-card);
  background: var(--paper); transition: border-color .2s ease, transform .2s ease;
}
.next-links a:hover { border-color: var(--cobalt); transform: translateY(-3px); }
.next-links b { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--navy); }
.next-links span { font-size: 14px; line-height: 1.5; color: var(--graphite); }

/* ---------- Таблица реквизитов ---------- */
.req-table {
  background: var(--paper); border: 1px solid var(--cream); border-radius: var(--r-card);
  padding: 8px 32px;
}
.req-table dl {
  display: grid; grid-template-columns: 280px 1fr; margin: 0;
  font-size: 15px; line-height: 1.6;
}
.req-table dt {
  padding: 14px 0; color: var(--stone); border-bottom: 1px solid var(--cream);
}
.req-table dd {
  padding: 14px 0; margin: 0; color: var(--charcoal); border-bottom: 1px solid var(--cream);
}
.req-table dl > dt:nth-last-of-type(1), .req-table dl > dd:nth-last-of-type(1) { border-bottom: 0; }
.req-table a { color: var(--cobalt); }
.req-table a:hover { text-decoration: underline; }

/* ---------- Формы авторизации ---------- */
.auth { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 56px 0; }
.auth__card {
  width: 100%; max-width: 460px; background: var(--paper);
  border: 1px solid var(--cream); border-radius: var(--r-img); padding: 40px;
}
.auth__card h1 { font-size: 40px; line-height: 1.05; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field label { font-size: 14px; font-weight: 500; color: var(--graphite); }
.field input {
  border: 1px solid var(--smoke); border-radius: var(--r-card);
  padding: 13px 16px; font: inherit; background: var(--canvas); color: var(--charcoal);
}
.field input:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.auth .btn { width: 100%; margin-top: 24px; }
.auth__alt { display: flex; gap: 8px; margin-top: 16px; }
.auth__alt .btn { margin-top: 0; }
.auth__note { margin-top: 20px; font-size: 13px; color: var(--stone); line-height: 1.5; }
.notice {
  margin-top: 20px; background: var(--lavender); color: var(--navy);
  border-radius: var(--r-card); padding: 14px 16px; font-size: 14px; line-height: 1.5;
}

/* ---------- Согласия в формах (152-ФЗ) ---------- */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--graphite);
}
.consent input[type="checkbox"] {
  flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  accent-color: var(--cobalt); cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--cobalt-hover); }
.consent .req { color: var(--danger, #b3261e); }
.consent.is-error { color: #b3261e; }
.consent.is-error input[type="checkbox"] { outline: 2px solid #b3261e; outline-offset: 2px; }

.footer .consent { color: rgba(249, 248, 246, .7); }
.footer .consent a { color: rgba(249, 248, 246, .9); }
.footer .consent a:hover { color: var(--gold-light); }

.form-error {
  margin-top: 10px; font-size: 13px; color: #b3261e;
  background: #fdecea; border-radius: 10px; padding: 8px 12px;
}
.footer .form-error { background: rgba(255, 138, 138, .12); color: #ff8a8a; }

/* ---------- Cookie-баннер ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 780px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--cream); border-radius: var(--r-card);
  box-shadow: var(--sh-3), var(--edge);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie p { font-size: 14px; line-height: 1.5; color: var(--graphite); flex: 1 1 380px; margin: 0; }
.cookie a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 9px 20px; font-size: 14px; }
.cookie[hidden] { display: none; }

@media (max-width: 560px) {
  .cookie { padding: 16px; gap: 14px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

/* ---------- Юридические документы ---------- */
.legal { max-width: 820px; }
.legal h2 {
  font-size: 26px; line-height: 1.3; letter-spacing: -0.02em;
  margin: 40px 0 12px; color: var(--navy);
}
.legal h3 { font-size: 19px; line-height: 1.4; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--charcoal); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.legal__meta {
  font-size: 13px; color: var(--stone); border-bottom: 1px solid var(--cream);
  padding-bottom: 16px; margin-bottom: 8px;
}
.legal__toc {
  background: var(--paper); border: 1px solid var(--cream); border-radius: var(--r-card);
  padding: 20px 24px; margin: 24px 0 8px;
}
.legal__toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.legal__toc li { margin-bottom: 4px; }

/* ---------- Утилиты доступности ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: 8px; z-index: 100;
  background: var(--cobalt); color: #fff; border-radius: var(--r-pill); padding: 10px 18px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
  transform: translateY(-200%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   МОУШЕН-ГРАФИКА
   Всё на CSS/SVG, без библиотек. Полностью отключается при
   prefers-reduced-motion (блок в самом низу файла).
   ========================================================================== */

/* --- Живой фон героя: два размытых пятна, медленно дышат --- */
.hero { overflow: hidden; }
.aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: .30; will-change: transform;
}
.aurora span:nth-child(1) {
  width: 520px; height: 520px; left: -8%; top: -22%;
  background: radial-gradient(circle, #2545ff 0%, rgba(37,69,255,0) 70%);
  animation: drift-a 22s ease-in-out infinite;
}
.aurora span:nth-child(2) {
  width: 460px; height: 460px; right: 4%; bottom: -28%;
  background: radial-gradient(circle, #e8c74a 0%, rgba(232,199,74,0) 70%);
  animation: drift-b 26s ease-in-out infinite;
  opacity: .26;
}
.aurora span:nth-child(3) {
  width: 380px; height: 380px; left: 42%; top: 8%;
  background: radial-gradient(circle, #0c1754 0%, rgba(12,23,84,0) 70%);
  animation: drift-a 30s ease-in-out infinite reverse;
  opacity: .14;
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-70px, -30px, 0) scale(.92); }
}
.hero .container, .hero .pad-global { position: relative; z-index: 1; }

/* --- Появление блоков при скролле --- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* --- Карточка дашборда: лёгкое дыхание + параллакс плашки --- */
.mock { animation: card-breathe 7s ease-in-out infinite; }
@keyframes card-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -8px, 0); }
}
.mock-wrap::before {
  animation: slab-sway 9s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes slab-sway {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-9.5deg) translateY(10px); }
}

/* --- График рисуется --- */
.mock__line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-line 2.2s cubic-bezier(.55,.1,.25,1) .35s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.mock__area { opacity: 0; animation: fade-in .9s ease 1.6s forwards; }

/* --- Кольцо гейджа заполняется --- */
.mock__ring {
  stroke-dasharray: 207;
  stroke-dashoffset: 207;
  animation: fill-ring 1.6s cubic-bezier(.22,.61,.36,1) .3s forwards;
}
@keyframes fill-ring { to { stroke-dashoffset: 37; } }

/* --- Метрики всплывают по очереди --- */
.mock__metric { opacity: 0; animation: rise .5s ease forwards; }
.mock__metric:nth-child(1) { animation-delay: 1.5s; }
.mock__metric:nth-child(2) { animation-delay: 1.65s; }
.mock__metric:nth-child(3) { animation-delay: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* --- Плашка «Сравнить N предложений»: мягкая пульсация --- */
.mock__pill { animation: pill-pulse 3.4s ease-in-out 2s infinite; }
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 69, 255, .0); }
  40%      { box-shadow: 0 0 0 10px rgba(37, 69, 255, .12); }
  70%      { box-shadow: 0 0 0 16px rgba(37, 69, 255, 0); }
}

/* --- Счётчик цифр (значение подставляет JS) --- */
.counter { font-variant-numeric: tabular-nums; }

/* --- Содержимое панелей проявляется по очереди --- */
.panel .bubble,
.panel .shot__row,
.panel .shot__note,
.panel .shot__draft,
.panel .shot__chip { opacity: 0; transform: translateY(10px); }
.panel.is-in .bubble,
.panel.is-in .shot__row,
.panel.is-in .shot__note,
.panel.is-in .shot__draft,
.panel.is-in .shot__chip { animation: rise .5s cubic-bezier(.22,.61,.36,1) forwards; }
.panel.is-in .bubble:nth-child(2),
.panel.is-in .shot__row:nth-child(2) { animation-delay: .08s; }
.panel.is-in .bubble:nth-child(3),
.panel.is-in .shot__row:nth-child(3) { animation-delay: .16s; }
.panel.is-in .bubble:nth-child(4),
.panel.is-in .shot__row:nth-child(4) { animation-delay: .24s; }
.panel.is-in .bubble:nth-child(5),
.panel.is-in .shot__row:nth-child(5) { animation-delay: .32s; }
.panel.is-in .shot__chip:nth-child(2) { animation-delay: .05s; }
.panel.is-in .shot__chip:nth-child(3) { animation-delay: .10s; }
.panel.is-in .shot__chip:nth-child(4) { animation-delay: .15s; }
.panel.is-in .shot__note { animation-delay: .18s; }
.panel.is-in .shot__draft { animation-delay: .30s; }

/* --- Интерактив: карточки и кнопки отзываются на курсор --- */
.step-card, .article-card, .quote {
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .2s ease;
}
.step-card:hover, .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.quote:hover { transform: translateY(-4px) rotate(-.6deg); }
.btn { transform: translateZ(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Отклик на НАЖАТИЕ, а не на отпускание: палец коснулся — элемент сразу
   отозвался. Раньше это было только у .btn, поэтому на телефоне (где нет
   наведения) табы, чипы и вопросы FAQ на касание не реагировали вовсе —
   до перерисовки интерфейс казался мёртвым. Сдвиг едва заметный: задача
   подтвердить касание, а не устроить представление. */
.steps-tabs button, .chat__chips button, .faq__q,
.next-links a, .article-card, .shot__chip {
  transition: transform 90ms ease-out;
}
.steps-tabs button:active, .chat__chips button:active, .faq__q:active,
.next-links a:active, .article-card:active, .shot__chip:active {
  transform: scale(.985);
}
/* У карточек уже есть подъём по наведению — при нажатии гасим его,
   иначе элемент «уезжает» вверх из-под пальца. */
.next-links a:active, .article-card:active { transform: translateY(0) scale(.985); }

/* --- Золотая нить-разделитель на тёмных блоках --- */
.gold-rule {
  height: 1px; width: 100%; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: .55;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  h1 { font-size: 48px; }
  h2 { font-size: 40px; }
  h3 { font-size: 32px; }
  .grid-4, .quotes, .footer__cols, .footer__req-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar__links a { padding: 18px 10px; font-size: 15px; }
}

@media (max-width: 900px) {
  :root { --page-pad: 20px; --gap-xxl: 56px; }
  .navbar__menu {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    background: var(--canvas); border-bottom: 1px solid var(--cream);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 16px var(--page-pad) 24px;
  }
  .navbar.open .navbar__menu { display: flex; }
  .navbar__links { flex-direction: column; align-items: stretch; }
  .navbar__actions { justify-content: space-between; }
  .navbar__burger { display: flex; }
  .grid-2, .grid-2.tight, .grid-3, .faq__grid { grid-template-columns: 1fr; }
  .next-links { grid-template-columns: 1fr; }
  .req-table { padding: 8px 20px; }
  .req-table dl { grid-template-columns: 1fr; }
  .req-table dt { padding: 12px 0 0; border-bottom: 0; }
  .req-table dd { padding: 2px 0 12px; }
  .hero__grid { grid-template-columns: 1fr; }
  .mock-wrap::before { display: none; }
  .mock__pill { left: auto; right: 16px; bottom: -14px; }
  .faq__side { position: static; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
}

@media (max-width: 560px) {
  /* мелкие подписи внутри экранов продукта — на телефоне не меньше 11 px */
  .shot__badge, .mock__gauge-val .muted { font-size: 11px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 26px; }
  h4 { font-size: 20px; }
  .quotes, .grid-4, .footer__cols, .footer__req-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hstack.wrap .btn { width: auto; }
  .chat { left: 16px; right: 16px; transform: none; width: auto; }
  .auth__card { padding: 24px; }
  .auth__alt { flex-direction: column; }
}

/* Пользователь просил «поменьше движения» — выключаем всю моушен-графику,
   но контент обязан остаться видимым (иначе reveal спрячет полстраницы). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .panel .bubble, .panel .shot__row, .panel .shot__note, .panel .shot__draft,
  .panel .shot__chip, .mock__metric { opacity: 1 !important; transform: none !important; }
  .mock__line, .mock__ring { stroke-dashoffset: 0 !important; }
  .mock__ring { stroke-dasharray: 170 207 !important; }
  .mock__area { opacity: 1 !important; }
  .aurora { display: none; }
  .ticker__track { animation: none !important; }
}

/* Система просит меньше прозрачности: гасим размытые пятна героя и оставляем
   плотный холст. Это ОТДЕЛЬНЫЙ сигнал от «меньше движения» — человек может
   просить убрать полупрозрачность, не отключая анимации. */
@media (prefers-reduced-transparency: reduce) {
  .aurora { display: none; }
  .hero { background: var(--canvas); }
}

/* Просят больше контраста: границы становятся видимыми, приглушённый текст —
   основным, тени убираем (они размывают край карточки). */
@media (prefers-contrast: more) {
  .aurora { display: none; }
  .faq__item, .step-card, .article-card, .next-links a, .auth__card, .req-table {
    border-color: var(--graphite);
    box-shadow: none;
  }
  .muted, .step-card p, .checklist li { color: var(--charcoal); }
  .btn.ghost { border-width: 2px; }
}

/* Число в блоке «почему стройка встаёт»: это главный аргумент страницы —
   даём ему золото бренда и больший кегль, чтобы читалось до текста. */
.stat .counter-hero {
  color: var(--gold-light);
  font-size: 1.35em;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ==========================================================================
   ПОПАП ЗАЯВКИ
   Один шаг: телефон и согласие. Появление — затемнение плюс подъём карточки,
   без прыжков; при системной просьбе «меньше движения» остаётся простая смена
   видимости (правило в самом низу файла действует и здесь).
   ========================================================================== */
.lead-modal { position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 24px; }
.lead-modal[hidden] { display: none; }
.lead-modal__veil { position: absolute; inset: 0; background: rgba(12, 23, 84, .55);
  animation: lead-veil .18s ease-out; }
@keyframes lead-veil { from { opacity: 0; } to { opacity: 1; } }
.lead-modal__card {
  position: relative; width: 100%; max-width: 560px; background: var(--paper);
  border-radius: var(--r-img); padding: 48px; box-shadow: var(--sh-3);
  animation: lead-rise .22s cubic-bezier(.22,.61,.36,1);
}
@keyframes lead-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lead-modal__card h2 { font-size: 32px; line-height: 1.15; margin: 16px 0 12px; color: var(--navy); }
.lead-modal__x {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: 0; background: transparent; border-radius: 50%; font-size: 26px;
  line-height: 1; color: var(--stone); transition: background-color .15s ease, color .15s ease;
}
.lead-modal__x:hover { background: var(--canvas); color: var(--charcoal); }
.lead-modal__form { margin-top: 24px; }
.lead-modal__form .field { margin-bottom: 16px; }
.lead-modal__form label { display: block; font-family: var(--f-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--graphite); margin-bottom: 8px; }
.lead-modal__form input[type="tel"] {
  width: 100%; font-family: var(--f-body); font-size: 18px; padding: 16px 18px;
  border: 1px solid var(--smoke); border-radius: 12px; background: var(--paper); color: var(--charcoal);
}
.lead-modal__form input[type="tel"]:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.lead-modal__submit { width: 100%; margin-top: 8px; padding: 16px 32px; font-size: 17px; }
.lead-modal__note { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--stone); min-height: 20px; }
.lead-modal__note.ok { color: #157347; }
.lead-modal__note.err { color: #b3261e; }
.lead-modal.is-done .lead-modal__form .field,
.lead-modal.is-done .lead-modal__form .consent,
.lead-modal.is-done .lead-modal__submit { display: none; }
body.lead-open { overflow: hidden; }
@media (max-width: 560px) {
  .lead-modal { padding: 12px; }
  .lead-modal__card { padding: 32px 20px; }
  .lead-modal__card h2 { font-size: 26px; }
}
