/* ==========================================================================
   Метка - лендинг. Статика без сборки.
   Концепция: левая колонка текста, "бумажная" светлая тема и чернильные
   тёмные полосы. Мотив - метка/бирка: насечки, моно-чипы erid, штампы вердиктов.
   ========================================================================== */

:root {
  /* цвета: светлая тема (токены из docs/ARCHITECTURE.md + производные) */
  --ink: #0B1020;
  --bg: #F6F7FB;
  --bg-2: #ECEEF7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFD;
  --text: #0B1020;
  --muted: #555D75;
  --line: #E1E4EF;
  --line-strong: #CBD0E2;

  --accent: #6C5CE7;
  --accent-hover: #5A49D9;
  --accent-ink: #5545D4;
  --accent-soft: rgba(108, 92, 231, 0.10);
  --on-accent: #FFFFFF;

  --teal: #00C2A8;
  --teal-ink: #00776A;
  --teal-soft: rgba(0, 194, 168, 0.13);

  --ok: #12B76A;
  --ok-ink: #067647;
  --ok-soft: rgba(18, 183, 106, 0.12);
  --warn: #F79009;
  --warn-ink: #B54708;
  --warn-soft: rgba(247, 144, 9, 0.14);
  --bad: #F04438;
  --bad-ink: #B42318;
  --bad-soft: rgba(240, 68, 56, 0.10);

  --header-bg: rgba(246, 247, 251, 0.82);
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06), 0 1px 1px rgba(11, 16, 32, 0.04);
  --shadow-lg: 0 30px 60px -24px rgba(34, 24, 110, 0.35), 0 12px 24px -12px rgba(11, 16, 32, 0.18);
  --dot: rgba(11, 16, 32, 0.12);
  --glow-a: rgba(108, 92, 231, 0.20);
  --glow-b: rgba(0, 194, 168, 0.16);

  --sun-display: none;
  --moon-display: block;

  /* типографика */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020;
    --bg-2: #0E1428;
    --surface: #12172B;
    --surface-2: #171D36;
    --text: #EEF0F8;
    --muted: #A4ABC6;
    --line: #232A47;
    --line-strong: #323A5E;
    --accent-hover: #7D6FEE;
    --accent-ink: #A99EFF;
    --accent-soft: rgba(139, 124, 255, 0.16);
    --teal-ink: #2DE0C6;
    --teal-soft: rgba(0, 194, 168, 0.16);
    --ok-ink: #47CD89;
    --ok-soft: rgba(18, 183, 106, 0.16);
    --warn-ink: #FDB022;
    --warn-soft: rgba(247, 144, 9, 0.18);
    --bad-ink: #F97066;
    --bad-soft: rgba(240, 68, 56, 0.16);
    --header-bg: rgba(11, 16, 32, 0.80);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --dot: rgba(238, 240, 248, 0.10);
    --glow-a: rgba(108, 92, 231, 0.28);
    --glow-b: rgba(0, 194, 168, 0.14);
    --sun-display: block;
    --moon-display: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1020;
  --bg-2: #0E1428;
  --surface: #12172B;
  --surface-2: #171D36;
  --text: #EEF0F8;
  --muted: #A4ABC6;
  --line: #232A47;
  --line-strong: #323A5E;
  --accent-hover: #7D6FEE;
  --accent-ink: #A99EFF;
  --accent-soft: rgba(139, 124, 255, 0.16);
  --teal-ink: #2DE0C6;
  --teal-soft: rgba(0, 194, 168, 0.16);
  --ok-ink: #47CD89;
  --ok-soft: rgba(18, 183, 106, 0.16);
  --warn-ink: #FDB022;
  --warn-soft: rgba(247, 144, 9, 0.18);
  --bad-ink: #F97066;
  --bad-soft: rgba(240, 68, 56, 0.16);
  --header-bg: rgba(11, 16, 32, 0.80);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  --dot: rgba(238, 240, 248, 0.10);
  --glow-a: rgba(108, 92, 231, 0.28);
  --glow-b: rgba(0, 194, 168, 0.14);
  --sun-display: block;
  --moon-display: none;
  color-scheme: dark;
}

/* Тёмные "чернильные" полосы: одинаковы в обеих темах */
.band {
  --bg: #0B1020;
  --surface: #141A33;
  --surface-2: #1A2140;
  --text: #EEF0F8;
  --muted: #A9B0CA;
  --line: #262E50;
  --line-strong: #364070;
  --accent-ink: #B0A6FF;
  --accent-soft: rgba(139, 124, 255, 0.18);
  --teal-ink: #2DE0C6;
  --teal-soft: rgba(0, 194, 168, 0.16);
  --ok-ink: #47CD89;
  --ok-soft: rgba(18, 183, 106, 0.16);
  --warn-ink: #FDB022;
  --warn-soft: rgba(247, 144, 9, 0.18);
  --bad-ink: #F97066;
  --bad-soft: rgba(240, 68, 56, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  background: #0B1020;
  color: var(--text);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.mono { font-family: var(--font-mono); font-feature-settings: normal; }

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 14px; height: 10px; flex: none;
  background: var(--accent);
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
  border-radius: 2px;
}
.band .eyebrow { color: var(--teal-ink); }
.band .eyebrow::before { background: var(--teal); }

.h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.032em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--muted); line-height: 1.6; max-width: 62ch;
  text-wrap: pretty;
}
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 4px; }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }

.erid {
  font-family: var(--font-mono); font-feature-settings: normal;
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn .i { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 24px -10px rgba(108, 92, 231, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-text { color: var(--text); padding-inline: 12px; }
.btn-text:hover { color: var(--accent-ink); }
.band .btn-ghost { background: transparent; border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.03em;
}
.logo svg { width: 30px; height: 30px; flex: none; }

.nav { display: none; margin-left: 20px; gap: 2px; }
.nav a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a.is-active { color: var(--text); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-actions .btn-text, .header-actions .btn-primary { display: none; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--text); transition: background-color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn .i { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: var(--sun-display); }
.theme-toggle .i-moon { display: var(--moon-display); }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 12px 20px;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  padding: 14px 4px; text-decoration: none; font-size: 1.0625rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

@media (min-width: 1000px) {
  .nav { display: flex; }
  .header-actions .btn-text, .header-actions .btn-primary { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 82% 12%, var(--glow-a), transparent 70%),
    radial-gradient(460px 340px at 98% 70%, var(--glow-b), transparent 70%),
    radial-gradient(var(--dot) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { position: relative; display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; }
}

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.status-pill b {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--teal-soft); color: var(--teal-ink);
  padding: 3px 8px; border-radius: 999px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.75rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero h1 .erid {
  font-weight: 700; letter-spacing: -0.05em;
  background: var(--accent-soft); padding: 0 0.14em 0.04em; border-radius: 0.18em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero h1 .hl {
  background: linear-gradient(transparent 62%, rgba(0, 194, 168, 0.38) 62% 92%, transparent 92%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding-inline: 0.04em;
}
.hero .lead { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); max-width: 56ch; }
.demo-banner { margin-top: 24px; max-width: 56ch; padding: 15px 18px; border: 1px solid rgba(247, 144, 9, 0.45); border-radius: var(--radius); background: var(--warn-soft); color: var(--text); font-size: 0.9375rem; line-height: 1.55; }
.demo-banner strong { color: var(--warn-ink); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.hero-points { margin-top: 36px; display: grid; gap: 10px; font-size: 0.9375rem; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points .i { color: var(--teal-ink); margin-top: 0.2em; width: 1.1em; height: 1.1em; }

/* --- иллюстрация интерфейса --- */
.mock { position: relative; padding-bottom: 8px; }
.mock * { user-select: none; }
.mock-win {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-path { margin-left: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.mock-sample {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  border: 1px dashed var(--line-strong); padding: 2px 8px; border-radius: 6px;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.mock-head b { font-size: 1rem; letter-spacing: -0.02em; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.seg span { padding: 4px 10px; border-radius: 7px; }
.seg .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.mock-rows { padding: 4px 8px 14px; }
.mrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 12px;
}
.mrow + .mrow { margin-top: 2px; }
.mrow.sel { background: var(--bad-soft); box-shadow: inset 0 0 0 1px rgba(240, 68, 56, 0.28); }
.mrow-t { min-width: 0; }
.mrow-t b { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-t span { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3;
}
.badge .i { width: 13px; height: 13px; stroke-width: 2.4; }
.badge-ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge-bad { background: var(--bad-soft); color: var(--bad-ink); }
.badge-unk { background: var(--warn-soft); color: var(--warn-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 5px 6px 5px 10px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid transparent; max-width: 100%;
}
.chip .cp { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--surface); color: var(--muted); }
.chip .cp .i { width: 12px; height: 12px; }
.chip .diff { color: var(--bad-ink); text-decoration: underline wavy; text-underline-offset: 3px; }
.chip.is-wrong { background: var(--bad-soft); color: var(--text); border-color: rgba(240, 68, 56, 0.35); }

.mock-detail {
  margin-top: 16px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px;
}
.md-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.md-top b { display: block; font-size: 0.9375rem; letter-spacing: -0.015em; }
.md-top span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.md-ids { margin-top: 14px; display: grid; gap: 8px; }
.md-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 0.8125rem; color: var(--muted); }
.md-id > em { font-style: normal; min-width: 108px; }
.md-checks { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: grid; gap: 9px; font-size: 0.875rem; }
.md-checks li { display: flex; align-items: center; gap: 10px; }
.md-checks .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; stroke-width: 2.6; }
.md-checks .yes .i { background: var(--ok-soft); color: var(--ok-ink); }
.md-checks .no .i { background: var(--bad-soft); color: var(--bad-ink); }

.mock-float {
  display: none; position: absolute; z-index: 3; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); font-size: 0.8125rem; font-weight: 600;
}
.mock-float .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok-ink); }
.mock-float .ico .i { width: 16px; height: 16px; stroke-width: 2.4; }
.mock-float small { display: block; font-weight: 400; color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; }

@media (min-width: 1000px) {
  .mock { padding-bottom: 150px; margin-right: -12px; }
  .mock-detail { position: absolute; right: -16px; bottom: 0; width: min(420px, 86%); margin: 0; }
  .mock-float { display: flex; left: -28px; top: 108px; animation: bob 7s ease-in-out infinite; }
  .mock-win { transform: rotate(0.0001deg); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.stamp {
  position: absolute; right: 18px; top: -18px; z-index: 4;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bad-ink); border: 2px solid currentColor; border-radius: 8px; padding: 4px 10px;
  background: var(--surface); transform: rotate(-5deg);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Проблема
   -------------------------------------------------------------------------- */
.problem { background: var(--bg-2); border-block: 1px solid var(--line); }
.problem-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .problem-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .problem-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; margin-bottom: 0; }
}
.pain { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding-block: 28px; border-top: 1px solid var(--line-strong); }
.pain:last-child { border-bottom: 1px solid var(--line-strong); }
.pain-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--bad-ink); box-shadow: var(--shadow-sm); }
.pain-ico .i { width: 22px; height: 22px; }
.pain h3 { font-size: 1.3125rem; letter-spacing: -0.025em; line-height: 1.25; font-weight: 700; }
.pain p { margin-top: 10px; color: var(--muted); max-width: 56ch; }
.pain .catch { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.8125rem; color: var(--muted); }
.pain .catch code {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  padding: 3px 9px; border-radius: 7px; background: var(--teal-soft); color: var(--teal-ink);
}

/* --------------------------------------------------------------------------
   Как это работает
   -------------------------------------------------------------------------- */
.flow-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.flow-wrap figure { margin: 0; }
.flow-wrap svg { display: block; width: 100%; height: auto; }
.flow-wrap figcaption { margin-top: 18px; font-size: 0.875rem; color: var(--muted); max-width: 80ch; }
.flow-h { display: none; }
.flow-v { max-width: 380px; margin-inline: auto; }
@media (min-width: 820px) {
  .flow-h { display: block; }
  .flow-v { display: none; }
}
.fl-node { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.fl-node.key { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.fl-title { font: 700 15px var(--font-sans); fill: var(--text); letter-spacing: -0.01em; }
.fl-title.mono { font-family: var(--font-mono); fill: var(--accent-ink); }
.fl-sub { font: 400 11.5px var(--font-sans); fill: var(--muted); }
.fl-ico { color: var(--accent-ink); }
.fl-g.key .fl-ico { color: var(--teal-ink); }
.fl-edge { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.fl-edge.alert { stroke: var(--bad-ink); stroke-dasharray: 5 5; }
.fl-arrow { fill: var(--muted); }
.fl-arrow.alert { fill: var(--bad-ink); }
.fl-label { font: 500 12px var(--font-sans); fill: var(--muted); }
.fl-label.alert { fill: var(--bad-ink); }
.fl-lane { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.fl-lane-t { font: 600 11px var(--font-mono); fill: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fl-lane-t.us { fill: var(--teal-ink); }

.steps { margin-top: 48px; display: grid; gap: 32px 28px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--text); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--text);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8125rem;
}
.step h3 { margin-top: 10px; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Возможности
   -------------------------------------------------------------------------- */
.features { padding-top: 0; }
.feat-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feat {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feat:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; }
.feat-ico .i { width: 22px; height: 22px; }
.feat h3 { font-size: 1.1875rem; letter-spacing: -0.022em; line-height: 1.3; }
.feat p { color: var(--muted); font-size: 0.9375rem; }
.feat-main {
  background: linear-gradient(155deg, #1B1450 0%, #2B1F7E 55%, #0F3F4B 130%);
  border-color: transparent; color: #F4F3FF;
}
.feat-main:hover { border-color: transparent; }
.feat-main .feat-ico { background: rgba(255, 255, 255, 0.14); color: #fff; }
.feat-main p { color: rgba(244, 243, 255, 0.82); }
.feat-main .tagline {
  margin-top: auto; padding-top: 8px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6FF3DF;
}
@media (min-width: 700px) and (max-width: 1039px) { .feat-main { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Контроль публикаций
   -------------------------------------------------------------------------- */
.control { overflow: clip; }
.control::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 8% 0%, rgba(108, 92, 231, 0.30), transparent 70%),
    radial-gradient(520px 380px at 100% 100%, rgba(0, 194, 168, 0.16), transparent 70%);
}
.control-grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 1000px) { .control-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.checklist { margin-top: 32px; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-ink); }
.checklist b { display: block; font-size: 1rem; letter-spacing: -0.015em; }
.checklist span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.verdicts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.limit { margin-top: 24px; font-size: 0.875rem; color: var(--muted); max-width: 58ch; padding-left: 14px; border-left: 2px solid var(--line-strong); }

.result-stack { display: grid; gap: 20px; }
.result {
  position: relative; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line-strong); padding: 22px; box-shadow: var(--shadow-lg);
}
.result .stamp { top: -14px; }
.result-ok .stamp { color: var(--ok-ink); }
.res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.res-top b { display: block; letter-spacing: -0.02em; }
.res-top span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.res-post {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.65; color: var(--muted);
}
.res-post mark { background: transparent; color: var(--text); font-weight: 600; border-radius: 5px; padding: 1px 5px; }
.res-post mark.good { background: var(--ok-soft); }
.res-post mark.bad { background: var(--bad-soft); box-shadow: inset 0 -2px 0 var(--bad); }
.res-post mark.mono { font-family: var(--font-mono); font-size: 0.8125rem; }
.issues { margin-top: 16px; display: grid; gap: 10px; }
.issue { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.9rem; }
.issue .i { width: 20px; height: 20px; padding: 4px; border-radius: 50%; stroke-width: 2.6; margin-top: 2px; }
.issue.no .i { background: var(--bad-soft); color: var(--bad-ink); }
.issue.yes .i { background: var(--ok-soft); color: var(--ok-ink); }
.issue code { display: inline-block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.02em; }
.sample-note { font-size: 0.8125rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Безопасность
   -------------------------------------------------------------------------- */
.security-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .security-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.sec-list { display: grid; gap: 0; }
.sec-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--line-strong); }
.sec-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.sec-list .i { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.sec-list b { display: block; font-size: 1.0625rem; letter-spacing: -0.02em; }
.sec-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; max-width: 60ch; }
.honest {
  margin-top: 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px dashed var(--line-strong); font-size: 0.9375rem; color: var(--muted);
}
.honest b { color: var(--text); }

/* --------------------------------------------------------------------------
   Для кого
   -------------------------------------------------------------------------- */
.audience { background: var(--bg-2); border-block: 1px solid var(--line); }
.aud-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .aud-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aud { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  position: relative; }
.aud::after { /* насечка-бирка */
  content: ""; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-strong);
}
.aud .role { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.aud h3 { font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.2; }
.aud p { color: var(--muted); font-size: 0.9375rem; }
.aud ul { margin-top: 6px; display: grid; gap: 10px; font-size: 0.9375rem; }
.aud li { display: flex; gap: 10px; align-items: flex-start; }
.aud li .i { color: var(--teal-ink); width: 1.05em; height: 1.05em; margin-top: 0.28em; stroke-width: 2.4; }

/* --------------------------------------------------------------------------
   Ранний доступ
   -------------------------------------------------------------------------- */
.access-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .access-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.access-list { margin-top: 28px; display: grid; gap: 12px; }
.access-list li { display: flex; gap: 12px; align-items: flex-start; }
.access-list .i { color: var(--teal-ink); margin-top: 0.22em; stroke-width: 2.4; width: 1.1em; height: 1.1em; }
.access .btn { margin-top: 32px; }

.ticket {
  position: relative; padding: 32px 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: calc(100% - 96px); width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
}
.ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket .kicker { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); }
.ticket h3 { margin-top: 10px; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.ticket p { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
.ticket .tear { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticket .tear span { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.ticket .tear b { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; }
  .faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; margin-bottom: 0; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list summary .plus {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  transition: transform .25s, background-color .2s;
}
.faq-list summary .plus::before, .faq-list summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.8px; background: currentColor; transform: translate(-50%, -50%);
}
.faq-list summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
.faq-list details[open] summary .plus { background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-list details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 4px 26px; color: var(--muted); max-width: 66ch; display: grid; gap: 12px; }
.faq-a b, .faq-a strong { color: var(--text); font-weight: 600; }
.disclaimer { margin-top: 24px; font-size: 0.8125rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.disclaimer .i { margin-top: 0.15em; }

/* --------------------------------------------------------------------------
   Финальный CTA
   -------------------------------------------------------------------------- */
.final { overflow: clip; text-align: left; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(108, 92, 231, 0.38), transparent 70%),
    radial-gradient(500px 320px at 10% 100%, rgba(0, 194, 168, 0.20), transparent 70%),
    radial-gradient(rgba(238, 240, 248, 0.10) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 40%, #000 70%, transparent);
}
.final .container { position: relative; }
.final h2 { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; max-width: 16ch; text-wrap: balance; }
.final p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 52ch; }
.final .hero-cta { margin-top: 36px; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--bg); }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; } }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; max-width: 36ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding: 6px 0; text-decoration: none; font-size: 0.9375rem; }
.foot-col a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: grid; gap: 10px; max-width: 100ch; }

/* --------------------------------------------------------------------------
   Появление
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .stamp { animation: stamp .5s .5s cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes stamp { from { opacity: 0; transform: rotate(-5deg) scale(1.7); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Юридические страницы
   -------------------------------------------------------------------------- */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.doc-body { max-width: 72ch; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin-top: 16px; text-wrap: balance; }
.doc h2 { margin-top: 40px; font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.3; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc ul { list-style: disc; padding-left: 1.3em; }
.doc a { color: var(--accent-ink); }
.draft-banner {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); display: flex; gap: 12px; align-items: flex-start;
  background: var(--warn-soft); color: var(--text); border: 1px solid rgba(247, 144, 9, 0.45); font-size: 0.9375rem;
}
.draft-banner .i { color: var(--warn-ink); margin-top: 0.15em; }
.todo { font-family: var(--font-mono); font-size: 0.9em; background: var(--warn-soft); color: var(--warn-ink); padding: 1px 6px; border-radius: 5px; }
