@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; }

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #1f4e94;
  --accent-text: #ffffff;
  --accent-soft: #e8eef8;
  --accent-2: #2bb58a;
  /* Заливки акцента: кнопки, бейджи, финальный блок. */
  --accent-fill: linear-gradient(135deg, #1f4e94 0%, #1b6788 100%);
  --final-fill: linear-gradient(120deg, #1f4e94 0%, #1a6386 55%, #177a6e 100%);
  --final-text: #ffffff;
  --gain: #137a5a;
  --radius: 8px;
  --radius-lg: 12px;
  --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;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #181c22;
    --text: #e5e7eb;
    --muted: #a3acb9;
    --line: #2a3039;
    --accent: #86aef0;
    --accent-text: #0e1a2e;
    --accent-soft: #1b2638;
    --accent-2: #3fcf9e;
    --accent-fill: linear-gradient(135deg, #86aef0 0%, #6fc6c4 100%);
    --final-fill: radial-gradient(70% 140% at 100% 100%, rgb(63 207 158 / 0.22), transparent 70%), linear-gradient(120deg, #1a2c4d 0%, #172f45 60%, #163b40 100%);
    --final-text: #e5e7eb;
    --gain: #5fd3a8;
    --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(34px, 4.6vw, 56px); font-weight: 700; text-wrap: balance; }
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: 72px 0; }
.muted { color: var(--muted); }
/* Иконки Phosphor красим маской: цвет берётся из токенов и сам меняется в тёмной теме. */
.icon { width: 22px; height: 22px; flex: none; display: inline-block; background: var(--accent);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

/* Кнопки */
.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-fill); color: var(--accent-text); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--light { background: var(--accent-text); color: var(--accent); }
.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; }

/* 3.0 Шапка: закреплена, подсвечивает текущий раздел */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(250 250 249 / 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; white-space: nowrap; }
.topnav a:hover { color: var(--text); }
.topnav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.btn--sm { padding: 10px 16px; font-size: 15px; }
section[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-color-scheme: dark) { .topbar { background: rgb(17 20 24 / 0.86); } }
/* 4.1 Hero: текст слева, скриншот (или сообщение бота) справа */
.hero { padding: 56px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 14px; }
.hero__visual { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: var(--radius-lg); padding: 28px; }
/* В тёмной теме яркая заливка спорит с фоном: вместо неё тёмная панель с мягким свечением акцентов по углам. */
@media (prefers-color-scheme: dark) {
  .hero__visual { background:
      radial-gradient(90% 70% at 0% 0%, rgb(134 174 240 / 0.32), transparent 70%),
      radial-gradient(90% 70% at 100% 100%, rgb(63 207 158 / 0.26), transparent 70%),
      var(--surface);
    box-shadow: inset 0 0 0 1px var(--line); }
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stats__cell { padding: 20px 24px; }
.stats__cell + .stats__cell { border-left: 1px solid var(--line); }
.stats__num { font: 700 clamp(30px, 3.4vw, 44px)/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; margin-bottom: 6px; }
.stats__pre { font-size: 0.5em; font-weight: 500; color: var(--muted); margin-right: 6px; letter-spacing: 0; vertical-align: 0.3em; }
.stats__cell--accent .stats__num { color: var(--accent); }
.stats__label { color: var(--muted); font-size: 15px; }
.stats__caption { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: none; }
.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; color: var(--text); text-decoration: none; }
/* У логотипа белый фон: показываем его плиткой с рамкой, чтобы в обеих темах он выглядел намеренно. */
.brand img { width: 32px; height: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }

/* Сообщение бота в hero, пока нет скриншота */
.tg { margin: 0; width: 100%; max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; font-size: 15px; line-height: 1.45; }
.tg__head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tg__head img { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.tg__head b { display: block; font-weight: 500; }
.tg__head span { color: var(--muted); font-size: 13px; }
.tg__msg { position: relative; background: var(--accent-soft); border-radius: 12px 12px 12px 4px; padding: 12px 14px 22px; }
.tg__msg p { margin: 0; }
.tg__title { font-weight: 700; margin-bottom: 10px !important; }
.tg__lot { padding: 10px 0; border-top: 1px solid rgb(31 78 148 / 0.12); }
.tg__lot-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.tg__score { font-weight: 700; color: var(--accent-text); background: var(--accent-fill); border-radius: 6px; padding: 1px 7px; font-size: 13px; }
.tg__price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tg__lot-title { font-weight: 500; }
.tg__why { color: var(--muted); font-size: 14px; }
.tg__time { position: absolute; right: 12px; bottom: 6px; font-size: 12px; color: var(--muted); }
.tg__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.tg__buttons span { text-align: center; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 8px; font-size: 14px; font-weight: 500; }

/* 3.2 Проблема, решение, выгода: строки-карточки в три колонки */
.problems__head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 24px 12px; margin-top: 32px; font-size: 14px; font-weight: 500; color: var(--muted); }
.problems__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.problems__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; }
.problems__cell--now { color: var(--muted); }
.problems__cell--gain { color: var(--gain); font-weight: 500; }
/* Подписи колонок на широком экране видны в шапке блока, в строках они только для чтения с экрана. */
.problems__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 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__badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 16px; }
.how__badge .icon { width: 26px; height: 26px; }

/* 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-lg); padding: 20px; }
.lot + .lot { margin-top: 16px; }
.lot__head { display: flex; justify-content: space-between; gap: 16px; }
.lot__score { font: 700 15px/1 var(--font); font-variant-numeric: tabular-nums; 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-lg); padding: 28px; box-shadow: var(--shadow); }
.doc-card h3 { margin-top: 20px; }
.doc-card > h3:first-child { margin-top: 0; }
.doc-card ul { padding-left: 20px; margin: 0; }
.example__caption { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 4.5 Что входит и чего нет: одна колонка, два списка */
#scope { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.scope__col h3 { margin-bottom: 8px; }
.scope__col--no { color: var(--muted); }
.scope__list { list-style: none; padding: 0; margin: 0; }
.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 { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -13px; left: 22px; background: var(--accent-fill); color: var(--accent-text); font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.plan__price { font: 700 34px/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; margin: 8px 0 4px; }
.plan__period { color: var(--muted); font-size: 15px; }
.plan__year { color: var(--muted); font-size: 15px; margin-top: 4px; }
.plan__gains { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px dashed var(--line); }
.plan__gains li { color: var(--gain); font-size: 15px; font-weight: 500; padding: 2px 0; }
.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 .icon, .scope__col--no .icon, .faq__item summary .icon { background: 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 summary .icon { transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding-bottom: 20px; color: var(--muted); }

/* 4.8 Финал и подвал */
.final { background: var(--final-fill); color: var(--final-text); padding: 64px 0; }
/* В тёмной теме финальный блок глубокий, кнопка в нём основная. */
@media (prefers-color-scheme: dark) { .final .btn--light { background: var(--accent-fill); color: var(--accent-text); } }
.final__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final__row p { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; margin: 0; max-width: 28ch; }
.footer { padding: 28px 0; font-size: 15px; color: var(--muted); }
.footer__row { display: flex; gap: 0 24px; flex-wrap: wrap; align-items: center; }
.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-fill); 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) {
  .topbar__row { flex-wrap: wrap; gap: 6px 12px; min-height: 0; padding-top: 10px; padding-bottom: 6px; }
  .topbar__row .btn--sm { margin-left: auto; }
  .topnav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; gap: 0; padding-block: 6px; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { padding: 8px 6px; font-size: 14px; }
  section[id] { scroll-margin-top: 112px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 24px; }
  .hero__grid, .example__grid, .scope__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__shot { max-height: 420px; }
  .hero__visual { padding: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats__cell { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; }
  .stats__cell + .stats__cell { border-left: 0; border-top: 1px solid var(--line); }
  .stats__num { margin: 0; font-size: 28px; min-width: 40%; }
  .problems__head { display: none; }
  .problems__row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .problems__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
  .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; }
}
