@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400.847ffd6992a7.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400.22cb2483abda.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../fonts/onest-cyrillic-500.034877447068.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500.675404318935.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("../fonts/onest-cyrillic-700.3ff2ccfb71f2.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700.cb23cb9c5abb.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-cyrillic-500.af752ba91433.woff2") format("woff2"); unicode-range: U+0400-045F; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500.a21e038a03f7.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #1f4e94;
  --accent-text: #ffffff;
  --accent-soft: #e8eef8;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(31 78 148 / 0.06), 0 8px 24px rgb(31 78 148 / 0.06);
  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #181c22;
    --text: #e5e7eb;
    --muted: #a3acb9;
    --line: #2a3039;
    --accent: #86aef0;
    --accent-text: #0e1a2e;
    --accent-soft: #1b2638;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 500; }
p { margin: 0 0 12px; max-width: 65ch; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.muted { color: var(--muted); }
.icon { width: 22px; height: 22px; flex: none; }
/* Phosphor в <img> рисуется чёрным (currentColor не наследуется): в тёмной теме инвертируем. */
@media (prefers-color-scheme: dark) { .icon { filter: invert(0.85); } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius);
  font: 500 17px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .15s cubic-bezier(.16,1,.3,1), background-color .15s; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 4.1 Hero: текст слева, скриншот справа */
.hero { padding: 72px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__grid--solo { grid-template-columns: minmax(0, 760px); }
.hero__lead { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); max-height: 640px; object-fit: cover; object-position: top; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 18px 0; }
.brand img { width: 32px; height: 32px; border-radius: var(--radius); }

/* 4.2 Цифры: три числа в строку, без карточек */
.funnel__date { color: var(--muted); margin-bottom: 28px; }
.funnel__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.funnel__num { font: 500 clamp(36px, 4vw, 52px)/1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.funnel__num--accent { color: var(--accent); }
.funnel__note { margin-top: 28px; color: var(--muted); }

/* 4.3 Как это работает: горизонтальная лента */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how__track { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.how__item { padding: 0 24px 0 0; position: relative; }
.how__item + .how__item { padding-left: 24px; border-left: 1px solid var(--line); }
.how__item img { margin-bottom: 14px; }

/* 4.4 Пример: карточки слева, документ справа */
.example__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 32px; }
.lot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.lot + .lot { margin-top: 16px; }
.lot__head { display: flex; justify-content: space-between; gap: 16px; }
.lot__score { font: 500 15px/1 var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 6px 8px; height: fit-content; white-space: nowrap; }
.lot__facts { color: var(--muted); font-size: 15px; margin: 6px 0 10px; }
.lot__why { font-style: italic; margin-bottom: 8px; }
.lot > a { display: inline-block; padding: 11px 0; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.doc-card h3 { margin-top: 20px; }
.doc-card ul { padding-left: 20px; margin: 0; }
.example__caption { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 4.5 Что входит и чего нет: одна колонка, два списка */
.scope__list { list-style: none; padding: 0; margin: 0 0 32px; max-width: 760px; }
.scope__list li { display: flex; gap: 12px; padding: 8px 0; }
.scope__tag { color: var(--muted); }

/* 4.6 Тарифы */
.pricing__lead { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan__price { font: 500 32px/1.1 var(--mono); margin: 8px 0 4px; }
.plan__period { color: var(--muted); font-size: 15px; }
.plan__year { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan__features { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan__features li { display: flex; gap: 10px; padding: 5px 0; font-size: 16px; }
.plan__soon { color: var(--muted); }
.plan__soon em { font-style: normal; font-size: 13px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1px 6px; margin-left: 6px; }
.pricing__foot { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 4.7 Вопросы: аккордеон */
.faq__item { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 19px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item[open] summary img { transform: rotate(180deg); }
.faq__item p { padding-bottom: 20px; color: var(--muted); }

/* 4.8 Финал и подвал */
.final { text-align: left; border-top: 1px solid var(--line); }
.final__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final__row p { font-size: 24px; font-weight: 500; margin: 0; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer__row { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__row a { display: inline-block; padding: 10px 0; }
.doc { padding: 56px 20px 80px; max-width: 820px; }

/* Служебное: тестовая плашка и баннер cookie */
.test-bar { position: fixed; left: 16px; bottom: 16px; z-index: 20; background: var(--text); color: var(--bg); border-radius: var(--radius); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.test-bar a { color: var(--bg); padding: 2px 8px; border-radius: var(--radius); }
.test-bar a[aria-current="true"] { background: var(--accent); color: var(--accent-text); }
.cookie { position: fixed; right: 16px; bottom: 16px; z-index: 10; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie .btn { padding: 10px 14px; font-size: 15px; }

/* Мобильная раскладка: всё в одну колонку */
@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero { padding-top: 24px; }
  .hero__grid, .example__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__shot { max-height: 420px; }
  .funnel__row { grid-template-columns: 1fr; gap: 20px; }
  .how__track { grid-template-columns: 1fr; gap: 20px; }
  .how__item, .how__item + .how__item { padding: 0; border-left: 0; }
  .cookie { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 8px 10px; gap: 10px; font-size: 13px; line-height: 1.3; }
  .cookie .btn { padding: 8px 12px; font-size: 14px; flex-shrink: 0; }
}

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