/* MP Brand Guard: посадочная страница wbbrandguard.ru.
   Токены цветов те же, что у кабинета (internal/webui/static/v2.css). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #f4f4f1;
  --surface: #fcfcfb;
  --surface-2: #efefeb;
  --line: #e4e3dc;
  --line-strong: #d2d1c9;
  --ink: #141413;
  --ink-2: #52514e;
  --ink-3: #6b6a65;

  --accent: #256abf;
  --accent-hover: #1c5cab;
  --accent-ink: #1c5cab;
  --accent-soft: rgba(42, 120, 214, .10);
  --accent-line: rgba(37, 106, 191, .28);
  --on-accent: #ffffff;

  --good-ink: #006300;
  --good-soft: rgba(12, 163, 12, .09);
  --good-line: rgba(0, 99, 0, .22);
  --crit-ink: #b42323;
  --crit-soft: rgba(208, 59, 59, .10);
  --warn: #d99100;

  --inv-bg: #141413;
  --inv-surface: #1f1f1d;
  --inv-line: #353531;
  --inv-ink: #f2f1ec;
  --inv-ink-2: #c3c2b7;
  --inv-accent: #86b6ef;
  --inv-good: #5fd35f;

  --shadow: 0 1px 2px rgba(20, 20, 19, .04);
  --shadow-lg: 0 24px 60px rgba(20, 20, 19, .10), 0 2px 8px rgba(20, 20, 19, .05);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e;
    --surface: #1a1a19;
    --surface-2: #222221;
    --line: #2c2c2a;
    --line-strong: #3b3b38;
    --ink: #f2f1ec;
    --ink-2: #c3c2b7;
    --ink-3: #9d9c93;
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --accent-ink: #86b6ef;
    --accent-soft: rgba(57, 135, 229, .14);
    --accent-line: rgba(57, 135, 229, .38);
    --on-accent: #0b1422;
    --good-ink: #5fd35f;
    --good-soft: rgba(12, 163, 12, .14);
    --good-line: rgba(95, 211, 95, .26);
    --crit-ink: #f07a7a;
    --crit-soft: rgba(208, 59, 59, .20);
    --warn: #f5b53a;
    --inv-bg: #1a1a19;
    --inv-surface: #222221;
    --inv-line: #3b3b38;
    --shadow: none;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03);
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #1a1a19;
  --surface-2: #222221;
  --line: #2c2c2a;
  --line-strong: #3b3b38;
  --ink: #f2f1ec;
  --ink-2: #c3c2b7;
  --ink-3: #9d9c93;
  --accent: #3987e5;
  --accent-hover: #5598e7;
  --accent-ink: #86b6ef;
  --accent-soft: rgba(57, 135, 229, .14);
  --accent-line: rgba(57, 135, 229, .38);
  --on-accent: #0b1422;
  --good-ink: #5fd35f;
  --good-soft: rgba(12, 163, 12, .14);
  --good-line: rgba(95, 211, 95, .26);
  --crit-ink: #f07a7a;
  --crit-soft: rgba(208, 59, 59, .20);
  --warn: #f5b53a;
  --inv-bg: #1a1a19;
  --inv-surface: #222221;
  --inv-line: #3b3b38;
  --shadow: none;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03);
}

/* Основа */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }
[id] { scroll-margin-top: calc(var(--top-h) - 32px); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Типографика */

.kicker { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--accent-ink); margin-bottom: 12px; }
h1 {
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.026em; font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.022em; font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.lead { margin-top: 20px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

/* Кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost, .btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-quiet:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 14px; font-size: 15px; }
.btn-sm .ic { width: 18px; height: 18px; }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 17px; }
.btn-lg .ic { transition: transform .2s var(--ease); }
.btn-lg:hover .ic { transform: translateX(3px); }
.btn-block { width: 100%; }

/* Шапка */

.top {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: var(--top-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.brand-logo {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--r);
  background: var(--ink); color: var(--bg);
}
.brand-logo .ic { width: 18px; height: 18px; stroke-width: 2; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.top-in > .btn { margin-left: 8px; }

/* Первый экран */

.hero { padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure .ic { width: 18px; height: 18px; stroke-width: 2.2; color: var(--good-ink); }

.evidence {
  padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.evidence-head { display: flex; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; line-height: 1.3;
}
.chip .ic { width: 16px; height: 16px; }
.chip-alert { background: var(--crit-soft); color: var(--crit-ink); }
.evidence-cap {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
}

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pair-item img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.pair-item figcaption {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2);
}
.pair-item figcaption::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.pair-item.is-theirs figcaption { color: var(--crit-ink); }
.pair-item.is-theirs figcaption::before { background: var(--crit-ink); }

/* Разделы */

.section { padding-block: clamp(64px, 9vw, 112px); }
/* Первый экран и следующий за ним блок стоят на одном фоне: без этого два
   отступа складываются в пустую полосу. */
.hero + .section { padding-top: clamp(16px, 3vw, 40px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-lead { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.fineprint { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 76ch; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.card-ic {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r);
  background: var(--accent-soft); color: var(--accent-ink);
}
.card-ic .ic { width: 22px; height: 22px; }

.note {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 16px; padding: 20px 24px;
  background: var(--good-soft); border: 1px solid var(--good-line); border-radius: var(--r-lg);
}
.note .card-ic { background: var(--surface); color: var(--good-ink); }
.note h3 { font-size: 17px; }
.note p { margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.pair-card { display: flex; flex-direction: column; }
.pair-card h3 { margin-top: 0; }
.pair-card > p { margin-top: 4px; }
.pair-card .pair { margin-top: 16px; }

/* Живые цифры */

.section-ink { background: var(--inv-bg); color: var(--inv-ink); }
.section-ink .kicker { color: var(--inv-accent); }
.section-ink .section-lead, .section-ink .fineprint { color: var(--inv-ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--inv-surface); border: 1px solid var(--inv-line); border-radius: var(--r-lg);
}
.stat-label { font-size: 16px; line-height: 1.4; color: var(--inv-ink-2); }
.stat-num {
  margin-top: 8px;
  font-size: clamp(48px, 7vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.stat-good { color: var(--inv-good); }
.stat-rows { margin-top: 24px; border-top: 1px solid var(--inv-line); }
.stat-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; }
.stat-rows dt { min-width: 0; font-size: 16px; line-height: 1.4; color: var(--inv-ink-2); }
/* Заблокированные входят в снятые после обращения: строка с отступом, чтобы
   два числа не складывали между собой. */
.stat-rows .is-sub dt { padding-left: 16px; }
.stat-rows dd { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Витрина: живые числа сервиса, добегают от нуля при появлении */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.counter {
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--inv-surface); border: 1px solid var(--inv-line); border-radius: var(--r-lg);
}
.counter-num {
  font-size: clamp(40px, 4.6vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.counter-good .counter-num { color: var(--inv-good); }
.counter-label { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--inv-ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Фоновые рисунки секций: тонкие линии и синее свечение.
   🔴 Цвета берутся из переменных темы, а не зашиты в файл. Готовая картинка
   тёмных тонов выглядела бы заплаткой на светлой теме, а сайт по умолчанию
   светлый: тёмная тема включается только настройкой системы. */
.deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.deco svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.deco-line { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.deco-accent { fill: none; stroke: var(--accent-line); stroke-width: 1.5; }
.deco-dot { fill: var(--accent); opacity: .45; }
/* 🔴 На первом экране стоит настоящая картинка, а не линии из переменных: она
   сама тёмная, поэтому слева и снизу растворяется в фон страницы маской. Без
   маски тёмный прямоугольник на светлой теме выглядит заплаткой, а текст
   заголовка теряет контраст. */
.deco-hero picture, .deco-hero img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
/* 🔴 В светлой теме картинка живёт только в правой половине и резко уходит в
   фон: на светлом фоне тёмный снимок под заголовком съедает контраст текста.
   В тёмной теме он растворяется мягче, там терять нечего. */
.deco-hero {
  -webkit-mask-image: radial-gradient(76% 96% at 92% 48%, #000 10%, transparent 70%);
  mask-image: radial-gradient(76% 96% at 92% 48%, #000 10%, transparent 70%);
  opacity: .5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .deco-hero {
    -webkit-mask-image: radial-gradient(118% 108% at 82% 46%, #000 38%, transparent 82%);
    mask-image: radial-gradient(118% 108% at 82% 46%, #000 38%, transparent 82%);
    opacity: 1;
  }
}
:root[data-theme="dark"] .deco-hero {
  -webkit-mask-image: radial-gradient(118% 108% at 82% 46%, #000 38%, transparent 82%);
  mask-image: radial-gradient(118% 108% at 82% 46%, #000 38%, transparent 82%);
  opacity: 1;
}
.deco-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(52% 62% at 76% 34%, var(--accent-soft), transparent 70%);
}
.hero, .section-ink, .page { position: relative; isolation: isolate; }
.hero > .wrap, .section-ink > .wrap, .page > .wrap { position: relative; z-index: 1; }

/* 🔴 Картинка блока с цифрами приглушена: в полную силу синее свечение спорит с
   карточками, и крупные числа перестают быть главным на экране. */
.deco-stats { opacity: .62; }
/* Блок с цифрами тёмный в обеих темах, поэтому картинка там лежит целиком. */
.deco-stats picture, .deco-stats img, .deco-page picture, .deco-page img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.deco-page img { object-position: right top; }
.deco-stats::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 78% at 6% 50%, rgba(57, 135, 229, .20), transparent 72%),
    radial-gradient(42% 78% at 94% 50%, rgba(57, 135, 229, .14), transparent 72%);
}

/* 🔴 Шапка страницы справочника: картинка живёт в правом верхнем углу и не
   заходит на текст. Растянутая на всю ширину, она накрыла заголовок и первый
   абзац, и текст стало не прочесть: у статьи колонка узкая и прижата влево. */
.deco-page {
  inset: 0 0 auto 0; height: 300px;
  -webkit-mask-image: radial-gradient(64% 120% at 96% 8%, #000 4%, transparent 66%);
  mask-image: radial-gradient(64% 120% at 96% 8%, #000 4%, transparent 66%);
  opacity: .55;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .deco-page { opacity: .9; }
}
:root[data-theme="dark"] .deco-page { opacity: .9; }

/* Снимки кабинета */

.screen picture { display: block; }
.screen img {
  width: 100%; height: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.screen figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.screen-second { margin-top: clamp(32px, 4vw, 48px); }
.feats { margin-top: clamp(32px, 4vw, 48px); gap: 24px; }
.feats li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 40px auto;
  column-gap: 16px; row-gap: 4px;
}
.feats .card-ic { grid-column: 1; grid-row: 1; }
.feats h3 { grid-column: 2; grid-row: 1; align-self: center; }
.feats p { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Кнопка посреди страницы */

.cta-band {
  padding-block: clamp(40px, 6vw, 64px);
  background: var(--accent-soft);
  border-block: 1px solid var(--accent-line);
}
.cta-band-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(24px, 2.8vw, 32px); }
.cta-band p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }

/* Документы жалобы */

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.docs { padding: 4px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.docs li { display: flex; align-items: flex-start; gap: 16px; padding-block: 18px; }
.docs li + li { border-top: 1px solid var(--line); }
.docs h3 { font-size: 17px; }
.docs p { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.aside { display: grid; gap: 16px; }
.callout {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.callout:first-child { background: var(--accent-soft); border-color: var(--accent-line); }
.callout:first-child .card-ic { background: var(--surface); }
.callout h3 { font-size: 17px; }
.callout p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Сроки */

.timeline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.timeline li { position: relative; padding-top: 32px; }
.timeline li::before {
  content: ""; position: absolute; top: 7px; left: 0; right: -24px; height: 2px; background: var(--line-strong);
}
.timeline li:last-child::before { right: 0; }
.tl-dot {
  position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.tl-dot.tl-warn { border-color: var(--warn); }
.timeline h3 { font-size: 20px; }
.timeline p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li {
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; line-height: 1.3;
}
.card .card-more { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.card-more .ic { margin-top: 2px; color: var(--accent-ink); }
.ticks { display: grid; gap: 8px; margin-top: 12px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.ticks .ic { width: 18px; height: 18px; stroke-width: 2.2; color: var(--good-ink); }

/* Подключение */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li {
  counter-increment: step; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step-n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); font-weight: 700; font-variant-numeric: tabular-nums;
}
.step-n::before { content: counter(step); }
.steps h3 { margin-top: 16px; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.start-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; }
.hint { display: flex; align-items: flex-start; gap: 10px; max-width: 64ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hint .ic { margin-top: 3px; color: var(--accent-ink); }

/* Вопросы */

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--top-h) + 24px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 20px 0;
  font-size: 18px; font-weight: 600; line-height: 1.35;
  list-style: none; cursor: pointer;
  transition: color .15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary .ic { color: var(--ink-3); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 40px 20px 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Последний экран и подвал */

.final { padding-block: clamp(72px, 10vw, 128px); background: var(--surface); border-top: 1px solid var(--line); text-align: center; }
.final-in { max-width: calc(780px + 2 * var(--gutter)); }
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final p { margin: 16px auto 0; font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.cta-center, .assure-center { justify-content: center; }

.foot { padding-block: 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; }
.foot-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 540px; }
.foot-name { font-weight: 700; }
.foot-text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
/* Вторая строка подвала: ссылки на разделы сайта. Без них страницы
   справочника остаются сиротами, а поисковик приходит на главную первой. */
.foot-pages { margin-top: 2px; }
.foot-pages a { font-size: 14px; }
.foot-nav a { padding: 10px 8px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Закреплённая кнопка на телефоне и планшете */

.sticky-cta { display: none; }

/* Тарифы: калькулятор в два шага. Пока размер не выбран, первый шаг
   подсвечен, а цен на странице нет вовсе. */

[hidden] { display: none !important; }
.calc { display: grid; gap: 16px; }
.calc-step {
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s;
}
.calc:not(.is-picked) .calc-step[data-calc-step="sizes"] { border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.calc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; font-size: 18px; font-weight: 650; }
.calc-num {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700;
}
.calc-start { padding: 3px 10px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.calc.is-picked .calc-start { display: none; }
.calc-sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.calc-size {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 84px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: var(--r);
  background: var(--bg); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.calc-size b { font-size: 22px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-size span { font-size: 14px; color: var(--ink-3); }
.calc-size:hover { border-color: var(--accent); transform: translateY(-1px); }
.calc-size[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.calc-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.calc-btn {
  width: 48px; height: 48px; border-radius: var(--r); border: 2px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 600 24px/1 var(--font); cursor: pointer;
}
.calc-btn:hover:not(:disabled) { border-color: var(--accent); }
.calc-btn:disabled { opacity: .4; cursor: default; }
.calc-count { min-width: 44px; text-align: center; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 15px; color: var(--ink-2); }
.calc-hint { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.calc-hint .ic { color: var(--accent-ink); flex: none; }
.calc .fineprint { margin-top: 0; }
@media (max-width: 959px) { .calc-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .calc-step { padding: 16px; }
  .calc-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .calc-size { min-height: 72px; }
}
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.card.plan h3 { margin-top: 0; font-size: 20px; }
.card .plan-price { margin-top: 12px; font-size: 16px; }
.plan-price b { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card .plan-for { margin-top: 4px; font-weight: 600; color: var(--ink); }
.plan .ticks { flex: 1; align-content: start; margin-top: 16px; }
.plan .ticks li { align-items: flex-start; font-size: 15px; line-height: 1.45; }
.plan .ticks .ic { margin-top: 1px; flex: none; }
.plan .btn { margin-top: 20px; }
.plan-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
@media (max-width: 959px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

/* Узкие экраны */

@media (max-width: 1099px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .nav { display: none; }
  .top-in > .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .evidence { max-width: 560px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pairs { max-width: 560px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { position: static; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .js .sticky-cta {
    transform: translateY(110%); visibility: hidden;
    transition: transform .2s var(--ease), visibility 0s linear .2s;
  }
  .js .sticky-cta.is-on {
    transform: none; visibility: visible;
    transition: transform .25s var(--ease), visibility 0s linear 0s;
  }
  .sticky-cta.has-support { padding-right: calc(var(--gutter) + 72px); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 719px) {
  .grid-4, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .counter { padding: 16px; }
  .counter-num { font-size: 30px; }
  .counter-label { font-size: 14px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { padding: 0 0 28px 36px; }
  .timeline li::before { top: 16px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:last-child::before { display: none; }
  .tl-dot { top: 3px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  /* На телефоне рисунок уходит на второй план: экран узкий, и текст важнее.
     У шапки справочника он вдобавок сильно укрупняется (рисунок растягивается
     по высоте блока), поэтому там остаётся только бледная полоса за крошками. */
  .deco { opacity: .55; }
  .deco-page { height: 180px; opacity: .3; }
  /* 🔴 На телефоне картинка первого экрана уходит глубоко в фон: экран узкий,
     и текст заголовка идёт прямо поверх неё. Убирать совсем нельзя, иначе
     первый экран на телефоне остаётся голым. */
  .deco-hero { opacity: .3; }
  .deco-hero img { object-position: 70% center; }
  .section-lead, .final p { font-size: 17px; }
  .card, .steps li, .callout { padding: 20px; }
  /* На телефоне значок встаёт слева от заголовка: отдельной строкой он
     удваивал высоту каждой карточки. */
  .grid-4 > .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .grid-4 > .card > .card-ic { grid-column: 1; grid-row: 1; }
  .grid-4 > .card > h3 { grid-column: 2; grid-row: 1; margin-top: 0; }
  .grid-4 > .card > p { grid-column: 1 / -1; margin-top: 12px; }
  .docs { padding: 4px 20px; }
  .note { padding: 20px; }
  .evidence { padding: 12px; }
  .pair { gap: 8px; }
  .cta-row .btn { flex: 1 1 auto; }
  .cta-band-act, .cta-band-act .btn, .start-foot > div, .start-foot .btn { width: 100%; }
  .screen img { max-width: 360px; margin-inline: auto; }
  .screen figcaption { text-align: center; }
  .feats li { column-gap: 12px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
}

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