/* Совпад · sovpad.ru — общая дизайн-система лендинга и страниц-анонсов */

/* Шрифты (OFL) лежат в /assets/fonts: без запросов к сторонним CDN */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/onest-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/onest-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jetbrains-mono-cyrillic-wght-normal.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('/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0B0E14;
  --text: #1E2430;
  --secondary: #4A5260;
  --muted: #5B6470;
  --faint: #8A92A0;
  --line: #E6E8EC;
  --line-soft: #EEF0F3;
  --surface: #FFFFFF;
  --surface-soft: #F6F7FA;
  --brand: #1F46E5;
  --brand-hover: #1A3CCB;
  --brand-soft: #EEF1FE;
  --success: #1F8A4C;
  --success-soft: #E7F6EC;
  --warning: #A86509;
  --warning-soft: #FDF3E3;
  --danger: #C2372D;
  --danger-soft: #FCEBEA;

  --night: #0B0E14;
  --night-2: #11151D;
  --night-line: #1E2430;
  --night-text: #A7AEBC;
  --night-muted: #7E8494;
  --night-brand: #8FA2FF;

  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; }

/* ---------- Типографика ---------- */

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--night-brand); }
.display {
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 700; color: var(--ink); text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.028em;
  font-weight: 700; color: var(--ink); text-wrap: balance;
}
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.018em; font-weight: 650; color: var(--ink); }
.h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; color: var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--secondary); text-wrap: pretty; }
.body { font-size: 16px; line-height: 1.65; color: var(--secondary); }
.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.accent { color: var(--brand); }

.section--dark { background: var(--night); color: #fff; }
.section--dark .display, .section--dark .h2, .section--dark .h3, .section--dark .h4 { color: #fff; }
.section--dark .lead, .section--dark .body { color: var(--night-text); }
.section--dark .small { color: var(--night-muted); }
.section--dark .accent { color: var(--night-brand); }

/* ---------- Секции ---------- */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--soft { background: var(--surface-soft); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section + .section:not(.section--dark):not(.section--soft) { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

/* ---------- Навигация ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--secondary); }
.nav__links a { transition: color .15s ease; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo__mark { position: relative; width: 26px; height: 22px; flex: none; }
.logo__mark::before, .logo__mark::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 5px; }
.logo__mark::before { left: 0; top: 1px; background: var(--brand); }
.logo__mark::after { right: 0; top: 5px; background: var(--ink); mix-blend-mode: multiply; }
.section--dark .logo, .footer .logo { color: #fff; }
.section--dark .logo__mark::after, .footer .logo__mark::after { background: #3A5FF0; mix-blend-mode: normal; opacity: .9; }

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 14px 22px; border-radius: 999px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost { background: transparent; color: #fff; border-color: #2A313E; }
.section--dark .btn--ghost:hover { border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--night-brand); }

/* ---------- Карточки, сетки, списки ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section--soft .card { border-color: var(--line); }
.section--dark .card { background: var(--night-2); border-color: var(--night-line); }
.card .h4 { margin-bottom: 8px; }
.card__index { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--brand); margin-bottom: 14px; }
.section--dark .card__index { color: var(--night-brand); }

.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; color: var(--secondary); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%231F46E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--dark .checks li { color: var(--night-text); }
.section--dark .checks li::before { background-color: #18204A; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap;
}
.pill--success { background: var(--success-soft); color: var(--success); }
.pill--warning { background: var(--warning-soft); color: var(--warning); }
.pill--danger { background: var(--danger-soft); color: var(--danger); }
.pill--muted { background: var(--surface-soft); color: var(--muted); }

/* ---------- Скриншоты продукта ---------- */

.frame {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 14, 20, .04), 0 24px 60px -32px rgba(11, 14, 20, .28);
}
.frame img { width: 100%; height: auto; }
.section--dark .frame { border-color: #232A36; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.caption { margin-top: 14px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- Анимации ---------- */

/* Появление при скролле; site.js добавляет .is-visible. Класс .js ставится в <head> и снимается
   по таймеру, если site.js не выполнился, — тогда контент виден сразу. */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Скриншот, который «приближается» при прокрутке. Где есть scroll-driven animations, анимация идёт
   на компоторе синхронно со скроллом; иначе --p от 0 до 1 задаёт JS (с отставанием на мобильных). */
.js [data-zoom] { transform: perspective(1600px) scale(calc(.9 + .1 * var(--p, 0))) rotateX(calc(8deg - 8deg * var(--p, 0))); transform-origin: 50% 0; will-change: transform; }
@keyframes zoom-in {
  from { transform: perspective(1600px) scale(.9) rotateX(8deg); }
  to { transform: perspective(1600px) scale(1) rotateX(0deg); }
}
@supports (animation-timeline: view()) {
  /* Диапазон как в JS: от входа верха кадра в экран до 75% высоты экрана */
  .js [data-zoom] { transform: none; animation: zoom-in linear both; animation-timeline: view(); animation-range: entry 0% entry 75vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-zoom] { transform: none; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Мотив логотипа: два квадрата совмещаются ---------- */

.merge { position: relative; width: 120px; height: 72px; margin: 0 auto; }
.merge span { position: absolute; top: 12px; width: 48px; height: 48px; border-radius: 13px; transition: transform .1s linear; }
.merge span:first-child { left: 12px; background: var(--brand); transform: translateX(calc(24px * var(--p, 0))); }
.merge span:last-child { right: 12px; background: var(--ink); mix-blend-mode: multiply; transform: translateX(calc(-24px * var(--p, 0))); }
.section--dark .merge span:last-child { background: var(--night-brand); mix-blend-mode: normal; opacity: .85; }

/* ---------- Sticky-тур: экран стоит, шаги прокручиваются ---------- */

.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.tour__steps { display: flex; flex-direction: column; }
.tour__step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; transition: opacity .4s ease; }
.js .tour__step { opacity: .35; }
.js .tour__step.is-active { opacity: 1; }
.tour__step .h3 { margin: 10px 0 12px; }
.tour__media { position: sticky; top: calc(50vh - 260px); height: 520px; display: flex; align-items: center; }
.tour__media .frame { width: 100%; }
.tour__shots { position: relative; aspect-ratio: 1440 / 778; }
.tour__shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s ease; }
.tour__shots img.is-active, html:not(.js) .tour__shots img:first-child { opacity: 1; }
.tour__step-shot { display: none; margin-top: 20px; }

/* ---------- Таблица-демонстрация (сверка параметров, цены с источником) ---------- */

.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13.5px;
  box-shadow: 0 1px 2px rgba(11, 14, 20, .04), 0 24px 60px -36px rgba(11, 14, 20, .25);
}
.demo__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.demo__title { font-weight: 650; color: var(--ink); font-size: 14px; }
.demo table { width: 100%; border-collapse: collapse; }
.demo th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .03em; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); background: #FBFBFC; }
.demo td { padding: 10px 18px; border-bottom: 1px solid var(--line-soft); color: var(--text); vertical-align: middle; }
.demo tr:last-child td { border-bottom: 0; }
.demo .num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.demo .right { text-align: right; }

/* Сверка: строки получают статус по очереди, когда блок попадает в экран */
.verify td.verify__status { width: 132px; }
.js .verify tbody .pill { opacity: 0; transform: scale(.9); transition: opacity .35s ease, transform .35s var(--ease); }
.js .verify tr.is-checked .pill { opacity: 1; transform: none; }
.verify__verdict { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.js .verify__verdict { opacity: 0; transition: opacity .5s ease; }
.js .verify.is-done .verify__verdict { opacity: 1; }

/* Цена с источником: клик открывает доказательство */
.proof-cell { position: relative; }
.proof-btn {
  font-family: var(--mono); font-size: 12.5px; padding: 4px 8px; border-radius: 6px;
  background: var(--warning-soft); color: var(--text); border: 1px solid transparent; transition: border-color .15s ease, background .15s ease;
}
.proof-btn--ok { background: var(--success-soft); }
button.proof-btn:hover, .proof-btn[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-soft); }
/* Цена без поповера: выглядит так же, но не реагирует на наведение */
.proof-btn--static { display: inline-block; cursor: default; }
.proof-btn--rejected { background: var(--surface-soft); color: var(--faint); text-decoration: line-through; }
.proof-btn--unit { background: var(--surface); border-color: var(--line); border-style: dashed; color: var(--muted); }
.proof-btn--unit:hover, .proof-btn--unit[aria-expanded="true"] { border-style: solid; }
.proof-pop {
  position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: 300px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  box-shadow: 0 18px 40px -18px rgba(11, 14, 20, .35);
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, transform .2s var(--ease), visibility 0s .2s;
}
.proof-pop.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.proof-pop__src { font-size: 12px; color: var(--faint); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.proof-pop__src > :last-child { white-space: nowrap; }
.proof-pop__quote { font-size: 13px; line-height: 1.5; color: var(--text); padding: 10px 12px; background: var(--surface-soft); border-radius: 8px; border-left: 2px solid var(--brand); }
.proof-pop__quote mark { background: #FFF1B8; color: inherit; padding: 0 2px; border-radius: 2px; }
.proof-pop__meta { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Анонсы / статьи ---------- */

.hero-dark { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; }
.hero-dark__title {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; width: 100%;
  font-size: clamp(44px, 8vw, 112px); line-height: .95; letter-spacing: -.045em; font-weight: 600;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-dark__title span:last-child { text-align: right; color: var(--night-text); }
.hero-dark__visual { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.article { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 13.5px; }
.toc__title { font-weight: 600; color: var(--ink); margin-bottom: 12px; line-height: 1.35; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.022em; font-weight: 650; color: var(--ink); margin-top: 72px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -.012em; font-weight: 650; color: var(--ink); margin-top: 40px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 650; color: var(--ink); }
.prose .wide { margin-left: -40px; margin-right: -40px; }
.prose figure { margin-top: 36px; margin-bottom: 36px; }
.prose figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.footnote { font-size: 13px; color: var(--faint); line-height: 1.55; }

/* Сравнительные карточки в духе тарифных */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.tier--focus { border-color: var(--ink); }
.tier__name { font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.tier__desc { font-size: 14px; color: var(--muted); margin-top: 6px; min-height: 42px; }
.prose .tier__desc, .prose .card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.tier dl { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13.5px; }
.tier dt { color: var(--muted); }
.tier dd { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }

/* Горизонтальные столбцы сравнения (рисуются при появлении) */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar { display: grid; grid-template-columns: 170px 1fr 90px; align-items: center; gap: 14px; font-size: 14px; }
.bar__track { display: block; height: 10px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--faint); transition: width 1.2s var(--ease); }
.js .bar__fill { width: 0; }
.js .is-visible .bar__fill { width: var(--w); }
.bar__value { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--ink); }

/* Анонс-карточки на главной */
.news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news__card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 300px; padding: 32px; border-radius: 20px; overflow: hidden;
  background: var(--night); color: #fff; transition: transform .5s var(--ease);
}
.news__card:hover { transform: translateY(-3px); }
.news__card--light { background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); }
.news__meta { font-size: 13px; color: var(--night-text); display: flex; gap: 10px; }
.news__card--light .news__meta { color: var(--muted); }
.news__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; max-width: 420px; }
.news__card .link-arrow { color: #fff; }
.news__card--light .link-arrow { color: var(--brand); }

/* Крупная цифра в карточке «почему процесс буксует» */
.stat { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -.02em; color: var(--brand); }
.section--dark .stat { color: var(--night-brand); }
.stat + .h4 { margin-top: 14px; }
.card .stat ~ .body { font-size: 15px; }

/* Финальный призыв на тёмном фоне */
.cta { text-align: center; max-width: 780px; margin: 0 auto; }
.cta .merge { margin-bottom: 36px; }
.cta .lead { max-width: 620px; margin: 20px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 36px; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.65; color: var(--secondary); }

/* ---------- Футер ---------- */

.footer { background: #070A0F; color: #9098A6; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0; }
.footer__about { margin-top: 16px; max-width: 320px; color: #9098A6; }
.footer__title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__links a { transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #161B22; padding: 22px 0; font-size: 13px; color: #5C6470; }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .article { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .prose .wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 920px) {
  .nav__links { display: none; }
  .grid--3, .tiers { grid-template-columns: 1fr 1fr; }
  .grid--2, .news { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour__media { display: none; }
  .tour__step, .js .tour__step { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .tour__step-shot { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .grid--3, .tiers { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .bar { grid-template-columns: 1fr 72px; }
  .bar__label { grid-column: 1 / -1; }
  .demo { font-size: 12.5px; }
  .demo th, .demo td { padding: 9px 12px; }
  .demo-scroll { overflow-x: auto; }
  .demo-scroll table { min-width: 560px; }
  .proof-pop {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto;
    max-height: 70vh; overflow-y: auto; transform: translateY(12px);
  }
  .faq details p { padding-right: 0; }
  .hero-dark { min-height: 64vh; }
  .hero-dark__title { flex-direction: column; align-items: flex-start; }
  .hero-dark__title span:last-child { text-align: left; }
}

/* ---------- Главная ---------- */

.hero { padding: clamp(64px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--secondary);
  transition: border-color .15s ease;
}
.hero__badge:hover { border-color: var(--ink); }
.hero__badge .pill { font-size: 11.5px; }
.hero .display { max-width: 980px; margin: 0 auto; }
.hero .lead { max-width: 680px; margin: 24px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 36px; }
.hero__shot { margin-top: clamp(56px, 7vw, 88px); }
.hero__shot .frame { border-radius: 16px 16px 0 0; border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 28px 24px; text-align: left; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts__value { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); }
.facts__label { margin-top: 4px; font-size: 14px; color: var(--muted); }

.module { display: flex; flex-direction: column; gap: 18px; }
.module__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.module .checks { flex: 1; }

.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.trust + .trust { margin-top: clamp(72px, 9vw, 120px); }
.trust__text .h3 { margin: 8px 0 14px; }
.confidence { display: flex; align-items: center; gap: 10px; }
.confidence__bar { width: 64px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.confidence__bar i { display: block; height: 100%; width: var(--w); background: var(--success); border-radius: inherit; }
.confidence__bar--low i { background: var(--warning); }
.confidence--end { justify-content: flex-end; }
.row-flag td { background: #FFFBF2; }

.day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.day__row { display: grid; grid-template-columns: 140px 1fr 1fr; }
.day__row + .day__row { border-top: 1px solid var(--line-soft); }
.day__row > div { padding: 22px 24px; }
.day__row > div + div { border-left: 1px solid var(--line-soft); }
.day__head > div { font-weight: 650; color: var(--ink); background: #FBFBFC; padding-top: 16px; padding-bottom: 16px; }
.day__head > div:last-child { color: var(--brand); }
.day__time { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.day__new { background: #FAFBFF; }

.person { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(.15); }
.person__body { padding: 22px 24px 26px; }
.person__role { font-size: 14px; font-weight: 600; color: var(--brand); margin: 4px 0 10px; }

@media (max-width: 920px) {
  .trust { grid-template-columns: 1fr; gap: 28px; }
  .day-scroll { overflow-x: auto; }
  .day { min-width: 640px; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero { text-align: left; }
  .hero .btn-row { justify-content: flex-start; }
  .hero .display, .hero .lead { margin-left: 0; }
}
