/* ============================================================
   МАРИНЕРИО 2.0 — слой витрины нового канона (задача 885).
   Дизайн-ДНК: marinerio2-dizain-dna.md (задача 866) §2.
   ------------------------------------------------------------
   Правило файла: ЦВЕТА ТОЛЬКО ТОКЕНАМИ. Значения hex живут
   ровно в трёх блоках ниже (светлая тема, тёмная тема, ветка
   «без JS»). Ниже по файлу — только var(--*). Хардкод цвета —
   стоп-фактор приёмки (дельта шаблонов 866 §1).
   Старый style.css витрины не трогается: 2.0 — отдельный слой.
   ============================================================ */

/* ---------- 1. Токены: одна палитра, две темы ---------- */

:root {
  --bg:         #FAFAF7;
  --surface:    #FFFFFF;
  --line:       #E4E2DA;
  --text:       #16181C;
  --text-2:     #5C6470;
  --accent:     #B8860B;
  --accent-ink: #FFFFFF;
  --ok:         #1F7A4D;
  --btn-ink:    #FFFFFF;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:         #0B0D10;
  --surface:    #12161B;
  --line:       #232A33;
  --text:       #ECEFF3;
  --text-2:     #9AA5B1;
  --accent:     #D4AF37;
  --accent-ink: #10131A;
  --ok:         #4CC38A;
  --btn-ink:    #10131A;
  color-scheme: dark;
}

/* Браузер без JS (инлайн-скрипт темы не отработал): тёмная — базовая,
   светлая — по системной настройке. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:         #0B0D10;
    --surface:    #12161B;
    --line:       #232A33;
    --text:       #ECEFF3;
    --text-2:     #9AA5B1;
    --accent:     #D4AF37;
    --accent-ink: #10131A;
    --ok:         #4CC38A;
    --btn-ink:    #10131A;
    color-scheme: dark;
  }
}

:root {
  /* Метрика, не цвет */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --w-page: 1200px;
  --pad-x: 20px;
  --r-card: 16px;
  --r-ctl: 12px;
  --sect: 56px;          /* вертикальный ритм мобайла */
  --hdr-h: 60px;
  --mcta-h: 74px;        /* высота липкой полосы (см. §8 спеки подвала) */
  --t: 200ms;
}

@media (min-width: 900px) {
  :root { --sect: 112px; --hdr-h: 72px; --mcta-h: 0px; --pad-x: 32px; }
}

/* ---------- 2. База ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--t) linear, color var(--t) linear;
}

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

h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.125rem, 6.2vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2em; }
li { margin-bottom: .4rem; }

@media (min-width: 900px) { h1 { font-weight: 500; } }

a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }

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

.container { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 var(--pad-x); }

.muted   { color: var(--text-2); }
.small   { font-size: 14px; }
.kicker  {
  display: block; margin-bottom: .8rem;
  font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2);
}
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--text-2); max-width: 46ch; }
.src  { display: block; margin-top: .5rem; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: .7rem 1rem; background: var(--surface); color: var(--text);
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- 3. Секции ---------- */

.section { padding: var(--sect) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section--flat { border-top: 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-2); margin-bottom: 0; }

/* ---------- 4. Шапка ---------- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Лёгкая прозрачность шапки (ДНК §2.4) — только там, где браузер умеет
   размывать фон; иначе под шапкой просвечивает текст страницы. */
@supports (backdrop-filter: blur(12px)) {
  .hdr {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(1.3) blur(12px);
  }
}
.hdr-in {
  display: flex; align-items: center; gap: 12px;
  height: var(--hdr-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -.01em; }
/* Временный текстовый знак A.L.E.X. (решение владельца 21.08): типографика ДНК
   §2.2 — тот же системный стек, вес 500, разрядка вместо картинки. Постоянный
   знак рисуется отдельной задачей; осьминог не используется. */
.brand-mark { font-size: 17px; font-weight: 500; letter-spacing: .14em; }
.brand b { font-weight: 500; color: var(--accent); }
.hdr-nav { display: none; margin-left: auto; gap: 22px; }
.hdr-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--text); }
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 900px) { .hdr-tools { margin-left: 22px; } .hdr-nav { display: flex; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: transparent; color: var(--text);
  font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.hdr .btn { display: none; }
@media (min-width: 900px) { .hdr .btn { display: inline-flex; } }
.burger { display: inline-grid; }
@media (min-width: 900px) { .burger { display: none; } }

/* Шторка-меню (мобайл) */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  display: none; flex-direction: column;
  padding: 20px; background: var(--bg);
  overflow-y: auto;
}
.drawer[open], .drawer.open { display: flex; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); }
.drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.drawer nav a {
  padding: 14px 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 28px; }
body.locked { overflow: hidden; }

/* ---------- 5. Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; min-height: 48px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn--primary { background: var(--text); color: var(--btn-ink); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: 15px; }
.btn--wide { width: 100%; }

.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.cta-pair .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta-pair .btn { flex: 0 0 auto; } }

/* ---------- 6. Хиро ---------- */

.hero { padding: calc(var(--sect) * .8) 0 var(--sect); }
/* Кикер, стрелка карточки и звёздочка обязательного поля — мелкий текст.
   Акцент на светлой теме даёт 3,11 (расчёт в протоколе тем) — этого мало для
   мелкого кегля по AA, поэтому мелкое золотом не красим: акцент живёт в
   границах, кнопках и логотипе (для логотипа у WCAG исключение). */
.hero .kicker { color: var(--text-2); }
.hero h1 { max-width: 22ch; }
.hero-grid h1 { max-width: 18ch; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .hero {
    display: flex; align-items: center;
    min-height: calc(100svh - var(--hdr-h)); padding: 72px 0;
  }
  .hero > .container { width: 100%; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
}

/* ---------- 7. Панель штаба (продукт в хиро, реальные данные) ---------- */

.panel {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden;
}
.panel-top {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.panel-rows { margin: 0; padding: 4px 0; list-style: none; }
.panel-rows li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 11px 16px; margin: 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.panel-rows li:last-child { border-bottom: 0; }
.panel-id { color: var(--text-2); font-variant-numeric: tabular-nums; }
.panel-tag { color: var(--text); }
.panel-time { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.panel-foot b { color: var(--text); font-weight: 500; }

/* ---------- 8. Цифры ---------- */

.figs { display: grid; gap: 24px; }
@media (min-width: 720px) { .figs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .figs { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.fig-v {
  display: block; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.05;
}
.fig-l { display: block; margin-top: .5rem; font-size: 15px; color: var(--text); }

/* ---------- 9. Карточки и сетки ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 20px; } }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); transition: border-color var(--t);
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-2); margin-bottom: 0; }
.card p + p { margin-top: .7rem; }
a.card { text-decoration: none; }
a.card .go { margin-top: auto; padding-top: 1rem; color: var(--text); font-size: 15px; }

/* ---------- 10. Список-аккордеон (линии, FAQ, подвал) ---------- */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: 0 0 auto;
  width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg); transition: transform var(--t);
}
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc summary .tag { font-size: 13px; font-weight: 400; color: var(--text-2); }
.acc-body { padding: 0 0 18px; color: var(--text-2); max-width: 70ch; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- 11. Таблицы состава и цен ---------- */

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
table.tbl th, table.tbl td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.tbl th { font-weight: 500; color: var(--text-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
table.tbl td b { font-weight: 500; }

.ladder { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.step--now { border-color: var(--accent); }
.step .price { display: block; font-size: clamp(1.5rem, 3.4vw, 1.875rem); font-weight: 500; letter-spacing: -.02em; margin: .2rem 0 .6rem; }
.step .note { font-size: 15px; color: var(--text-2); }
.step ul { margin: .8rem 0 0; padding-left: 1.1em; font-size: 15px; color: var(--text-2); }

/* ---------- 12. Форма ---------- */

.form-wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.form2 {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.field .req { color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: 14px; color: var(--text-2); }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.form-note { font-size: 14px; color: var(--text-2); }

/* ---------- 12а. Калькулятор класса аудита ---------- */

.calc {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.calc-q + .calc-q { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-l { display: block; margin-bottom: 10px; font-size: 15px; color: var(--text-2); }
.calc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-out {
  display: block; margin-top: 24px; padding: 18px;
  border: 1px solid var(--accent); border-radius: var(--r-ctl);
  font-size: 15px; line-height: 1.55;
}
.calc-out[hidden] { display: none; }

/* ---------- 12б. Мелочи шапки и крошек ---------- */

.hdr-lang { display: none; }
@media (min-width: 1100px) { .hdr-lang { display: block; font-size: 13px; } }
.hdr-lang a { color: var(--text-2); text-decoration: none; }
.hdr-lang a:hover { color: var(--text); }
nav[aria-label="Хлебные крошки"] { margin-bottom: 1.2rem; }
nav[aria-label="Хлебные крошки"] a { color: var(--text-2); text-decoration: none; }
nav[aria-label="Хлебные крошки"] a:hover { color: var(--text); text-decoration: underline; }

/* ---------- 13. Подвал (спецификация 880) ---------- */

.pdv { border-top: 1px solid var(--line); padding-top: 40px; margin-top: var(--sect); }
.pdv-cols { display: grid; gap: 0; }
@media (min-width: 760px) {
  .pdv { padding-top: 56px; }
  .pdv-cols { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
}
.pdv-col > h2, .pdv-col summary {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 12px;
}
.pdv-col ul { list-style: none; margin: 0 0 8px; padding: 0; }
.pdv-col li { margin: 0 0 8px; }
.pdv-col a, .pdv-col span[aria-current] { font-size: 15px; line-height: 1.6; color: var(--text-2); text-decoration: none; }
.pdv-col a:hover, .pdv-col a:focus-visible { color: var(--text); text-decoration: underline; }
.pdv-col span[aria-current] { color: var(--text); }
.pdv-col details { border-bottom: 1px solid var(--line); }
.pdv-col summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; list-style: none; }
.pdv-col summary::-webkit-details-marker { display: none; }
.pdv-col summary::after {
  content: ""; width: 7px; height: 7px; margin-right: 4px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg); transition: transform var(--t);
}
.pdv-col details[open] summary::after { transform: rotate(-135deg); }
.pdv-col details ul { padding: 4px 0 14px; }
@media (min-width: 760px) {
  .pdv-col details { border-bottom: 0; }
  .pdv-col summary { min-height: 0; margin-bottom: 12px; pointer-events: none; }
  .pdv-col summary::after { display: none; }
  /* Свёрнутый details раскрывается на десктопе без JS: колонки подвала там
     видны всегда, аккордеон нужен только на узком экране (спека 880 §8). */
  .pdv-col details > ul { display: block; padding: 0; content-visibility: visible; }
  .pdv-col details::details-content { content-visibility: visible; block-size: auto; }
}
/* На мобиле линию над реквизитами уже дал последний аккордеон — второй
   черты и пустой полосы между ними быть не должно. */
.pdv-meta {
  display: grid; gap: 10px; margin-top: 24px;
  font-size: 14px; color: var(--text-2);
}
@media (min-width: 760px) {
  .pdv-meta {
    grid-template-columns: 1fr 1fr; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}
.pdv-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2);
  padding-bottom: calc(var(--mcta-h) + 16px + env(safe-area-inset-bottom, 0px));
}
.pdv-bottom a { color: var(--text-2); }

/* Колонка с восемью и более живыми строками раскладывается в две подколонки
   на десктопе — форма keys.so из спецификации 880 §3 (зона A выросла после
   канона 13 линий). На мобиле колонка остаётся аккордеоном в один столбец. */
@media (min-width: 900px) { .pdv-col--wide ul { columns: 2; column-gap: 24px; } }

/* ---------- 14. Липкая полоса действия (мобайл) ---------- */

.mcta { display: none; }
@media (max-width: 899px) {
  .mcta { display: block; height: var(--mcta-h); }
  .mcta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    /* Прячем полосу до первого экрана видимостью и свойством translate, а НЕ
       transform: transform у этой полосы уже занят — модуль cookie-notice
       поднимает её на высоту своего баннера правилом
       html.cknote-on .mcta-bar{transform:…}. Одного translate мало: процент
       считается от высоты самой полосы (73px), и подъём баннера (129px)
       перекрывает его — полоса торчала на первом экране (поймано скрином
       390 dark). Поэтому решает visibility, а translate остаётся движением. */
    translate: 0 100%; opacity: 0; visibility: hidden;
    transition: translate 260ms ease, opacity 200ms ease, visibility 0s linear 260ms;
  }
  .mcta-bar.show {
    translate: 0 0; opacity: 1; visibility: visible;
    transition: translate 260ms ease, opacity 200ms ease, visibility 0s linear 0s;
  }
  .mcta-bar .btn { flex: 1 1 auto; min-width: 0; }
  .mcta-ico {
    flex: 0 0 auto; display: grid; place-items: center;
    width: 48px; height: 48px; text-decoration: none;
    border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--text);
  }
}

/* ---------- 15. Появление блоков ---------- */

.fade { opacity: 0; transform: translateY(12px); transition: opacity 350ms ease, transform 350ms ease; }
.fade.in { opacity: 1; transform: none; }

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

/* ---------- 16. Слой наследия: секции линии Л1 на главной ----------
   Главная 2.0 держит ниже по странице секции Л1-маркетинга — их РАЗМЕТКА
   перенесена дословно (ТЗ волны 1 §1), а стиль им даёт этот блок.

   Почему style.css на главную 2.0 НЕ подключается. Имена классов у двух слоёв
   общие (.hero, .section, .card, .grid, .btn), и старый слой протекает в новую
   вёрстку: в светлой теме хиро главной покрасился тёмным градиентом старого
   .hero — поймано скрином 390 light. Разбирать протечки по одному свойству
   бессмысленно, поэтому старый файл на страницах 2.0 не грузится вовсе: минус
   25 КБ и минус целый класс ошибок. Старые страницы витрины его подключают
   как раньше — их палитра и вёрстка не меняются.

   Общие модули империи (cookie-notice, голосовой ввод) красятся старыми
   именами токенов --c-*: мост ниже объявляет эти имена через токены канона,
   поэтому модули живут в обеих темах без правки их кода (дельта 866 §5,
   спека подвала 880 §7.4). */

:root, .legacy {
  --c-abyss: var(--bg);
  --c-deep: var(--bg);
  --c-sea: var(--surface);
  --c-sea-2: var(--surface);
  --c-line: var(--line);
  --c-gold: var(--accent);
  --c-gold-2: var(--accent);
  --c-gold-dim: var(--text-2);
  --c-text: var(--text);
  --c-muted: var(--text-2);
  --c-faint: var(--text-2);
  --c-ok: var(--ok);
  --shadow: none;
  --glow-gold: none;
}
.legacy .section-dark { background: var(--surface); }
.legacy .gold, .legacy .gold-grad { color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.legacy .muted { color: var(--text-2); }

.legacy .grid { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .legacy .grid-2, .legacy .grid-3, .legacy .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .legacy .grid { gap: 20px; }
  .legacy .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .legacy .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.legacy .card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
.legacy .card h3 { margin-bottom: .4rem; }
.legacy .card p { margin-bottom: 0; color: var(--text-2); }
.legacy .steps .num {
  display: block; margin-bottom: .6rem;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--text-2);
}
.legacy .tick-list { list-style: none; margin: 0; padding: 0; }
.legacy .tick-list li { position: relative; margin-bottom: .85rem; padding-left: 1.6rem; color: var(--text-2); }
.legacy .tick-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.legacy .tick-list strong { color: var(--text); font-weight: 500; }
.legacy .facts {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
.legacy .fact-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .legacy .fact-grid { grid-template-columns: repeat(3, 1fr); } }
.legacy .fact-value {
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.05; color: var(--text);
}
.legacy .fact-label { margin-top: .5rem; font-size: 15px; color: var(--text-2); }
.legacy .facts-note { margin-top: 1.6rem; font-size: 14px; color: var(--text-2); }
.legacy .cta-band {
  text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 20px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
}
.legacy .cta-band h2 { max-width: 24ch; margin-inline: auto; }
.legacy .cta-band p { max-width: 52ch; margin: 0 auto 1.8rem; color: var(--text-2); }
.legacy .btn-gold { background: var(--text); color: var(--btn-ink); border-color: transparent; }
.legacy .btn-gold:hover { background: var(--accent); color: var(--accent-ink); }
.legacy .btn-lg { padding: 1rem 1.8rem; }

/* Баннер cookie: модуль подставляет свои цвета через --c-* (их даёт мост выше),
   но фон полосы у него зашит числом. На страницах 2.0 возвращаем его в токены —
   иначе в светлой теме внизу висит тёмная плашка. */
.cknote { background: var(--surface) !important; }
