/* Лендинг katalogio.ru — статика, без сборки. Палитра = кит Katalogio (brand cyan / accent orange). */
:root {
  --brand-50: #ecfeff; --brand-100: #cbf5fb; --brand-200: #9febf4; --brand-300: #5fd3e0;
  --brand-500: #17bbd1; --brand-600: #0a6d7e; --brand-700: #085a69; --brand-800: #084c5a; --brand-900: #073843;
  --accent-50: #fff7ed; --accent-300: #fdba74; --accent-600: #d75f18; --accent-700: #b74e12; --accent-900: #7c2d12;
  --ink: #0f172a; --ink-2: #334155; --ink-3: #475569; --muted: #64748b; --muted-2: #94a3b8;
  --line: #e2e8f0; --ground: #f8fafc; --ground-2: #f1f5f9;
  --ok-bg: #dcfce7; --ok-fg: #166534;
  --radius: 16px; --gutter: 16px; --max: 1120px;
  --cookie-accent: var(--brand-700); --cookie-soft: var(--brand-50); --cookie-ring: var(--brand-200);
}
/* Manrope — локально (без Google Fonts: нет передачи IP третьей стороне, быстрее). */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2?v=c268b459a9) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2?v=a30ddcd349) 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; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section--ground { background: var(--ground); }
.section--dark { background: var(--brand-900); color: #fff; }
.section--warm { background: var(--accent-50); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.section--dark .eyebrow { color: var(--brand-300); }
.section--warm .eyebrow { color: var(--accent-700); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-3); max-width: 820px; margin-top: 12px; }
.section--dark .lead { color: var(--brand-100); }
.head { margin-bottom: clamp(24px, 4vw, 36px); }

/* Кнопки, чипы, бейджи */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--brand-600); color: #fff; padding: 16px 26px; font-size: 17px; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--secondary { background: #fff; color: var(--brand-600); border-color: var(--brand-200); padding: 12px 16px; font-size: 15px; }
.btn--secondary:hover { background: var(--brand-50); }
.btn--sm { padding: 11px 18px; font-size: 15px; border-radius: 10px; }
.btn--light { background: var(--brand-500); color: var(--brand-900); padding: 14px 20px; font-size: 16px; }
.btn--light:hover { background: var(--brand-300); color: var(--brand-900); }
.btn--ghost { background: transparent; color: var(--ink-2); padding: 10px 14px; font-size: 15px; font-weight: 600; }
.btn--ghost:hover { background: var(--ground-2); color: var(--ink); }
.btn--block { width: 100%; }
.link { font-weight: 700; color: var(--brand-600); text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand-600); font-size: 14px; font-weight: 600; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-50); color: var(--accent-700); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--ground-2); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pill--brand { background: var(--brand-50); color: var(--brand-700); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--dark { background: var(--brand-800); border-color: var(--brand-600); color: #fff; }
.card--warm { border-color: var(--accent-300); }
.card--brand { background: var(--brand-50); border-color: var(--brand-200); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-3); font-size: 15px; }
.card.card--dark p { color: var(--brand-100); }
.card.card--dark h3 { color: #fff; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink-2); text-decoration: none; }
.header__actions { display: flex; gap: 6px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px var(--gutter) 16px; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--ground-2); }
.mobile-menu.is-open { display: flex; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__col { display: flex; flex-direction: column; gap: 20px; }
.hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.hero__ai { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--ink); text-decoration: none; }
.hero__ai svg { flex-shrink: 0; margin-top: 3px; }

/* Пример */
.example { display: grid; grid-template-columns: 380px 48px minmax(0, 1fr); gap: 20px; align-items: start; }
.example__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 12px; }
.example__label--out { color: var(--brand-600); }
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv td { padding: 9px 14px; vertical-align: top; }
.kv td:first-child { color: var(--muted); width: 42%; }
.kv td:last-child { font-weight: 600; }
.kv tr:nth-child(even) { background: var(--ground); }
.kv .warn { color: var(--accent-700); font-weight: 500; }
.example__arrow { display: flex; justify-content: center; padding-top: 200px; }
.listing { background: #fff; border: 1px solid var(--brand-200); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.listing__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.listing__title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.listing__price { font-size: 22px; font-weight: 800; white-space: nowrap; color: var(--brand-600); }
.listing__desc { font-size: 13.5px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-size: 13px; color: var(--ink-2); padding-top: 6px; }
.fit { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); align-items: center; }
.fit .pill { font-size: 12px; padding: 3px 9px; }
.example__keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

/* Как работает */
.step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--brand-500); color: var(--brand-900); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.sub { margin-top: 32px; margin-bottom: 14px; }
.sub .eyebrow { margin-bottom: 4px; }
.sub p { color: var(--brand-100); font-size: 15px; }
.works { display: flex; align-items: flex-start; gap: 20px; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--brand-600); flex-wrap: wrap; }
.works .eyebrow { margin: 8px 0 0; white-space: nowrap; }
.works__chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* ИИ */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.chat { border: 1px solid var(--line); border-radius: 18px; background: var(--ground); overflow: hidden; }
.chat__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.chat__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg--user { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg ol { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.asks { margin-top: 32px; }
.asks .card { padding: 18px; }
.asks h3 { font-size: 15px; margin-bottom: 6px; }
.asks p { font-style: italic; font-size: 13.5px; }

/* Кейсы */
.stat { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-600); line-height: 1; margin-bottom: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.facts .pill { padding: 10px 16px; background: var(--ground); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }

/* Калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: stretch; }
.calc__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.field label { font-size: 14px; font-weight: 700; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.field__val { font-size: 20px; font-weight: 800; color: var(--brand-600); white-space: nowrap; }
.field input[type=range] { width: 100%; accent-color: var(--brand-600); }
.field .note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.seg { display: flex; gap: 8px; }
.seg button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--brand-600); font: inherit; font-size: 14px; font-weight: 700; background: #fff; color: var(--brand-600); cursor: pointer; }
.seg button.is-on { background: var(--brand-500); color: var(--brand-900); }
.result { background: var(--brand-900); color: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.result__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--brand-300); }
.result__big { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-200); line-height: 1; }
.result__note { font-size: 14px; color: var(--brand-100); }
.result__rows { border-top: 1px solid var(--brand-600); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.result__rows div { display: flex; justify-content: space-between; gap: 12px; }
.result__rows span:first-child { color: var(--brand-200); }
.result__rows strong { font-weight: 700; }
.result__fine { font-size: 12.5px; color: var(--brand-200); }
.result .btn { margin-top: auto; }

/* Тарифы */
.beta-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--accent-50); border: 1px solid var(--accent-300); font-size: 15px; color: var(--accent-900); margin-bottom: 24px; flex-wrap: wrap; }
.beta-bar .tag { background: var(--accent-700); color: #fff; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.plan--hot { border: 2px solid var(--brand-600); background: var(--brand-50); }
.plan__flag { position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 700; }
.plan__name { font-size: 20px; font-weight: 800; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 700; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-600); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 14px; color: var(--ink-3); padding-bottom: 12px; }

/* Контакты / форма */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; align-items: start; }
.contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ccard b { display: block; font-size: 15px; }
.ccard span { font-size: 13px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-700); margin-bottom: 6px; text-transform: uppercase; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 16px; background: var(--ground); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 3px var(--brand-100); }
.form textarea { min-height: 84px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); margin: 0; cursor: pointer; background: #fff; }
.checks input { width: auto; padding: 0; accent-color: var(--brand-600); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.agree input { width: auto; margin-top: 3px; accent-color: var(--brand-600); }
.form__msg { font-size: 14px; padding: 10px 12px; border-radius: 10px; display: none; }
.form__msg.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form__msg.is-ok { display: block; background: var(--ok-bg); color: var(--ok-fg); border: 1px solid #bbf7d0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Поля связи анкеты (leadform.js): телефон — intl-tel-input, почта; ошибки у поля. */
.lead-contacts { display: flex; flex-direction: column; gap: 14px; }
.form .lead-contacts__hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.form .field-err { margin-top: 6px; font-size: 13px; line-height: 1.35; color: #b91c1c; }
.form .field-err[hidden] { display: none; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #dc2626; background: #fff; }
.form input[aria-invalid="true"]:focus, .form textarea[aria-invalid="true"]:focus { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.form .iti { display: block; width: 100%; font-size: 16px; --iti-border-color: var(--line); --iti-hover-color: var(--brand-50); --iti-icon-color: var(--muted); --iti-spacer-horizontal: 14px; }
.form .iti__selected-country { border-radius: 10px 0 0 10px; }
.form .iti__selected-country:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.form .iti__selected-dial-code { color: var(--ink); }
.form .iti__dropdown-content { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14); overflow: hidden; }
.form .iti__search-input, .iti--fullscreen-popup .iti__search-input { padding: 11px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-clear-icon-size)) 11px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-globe-icon-size)); border: 0; border-radius: 0; background: #fff; box-shadow: none; font: inherit; font-size: 16px; }
.form .iti__search-input:focus { background: #fff; box-shadow: none; }
.iti__country { font-size: 15px; }
.iti__country.iti__highlight { background: var(--brand-50); }

/* Подвал */
.footer { background: var(--ink); color: var(--line); padding: 44px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer p { font-size: 14px; color: var(--muted-2); }
.footer .eyebrow { color: var(--muted-2); font-size: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__col a { color: #cbd5e1; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); border-top: 1px solid #1e293b; padding-top: 16px; margin-top: 28px; }

/* Режимы */
body[data-mode="open"] .only-waitlist { display: none !important; }
body[data-mode="waitlist"] .only-open { display: none !important; }
.cases { display: none; }
body[data-cases="1"] .cases { display: block; }

/* Адаптив */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example { grid-template-columns: 1fr; }
  .example__arrow { padding: 0; transform: rotate(90deg); }
  .example__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai, .calc, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .header__actions .only-desktop { display: none; }
  .burger { display: flex; }
  .hero__in { grid-template-columns: 1fr; gap: 24px; }
  .grid--2, .grid--3, .grid--4, .calc__inputs, .faq, .contact__cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn--primary { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .works { flex-direction: column; }
  .result__big { font-size: 36px; }
  .plan__price b { font-size: 30px; }
}

/* Баннер cookie (analytics.js) — по чек-листу юриста: «Разрешить» и «Отклонить» одного
   размера и стиля (равный вес), «Настроить» — текстовая ссылка. Десктоп — слева внизу, не
   заходит под кнопку связи справа и уступает окну чата (z-index ниже .cw); телефон — снизу
   во всю ширину, кнопка связи поднимается над ним (chat.js avoidObstacles). */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 52; width: min(520px, calc(100vw - 300px)); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(15,23,42,.18); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.cookie__title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.cookie__text a { color: var(--cookie-accent); font-weight: 600; }
.cookie__text p { margin: 0; }
/* Документ ещё не опубликован — ссылки на него скрыты (legal.js, data-legal-doc). */
[data-legal-doc][hidden] { display: none !important; }
.cookie__prefs { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.cookie__opt input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--cookie-accent); }
.cookie__opt input:focus-visible { outline: 3px solid var(--cookie-ring); outline-offset: 2px; }
.cookie__opt b { display: block; color: var(--ink); }
.cookie__opt small { display: block; font-size: 13px; color: var(--ink-3); }
.cookie__opt.is-off { cursor: not-allowed; }
.cookie__opt.is-off b { color: var(--ink-3); }
.cookie__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.cookie__save { align-self: flex-start; }
.cookie__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie__btn { min-width: 132px; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--cookie-accent); border-radius: 10px; background: #fff; color: var(--cookie-accent); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cookie__btn:hover { background: var(--cookie-soft); }
.cookie__btn:focus-visible, .cookie__more:focus-visible { outline: 3px solid var(--cookie-ring); outline-offset: 2px; }
.cookie__more { margin-left: auto; min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--cookie-accent); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) {
  .cookie { left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; border-width: 1px 0 0; border-radius: 16px 16px 0 0; padding: 16px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie__btn { flex: 1 1 0; min-width: 0; }
  .cookie__more { flex-basis: 100%; margin: 0; text-align: center; }
}

/* Согласия под анкетой: обязательное (ПДн) и необязательное (письма о продукте) — раздельно,
   по прил. 1 §3.1 политики. Полный текст согласия — в раскрывашке под галочкой. */
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; color: var(--ink-3); margin: 0; cursor: pointer; }
.form .agree input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; padding: 0; accent-color: var(--cookie-accent); }
.agree input:focus-visible { outline: 3px solid var(--cookie-ring); outline-offset: 2px; }
.agree small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.agree.is-invalid { color: #b91c1c; }
.agree.is-invalid input { outline: 2px solid #dc2626; outline-offset: 2px; }
.consents { display: flex; flex-direction: column; gap: 10px; }
.consent-text { margin: -2px 0 0 28px; font-size: 12.5px; color: var(--ink-3); }
.consent-text summary { cursor: pointer; color: var(--cookie-accent); font-weight: 600; width: fit-content; }
.consent-text summary:focus-visible { outline: 3px solid var(--cookie-ring); outline-offset: 2px; border-radius: 4px; }
.consents .consent-text p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.consents .agree__err { margin: -4px 0 0 28px; font-size: 13px; color: #b91c1c; }
.consents .agree__err[hidden] { display: none; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.linklike[hidden] { display: none; }

/* Юридические документы (oferta.html, privacy.html, rekvizity.html — собраны из текстов юриста).
   Оглавление слева и липкое на десктопе, текст ~70 знаков в строке, якоря на разделы. */
.doc { padding: 28px 0 80px; }
.doc__head { max-width: 860px; margin-bottom: 36px; }
.doc__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.doc__crumbs a { color: var(--ink-3); }
.doc__head h1 { font-size: clamp(30px, 4.2vw, 44px); }
.doc__sub { margin-top: 10px; font-size: 18px; color: var(--ink-3); }
.doc__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.doc__meta:empty { display: none; }
.doc__pdf { gap: 8px; }
.doc__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.doc__tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.doc__tab:hover { border-color: var(--brand-300); color: var(--ink); }
.doc__tab.is-on { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-800); }
.doc__tab:focus-visible, .doc__toc a:focus-visible, .doc__anchor:focus-visible, .doc__toc-m summary:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.doc__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc__grid--single { grid-template-columns: minmax(0, 1fr); }
.doc__toc { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow-y: auto; padding: 2px 6px 12px 2px; font-size: 14px; }
.doc__toc-title { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc__toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.doc__toc-list a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--ink-3); line-height: 1.35; text-decoration: none; }
.doc__toc-list a:hover { border-left-color: var(--brand-300); color: var(--ink); }
.doc__toc-list a.is-active { border-left-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); font-weight: 700; }
.doc__toc-list .sub a { padding-left: 24px; font-size: 13px; }
.doc__toc-m { display: none; }
.doc__body { max-width: 70ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.doc__body > :first-child { margin-top: 0; }
.doc__body h2 { margin: 44px 0 12px; font-size: 23px; color: var(--ink); scroll-margin-top: 92px; }
.doc__body h3 { margin: 28px 0 8px; font-size: 18px; color: var(--ink); scroll-margin-top: 92px; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body blockquote { margin: 0 0 14px; }
.doc__body ul, .doc__body ol { padding-left: 24px; }
.doc__body li { margin-bottom: 6px; }
.doc__body strong { color: var(--ink); }
.doc__body blockquote { padding: 12px 16px; border-left: 3px solid var(--brand-500); border-radius: 0 10px 10px 0; background: var(--ground); }
.doc__anchor { margin-left: 8px; color: var(--muted); font-weight: 600; text-decoration: none; opacity: 0; transition: opacity .15s; }
.doc__body h2:hover .doc__anchor, .doc__body h3:hover .doc__anchor, .doc__anchor:focus-visible { opacity: 1; }
.doc__tablewrap { margin: 0 0 18px; overflow-x: auto; }
.doc__table, .doc__kv { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc__table th, .doc__table td, .doc__kv td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc__table th { background: var(--ground-2); color: var(--ink); font-weight: 700; }
.doc__kv td:first-child { width: 42%; background: var(--ground); color: var(--ink-3); }
.doc__kv td:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc__note { font-size: 15px; color: var(--ink-3); }
/* Оболочка документа (docpage.js): загрузка, «готовится к публикации», «временно недоступен»,
   прошлые редакции и пометка «Редакция N, не действует». */
.doc [hidden] { display: none !important; }
.doc__state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 60ch; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground); }
.doc__state--loading { padding: 0; border: 0; background: none; color: var(--muted); }
.doc__state p { margin: 0; }
.doc__state-title { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.doc__state-text { color: var(--ink-3); }
.doc__state .btn { margin-top: 6px; }
.doc__vbtn { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.doc__vbtn:focus-visible, .doc__versions a:focus-visible, .doc__notice a:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.doc__versions { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); font-size: 15px; }
.doc__vlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.doc__vlist a { color: var(--brand-700); font-weight: 700; }
.doc__vlist a[aria-current] { color: var(--ink); text-decoration: none; }
.doc__vlist-when { color: var(--ink-3); }
.doc__vlist-note { margin: 6px 0 0; color: var(--ink-3); }
.doc__vlist-note:first-child { margin-top: 0; }
.doc__notice { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; color: #78350f; font-size: 15px; }
.doc__notice a { color: #78350f; font-weight: 700; }
.footer__col .linklike { color: #cbd5e1; font-size: 14px; }
.footer__col .linklike:hover { color: #fff; }
.footer__col .linklike:focus-visible, .footer__col a:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }
@media (max-width: 1024px) {
  .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc__toc { display: none; }
  .doc__toc-m { display: block; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); font-size: 14px; }
  .doc__toc-m summary { padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .doc__toc-m .doc__toc-list { padding: 0 8px 12px; }
  .doc__body { max-width: none; }
}
@media (max-width: 640px) {
  .doc { padding-top: 20px; }
  .doc__body { font-size: 16px; }
  .doc__body h2 { font-size: 20px; margin-top: 36px; }
  .doc__pdf { width: 100%; justify-content: center; }
  /* широкая таблица → карточки: подпись колонки над значением */
  .doc__table thead { display: none; }
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table td { display: block; width: 100%; }
  .doc__table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .doc__table td { border: 0; border-top: 1px solid var(--line); }
  .doc__table td:first-child { border-top: 0; background: var(--ground-2); color: var(--ink); font-weight: 700; }
  .doc__table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  .doc__kv td { display: block; width: 100% !important; border-width: 0 0 1px; }
  .doc__kv td:first-child { padding-bottom: 2px; background: none; font-size: 13px; }
  .doc__kv tr { display: block; border: 1px solid var(--line); border-bottom: 0; }
  .doc__kv tr:last-child { border-bottom: 1px solid var(--line); }
}
@media print {
  .header, .footer, .doc__toc, .doc__toc-m, .doc__tabs, .doc__pdf, .doc__crumbs, .doc__vbtn, .doc__versions, .doc__notice, .cookie, .cw, .cw-launcher, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .doc { padding: 0; }
  .doc__body a { color: inherit; }
  .doc__grid { display: block; }
  .doc__body { max-width: none; font-size: 11pt; }
  .doc__anchor { display: none; }
}

/* Пример: настоящие фото и карточки (пороги, 29.09) */
.srcphoto { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; }
.srcphoto img { width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.srcphoto figcaption, .more__src figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cards3 img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.more { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.more__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.chip-btn span { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip-btn.is-on { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-800); }
.more__row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 2.2fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.more__src { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px; }
.more__src img { width: 100%; height: 260px; object-fit: contain; }
.more__arrow { font-size: 28px; font-weight: 800; color: var(--brand-600); text-align: center; }
@media (max-width: 768px) {
  .more__row { grid-template-columns: 1fr; }
  /* карточки на телефоне — крупно, листаются вбок */
  .cards3 { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cards3 img { scroll-snap-align: start; }
  .more__arrow { transform: rotate(90deg); }
  .more__src img { height: 180px; }
  .chip-btn { flex: 1 1 45%; }
}

/* Связь с сайта (chat.js, docs/111 §3.4) — по стандарту виджета портала Кузовии: круглая
   кнопка → окно «Чем помочь?» со списком каналов. Разметка общая для обоих сайтов, цвета —
   переменными --cw-* (палитра сайта задаётся одной строкой выше этого блока). */
.cw, .cw-launcher { --cw-accent: var(--brand-600); --cw-accent-2: var(--brand-700); --cw-accent-3: var(--brand-500); --cw-alt: var(--accent-600); --cw-ring: var(--brand-200); --cw-soft: var(--brand-50); --cw-shadow: rgba(10,109,126,.35); }
.cw-launcher { position: fixed; right: 20px; bottom: calc(20px + var(--cw-lift, 0px)); z-index: 50; height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--cw-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 22px var(--cw-shadow); transition: transform .15s, background .15s, opacity .2s, visibility .2s; }
.cw-launcher.is-away { opacity: 0; visibility: hidden; pointer-events: none; }
.cw-launcher:hover { background: var(--cw-accent-2); transform: translateY(-1px); }
.cw-launcher:focus-visible { outline: 3px solid var(--cw-ring); outline-offset: 3px; }
.cw-launcher[hidden] { display: none; }
.cw-launcher svg { width: 22px; height: 22px; flex-shrink: 0; }
.cw-launcher__badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; }
.cw-launcher__badge[hidden] { display: none; }
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: min(360px, calc(100vw - 40px)); max-height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.24); font-size: 14px; color: var(--ink); }
.cw[hidden], .cw [hidden] { display: none !important; }
.cw:focus { outline: none; }
.cw__head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 14px; background: linear-gradient(135deg, var(--cw-accent), var(--cw-accent-3)); color: #fff; }
.cw__back { margin-left: -6px; }
.cw__head-text { flex: 1; min-width: 0; }
.cw__title { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw__status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.88); white-space: nowrap; }
.cw__status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cw__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 999px; background: rgba(255,255,255,.45); }
.cw__dot.is-on { background: #6ee7b7; }
.cw__dot.is-off { background: #fcd34d; }
.cw__hbtn { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.cw__hbtn:hover { background: rgba(255,255,255,.16); }
.cw__hbtn:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.cw__hbtn svg { width: 20px; height: 20px; }
.cw__menu { padding: 12px; overflow-y: auto; }
.cw__item, .cw__chan { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cw__item:hover, .cw__chan:hover { border-color: var(--cw-accent); box-shadow: 0 2px 8px rgba(15,23,42,.08); transform: translateY(-1px); color: var(--ink); }
.cw__item:focus-visible, .cw__chan:focus-visible, .cw__chip:focus-visible, .cw__send:focus-visible { outline: 3px solid var(--cw-ring); outline-offset: 1px; }
.cw__tile { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--cw-accent); color: #fff; }
.cw__tile--alt { background: var(--cw-alt); }
.cw__tile svg { width: 20px; height: 20px; }
.cw__item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw__item-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.cw__item-sub { font-size: 12.5px; color: var(--muted); }
.cw__pair { display: flex; gap: 8px; }
.cw__pair .cw__chan { flex: 1; min-width: 0; }
.cw__logo { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cw__logo svg { width: 22px; height: 22px; }
.cw__chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cw__offline { padding: 10px 14px; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: 13px; color: #78350f; }
.cw__offline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cw__chip { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #fcd34d; border-radius: 999px; background: #fff; color: #78350f; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cw__chip:hover { border-color: #f59e0b; color: #78350f; }
.cw__log { flex: 1; min-height: 96px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background: var(--cw-soft); }
.cw__empty { margin: 24px 12px 0; text-align: center; font-size: 13px; color: var(--muted); }
.cw__msg { max-width: 85%; padding: 8px 12px; border-radius: 16px; }
.cw__msg--me { align-self: flex-end; background: var(--cw-accent); color: #fff; border-bottom-right-radius: 5px; }
.cw__msg--op { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cw__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cw__meta { margin-top: 2px; font-size: 11px; opacity: .72; text-align: right; }
.cw__err { padding: 8px 14px; font-size: 12.5px; color: #b91c1c; background: #fef2f2; border-top: 1px solid #fecaca; }
.cw__composer { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); }
.cw__compose-row { display: flex; align-items: flex-end; gap: 8px; }
.cw__who { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cw__who legend { padding: 0; margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.cw__compose-row textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; resize: none; }
.cw__compose-row textarea:focus, .cw__field input:focus, .cw__field textarea:focus { outline: 2px solid var(--cw-ring); outline-offset: 0; border-color: var(--cw-accent); }
.cw__send { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--cw-accent); color: #fff; cursor: pointer; }
.cw__send:hover { background: var(--cw-accent-2); }
.cw__send:disabled { opacity: .55; cursor: default; }
.cw__send svg { width: 18px; height: 18px; }
.cw__legal { margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.cw__legal--chat { padding: 0 14px 10px; }
.cw__legal a { color: inherit; text-decoration: underline; }
.cw__field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.cw__field em { font-style: normal; font-weight: 500; color: var(--muted); }
.cw__field input, .cw__field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; resize: none; }
.cw__field input[aria-invalid="true"] { border-color: #dc2626; }
.cw__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .cw-launcher { right: 16px; bottom: calc(16px + var(--cw-lift, 0px)); }
  .cw { inset: 0; width: auto; max-height: none; border: 0; border-radius: 0; }
  .cw__log { min-height: 0; }
  body.cw-open { overflow: hidden; }
  body.cw-open .cookie { display: none; }
}
@media (max-width: 480px) {
  .cw-launcher { right: 12px; bottom: calc(12px + var(--cw-lift, 0px)); height: 46px; gap: 8px; padding: 0 16px 0 14px; font-size: 14px; }
  .cw-launcher svg { width: 20px; height: 20px; }
}

/* Страница 404 (404.html, отдаёт Caddy handle_errors) */
.nf { padding: clamp(56px, 10vw, 120px) 0; }
.nf__in { max-width: 760px; }
.nf .lead { margin-top: 16px; }
.nf__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.nf__actions .btn--secondary { padding: 16px 26px; font-size: 17px; }

/* Доступность: переход к содержанию с клавиатуры, видимый фокус, без анимаций по запросу системы. */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand-700); color: #fff; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
main[tabindex]:focus, main[tabindex]:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Страницы /avito, /tarify, /marketplejsy и обновлённая главная (мокап SEO-страниц, 02.10.2026) */
.nav a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--brand-600); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand-600); padding-bottom: 4px; }
.hero__col > .tag, .page-hero__single > .tag { align-self: flex-start; }
/* Оффер беты одной строкой у кнопки заявки */
.hero__offer { font-size: 15px; font-weight: 600; color: var(--accent-900); padding-left: 12px; border-left: 3px solid var(--accent-600); }
.form__offer { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-700); }
a.chip { color: inherit; text-decoration: none; }
a.chip:hover { color: #fff; background: var(--brand-800); }
.chip--soft { border-style: dashed; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.section--flush-top { padding-top: 0; }
.page-hero { padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px); }
.page-hero--short { padding-bottom: 28px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); }
.page-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero__single { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.page-hero__single .lead { margin-top: 0; }
.adcard { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.adcard__src { padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 12px; background: var(--ground); }
.adcard__src .example__label { display: block; margin-bottom: 4px; }
.adcard__src code { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.adcard__arrow { text-align: center; font-size: 24px; font-weight: 800; color: var(--brand-600); line-height: 1; }
.adcard__ad { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--brand-200); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(7,56,67,.12); }
.adcard__ad img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.adcard__body { display: flex; flex-direction: column; gap: 10px; }
.adcard__title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.adcard__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adcard__proof { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--brand-700); }
.ai__more { margin-top: 20px; }
.adcard__price { font-size: 22px; font-weight: 800; color: var(--brand-600); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps .card { padding: 20px; }
.steps h3 { font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.prose { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ttable { display: flex; flex-direction: column; gap: 14px; }
.ttable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ttable caption { text-align: left; caption-side: top; padding-bottom: 8px; }
.ttable th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ttable td { padding: 8px; border-bottom: 1px solid var(--ground-2); font-weight: 600; }
.ttable td:last-child, .ttable th:last-child { text-align: right; white-space: nowrap; color: var(--brand-700); }
.niches__more { margin-top: 16px; font-size: 14px; }
section[id], .card[id] { scroll-margin-top: 72px; }
.seg--wrap { flex-wrap: wrap; }
.result__rows strong { white-space: nowrap; }
.example-calc { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.example-calc p { color: var(--ink-2); }
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__in, .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .steps, .steps--3 { grid-template-columns: 1fr; }
  .adcard__ad { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .adcard__title { font-size: 16px; }
  .ttable td { font-size: 13px; }
}
/* Вкладки примера (главная) и иллюстрация «один товар — разные площадки» (/marketplejsy). Свеча — assets/candle.svg */
.extabs-row { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: -8px 0 14px; }
.extabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ground-2); }
.extabs[hidden] { display: none; }   /* без JS кнопок нет — видна первая панель (app.js показывает вкладки) */
.extabs [role=tab] { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.extabs [role=tab][aria-selected="true"] { background: #fff; color: var(--brand-700); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.extabs__panels > [role=tabpanel][hidden] { display: none; }
.extabs__panels > [role=tabpanel]:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 6px; border-radius: 12px; }
.extabs__cap { margin: 0; }
.srcphoto--candle img { max-height: 180px; }
.cc { position: relative; container-type: inline-size; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--brand-50), #fff 70%); }
.cc img { position: absolute; left: 17%; top: 1%; width: 66%; height: auto; border: 0; background: none; }
.cc__top { position: absolute; left: 7%; top: 6%; font-size: 6.5cqw; font-weight: 700; color: var(--brand-700); letter-spacing: .02em; }
.cc__big { position: absolute; left: 7%; bottom: 14%; padding: 1.5cqw 3.5cqw; border-radius: 3cqw; background: var(--brand-700); color: #fff; font-size: 11cqw; font-weight: 800; line-height: 1.1; }
.cc__small { position: absolute; left: 7%; bottom: 5%; font-size: 6.5cqw; font-weight: 600; color: var(--ink-3); }
.cc__top, .cc__big, .cc__small { z-index: 1; }
.cc__top, .cc__small { padding: .5cqw 2cqw; border-radius: 2cqw; background: rgba(255,255,255,.88); }
.cc--info img { left: 1%; top: 8%; width: 50%; }
.cc__list { position: absolute; right: 6%; top: 18%; display: flex; flex-direction: column; gap: 3cqw; }
.cc__list span { padding: 2cqw 3.5cqw; border-radius: 3cqw; background: #fff; border: 1px solid var(--brand-200); font-size: 7cqw; font-weight: 700; color: var(--brand-800); white-space: nowrap; }
.page-hero__in--mp { align-items: start; }
.mpviz { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mpviz__row { padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 12px; background: var(--ground); }
.mpviz__row .example__label { display: block; margin-bottom: 4px; }
.mpviz__row code { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mpviz__arrow { text-align: center; font-size: 24px; font-weight: 800; color: var(--brand-600); line-height: 1; }
.mpviz__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mpcard { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(7,56,67,.08); min-width: 0; }
.mpcard__label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.mpcard__title { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mpcard__price { font-size: 15px; font-weight: 800; color: var(--brand-600); margin-top: auto; }
.mpcard__vars { display: flex; flex-wrap: wrap; gap: 4px; }
.mpcard__vars .pill { font-size: 11px; padding: 2px 7px; }
@media (max-width: 768px) {
  .cards3 .cc { scroll-snap-align: start; }
  .example__lead { display: none; }   /* на телефоне подпись у вкладок заменяет подводку — блок не выше прежнего */
  /* три карточки на телефоне — листаются вбок внутри блока */
  .mpviz__cards { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .mpcard { scroll-snap-align: start; }
}
