/*
 * TotalGPT — публичный сайт (редизайн 26.10.2026): главная, /pricing/, /docs/,
 * /info/, /neyroset/, /modeli/, документы, итог оплаты, /s/, страницы 404.
 * Один файл стилей сайта поверх css/tokens.css (общие токены с кабинетом).
 * Язык — маркетинговые страницы chatgpt.com/openai.com: светлый фон, крупные
 * заголовки с плотным трекингом, чёрные кнопки-таблетки, белые карточки с
 * тонкой рамкой. Тема одна, светлая. Шрифт системный, внешних нет.
 * Без сдвигов вёрстки: у шапки фиксированная высота, у картинок размеры,
 * баннер cookies и меню телефона — поверх (position fixed/absolute).
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 816px; }
/* Секции тарифов: 5–6 карточек в ряд на широком экране без тесноты. */
.wrap--wide { max-width: 1400px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── Кнопки-таблетки ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
    font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease), opacity var(--ease);
}
.btn-sm { height: 36px; padding: 0 14px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: .82; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover); }

/* ── Шапка ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: 64px;
    background: rgba(252, 252, 252, .92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--border);
}
.site-header__in {
    height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 8px;
}
.site-logo {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    font-size: 18px; line-height: 28px; font-weight: 650; letter-spacing: -.01em;
    color: var(--text); text-decoration: none;
}
.site-logo img { width: 28px; height: 28px; border-radius: 8px; }
@media (pointer: coarse) { .site-logo { min-height: 44px; } .more { min-height: 44px; } }
.site-nav { flex: 1; display: flex; align-items: center; min-width: 0; }
.site-nav__links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.site-nav__links a {
    display: inline-flex; align-items: center; height: 36px; padding: 0 12px;
    border-radius: var(--radius-pill); font-size: 14px; line-height: 20px;
    color: var(--text-2); text-decoration: none; transition: background-color var(--ease), color var(--ease);
}
.site-nav__links a:hover { color: var(--text); background: var(--hover); }
.site-nav__links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.site-nav__actions { display: none; }
.site-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.site-menu-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.site-burger {
    display: none; flex: none; width: 40px; height: 40px; margin-right: -8px;
    align-items: center; justify-content: center; border-radius: 50%;
    color: var(--text); cursor: pointer;
}
.site-burger:hover { background: var(--hover); }
.site-menu-toggle:focus-visible ~ .site-burger { outline: 2px solid var(--link); outline-offset: 2px; }

@media (max-width: 900px) {
    .site-header__in { padding: 0 16px; }
    .site-burger { display: inline-flex; }
    .site-actions .site-login { display: none; }
    .site-actions { margin-left: auto; }
    /* Выезжающее меню: поверх страницы, под шапкой — вёрстку не двигает. */
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 8px 16px 20px; background: var(--surface);
        box-shadow: 0 1px 0 var(--border), var(--shadow-pop);
        max-height: calc(100dvh - 64px); overflow-y: auto;
    }
    .site-menu-toggle:checked ~ .site-nav { display: flex; }
    .site-nav__links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
    .site-nav__links a {
        height: 48px; padding: 0 8px; border-radius: var(--radius-item);
        font-size: 16px; line-height: 24px; color: var(--text);
    }
    .site-nav__actions { display: flex; flex-direction: column; gap: 8px; }
    .site-nav__actions .btn { height: 44px; width: 100%; }
}
@media (max-width: 380px) {
    .site-logo { gap: 8px; font-size: 17px; }
    .site-actions .btn-sm { padding: 0 12px; }
}
/* Телефон: бургер и кнопка шапки — цели касания 44 px (прогон 31.10.2026). */
@media (max-width: 767.98px) {
    .site-burger { width: 44px; height: 44px; }
    .site-actions .btn-sm { height: 44px; }
}
/* 320–360 px: логотип + «Начать бесплатно» + бургер шире экрана на 18 px — вся
   страница ездила вбок. Слово «TotalGPT» прячем только визуально: у ссылки-логотипа
   остаётся доступное имя (картинка — alt=""), значок узнаваем и без подписи. */
@media (max-width: 360px) {
    .site-logo { min-width: 44px; justify-content: center; }
    .site-logo span {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
}

/* ── Общие блоки ──────────────────────────────────────────────────── */
main { display: block; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); }
.section { padding: 72px 0; }
.section--tight { padding: 24px 0 8px; }
.section--flush { padding-top: 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head h2 {
    font-size: clamp(28px, 1.6rem + 1.4vw, 40px); line-height: 1.15;
    font-weight: 600; letter-spacing: -.025em; text-wrap: balance;
}
.section__head p { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--text-2); }
.section__more { margin-top: 28px; text-align: center; }
.more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text); text-decoration: none;
}
.more .icon { transition: transform var(--ease); }
.more:hover .icon { transform: translateX(3px); }
.note { max-width: 760px; margin: 0 auto 24px; font-size: 14px; line-height: 22px; color: var(--text-2); text-align: center; }
.plans + .note { margin: 28px auto 0; }
.note a { color: var(--text); }
.catalog-empty {
    padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-card);
    color: var(--text-2); text-align: center;
}
.catalog-empty a { color: var(--text); }
@media (max-width: 640px) {
    .section { padding: 52px 0; }
    .section--tight { padding: 16px 0 0; }
    .section__head { margin-bottom: 28px; }
    .lead { font-size: 17px; line-height: 26px; }
}

/* Карточки */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--3 { grid-template-columns: minmax(0, 1fr); } }
.card {
    display: block; padding: 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-card);
    text-decoration: none; color: inherit;
}
a.card { transition: border-color var(--ease), box-shadow var(--ease); }
a.card:hover { border-color: var(--border-strong); box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.card h3 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }

/* ── Главная: первый экран ───────────────────────────────────────── */
.hero { padding: 88px 0 24px; text-align: center; }
.hero__in { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
    max-width: 920px;
    font-size: clamp(36px, 1.4rem + 3.4vw, 64px); line-height: 1.06;
    font-weight: 600; letter-spacing: -.035em; text-wrap: balance;
}
.hero .lead { max-width: 640px; margin-top: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { max-width: 560px; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--text-2); }
@media (max-width: 640px) {
    .hero { padding: 48px 0 8px; }
    .hero__cta { width: 100%; flex-direction: column; }
    .hero__cta .btn { width: 100%; }
}

/* Пример диалога: оформление кабинета (реплика, ответ, поле ввода). */
.demo {
    width: 100%; max-width: 768px; margin-top: 56px; padding: 28px 28px 20px;
    text-align: left; background: var(--surface);
    border: 1px solid var(--border); border-radius: 24px;
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .12);
}
.demo__thread { display: flex; flex-direction: column; gap: 20px; }
.demo__user {
    align-self: flex-end; max-width: 78%; padding: 10px 16px;
    background: var(--user-bubble-bg); color: var(--user-bubble-text);
    border-radius: var(--radius-bubble); font-size: 15px; line-height: 22px;
}
.demo__ai p { font-size: 16px; line-height: 26px; }
.demo__ai p + p { margin-top: 10px; }
.demo__composer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; margin-top: 24px; padding: 8px 8px 8px 20px;
    border-radius: var(--radius-composer); background: var(--surface);
    box-shadow: var(--shadow-composer); color: var(--text-3); text-decoration: none;
    font-size: 16px; line-height: 24px;
}
.demo__composer:hover { color: var(--text-2); }
.demo__send {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--send-bg); color: var(--accent-text);
}
@media (max-width: 640px) {
    .demo { margin-top: 40px; padding: 18px 14px 14px; border-radius: 20px; }
    .demo__user { max-width: 90%; }
    .demo__ai p { font-size: 15px; line-height: 24px; }
}

/* Преимущества: три пункта в строку */
.benefits {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
    padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit > .icon { flex: none; margin-top: 2px; }
.benefit h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.benefit p { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--text-2); }
@media (max-width: 860px) { .benefits { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0; } }

/* Возможности и модели */
.feature { display: flex; flex-direction: column; }
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--border);
}
.feature p { flex: 1; }
.feature .more { margin-top: 16px; font-size: 14px; }
.model__cat { margin: 0 0 6px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.card .model__cat { margin-top: 0; font-size: 13px; line-height: 18px; }
.card .model__engine { margin-top: 2px; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--text-2); }
.post h3 { font-size: 17px; line-height: 26px; }

/* Задачи: таблетки-ссылки */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.chip {
    display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
    border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--surface);
    font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); text-decoration: none;
    transition: background-color var(--ease), border-color var(--ease);
}
.chip:hover { background: var(--hover); }
.chip--all { border-color: var(--border-strong); }

/* ── Тарифы ───────────────────────────────────────────────────────── */
/* Раскладка при любом числе тарифов (класс plans--nN ставит inc/site/parts.php):
   широкий экран — все в один ряд равной ширины (минимум три колонки, чтобы
   1–2 карточки не растягивались на всю ширину); средний (760–1199) — по 3
   (при 4 тарифах по 2, то есть 2+2; при 5 — 3+2), узкий — по 2, телефон — одна колонка. Ряды из flex-wrap с центровкой:
   неполный последний ряд стоит по центру, а не одинокой карточкой слева. */
.plans { --cols: 3; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); align-items: stretch; }
@media (min-width: 1200px) {
    .plans--n4 { --cols: 4; }
    .plans--n5 { --cols: 5; }
    .plans--n6 { --cols: 6; }
}
@media (max-width: 1199px) { .plans--n4 { --cols: 2; } }
@media (max-width: 759px) { .plans { --cols: 2; } }
@media (max-width: 640px) { .plans { --cols: 1; } }
.plan {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0;
    display: flex; flex-direction: column; padding: 24px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.plan--featured { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.plan__top { display: flex; height: 24px; margin-bottom: 12px; }
/* Название — в одну строку при любой ширине карточки: размер от ширины самой
   карточки (container query), иначе «Профессиональный» на 5 колонках рвался посреди слова. */
.plan { container-type: inline-size; }
.plan__name { font-size: clamp(16px, 7.4cqi, 22px); line-height: 28px; font-weight: 600; letter-spacing: -.015em; overflow-wrap: normal; white-space: nowrap; }
.plan__badge {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border);
    font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.plan__desc { margin-top: 8px; min-height: 66px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.plan__amount { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; }
.plan__period { font-size: 14px; line-height: 20px; color: var(--text-2); }
.plan__btn { width: 100%; margin-top: 20px; }
.plan__limits, .plan__features { list-style: none; margin-top: 20px; }
.plan__limits { padding-top: 16px; border-top: 1px solid var(--border); }
.plan__limits li {
    display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
    font-size: 14px; line-height: 20px; color: var(--text-2);
}
.plan__limits strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.plan__features { margin-top: 12px; }
.plan__features li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 20px; }
.plan__features .icon { flex: none; margin-top: 1px; }

.page-head { padding: 40px 0 40px; text-align: center; }
.page-head h1 {
    font-size: clamp(34px, 1.3rem + 2.6vw, 56px); line-height: 1.08;
    font-weight: 600; letter-spacing: -.035em; text-wrap: balance;
}
.page-head .lead { max-width: 680px; margin: 16px auto 0; }
.page-head--left { text-align: left; }
.page-head--left .lead { margin-left: 0; }
.note--center { margin-bottom: 24px; }

/* Таблица сравнения: своя прокрутка на узком экране, страница не шире окна. */
/* position: relative обязателен: .sr-only в ячейках (position: absolute) иначе
   считаются от корня, выходят из прокрутки и расширяют страницу на телефоне. */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 15px; font-weight: 600; vertical-align: bottom; }
.compare thead th span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare td { font-variant-numeric: tabular-nums; font-weight: 600; }
.compare__yes, .compare__no { display: inline-flex; vertical-align: middle; }
.compare__no { color: var(--text-3); }
.table-scroll + .note { margin-top: 24px; }

/* ── Вопросы и ответы ────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 0; list-style: none; cursor: pointer;
    font-size: 17px; line-height: 26px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
    content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px;
    border-radius: 1px; background: currentColor; transition: transform var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 32px 20px 0; color: var(--text-2); }
.faq__a p + p { margin-top: 8px; }
.faq__a a { color: var(--text); }

/* Призыв внизу */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 1.6rem + 1.4vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.cta p { max-width: 560px; margin: 12px auto 28px; color: var(--text-2); font-size: 17px; line-height: 26px; }

/* ── Хлебные крошки ──────────────────────────────────────────────── */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    padding-top: 20px; font-size: 14px; line-height: 20px; color: var(--text-2);
}
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs__sep { color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); }

/* ── Документы ───────────────────────────────────────────────────── */
.doc-list { list-style: none; display: grid; gap: 12px; }
.doc-card h2 { font-size: 18px; line-height: 28px; font-weight: 600; }
.doc-card p { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.requisites { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; line-height: 22px; color: var(--text-2); }
.requisites h2 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.requisites a { color: var(--text); }

/* ── Длинный текст: статьи, посадочные, документы ───────────────── */
.article { max-width: 816px; margin: 0 auto; padding: 24px 24px 64px; }
.article__head { margin: 16px 0 32px; }
.article h1 {
    font-size: clamp(30px, 1.2rem + 2vw, 44px); line-height: 1.12;
    font-weight: 600; letter-spacing: -.03em; text-wrap: balance;
}
.article__meta { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.article__lead { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.article__cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-card); margin: 0 0 32px; }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.article__cta p { font-size: 14px; line-height: 20px; color: var(--text-2); }
.prose { font-size: 17px; line-height: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; }
.prose h3 { margin-top: 28px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose a { color: var(--link); text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose img { height: auto !important; border-radius: 12px; }
.prose iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose blockquote { padding: 12px 18px; border-left: 3px solid var(--border-strong); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-2); }
.prose pre { padding: 16px; overflow-x: auto; background: var(--code-bg); border-radius: var(--radius-code); font-size: 14px; line-height: 22px; }
.prose code { font-family: var(--font-mono); font-size: .9em; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: 6px; background: var(--code-bg); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose strong { font-weight: 600; }
@media (max-width: 640px) {
    .article { padding: 16px 16px 48px; }
    .prose { font-size: 16px; line-height: 26px; }
    .prose h2 { font-size: 22px; line-height: 30px; margin-top: 32px; }
    .prose table { display: block; overflow-x: auto; }
}
/* Документы (docs/{offer,agreement,privacy}/index.html): абзацы в исходниках разделены переводом
   строки. Класс .article-content без изменений: по нему окно документов в
   кабинете вырезает текст (/api/seo/public/docs/{name}, routers/blog.py). */
.article-content { white-space: pre-line; font-size: 16px; line-height: 26px; }
.article-content h3 { white-space: normal; margin: 32px 0 8px; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.article-content i { color: var(--text-2); font-size: 14px; }
.article-content strong, .article-content b { font-weight: 600; }
.article-content a { color: var(--link); text-underline-offset: 2px; }
.article-content ul, .article-content ol { white-space: normal; margin: 8px 0; padding-left: 24px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; white-space: normal; font-size: 15px; line-height: 22px; }
.article-content th, .article-content td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
@media (max-width: 640px) { .article-content table { display: block; overflow-x: auto; } }

/* Призыв в конце статьи */
.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
    margin-top: 48px; padding: 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-card);
}
.callout__t { font-size: 18px; line-height: 28px; font-weight: 600; }
.callout p:not(.callout__t) { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--text-2); }

/* Блоки посадочных: примеры запросов и вопросы */
.lp-prompts blockquote { margin: 10px 0 0; font-style: normal; }
.lp-faq { margin-top: 12px; }

/* Похожие материалы и группы хабов */
.related { max-width: 816px; margin: 0 auto; padding: 0 24px 64px; }
.related h2 { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; }
.related .cards { gap: 12px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cards--2 { grid-template-columns: minmax(0, 1fr); } }
.hub-group + .hub-group { margin-top: 40px; }
.hub-group h2 { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 16px; }
.hub-groups { margin-top: 8px; }
@media (max-width: 640px) { .related { padding: 0 16px 48px; } }

/* Каталог статей и пагинация */
.post-list { list-style: none; display: grid; gap: 12px; }
.post-list h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.post-list .card time { display: block; margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--text-3); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text);
}
.pager a { border: 1px solid var(--border); background: var(--surface); }
.pager a:hover { background: var(--hover); }
.pager [aria-current] { background: var(--accent); color: var(--accent-text); }

/* Итог оплаты, 404, страница картинки: одна карточка по центру */
.center-card { max-width: 520px; margin: 0 auto; padding: 72px 24px 88px; text-align: center; }
.center-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; margin-bottom: 24px;
    background: var(--surface); border: 1px solid var(--border);
}
.center-card__icon--ok { color: var(--success); }
.center-card__icon--err { color: var(--danger); }
.center-card h1 { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.025em; }
.center-card p { margin-top: 12px; color: var(--text-2); }
.center-card .btn { margin-top: 28px; }
.share-figure { max-width: 768px; margin: 0 auto; padding: 32px 24px 64px; text-align: center; }
.share-figure img {
    margin: 0 auto; max-height: 72vh; width: auto; object-fit: contain;
    border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border);
}
.share-figure figcaption { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.share-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ── Подвал ───────────────────────────────────────────────────────── */
.site-footer { margin-top: 32px; border-top: 1px solid var(--border); background: var(--bg); }
.site-footer__in {
    max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 40px;
}
.site-footer__brand p { margin-top: 12px; max-width: 300px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer__h { margin-bottom: 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer__cols a { font-size: 14px; line-height: 20px; color: var(--text-2); text-decoration: none; }
.site-footer__cols a:hover { color: var(--text); text-decoration: underline; }
.site-footer__legal {
    max-width: 1152px; width: calc(100% - 48px); margin: 0 auto; padding: 20px 0 32px;
    border-top: 1px solid var(--border); font-size: 13px; line-height: 20px; color: var(--text-2);
}
.site-footer__legal p + p { margin-top: 4px; }
.site-footer__legal a { color: var(--text-2); }
@media (max-width: 900px) {
    .site-footer__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 16px 24px; }
    .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
    .site-footer__legal { width: calc(100% - 32px); padding: 20px 0 28px; }
}
@media (pointer: coarse) {
    /* 44 px по высоте (было 32: padding 6 + строка 20) — правило касаний 31.10.2026. */
    .site-footer__cols a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; }
    .site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
    .site-footer li + li { margin-top: 0; }
    .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── Баннер cookies (показывает js/site.js) ──────────────────────── */
/* Как на nuno.ru (решение владельца 26.10.2026): маленькая карточка снизу
   слева, кнопка-таблетка в той же строке, появление через ~400 мс с fade+slide.
   position: fixed — вёрстку не сдвигает; z-index 400 — ниже окон кабинета (500+). */
.site-cookie {
    position: fixed; z-index: 400; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    max-width: 340px; display: flex; align-items: center; gap: 14px;
    padding: 12px 12px 12px 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 240ms ease, transform 240ms ease;
}
.site-cookie[hidden] { display: none; }
.site-cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.site-cookie__text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.site-cookie__text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.site-cookie__btn {
    flex: none; height: 32px; padding: 0 16px; border: 0; border-radius: var(--radius-pill);
    background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 600; line-height: 32px;
    white-space: nowrap; cursor: pointer; transition: opacity var(--ease), transform var(--ease);
}
.site-cookie__btn:hover { opacity: .82; }
.site-cookie__btn:active { transform: scale(.96); }
@media (max-width: 640px) {
    .site-cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; }
    /* «Хорошо» на телефоне — цель касания 44 px (было 32). */
    .site-cookie__btn { height: 44px; line-height: 44px; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .site-cookie { display: none !important; }
}
