/*
 * LeadTide: стили всех страниц.
 * Шрифты. Внешние пока не подключены. Чтобы сменить: добавить сюда блок @font-face
 * (файлы положить в assets/fonts) и поправить две переменные --font-display и --font-text.
 * Больше нигде семейства шрифтов не названы.
 */
:root {
  --navy: #0F1E3D;
  --navy-2: #182B54;
  --navy-deep: #0A1630;
  --navy-line: rgba(255, 255, 255, 0.16);
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C3D9;
  --paper: #F1EEE6;
  --white: #FFFFFF;
  --ink: #0F1E3D;
  --ink-muted: #47526B;
  --line: rgba(15, 30, 61, 0.16);
  --control-line: #7A8499; /* рамка вариантов квиза: 3,7:1 на белом */
  --orange: #FF7A1A;
  --orange-press: #E8670C;
  --orange-tint: #FFF3E8;
  --orange-on-light: #C2540A; /* отметки-указатели на светлом фоне: 4,6:1 на белом, 4,0:1 на бумаге */
  --mark-empty: rgba(255, 255, 255, 0.14);

  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; /* заголовки, цифры */
  --font-text: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif; /* текст, кнопки */

  --step-hero: clamp(2.125rem, 1.2rem + 4.6vw, 4.5rem);
  --step-giant: clamp(5rem, 2.25rem + 10vw, 10rem);
  --step-h2: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  --step-h3: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-small: 0.9375rem; /* 15 px */
  --step-min: 0.875rem; /* 14 px: мельче текста на сайте нет */

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(2rem, 0.5rem + 6.5vw, 7rem);
  --radius: 6px;
  --mark-radius: 1px;
  --header-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.5rem); } /* фокус и якоря не уходят под липкую шапку */
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font-text);
  overflow-x: hidden;
  overflow-x: clip; /* hidden ломает липкую шапку в части браузеров */
  text-rendering: optimizeLegibility;
}
::selection { background: var(--orange); color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease); }
a:hover { text-decoration-color: var(--orange); }
a:active { color: var(--orange-press); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--orange); }
[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
section[id] { scroll-margin-top: var(--header-h); }

h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: var(--step-hero); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--step-h2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
p { max-width: 62ch; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
section { padding-block: var(--section); }
.dark { background-color: var(--navy); color: var(--on-navy); }
.dark .muted, .dark p.lead { color: var(--on-navy-muted); }
.white { background: var(--white); }
.muted { color: var(--ink-muted); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; }
/* едва заметная фактура горизонтальных линий на тёмных экранах */
.lined { background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--orange); color: var(--navy); padding: 0.75rem 1rem; font-weight: 700; }

.section-head { display: grid; gap: 0.625rem; margin-bottom: clamp(1.25rem, 0.75rem + 2.2vw, 3rem); }
.section-head p { color: var(--ink-muted); }
.dark .section-head p { color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .head-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; align-items: end; }
  .head-row > div { display: grid; gap: 0.75rem; }
}
.head-row > div { display: grid; gap: 0.75rem; }
/* метка секции: отметка из логотипа + слово */
.idx { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-small); font-weight: 700; color: var(--ink-muted); }
.dark .idx { color: var(--on-navy-muted); }
.idx::before, .mark { content: ""; display: inline-block; flex: none; width: 10px; height: 4px; border-radius: var(--mark-radius); background: var(--orange); }

/* появление блоков: только когда tide.js добавил класс на <html>; без скрипта всё видно сразу */
.reveal [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 52px; padding: 0.75rem 1.5rem;
  background: var(--orange); color: var(--navy);
  font: 700 1.0625rem/1.2 var(--font-text); letter-spacing: 0;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { background: #FF8D3A; transform: translateY(-1px); }
.btn:active { background: var(--orange-press); color: var(--navy); transform: translateY(1px); }
.btn .arr { transition: transform 0.18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--orange); }
.btn-ghost:active { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--orange-press); }
/* неактивная кнопка: та же оранжевая, но бледная; текст 5,3:1 к своей заливке */
.btn:disabled, .btn:disabled:hover, .btn:disabled:active { background: rgba(255, 122, 26, 0.35); color: rgba(15, 30, 61, 0.7); box-shadow: none; transform: none; cursor: not-allowed; }
.btn:disabled .arr { transform: none; }
.btn-block { width: 100%; }
.fallback { margin-top: 0.75rem; font-size: var(--step-small); color: var(--ink-muted); }
.dark .fallback { color: var(--on-navy-muted); }
.fallback a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cta-row.after { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.textlink { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; min-height: 44px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.linklike:hover { text-decoration-color: var(--orange); }
.linklike:active { color: var(--orange); }

/* ---------- шапка: липкая, одна строка на любой ширине ---------- */
.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--navy-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; min-width: 44px; font: 900 1.25rem/1 var(--font-display); letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; font-kerning: normal; }
.logo-mark { width: 22px; height: 22px; flex: none; }
.nav { display: flex; gap: clamp(0rem, 1.5vw, 1.5rem); }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.375rem; font-weight: 700; font-size: var(--step-min); text-decoration: none; white-space: nowrap; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.nav a:hover { color: var(--orange); }
.nav a:active { color: var(--orange-press); }
.top-cta { display: none; min-height: 44px; padding: 0.375rem 0.875rem; font-size: var(--step-min); }
.top-cta-all { display: inline-flex; } /* кнопка, которая видна и на телефоне: внутри .cta-long и .cta-short */
.cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* слово LeadTide видно на любой ширине. Чтобы шапка не слипалась: до 600 px нет пункта «Курс»
   (если это не текущая страница; он есть в подвале), до 480 px нет «Под ключ» (на главную ведёт логотип) */
@media (max-width: 599px) {
  .nav a[href$="kurs.html"]:not([aria-current]) { display: none; }
}
@media (max-width: 479px) {
  .nav a[href$="index.html"], .nav a[href="/"] { display: none; }
}
@media (max-width: 379px) {
  .logo { font-size: 1.125rem; gap: 0.375rem; }
  .nav a { padding-inline: 0.25rem; }
  .top-cta { padding-inline: 0.625rem; }
}
@media (max-width: 359px) {
  .top:has(.top-cta-all) .nav a[aria-current="page"] { display: none; } /* на главную ведёт логотип */
  .top .wrap { gap: 0.25rem; }
}
@media (min-width: 600px) {
  .nav a { font-size: 1rem; padding-inline: 0.5rem; }
  .cta-long { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .cta-short { display: none; }
  .top-cta { font-size: var(--step-small); padding-inline: 1.125rem; }
}
@media (min-width: 900px) { .top-cta { display: inline-flex; } }

/* ---------- шкала прилива ----------
   Одна отметка = один контакт: вертикальный штрих, как деление шкалы. В поле их ровно 231
   (проверяет tests/home.test.js), сетка одна на всех ширинах, та же, что в assets/js/tide.js: 33×7.
   Поле компактным блоком, а не лентой: ширина складывается из штрихов и промежутков. */
.tide { --mark-w: 4px; --mark-h: 12px; --mark-gap-x: 5px; --mark-gap-y: 5px; }
@media (min-width: 600px) { .tide { --mark-h: 14px; --mark-gap-x: 6px; --mark-gap-y: 6px; } }
.tide-marks { display: grid; grid-template-columns: repeat(33, var(--mark-w)); gap: var(--mark-gap-y) var(--mark-gap-x); width: max-content; max-width: 100%; }
@media (max-width: 599px) { .tide-marks { width: 100%; grid-template-columns: repeat(33, minmax(0, 1fr)); } .tide-marks i:not(#_) { width: auto; } }
.tide-marks i { display: block; width: var(--mark-w); height: var(--mark-h); border-radius: var(--mark-radius); background-color: var(--orange); }
/* скрипт «взвёл» поле: отметки пустые и загораются по очереди (задержки ставит tide.js) */
.tide.is-armed .tide-marks i { background-color: var(--mark-empty); }
.tide.is-armed.is-on .tide-marks i { background-color: var(--orange); transition: background-color 0.3s linear var(--wait, 0ms); } /* переход и задержка только на загорание */
/* тихое поле финала: шкала пустая, горит первая отметка нижнего ряда, откуда начинается прилив */
.tide-quiet .tide-marks i { background-color: var(--mark-empty); }
.tide-quiet .tide-marks i:nth-child(199) { background-color: var(--orange); }
/* 404 (.tide-ebb, остальное в pages.css): горят четыре первые отметки нижнего ряда, 199–202.
   Раскладка теперь одна, поэтому и правило одно; :not(#_) перекрывает прежние правила по ширинам в pages.css */
.tide-ebb .tide-marks i:not(#_) { background-color: var(--mark-empty); }
.tide-ebb .tide-marks i:not(#_):nth-child(n+199):nth-child(-n+202) { background-color: var(--orange); }
/* список с отметками вместо точек */
.marks-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.marks-list li { position: relative; padding-left: 1.5rem; }
.marks-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 4px; border-radius: var(--mark-radius); background: var(--orange); }

/* ---------- первый экран ---------- */
.hero { padding-block: clamp(1.5rem, 0.75rem + 3.5vw, 4rem) 0; }
.hero-grid { display: grid; gap: 1.75rem; align-items: end; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin-top: clamp(0.875rem, 0.5rem + 1.5vw, 1.5rem); }
.hero .cta-row { margin-top: clamp(1.25rem, 0.75rem + 2vw, 2rem); }
@media (min-width: 700px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); } }

.price-drop { margin: 0; }
.price-drop .was { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1; color: var(--on-navy-muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--orange); }
.price-drop .now { font-size: var(--step-giant); font-weight: 900; line-height: 0.86; letter-spacing: -0.06em; color: var(--orange); margin-block: 0.08em 0.16em; }
.price-drop .now small { font-size: 0.32em; letter-spacing: -0.02em; }
/* честные пропорции: 278 ₽ это 100 %, 76 ₽ это 27,3 % */
.bars { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.375rem 0.75rem; font-size: var(--step-min); line-height: 1.2; color: var(--on-navy-muted); }
.bar { display: block; height: 10px; border-radius: var(--mark-radius); }
.bar-was { width: 100%; background: rgba(255, 255, 255, 0.24); }
.bar-now { width: 27.3%; background: var(--orange); }
.price-drop .cap { margin-top: 0.625rem; color: var(--on-navy-muted); font-size: var(--step-small); line-height: 1.4; max-width: 44ch; }

/* на телефоне полосы «было/стало» не нужны: хватает зачёркнутого 278 ₽ и большого 76 ₽ */
@media (max-width: 699px) { .price-drop .bars { display: none; } }

/* 231 и шкала: на широком экране число слева, шкала справа под блоком 76 ₽ (те же колонки, что у .hero-grid) */
.tide-block { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 0.75rem + 3vw, 3.5rem); padding-block: clamp(1.25rem, 0.75rem + 1.5vw, 2.5rem) clamp(1.75rem, 1.25rem + 2vw, 3rem); border-top: 1px solid var(--navy-line); }
.tide-num { display: flex; align-items: baseline; gap: 0.75rem; max-width: none; }
.tide-num b { font-size: clamp(3rem, 2rem + 4.5vw, 5.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; }
.tide-num span { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); color: var(--on-navy-muted); }
.tide-foot { display: grid; gap: 0.375rem; font-size: var(--step-min); line-height: 1.45; color: var(--on-navy-muted); }
.tide-foot p { max-width: 52ch; }
.tide-meta .num { color: var(--on-navy); font-weight: 700; }
.tide-meta i { font-style: normal; padding-inline: 0.25rem; }
@media (min-width: 900px) {
  .tide-block { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "num field" "foot field"; gap: 1.25rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
  .tide-num { grid-area: num; align-self: start; }
  .tide-block .tide { grid-area: field; }
  .tide-block .tide-marks { width: 100%; grid-template-columns: repeat(33, minmax(0, 1fr)); }
  .tide-block .tide-marks i { width: auto; max-width: 6px; justify-self: center; }
  .tide-foot { grid-area: foot; }
  .tide-foot .tide-meta { max-width: none; }
}

/* ---------- кейс ---------- */
.case-grid { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 960px) {
  .case-grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
  .shot { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.facts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .facts li { padding-block: 0.875rem; } }
.facts li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts b::before { content: ""; display: inline-block; vertical-align: middle; width: 10px; height: 4px; margin: -0.15em 0.75rem 0 0; border-radius: var(--mark-radius); background: var(--orange-on-light); }
.facts li.off b::before { background: transparent; box-shadow: inset 0 0 0 1px var(--control-line); }
.facts b { font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.facts span { line-height: 1.35; }
.facts-key { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 0.875rem; font-size: var(--step-min); color: var(--ink-muted); }
.facts-key .mark { transform: translateY(-0.2em); background: var(--orange-on-light); }
.case-cta { margin-top: 0.5rem; }
.shot { position: relative; margin: 0; padding: 0; }
/* спокойная подложка: смещение на 6 px цветом линии */
.shot-frame { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(0.5rem, 1.5vw, 1.25rem); box-shadow: 0 1px 2px rgba(15, 30, 61, 0.08), 0 12px 32px -12px rgba(15, 30, 61, 0.25); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.shot-frame:hover { border-color: var(--ink-muted); }
.shot-frame:active { box-shadow: 0 1px 2px rgba(15, 30, 61, 0.12); }
.shot-img { position: relative; display: block; }
.shot-img img { width: 100%; }
/* отметки под цифрами на скрине: те же, что у фактов слева */
.pin { position: absolute; height: 3px; border-radius: var(--mark-radius); background: var(--orange-on-light); }
.pin-views { left: 3.2%; width: 4.4%; top: 31.8%; }
.pin-contacts { left: 43.4%; width: 3.3%; top: 31.8%; }
.pin-cost { left: 50.1%; width: 3%; top: 36.9%; }
.pin-ads { left: 33.7%; width: 5.5%; top: 74.6%; }
@media (max-width: 600px) {
  .pin-views { left: 3.2%; width: 9.8%; top: 28.6%; }
  .pin-contacts { left: 52.2%; width: 6.8%; top: 28.6%; }
  .pin-cost { left: 67.2%; width: 6.2%; top: 39%; }
  .pin-ads { left: 70.6%; width: 12.2%; top: 67.4%; }
}
.shot figcaption { margin-top: 1.5rem; display: grid; gap: 0.5rem; font-size: var(--step-small); color: var(--ink-muted); }
.shot figcaption a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
.shot figcaption p { max-width: none; }
.honest { color: var(--ink); font-weight: 600; padding-top: 0.75rem; border-top: 1px solid var(--line); }

/* ---------- услуги: потоки сходятся в один ---------- */
.flow-src { list-style: none; padding: 0 0 0 1.75rem; }
.flow-src li { position: relative; padding-block: 0.5rem; }
.flow-src li::before { content: ""; position: absolute; left: -1.75rem; top: 0; bottom: 0; width: 2px; background: var(--navy); } /* рельс */
.flow-src li:nth-child(2)::before { width: 3px; }
.flow-src li:nth-child(3)::before { width: 4px; }
.flow-src li:nth-child(4)::before { width: 5px; }
.flow-src li::after { content: ""; position: absolute; left: -1.75rem; top: 1.25rem; width: 1.25rem; height: 0; border-top: 2px solid var(--navy); } /* приток */
.flow-src li.only::after { border-top-style: dashed; }
.flow-src h3 { margin-bottom: 0.25rem; }
.flow-src p { color: var(--ink-muted); font-size: 1rem; line-height: 1.45; }
.flow-src .tag { display: inline-block; margin: 0.125rem 0 0.375rem; padding: 0.0625rem 0.5rem; border: 1.5px solid var(--ink); border-radius: 3px; font-size: var(--step-min); font-weight: 700; color: var(--ink); }
.flow-join { height: 1.75rem; }
.flow-join i { display: block; width: 6px; height: 100%; background: var(--orange); }
.flow-bot { background: var(--navy); color: var(--on-navy); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 1.25rem; display: grid; gap: 0.5rem; }
.flow-bot p { color: var(--on-navy-muted); font-size: 1rem; line-height: 1.45; }
@media (min-width: 900px) {
  .flow { --flow-gap: 1rem; }
  .flow-src { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--flow-gap); padding: 0; }
  .flow-src li { padding: 1.25rem; background: var(--paper); border-radius: var(--radius); transition: background-color 0.2s var(--ease); }
  .flow-src li.only { background: transparent; box-shadow: inset 0 0 0 1.5px var(--control-line); }
  .flow-src li::before { display: none; }
  .flow-src li::after { left: calc(50% - 1px); top: 100%; width: 0; height: 2rem; border-top: 0; border-left: 2px solid var(--navy); }
  .flow-src li.only::after { border-left-style: dashed; }
  /* сборная линия от середины первой колонки до середины последней */
  .flow-join { height: auto; margin-top: 2rem; margin-inline: calc((100% - 3 * var(--flow-gap)) / 8); border-top: 2px solid var(--navy); }
  .flow-join i { height: 2.5rem; margin-inline: auto; }
  .flow-bot { border-radius: var(--radius); padding: 1.5rem 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; }
  .flow-bot h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
}
.footnote { margin-top: 1.25rem; font-size: var(--step-min); color: var(--ink-muted); max-width: 100ch; }
.dark .footnote { color: var(--on-navy-muted); }
sup.fn { font-size: 0.7em; line-height: 0; }

/* ---------- цены ---------- */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 0.875rem 0.75rem; border-bottom: 1px solid var(--navy-line); vertical-align: baseline; }
.price-table thead th { font-size: var(--step-small); font-weight: 700; color: var(--on-navy-muted); border-bottom-color: var(--on-navy-muted); }
.price-table td.p { text-align: right; font-weight: 700; white-space: nowrap; }
.price-table th.p { text-align: right; }
.price-table tbody th { font-weight: 600; }
.price-table tbody tr > * { transition: border-color 0.15s var(--ease); }
.price-table small { display: block; font-weight: 400; color: var(--on-navy-muted); font-size: var(--step-min); margin-top: 0.125rem; }
/* текст строк по краям сетки; подсветка строки: нижняя линия становится оранжевой, за сетку ничего не выходит */
@media (min-width: 561px) {
  .price-table th:first-child { padding-left: 0; }
  .price-table td:last-child, .price-table th:last-child { padding-right: 0; }
  .price-table tbody tr:hover > * { border-bottom-color: var(--orange); }
}
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.125rem 1rem; padding-block: 0.5rem; border-bottom: 1px solid var(--navy-line); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table tbody th { grid-column: 1 / -1; margin-bottom: 0.25rem; }
  .price-table td.p { text-align: left; white-space: normal; }
  .price-table td.p span { white-space: nowrap; }
  .price-table td.none { display: none; }
  .price-table td.p:not(.none)::before { content: attr(data-label) " "; font-size: var(--step-min); font-weight: 400; color: var(--on-navy-muted); }
}

.packs { display: grid; gap: 1rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 760px) { .packs { grid-template-columns: 1fr 1fr; } }
.pack { display: flex; flex-direction: column; align-items: flex-start; background: var(--navy-2); border-radius: var(--radius); padding: clamp(1.25rem, 0.9rem + 2vw, 2.25rem); }
.pack.main { background: var(--orange); color: var(--navy); }
.pack h3 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.03em; }
.pack .in { margin-top: 0.5rem; font-weight: 600; }
@media (min-width: 760px) { .pack .in { min-height: 3.1em; } }
.pack .sep { margin-top: 0.75rem; font-size: 1.0625rem; font-weight: 600; }
.pack s { text-decoration-thickness: 2px; }
.pack:not(.main) s { text-decoration-color: var(--orange); }
.pack .big { margin-top: 0.125rem; font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.pack .per { margin-top: 0.5rem; margin-bottom: 1rem; font-weight: 700; }
.pack .per .num { font-family: inherit; }
.pack .per-sep { font-weight: 400; white-space: nowrap; }
.pack .btn { margin-top: auto; }
.pack.main .btn { background: var(--navy); color: var(--white); }
.pack.main .btn:hover { background: var(--navy-2); }
.pack.main .btn:active { background: var(--navy-deep); color: var(--white); }
.pack.main :focus-visible { outline-color: var(--navy); }
.budget-note { max-width: none; margin-top: 1rem; gap: 0.125rem 2rem; padding: 0.875rem clamp(1.25rem, 0.9rem + 2vw, 2.25rem); border: 1px solid var(--navy-line); border-radius: var(--radius); }
.budget-note b { color: var(--orange); font-weight: 700; }
@media (min-width: 760px) { .budget-note { display: grid; grid-template-columns: auto 1fr; align-items: baseline; } }

/* ---------- как работаем: лестница прилива ---------- */
.ladder { list-style: none; padding: 0; display: grid; counter-reset: st; }
.ladder li { counter-increment: st; padding-bottom: 0.75rem; }
/* ступень. На широком экране полоса растёт в высоту от 4 до 20 px и стоит на общей нижней линии;
   на телефоне растёт в ширину от 20 до 100 %, как полосы логотипа */
.ladder li { --rise: 1; }
.ladder li:nth-child(2) { --rise: 2; }
.ladder li:nth-child(3) { --rise: 3; }
.ladder li:nth-child(4) { --rise: 4; }
.ladder li:nth-child(5) { --rise: 5; }
.ladder li::before { content: ""; display: block; height: 4px; width: calc(var(--rise) * 20%); margin-bottom: 0.5rem; border-radius: var(--mark-radius); background: var(--orange); }
.ladder h3 { display: grid; grid-template-columns: 2.75rem 1fr; align-items: baseline; }
.ladder h3::before { content: counter(st, decimal-leading-zero); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.ladder p { margin: 0.25rem 0 0 2.75rem; color: var(--ink-muted); font-size: 1rem; line-height: 1.45; }
@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .ladder li { padding-bottom: 0; }
  .ladder li::before { width: auto; height: calc(var(--rise) * 4px); margin-top: calc(20px - var(--rise) * 4px); margin-bottom: 1.25rem; }
  .ladder h3 { display: block; }
  .ladder h3::before { display: block; font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); line-height: 1; margin-bottom: 0.75rem; letter-spacing: -0.05em; }
  .ladder p { margin: 0.5rem 0 0; }
}

/* ---------- сравнение ---------- */
.compare { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-row > * { padding: 0.625rem 0.75rem; font-size: var(--step-small); line-height: 1.4; }
.compare-row .q { grid-column: 1 / -1; padding-block: 0.375rem; font-family: var(--font-display); font-size: 1rem; font-weight: 700; background: var(--paper); }
/* у чужой колонки серый минус, у нашей оранжевая отметка */
.compare-row .them, .compare-row .us { padding-left: 1.875rem; background-repeat: no-repeat; background-position: 0.75rem 1.2rem; }
.compare-row .them { color: var(--ink-muted); background-image: linear-gradient(var(--control-line), var(--control-line)); background-size: 10px 2px; }
.compare-row .us { font-weight: 700; color: var(--ink); background-color: var(--orange-tint); background-image: linear-gradient(var(--orange), var(--orange)); background-size: 10px 4px; }
/* на телефоне шапка таблицы работает как легенда: минус это отдельные исполнители, отметка это LeadTide */
.compare-row.compare-head { background: var(--navy); align-items: stretch; }
.compare-row.compare-head > * { display: flex; align-items: center; }
.compare-row.compare-head > * { font-size: var(--step-min); font-weight: 700; line-height: 1.3; padding-block: 0.5rem; }
.compare-row.compare-head > :first-child { display: none; }
.compare-row.compare-head .them { color: var(--on-navy-muted); background-position: 0.75rem 1rem; }
.compare-row.compare-head .us { color: var(--navy); background-color: var(--orange); background-image: linear-gradient(var(--navy), var(--navy)); background-position: 0.75rem 0.95rem; }
@media (min-width: 820px) {
  .compare-row { grid-template-columns: 0.7fr 1fr 1.1fr; }
  .compare-row > * { padding: 1.125rem 1.25rem; font-size: inherit; line-height: inherit; }
  .compare-row .q { grid-column: auto; padding-block: 1.125rem; font-size: inherit; background: transparent; }
  .compare-row .them, .compare-row .us { padding-left: 2.5rem; background-position: 1.25rem 1.75rem; }
  .compare-row.compare-head > * { font-family: var(--font-display); font-size: 1rem; background-image: none; padding-block: 1.125rem; }
  .compare-row.compare-head .them, .compare-row.compare-head .us { padding-left: 2.5rem; }
  .compare-row.compare-head > :first-child { display: block; }
  .compare-row.compare-head .them { font-weight: 600; }
  .compare-row.compare-head .us { background-image: none; font-weight: 800; font-size: 1.125rem; }
}

/* ---------- квиз ---------- */
#quiz-section { padding-block: clamp(1.5rem, 0.25rem + 5vw, 7rem) var(--section); }
.quiz-wrap { display: grid; gap: 1.25rem; }
.quiz-head { margin-bottom: 0; }
.quiz-aside { display: grid; gap: 0.75rem; align-content: start; }
.quiz-aside p { color: var(--on-navy-muted); }
.quiz-aside h3 { margin-top: 0.75rem; }
@media (min-width: 960px) {
  .quiz-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; gap: 1.5rem clamp(2rem, 4vw, 4rem); align-items: start; }
  .quiz { grid-column: 2; grid-row: 1 / span 2; }
  .quiz-aside { grid-column: 1; grid-row: 2; }
}
/* высоту держит карточка: кнопки сразу под ответами, свободное место уходит вниз карточки */
.quiz { --quiz-h: 30rem; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1rem, 0.6rem + 2vw, 2.25rem); }
.quiz :focus-visible { outline-color: var(--ink); }
.quiz-progress { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.625rem; font-size: var(--step-small); font-weight: 700; color: var(--ink-muted); }
/* прогресс четырьмя отметками; работает от атрибута data-step на форме, который ставит quiz.js */
.quiz-marks { display: none; gap: 4px; }
.quiz-marks i { width: 24px; height: 4px; border-radius: var(--mark-radius); background: var(--line); transition: background-color 0.25s var(--ease); }
.quiz[data-step] .quiz-marks { display: flex; }
.quiz[data-step] .quiz-bar { display: none; }
.quiz[data-step] .quiz-progress { margin-bottom: 1rem; }
.quiz[data-step="1"] .quiz-marks i:nth-child(-n+1),
.quiz[data-step="2"] .quiz-marks i:nth-child(-n+2),
.quiz[data-step="3"] .quiz-marks i:nth-child(-n+3),
.quiz[data-step="4"] .quiz-marks i,
.quiz[data-step="done"] .quiz-marks i { background: var(--orange); }
/* запасной прогресс полоской, пока у формы нет data-step */
.quiz-bar { height: 4px; background: var(--line); margin: 0 0 1rem; border-radius: var(--mark-radius); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 25%; background: var(--orange); transition: width 0.3s var(--ease); }
.quiz:not(.js) .quiz-progress, .quiz:not(.js) .quiz-bar { display: none; } /* без скрипта все вопросы видны сразу */
.quiz fieldset { border: 0; padding: 0; min-width: 0; }
.quiz fieldset + fieldset { margin-top: 2rem; }
.quiz.js fieldset + fieldset { margin-top: 0; }
.quiz.js { display: flex; flex-direction: column; min-height: var(--quiz-h); } /* карточка одной высоты на всех шагах: экран не прыгает */
.quiz legend { font: 700 var(--step-h3)/1.2 var(--font-display); letter-spacing: -0.015em; margin-bottom: 0.875rem; padding: 0; }
.quiz legend:focus-visible { outline-offset: 6px; }
.opts { display: grid; gap: 0.5rem; }
.opt { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.5rem 0.875rem; border: 2px solid var(--control-line); border-radius: var(--radius); cursor: pointer; font-weight: 600; line-height: 1.25; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); }
.opt:hover { border-color: var(--ink); }
.opt:active { background: var(--orange-tint); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* вместо радиокружка отметка: пустая серая, у выбранного оранжевая */
.opt .dot { flex: none; width: 14px; height: 4px; border-radius: var(--mark-radius); background: rgba(15, 30, 61, 0.24); transform-origin: left center; transition: background-color 0.15s var(--ease), transform 0.15s var(--ease); }
.opt input:checked + .dot { background: var(--orange); transform: scaleX(1.3); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--orange-tint); }
.opt input:focus-visible + .dot { outline: 3px solid var(--ink); outline-offset: 3px; } /* работает и без :has */
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.opt:has(input:focus-visible) .dot { outline: 0; }
.quiz-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.quiz-next { margin-left: auto; min-width: 9rem; }
.quiz-back { background: none; border: 0; font: 700 1rem var(--font-text); color: var(--ink); cursor: pointer; min-height: 44px; padding: 0 0.25rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.quiz-back:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.quiz-back:active { color: var(--orange-press); }
.quiz-back[hidden] { display: none; }
.quiz-done:focus { outline: none; }
.quiz-done h3 { margin-bottom: 0.75rem; }
.quiz-done dl { display: grid; grid-template-columns: auto 1fr; margin-bottom: 1.25rem; border-top: 1px solid var(--line); font-size: 1rem; }
.quiz-done dt, .quiz-done dd { padding-block: 0.625rem; border-bottom: 1px solid var(--line); }
.quiz-done dt { padding-right: 1.25rem; font-size: var(--step-small); color: var(--ink-muted); }
.quiz-done dd { margin: 0; font-weight: 700; }
.quiz-done .fallback { color: var(--ink-muted); }
.quiz-done .when { margin-top: 0.75rem; font-size: var(--step-min); color: var(--ink-muted); }
.quiz-done .when a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }
.quiz-done #quiz-restart { margin-top: 0.25rem; }
.noscript-note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--ink-muted); }
.quiz-step { animation: step-in 0.3s var(--ease); }
@keyframes step-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) {
  .quiz { --quiz-h: 34rem; }
  .quiz legend { margin-bottom: 1.125rem; }
  .opts { gap: 0.625rem; }
  .opt { min-height: 52px; padding-inline: 1rem; }
}

/* ---------- сделать самому ---------- */
.diy { display: grid; gap: 2rem; align-items: start; }
.diy .section-head { margin-bottom: 1.5rem; }
.diy-buy { display: grid; justify-items: start; gap: 0.875rem; }
/* цена строкой над кнопкой */
.diy-price { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 600; color: var(--ink-muted); }
.diy-price .num { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
/* листок целиком: на телефоне небольшой под текстом, на широком экране справа по верху текста */
.diy-doc { display: grid; justify-items: center; padding-block: 0.5rem; }
.diy-doc .doc-small { max-width: 14rem; }
@media (min-width: 800px) {
  .diy { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
  .diy-copy { grid-column: 1 / span 7; }
  .diy-doc { grid-column: 8 / span 5; padding-top: 0.5rem; }
  .diy-doc .doc-small { max-width: 300px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 0; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.faq-grid .section-head a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; font-weight: 700; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; padding-block: 0.625rem; font: 700 clamp(1.0625rem, 1rem + 0.3vw, 1.25rem)/1.3 var(--font-display); letter-spacing: -0.01em; transition: color 0.15s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-muted); }
/* плюс из двух полосок строго по центру; у открытого вопроса остаётся минус */
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: background-size 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq details[open] summary::after { background-size: 12px 2px, 2px 0; background-color: var(--orange); }
.faq .a { padding-bottom: 1.25rem; color: var(--ink-muted); }
.faq .a p + p { margin-top: 0.75rem; }

/* ---------- финал и подвал ---------- */
.final { text-align: left; }
.final h2 { max-width: none; font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem); font-weight: 900; }
.final h2 span { display: block; color: var(--orange); }
.final .cta-row { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.final-grid { display: grid; gap: 2rem; }
.final-tide { margin: 0; display: grid; gap: 0.875rem; justify-items: start; }
.final-tide .tide { width: 100%; }
/* подпись к тихому полю: со своей оранжевой отметкой, как легенда */
.tide-next { display: flex; align-items: center; gap: 0.625rem; font-size: var(--step-small); font-weight: 700; color: var(--on-navy); }
.tide-next::before { content: ""; flex: none; width: var(--mark-w, 4px); height: 14px; border-radius: var(--mark-radius); background: var(--orange); }
@media (min-width: 900px) {
  .final-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
}
.foot { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 1.75rem 1rem; font-size: var(--step-small); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 0.25rem; }
/* подвал на сетке 12 колонок: 4/4/4, ссылки плотнее */
@media (min-width: 820px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
  .foot-grid > * { grid-column: span 4; }
}
.foot .logo { color: var(--white); }
.foot-h { color: var(--white); font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.foot ul { list-style: none; padding: 0; }
.foot li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.375rem; min-height: 44px; }
.foot li span { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--white); text-decoration: none; }
.foot p a { text-decoration: underline; text-decoration-thickness: 1px; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.foot a:active { color: var(--orange); }
@media (min-width: 820px) { .foot li, .foot li span, .foot ul a, .foot-brand .logo { min-height: 2rem; } } /* на широком экране ссылки плотнее, мышью попасть легко */
.foot-legal { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 2rem; }
.foot-legal > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; min-height: 44px; }
.foot-legal .linklike { color: var(--white); text-decoration: none; }
.foot-legal .linklike:hover { text-decoration: underline; text-decoration-color: var(--orange); }

/* ---------- плашка cookie: на телефоне узкая полоса внизу, на широком экране карточка в углу ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; gap: 0.5rem; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); padding: 0.625rem 0.75rem; font-size: var(--step-min); line-height: 1.35; }
.cookie[hidden] { display: none; }
.cookie p { max-width: none; }
.cookie a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; font-weight: 700; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie .btn { flex: 1; min-height: 44px; padding: 0.375rem 1rem; font-size: var(--step-small); }
.cookie :focus-visible { outline-color: var(--ink); }
@media (min-width: 600px) {
  .cookie { left: 1rem; right: auto; bottom: 1rem; max-width: 26rem; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 30, 61, 0.16); }
}

/* ---------- страницы чек-листа и курса ---------- */
.page-hero { padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero h1 { max-width: 14ch; }
.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.checks { list-style: none; padding: 0; display: grid; gap: 0.875rem; margin-top: 1.75rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 0.625rem; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.doc { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; max-width: 340px; width: 100%; margin-inline: auto; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem 1.5rem; transform: rotate(-2deg); }
.doc .doc-k { font-size: 0.8125rem; font-weight: 700; color: var(--ink-muted); }
.doc .doc-t { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin-top: 0.5rem; }
.doc ol { margin-top: 1.25rem; margin-bottom: 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.doc li { display: flex; gap: 0.625rem; font-size: 0.875rem; font-weight: 600; line-height: 1.3; }
.doc li span { flex: none; width: 1.125rem; height: 1.125rem; border: 2px solid var(--ink); border-radius: 2px; margin-top: 0.05rem; }
.doc .doc-lines { margin-top: 1.5rem; display: grid; gap: 0.625rem; }
.doc .doc-lines i { display: block; height: 6px; border-radius: 3px; background: rgba(15, 30, 61, 0.1); }
.doc .doc-lines i:nth-child(3n) { width: 62%; }
.doc .doc-lines i:nth-child(3n+2) { width: 85%; }
.doc .doc-f { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 0.625rem; }
/* уменьшенный листок (картинка, скрыт от читалок): на главной в блоке «Хотите сделать сами?» */
.doc-small { max-width: 230px; padding: 1.125rem 1rem; transform: rotate(3deg); }
.doc-small .doc-t { font-size: 1.25rem; }
.doc-small ol { margin-top: 0.875rem; gap: 0.5rem; }
.doc-small .doc-lines { margin-top: 1rem; gap: 0.5rem; }
.doc-small ol { margin-bottom: 1rem; }
.compare2 { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .compare2 { grid-template-columns: 1fr 1fr; } }
.tier { border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: var(--white); display: flex; flex-direction: column; }
.tier.accent { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tier .big { font-family: var(--font-display); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; margin: 1rem 0; }
.tier ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.tier .grow { flex: 1; }
.tier.accent .muted { color: var(--on-navy-muted); }
.oneline { padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; }
.oneline b { font-weight: 900; }
.modules { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.modules li { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.modules .m { grid-row: span 2; font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; color: var(--ink); min-width: 2.2ch; }
.modules p { color: var(--ink-muted); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; border: 2px solid var(--orange); border-radius: 3px; font-weight: 700; font-size: var(--step-small); margin-bottom: 1.5rem; }

/* ---------- документы ---------- */
.legal { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--section); }
.legal h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin-bottom: 1rem; }
.legal h2 { font-size: clamp(1.3rem, 1.125rem + 0.8vw, 1.7rem); letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { max-width: 72ch; }
.legal p + p, .legal ol, .legal ul { margin-top: 0.75rem; }
.legal li + li { margin-top: 0.5rem; }
.fill { background: #FFE7D4; padding: 0 0.25em; border-radius: 2px; font-weight: 700; }
.legal-note { padding: 1rem 1.25rem; border-left: 4px solid var(--orange); background: var(--white); font-size: 1rem; margin-bottom: 2rem; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; align-content: center; padding-block: 4rem; }
.nf .code { font-family: var(--font-display); font-size: var(--step-giant); font-weight: 900; letter-spacing: -0.06em; line-height: 0.85; color: var(--orange); }
.nf h1 { margin: 1rem 0; font-size: var(--step-h2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- печать: всё видно, без липкой шапки и плашки cookie ---------- */
@media print {
  .reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .top { position: static; }
  .cookie { display: none !important; }
}