/* ============================================================
   Тендерный радар — стили
   Визуальный язык: технический бланк + радар. Тонкие линейки,
   координатная сетка, моноширинные подписи, печать-вердикт.
   ============================================================ */

:root {
  --bg: #f3f4f6;
  --bg-2: #e9ecef;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --ink: #141a21;
  --ink-2: #3b4652;
  --ink-3: #6b7784;
  --line: #d9dee3;
  --line-strong: #b9c2cb;
  --signal: #c27400;        /* янтарный сигнал радара */
  --signal-ink: #ffffff;
  --signal-soft: rgba(194, 116, 0, 0.12);
  --go: #1b7a5a;
  --go-soft: rgba(27, 122, 90, 0.12);
  --warn: #a8690a;
  --warn-soft: rgba(168, 105, 10, 0.14);
  --no: #b03a3a;
  --no-soft: rgba(176, 58, 58, 0.12);
  --focus: #1f5fbf;
  --grid: rgba(20, 26, 33, 0.06);
  --shadow: 0 1px 2px rgba(20, 26, 33, 0.06), 0 8px 24px rgba(20, 26, 33, 0.06);

  --font-head: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a;
    --bg-2: #141a22;
    --surface: #171e27;
    --surface-2: #1c242e;
    --ink: #e9ecef;
    --ink-2: #b6bfc9;
    --ink-3: #7f8b98;
    --line: #27313c;
    --line-strong: #3a4653;
    --signal: #e8a23a;
    --signal-ink: #141a21;
    --signal-soft: rgba(232, 162, 58, 0.14);
    --go: #4cc39a;
    --go-soft: rgba(76, 195, 154, 0.14);
    --warn: #e0b04a;
    --warn-soft: rgba(224, 176, 74, 0.14);
    --no: #e07070;
    --no-soft: rgba(224, 112, 112, 0.14);
    --focus: #7fb0ff;
    --grid: rgba(233, 236, 239, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --bg: #0f141a;
  --bg-2: #141a22;
  --surface: #171e27;
  --surface-2: #1c242e;
  --ink: #e9ecef;
  --ink-2: #b6bfc9;
  --ink-3: #7f8b98;
  --line: #27313c;
  --line-strong: #3a4653;
  --signal: #e8a23a;
  --signal-ink: #141a21;
  --signal-soft: rgba(232, 162, 58, 0.14);
  --go: #4cc39a;
  --go-soft: rgba(76, 195, 154, 0.14);
  --warn: #e0b04a;
  --warn-soft: rgba(224, 176, 74, 0.14);
  --no: #e07070;
  --no-soft: rgba(224, 112, 112, 0.14);
  --focus: #7fb0ff;
  --grid: rgba(233, 236, 239, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1rem + 1.8vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 500; }
h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--ink-3); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { .wrap { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 0.95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.tag {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--line-strong);
  border-radius: 2px; font: 500 0.78rem/1.4 var(--font-body); color: var(--ink-3); vertical-align: middle;
}
.tag-example { border-style: dashed; }

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.brand-name { font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; color: var(--signal); }
.brand-name { white-space: nowrap; }
.nav { display: none; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.head-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 10px 0; text-decoration: none; font-size: 1.05rem; }
.mobile-nav .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .nav, .head-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- первый экран ---------- */
.hero {
  position: relative; padding: 40px 0 56px; overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.lead { font-size: 1.08rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { flex: 1 1 auto; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .cta-row .btn { flex: 0 0 auto; }
}

/* радар + лента: один «экран радара» — радар крупный, лента поверх него */
.hero-visual { position: relative; min-height: 420px; padding-top: 40px; }
.radar {
  position: absolute; z-index: 0; border-radius: 50%; overflow: hidden;
  width: 480px; height: 480px; left: 50%; top: 0; transform: translateX(-38%);
  pointer-events: none;
}
.radar-svg { width: 100%; height: 100%; }
.blip { fill: var(--signal); opacity: 0; animation: blip 6s linear infinite; }
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, var(--signal-soft) 340deg, color-mix(in srgb, var(--signal) 55%, transparent) 360deg);
  animation: sweep 6s linear infinite;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { .sweep { mix-blend-mode: screen; } }
:root[data-theme="dark"] .sweep { mix-blend-mode: screen; }
@keyframes sweep { to { transform: rotate(360deg); } }
.b1 { animation-delay: 0.5s; } .b2 { animation-delay: 3.4s; } .b3 { animation-delay: 1.9s; } .b4 { animation-delay: 5.1s; } .b5 { animation-delay: 2.6s; }
@keyframes blip { 0% { opacity: 0; r: 4; } 4% { opacity: 1; r: 6; } 40% { opacity: 0.6; r: 4; } 100% { opacity: 0; r: 4; } }

@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; }
  .blip { animation: none; opacity: 0.8; }
}

.feed {
  position: relative; z-index: 1;
  width: min(100%, 420px); margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
}
.feed-list { display: grid; }
.lot { padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.lot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 6px; }
.lot-src { color: var(--ink-3); font-size: 0.86rem; }
.lot-src time { color: var(--ink-2); margin-left: 6px; }
.lot-title { font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.lot-meta { font-size: 0.86rem; color: var(--ink-3); margin-top: 2px; }
.lot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; color: var(--ink-2); font-size: 0.9rem; }
.verdict {
  font-size: 0.8rem; font-weight: 500; padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.verdict-go { color: var(--go); background: var(--go-soft); }
.verdict-check { color: var(--warn); background: var(--warn-soft); }
.verdict-no { color: var(--no); background: var(--no-soft); }
.lot.is-new { animation: lot-in 0.6s ease-out; }
@keyframes lot-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lot.is-new { animation: none; } }
.radar-caption { padding: 10px 14px; font-size: 0.82rem; color: var(--ink-3); border-top: 1px solid var(--line); }

/* Радар — главная картинка, он виден целиком; лента заходит только на его нижнюю часть (19.10: лента закрывала радар) */
@media (max-width: 959px) {
  .hero-visual { min-height: 0; padding-top: 8px; }
  .radar { position: relative; left: auto; top: auto; transform: none; margin: 0 auto;
           width: min(320px, 82vw); height: min(320px, 82vw); }
  .feed { margin: -64px auto 0; width: min(100%, 440px); }
}
@media (min-width: 960px) {
  .hero-visual { min-height: 600px; padding-top: 0; }
  .radar { width: 460px; height: 460px; left: auto; right: -24px; top: 0; transform: none; }
  .feed { width: 360px; margin: 250px 0 0 0; }
  .feed-list .lot:nth-child(n+3) { display: none; }
}
@media (min-width: 1200px) {
  .radar { width: 500px; height: 500px; right: -40px; }
  .feed { width: 380px; margin-top: 270px; }
}

/* ---------- секции ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 760px; }
.section-sub { color: var(--ink-2); font-size: 1.02rem; }
.note { margin-top: 28px; font-size: 0.88rem; color: var(--ink-3); max-width: 70ch; }
.src { color: var(--ink-3); font-size: 0.8rem; }

/* факты */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.fact { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.fact-num { font-family: var(--font-head); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--signal); }
.fact-num small { font-family: var(--font-body); font-size: 0.42em; font-weight: 500; color: var(--ink-2); vertical-align: baseline; margin-left: 4px; }
.fact-text { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  .fact { padding: 28px 0 32px; }
}

/* шаги */
.steps { display: grid; gap: 28px; counter-reset: step; position: relative; }
.step { position: relative; padding-left: 28px; display: grid; gap: 8px; }
.step::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -28px; width: 1px; background: var(--line-strong); }
.step:last-child::before { bottom: 0; }
.step::after { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--signal); }
.step-you::after { background: var(--signal); }
.step-idx { color: var(--signal); font-weight: 500; font-size: 0.9rem; }
.step p { color: var(--ink-2); font-size: 0.98rem; }
.step-you h3 { color: var(--signal); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 24px; }
  .step::before { left: 0; right: -32px; top: 4px; bottom: auto; height: 1px; width: auto; }
  .step:last-child::before { right: 0; }
  .step::after { left: 0; top: 0; }
}

.chat-demo { margin-top: 48px; display: flex; }
.chat-bubble {
  max-width: 560px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px; box-shadow: var(--shadow); display: grid; gap: 10px; font-size: 0.95rem;
}
.chat-src { color: var(--ink-3); font-size: 0.86rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-btn {
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 0.9rem; font-weight: 500;
  background: var(--surface-2);
}
.chat-btn:first-child { border-color: var(--signal); color: var(--signal); }
@media (min-width: 900px) { .chat-demo { justify-content: flex-end; } }

/* ---------- лист разбора ---------- */
.section-example { background: var(--bg-2); }
.sheet {
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  position: relative;
}
.sheet::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--signal);
}
.sheet-head {
  display: grid; gap: 16px; padding: 22px 20px 18px 24px; border-bottom: 1px dashed var(--line-strong);
}
.sheet-kicker { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-meta { color: var(--ink-2); font-size: 0.92rem; margin-top: 6px; }
.stamp {
  justify-self: start; align-self: start;
  padding: 8px 14px; border: 2px solid var(--go); color: var(--go); border-radius: 3px;
  font: 700 0.95rem/1 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(-4deg); background: var(--go-soft);
  box-shadow: inset 0 0 0 2px var(--surface);
}
@media (min-width: 720px) {
  .sheet-head { grid-template-columns: 1fr auto; align-items: start; padding: 28px 32px 22px 36px; }
  .stamp { justify-self: end; margin-top: 8px; }
}
.sheet-grid { display: grid; gap: 28px; padding: 22px 20px 26px 24px; }
@media (min-width: 900px) { .sheet-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 30px 32px 34px 36px; } }
.sheet-col { display: grid; gap: 14px; align-content: start; }
.sheet-col h4 { margin-top: 6px; }

.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.checks li b { color: var(--ink); }
.checks li i { font-style: normal; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin-left: 6px; white-space: nowrap; }
.ck { width: 18px; height: 18px; border-radius: 2px; margin-top: 3px; position: relative; border: 1px solid currentColor; }
.ck::before { content: ""; position: absolute; inset: 0; }
.ok .ck { color: var(--go); background: var(--go-soft); }
.ok .ck::before { width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; inset: auto; left: 5px; top: 2px; transform: rotate(45deg); }
.no .ck { color: var(--no); background: var(--no-soft); }
.no .ck::before { background: linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%); inset: 3px; }
.warn .ck { color: var(--warn); background: var(--warn-soft); }
.warn .ck::before { width: 2px; height: 7px; background: currentColor; inset: auto; left: 7px; top: 3px; box-shadow: 0 9px 0 0 currentColor; }

.docs-bar { height: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.docs-bar span { display: block; height: 100%; background: var(--go); }
.docs-bar-fill { width: 84.6%; } /* 11 из 13 — ширина в CSS, а не в style=: строгая CSP запрещает встроенные стили */
.docs-count { font-size: 0.92rem; color: var(--ink-2); margin-top: -6px; }
.missing { display: grid; gap: 6px; font-size: 0.92rem; color: var(--ink-2); }
.missing li { position: relative; padding-left: 18px; }
.missing li::before { content: "—"; position: absolute; left: 0; color: var(--no); }
.price-rows { margin: 0; display: grid; }
.price-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.price-rows dt { color: var(--ink-2); }
.price-rows dd { margin: 0; font-family: var(--font-mono); font-size: 0.88rem; white-space: nowrap; }
.sheet-why { font-size: 0.95rem; padding: 12px 14px; background: var(--signal-soft); border-left: 2px solid var(--signal); }

/* ---------- принципы ---------- */
.rules { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rules h3 { grid-column: 2; }
.rules p { grid-column: 2; color: var(--ink-2); font-size: 0.98rem; max-width: 60ch; }
.rule-no {
  grid-row: span 2; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--no); color: var(--no); border-radius: 50%;
  font-weight: 600; font-size: 0.85rem;
}
.rule-yes .rule-no { border-color: var(--go); color: var(--go); background: var(--go-soft); }
@media (min-width: 900px) {
  .rules { grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .rules li:nth-child(odd):last-child { grid-column: span 2; }
}

/* ---------- площадки ---------- */
.sources { display: grid; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.source { padding: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; background: var(--surface); }
.source:last-child { border-bottom: 0; }
.source-host { font-size: 1rem; font-weight: 500; }
.source-text { color: var(--ink-2); font-size: 0.95rem; }
.source-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.dot-on { background: var(--go); border-color: var(--go); }
.source-soon { background: var(--surface-2); }
.source-soon .source-host { color: var(--ink-3); }
@media (min-width: 900px) {
  .sources { grid-template-columns: repeat(3, 1fr); }
  .source { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 24px; }
  .source:last-child { border-right: 0; }
}

/* ---------- цены ---------- */
.plans { display: grid; gap: 20px; }
.plan { padding: 26px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); display: grid; gap: 16px; align-content: start; }
.plan-pilot { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.plan-kicker { color: var(--ink-3); font-size: 0.92rem; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-price { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; }
.plan-price span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--signal); margin-top: 4px; }
.plan-list { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.95rem; }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 1px; background: var(--signal); }
.plan-text { color: var(--ink-2); font-size: 0.98rem; }
.plan-text b { color: var(--ink); }
.muted { color: var(--ink-3); font-size: 0.9rem; }
.plan .btn { justify-self: start; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 28px; } .plan { padding: 32px 30px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line-strong); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 500; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 1px; background: var(--signal);
  transition: transform 0.2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-body { padding: 0 0 20px; color: var(--ink-2); font-size: 0.98rem; max-width: 68ch; }

/* ---------- форма ---------- */
.section-pilot { background: var(--bg-2); border-bottom: 0; }
.pilot-grid { display: grid; gap: 36px; }
.pilot-copy { display: grid; gap: 14px; align-content: start; }
.pilot-copy p { color: var(--ink-2); }
.pilot-notes { display: grid; gap: 6px; color: var(--ink-3); font-size: 0.92rem; }
.pilot-notes li { position: relative; padding-left: 18px; }
.pilot-notes li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 1px; background: var(--signal); }
@media (min-width: 900px) { .pilot-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }

.form {
  background: var(--surface); border: 1px solid var(--line-strong); padding: 24px 20px;
  display: grid; gap: 18px; box-shadow: var(--shadow);
}
@media (min-width: 720px) { .form { padding: 32px 30px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.hint { color: var(--ink-3); font-weight: 400; font-size: 0.86rem; margin-left: 6px; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 11px 12px; font: 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--no); }
.field textarea { resize: vertical; min-height: 84px; }
.err { font-size: 0.84rem; color: var(--no); min-height: 0; }
.err:empty { display: none; }
.field-check { grid-template-columns: 22px 1fr; gap: 4px 10px; align-items: start; }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--signal); }
.field-check label { font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }
.field-check .err { grid-column: 2; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 12px; }
.form-actions .btn { justify-self: start; }
.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--go); }
.form-status.bad { color: var(--no); }
.form.is-sent .field, .form.is-sent .form-actions .btn { display: none; }
.form.is-sent .form-status { font-size: 1.1rem; padding: 12px 0; }

/* ---------- подвал ---------- */
.site-foot { padding: 36px 0 44px; border-top: 1px solid var(--line-strong); background: var(--bg); }
.foot-grid { display: grid; gap: 20px; }
.foot-small { font-size: 0.84rem; color: var(--ink-3); margin-top: 6px; max-width: 48ch; }
.foot-small a { color: var(--ink-2); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; } }

/* ============================================================
   v4 — многостраничный сайт: общие блоки внутренних страниц
   ============================================================ */

/* активный пункт меню */
.nav a { position: relative; padding: 4px 0; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--signal); border-radius: 1px;
}
.mobile-nav a[aria-current="page"] { color: var(--signal); font-weight: 500; }

/* первый экран внутренней страницы */
.page-hero {
  position: relative; padding: 28px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, var(--bg) 100%); }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); max-width: 22ch; }
.page-hero .lead { margin: 4px 0 0; max-width: 62ch; }
.page-hero .status { justify-self: start; }
@media (min-width: 960px) { .page-hero { padding: 40px 0 56px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-2); }

.kicker { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }

/* статусы: работает / подключено / в разработке / планируем */
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  background: var(--surface);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; }
.status-on { color: var(--go); border-color: color-mix(in srgb, var(--go) 50%, transparent); background: var(--go-soft); }
.status-on::before { background: var(--go); border-color: var(--go); }
.status-dev { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: var(--warn-soft); }
.status-dev::before { background: var(--warn); border-color: var(--warn); }
.status-plan { color: var(--ink-3); border-style: dashed; }

/* этапы (как работает) */
.stages { display: grid; gap: 20px; }
.stage {
  position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px 24px; display: grid; gap: 16px;
}
.stage::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-strong); border-radius: var(--radius) 0 0 var(--radius); }
.stage-on::before { background: var(--go); }
.stage-dev::before { background: var(--warn); }
.stage-head { display: grid; gap: 10px; }
.stage-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-3); }
.stage-head h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }
.stage-body { display: grid; gap: 18px; }
.stage-body > p { color: var(--ink-2); }
.stage-list { display: grid; gap: 8px; color: var(--ink-2); font-size: 0.95rem; }
.stage-list li { position: relative; padding-left: 20px; }
.stage-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 1px; background: var(--signal); }
.stage-aside { padding: 14px 16px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 0.92rem; color: var(--ink-2); display: grid; gap: 8px; align-content: start; }
.stage-aside h4 { margin: 0; }
@media (min-width: 720px) {
  .stage { padding: 28px 30px 30px 34px; }
  .stage-head { grid-template-columns: 1fr auto; align-items: start; }
  .stage-head .status { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
  .stage-head h2 { grid-column: 1; }
  .stage-head .stage-num { grid-column: 1; }
}
@media (min-width: 960px) {
  .stage-body { grid-template-columns: 1.3fr 1fr; gap: 32px; }
  .stage-body > p { grid-column: 1; }
  .stage-body .stage-list { grid-column: 1; }
  .stage-body .stage-aside { grid-column: 2; grid-row: 1 / span 2; }
}

/* таблицы */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; font-size: 0.82rem; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td b { color: var(--ink); }
.tbl .ref { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.tbl .cell-mono { font-family: var(--font-mono); font-size: 0.86rem; white-space: nowrap; }
.tbl-hl td:first-child { position: relative; }
.tbl-hl td { background: var(--signal-soft); }
@media (max-width: 719px) {
  .tbl-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-stack tr { display: grid; gap: 6px; padding: 14px; border-bottom: 1px solid var(--line); }
  .tbl-stack tbody tr:last-child { border-bottom: 0; }
  .tbl-stack td { display: grid; gap: 2px; padding: 0; border: 0; }
  .tbl-stack td::before { content: attr(data-l); font-size: 0.74rem; color: var(--ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
  .tbl-stack td:first-child { font-weight: 500; color: var(--ink); }
  .tbl-stack td:first-child::before { display: none; }
  .tbl .ref, .tbl .cell-mono { white-space: normal; }
}

/* карточки */
.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 1.05rem; font-weight: 500; }
.card p { color: var(--ink-2); font-size: 0.95rem; }
.card .status { justify-self: start; }
.card-num { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 700; line-height: 1; color: var(--signal); }
.card-num small { font-family: var(--font-body); font-size: 0.45em; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.card-src { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); }
.card-soon { background: var(--surface-2); }
.card-soon h3 { color: var(--ink-3); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } .card { padding: 24px; } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } .cards-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1000px) and (max-width: 1099px) { .cards-5 { grid-template-columns: repeat(3, 1fr); } }

/* нормы права */
.law { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.law li { display: grid; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.law-ref { font-family: var(--font-mono); font-size: 0.82rem; color: var(--signal); }
.law h3 { font-size: 1.08rem; font-weight: 500; }
.law p { color: var(--ink-2); font-size: 0.95rem; max-width: 64ch; }
.law-fine { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--no); }
.law-fine small { font-family: var(--font-body); font-size: 0.6em; font-weight: 500; color: var(--ink-2); }
@media (min-width: 900px) {
  .law li { grid-template-columns: 150px 1fr; column-gap: 32px; }
  .law li .law-ref { grid-row: 1 / span 3; padding-top: 4px; }
}

/* как устроена подпись: 3 шага */
.flow { display: grid; gap: 12px; counter-reset: flow; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px 18px 18px 56px; display: grid; gap: 6px; }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 16px; top: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal); font: 600 0.85rem/1 var(--font-mono); border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); }
.flow h3 { font-size: 1rem; font-weight: 500; }
.flow p { color: var(--ink-2); font-size: 0.92rem; }
.flow-you { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.flow-you::before { background: var(--signal); color: var(--signal-ink); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .flow li { padding: 56px 20px 22px 20px; }
  .flow li::before { left: 20px; top: 16px; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 29px; width: 10px; height: 1px; background: var(--line-strong); }
}

/* выноска */
.callout { display: grid; gap: 8px; padding: 18px 20px; background: var(--signal-soft); border-left: 3px solid var(--signal); border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; }
.callout p { color: var(--ink-2); font-size: 0.98rem; }
.callout b { color: var(--ink); }
.callout-quiet { background: var(--surface-2); border-left-color: var(--line-strong); }

/* сравнение (тарифы) */
.cmp .tbl td:first-child { font-weight: 500; color: var(--ink); }
.cmp .yes { color: var(--go); font-weight: 500; }
.cmp .later { color: var(--ink-3); }

/* команда */
.team { display: grid; gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 10px; align-content: start; }
.person-role { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); letter-spacing: 0.04em; text-transform: uppercase; }
.person h3 { font-size: 1.15rem; }
.person p { color: var(--ink-2); font-size: 0.95rem; }
.person a { color: var(--ink); }
.person-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal); font: 700 1rem/1 var(--font-head); border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent); }
@media (min-width: 720px) { .team { grid-template-columns: 1fr 1fr; gap: 20px; } .person { padding: 26px 26px; } }

/* полоса призыва */
.cta-band { background: var(--bg-2); }
.cta-band .wrap { display: grid; gap: 18px; }
.cta-band h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); max-width: 24ch; }
.cta-band p { color: var(--ink-2); max-width: 56ch; }
.cta-band .cta-row { align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }

/* прозаические разделы */
.prose { display: grid; gap: 14px; max-width: 760px; color: var(--ink-2); }
.prose h3 { color: var(--ink); margin-top: 8px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 1px; background: var(--signal); }
.prose b { color: var(--ink); }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* что будет после заявки (пилот) */
.after { display: grid; gap: 14px; counter-reset: after; }
.after li { position: relative; padding-left: 40px; display: grid; gap: 4px; }
.after li::before { counter-increment: after; content: counter(after); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--signal-soft); color: var(--signal); font: 600 0.8rem/1 var(--font-mono); }
.after b { font-weight: 500; }
.after p { color: var(--ink-2); font-size: 0.92rem; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 16px; padding: 64px var(--gutter); }
.nf h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.nf p { color: var(--ink-2); max-width: 50ch; }
.nf-code { color: var(--signal); font-family: var(--font-mono); }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; }
.nf-links a { color: var(--ink-2); }

/* подвал: ссылки на разделы и портфолио */
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-nav a[aria-current="page"] { color: var(--signal); }

/* главная: заголовок секции с кнопкой «подробнее» */
.section-head-row { display: grid; gap: 14px; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }
.more { font-size: 0.95rem; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 720px) { .section-head-row { grid-template-columns: 1fr auto; align-items: end; } }

/* главная: шаги со статусами */
.step .status { justify-self: start; }
.step h3 a { text-decoration: none; }

/* главная: ключ не уходит из компании */
.section-key { background: var(--bg-2); }
.key-grid { display: grid; gap: 28px; }
.key-points { display: grid; gap: 14px; }
.key-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 0.98rem; }
.key-points li b { color: var(--ink); display: block; }
.key-ico { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--signal); display: grid; place-items: center; color: var(--signal); margin-top: 2px; }
.key-ico svg { width: 14px; height: 14px; }
.key-card { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 22px 20px; display: grid; gap: 14px; align-content: start; position: relative; }
.key-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--no); }
.key-card h3 { font-size: 1rem; font-weight: 500; }
.key-card dl { margin: 0; display: grid; gap: 10px; }
.key-card dt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); }
.key-card dd { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
@media (min-width: 900px) { .key-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .key-card { padding: 28px 28px 28px 32px; } }

/* маленькая легенда статусов */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.86rem; color: var(--ink-3); margin-top: 22px; }
.legend .status { font-size: 0.78rem; }

/* v4: мелочи для новых страниц */
.page-hero .legend { margin-top: 6px; }
.key-card dl div { display: grid; gap: 2px; }
.h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); font-weight: 500; margin-top: 10px; }
.section-pilot .crumbs { margin-bottom: 28px; }
.section-pilot h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.nf .wrap { display: grid; gap: 16px; }
.stage-aside p a, .callout a, .faq-body a, .card p a { color: var(--ink); }
.card-src { margin-top: auto; }
.card .status { margin-top: 2px; }
.law li p + .law-fine { margin-top: -2px; }
.stage-head .status { justify-self: start; }
@media (min-width: 960px) { .stage-body .stage-aside { align-self: start; } }
.card .card-num { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); color: var(--signal); }
.card .card-src { font-size: 0.76rem; color: var(--ink-3); }
@media (max-width: 719px) {
  .tbl-stack td:first-child { display: block; }
  .tbl-stack td:first-child .ref { display: block; margin-top: 2px; }
  .tbl-stack tr.tbl-hl { background: var(--signal-soft); }
  .tbl-stack .tbl-hl td { background: transparent; }
}
.law .law-fine { font-family: var(--font-head); font-size: 1.4rem; color: var(--no); }
.law .law-fine small { display: block; font-family: var(--font-body); font-size: 0.6em; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.tbl-stack td .tag { justify-self: start; }
