/*
 * Публичный сайт Parser (основа — витрина sc-main; цвета чёрно-красные, решение владельца 2026-10-03).
 *
 * Свои стили, без сторонних библиотек.
 *
 * Вид (решения владельца 2026-09-21): светлая основа — как в первой версии витрины,
 * а не тёмная «как на действующем сайте». От тёмного варианта оставлены живые части:
 * появление блоков при прокрутке, подъём карточек и заливка иконки при наведении,
 * плотнеющая при прокрутке шапка, наезд на картинку. Большие картинки в первом экране
 * и в заголовках страниц, градиентный подвал — тёмно-синий, почти чёрный.
 *
 * Правки после второго просмотра владельцем:
 *   — две гарнитуры: Manrope (заголовки) и Inter (текст). Одна на всё выглядела безлико;
 *   — текст НИКОГДА не центрируется: заголовки разделов, пустые состояния, призыв
 *     к действию — всё по левому краю;
 *   — заголовок страницы и её текст лежат в одной сетке (--col-text / --col-side),
 *     иначе H1 и первый абзац начинались в разных местах;
 *   — в шапке ничего не скачет: шестерёнка больше не проворачивается;
 *   — правила меню больше не ломают кнопку «Демо» (была без отступов и с тёмным
 *     текстом на синем — выглядела пустым овалом).
 *
 * Правки после третьего просмотра:
 *   — шапка покрашена в тёмно-синий, в тон подвалу: логотип-шестерёнка белая, на светлой
 *     шапке её не было видно. Страница получила «рамку»: тёмный верх, светлая середина,
 *     тёмный низ;
 *   — узких центрированных блоков не осталось: класс .narrow убран совсем, контейнеры
 *     во всю ширину, ширину читаемой строки держит сам текст (.prose — 720px, слева);
 *   — шрифт подвала уменьшен.
 */

:root {
    --brand: #E11D2E;
    --brand-dark: #C01525;
    --brand-deep: #7A0F1A;
    --brand-soft: #FFF0F1;
    --ink: #141417;
    --ink-soft: #3A3A42;
    --muted: #62626C;
    --line: #ECE7E8;
    --bg-soft: #F8F6F6;
    --bg-tint: #FDF2F3;

    /* Подвал: тёмно-синий, близкий к чёрному. Три оттенка — из них собран градиент */
    --night: #0A0A0B;
    --night-mid: #17171A;
    --night-blue: #2A0A0F;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(20, 20, 23, .06), 0 8px 24px rgba(20, 20, 23, .06);
    --shadow-lg: 0 2px 6px rgba(20, 20, 23, .08), 0 18px 48px rgba(20, 20, 23, .12);
    --shadow-art: 0 30px 70px rgba(20, 10, 12, .22), 0 6px 18px rgba(20, 10, 12, .10);
    --header-h: 76px;
    --wrap: 1180px;
    /* Ширина текстовой колонки и оглавления — одни и те же числа для заголовка
       страницы и для её текста, иначе H1 и первый абзац начинаются в разных местах */
    /* 720 + 60 + 360 = 1140 — ровно ширина .wrap без боковых полей. Сетка занимает её
       целиком, поэтому заголовок страницы и текст под ним начинаются на одной линии,
       и правые края тоже совпадают */
    --col-text: 720px;
    --col-side: 360px;
    --col-gap: 60px;

    /* Две гарнитуры: заголовки — Manrope (плотный геометричный гротеск, у него
       заметный характер), текст — Inter (сделан для чтения с экрана). Одна гарнитура
       на всё выглядела безлико — именно это владелец и назвал «простецки» */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------ основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: #fff;
    overflow-wrap: break-word;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    /* Подвал прижат к низу окна на любой короткой странице (владелец 2026-09-26) */
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
body > #main { flex: 1 0 auto; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700;
}
h1 { font-size: clamp(34px, 3.6vw, 46px); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.02em; }
h3 { font-size: clamp(19px, 1.6vw, 21px); letter-spacing: -.01em; }
h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

a { color: var(--brand-dark); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding-block: 68px; }
.section-soft { background: var(--bg-soft); }
/* Только сверху и снизу: этот класс висит на самом .wrap, и `padding: 48px 0`
   стирал его боковые поля — текст уезжал на 20px левее заголовка страницы */
.section-tight { padding-block: 48px 56px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Текст выровнен по левому краю — всегда (просьба владельца). Центрированные абзацы
   читаются хуже: у каждой строки своё начало, и глазу приходится его искать */
.section-head { max-width: 720px; margin: 0 0 44px; }
/* Фирменная деталь: короткая двухцветная черта над заголовком раздела */
.section-head h2::before {
    content: ''; display: block; width: 46px; height: 3px; margin: 0 0 20px;
    border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}
.section-head .lead { margin-bottom: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px; padding: 7px 16px 7px 12px;
    background: #fff; color: var(--brand-dark);
    border: 1px solid rgba(225, 29, 46, .28);
    border-radius: 999px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    box-shadow: 0 2px 10px rgba(225, 29, 46, .12);
}
.eyebrow::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 3px rgba(225, 29, 46, .18);
}

/* ------------------------------------------------------------------ кнопки */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(225, 29, 46, .35); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 26px rgba(192, 21, 37, .45); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 34px; font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------------ шапка */
/* Шапка тёмно-синяя, в тон подвалу: страница получает «рамку» — тёмный верх,
   светлая середина, тёмный низ. И главное, ради чего красили: логотип-шестерёнка
   белая, на светлой шапке её просто не было видно */
.site-header {
    position: sticky; top: 0; z-index: 99;
    background:
        radial-gradient(700px 200px at 18% 120%, rgba(225, 29, 46, .28), rgba(225, 29, 46, 0) 70%),
        linear-gradient(180deg, var(--night-blue), var(--night-mid));
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07);
    transition: box-shadow .3s;
}
/* При прокрутке шапка отрывается от страницы тенью */
.site-header.scrolled { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07), 0 8px 26px rgba(10, 10, 11, .28); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

/* Логотип: временный радар (assets/img/logo.svg) — до логотипа от владельца. Ничего не крутится и не скачет */
.logo { position: relative; display: flex; align-items: center; padding-left: 48px; height: 40px; }
.logo:hover { text-decoration: none; }
.logo::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; margin: auto;
    width: 36px; height: 36px;
    background: url(/assets/img/logo.svg) no-repeat center / contain;
    transition: opacity .2s;
}
.logo:hover::before { opacity: .8; }
.logo span {
    font-family: var(--font-head);
    font-size: 19px; font-weight: 800; color: #fff;
    letter-spacing: -.02em; white-space: nowrap;
}
.logo span i { font-style: normal; color: var(--brand-dark); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* Правила ниже — только для ссылок меню: кнопке «Демо» они ломали и отступы,
   и цвет текста (тёмный на синем), из-за чего она выглядела пустым овалом */
.nav > a:not(.btn) {
    position: relative; color: rgba(255, 255, 255, .78); font-size: 15px; padding: 4px 0;
    font-weight: 500;
}
.nav > a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
    border-radius: 2px; background: var(--brand); transition: right .25s ease;
}
.nav > a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav > a:not(.btn):hover::after, .nav > a:not(.btn).active::after { right: 0; }
.nav > a:not(.btn).active { color: #fff; }

/* Кнопка в шапке белая: синяя на тёмно-синем не читалась бы */
.site-header .btn-primary { background: #fff; color: var(--night-mid); box-shadow: none; }
.site-header .btn-primary:hover { background: var(--brand-soft); color: var(--night); box-shadow: 0 8px 20px rgba(10, 10, 11, .35); }

/* Языки отделены от меню тонкой чертой: это переключатель, а не раздел сайта */
.langs { display: flex; gap: 2px; padding-left: 16px; margin-left: -4px; border-left: 1px solid rgba(255, 255, 255, .16); }
.langs a {
    padding: 5px 8px; border-radius: 7px; font-size: 12px; font-weight: 600;
    color: rgba(255, 255, 255, .55); text-transform: uppercase; letter-spacing: .04em;
}
.langs a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.langs a.active { background: var(--brand); color: #fff; }

/* Языки в шапке — выпадающий список (просьба владельца 2026-09-21). Четыре кода
   в строку занимали в шапке 140 точек: с «Входом» и «Регистрацией» она перестала
   влезать на ноутбуках. Сделано на <details>, поэтому работает и без скриптов.
   В подвале языки остались строкой — там места хватает */
.lang-dd { position: relative; }
.lang-dd summary {
    display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
    padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px;
    color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em; user-select: none;
    transition: color .2s, border-color .2s, background .2s;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::after {
    content: ''; width: 6px; height: 6px; margin: -3px 0 0 1px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
}
.lang-dd summary:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.lang-dd[open] summary { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-dd[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-dd .langs {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    flex-direction: column; gap: 2px; min-width: 104px;
    margin: 0; padding: 8px; border: 0; border-radius: var(--radius-sm);
    background: var(--night-mid); box-shadow: 0 16px 34px rgba(10, 10, 11, .45);
}
.lang-dd .langs a { padding: 8px 12px; font-size: 13px; }

.nav-toggle { display: none; }
.nav-button {
    display: none; margin-left: auto; width: 42px; height: 42px; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius-sm);
    background: transparent; cursor: pointer;
}
.nav-button span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.nav-button span::before, .nav-button span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; transition: transform .25s;
}
.nav-button span::before { top: -6px; }
.nav-button span::after { top: 6px; }

/* ------------------------------------------------------------------ первый экран */
/* Светлый: слева текст, справа картинка. Свечения — размытые пятна на фоне,
   нарисованные стилями: ничего не весят и тянутся под любой экран */
.hero {
    position: relative; overflow: hidden;
    padding: 60px 0 52px;
    background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 78%);
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
    top: -220px; right: -160px; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(225, 29, 46, .22), rgba(225, 29, 46, 0) 70%);
}
.hero::after {
    bottom: -260px; left: -180px; width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(122, 15, 26, .12), rgba(122, 15, 26, 0) 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 19px; margin-bottom: 30px; max-width: 30em; }
.hero-note {
    margin-top: 22px; padding-left: 14px; font-size: 14px; line-height: 1.6;
    color: var(--muted); max-width: 32em; border-left: 2px solid var(--brand-soft);
}
/* Три факта в один ряд с разделителями: строчка цифр — это «визитка» продукта */
.hero-facts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-fact { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-fact:first-child { padding-left: 0; border-left: 0; }
.hero-fact b {
    display: block; font-family: var(--font-head); font-size: 27px; font-weight: 800;
    color: var(--ink); line-height: 1.1; letter-spacing: -.02em;
}
.hero-fact span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Картинка первого экрана: наезд остался с тёмной версии — он оживляет страницу */
.hero-art {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-art);
}
.hero-art img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    aspect-ratio: 3 / 2;
    animation: art-zoom 26s ease-in-out infinite alternate;
}
@keyframes art-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
/* Тонкая внутренняя кромка — чтобы светлая картинка не сливалась с белым фоном */
.hero-art::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(20, 10, 12, .10);
}

/* Заголовок внутренней страницы: светлый, с тем же свечением, что и первый экран.
   Справа — картинка, если для этой страницы она есть (engine/modules/site_art.php) */
.page-hero {
    position: relative; overflow: hidden;
    padding: 46px 0 40px;
    background: linear-gradient(180deg, var(--bg-tint), #fff);
    border-bottom: 1px solid var(--line);
}
.page-hero::after {
    content: ''; position: absolute; top: -260px; right: -140px; width: 560px; height: 560px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(225, 29, 46, .18), rgba(225, 29, 46, 0) 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 22em; margin-bottom: 0; }
.page-hero .lead { margin-top: 14px; margin-bottom: 0; max-width: 46em; }

.page-hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.page-hero-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-dark); }
.breadcrumbs span { margin: 0 8px; opacity: .6; }

/* ------------------------------------------------------------------ сетки и карточки */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
/* Карточки-ссылки в сетке тянутся на одну высоту, «Подробнее» — к низу */
a.card { color: inherit; display: flex; flex-direction: column; }
a.card > .more { margin-top: auto; padding-top: 14px; }
a.card:hover, .card-hover:hover {
    border-color: rgba(225, 29, 46, .45); box-shadow: var(--shadow-lg);
    transform: translateY(-3px); text-decoration: none;
}
/* «Подробнее» со стрелкой, которая отъезжает при наведении. Стрелка рисуется стилями,
   а не пишется в тексте: это оформление, и в переводах его быть не должно */
.more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px; color: var(--brand-dark); font-weight: 600;
}
.more::after { content: '→'; transition: transform .25s ease; }
a.card:hover .more { text-decoration: none; }
a.card:hover .more::after, .doc-card:hover .more::after { transform: translateX(4px); }

/* Иконка — скруглённый квадрат, как в первой версии витрины;
   заливка цветом при наведении осталась от тёмной версии */
.icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 18px;
    background: var(--brand-soft); color: var(--brand-dark); border-radius: 14px;
    transition: background .25s, color .25s, transform .25s;
}
.icon svg { width: 26px; height: 26px; }
a.card:hover .icon, .card-hover:hover .icon { background: var(--brand); color: #fff; transform: scale(1.06); }

/* Карточка «для кого» с картинкой сверху. Картинка не выше 16:10 — иначе она
   съедает карточку, и текст под ней читается как подпись, а не как содержание */
.card-art { padding: 0; overflow: hidden; }
.card-art .card-art-pic { position: relative; overflow: hidden; }
.card-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.card-art:hover img { transform: scale(1.04); }
/* Снизу картинки — лёгкое затемнение: граница с белым телом карточки не «звенит» */
.card-art .card-art-pic::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 46px;
    background: linear-gradient(180deg, rgba(20, 10, 12, 0), rgba(20, 10, 12, .12));
}
/* Карточки в ряду разной высоты по тексту, поэтому «Подробнее» прижимается к низу:
   иначе ссылки стоят на разных уровнях и ряд выглядит рассыпанным */
.card-art { display: flex; flex-direction: column; }
.card-art .card-art-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 24px 24px; }
.card-art h3 { margin-bottom: .3em; }
.card-art .more { margin-top: auto; padding-top: 14px; }

/* Блок «преимущество»: иконка слева, текст справа */
.advantage { display: flex; gap: 20px; margin-bottom: 30px; }
.advantage .icon { flex: 0 0 64px; margin-bottom: 0; }
.advantage h3 { margin-bottom: .3em; }
.advantage p { margin-bottom: 0; color: var(--muted); }

/* Шаги «как начать» */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 74px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -6px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 22px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(225, 29, 46, .35);
}

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.checks li::before {
    content: ''; position: absolute; left: 5px; top: .5em;
    width: 13px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
}

/* Картинка в секции */
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------------ цены */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
/* Значок «выгодно» — в правый верхний угол, а не строкой над заголовком: строкой он
   сдвигал заголовок и цену вниз, и средняя карточка стояла не в ряд с двумя другими */
.price-card .eyebrow {
    position: absolute; top: 16px; right: 16px; margin: 0;
    padding: 5px 12px 5px 10px; font-size: 11px;
}
/* Цена: 42 точки были рассчитаны на главную, где карточек три на всю ширину (≈360 точек
   каждая). На странице «Цены» тот же блок стоит внутри текстовой колонки, карточка —
   223 точки, и «216,00 $» с «20 $ / час» ломались на две строки (замечание владельца
   2026-09-21). Теперь 34 точки и запрет переноса: сумма всегда одной строкой */
.price-tag {
    font-size: 34px; font-weight: 600; color: var(--ink); line-height: 1.15;
    margin-bottom: 6px; white-space: nowrap;
}
/* Единица под суммой («за час»): отдельной мелкой строкой. В строку с ценой она
   не влезает — в карточке на «Ценах» ширина 223 точки */
.price-tag small { display: block; font-size: 16px; font-weight: 400; color: var(--muted); }
/* Гривна справа от долларовой цены, в той же строке: «20 $  ≈ 900 ₴» — мельче
   и тише главной цены. Только на украинской версии (prices_block.php) */
.price-alt { margin-left: 12px; font-size: 18px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.price-card .btn { margin-top: auto; }
.price-note { font-size: 15px; color: var(--muted); }
/* Сноска о курсе — под рядом карточек, мелко и неброско */
.price-rate { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ призыв к действию */
/* Призыв к действию — тот же тёмно-синий, что в подвале, только светлее:
   страница заканчивается двумя тёмными блоками подряд, и они должны быть родня.
   Текст слева, кнопки справа — по центру он бы снова «плавал» */
.cta {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
    background:
        radial-gradient(600px 300px at 80% 0%, rgba(255, 90, 105, .30), rgba(255, 90, 105, 0) 70%),
        linear-gradient(140deg, var(--night-blue) 0%, var(--brand-deep) 55%, var(--brand-dark) 100%);
    color: #fff; padding: 48px 52px;
    box-shadow: var(--shadow-art);
}
.cta h2::before { display: none; }
.cta .btn-row { flex-shrink: 0; }
.cta::after {
    content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.cta .btn-primary:hover { background: #FFF0F1; color: var(--brand-dark); }
.cta .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------------ подвал */
/* Тёмно-синий, почти чёрный (решение владельца). Градиент в три слоя:
   вертикальный переход от синего к ночному, мягкое синее свечение слева сверху
   и холодный отблеск справа — плоская заливка рядом с ним выглядит мёртвой */
.site-footer {
    position: relative; overflow: hidden;
    margin-top: 96px; padding: 64px 0 26px;
    font-size: 14px; line-height: 1.6;
    color: #9A9AA4;
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(225, 29, 46, .20), rgba(225, 29, 46, 0) 68%),
        radial-gradient(700px 380px at 92% 12%, rgba(200, 24, 40, .14), rgba(200, 24, 40, 0) 70%),
        linear-gradient(170deg, var(--night-blue) 0%, var(--night-mid) 42%, var(--night) 100%);
}
/* Светящаяся кромка сверху — подвал начинается линией, а не обрывом */
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, rgba(225, 29, 46, 0), rgba(225, 29, 46, .55), rgba(225, 29, 46, 0));
}
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer h4 {
    color: #fff; font-size: 12px; text-transform: uppercase;
    letter-spacing: .09em; margin-bottom: 14px;
}
.site-footer a { color: #9A9AA4; transition: color .2s; }
.site-footer .small { font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { position: relative; display: inline-flex; align-items: center; height: 32px; padding-left: 42px; margin-bottom: 14px; }
.footer-logo::before {
    content: ''; position: absolute; left: 0; top: 0; width: 32px; height: 32px;
    background: url(/assets/img/logo.svg) no-repeat center; background-size: contain;
}
.footer-logo span {
    font-family: var(--font-head); color: #fff; font-weight: 800;
    font-size: 16px; letter-spacing: -.02em;
}
/* Telegram под текстом о компании: значок и ник одной строкой.
   Значок нарисован в разметке (SVG), картинки на это не заводим */
.footer-tg { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 12px; }
.footer-tg svg { flex: none; }
.site-footer a.footer-tg:hover svg { color: var(--brand); }

.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    margin-top: 44px; padding-top: 20px; font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .langs a { color: rgba(255, 255, 255, .5); }
.site-footer .langs a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .langs a.active { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ текстовые страницы */
.prose { max-width: var(--col-text); font-size: 17px; line-height: 1.7; }
/* Заголовок в тексте отделён сверху воздухом и коротким штрихом слева —
   по нему видно, что начался новый раздел, даже при быстрой прокрутке */
.prose h2 { margin-top: 2em; }
/* Короткая черта над заголовком — тот же штрих, что у заголовков разделов.
   Не сбоку: слева она вылезала бы за край колонки на узком экране */
.prose h2::before {
    content: ''; display: block; width: 34px; height: 3px; margin-bottom: 16px;
    border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}
.prose h3 { margin-top: 1.6em; }
.prose p + ul, .prose p + ol { margin-top: -.4em; }
.prose a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(225, 29, 46, .4); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose a.btn { text-decoration: none; font-weight: 600; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 500; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); }
.page-body { padding-bottom: 20px; }

/* Страница с оглавлением: текст слева, оглавление справа и держится при прокрутке.
   На узком экране оглавление прячем — там проще пролистать саму страницу. */
/* Одна сетка на заголовок страницы и на её текст: иначе H1 начинается в одном месте,
   а первый абзац — в другом (было 632px против 474px, и это сразу видно) */
.page-layout {
    display: grid; grid-template-columns: minmax(0, var(--col-text)) var(--col-side);
    gap: var(--col-gap); align-items: start;
}
.page-hero .page-layout { align-items: center; }
.page-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.page-toc-inner {
    max-width: 300px; padding: 22px 24px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.page-toc h4 {
    margin: 0 0 12px; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0 0 2px; }
.toc-list a {
    display: block; padding: 6px 10px; border-left: 2px solid var(--line);
    color: var(--ink-soft); font-size: 15px; line-height: 1.4;
    transition: border-color .2s, color .2s, background .2s;
}
.toc-list a:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; text-decoration: none; }
.toc-list { position: relative; }
.toc-list a.is-active { color: var(--brand-dark); background: #fff; font-weight: 500; }
/* Полоска поверх серой линии слева: переезжает к текущему разделу (site.js) */
.toc-marker {
    position: absolute; left: 0; top: 0; width: 2px; height: 0; opacity: 0;
    background: var(--brand); border-radius: 2px; pointer-events: none;
    transition: top .25s ease, height .25s ease, opacity .2s;
}
/* Длинное оглавление не вылезает за экран: прокручивается внутри себя */
.page-toc-inner { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .toc-marker { transition: none; } }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --------------------------------------------- снимки экрана и заготовки под них */
/* Пока снимка нет, на его месте стоит схема нужного экрана: серые полосы, из которых
   он узнаётся. Это честнее пустой рамки и не выглядит недоделкой (engine/modules/shots.php) */
.shot-figure { margin: 2em 0; }
.shot-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.shot-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shot-figure figcaption b { color: var(--ink-soft); font-weight: 500; }
.shot-soon { white-space: nowrap; }
.shot-soon::before { content: '· '; }

.shot-stub .shot-skel {
    padding: 18px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.shot-skel span, .shot-skel-bar, .shot-skel-field, .shot-skel-btn {
    display: block; border-radius: 4px; background: #ECE4E5;
}
.shot-skel-bar { height: 30px; margin-bottom: 14px; background: #E3D6D8; }

.shot-skel-list .shot-skel-row {
    display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid #e6ecf4;
}
.shot-skel-list .shot-skel-row span { height: 10px; }
.shot-skel-list .shot-skel-row:first-child { border-top: 0; }

.shot-skel-form .shot-skel-fields {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.shot-skel-form .shot-skel-field { height: 34px; background: #fff; border: 1px solid #ECE4E5; }
.shot-skel-form .shot-skel-btn { width: 120px; height: 34px; margin-top: 16px; background: #b9d2ec; }

.shot-skel-doc { background: #fff; }
.shot-skel-doc .shot-skel-lines { display: grid; gap: 11px; }
.shot-skel-doc .shot-skel-lines span { height: 10px; }
.shot-skel-doc .shot-skel-lines span:first-child { height: 16px; background: #E3D6D8; }

/* ------------------------------------------------------------------ документация */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 20px); }
.docs-menu, .docs-menu ul { list-style: none; margin: 0; padding: 0; }
.docs-menu li { margin: 2px 0; }
.docs-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 16px; transition: background .2s, color .2s; }
.docs-menu a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand-dark); }
.docs-menu li.active > a { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.docs-menu ul { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.docs-side-title {
    margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.docs-search { margin-bottom: 20px; }
.docs-search input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.docs-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.docs-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }

/* Поиск с кнопкой — на оглавлении и на странице результатов */
.docs-search-wide { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 36px; }
.docs-search-wide input { flex: 1 1 auto; }
.docs-search-wide button {
    flex: 0 0 auto; padding: 12px 26px; border: 0; border-radius: var(--radius-sm);
    background: var(--brand); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
    transition: background .2s;
}
.docs-search-wide button:hover { background: var(--brand-dark); }

/* Карточки разделов в оглавлении документации */
.docs-cards .doc-card { padding-left: 84px; }
.doc-num {
    position: absolute; left: 26px; top: 28px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 600;
    transition: background .25s, color .25s;
}
.doc-card:hover .doc-num { background: var(--brand); color: #fff; }
.doc-card h3 { margin-bottom: .35em; }
.doc-card h3 a { color: var(--ink); }
.doc-card h3 a:hover { color: var(--brand-dark); text-decoration: none; }
.doc-card-links { list-style: none; margin: 14px 0 0; padding: 0; }
.doc-card-links li { margin-bottom: .3em; }
.doc-card-links a { font-size: 15px; }
.doc-card .more { display: inline-block; margin-top: 16px; font-weight: 500; }

/* Найденные разделы */
.docs-results { display: grid; gap: 14px; }
.docs-found {
    display: block; padding: 22px 26px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.docs-found:hover { border-color: rgba(225, 29, 46, .5); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.docs-found h3 { margin-bottom: .3em; font-size: 19px; color: var(--brand-dark); }
.docs-found p { margin: 0; }

/* «Не нашли ответ» в конце раздела */
.docs-help { margin-top: 42px; padding: 26px 30px; background: var(--bg-soft); border-radius: var(--radius); }
.docs-help h3 { margin-bottom: .3em; }
.docs-help p { margin-bottom: 16px; }

/* ------------------------------------------------------------------ новости */
.news-card { display: block; }
.news-card h3 { margin-bottom: .35em; }
.news-date { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.news-date.light { color: rgba(255, 255, 255, .7); margin-top: 14px; }
/* Автор статьи (authors.php): под заголовком — фото, имя, должность, справа через черту дата; в карточке ленты —
   фото и имя внизу слева, «Читать» справа */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 6px; }
.news-meta .news-date { margin: 0; }
.news-meta .author + .news-date { padding-left: 18px; border-left: 1px solid var(--line); }
.author { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.author-ava { box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(20, 20, 23, .18); }
.author-text { display: flex; flex-direction: column; line-height: 1.25; }
.author-name { color: var(--ink); font-weight: 600; }
.author-pos { color: var(--muted); font-size: 14px; }
.author-sm { gap: 8px; font-size: 14px; }
.author-sm .author-ava { box-shadow: none; }
.author-sm .author-name { color: var(--ink-soft); font-weight: 500; }
a.card > .news-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.news-card-foot .more { margin-top: 0; margin-left: auto; }
/* Карточка ленты с обложкой (2026-10-04): картинка сверху как у «Для кого» на главной (.card-art), но 16:9 —
   как сами обложки статей; низ карточки (автор, «Читати») прижат к низу, чтобы в ряду стоял на одном уровне */
.news-card.card-art { display: flex; }
.news-card.card-art img { aspect-ratio: 16 / 9; }
.card-art-body > .news-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }

/* Постраничный переход: номера страниц частью адреса (/news/page/2/) */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink-soft); font-size: 16px; background: #fff;
    transition: border-color .2s, color .2s, background .2s;
}
.pager a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.pager .pager-gap { border: 0; background: transparent; color: var(--muted); min-width: 24px; padding: 0; }

/* Пусто: раздела ещё нет или в нём пока ничего не опубликовано */
.empty-state {
    max-width: 680px; padding: 40px 44px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.empty-state .icon { width: 56px; height: 56px; }
.empty-state .icon svg { width: 28px; height: 28px; }
.empty-state h2 { font-size: 25px; }
.empty-state h2::before { display: none; }

/* ------------------------------------------------------------------ вопросы */
.faq-group { font-size: 23px; margin: 40px 0 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; padding: 18px 34px 18px 0; font-weight: 500; color: var(--ink);
    list-style: none; position: relative; transition: color .2s;
}
.faq-item summary:hover { color: var(--brand-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; position: absolute; right: 8px; top: 26px;
    width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ отзывы */
.reviews-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 26px; margin: 26px 0; }
.review {
    margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review blockquote { margin: 0 0 16px; padding: 0; border: 0; color: var(--ink-soft); font-size: 17px; }
.review blockquote p { margin: 0 0 .7em; }
.review blockquote p:last-child { margin-bottom: 0; }
/* Длинный отзыв свёрнут до ~7 строк, низ растворяется; «Читать полностью» (site.js) раскрывает */
.review-text.is-clamped { max-height: 11.5em; overflow: hidden; margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.review-more { display: block; margin: 0 0 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px;
    font-weight: 600; color: var(--brand); cursor: pointer; }
.review-more:hover { text-decoration: underline; }
.review-more[hidden] { display: none; }
.review figcaption { color: var(--muted); font-size: 15px; }
.review-stars { color: #f0a500; letter-spacing: 3px; margin-bottom: 12px; }
.review-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; float: right; margin-left: 14px; }

/* ------------------------------------------------------------------ формы */
.feedback-form { max-width: 580px; }
.feedback-form .field { margin-bottom: 18px; }
.feedback-form label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 500; color: var(--ink); }
.feedback-form input, .feedback-form textarea, .feedback-form select {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
/* select браузер рисует ниже поля ввода с теми же отступами — выравниваем по нему */
.feedback-form select { min-height: 56px; }
.feedback-form input:focus, .feedback-form textarea:focus, .feedback-form select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.feedback-form .field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* «Пишете как …» вместо полей имени и почты — у вошедшего они уже есть в аккаунте */
.feedback-as {
    margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm); background: var(--bg-tint); line-height: 1.5;
}
.feedback-as strong { color: var(--ink); }
/* Только кнопка отправки. Правило «любая button внутри формы» красило синим
   и кнопку капчи, и глазок у пароля, и их приходилось перебивать по весу
   (исправлено 2026-09-22 — капча всё равно вылезала синим прямоугольником) */
.feedback-form button[type="submit"] {
    padding: 15px 34px; border: 0; border-radius: var(--radius-sm); background: var(--brand);
    color: #fff; font: inherit; font-weight: 500; cursor: pointer;
    box-shadow: 0 6px 18px rgba(225, 29, 46, .35); transition: background .2s, transform .15s, box-shadow .2s;
}
.feedback-form button[type="submit"]:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(192, 21, 37, .45); }

/* Капча: картинка, кнопка «другой код» и поле ввода в одну строку */
.captcha-field { max-width: 580px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-img {
    display: block; flex: 0 0 auto; width: 190px; height: 60px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-tint);
}
.captcha-refresh {
    flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--muted); cursor: pointer;
    transition: color .2s, border-color .2s, transform .3s;
}
.captcha-refresh:hover { color: var(--brand-dark); border-color: var(--brand); }
.captcha-refresh:active { transform: rotate(-90deg); }
.captcha-refresh[disabled] { opacity: .5; cursor: default; }
.captcha-input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .12em; }
.captcha-note { margin: 10px 0 0; }


/* --------------------------------------------- уведомления и предупреждения */
/* Один вид на все сообщения: цветная полоса слева, мягкий фон, тот же радиус.
   Раньше .notice, .form-error и .form-ok были нарисованы каждый по-своему */
.notice, .form-error, .form-ok {
    margin-bottom: 22px; padding: 14px 18px 14px 16px;
    border-left: 3px solid; border-radius: var(--radius-sm);
    font-size: 16px; line-height: 1.55;
}
.notice { background: #fff8e6; border-color: #d99a06; color: #7d5406; }
.form-error { background: #fdecea; border-color: #d5372a; color: #8a1c13; }
.form-ok { background: #e7f6ec; border-color: #1f9254; color: #1a6b3f; }
.notice-info { background: var(--bg-tint); border-color: var(--brand); color: var(--brand-deep); }

/* ------------------------------------------------------------------ 404 */
.error-page { position: relative; padding: 64px 0 88px; overflow: hidden; }
/* Слева текст и частые разделы, справа шестерни во всю высоту.
   На телефоне всё складывается в одну колонку: текст, шестерни, разделы (см. ниже) */
.error-grid {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: 1.15fr .85fr; gap: 24px 56px; align-items: center;
}
.error-text { grid-column: 1; grid-row: 1; }
.error-links { grid-column: 1; grid-row: 2; }
.error-art { grid-column: 2; grid-row: 1 / span 2; }
.error-text { animation: err-rise .6s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes err-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Фон: два дышащих пятна и точечная сетка */
.error-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.error-blob { position: absolute; border-radius: 50%; background: var(--brand); filter: blur(2px); }
.error-blob-1 { width: 320px; height: 320px; left: -120px; bottom: -60px; opacity: .09; animation: err-drift 15s ease-in-out infinite; }
.error-blob-2 { width: 220px; height: 220px; right: 4%; top: -80px; opacity: .10; animation: err-drift 12s ease-in-out infinite reverse; }
.error-dots {
    position: absolute; right: 6%; bottom: 8%; width: 180px; height: 180px; opacity: .55;
    background-image: radial-gradient(var(--line) 1.6px, transparent 1.6px); background-size: 18px 18px;
}
@keyframes err-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(16px, -20px, 0) scale(1.07); }
}

/* Цифры: градиент и бегущий по ним блик */
.error-code {
    display: block; margin-bottom: 10px;
    font-family: var(--font-head); font-size: 78px; font-weight: 800; line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(100deg, var(--brand-deep) 0%, var(--brand) 35%, #a8cdf0 48%, var(--brand) 62%, var(--brand-deep) 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: err-shine 5s ease-in-out infinite;
}
@keyframes err-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.error-page .lead { max-width: 30em; }
.error-links { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.error-links h4 {
    margin-bottom: 14px; font-size: 13px; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.error-links ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.error-links li { margin: 0; }
/* Частые разделы — плитки: заметнее обычных ссылок и не сливаются в строку */
.error-links a {
    display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--brand-dark); text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.error-links a:hover {
    border-color: var(--brand); color: var(--brand-deep);
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(192, 21, 37, .15);
}

/* Пара шестерён в зацеплении: 18 и 12 зубьев, общий модуль, межосевое расстояние —
   сумма делительных радиусов. Поэтому зубья идут во впадины, а не сквозь металл
   (зазор 0,125 модуля — зуб сделан вдвое ниже обычного). Скорости обратно пропорциональны числу зубьев:
   18 с и 12 с, в разные стороны. Контуры нарисованы генератором, см. site.md, «Страница 404 и сообщения» */
.error-art { display: flex; justify-content: flex-end; }
.error-gears { position: relative; width: 100%; max-width: 320px; color: var(--brand); }
.error-gears .gears-svg { display: block; width: 100%; }
/* Узкий экран: колонки складываются — текст во всю ширину и больше не жмётся,
   шестерни уезжают вниз, под кнопки (просьба владельца 2026-09-23: рядом
   с текстом им было тесно) */
@media (max-width: 900px) {
    .error-page { padding: 40px 0 64px; }
    .error-grid { grid-template-columns: 1fr; gap: 24px; }
    .error-text, .error-links, .error-art { grid-column: 1; grid-row: auto; }
    .error-text { order: 1; }
    .error-art { order: 2; justify-content: center; }
    .error-links { order: 3; margin-top: 4px; padding-top: 22px; }
    .error-gears { max-width: 250px; }
}
.gear { transform-box: view-box; transform-origin: var(--cx) var(--cy); }
.error-gears .gear-big { opacity: .5; animation: err-spin 18s linear infinite; }
.error-gears .gear-small { color: var(--brand-deep); opacity: .4; animation: err-spin 12s linear infinite reverse; }
@keyframes err-spin { to { transform: rotate(360deg); } }
/* Кольца расходятся от всей пары, а не от одной шестерни (просьба владельца 2026-09-23):
   круг описан вокруг обеих — центр в середине картинки, поперечник чуть больше её ширины */
.error-ring {
    position: absolute; left: 50%; top: 50%; width: 104%; padding-bottom: 104%;
    margin: -52% 0 0 -52%; border-radius: 50%;
    border: 1.5px solid rgba(225, 29, 46, .3); animation: err-ripple 3.4s ease-out infinite;
}
.error-ring-2 { animation-delay: 1.7s; }
@keyframes err-ripple {
    0%   { transform: scale(.82); opacity: .8; }
    100% { transform: scale(1.25); opacity: 0; }
}
.impersonation-banner { position: relative; z-index: 100; background: #fff4de; color: #7a5b00; padding: 10px 0; font-size: 15px; }

/* Появление блоков при прокрутке (включает assets/site/site.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-art img { animation: none; }
    .logo::before, .card-art img, .shot img { transition: none; }
    /* 404: блик по цифрам, шестерёнки, кольца и пятна — всё замирает */
    .error-code, .error-gears .gear, .error-ring, .error-blob, .error-text { animation: none; }
    .error-code { background-position: 0 0; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------- вход, регистрация, кабинет */
/* Узкая карточка под формы входа и регистрации: поля во всю ширину экрана
   выглядят брошенными, а длинную строку в форме заполнять неудобно */
.auth-card {
    max-width: 520px; padding: 34px 36px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.auth-card .feedback-form { max-width: none; }
/* На всю ширину — только основная кнопка формы. Без уточнения правило ловило и
   кнопку «другой код» у капчи: она растягивалась синим блоком через всю строку */
.auth-card .feedback-form > button[type="submit"] { width: 100%; }
.auth-links { margin: 20px 0 0; color: var(--muted); }
.auth-links span { margin: 0 8px; opacity: .6; }

/* Галочка: «запомнить меня» на входе, подписка на рассылку в кабинете.
   Квадратик не прыгает по вертикали: выровнен по первой строке текста */
/* .feedback-form label (display: block) и .feedback-form input (отступы полей) точнее, чем .checkbox, — внутри формы
   галочка вставала в строку как буква и торчала выше текста (кабинет, владелец 2026-10-01). Поэтому и с формой */
.checkbox, .feedback-form label.checkbox {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px;
    font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ink-soft); cursor: pointer;
}
/* Текст и значок «i» — одним куском: значок идёт за последним словом, а не отдельной колонкой справа */
.checkbox > span { min-width: 0; }
.checkbox .sc-hint { vertical-align: -3px; }
.checkbox input, .feedback-form .checkbox input {
    flex: 0 0 auto; width: 18px; height: 18px; padding: 0; margin: 3px 0 0; accent-color: var(--brand);
}

/* Переключатель страниц кабинета; выход стоит справа и уходит POST-ом */
.cab-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.cab-tabs > a { padding: 12px 16px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.cab-tabs > a:hover { color: var(--brand-dark); text-decoration: none; }
.cab-tabs > a.active { color: var(--ink); border-bottom-color: var(--brand); }
.cab-logout { margin: 0 0 0 auto; }
.cab-logout button {
    padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.cab-logout button:hover { color: #8a1c13; border-color: #d5372a; }

/* Аватар пользователя (Avatar::html): круг с фото или первой буквой. Размер — в разметке */
.site-ava { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.site-ava-letter { background: #e6effc; color: var(--brand-dark); font-weight: 700; }
.nav-cabinet { display: inline-flex; align-items: center; gap: 7px; }
/* Фото профиля в кабинете: круг слева, кнопки справа */
.cab-avatar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cab-avatar-pic .site-ava { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
/* Значки на аватаре, как в zugferd: белые кружки с тенью — убрать (сверху) и изменить (снизу) */
.cab-avatar-wrap { position: relative; display: inline-block; }
.cab-avatar-btn {
    position: absolute; right: 2px; display: grid; place-items: center;
    width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: var(--muted); box-shadow: 0 2px 8px rgba(20, 10, 12, .22);
    cursor: pointer; transition: color .15s, transform .15s;
}
.cab-avatar-btn:hover { transform: scale(1.08); }
.cab-avatar-del { top: 2px; }
.cab-avatar-del:hover { color: #c0392b; }
.cab-avatar-edit { bottom: 2px; }
.cab-avatar-edit:hover { color: var(--brand); }
.cab-avatar-btn[hidden] { display: none; }

/* Услуги: карточка на каждый домен, слева цветная полоса по состоянию оплаты */
.cab-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-bottom: 44px; }
.cab-empty { margin-bottom: 44px; }
.cab-service {
    padding: 24px 26px; background: #fff;
    border: 1px solid var(--line); border-left: 3px solid var(--muted);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.cab-status-active { border-left-color: #1f9254; }
.cab-status-grace { border-left-color: #d99a06; }
.cab-status-expired, .cab-status-suspended { border-left-color: #d5372a; }
.cab-status-free { border-left-color: var(--brand); }
.cab-service-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 16px;
}
.cab-domain { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.cab-badge {
    padding: 4px 11px; border-radius: 20px; background: var(--bg-tint);
    color: var(--brand-deep); font-size: 13px; font-weight: 600;
}
.cab-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 15px; }
.cab-facts dt { color: var(--muted); }
.cab-facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.cab-note { margin: 0 0 14px; color: var(--muted); }

/* Статистика оплат: сколько всего, сколько платежей, первый и последний */
.cab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 26px; }
.cab-stat { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.cab-stat-title { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.cab-stat-value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.cab-total + .cab-total { margin-left: 10px; }

/* Таблица оплат. На телефоне она прокручивается вбок, а не ломает страницу */
.cab-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.cab-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cab-table th, .cab-table td { padding: 12px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.cab-table th { color: var(--muted); font-size: 14px; font-weight: 600; }
.cab-table tbody tr:hover { background: var(--bg-soft); }
.cab-sum { font-weight: 600; color: var(--ink); }
/* Суммы — по правому краю, вместе с заголовком колонки (владелец 2026-09-27) */
.cab-table .cab-sum, .cab-table th.cab-sum { text-align: right; }
/* Документы в строке оплаты (владелец 2026-09-27): значок PDF и название; подписан КЕП — зелёный; без подписи — серый,
   рядом «Запросити підпис» или «підпис запитано …», всё подписано — «Підписано» (2026-10-03). Щелчок — окно документа,
   подпись .p7s скачивается в нём */
.cab-docs { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.cab-doc { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; }
.cab-doc a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; color: var(--ink-soft); text-decoration: none; }
.cab-doc a:hover { color: var(--brand-dark); }
.cab-doc svg { flex-shrink: 0; }
.cab-doc-wait a { color: var(--muted); }
.cab-doc-ok { border-color: #b7e4c7; background: #f0faf3; }
.cab-doc-ok a { color: #1a7f45; }
.cab-doc-ok .cab-doc-sig { padding-left: 8px; border-left: 1px solid #b7e4c7; font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.cab-sign-req { padding: 4px 10px; border: 1px dashed var(--brand); border-radius: 999px; background: none; color: var(--brand-dark); font: inherit; font-size: 13px; cursor: pointer; }
.cab-sign-req:hover { background: var(--bg-tint); }
.cab-sign-req[disabled] { opacity: .6; cursor: default; }
.cab-doc-note { color: var(--muted); font-size: 13px; }
.cab-doc-signed { color: #1a7f45; font-weight: 600; }
/* Окно документа: PDF внутри, внизу — скачать, подпись, закрыть (site.js, «окно документа») */
.cab-modal { width: min(900px, calc(100vw - 32px)); height: min(92vh, 1100px); max-width: none; max-height: none; padding: 0; border: 0;
    border-radius: var(--radius); box-shadow: 0 24px 64px rgba(10, 20, 40, .35); overflow: hidden; }
.cab-modal[open] { display: flex; flex-direction: column; }
.cab-modal::backdrop { background: rgba(10, 20, 40, .55); }
.cab-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cab-modal-head h3 { margin: 0; font-size: 17px; }
.cab-modal-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.cab-modal-x:hover { color: var(--ink); }
.cab-modal-frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--bg-soft); }
.cab-modal-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cab-modal-foot [data-close] { margin-left: auto; }
.cab-modal-compact { height: fit-content; }
.cab-modal [hidden] { display: none !important; }
.cab-modal-compact .cab-modal-foot { border-top: 0; }
@media (max-width: 640px) {
    .cab-modal-foot .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
    .cab-modal-foot [data-close] { margin-left: 0; }
}
/* Отбор оплат по датам и страницы (site.js) */
.cab-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.cab-filter label { display: inline-flex; align-items: center; gap: 8px; }
.cab-filter input[type=date] { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.cab-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -4px 0 18px; }
/* DataTables в кабинете — в виде сайта: поля и кнопки как у формы, строки как у .cab-table */
.cab-table-wrap .dt-container { font-size: 14px; color: var(--muted); }
.cab-table-wrap .dt-layout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.cab-table-wrap .dt-layout-row.dt-layout-table { display: block; margin: 0; overflow-x: auto; }
.cab-table-wrap .dt-layout-row:last-child { margin: 12px 0 0; }
.cab-table-wrap .dt-layout-cell { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 0; }
.cab-table-wrap .dt-layout-start { margin-right: auto; }
.cab-table-wrap .dt-layout-end { margin-left: auto; }
.cab-table-wrap .dt-layout-full { width: 100%; }
.cab-table-wrap .cab-filter { margin: 0; }
.cab-table-wrap .dt-search input, .cab-table-wrap .dt-length select {
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; margin: 0;
}
.cab-table-wrap .dt-search input { min-width: 200px; }
.cab-table-wrap .dt-length label { margin-left: 8px; }
.cab-table-wrap .dt-paging { display: flex; gap: 6px; }
.cab-table-wrap .dt-paging .dt-paging-button {
    min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line) !important; border-radius: 8px;
    background: #fff !important; color: var(--ink) !important; font: inherit; cursor: pointer;
}
.cab-table-wrap .dt-paging .dt-paging-button:hover:not(.disabled) { border-color: var(--brand) !important; color: var(--brand-dark) !important; }
.cab-table-wrap .dt-paging .dt-paging-button.current { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.cab-table-wrap .dt-paging .dt-paging-button.disabled { opacity: .45; cursor: default; }
.cab-table.dataTable { width: 100% !important; border-collapse: collapse; }
.cab-table.dataTable thead th, .cab-table.dataTable tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cab-table.dataTable thead th { border-bottom-color: var(--line); }
.cab-table.dataTable > tbody > tr:hover > * { box-shadow: none; background: var(--bg-soft); }
.cab-table.dataTable th.dt-type-numeric, .cab-table.dataTable td.dt-type-numeric { text-align: right; }
.cab-table.dataTable th.dt-type-date, .cab-table.dataTable td.dt-type-date { text-align: left; }
/* Позиции счёта под номером в «Документах» кабинета */
.cab-items { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Профиль: данные, рассылка и пароль — три отдельные формы рядом */
/* Профиль: слева короткое (фото, рассылки), справа формы; поля — по два в ряд */
.cab-profile { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 26px; align-items: start; }
.cab-side, .cab-main { display: grid; gap: 26px; min-width: 0; }
.cab-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.cab-panel .field-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
/* На узком экране одна колонка, и главное — данные — идёт сразу после фото */
@media (max-width: 900px) {
    .cab-profile { grid-template-columns: 1fr; }
    .cab-side, .cab-main { display: contents; }
    .cab-avatar-panel { order: 1; }
    .cab-data-panel { order: 2; }
    .cab-pass-panel { order: 3; }
    .cab-mail-panel { order: 4; }
}
@media (max-width: 640px) {
    .cab-fields { grid-template-columns: 1fr; }
}
.cab-panel { padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cab-panel h2 { font-size: 22px; }
.cab-panel .feedback-form { max-width: none; }
.cab-panel .feedback-form input[disabled] { background: var(--bg-soft); color: var(--muted); }

/* Вход и кабинет в шапке. Отделены чертой, как переключатель языков: это не
   разделы сайта. Кнопка «Демо» остаётся правее и остаётся единственной синей */
.nav-auth { display: flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nav-auth a { color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-auth a:hover { color: #fff; text-decoration: none; }
.nav-auth form { margin: 0; }
.nav-auth button {
    padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .5);
    font: inherit; font-size: 14px; cursor: pointer; transition: color .2s;
}
.nav-auth button:hover { color: #fff; }

/* Вошедший: имя с аватаром, под ним список — кабинет, админка, выход (владелец 2026-09-24) */
.user-dd { position: relative; }
.user-dd summary {
    display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; user-select: none;
    color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s;
}
.user-dd summary::-webkit-details-marker { display: none; }
.user-dd summary::after {
    content: ''; width: 6px; height: 6px; margin: -3px 0 0 1px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
}
.user-dd summary:hover, .user-dd[open] summary { color: #fff; }
.user-dd[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.user-dd-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.user-dd-menu {
    position: absolute; right: 0; top: calc(100% + 12px); z-index: 20;
    display: flex; flex-direction: column; gap: 2px; min-width: 170px;
    padding: 8px; border-radius: var(--radius-sm);
    background: var(--night-mid); box-shadow: 0 16px 34px rgba(10, 10, 11, .45);
}
.user-dd-menu a, .user-dd-menu button {
    display: block; width: 100%; padding: 8px 12px; border-radius: 6px; text-align: left;
    color: rgba(255, 255, 255, .78); font-size: 14px;
}
.user-dd-menu a:hover, .user-dd-menu button:hover { color: #fff; background: rgba(255, 255, 255, .08); }



/* ------------------------------------------- вход: модалка и страницы аккаунта */
/* Сделано по образцу zugferd (решение владельца 2026-09-22): вход — карточка поверх
   размытой страницы. Модалка открывается без скриптов, через :target, поэтому
   работает и при выключенном JS; скрипт добавляет только закрытие по Esc */
.auth-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.auth-modal:target { display: grid; place-items: center; padding: 20px; }
.auth-modal-back {
    position: absolute; inset: 0; background: rgba(10, 10, 11, .5);
    animation: auth-fade .2s ease-out;
}
/* Размытие — сама суть «блюрной страницы»: под карточкой видно сайт, но читать его
   нельзя, взгляд остаётся на форме. Где backdrop-filter не поддержан (старый Safari),
   остаётся просто затемнение — так же сделано в zugferd */
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
    .auth-modal-back {
        background: rgba(10, 10, 11, .45);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
}
.auth-modal-card {
    position: relative; width: 100%; max-width: 440px;
    max-height: calc(100vh - 40px); overflow-y: auto;
    padding: 32px 34px; background: #fff; border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(10, 10, 11, .45);
    animation: auth-rise .22s ease-out;
}
.auth-modal-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-modal-close {
    position: absolute; top: 10px; right: 14px;
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; color: var(--muted); font-size: 26px; line-height: 1;
}
.auth-modal-close:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
@keyframes auth-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes auth-rise { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }

/* Страницы входа, регистрации и пароля: та же карточка, только страницей.
   Фон — картинка витрины, размытая и притемнённая: страница за карточкой узнаваема,
   но не отвлекает */
.auth-stage { position: relative; overflow: hidden; padding: 56px 20px 72px; display: grid; place-items: start center; }
.auth-stage-bg {
    position: absolute; inset: -30px;
    background: linear-gradient(180deg, rgba(20, 10, 12, .55), rgba(10, 10, 11, .75)),
        url(/assets/img/art/hero.webp) no-repeat center / cover;
    filter: blur(18px); transform: scale(1.06);
}
.auth-stage > .auth-card, .auth-stage > .auth-split { position: relative; z-index: 1; }
/* Размытый фон — на всю высоту от шапки до подвала, без белых полос сверху и снизу */
#main:has(> .auth-stage) { display: flex; flex-direction: column; }
#main > .auth-stage { flex: 1 0 auto; }
#main:has(> .auth-stage) ~ .site-footer { margin-top: 0; }
.auth-card-lifted { box-shadow: 0 30px 80px rgba(10, 10, 11, .45); }
.auth-stage h1 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 22px; }

/* Регистрация: слева форма, справа короткий рассказ — как в zugferd */
.auth-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    width: 100%; max-width: 1000px;
    background: #fff; border-radius: var(--radius); overflow: hidden;
}
.auth-split-form { padding: 34px 38px; }
.auth-split-promo {
    padding: 34px 38px; color: rgba(255, 255, 255, .82);
    background: linear-gradient(160deg, var(--night-blue), var(--night-mid) 60%, var(--night));
}
.auth-split-promo h2 { color: #fff; font-size: 22px; }
.auth-promo-list { list-style: none; margin: 0; padding: 0; }
.auth-promo-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.auth-promo-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.auth-promo-list strong { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.auth-promo-list span { font-size: 15px; line-height: 1.5; }

/* «или» между паролем и кнопкой Google */
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line); }

/* Кнопка «Войти через Google»: белая с рамкой — так её рисует сам Google
   в своих рекомендациях, и она не спорит с синей основной кнопкой */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px 18px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-weight: 500;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.btn-google:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }

/* «Забыли пароль?» — прямо в подписи к полю, как в zugferd */
.feedback-form label .field-link { float: right; font-weight: 400; font-size: 14px; }

/* Пароль с глазком */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.feedback-form .pass-eye, .pass-eye {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
    border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
    box-shadow: none;
}
.feedback-form .pass-eye:hover, .pass-eye:hover {
    color: var(--brand-dark); background: var(--bg-soft); transform: translateY(-50%); box-shadow: none;
}

/* ------------------------------------------------------------------ планшет и телефон */
@media (max-width: 1100px) {
    /* Оглавление страницы — помощник, а не содержание: на узком экране убираем */
    .page-layout { display: block; max-width: 800px; }
    .page-toc { display: none; }
}

@media (max-width: 980px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-side { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-search-wide { margin-bottom: 28px; }
}

/* Меню убирается под кнопку раньше телефона: горизонтальной шапке нужно место, и без
   него она разъезжается — языки обрезаются, а кнопка «Демо» выезжает за тёмный фон
   шапки на белое поле. Замечание владельца: «от 761 до 1080» — этот диапазон и был сломан.

   Порог пересчитан 2026-09-21, когда в шапку добавились «Вход» и «Регистрация». Они
   просят ещё 120 точек; взамен языки переехали в выпадающий список (освободил 140),
   промежутки поджаты с 26 до 20 точек, а шрифт ссылок меню уменьшен с 16 до 15
   (в раскрытом меню телефона он остаётся 16 — там места хватает). Мерено в браузере
   во всех четырёх языках, для гостя и для вошедшего: самый широкий вариант — гость
   на русском, ему нужно 1075. Отсюда 1100 с запасом — почти как было до кабинета. */
@media (max-width: 1100px) {
    .nav-button { display: flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: var(--header-h);
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        margin: 0; padding: 14px 20px 22px;
        background: var(--night-mid); box-shadow: 0 16px 30px rgba(10, 10, 11, .4);
    }
    .nav > a:not(.btn) { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .nav-auth a, .nav-auth button { font-size: 16px; }
    .nav .btn { margin-top: 14px; align-self: flex-start; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .langs { margin-top: 14px; padding-left: 0; border-left: 0; }
    /* В раскрытом меню языки не всплывают поверх пунктов, а раскрываются строкой
       под кнопкой: выпадающий список внутри выпадающего меню читается плохо */
    .lang-dd { margin-top: 14px; align-self: flex-start; }
    .lang-dd summary { display: inline-flex; }
    .lang-dd .langs {
        position: static; flex-direction: row; min-width: 0;
        margin-top: 10px; padding: 0; background: none; box-shadow: none;
    }
    /* Вход, регистрация и кабинет в раскрытом меню — в столбик, без черты слева */
    .nav-auth { margin-top: 14px; padding-left: 0; border-left: 0; flex-wrap: wrap; gap: 18px; }
    /* Список под именем в раскрытом меню — строкой под ним, не всплывает */
    .user-dd-menu { position: static; min-width: 0; margin-top: 10px; padding: 0; background: none; box-shadow: none; }
    .user-dd-menu a, .user-dd-menu button { padding: 8px 0; font-size: 16px; }
    .user-dd-menu a:hover, .user-dd-menu button:hover { background: none; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding-block: 52px; }
    .hero { padding: 40px 0 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-facts { grid-template-columns: 1fr; gap: 18px; }
    .hero-fact { padding-left: 0; border-left: 0; }
    .cta { grid-template-columns: 1fr; gap: 26px; padding: 32px 26px; }
    .empty-state { padding: 28px 24px; }
    .logo span { font-size: 18px; }

    .auth-card { padding: 26px 22px; }
    .auth-stage { padding: 28px 14px 40px; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-split-promo { display: none; }
    .auth-split-form { padding: 26px 22px; }
    .auth-modal-card { padding: 26px 22px; }
    .cab-panel { padding: 22px 20px; }
    .cab-tabs > a { padding: 11px 12px; }
    .cab-logout { margin: 0; }

    .docs-search-wide { flex-wrap: wrap; }
    .docs-search-wide button { width: 100%; }
    .docs-cards .doc-card { padding-left: 26px; }
    .doc-num { position: static; margin-bottom: 14px; }

    /* Таблицы в тексте (реквизиты, сроки хранения, cookie) раздвигали страницу:
       при 390 px она уезжала в сторону на 14–56 px. Теперь по горизонтали
       прокручивается сама таблица, а поля в ячейках мельче. */
    .prose table { display: block; overflow-x: auto; }
    .prose th, .prose td { padding: 10px 12px; }
    .prose td { overflow-wrap: anywhere; }
}

@media (max-width: 460px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn, .btn-row .btn { width: 100%; }
    .step { padding-left: 0; padding-top: 66px; }
    .step::before { top: 0; }
}

/* ------------------------------------------------------------------
   Оплата счёта /pay/{token}/ (engine/modules/pay.php)
   ------------------------------------------------------------------ */
/* Страница оплаты берёт раскладку регистрации (.auth-split): слева дело, справа тёмная
   панель с объяснением. Раньше тут была узкая карточка у левого края и пустота справа
   (заметил владелец 2026-09-23). Отличия от регистрации: рамка и тень поспокойнее —
   страница светлая, а не на тёмной подложке; и колонки поуже, счёт короче формы. */
/* Во всю ширину полосы контента (у регистрации потолок 1000 точек — здесь он снят
   по просьбе владельца 2026-09-23) */
.pay-split {
    max-width: none; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
/* Счёт оплачен или отменён — панели нет, и растягивать карточку не на что */
.pay-split:not(:has(.pay-how)) { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
.pay-split .auth-split-form { padding: 30px 32px; }
.pay-split .pay-table { margin-bottom: 24px; }
.pay-back { margin: 18px 0 0; }
.pay-how { padding: 30px 32px; }
.pay-how h2 { margin: 0 0 22px; }
.pay-how-note {
    margin: 26px 0 0; padding: 14px 16px; border-radius: 10px;
    background: rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.55;
}
@media (max-width: 900px) {
    .pay-split, .pay-split:not(:has(.pay-how)) { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
    .pay-split .auth-split-form, .pay-how { padding: 24px 20px; }
    /* На регистрации правая панель на телефоне скрывается — там это реклама. Здесь
       наоборот: человек платит с телефона, и объяснение ему нужнее всего. Оставляем. */
    .pay-how { display: block; }
}
.pay-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.pay-table th, .pay-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pay-table th { width: 46%; padding-right: 16px; color: var(--muted); font-weight: 500; text-align: left; }
.pay-table tr:last-child th, .pay-table tr:last-child td { border-bottom: 0; }
.pay-sum { font-size: 22px; color: var(--ink); }
/* Позиции счёта (invoice_items): строка на позицию, количество и цена — серым */
.pay-item { line-height: 1.45; }
.pay-item + .pay-item { margin-top: 6px; }
.pay-form { margin: 0 0 14px; }
.pay-form .btn { width: 100%; }
@media (max-width: 560px) {
    .pay-box { padding: 20px 18px; }
    .pay-table th { width: auto; }
}
.nav-ava { display: inline-flex; }

/* Снимок с телефона ({shot:…|…|phone}): узкий, по центру, в рамке телефона */
.shot-figure.shot-phone { max-width: 320px; margin-left: auto; margin-right: auto; text-align: center; }
.shot-figure.shot-phone img { border: 10px solid #111827; border-radius: 34px; box-shadow: var(--shadow-lg); }
.shot-figure.shot-phone figcaption { text-align: center; }

/* Бланк для скачивания ({blank:…}, engine/modules/blanks.php): превью листа слева, кнопка справа */
.blank-card {
    display: flex; gap: 24px; align-items: center; margin: 2em 0; padding: 20px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.blank-preview { flex: 0 0 170px; display: block; }
.blank-preview img {
    display: block; width: 100%; height: auto; background: #fff;
    border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
    transition: box-shadow .2s;
}
.blank-preview:hover img { box-shadow: var(--shadow-lg); }
.blank-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.blank-title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.blank-meta { font-size: 14px; color: var(--muted); }
.blank-other { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
    .blank-card { flex-direction: column; align-items: stretch; text-align: left; }
    .blank-preview { flex-basis: auto; max-width: 220px; }
}

/* Главная: светлая и тёмная тема программы — один экран в двух темах, внахлёст */
.dark-band { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }
.dark-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.dark-shots { position: relative; padding: 0 0 18% 0; }
.dark-shots img { display: block; width: 82%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dark-shot-dark { position: absolute; right: 0; bottom: 0; box-shadow: var(--shadow-art) !important; }
@media (max-width: 900px) {
    .dark-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Согласие на аналитику (assets/site/consent.js): плашка внизу, пока посетитель не выбрал.
   Показывается, только если в настройках задан GA4 */
.consent { position: fixed; left: 24px; bottom: 24px; z-index: 1000; max-width: 460px;
           padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
           box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 600px) {
    .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .consent-actions .btn { flex: 1; }
}

/* Подписка на новости (engine/modules/subscribe_form.php): под статьёй и в ленте */
.subscribe { margin: 48px 0 8px; padding: 28px 28px 22px; background: var(--bg-tint); border: 1px solid var(--line);
             border-radius: var(--radius); max-width: var(--col-text); }
.subscribe h3 { margin: 0 0 6px; }
.subscribe > p { margin: 0 0 14px; color: var(--ink-soft); }
.subscribe .form-ok, .subscribe .form-error { margin-bottom: 14px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 13px 16px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; background: #fff; }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.subscribe-form .field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.subscribe .subscribe-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .subscribe { padding: 22px 18px 18px; } .subscribe-form .btn { flex: 1 1 100%; } }
/* Подпись только для экранного диктора: поле понятно глазами по placeholder */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Значок «войти как» в полосе «Вы смотрите сайт как …» (functions.php, icon_impersonate) */
.sc-icon-imp { display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* Пояснение значком (site_hint_icon, метка {hint:ключ}): «i», текст — при наведении, фокусе
   или касании на телефоне (класс is-open ставит site.js). Подсказка открывается вправо от
   значка; упрётся в правый край экрана — site.js ставит is-left и она открывается влево. */
.sc-hint { position: relative; display: inline-flex; align-items: center; margin-left: 6px; color: var(--muted); cursor: help; vertical-align: middle; line-height: 1; font-weight: 400; }
.sc-hint svg { display: block; }
.sc-hint:hover, .sc-hint:focus-visible, .sc-hint.is-open { color: var(--brand-dark); outline: none; }
.sc-hint::after {
    content: attr(data-sc-tip); position: absolute; bottom: calc(100% + 8px); left: -8px; z-index: 60;
    width: max-content; max-width: min(300px, calc(100vw - 32px));
    padding: 8px 11px; border-radius: var(--radius-sm); background: var(--ink); color: #fff;
    font-size: 14px; line-height: 1.45; font-weight: 400; letter-spacing: 0; text-align: left; white-space: normal; text-transform: none;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s;
}
.sc-hint.is-left::after { left: auto; right: -8px; }
.sc-hint:hover::after, .sc-hint:focus-visible::after, .sc-hint.is-open::after { opacity: 1; visibility: visible; }

/* Форма обратной связи без перезагрузки (site.js): неверное поле и подпись под ним */
.feedback-form .is-invalid { border-color: #d5372a !important; box-shadow: 0 0 0 3px rgba(213, 55, 42, .12) !important; }
.feedback-form .field-error { margin-top: 6px; font-size: 14px; color: #b3261e; }

/* Окно-сообщение в духе SweetAlert (site.js → scAlert) */
.sc-alert {
    position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px;
    background: rgba(10, 10, 11, .55); animation: auth-fade .2s ease-out;
}
.sc-alert-card {
    width: 100%; max-width: 420px; padding: 34px 30px 28px; text-align: center;
    background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(10, 10, 11, .45);
    animation: auth-rise .22s ease-out;
}
.sc-alert-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center;
    border-radius: 50%; color: #1f9d55; background: #e6f6ec; box-shadow: 0 0 0 8px #f2fbf5;
}
.sc-alert-card h3 { margin: 0 0 8px; font-size: 24px; color: var(--ink); }
.sc-alert-card p { margin: 0 0 24px; color: var(--muted); }
.sc-alert-card button {
    min-width: 140px; padding: 12px 28px; border: 0; border-radius: 10px; cursor: pointer;
    font: inherit; font-weight: 600; color: #fff; background: var(--brand);
}
.sc-alert-card button:hover { background: var(--brand-dark); }

/* Значок сортировки DataTables — вплотную к названию колонки (у сумм — слева от слова, колонка по правому краю) */
.cab-table.dataTable thead th div.dt-column-header { justify-content: flex-start; gap: 6px; }
.cab-table.dataTable thead th div.dt-column-header .dt-column-title { flex-grow: 0; }
.cab-table.dataTable thead th.dt-type-date div.dt-column-header { flex-direction: row; }
/* Оплаченный период — по правому краю, как суммы (владелец 2026-09-27); значок сортировки слева от названия */
.cab-table .cab-period, .cab-table th.cab-period,
.cab-table.dataTable th.cab-period, .cab-table.dataTable td.cab-period { text-align: right; }
.cab-table.dataTable thead th.cab-period div.dt-column-header { flex-direction: row-reverse; }
/* Без рамок у заголовков (владелец 2026-09-27: «рамки уродливые убери»): DataTables обводит заголовок при
   наведении, а браузер — значок сортировки после щелчка. Вместо рамки — цвет названия колонки */
.cab-table.dataTable thead > tr > th:hover, .cab-table.dataTable thead > tr > th:focus,
.cab-table.dataTable thead > tr > th:focus-visible, .cab-table.dataTable thead .dt-column-order:focus,
.cab-table.dataTable thead .dt-column-order:focus-visible { outline: none !important; box-shadow: none !important; }
/* У DataTables правило обводки при наведении сильнее по селектору (table.dataTable thead>tr>th.dt-orderable-asc:hover) — поэтому !important */
.cab-table.dataTable thead > tr > th.dt-orderable-asc:hover .dt-column-title,
.cab-table.dataTable thead > tr > th.dt-orderable-desc:hover .dt-column-title,
.cab-table.dataTable thead > tr > th:focus-visible .dt-column-title { color: var(--brand-dark); }
.cab-table.dataTable thead > tr > th.dt-orderable-asc, .cab-table.dataTable thead > tr > th.dt-orderable-desc { cursor: pointer; }
/* Полосы в таблицах кабинета (владелец 2026-09-27: «таблицу стриппед сделаем»): нечётные строки — фон карточек,
   строка под мышью — голубоватая, чтобы её было видно и на полосе. DataTables держит в разметке только строки
   текущей страницы, поэтому :nth-child считает ровно видимые */
.cab-table tbody tr:nth-child(odd):not([hidden]) > td { background: var(--bg-soft); }
.cab-table tbody tr:hover > td, .cab-table.dataTable > tbody > tr:hover > * { background: var(--bg-tint); }

/* ------------------------------------------------------------------
   Анкета подключения /form/{token}/ (engine/modules/form.php, layout/pages/form.tpl).
   Шаги — карточками с номером; страна и язык — плитки (у страны круглый флажок Metronic, ClientForms::flag),
   оплата — три карточки; реквизиты появляются только при оплате переводом.
   Селекторы с .cf-form: правила .feedback-form label/input точнее простых классов
   ------------------------------------------------------------------ */
.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cf-form, .cf-form.feedback-form { min-width: 0; max-width: none; }
.cf-how { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px 30px 10px; border-radius: var(--radius); color: rgba(255, 255, 255, .82);
    background: linear-gradient(160deg, var(--night-blue), var(--night-mid) 60%, var(--night)); }
.cf-how h2 { margin: 0 0 22px; color: #fff; font-size: 22px; }
.cf-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; }
.cf-errors { margin: 0; padding-left: 18px; }
.cf-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 18px; background: #fff; min-width: 0; }
.cf-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--ink); }
.cf-step legend + * { clear: both; }
.cf-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-form label.cf-chip, .cf-form label.cf-card { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.cf-form .cf-chip input, .cf-form .cf-card input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; color: var(--ink); transition: border-color .15s, background .15s; }
.cf-chip:hover span { border-color: var(--brand); }
.cf-chip input:checked + span, .cf-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.cf-chip input:focus-visible + span, .cf-card input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cf-flag { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(16, 24, 40, .08); }
.cf-flag-other { box-shadow: none; color: var(--muted); }
.cf-cards { display: grid; gap: 10px; }
.cf-card span { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s; }
.cf-card:hover span { border-color: var(--brand); }
.cf-card strong { font-size: 16px; color: var(--ink); }
.cf-card small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cf-note { margin: 0 0 14px; color: var(--muted); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cf-wide { grid-column: 1 / -1; }
.cf-field { margin-bottom: 14px; min-width: 0; }
.cf-domain { display: flex; }
.cf-form .cf-domain input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cf-domain span { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.cf-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cf-hint.is-ok { color: #1f7a4d; }
.cf-hint.is-bad { color: #b3261e; }
.cf-done { max-width: 640px; }
@media (max-width: 960px) {
    .cf-layout { grid-template-columns: minmax(0, 1fr); }
    .cf-how { position: static; }
}
@media (max-width: 640px) {
    .cf-step { padding: 18px 16px; }
    .cf-grid { grid-template-columns: 1fr; }
    .cf-domain span { padding: 0 10px; font-size: 14px; }
}

/* ==================================================================
   Parser: главная — лента лотов в первом экране, тёмная полоса с сообщением бота
   (2026-10-03). Лоты и сообщение в макетах — пример, после сборщика — из базы
   ================================================================== */
.hero-radar .hero-art { overflow: visible; box-shadow: none; border-radius: 0; }
.hero-radar .hero-art::after { display: none; }
.radar-feed {
    position: relative; background: var(--night); color: #fff;
    border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-art);
    background-image:
        radial-gradient(420px 260px at 100% 0%, rgba(225, 29, 46, .35), rgba(225, 29, 46, 0) 70%),
        repeating-radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 46px);
}
.radar-feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 15px; }
.radar-feed-head b { font-family: var(--font-head); font-size: 17px; }
.radar-feed-filter { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .6); text-align: right; }
.radar-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.radar-dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
    animation: radar-ping 1.8s ease-out infinite;
}
@keyframes radar-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.lot {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px;
    transition: transform .2s, background .2s;
}
.lot:hover { transform: translateX(-4px); background: rgba(255, 255, 255, .09); }
.lot-new { border-color: rgba(225, 29, 46, .55); box-shadow: 0 0 0 3px rgba(225, 29, 46, .14); animation: lot-in .7s ease-out both .3s; }
@keyframes lot-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.lot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lot-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 20px; }
.tag-land { background: rgba(46, 196, 120, .16); color: #6EE7A8; }
.tag-priv { background: rgba(255, 184, 0, .16); color: #FFD166; }
.tag-bank { background: rgba(225, 29, 46, .2); color: #FF8A94; }
.lot-time { font-size: 12px; color: rgba(255, 255, 255, .5); }
.lot-change { font-size: 12px; font-weight: 600; color: #FF8A94; }
.lot-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #fff; }
.lot-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.lot-meta b { color: #fff; white-space: nowrap; }
.lot-meta s { color: rgba(255, 255, 255, .4); font-weight: 400; margin-right: 4px; }
.radar-feed-foot { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.band-night {
    position: relative; overflow: hidden; color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(700px 380px at 85% 30%, rgba(225, 29, 46, .28), rgba(225, 29, 46, 0) 70%),
        linear-gradient(160deg, var(--night) 0%, var(--night-mid) 55%, var(--night-blue) 100%);
}
.band-night h2 { color: #fff; }
.band-night .lead { color: rgba(255, 255, 255, .78); }
.band-night .dark-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.checks-light li { color: rgba(255, 255, 255, .85); }
.checks-light li::before { border-color: #FF6B77; }

.tg-mock {
    max-width: 420px; justify-self: end; width: 100%;
    background: #17212B; border-radius: var(--radius-lg); padding: 16px; color: #E9EEF2;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tg-head img { border-radius: 50%; }
.tg-head b { display: block; color: #fff; font-size: 15px; line-height: 1.2; }
.tg-head span { font-size: 12.5px; color: #7C8B99; }
.tg-msg {
    position: relative; margin-top: 14px; background: #182533; border-radius: 14px 14px 14px 4px;
    padding: 12px 14px 22px; font-size: 14.5px; line-height: 1.5;
}
.tg-msg p { margin: 4px 0 8px; color: #C9D3DC; }
.tg-msg b { color: #fff; }
.tg-label { font-size: 12px; font-weight: 700; color: #FF8A94; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tg-price { font-size: 15px; }
.tg-price s { color: #7C8B99; }
.tg-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.tg-buttons span { text-align: center; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #8CC9FF; font-size: 13.5px; }
.tg-msg time { position: absolute; right: 12px; bottom: 6px; font-size: 11.5px; color: #6C7883; }

@media (max-width: 960px) {
    .band-night .dark-grid { grid-template-columns: 1fr; }
    .tg-mock { justify-self: start; }
}
@media (max-width: 560px) {
    .radar-feed { padding: 16px; }
    .radar-feed-filter { display: none; }
}

/* ==================================================================
   Parser: каталог аукционов /auctions/ и карточка лота (2026-10-03)
   Цвет типа — по группе ProzorroSale::KINDS, одинаковый в ленте и карточке
   ================================================================== */
.auc-stats { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.auc-stats b { color: var(--brand); font-family: var(--font-head); font-size: 18px; }
.auc-filters {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.auc-filters input, .auc-filters select {
    width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg-soft);
}
.auc-filters input:focus, .auc-filters select:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(225, 29, 46, .12); }
.auc-filters .btn { height: 44px; white-space: nowrap; }
.auc-filters .auc-q { flex: 1 1 100%; }
.auc-filters select { flex: 1 1 200px; width: auto; }
.auc-filters input[type=number] { flex: 0 1 140px; width: auto; }
.auc-check { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.auc-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.auc-reset { font-size: 14px; white-space: nowrap; }
.auc-found { margin: 18px 0 14px; font-size: 14.5px; }
@media (max-width: 560px) { .auc-filters input[type=number] { flex: 1 1 40%; } .auc-filters .btn { flex: 1 1 100%; } }

.lot-grid { align-items: stretch; }
.lot-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; color: inherit; }
.lot-card:hover { text-decoration: none; }
.lot-card-title {
    font-size: 15.5px; line-height: 1.4; margin: 0; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lot-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.lot-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.lot-card-foot b { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.lot-card-foot small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lot-card-foot .muted { margin-left: auto; }
.lot-discount { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--brand); padding: 1px 7px; border-radius: 12px; }

/* Типы на светлом фоне (на тёмном, в ленте главной, — свои цвета выше) */
.lot-card .lot-tag, .lot-hero .lot-tag { background: #EEF0F3; color: #4A4F5A; }
.lot-card .tag-land-lease, .lot-card .tag-land-sale, .lot-card .tag-land-arrested,
.lot-hero .tag-land-lease, .lot-hero .tag-land-sale, .lot-hero .tag-land-arrested { background: #E3F6EA; color: #17804A; }
.lot-card .tag-privatization, .lot-hero .tag-privatization { background: #FFF4D6; color: #9A6B00; }
.lot-card .tag-state-lease, .lot-card .tag-commercial-lease,
.lot-hero .tag-state-lease, .lot-hero .tag-commercial-lease { background: #E6F0FB; color: #22609E; }
.lot-card .tag-dgf, .lot-hero .tag-dgf { background: #FFE8EA; color: #B3121F; }
.lot-card .tag-bankruptcy, .lot-hero .tag-bankruptcy { background: #F1E9FB; color: #6B3FA0; }
.lot-card .tag-property-sale, .lot-card .tag-commercial-sale,
.lot-hero .tag-property-sale, .lot-hero .tag-commercial-sale { background: #E2F5F3; color: #0F766E; }

.lot-status { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lot-status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #B4B4BD; margin-right: 6px; vertical-align: 1px; }
.st-active_tendering { color: #17804A; } .st-active_tendering::before { background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.st-active_rectification { color: #9A6B00; } .st-active_rectification::before { background: #F5B400; }
.st-active_auction { color: var(--brand); } .st-active_auction::before { background: var(--brand); animation: radar-ping-dot 1.4s infinite; }
@keyframes radar-ping-dot { 50% { box-shadow: 0 0 0 4px rgba(225, 29, 46, .2); } }
.st-cancelled, .st-unsuccessful { color: #9A9AA4; }

.lot-hero { padding-bottom: 34px; }
.lot-top-big { justify-content: flex-start; gap: 12px; margin: 6px 0 14px; }
.lot-top-big .lot-tag { font-size: 13px; padding: 4px 12px; }
.lot-h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.01em; max-width: 60em; }
.lot-price-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; margin-top: 18px; }
.lot-price-row > div > span { display: block; }
.lot-price { font-family: var(--font-head); font-size: 32px; color: var(--ink); line-height: 1.1; }
.lot-price small { font-size: 15px; color: var(--muted); }
.lot-price-result { color: #17804A; }
.lot-price-row .btn-row { margin-left: auto; }
.lot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.lot-layout h2 { font-size: 22px; margin-top: 8px; }
.lot-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 36px; }
.lot-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lot-fact dt { font-size: 13px; color: var(--muted); }
.lot-fact dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.lot-side { padding: 20px 22px; margin-bottom: 16px; }
.lot-side h3 { font-size: 17px; }
.lot-dates { list-style: none; padding: 0; margin: 0; }
.lot-dates li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; margin: 0; }
.lot-dates li:last-child { border-bottom: 0; }
.lot-dates li span { color: var(--muted); }
.lot-dates li.past b { color: var(--muted); font-weight: 500; }
.lot-dates li.future b { color: var(--ink); }
a.lot-map { display: flex; flex-direction: row; justify-content: space-between; align-items: center; color: var(--ink); }
.lot-map:hover { text-decoration: none; border-color: var(--brand); }
.lot-source p:last-child { margin: 0; }
/* Канал с ежедневной подборкой: карточка в боковой колонке лота и полоса под каталогом */
a.lot-tg { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; color: var(--ink); }
.lot-tg:hover { text-decoration: none; border-color: var(--brand); }
.lot-tg > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.lot-tg-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.lot-tg-btn { margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
.auc-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 28px 0 0; padding: 16px 20px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-size: 15px; }
.auc-tg svg { flex: none; color: var(--brand); }
.auc-tg:hover { text-decoration: none; border-color: var(--brand); }
.auc-tg-go { margin-left: auto; font-weight: 600; color: var(--brand); white-space: nowrap; }
.lot-chain, .lot-changes { list-style: none; padding: 0; margin: 0 0 32px; }
.lot-chain li, .lot-changes li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.lot-changes time { color: var(--muted); font-size: 13px; margin-right: 8px; }
@media (max-width: 960px) {
    .lot-layout { grid-template-columns: 1fr; }
    .lot-facts { grid-template-columns: 1fr; }
    .lot-price-row .btn-row { margin-left: 0; }
}
a.lot { display: block; color: inherit; }
a.lot:hover { text-decoration: none; }
.radar-feed-foot a { color: #FF8A94; font-weight: 600; }
.auc-found { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.auc-save { display: inline-flex; align-items: center; gap: 6px; }

/* ==================================================================
   Parser: кабинет → Радар (Telegram, фильтры, «Мої лоти») и форма фильтра (2026-10-03)
   ================================================================== */
.btn-row form { margin: 0; }
.btn-watching { border-color: var(--brand); color: var(--brand-dark); }
.rad-flash { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: #E3F6EA; color: #17643C; font-size: 15px; }
.rad-flash-warn { background: #FFF4D6; color: #7A5600; }
.rad-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin: 26px 0 8px; }
.rad-tg { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid rgba(225, 29, 46, .25); background: linear-gradient(135deg, #fff, var(--brand-soft)); }
.rad-tg h3 { margin: 0 0 4px; font-size: 18px; }
.rad-tg p { margin: 0; }
.rad-tg form { margin: 0; }
.rad-tg-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #229ED9; color: #fff; }
.rad-tg-on { background: #fff; border-color: var(--line); }
.rad-plan { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.rad-plan > b { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.rad-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.rad-head h2 { margin: 0; font-size: 24px; }
.rad-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.rad-filter { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.rad-paused { opacity: .62; }
.rad-filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rad-filter-head form { margin: 0; }
.rad-filter-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.3; }
.rad-filter-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.rad-filter-stats b { color: var(--brand); font-family: var(--font-head); font-size: 18px; }
.rad-filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.rad-filter-foot a { margin-left: auto; }
.rad-ch { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 12px; background: #EEF0F3; color: #4A4F5A; }
.rad-ch-tg { background: #E1F2FB; color: #1B7DB0; }
.rad-ch-off { opacity: .55; text-decoration: line-through; }
.rad-switch { position: relative; width: 42px; height: 24px; border-radius: 12px; border: 0; background: #D7D7DD; cursor: pointer; flex: none; padding: 0; transition: background .2s; }
.rad-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.rad-switch.on { background: var(--brand); }
.rad-switch.on span { transform: translateX(18px); }
.rad-empty { padding: 28px; }
.rad-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rad-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rad-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rad-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rad-table tr:last-child td { border-bottom: 0; }
.rad-table .lot-tag { white-space: nowrap; font-size: 11.5px; padding: 2px 9px; border-radius: 20px; font-weight: 600; background: #EEF0F3; color: #4A4F5A; }
.rad-table .tag-land-lease, .rad-table .tag-land-sale, .rad-table .tag-land-arrested { background: #E3F6EA; color: #17804A; }
.rad-table .tag-privatization { background: #FFF4D6; color: #9A6B00; }
.rad-table .tag-dgf { background: #FFE8EA; color: #B3121F; }
.rad-table .tag-bankruptcy { background: #F1E9FB; color: #6B3FA0; }
.rad-table form { margin: 0; }
.rad-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.rad-x:hover { color: var(--brand); border-color: var(--brand); }
.text-nowrap { white-space: nowrap; }

.rad-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.rad-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 26px; }
.rad-wide { grid-column: 1 / -1; }
.rad-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.rad-field input, .rad-field select {
    height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft);
}
.rad-field input:focus, .rad-field select:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(225, 29, 46, .12); }
.rad-channels { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 4px 0 0; }
.rad-channels legend { font-size: 14px; color: var(--muted); padding: 0 6px; }
.rad-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0; cursor: pointer; }
.rad-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.rad-preview { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; }
.rad-preview > b { font-family: var(--font-head); font-size: 34px; color: var(--brand); line-height: 1.1; }
.rad-delete { margin-top: 14px; }
.rad-delete button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.rad-delete button:hover { color: var(--brand); }
.form-error { grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--radius-sm); background: #FFE8EA; color: #8A1C13; font-size: 15px; }
@media (max-width: 860px) {
    .rad-top, .rad-form-layout { grid-template-columns: 1fr; }
    .rad-tg { grid-template-columns: auto 1fr; }
    .rad-tg form { grid-column: 1 / -1; }
    .rad-form { grid-template-columns: 1fr; }
}

/* Посадочные каталога (docs/seo.md): вступление с живыми цифрами и подборки-ссылки */
.auc-intro { max-width: 52em; margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.auc-links { margin-top: 44px; }
.auc-links h2 { font-size: 22px; margin-bottom: 14px; }
.auc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.auc-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14.5px; transition: border-color .15s, color .15s;
}
.auc-chip:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.auc-chip b { font-weight: 600; color: var(--muted); font-size: 13px; }

/* ==================================================================
   Parser: главная с фото (2026-10-03, картинки владельца в assets/img/art/)
   ================================================================== */
/* Первый экран: фото сверху справа, лента лотов наезжает на него снизу слева — только на нижнюю
   треть с тёмными полями. Телефон с радаром (середина кадра, низ на ~70 % высоты) должен быть виден
   целиком: при 150px лента закрывала его, торчал край радара (владелец 2026-10-04: «так задумывалось?»).
   Отступ — в % от ширины колонки, как и высота фото (86 % ширины × 10/16 ≈ 54 %), поэтому держится на любой ширине */
.hero-radar .hero-art { padding-top: 39%; }
.hero-photo {
    position: absolute; top: 0; right: -24px; width: 86%;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-art);
}
.hero-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; animation: art-zoom 26s ease-in-out infinite alternate; }
.hero-radar .radar-feed { margin-right: 48px; }
/* Тёмная полоса: под градиентом — поля с дрона, справа они проступают сильнее */
.band-night {
    background:
        linear-gradient(90deg, rgba(14, 14, 17, .97) 0%, rgba(14, 14, 17, .9) 42%, rgba(42, 9, 15, .62) 100%),
        url(/assets/img/art/kind-land.webp) center / cover no-repeat,
        var(--night);
}
/* «Як почати»: фото слева, три шага столбиком справа */
.steps-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.steps-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-art); }
.steps-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.steps-col .step { margin-bottom: 34px; }
.steps-col .step:last-child { margin-bottom: 0; }
/* Призыв внизу: радар над Украиной проступает справа */
.cta-photo {
    background:
        linear-gradient(90deg, rgba(18, 8, 11, .96) 0%, rgba(90, 12, 22, .88) 55%, rgba(90, 12, 22, .35) 100%),
        url(/assets/img/art/radar-ua.webp) right -40px center / auto 150% no-repeat,
        #000;
}
.cta-photo::after { display: none; }
@media (max-width: 760px) {
    .hero-radar .hero-art { padding-top: 0; }
    .hero-photo { position: static; width: 100%; }
    .hero-radar .radar-feed { margin: -48px 12px 0; }
    .steps-split { grid-template-columns: 1fr; gap: 32px; }
}

/* Флаги в переключателе языков (2026-10-03): в выпадающем списке шапки — флаг и название,
   в подвале и на кнопке — флаг и код страны (UA, EN) */
.langs a, .lang-dd summary { display: inline-flex; align-items: center; gap: 7px; }
.lang-flag { flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.langs .lang-name { display: none; text-transform: none; letter-spacing: 0; }
.lang-dd .langs a { gap: 10px; }
.lang-dd .langs .lang-code { display: none; }
.lang-dd .langs .lang-name { display: inline; }
.lang-dd .langs { min-width: 150px; }

/* Кабинет → API (2026-10-04): новый ключ, пример запроса, форма создания */
.api-new { margin: 22px 0 0; padding: 22px 24px; border-color: rgba(225, 29, 46, .45); background: var(--brand-soft); }
.api-new h3 { margin-bottom: 6px; }
.api-key-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.api-key-row code { flex: 1 1 320px; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line);
    font-size: 15px; word-break: break-all; user-select: all; }
.api-try { padding: 20px 22px; }
.api-try h3 { margin-bottom: 10px; }
.api-pre { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--night); color: #E9EEF2;
    font-size: 13.5px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.api-pre code { padding: 0; background: none; color: inherit; font-size: inherit; border: 0; }
.api-create { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.api-create input { flex: 1 1 280px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.rad-table code { font-size: 13.5px; }
.rad-table .nowrap { white-space: nowrap; }
/* Код в документации (API): тёмный блок, как пример в кабинете */
.prose pre { margin: 1.2em 0 1.6em; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--night); color: #E9EEF2;
    font-size: 14px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose td code, .prose th code { white-space: nowrap; }
/* Вебхук в кабинете → API */
.hook-lead { max-width: 52em; margin: -4px 0 14px; }
.hook-card { margin-top: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.hook-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.hook-secret { margin-top: 0; }
.hook-secret-hidden { color: transparent !important; text-shadow: 0 0 7px rgba(20, 20, 23, .55); user-select: none; }
.hook-good { color: #17804A; }
.hook-bad { color: #B3121F; }
.hook-actions form { margin: 0; }
@media (max-width: 640px) { .hook-row { grid-template-columns: 1fr; gap: 4px; } }
/* Выгрузка Excel/CSV: кнопки в каталоге, у фильтров и у «Моїх лотів» */
.auc-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.rad-filter-links { display: inline-flex; gap: 12px; }
.rad-export { display: inline-flex; gap: 8px; }
/* Живая подборка лотов в статье (lots_embed.php) */
.lots-embed { margin: 1.6em 0 2em; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft, #FAF7F8); }
.lots-embed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.lots-embed-head b { font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.lots-embed .lot-grid { gap: 12px; }
.lots-embed .lot-card { font-size: 15px; text-decoration: none; }
.lots-embed .lot-card-title { font-size: 15.5px; }
.lots-embed-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prose .lots-embed a.btn { text-decoration: none; }
.prose .lots-embed a.lot-card { font-weight: inherit; }

/* Карта лотов в каталоге (2026-10-04, site.js — «Карта лотов»): над списком, кластеры в цветах сайта вместо
   стандартных зелёно-жёлтых MarkerCluster.Default; карточка лота во всплывающем окне — тип, название, цена */
.auc-map { margin: 0 0 28px; }
.auc-map-canvas { height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #e9e6e3; z-index: 0; }
.auc-map-note { margin: 10px 2px 0; }
.auc-map-btn[aria-expanded="true"] { border-color: var(--brand); color: var(--brand-dark); }
.auc-map .marker-cluster-small, .auc-map .marker-cluster-medium, .auc-map .marker-cluster-large { background-color: rgba(225, 29, 46, .28); }
.auc-map .marker-cluster-small div, .auc-map .marker-cluster-medium div, .auc-map .marker-cluster-large div { background-color: #E11D2E; color: #fff; font-weight: 700; }
.auc-map .leaflet-popup-content { margin: 14px 16px; min-width: 220px; }
.map-pop { display: flex; flex-direction: column; gap: 6px; font-family: inherit; }
.map-pop-kind { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.map-pop-title { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.map-pop-title:hover { color: var(--brand-dark); }
.map-pop-price { font-size: 15px; }
.map-pop-go { color: var(--brand); font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
    .auc-map-canvas { height: 400px; }
}
/* Мини-карта в карточке лота (2026-10-04): по кнопке, в боковой колонке */
.lot-map { display: flex; flex-direction: column; gap: 10px; }
.lot-map-canvas { height: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.lot-map-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
