/* Лендинг (docs/landing.md). Те же токены и шрифты, что в приложении (static/style.css :root):
   белые панели на сером фоне, один акцентный цвет, без градиентов и теней. */
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/static/fonts/golos-text-latin.woff2') format('woff2-variations'), url('/static/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/static/fonts/golos-text-cyrillic.woff2') format('woff2-variations'), url('/static/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin.woff2') format('woff2-variations'), url('/static/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #EEEEEE; --surface: #FDFDFD; --surface-2: #F2F2F2; --line: #E5E5E5; --line-strong: #C9C9C9;
  --text: #181818; --text-2: #6B6B6B; --text-3: #8C8C8C; --ink: #181818;
  --accent: #6B3FD6; --accent-hover: #5B33BE; --accent-bg: #F5F1FC; --accent-line: #C9B3F5;
  --ok: #2FAD4E; --ok-bg: #E8F6EC; --warn: #C77700; --warn-bg: #FBF1DE; --danger: #E1352B; --danger-bg: #FCEAE8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 'Golos Text', 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .93em; }
.tb { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .1s, border-color .1s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--line-strong); color: var(--text); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { background: #E8E8E8; color: #B5B5B5; cursor: default; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 22px; font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; }
.top-nav { display: flex; gap: 24px; margin-right: auto; font-size: 14px; }
.top-nav a { color: var(--text-2); }
.top-nav a:hover { color: var(--text); }
.top-actions { display: flex; gap: 12px; }

/* Первый экран */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.hero-sub { margin-top: 20px; font-size: 18px; line-height: 1.5; color: var(--text-2); max-width: 540px; }
.hero-sub b { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.mp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 36px; font-size: 13px; color: var(--text-2); }
.mp { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 500; }
.mp img { width: 18px; height: 18px; border-radius: 4px; }

/* Экран системы, собранный из тех же элементов, что и сама система */
.shot { border-radius: 16px; background: var(--surface); padding: 20px; }
.shot-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shot-title { font-size: 18px; font-weight: 700; }
.shot-tabs { display: flex; gap: 20px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.shot-tabs span { padding-bottom: 8px; }
.shot-tabs span.on { color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--accent); }
.shot-tabs i { font-style: normal; color: var(--text-3); margin-left: 4px; }
.shot-scan { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-bottom: 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--text-3); font-size: 14px; }
.shot-scan .tb { width: 20px; height: 20px; color: var(--accent); }
.shot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.shot-table th { padding: 8px 10px; background: var(--surface-2); color: var(--text-2); font-weight: 500; text-align: left; white-space: nowrap; }
.shot-table th:first-child { border-radius: 8px 0 0 8px; }
.shot-table th:last-child { border-radius: 0 8px 8px 0; }
.shot-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shot-table tr:last-child td { border-bottom: none; }
.shot-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.shot-table .sub { display: block; font-size: 12px; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-accent { background: var(--accent-bg); color: var(--accent); }
.chip-muted { background: #EFEFEF; color: var(--text-2); }
.chip-o { border: 1px solid var(--line); color: var(--text-2); gap: 6px; }
.chip-o b { color: var(--text); font-weight: 500; }

/* Разделы */
.sec { padding: 48px 0; }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.sec h2 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sec-lead { margin-top: 12px; font-size: 17px; color: var(--text-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: var(--surface); }
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.card p { font-size: 15px; color: var(--text-2); }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li .tb { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-bg); color: var(--accent); }
.card-link { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }

/* Склад: схема ячеек рядом с текстом */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.split .card { justify-content: center; }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cell { padding: 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.cell b { display: block; margin-bottom: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; color: var(--text); }
.cell.full { border-color: var(--accent-line); background: var(--accent-bg); }
.cell.empty { border-style: dashed; color: var(--text-3); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px; border-radius: 16px; background: var(--surface); counter-increment: step; }
.step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }

/* Цена */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.price-big { font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.price-big small { font-size: 18px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.rows { display: flex; flex-direction: column; margin-top: 8px; }
.row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 15px; }
.row span:first-child { color: var(--text-2); }
.row i { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.row b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-field { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.calc-field input { width: 120px; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 20px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.calc-field input:focus { outline: none; border-color: var(--accent); }
.calc-btn { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.calc-btn:hover { border-color: var(--line-strong); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seg { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.seg:hover { border-color: var(--line-strong); }
.seg.on { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); font-weight: 500; }
.calc-out { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--surface-2); }
.calc-out b { display: block; font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.calc-out span { font-size: 14px; color: var(--text-2); }
.fine { margin-top: 12px; font-size: 13px; color: var(--text-2); }

/* Вопросы */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq-item { border-radius: 16px; background: var(--surface); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; border: none; background: none; color: var(--text); font: inherit; font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; }
.faq-q .tb { width: 20px; height: 20px; color: var(--text-2); transition: transform .15s ease-out; }
.faq-item.open .faq-q .tb { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 22px; font-size: 15px; color: var(--text-2); max-width: 720px; }
.faq-item.open .faq-a { display: block; }

/* Заявка */
.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; }
.lead-text { justify-content: flex-start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.field textarea { height: 88px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree-box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: transparent; }
.agree-box .tb { width: 14px; height: 14px; stroke-width: 2.5; }
.agree input:checked + .agree-box { border-color: var(--accent); background: var(--accent); color: #fff; }
.agree input:focus-visible + .agree-box { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-error { font-size: 14px; color: var(--danger); }
.form-done { display: none; flex-direction: column; gap: 10px; align-items: flex-start; }
.form-done .ico { background: var(--ok-bg); color: var(--ok); }
.form-done h3 { font-size: 20px; font-weight: 700; }
.sent .form { display: none; }
.sent .form-done { display: flex; }

/* Призыв и подвал */
.cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 32px; border-radius: 16px; background: var(--ink); color: #fff; }
.cta h2 { font-size: 26px; }
.cta p { margin-top: 6px; color: #C9C9C9; font-size: 15px; }
.cta .btn-secondary { background: transparent; border-color: #4A4A4A; color: #fff; }
.cta .btn-secondary:hover { border-color: #8C8C8C; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot { padding: 32px 0 48px; font-size: 13px; color: var(--text-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot-in span:first-child { margin-right: auto; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .top-nav { display: none; }
  .top-in { gap: 16px; }
  .top-actions { margin-left: auto; }
  .hero { padding: 32px 0 24px; }
  .hero-in, .split, .price, .lead { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: 34px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sec { padding: 32px 0; }
  .sec h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 64px; }
  .top-actions .btn-secondary { display: none; }
  .brand { font-size: 20px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .shot { padding: 14px; overflow-x: auto; }
  .steps, .form { grid-template-columns: 1fr; }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-big { font-size: 36px; }
  .cta { padding: 24px; }
  .cta .btn { width: 100%; }
}
.shot-table td { white-space: nowrap; }
.shot-table td:nth-child(2) { white-space: normal; min-width: 120px; }
.shot-table th, .shot-table td { padding-left: 8px; padding-right: 8px; }
.shot-table { font-size: 12px; }
.shot-table th, .shot-table td { padding-left: 6px; padding-right: 6px; }
.shot-table .mono { font-size: 11px; }
.shot-tabs { overflow-x: auto; scrollbar-width: none; }
.shot-tabs::-webkit-scrollbar { display: none; }
.shot-tabs span { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .top-actions .btn-secondary { display: inline-flex; }
  .top-actions .btn-primary { display: none; }
}
