/* ============================================================
   site.css — витрина и публичные страницы (OrinAPI).

   Отдельный слой от user.css (токены/база/компоненты) и app.css (кабинет):
   здесь только то, что видит человек ДО входа — лендинг, документация,
   правовые страницы, статус.

   Композиция лендинга: асимметричный hero (тезис ↔ доказательство),
   чередование «полос» (band) для смены ритма, одна сравнительная таблица
   вместо десяти карточек, и финальный призыв. Никаких каруселей и
   автоанимаций: страница должна читаться, а не мигать.
   ============================================================ */

/* ---------- каркас ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }
/* Ритм секций РАЗНЫЙ — это и есть иерархия. Раньше у всех полос было 76px,
   и страница читалась как документ: hero, каталог, метод и цена весили
   одинаково. Теперь: hero плотный (свой padding), каталог — «лист» на 64px,
   светлая полоса цены — 56px, тёмная полоса метода — 72px (самая тяжёлая),
   лента вердиктов — 48px. */
.section { margin-top: 64px; }
.section-sm { margin-top: 40px; }
.band {
  margin-top: 56px; padding: 56px 0;
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band.plain { background: var(--band-2); }
.band .wrap { padding-top: 0; padding-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Orin Mono", monospace; font-size: var(--fs-micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--seal-ink);
  margin-bottom: 12px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.15; }
.section-head .sub { margin: 12px 0 0; font-size: var(--fs-lead); color: var(--ink-2); }
.section-head.row {
  max-width: none; display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.section-head.row .spacer { flex: 1; }

/* ---------- hero ---------- */
/* Плотный: 44px сверху вместо 56 — hero должен начинаться сразу после
   шапки, а не «после паузы»; воздух добирает сам блок фактов. */
.hero { position: relative; overflow: clip; padding: 44px 0 18px; }
/* мягкие пятна фона: два радиальных градиента, без картинок и блюра —
   они дают «воздух», но не мешают читать (контраст текста не меняется,
   потому что текст лежит на непрозрачных поверхностях) */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; left: -180px; top: -120px;
  background: radial-gradient(circle at 50% 50%, var(--seal-soft), transparent 68%);
  opacity: 0.85;
}
.hero::after {
  width: 420px; height: 420px; right: -140px; top: 120px;
  background: radial-gradient(circle at 50% 50%, var(--warn-soft), transparent 70%);
  opacity: 0.5;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06; letter-spacing: -0.032em; font-weight: 600;
  max-width: 18ch;
}
/* Спокойное подчёркивание вместо линии «от руки»: цвет --seal, без свечения
   и без SVG — акцент должен поддерживать тезис, а не спорить с ним. */
.hero h1 .hl {
  color: var(--seal-ink);
  text-decoration: underline;
  text-decoration-color: var(--seal);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.12em;
}
.hero .lead {
  margin: 20px 0 0; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.62; color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
/* CTA — pill: в ряду действий кнопка должна читаться как действие, а не
   как ещё один прямоугольник с тенью карточки */
.hero-actions .btn, .cta-actions .btn { border-radius: 999px; }
/* Вторичный путь — текстовая ссылка, а не вторая кнопка того же веса. */
.hero-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 6px; font-size: 14px; font-weight: 600;
  color: var(--seal-ink); text-decoration: none;
  transition-property: color, transform;
  transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.hero-link svg {
  transition-property: transform;
  transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.hero-link:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .hero-link:hover { color: var(--seal); }
  .hero-link:hover svg { transform: translateX(2px); }
}
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
/* Правая колонка hero — один proof-модуль: карточка модели + терминал.
   Раньше доказательства были рассыпаны по двум разным блокам. */
.hero-proof { display: grid; gap: 12px; align-content: start; }
.hero-proof .term { margin-top: 0; }
.fact .v { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fact .k { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- пульс проверки (полоса сразу после hero) ----------
   Первое, что видно после тезиса, — что сервис живой: сколько моделей
   проверено, когда была последняя проверка, когда следующая. Полоса тонкая
   и прилегает к hero (у него padding-bottom 18px): это факт, а не заголовок,
   поэтому она не спорит с h1 за внимание. */
.pulse-strip {
  display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 9px 16px;
  background: var(--seal-soft); color: var(--seal-ink);
  border-radius: var(--r-m);
  font-size: 12.5px; font-weight: 550; line-height: 1.45;
}
.pulse-strip .dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: currentColor;
  animation: pulse-strip 2.6s ease-in-out infinite;
}
@keyframes pulse-strip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.pulse-strip .sep { opacity: 0.4; }
.pulse-strip .spacer { flex: 1; }
.pulse-strip .m { font-variant-numeric: tabular-nums; font-weight: 600; }

/* карточка-доказательство: пломба + реальные цифры проверенного подключения */
.proof {
  position: relative;
  background: var(--surface); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card); padding: 24px;
}
.proof-top { display: flex; align-items: flex-start; gap: 14px; }
.proof-name { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.proof-vendor { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
/* «Проверено N назад» — главное доказательство карточки, поэтому оно
   зелёное и заметное, а не серая строчка в подписи вендора. */
.proof-verified {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 13px; font-weight: 600; color: var(--seal-ink);
  font-variant-numeric: tabular-nums;
}
.proof-verified svg { width: 14px; height: 14px; flex: none; }
.proof-meta { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.proof-meta dt { font-size: 11.5px; color: var(--ink-3); }
.proof-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.proof-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.proof-foot .spacer { flex: 1; }
/* терминальная строка под карточкой: живое доказательство вместо обещания */
.term {
  margin-top: 14px;
  background: var(--surface-inset); border-radius: var(--r-m);
  padding: 12px 14px; font-family: "Orin Mono", monospace; font-size: 11.5px;
  line-height: 1.75; color: var(--ink-2); overflow-x: auto;
  overscroll-behavior-x: contain;
}
.term .c { color: var(--ink-3); }
.term .ok { color: var(--seal-ink); font-weight: 600; }

/* ---------- быстрый вход ---------- */
.quick {
  margin-top: 40px;
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.quick .q-label { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.quick form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: min(260px, 100%); }
.quick input {
  flex: 1 1 220px; min-width: 0; height: 38px; padding: 0 12px;
  font-size: 16px;
  background: var(--surface-inset); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
}
.quick input:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px oklch(0.5 0.115 158 / 0.16); }
.quick .q-err { flex-basis: 100%; font-size: 12.5px; color: var(--bad); }
.quick-hint { font-size: 11.5px; color: var(--ink-3); }

/* ---------- каталог: таблица-полоса ---------- */
.strip { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
/* Колонки: модель · in · out · первый токен · p50 · tok/s · подключений · документы.
   Порядок задаёт DOM рендера; здесь — только веса. */
.strip-head, .strip-row {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.7fr 0.7fr 0.7fr 0.6fr 44px;
  gap: 12px; align-items: center;
  padding: 13px 20px;
}
.strip-head {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
  padding-top: 14px; padding-bottom: 11px;
}
.strip-row { border-bottom: 1px solid var(--line); }
.strip-row:last-child { border-bottom: none; }
.strip-row .m-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.strip-row .m-vendor { font-size: 11.5px; color: var(--ink-3); }
.strip-row .m-num { font-size: 13px; font-variant-numeric: tabular-nums; }
.strip-row .m-price { font-size: 12.5px; font-family: "Orin Mono", monospace; font-variant-numeric: tabular-nums; }
.strip-row .m-price .io { color: var(--ink-3); font-size: 10.5px; margin-right: 4px; }
.strip-row .m-sup { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* На десктопе у таблицы есть шапка столбцов — подпись «Подключений» в каждой
   строке дублировала бы заголовок и прилипала к числу («Подключений6»).
   Показываем её только на телефоне, где шапка скрыта (см. медиа-выборку). */
.strip-row .m-sup .k { display: none; }
.strip-row .m-docs { justify-self: end; }
@media (hover: hover) and (pointer: fine) {
  .strip-row:hover { background: var(--surface-2); }
}
.strip-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.strip-foot .spacer { flex: 1; }

/* ---------- метод: три тезиса ---------- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method-item {
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card);
  padding: 22px;
}
.method-n {
  font-family: "Orin Mono", monospace; font-size: 11px; font-weight: 600;
  color: var(--seal-ink); letter-spacing: 0.06em;
}
.method-item h3 { font-size: 15.5px; font-weight: 600; margin-top: 10px; }
.method-item p { margin: 8px 0 0; font-size: 13.8px; color: var(--ink-2); line-height: 1.6; }

/* ---------- тёмная полоса: «как мы проверяем» (A4) ----------
   Единственный инвертированный блок витрины, и именно он даёт ритм: после
   «листа» каталога страница меняет материал, и метод читается как отдельная
   часть, а не как ещё три карточки. Никаких blur-пятен: инверсия держится
   на контрасте бумаги и чернил, а размытие съедало бы волосяную рамку.
   Цвета — только токены (--band-dark/--band-ink/--band-line), чтобы
   contrast_check.py не считал их литералами в текстовых свойствах. */
.band-dark {
  margin-top: 72px; padding: 72px 0;
  background: var(--band-dark);
  color: var(--band-ink);
  box-shadow: inset 0 0 0 1px var(--band-line);
}
.band-dark h2, .band-dark h3 { color: var(--band-ink); }
/* Ослабленный текст делаем прозрачностью, а не отдельным серым токеном:
   0.82 от band-ink на чернильном фоне — всё ещё ~12:1, а лишний токен
   пришлось бы держать в двух темах. */
.band-dark p, .band-dark .sub { color: var(--band-ink); opacity: 0.82; }
/* Акцент тёмной полосы — янтарный, а не зелёный: сигнальный --seal в
   светлой теме даёт на чернилах 2.9:1 (проверено по oklch), а --amber — 8.3:1.
   В тёмной теме --seal тоже прошёл бы, но держать два разных акцента по
   темам — значит получить разные акценты на одном экране. */
.band-dark .eyebrow, .band-dark .method-n { color: var(--amber); }
.band-dark .fact .v { color: var(--band-ink); }
.band-dark .fact .k { color: var(--band-ink); opacity: 0.7; }
/* Карточка внутри тёмной полосы: не белый лист на чернилах (это выглядело
   бы как ошибка темы), а чуть более светлый слой того же материала. */
.band-dark .card, .band-dark .method-item, .band-dark .step {
  background: transparent; box-shadow: inset 0 0 0 1px var(--band-line);
}

/* шаги «как подключиться»: один ряд, номера моно */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card);
  padding: 22px; position: relative;
}
.step .n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--seal-soft); color: var(--seal-ink);
  font-family: "Orin Mono", monospace; font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-weight: 600; }
.step p { margin: 7px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.58; }

/* ---------- интеграции ---------- */
.compat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.compat-k { font-size: 12px; color: var(--ink-3); }
.compat .chip { background: var(--surface); box-shadow: var(--shadow-card); }

/* ---------- сравнение ---------- */
.compare { position: relative; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
/* Строки разделяются border-top, а не border-bottom: подсветка колонки «мы»
   рисуется псевдоэлементом на всю высоту строки, и при border-bottom
   подсвеченная полоса обрывалась бы на линии.
   Отступы строки — в переменных: псевдоэлемент подсветки считает свои
   отрицательные поля от них, и при смене padding в медиа-выборках
   заливка не разъезжается с соседними строками. */
.compare-row {
  --cmp-pad-y: 14px;
  --cmp-pad-x: 20px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px; padding: var(--cmp-pad-y) var(--cmp-pad-x); align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.compare-row:first-child { border-top: none; }
.compare-row.head {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); background: var(--surface-2);
}
.compare-row.head .us { color: var(--seal-ink); }
.compare-row .q { color: var(--ink-2); }
.compare-row .them { color: var(--ink-3); }
.compare-row .us {
  position: relative; isolation: isolate; align-self: stretch;
  display: flex; align-items: center; gap: 7px;
  color: var(--ink); font-weight: 550;
}
.compare-row .us svg { color: var(--seal); flex: none; }
.compare-row .them .no { color: var(--ink-3); }
/* Подсветка колонки «мы» на всю высоту строки. Отрицательные отступы
   возвращают padding строки (-14px сверху/снизу) и правый padding
   .compare-row (-20px), поэтому заливка стыкуется в непрерывную полосу от
   шапки до последней строки. isolation: isolate держит z-index:-1 внутри
   ячейки, иначе заливка уехала бы под фон .compare и исчезла. */
.compare-row .us::before {
  content: ""; position: absolute; z-index: -1;
  top: calc(-1 * var(--cmp-pad-y)); bottom: calc(-1 * var(--cmp-pad-y));
  left: -6px; right: calc(-1 * var(--cmp-pad-x));
  background: var(--seal-soft);
}
.compare-row.head .us::before { top: 0; }

/* ---------- тарифы (одна карточка + пояснения) ---------- */
.plan {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.plan-main { padding: 30px; }
.plan-main .p-k { font-size: 12px; color: var(--ink-3); }
.plan-main .p-v { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; }
.plan-main .p-v small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-main .p-d { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.plan-main .p-a { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
/* Способы пополнения: чипы прямо в сводке, чтобы не искать их в FAQ. */
.plan-main .p-methods { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-main .p-methods .k { flex-basis: 100%; font-size: 11.5px; color: var(--ink-3); margin-bottom: 1px; }
.plan-main .p-methods .chip { height: 24px; font-size: 11.5px; }
.plan-side { background: var(--surface-inset); padding: 30px; }
.plan-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan-side li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.plan-side li svg { color: var(--seal); flex: none; margin-top: 2px; }

/* ---------- FAQ (лендинг) ---------- */
.faq { display: grid; gap: 0; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 16px 20px; font-size: 14.5px; font-weight: 550; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; color: var(--ink-3); transition: transform 160ms var(--ease-out); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .a { padding: 0 20px 18px; font-size: 13.8px; color: var(--ink-2); line-height: 1.65; max-width: 78ch; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { background: var(--surface-2); }
}

/* ---------- финальный призыв ---------- */
.cta-band {
  margin-top: 80px; padding: 56px 0;
  background: linear-gradient(180deg, var(--band) 0%, var(--band-2) 100%);
  border-top: 1px solid var(--line);
}
.cta-in { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-in h2 { font-size: clamp(24px, 2.8vw, 34px); max-width: 22ch; }
.cta-in p { margin: 10px 0 0; font-size: var(--fs-body); color: var(--ink-2); max-width: 48ch; }
.cta-in .spacer { flex: 1; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   ПУБЛИЧНЫЕ СТРАНИЦЫ (docs / legal / pricing / faq / status / about)
   ============================================================ */
.page-head { padding: 44px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs .sep { opacity: 0.5; }
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { color: var(--ink-2); }
}
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; max-width: 26ch; }
.page-head .lead { margin: 14px 0 0; font-size: var(--fs-lead); color: var(--ink-2); max-width: 66ch; line-height: 1.6; }
.page-head .meta { margin-top: 14px; font-size: 12px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.page-body { padding: 32px 0 8px; }

/* docs: боковое оглавление + контент */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
/* Липнет обёртка, а не сам список: в обёртке лежит ещё и мобильное
   оглавление (<details>), и sticky на внутреннем блоке перестал бы
   работать — высота обёртки равна содержимому. */
.doc-toc-wrap { position: sticky; top: 88px; align-self: start; min-width: 0; }
.doc-toc {
  border-left: 1px solid var(--line); padding-left: 16px;
  max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain;
}
/* мобильное оглавление: одна свёрнутая строка вместо исчезнувшей колонки */
.doc-toc-m { display: none; }
.doc-toc .t { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 8px; }
.doc-toc a {
  display: block; padding: 5px 0; font-size: 12.8px; color: var(--ink-2);
  text-decoration: none; line-height: 1.45;
}
.doc-toc a.on { color: var(--seal-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .doc-toc a:hover { color: var(--ink); }
}
.doc-body { min-width: 0; max-width: 78ch; }

/* ---------- prose: типографика контента из блоков ---------- */
.prose { font-size: var(--fs-body); line-height: 1.68; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 23px; line-height: 1.25; color: var(--ink);
  margin: 44px 0 12px; scroll-margin-top: 88px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; max-width: 74ch; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose ul > li::marker { color: var(--seal); }
.prose ol > li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--seal-ink); }
.prose code {
  background: var(--surface-inset); border-radius: var(--r-xs);
  padding: 1.5px 5px; font-size: 0.88em; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.prose pre {
  margin: 0 0 18px; padding: 16px 18px;
  background: var(--surface-inset); border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto; overscroll-behavior-x: contain;
  font-size: 12.5px; line-height: 1.7;
}
.prose pre code { background: none; box-shadow: none; padding: 0; font-size: inherit; color: var(--ink-2); }
.prose table { margin: 0 0 20px; font-size: 13px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-card); overflow: hidden; }
.prose table th { background: var(--surface-2); }
.prose table td, .prose table th { padding: 10px 14px; }
.prose table code { white-space: nowrap; }
.prose hr { margin: 32px 0; }
.prose .note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r-m); margin: 0 0 20px;
  background: var(--seal-soft); color: var(--seal-ink);
  font-size: 13.5px; line-height: 1.6; font-weight: 500;
}
.prose .note.warn { background: var(--warn-soft); color: var(--warn); }
.prose .note svg { flex: none; margin-top: 2px; }
.prose .note a { color: inherit; text-decoration: underline; }
.prose .note p { margin: 0; max-width: none; }

/* карточки-ссылки внутри контента */
.block-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 22px; }
.block-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card);
  padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition-property: box-shadow, transform; transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.block-card .t { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.block-card .t svg { color: var(--seal); }
.block-card .d { font-size: 12.8px; color: var(--ink-2); line-height: 1.55; }
@media (hover: hover) and (pointer: fine) {
  .block-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
}

/* нумерованные шаги в контенте */
.block-steps { display: grid; gap: 10px; margin: 0 0 22px; counter-reset: st; }
.block-step {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.block-step::before {
  counter-increment: st; content: counter(st);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--seal-soft); color: var(--seal-ink);
  font-family: "Orin Mono", monospace; font-size: 12px; font-weight: 600;
}
.block-step .t { font-size: 14px; font-weight: 600; }
.block-step .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.58; }

/* «ключ — значение» */
.block-kv { display: grid; gap: 0; margin: 0 0 22px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-card); overflow: hidden; }
.block-kv .r { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.block-kv .r:last-child { border-bottom: none; }
.block-kv .k { color: var(--ink-3); }
.block-kv .v { color: var(--ink); overflow-wrap: anywhere; }

/* CTA внутри контента */
.block-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  padding: 22px 24px; margin: 28px 0;
}
.block-cta .t { font-size: 17px; font-weight: 600; }
.block-cta .d { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.block-cta .spacer { flex: 1; }

/* правовые страницы: узкая колонка, «документ» */
.legal-doc {
  max-width: var(--wrap-narrow); margin: 0 auto;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  padding: 34px 40px 40px;
}
/* Шапка правовой страницы центрируется вместе с документом: крошки, h1 и
   лид, выровненные по левому краю страницы, а документ — по центру, дают
   «сдвинутую» композицию (видно на /legal/contact). */
.wrap:has(.legal-nav) .page-head {
  max-width: var(--wrap-narrow); margin: 0 auto;
}
.wrap:has(.legal-nav) .page-body { padding-top: 24px; }
.legal-doc .prose { font-size: 14.2px; line-height: 1.7; }
.legal-doc .prose h2 { font-size: 18.5px; margin-top: 34px; }
.legal-doc .prose p { max-width: none; }
/* Правовая навигация: своя ширина (--wrap-narrow), центрируется — иначе на
   широком экране чипы уезжают влево, а документ стоит по центру. */
/* .legal-nav стоит вне .page-head, поэтому центрируется сам: ширина колонки
   документа (--wrap-narrow) и auto-поля. Отступ сверху — чтобы не липнуть
   к шапке сайта. */
.legal-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: var(--wrap-narrow); margin: 28px auto 0;
}
.legal-nav a {
  font-size: 12px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-card);
  color: var(--ink-2); text-decoration: none;
}
.legal-nav a[aria-current="page"] { background: var(--seal-soft); color: var(--seal-ink); font-weight: 600; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .legal-nav a:hover { color: var(--ink); }
}

/* ---------- статус ---------- */
.status-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
  margin-bottom: 18px;
}
.status-tile { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card); padding: 16px 18px; }
.status-tile .k { font-size: 11.5px; color: var(--ink-3); }
.status-tile .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; }
.status-tile .s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.status-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px;
  align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.status-row:last-child { border-bottom: none; }
.status-row .nm { display: flex; align-items: center; gap: 10px; font-weight: 550; min-width: 0; }
.status-row .v { color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* На широком экране ячейка — просто колонка сетки (display: contents),
   подпись столбца спрятана: шапка уже есть. */
.status-row .f { display: contents; }
.status-row .f .k { display: none; }
.status-row.head { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.status-row.head .v { color: var(--ink-3); }

/* ---------- контакты / о проекте ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact-card {
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-card);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.contact-card .k { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-card .v { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.contact-card .d { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.contact-card a { text-decoration: none; }

/* ---------- cookie: непрозрачная полоса внизу ----------
   Раньше плавающая карточка висела поверх контента и закрывала последний
   блок и футер. Теперь это полный bar внизу страницы, а место под него
   резервирует body.cookie-open: класс ставит/снимает cookieNotice().
   Высота объявлена переменной, потому что её же использует padding body. */
:root { --cookie-h: 64px; }
.cookie-bar {
  left: 0; right: 0; bottom: 0; max-width: none; margin: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 -12px 32px -20px oklch(0.21 0.03 158 / 0.35);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  min-height: var(--cookie-h);
  box-sizing: border-box;
  gap: 8px 14px;
}
.cookie-bar .c-t { flex: 1 1 320px; }
.cookie-bar .c-a { flex: none; }
body.cookie-open { padding-bottom: calc(var(--cookie-h) + env(safe-area-inset-bottom, 0px)); }
/* Кабинет сам резервирует место под нижней навигацией (app.css). */
body[data-screen="app"].cookie-open { padding-bottom: 0; }

/* ---------- экран входа ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-card); padding: 30px 30px 26px;
}
.auth-card h1 { font-size: 22px; font-weight: 600; margin-top: 16px; }
.auth-card form { text-align: left; }
.auth-card form > .field + .field { margin-top: 12px; }
.auth-card .auth-err { min-height: 18px; margin: 8px 0; color: var(--bad); font-size: 12.5px; }
.auth-card .field input { width: 100%; }
.auth-card .sub { margin: 8px 0 22px; font-size: 13.5px; color: var(--ink-2); }
.auth-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.auth-foot a { font-weight: 550; }

/* ---------- входной каскад (один раз, только витрина) ---------- */
.enter { animation: enter 260ms var(--ease-out) both; }
.enter-2 { animation-delay: 70ms; }
.enter-3 { animation-delay: 140ms; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- появление секций (только витрина) ----------   Наблюдатель в landing.js вешает .in; поддержаны оба способа пометки
   (.reveal классом и data-reveal атрибутом), чтобы рендер не спорил с CSS.
   Ступеньку задаёт рендер через --reveal-delay (90ms × индекс): это
   переменная, а не inline-отступы, — тест test_no_inline_styles_for_layout
   остаётся зелёным. */
.reveal, [data-reveal] {
  opacity: 0; transform: translateY(var(--reveal-shift));
  transition-property: opacity, transform;
  transition-duration: 260ms; transition-timing-function: var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in, [data-reveal].in { opacity: 1; transform: none; }

/* Высокий вьюпорт — это печать или полностраничный снимок: прокрутки
   нет, поэтому и переходы не нужны — контент показываем сразу. */
@media (min-height: 2400px) {
  .reveal, [data-reveal] { transition: none; }
  .enter { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-proof { max-width: 560px; }
  .doc-toc-m {
    display: block; margin-bottom: 22px;
    background: var(--surface); border-radius: var(--r-m);
    box-shadow: var(--shadow-card); padding: 0 16px;
  }
  .doc-toc-m summary {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 0; cursor: pointer; list-style: none;
    font-size: 13px; font-weight: 600; color: var(--ink);
  }
  .doc-toc-m summary::-webkit-details-marker { display: none; }
  .doc-toc-m summary .chev {
    margin-left: auto; color: var(--ink-3); flex: none;
    transition: transform 160ms var(--ease-out);
  }
  .doc-toc-m[open] summary .chev { transform: rotate(180deg); }
  .doc-toc-m a {
    display: block; padding: 9px 0; font-size: 13px; color: var(--ink-2);
    text-decoration: none; border-top: 1px solid var(--line);
  }
  .hero { padding-top: 40px; }
  .proof { max-width: 560px; }
  .hero::after { display: none; }
  .strip-head, .strip-row { grid-template-columns: 1.5fr 1fr 1fr 0.8fr 44px; }
  /* 641–1080: скоростные колонки (первый токен, p50, tok/s) уходят ВМЕСТЕ
     с подписями. Раньше прятали только числа, а подписи включались лишь
     на ≤640 — в этом диапазоне числа исчезали, а подписи оставались
     сиротами в шапке. */
  .col-ttft, .col-p50, .col-tps { display: none; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
  .plan { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .section { margin-top: 56px; }
  .band { margin-top: 56px; padding: 48px 0; }
  .method, .steps-row { grid-template-columns: 1fr; }
  /* тёмная полоса остаётся самой тяжёлой, но на мобиле отступы сжимаются:
     72px сверху/снизу на 390px — это полэкрана воздуха */
  .band-dark { margin-top: 56px; padding: 48px 0; }
  .compare-row {
    --cmp-pad-y: 12px;
    --cmp-pad-x: 16px;
    grid-template-columns: 1.3fr 1fr 1fr; font-size: 12.5px;
  }
  .cta-band { margin-top: 56px; padding: 44px 0; }
  .legal-doc { padding: 24px 20px 28px; border-radius: var(--r-l); }
  .block-kv .r { grid-template-columns: 1fr; gap: 2px; }
  /* Строка статуса на телефоне: шапка столбцов бесполезна (четыре колонки
     не влезают), поэтому подпись переезжает в каждую ячейку. */
  .status-row { grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 14px 16px; }
  .status-row.head { display: none; }
  .status-row .nm { grid-column: 1 / -1; }
  .status-row .f { display: block; min-width: 0; }
  .status-row .f .k {
    display: block; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 3px;
  }
}
@media (max-width: 640px) {
  :root { --cookie-h: 148px; }
  .cookie-bar { padding-left: 12px; padding-right: 12px; }
  .cookie-bar .c-t { flex-basis: 100%; font-size: 12px; }
  .cookie-bar .c-a { width: 100%; }
  .cookie-bar .c-a .btn { width: 100%; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 15px; }
  /* В hero остался один призыв + текстовая ссылка: они встают в столбик,
     чтобы кнопка была во всю ширину, а ссылка не болталась в хвосте ряда. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  .hero-link { justify-content: center; padding: 8px 6px; }
  .hero-proof { max-width: none; }
  .fact .v { font-size: 19px; }
  .hero::before { width: 340px; height: 340px; left: -150px; top: -140px; }
  .strip-head { display: none; }
  .strip-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .strip-row .m-name-cell { grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .strip-row .m-price { grid-column: 2; text-align: right; }
  .strip-row .m-num, .strip-row .m-sup { grid-column: 1 / -1; }
  /* Шапки столбцов нет — подпись «Подключений» идёт рядом с числом,
     иначе строка заканчивалась голой цифрой. */
  .strip-row .m-sup { display: flex; align-items: baseline; gap: 6px; }
  .strip-row .m-sup .k {
    display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ink-3);
  }
  .strip-row .m-sup .n { color: var(--ink); font-variant-numeric: tabular-nums; }
  .strip-row .m-docs { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-row.head { display: none; }
  .compare-row .q { font-weight: 600; color: var(--ink); }
  .compare-row .them::before { content: "— "; }
  /* На телефоне колонок нет — подсвечиваем саму строку значения, а не
     несуществующую колонку. */
  .compare-row .us { padding: 0 8px; }
  .compare-row .us::before { top: 0; bottom: 0; left: -8px; right: -8px; border-radius: var(--r-s); }
  .plan-main, .plan-side { padding: 20px; }
  .page-head { padding-top: 28px; }
  .block-cta { padding: 18px; }
  .block-cta .spacer { display: none; }
  .block-cta .btn { width: 100%; }
  .pulse-strip { margin-top: 14px; padding: 8px 12px; font-size: 12px; gap: 4px 8px; }
}

/* ---------- Frontier landing: editorial type, live prices, useful detail ---------- */
.landing .hero { padding: 64px 0 0; overflow: visible; }
.landing .hero::before, .landing .hero::after { display: none; }
.landing .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.landing .hero h1 { font-size: clamp(36px, 4.15vw, 58px); letter-spacing: -.045em; line-height: 1.08; max-width: none; }
.hero-line { display: block; }
.landing .hero-h1 { text-wrap: balance; }
.landing .hero h1 .hl { text-decoration: none; }
.landing .hero .lead { max-width: 48ch; font-size: 17px; line-height: 1.65; margin-top: 24px; }
.landing .hero-note { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; margin-top: 20px; }
.landing .hero-note span { display: inline-flex; align-items: center; gap: 5px; }
.landing .hero-note svg { width: 14px; height: 14px; color: var(--seal-ink); }
.model-toolkit { min-width: 0; background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--shadow-card); overflow: hidden; }
.toolkit-head { display: flex; align-items: center; gap: 12px; padding: 24px; border-bottom: 1px solid var(--line); }
.toolkit-head strong { font-size: 15px; font-weight: 600; }
.toolkit-head p { margin: 3px 0 0; font-size: 12px; color: var(--ink-3); }
.toolkit-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-m); background: var(--seal-soft); color: var(--seal-ink); }
.toolkit-index { margin-left: auto; color: var(--ink-3); font-family: "Orin Mono", monospace; font-size: 11px; white-space: nowrap; }
.toolkit-models { min-height: 272px; padding: 8px 24px; }
.toolkit-model { display: flex; align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.toolkit-model:last-child { border-bottom: 0; }
.toolkit-model strong { display: block; font-size: 14px; font-weight: 550; }
.toolkit-n { font-family: "Orin Mono", monospace; font-size: 11px; color: var(--ink-3); }
.toolkit-vendor { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.toolkit-empty { padding: 24px 0; }
.toolkit-code { display: grid; gap: 8px; margin: 0 16px; padding: 18px; background: var(--surface-inset); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); }
.toolkit-code-label { font-size: 11px; color: var(--ink-3); font-family: "Orin Mono", monospace; }
.toolkit-code code { font-size: 13px; overflow-wrap: anywhere; color: var(--seal-ink); }
.toolkit-code-note { font-size: 12px; color: var(--ink-3); }
.toolkit-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 24px; }
.verified-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--seal-ink); }
.verified-note svg { width: 15px; height: 15px; }
.toolkit-foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.toolkit-foot a svg { width: 15px; height: 15px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-benefit { display: flex; align-items: flex-start; gap: 12px; }
.hero-benefit > svg { color: var(--seal-ink); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hero-benefit strong { font-size: 14px; font-weight: 550; }
.hero-benefit p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.landing #models { margin-top: 0; padding: 64px 0 0; background: none; border: 0; }
.landing .section-head h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.032em; line-height: 1.16; }
.landing .section-head .sub { font-size: 16px; max-width: 65ch; }
.model-browser-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.model-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.model-filter { min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--r-m); background: transparent; color: var(--ink-2); font-size: 13px; font-family: inherit; cursor: pointer; transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.model-filter.on { color: var(--seal-ink); background: var(--seal-soft); font-weight: 600; }
.model-search { display: flex; align-items: center; gap: 8px; min-width: 0; width: 280px; max-width: 100%; background: var(--surface); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 0 12px; }
.model-search svg { color: var(--ink-3); width: 16px; height: 16px; flex: none; }
.model-search input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 16px; }
.model-no-match { padding: 32px 20px; color: var(--ink-2); background: var(--surface); border-radius: var(--r-l); }
.model-cache-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-3); line-height: 1.6; margin: 16px 0 0; }
.model-cache-note svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.strip-head, .strip-row { grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(120px, 1fr)) 112px 44px; gap: 16px; padding-left: 24px; padding-right: 24px; }
.strip-head { font-size: 11px; padding-top: 18px; padding-bottom: 18px; }
.strip-row { min-height: 96px; }
.strip-row .m-name { font-size: 15px; }
.strip-row .m-vendor { font-size: 12px; margin-top: 4px; }
.m-checked { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--seal-ink); margin-top: 4px; }
.m-checked svg { width: 12px; height: 12px; }
.strip-row .m-price { font-size: 12px; min-width: 0; overflow-wrap: normal; word-break: normal; }
.rate-value { display: inline; }
.model-results { min-width: 0; }
.model-disclosure { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.model-preview-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.model-count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.model-price-unit { font-size: 12px; color: var(--ink-3); }
.model-expand { min-height: 44px; }
.model-expand[hidden] { display: none; }
.model-expand svg { transition: transform 160ms var(--ease-out); }
.model-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.model-browser .strip-row { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.model-browser .m-checked { display: none; }
.strip-row .m-price .io { display: none; }
.strip-row .m-cache .rate-value { color: var(--seal-ink); }
.rate-unknown { font-family: "Orin Sans", sans-serif; color: var(--ink-3); font-size: 12px; }
.strip-head > :last-child { font-size: 0; }
.strip .m-docs .btn { min-width: 44px; min-height: 44px; }
.landing .band-dark { margin-top: 64px; padding: 64px 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line); }
.landing .band-dark h2, .landing .band-dark h3 { color: var(--ink); }
.landing .band-dark p, .landing .band-dark .sub { color: var(--ink-2); opacity: 1; }
.landing .band-dark .eyebrow, .landing .band-dark .method-n { color: var(--seal-ink); }
.landing .method { gap: 32px; }
.landing .method-item { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.landing .method-item h3 { font-size: 17px; margin-top: 14px; }
.landing .method-item p { font-size: 15px; line-height: 1.65; }
.landing .section { margin-top: 64px; }
.integration-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.integration-grid .steps-row { grid-template-columns: 1fr; gap: 20px; }
.integration-grid .step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 8px 0; background: none; box-shadow: none; }
.integration-grid .step .n { width: 30px; height: 30px; margin: 0; }
.integration-grid .step h3 { font-size: 16px; }
.integration-grid .step p { font-size: 14px; }
.integration-code { min-width: 0; }
.integration-code .snippet { font-size: 12px; line-height: 1.85; margin-top: 20px; }
.integration-code .field-row { flex-wrap: wrap; gap: 8px; }
.payment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.payment-grid .plan { display: flex; flex-direction: column; }
.payment-grid .plan-main { padding: 28px; }
.payment-grid .plan-side { padding: 24px 28px; margin-top: auto; }
.payment-grid .plan-main .p-v { font-size: 42px; }
.payment-grid .plan-main .p-d { font-size: 14px; line-height: 1.6; }
.payment-method { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; border-radius: var(--r-m); background: var(--surface-inset); box-shadow: inset 0 0 0 1px var(--line); }
.payment-method svg { width: 16px; height: 16px; color: var(--seal-ink); }
.payment-method-note { margin: 16px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.estimate-card { min-width: 0; }
.estimate-card .card-pad { padding: 28px; }
.estimate-card .card-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.estimate-card .card-head h3 { font-size: 17px; }
.estimate-fields { display: grid; gap: 14px; margin-top: 24px; }
.estimate-fields select { width: 100%; min-height: 44px; font-size: 16px; }
.estimate-result { margin-top: 24px; padding: 18px; border-radius: var(--r-m); background: var(--seal-soft); color: var(--seal-ink); }
.estimate-total { display: grid; gap: 8px; }
.estimate-total .k { font-size: 12px; }
.estimate-total strong { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.estimate-baseline { margin-top: 10px; font-size: 12px; }
.estimate-cache-hint { font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
.landing .cta-band { margin-top: 64px; padding: 64px 0; background: var(--seal-soft); }
.landing .cta-in h2 { font-size: clamp(28px, 3vw, 40px); max-width: 24ch; }
.landing .faq summary { min-height: 64px; font-size: 16px; padding: 20px 24px; }
.landing .faq .a { font-size: 15px; padding-left: 24px; padding-right: 24px; }
@media (hover: hover) and (pointer: fine) {
  .model-filter:hover { background: var(--surface-3); color: var(--ink); }
  .model-filter.on:hover { background: var(--seal-soft); color: var(--seal-ink); }
  .toolkit-foot a:hover { color: var(--seal-ink); }
}
@media (max-width: 1080px) {
  .landing .hero-grid { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .landing .hero h1 { font-size: clamp(34px, 4.6vw, 48px); }
  .toolkit-index { display: none; }
  .strip-head, .strip-row { grid-template-columns: minmax(150px, 1.3fr) repeat(3, minmax(100px, 1fr)) 100px; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .strip .m-docs, .strip-head > :last-child { display: none; }
}
@media (max-width: 800px) {
  .landing .hero { padding-top: 40px; }
  .landing .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .landing .hero h1 { font-size: clamp(36px, 6.5vw, 52px); }
  .model-toolkit { width: 100%; }
  .hero-benefits { gap: 16px; margin-top: 32px; }
  .hero-benefit { gap: 8px; }
  .hero-benefit strong { font-size: 13px; }
  .hero-benefit p { font-size: 12px; }
  .integration-grid, .payment-grid { grid-template-columns: 1fr; gap: 24px; }
  .landing .method { grid-template-columns: 1fr; gap: 28px; }
  .landing .method-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; }
  .landing .method-n { grid-row: 1 / 3; margin-top: 3px; }
  .landing .method-item h3 { margin: 0; }
  .landing .method-item p { grid-column: 2; }
  .strip-head { display: none; }
  .strip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 20px; }
  .strip-row .m-name-cell { grid-column: 1 / 3; grid-row: 1; }
  .strip-row .m-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .strip-row .m-price { grid-column: auto; grid-row: 2; text-align: left; font-size: 12px; }
  .strip-row .m-price .io { display: block; font-family: "Orin Sans", sans-serif; font-size: 12px; margin: 0 0 8px; }
  .strip-row .m-name { font-size: 16px; }
  .model-browser .strip-row { gap: 12px; padding: 16px 20px; }
  .model-browser .strip-row .m-name { font-size: 15px; }
  .model-browser .strip-row .m-vendor { margin-top: 2px; }
  .model-browser .strip-row .m-price .io { margin-bottom: 5px; }
}
@media (max-width: 520px) {
  .landing .hero { padding-top: 32px; }
  .landing .hero h1 { font-size: clamp(30px, 8.4vw, 42px); }
  .landing .hero .lead { font-size: 16px; margin-top: 20px; }
  .landing .hero-note { gap: 8px 12px; }
  .hero-benefits { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .hero-benefit { gap: 12px; }
  .hero-benefit strong { font-size: 15px; }
  .hero-benefit p { font-size: 13px; margin-top: 3px; }
  .toolkit-head { padding: 20px; }
  .toolkit-models { padding-left: 20px; padding-right: 20px; }
  .toolkit-model { gap: 12px; }
  .toolkit-model strong { font-size: 13px; }
  .toolkit-foot { padding: 12px 20px; }
  .landing #models, .landing .band-dark { padding-top: 48px; }
  .landing .band-dark { padding-bottom: 48px; margin-top: 48px; }
  .landing .section { margin-top: 48px; }
  .model-browser-tools { gap: 12px; }
  .model-search { width: 100%; }
  .model-filters { gap: 4px; }
  .model-filter { padding: 10px 12px; }
  .strip-row { padding: 18px 16px; }
  .model-browser .strip-row { padding: 14px 16px; }
  .model-disclosure { align-items: flex-start; gap: 8px; }
  .model-preview-meta { flex-direction: column; align-items: flex-start; gap: 3px; }
  .model-expand { font-size: 12px; }
  .strip-row .m-price { font-size: 11px; overflow-wrap: anywhere; }
  .strip-foot { padding-left: 16px; padding-right: 16px; }
  .payment-grid .plan-main, .payment-grid .plan-side, .estimate-card .card-pad { padding: 24px; }
  .landing .cta-band { padding: 48px 0; margin-top: 48px; }
  .landing .cta-actions { width: 100%; }
  .landing .cta-actions .btn { flex: 1; justify-content: center; }
  .landing .faq summary { padding: 18px 20px; }
}

/* ---------- уважение к prefers-reduced-motion (витрина) ----------
   Движение выключаем, КОНТЕНТ оставляем: reveal-секция без .in иначе
   осталась бы невидимой. */
@media (prefers-reduced-motion: reduce) {
  .reveal, [data-reveal] { opacity: 1; transform: none; }
  .enter { animation: none; }
  .pulse-strip .dot { animation: none; }
  .hero-link, .hero-link svg, .model-expand svg { transition: none; }
}
