/* proversite.ru — landing custom styles
 *
 * Tailwind cover most of the layout via utilities.
 * This file is for: animations, custom-shape SVG decoration, form micro-styles,
 * and component classes that would be ugly as long Tailwind chains.
 */

/* Self-hosted Onest. Раньше грузили с fonts.googleapis.com (блок -1700ms FCP).
   Теперь — .woff2 файлы в /static/fonts/onest/, по 2 subset'а (latin, cyrillic)
   на каждый вес, swap-стратегия для нулевого invisible-text период. */
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/onest/onest-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/onest/onest-cyrillic-400-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/onest/onest-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/static/fonts/onest/onest-cyrillic-500-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/onest/onest-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/static/fonts/onest/onest-cyrillic-600-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/onest/onest-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/fonts/onest/onest-cyrillic-700-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/static/fonts/onest/onest-latin-800-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/static/fonts/onest/onest-cyrillic-800-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
    --cream: #FFFFFF;
    --cream-deep: #F5F6FA;
    --ink: #0E1525;
    --ink-soft: #475569;
    --violet: #1E6FFF;
    --violet-deep: #0F1828;
    --gold: #FFC857;
    --gold-deep: #E5A628;
    --coral: #E26A6A;
    --forest: #2E8B57;
    --forest-soft: #D7EAD9;
    --line: rgba(14, 21, 37, 0.10);
    --line-soft: rgba(14, 21, 37, 0.06);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--violet); color: var(--cream); }

/* ─── tiny logo mark ─────────────────────────── */
.logo-mark { display: inline-flex; margin-top: -5px; }
.logo-mark svg { display: block; }

/* ─── badges (small chips) ───────────────────── */
.badge {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(14, 21, 37, 0.06);
    color: var(--ink-soft);
    transition: background 160ms ease;
}
.badge:hover { background: rgba(30, 111, 255, 0.12); color: var(--violet); }

/* ─── law badges (с иконкой-книжкой и цветом по закону) ─── */
.law-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    padding: 6px 11px 6px 9px;
    border-radius: 999px;
    background: rgba(14, 21, 37, 0.06);
    color: var(--ink-soft);
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    cursor: default;
    white-space: nowrap;
}
.law-badge svg { flex-shrink: 0; opacity: 0.95; }
.law-badge:hover { transform: translateY(-1px); }
.law-badge[data-law="152"]   { background: rgba(30, 111, 255, 0.12); color: var(--violet); border-color: rgba(30, 111, 255, 0.18); }
.law-badge[data-law="zozpp"] { background: rgba(46, 139, 87, 0.12); color: var(--forest); border-color: rgba(46, 139, 87, 0.20); }
.law-badge[data-law="436"]   { background: rgba(226, 106, 106, 0.12); color: var(--coral);  border-color: rgba(226, 106, 106, 0.20); }
.law-badge[data-law="347"]   { background: rgba(214, 158, 46, 0.16); color: #A86A1B;        border-color: rgba(214, 158, 46, 0.30); }
.law-badge[data-law="gk"]    { background: rgba(15, 24, 40, 0.08);  color: var(--ink);     border-color: rgba(15, 24, 40, 0.14); }
.law-badge { cursor: pointer; }
.law-badge[aria-expanded="true"] { transform: translateY(-1px); box-shadow: 0 0 0 2px currentColor; }

/* law popover (info on click) — position: fixed чтобы не клипалось overflow:hidden */
.law-badge-wrap { display: inline-flex; }
.law-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 16px 18px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 48px -16px rgba(15, 24, 40, 0.25), 0 4px 10px rgba(15, 24, 40, 0.08);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    pointer-events: none;
}
.law-badge-wrap.is-open .law-info {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.law-info-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.3;
}
.law-info-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}
@media (max-width: 640px) {
    .law-info { width: 280px; padding: 14px 16px; }
}

/* ─── section eyebrow ────────────────────────── */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
}
.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--violet);
    border-radius: 1px;
}

/* ─── hero ───────────────────────────────────── */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero-bg-shape-1 {
    top: -160px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(closest-side, rgba(255, 200, 87, 0.16), transparent);
}
.hero-bg-shape-2 {
    bottom: -240px; left: -200px;
    width: 360px; height: 360px;
    background: radial-gradient(closest-side, rgba(30, 111, 255, 0.06), transparent);
}

/* ─── result cards groups (нарушения / уже в порядке) ─── */
#result-cards-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.result-group-toggles {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}
.result-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(15, 24, 40, 0.04);
    color: var(--ink);
    transition: background 160ms ease, transform 160ms ease;
}
.result-group-toggle.is-violations {
    background: rgba(226, 106, 106, 0.12);
    color: var(--coral);
    border-color: rgba(226, 106, 106, 0.20);
}
.result-group-toggle.is-passed {
    background: rgba(46, 139, 87, 0.10);
    color: var(--forest);
    border-color: rgba(46, 139, 87, 0.20);
}
.result-group-toggle.is-inconclusive {
    background: rgba(217, 152, 41, 0.12);
    color: #B8741A;
    border-color: rgba(217, 152, 41, 0.28);
}
.result-group-toggle.is-inconclusive .result-group-count {
    background: rgba(255, 255, 255, 0.65);
    color: #B8741A;
}
.result-group-toggle .result-group-chevron { transition: transform 200ms ease; }
.result-group-toggle[aria-expanded="false"] .result-group-chevron { transform: rotate(-90deg); }
/* Категорийная иконка показывается только на мобиле — заменяет текстовый
   ярлык. На десктопе скрыта (хватает текста). */
.result-group-toggle .result-group-cat-icon { display: none; flex-shrink: 0; }
.result-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 6px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}
.result-expand-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--line);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.result-expand-all:hover { background: var(--violet); color: #FFFFFF; border-color: var(--violet); }
.result-expand-all svg { transition: transform 200ms ease; }
.result-expand-all.is-active svg { transform: rotate(180deg); }

.result-cards-group .result-cards-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.result-cards-group:not(.is-open) .result-cards-inner {
    gap: 8px;
}
/* В свёрнутом виде карточки показываются одной строкой — только check-card-head */
.result-cards-group:not(.is-open) .check-card {
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.result-cards-group:not(.is-open) .check-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 24, 40, 0.06);
}
.result-cards-group:not(.is-open) .check-card-head {
    margin-bottom: 0;
    padding: 12px 18px;
    align-items: center;
}
.result-cards-group:not(.is-open) .check-card-head-left { align-items: center; }
.result-cards-group:not(.is-open) .check-card-fine {
    padding-left: 12px;
    border-left: 1px solid rgba(15, 24, 40, 0.08);
}
.result-cards-group:not(.is-open) .check-card > *:not(.check-card-head) {
    display: none;
}
.result-cards-group + .result-cards-group .result-cards-inner { margin-top: 16px; }
.result-cards-group.is-empty,
.result-group-toggle.is-empty { display: none; }

/* «Раскрыть все» / «Все» — на десктопе полный текст, на мобиле короткий. */
.result-expand-all-label-short { display: none; }

/* На мобиле тогглы становятся компактными: категорийная иконка + count,
   текстовые ярлыки скрываются. Кнопка «Раскрыть все» сжимается до «Все». */
@media (max-width: 640px) {
    .result-group-toggle .result-group-label { display: none; }
    .result-group-toggle .result-group-cat-icon { display: inline-flex; }
    .result-group-toggle {
        padding: 8px 10px;
        gap: 5px;
    }
    .result-group-toggles { gap: 6px; }
    .result-expand-all { padding: 8px 12px; }
    .result-expand-all-label-full { display: none; }
    .result-expand-all-label-short { display: inline; }
}

/* ─── locked checks (8 параметров доступных в полном отчёте) ─── */
.result-locked {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(30, 111, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(226, 106, 106, 0.04) 0%, transparent 55%),
        var(--cream);
    border: 1.5px solid rgba(15, 24, 40, 0.08);
    border-radius: 24px;
    padding: 28px;
    overflow: hidden;
}

/* Hero: текст слева, прайс-карточка справа */
.result-locked-hero {
    display: grid;
    grid-template-columns: 1fr minmax(240px, 280px);
    gap: 28px;
    margin-bottom: 24px;
}
.result-locked-hero-text { min-width: 0; }

.result-locked-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 12px;
    padding: 5px 11px 5px 9px;
    background: rgba(15, 24, 40, 0.05);
    border: 1px solid rgba(15, 24, 40, 0.08);
    border-radius: 999px;
}
.result-locked-eyebrow svg { color: var(--ink-soft); flex-shrink: 0; }

.result-locked-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
    color: var(--ink);
}
.result-locked-pitch {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.result-locked-pitch strong {
    color: var(--ink);
    font-weight: 700;
}
.result-locked-perks strong { color: var(--ink); font-weight: 700; }
/* Последний bullet — приглушённый upsell-указатель на следующий тариф */
.result-locked-perks .result-locked-perk-note {
    color: var(--ink-soft);
    font-size: 13px;
    font-style: italic;
}

.result-locked-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.result-locked-perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
}
.result-locked-perks li svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--violet);
    background: rgba(30, 111, 255, 0.10);
    padding: 3px;
    border-radius: 6px;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
}

/* Прайс-карточка справа */
.result-locked-pricecard {
    display: flex;
    flex-direction: column;
    background: var(--violet);
    background: linear-gradient(160deg, var(--violet) 0%, #1656cc 100%);
    color: #FFFFFF;
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 12px 30px rgba(30, 111, 255, 0.22);
    position: relative;
    overflow: hidden;
}
.result-locked-pricecard::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.result-locked-pricecard-top { position: relative; }
.result-locked-pricecard-eyebrow {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}
.result-locked-pricecard-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
    margin-bottom: 6px;
}
.result-locked-pricecard-num {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 56px;
    letter-spacing: -0.04em;
    line-height: 1;
}
.result-locked-pricecard-cur {
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
}
.result-locked-pricecard-saving {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 18px;
    font-weight: 500;
}
.result-locked-pricecard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--violet);
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease;
    width: 100%;
    text-align: center;
}
.result-locked-pricecard-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.result-locked-pricecard-btn:active { transform: scale(0.98); }
.result-locked-pricecard-foot {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    letter-spacing: 0.02em;
}

/* Список карточек: 2 колонки, более компактные карточки */
.result-locked-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 720px) {
    .result-locked-list-grid { grid-template-columns: 1fr; }
}
.check-card.is-locked {
    border: 1px solid rgba(15, 24, 40, 0.08);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 14px;
    border-radius: 14px;
    animation: none;
    transition: border-color 160ms ease, background 160ms ease;
}
.check-card.is-locked:hover {
    border-color: rgba(30, 111, 255, 0.25);
    background: #FFFFFF;
}
.check-card.is-locked::before { display: none; }
.check-card-locked-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.check-card.is-locked .check-card-icon-locked {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.check-card-icon-locked {
    background: rgba(15, 24, 40, 0.06) !important;
    color: var(--ink-soft) !important;
}
.check-card-locked-info { min-width: 0; }
.check-card-locked-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.check-card-locked-title-row .check-card-num {
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    font-size: 11px;
}
/* severity-dot вшит inline внутрь H3 — следует за последним словом
   заголовка независимо от переноса (на мобиле title wraps на 2 строки). */
.check-card-locked-title-row .severity-dot,
.check-card.is-locked .check-card-title .severity-dot {
    display: inline-block;
    vertical-align: middle;
    margin-left: 7px;
    margin-bottom: 2px;
    width: 7px;
    height: 7px;
}
.check-card.is-locked .check-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 3px;
    color: var(--ink);
    /* Разрешаем перенос на 2 строки — иначе длинные заголовки
       («Загрузка трекеров до согласия») обрезались многоточием. */
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 0 1 auto;
    min-width: 0;
}
/* Locked-карточки нейтральные — пилюлька-номер серая, без статусного цвета */
.check-card.is-locked .check-card-num {
    background: rgba(15, 24, 40, 0.06);
    color: var(--ink-soft);
}
.check-card.is-locked .check-card-num-badge {
    background: var(--ink-soft);
    color: #FFFFFF;
}
.check-card-locked-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.severity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.severity-dot.severity-critical { background: var(--coral); }
.severity-dot.severity-warning { background: var(--gold-deep); }
.check-card-law-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(15, 24, 40, 0.05);
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}
.check-card-locked-fine {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.check-card-locked-fine-tag {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    line-height: 1;
}
.check-card-locked-fine-max {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--coral);
    white-space: nowrap;
    line-height: 1.1;
}

@media (max-width: 720px) {
    .result-locked-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .result-locked-pricecard { padding: 20px; }
    .check-card.is-locked .check-card-title { white-space: normal; }
}
.check-card-locked-body {
    position: relative;
    padding: 14px 16px;
    background: rgba(15, 24, 40, 0.025);
    border-radius: 12px;
    overflow: hidden;
}
.check-card-locked-preview {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(15, 24, 40, 0.45);
    filter: blur(2.5px);
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.5px;
}
.check-card-locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.check-card-locked-overlay svg { color: var(--violet); flex-shrink: 0; }
@media (max-width: 640px) {
    .result-locked { padding: 20px; border-radius: 18px; }
}

/* ─── result document — единая карточка-документ, обёрнутая вокруг
       заголовка, штрафа, тогглов, карточек и панели действий ─── */
.result-document {
    background: #FFFFFF;
    border: 1.5px solid rgba(15, 24, 40, 0.07);
    border-radius: 26px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(15, 24, 40, 0.04);
    position: relative;
}
@media (max-width: 720px) {
    .result-document {
        padding: 24px 18px;
        border-radius: 18px;
    }
}
/* На мобиле документ практически прижимается к краям экрана —
   обнуляем боковой padding контейнера #result, оставляя 5px зазор. */
@media (max-width: 640px) {
    #result > .max-w-4xl { padding-left: 5px; padding-right: 5px; }
    .result-document { border-radius: 14px; padding: 22px 16px; }
}
/* В документе у заголовка — меньший нижний отступ, потому что дальше идут
   секции одного и того же документа, а не отдельные блоки страницы. */
.result-document .result-header.result-header-grid { margin-bottom: 24px; }
/* Финальная панель действий внутри документа — без лишнего margin сверху
   (отделяется от карточек через тонкий divider). */
.result-document .result-actions-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 24, 40, 0.06);
}
/* Тогл-бар (Нарушения / В порядке) ужимаем сверху, потому что выше уже
   красный блок штрафа со своим margin-bottom. */
.result-document #result-cards-controls { margin-top: 0; }

/* ─── result fine banner — крупная сумма потенциального штрафа ─── */
.result-fine {
    background: linear-gradient(180deg, rgba(226, 106, 106, 0.06) 0%, rgba(226, 106, 106, 0.10) 100%);
    border: 2px solid rgba(226, 106, 106, 0.18);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    text-align: center;
}
.result-fine.is-zero {
    background: linear-gradient(180deg, rgba(46, 139, 87, 0.06) 0%, rgba(46, 139, 87, 0.10) 100%);
    border-color: rgba(46, 139, 87, 0.20);
}
.result-fine-eyebrow {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 10px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.result-fine-eyebrow-host {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(226, 106, 106, 0.14);
    color: var(--coral);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    border: 1px solid rgba(226, 106, 106, 0.22);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.result-fine.is-zero .result-fine-eyebrow { color: var(--forest); }
.result-fine.is-zero .result-fine-eyebrow-host {
    background: rgba(46, 139, 87, 0.12);
    color: var(--forest);
    border-color: rgba(46, 139, 87, 0.22);
}
.result-fine-amount {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--coral);
    margin-bottom: 10px;
}
.result-fine.is-zero .result-fine-amount { color: var(--forest); }
.result-fine-currency { font-weight: 700; }

/* Вторичный риск (по 8 непроверенным параметрам) — приглушённо-красная
   полоса под главной суммой. Меньше, но всё ещё заметно.
   Унифицированный стиль: один шрифт (Onest), один цвет (coral),
   один вес (700) — варьируется только размер для иерархии. */
.result-fine-secondary {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 10px;
    margin: -2px 0 18px;
    padding: 9px 18px;
    border-radius: 12px;
    background: rgba(226, 106, 106, 0.10);
    border: 1px dashed rgba(226, 106, 106, 0.32);
    font-family: 'Onest', system-ui, sans-serif;
    color: var(--coral);
}
.result-fine-secondary-prefix,
.result-fine-secondary-amount,
.result-fine-secondary-note {
    font-family: inherit;
    color: inherit;
    font-style: normal;
    letter-spacing: 0.005em;
}
.result-fine-secondary-prefix {
    font-size: 14px;
    font-weight: 700;
}
.result-fine-secondary-amount {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.015em;
    white-space: nowrap;
}
.result-fine-secondary-note {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.75;
}

.result-fine-extra {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 22px;
    line-height: 1.5;
}
/* Короткая «из практики применения» — отдельная полоса в конце extra-блока */
.result-fine-extra-practice {
    display: block;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 106, 106, 0.18);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}
.result-fine-extra-practice strong {
    color: var(--coral);
    font-weight: 700;
}
/* ─── compact info в шапке при скролле ─── */
.header-report-compact {
    display: none;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 220ms ease, transform 220ms ease;
    line-height: 1.15;
    padding: 0 12px;
}
#site-header.is-scrolled .header-report-compact {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.header-report-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-report-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
}
.header-report-host {
    font-size: 12px;
    font-weight: 600;
    color: var(--violet);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.header-report-dot { color: var(--ink-soft); font-size: 12px; }
.header-report-meta {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
}
@media (max-width: 760px) {
    .header-report-title { font-size: 14px; }
    .header-report-host { max-width: 130px; font-size: 11px; }
    .header-report-dot, .header-report-meta { font-size: 10.5px; }
}
/* На десктопе показываем полное название «Заключение по экспресс-проверке»,
   на мобиле — короткое «Экспресс-проверка». */
.header-report-title-short { display: none; }

/* Мобильная вёрстка прокрученной шапки: короткий title + полная
   sub-инфа (host · №NN · дата, время) — всё в 2 строки максимум. */
@media (max-width: 640px) {
    .header-report-title-full { display: none; }
    .header-report-title-short { display: inline; }
    /* Убираем боковой padding compact-блока — каждый пиксель на счету */
    .header-report-compact { padding: 0; }
    .header-report-title {
        font-size: 15px;
        white-space: nowrap;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-report-sub {
        display: flex;
        flex-wrap: nowrap;
        gap: 0 5px;
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-report-host {
        max-width: none;
        font-size: 12px;
        flex-shrink: 0;
    }
    .header-report-dot, .header-report-meta {
        display: inline;
        font-size: 12px;
        flex-shrink: 0;
    }
    /* Уменьшаем gap у actions-блока, экономим ещё места */
    #site-header.is-scrolled > .max-w-7xl { gap: 6px; }
    #site-header.is-scrolled > .max-w-7xl > .flex.items-center.gap-3 { gap: 6px; }
}

#site-header .header-share-dd,
#site-header .header-share-icon {
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 220ms ease, transform 220ms ease;
}
#site-header.is-scrolled .header-share-dd,
#site-header.is-scrolled .header-share-icon {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 540px) {
    #site-header.is-scrolled .header-new-check span { display: none; }
    #site-header.is-scrolled .header-new-check { padding: 0; width: 38px; }
    .result-share-dd-btn.is-compact span { display: none; }
    .result-share-dd-btn.is-compact { padding: 8px; }
}

/* ═══ Mobile header — компактная вёрстка для ≤640px ═══
   Дефолт оставляем как было (лого с tagline), но «+ Новая проверка»
   сжимаем до иконки-only, чтобы помещалось.
   В is-scrolled — прячем текст лого, оставляем shield + report-info + action-icons. */
@media (max-width: 640px) {
    /* Контейнер шапки — поджимаем padding и gap */
    #site-header > .max-w-7xl {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }
    /* На мобильной .header-new-check схлопывается до icon-only (38×38),
       рядом с гамбургер-кнопкой. Текст «Все статьи» / «На главную» прячем. */
    .header-new-check span { display: none; }
    .header-new-check {
        width: 38px;
        padding: 0 !important;
        justify-content: center;
    }
}

/* В прокрученном состоянии на мобиле скрываем текст бренда — но ТОЛЬКО
   на странице отчёта /r/, где справа в header'е появляется .result-info
   и всё не помещается. На главной/статьях текст остаётся. */
@media (max-width: 640px) {
    #site-header.is-scrolled:has(.result-info) .header-logo-text { display: none; }
    /* Скачать — иконка-only при скролле на мобиле */
    #site-header.is-scrolled .result-download-btn.is-compact span { display: none; }
    #site-header.is-scrolled .result-download-btn.is-compact {
        width: 38px;
        padding: 0 !important;
        justify-content: center;
    }
    /* «Новая проверка» прячем при скролле на мобиле — экономим место */
    #site-header.is-scrolled .header-new-check { display: none; }
}

/* Унификация высот всех кнопок в шапке отчёта (≈ как «Скачать») */
#site-header .result-download-btn.is-compact,
#site-header .result-fine-share-btn.is-compact,
#site-header .header-new-check {
    height: 38px;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}
#site-header .result-download-btn.is-compact { padding-left: 14px; padding-right: 14px; }
#site-header .header-new-check { padding-left: 14px; padding-right: 14px; }
#site-header .result-fine-share-btn.is-compact { width: 38px; padding-left: 0; padding-right: 0; justify-content: center; }

/* Кнопка «Новая проверка» в шапке — нейтральный outlined-вариант */
.header-new-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    border: 1px solid rgba(15, 24, 40, 0.12);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.header-new-check:hover {
    background: #F5F6FA;
    border-color: rgba(30, 111, 255, 0.40);
    color: var(--violet);
    text-decoration: none;
}
.header-new-check:active { transform: scale(0.97); }
.header-new-check svg { flex-shrink: 0; }

/* Финальный ряд действий после карточек: дефолтные кнопки share/download/email */
.result-actions-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

/* Информационная сноска внизу документа: «Закрытие страницы не отменяет нарушение» */
.result-legal-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(217, 152, 41, 0.08);
    border: 1px solid rgba(217, 152, 41, 0.22);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.result-legal-note-icon {
    flex-shrink: 0;
    color: #B8741A;
    margin-top: 1px;
}
.result-legal-note-body { min-width: 0; }
.result-legal-note-title {
    margin: 0 0 6px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #8A5612;
    letter-spacing: -0.005em;
}
.result-legal-note-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.result-legal-note-text strong { color: var(--ink); font-weight: 700; }
.result-legal-note-text em { font-style: italic; color: var(--ink); font-weight: 600; font-style: normal; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.result-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ink);
    border: 1px solid rgba(15, 24, 40, 0.12);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.result-action-btn:hover {
    background: #F5F6FA;
    border-color: rgba(30, 111, 255, 0.40);
    color: var(--violet);
}
.result-action-btn:active { transform: scale(0.97); }
.result-action-btn svg { flex-shrink: 0; color: var(--ink-soft); transition: color 160ms ease; }
.result-action-btn:hover svg { color: var(--violet); }
.result-actions-row .result-share-toast {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
}

/* compact-вариант share-кнопки (в шапке) */
.result-share-dd-btn.is-compact {
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: none;
    border-radius: 10px;
}

/* H1 хост на второй строке: «Заключение по экспресс-проверке\n сайта <favicon> <host+path>» */
#result-h1-host-wrap { display: block; }
#result-h1-host { white-space: nowrap; }
.result-h1-favicon {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(15, 24, 40, 0.06);
    vertical-align: -0.12em;
    margin-right: 0.28em;
    box-shadow: 0 0 0 1px rgba(15, 24, 40, 0.06);
}

/* Шапка отчёта — Grid: на десктопе кнопка справа от H1, на мобиле снизу под подзаголовком */
.result-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "meta   meta"
        "title  action"
        "sub    sub";
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
}
.result-header-grid .result-header-meta { grid-area: meta; margin: 0 0 6px 0; }
.result-header-grid .result-header-title { grid-area: title; min-width: 0; }
.result-header-grid .result-header-sub-row {
    grid-area: sub;
    margin: 8px 0 0 0;
}
.result-header-grid .result-header-sub { margin: 0; display: inline; }
.result-header-grid .result-header-action { grid-area: action; align-self: start; justify-self: end; }
/* Список нормативно-правовых актов inline в той же строке после подзаголовка
   как plain-text «(152-ФЗ, ЗОЗПП, 436-ФЗ, ...)». Только десктоп. */
.result-header-laws {
    display: inline;
    margin-left: 6px;
}
.result-header-laws::before { content: '('; color: var(--ink-soft); }
.result-header-laws::after { content: ')'; color: var(--ink-soft); }
/* Внутри .result-header-laws переопределяем pill-стиль .law-badge на
   plain inline-text с пунктирным подчёркиванием — чтобы законы читались
   текстом «(152-ФЗ, ЗОЗПП, ...)», а не выглядели набором кнопок. */
.result-header-laws .law-badge-wrap { display: inline; }
.result-header-laws .law-badge {
    display: inline;
    padding: 0;
    background: none !important;
    border: none !important;
    border-bottom: 1px dotted rgba(15, 24, 40, 0.30) !important;
    border-radius: 0;
    color: var(--ink-soft) !important;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    transition: color 160ms ease, border-color 160ms ease;
}
.result-header-laws .law-badge svg { display: none; }
.result-header-laws .law-badge:hover {
    color: var(--violet) !important;
    border-bottom-color: var(--violet) !important;
}
.result-header-laws .law-badge[aria-expanded="true"] {
    color: var(--violet) !important;
    border-bottom-color: var(--violet) !important;
    box-shadow: none !important;
}
@media (max-width: 720px) {
    /* Mobile: список законов прячем — хватает «Соответствие законодательству РФ». */
    .result-header-laws { display: none; }
}
@media (max-width: 720px) {
    .result-header-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "meta"
            "title"
            "sub"
            "action";
    }
    .result-header-grid .result-header-action {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* кнопка Скачать (фиолетовая, рядом с H1 и в шапке) */
.result-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--violet);
    color: #FFFFFF;
    border: 1px solid var(--violet);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, box-shadow 200ms ease;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.20);
}
.result-download-btn:hover { background: #5b21b6; box-shadow: 0 6px 18px rgba(109, 40, 217, 0.28); }
.result-download-btn:active { transform: scale(0.97); }
.result-download-btn.is-compact {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: none;
}

/* share-иконка в верхнем правом углу result-fine */
.result-share-dd.result-fine-share {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.result-fine-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 24, 40, 0.10);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
    font-family: inherit;
}
.result-fine-share-btn:hover {
    background: white;
    border-color: rgba(109, 40, 217, 0.30);
    color: var(--violet);
}
.result-fine-share-btn:active { transform: scale(0.94); }
.result-fine-share-btn.is-compact {
    width: auto;
    height: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--violet);
    color: #FFFFFF;
    border-color: var(--violet);
}
.result-fine-share-btn.is-compact:hover {
    background: #5b21b6;
    color: #FFFFFF;
    border-color: #5b21b6;
}
/* result-fine должен быть relative чтобы иконка корректно позиционировалась */
.result-fine { position: relative; }

/* ─── share dropdown (рядом с заголовком отчёта) ─── */
.result-share-dd { position: relative; flex: 0 0 auto; }
.result-share-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--violet);
    color: #FFFFFF;
    border: 1px solid var(--violet);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, transform 120ms ease, box-shadow 200ms ease;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.20);
}
.result-share-dd-btn:hover { background: #5b21b6; box-shadow: 0 6px 18px rgba(109, 40, 217, 0.28); }
.result-share-dd-btn:active { transform: scale(0.97); }
.result-share-dd-chev { transition: transform 200ms ease; }
.result-share-dd[data-open="true"] .result-share-dd-chev { transform: rotate(180deg); }

.result-share-dd-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: white;
    border: 1px solid rgba(15, 24, 40, 0.10);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(15, 24, 40, 0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 30;
}
.result-share-dd[data-open="true"] .result-share-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.result-share-dd-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 140ms ease;
}
.result-share-dd-item:hover { background: rgba(109, 40, 217, 0.08); color: var(--violet); }
.result-share-dd-item svg { color: var(--ink-soft); flex: 0 0 auto; }
.result-share-dd-item:hover svg { color: var(--violet); }
.result-share-dd-divider { height: 1px; background: rgba(15, 24, 40, 0.08); margin: 4px 6px; }
.result-share-toast {
    font-size: 12px;
    color: var(--forest);
    font-weight: 600;
    background: var(--forest-soft);
    padding: 6px 10px;
    border-radius: 8px;
    margin-top: 4px;
    text-align: center;
}

/* ─── CTA-якоря в блоке штрафа: 3-column мини-карточки ─── */
.result-fine-ctas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 18px;
}
@media (max-width: 720px) {
    .result-fine-ctas { grid-template-columns: 1fr; }
}
.result-fine-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 24, 40, 0.08);
    color: var(--ink);
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 200ms ease;
    text-align: left;
}
.result-fine-cta:hover {
    background: white;
    border-color: rgba(109, 40, 217, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 24, 40, 0.06);
}
.result-fine-cta-price {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: var(--violet);
}
.result-fine-cta-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    line-height: 1.3;
}
.result-fine-cta-arrow {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 16px;
    color: var(--ink-soft);
    transition: transform 200ms ease, color 200ms ease;
    line-height: 1;
}
.result-fine-cta:hover .result-fine-cta-arrow {
    color: var(--violet);
    transform: translateX(3px);
}
button.result-fine-cta {
    font-family: inherit;
    cursor: pointer;
}

/* печать: при window.print() прячем шапку, формы, локед-блок и CTA-плашки */
@media print {
    body { background: white; color: black; }
    #site-header,
    .result-share-dd,
    .result-fine-ctas,
    .result-locked,
    #result-cta-grid,
    #tier1-form-container,
    #lead-form-container,
    .check-form,
    footer {
        display: none !important;
    }
    .result-fine {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    .result-cards-group { display: block !important; opacity: 1 !important; }
    .result-cards-group .result-cards-inner { display: block !important; }
    .result-cards-group:not(.is-open) .check-card > *:not(.check-card-head) { display: revert !important; }
    .check-card { break-inside: avoid; page-break-inside: avoid; }
    .result-section { padding: 0 !important; }
}

#tier-lite, #tier-standard, #tier-pro { scroll-margin-top: 90px; }

/* ─── reviews slider (стек карточек, центральная активная) ─── */
.reviews-eyebrow {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
}
.reviews-stage {
    position: relative;
    height: 460px;
    margin-bottom: 28px;
    /* Сцена «вырывается» из max-w-6xl родителя на всю ширину viewport,
       чтобы крайние карточки уходили красиво в стороны без видимых границ.
       Работает и на десктопе, и на мобиле — overflow: hidden обрезает
       по границе экрана естественно. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}
.review-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 360px;
    height: 360px;
    background: white;
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 28px 28px 24px;
    cursor: pointer;
    transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1), opacity 360ms ease, box-shadow 360ms ease, background 360ms ease, border-color 360ms ease, color 360ms ease;
    box-shadow: 0 4px 14px rgba(15, 24, 40, 0.06);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}
.review-card.is-center {
    background: linear-gradient(165deg, var(--violet) 0%, #1052D9 100%);
    border-color: var(--violet);
    color: #FFFFFF;
    box-shadow: 0 24px 48px -16px rgba(30, 111, 255, 0.45), 0 6px 14px rgba(30, 111, 255, 0.18);
    z-index: 10;
}
.review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 2px solid rgba(15, 24, 40, 0.06);
}
.review-card.is-center .review-avatar {
    border-color: rgba(255, 255, 255, 0.35);
}
.review-text {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    color: inherit;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}
.review-author {
    position: absolute;
    bottom: 22px;
    left: 28px;
    right: 28px;
}
.review-name {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
}
.review-meta {
    font-size: 12px;
    margin-top: 2px;
    color: var(--ink-soft);
    line-height: 1.35;
}
.review-card.is-center .review-meta {
    color: rgba(255, 255, 255, 0.78);
}
.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.reviews-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: white;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.reviews-btn:hover {
    background: var(--violet);
    color: #FFFFFF;
    border-color: var(--violet);
}
.reviews-btn:active { transform: scale(0.96); }

@media (max-width: 720px) {
    .reviews-stage { height: 420px; }
    .review-card { width: 280px; height: 320px; padding: 22px 22px 20px; border-radius: 14px; }
    .review-avatar { width: 44px; height: 44px; margin-bottom: 12px; }
    .review-text { font-size: 14px; -webkit-line-clamp: 7; }
    .review-author { bottom: 18px; left: 22px; right: 22px; }
    .reviews-btn { width: 44px; height: 44px; }
}

/* ─── final CTA section (matches hero blue) ──── */
.cta-section-blue {
    background: linear-gradient(140deg, #2E7BFF 0%, #1052D9 100%);
}

/* CTA: статистика «за 2024 год» над заголовком */
.cta-stats {
    margin-bottom: 36px;
}
.cta-stats-eyebrow {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(248, 244, 236, 0.65);
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.cta-stats-eyebrow-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Чёрный двуглавый орёл из SVG → белый, приглушённый под общий тон eyebrow */
    filter: brightness(0) invert(1);
    opacity: 0.65;
}
.cta-stats-eyebrow br { display: none; }
@media (max-width: 720px) {
    /* На мобиле <br> внутри <span> делит фразу пополам ровно по смыслу */
    .cta-stats-eyebrow br { display: inline; }
}
.cta-stats-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.cta-stats-item {
    text-align: center;
    min-width: 130px;
}
.cta-stats-num {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 6px;
    white-space: nowrap;
}
.cta-stats-label {
    font-size: 12px;
    color: rgba(248, 244, 236, 0.78);
    line-height: 1.35;
    font-weight: 400;
}
@media (max-width: 720px) {
    .cta-stats { margin-bottom: 28px; }
    .cta-stats-row { gap: 24px 32px; }
    .cta-stats-num { font-size: 24px; }
    .cta-stats-label { font-size: 11px; }
    .cta-stats-item { min-width: 100px; }
}

/* ─── CTA: «28 юристов-партнёров» — стек аватаров с подписью ─── */
.cta-lawyers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.cta-lawyers-bottom {
    margin-top: 36px;
    margin-bottom: 0;
}
.cta-lawyers-stack {
    display: inline-flex;
    align-items: center;
}
.cta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    border: 2.5px solid rgba(255, 255, 255, 0.92);
    margin-left: -12px;
    box-shadow: 0 2px 6px rgba(15, 24, 40, 0.18);
    overflow: hidden;
}
.cta-avatar-photo { padding: 0; }
.cta-avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.cta-lawyers-stack .cta-avatar:first-child { margin-left: 0; }
.cta-avatar-more {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.cta-lawyers-text {
    color: rgba(248, 244, 236, 0.92);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    max-width: 380px;
    line-height: 1.45;
}
.cta-lawyers-text strong { color: #FFFFFF; font-weight: 700; }
@media (max-width: 640px) {
    .cta-lawyers { gap: 12px; flex-direction: column; }
    .cta-lawyers-text { text-align: center; font-size: 14px; max-width: 320px; }
    .cta-avatar { width: 36px; height: 36px; font-size: 13px; margin-left: -10px; }
}

/* ─── hero photo stage (real photo of lawyer + floating stat cards) ─── */
.hero-photo-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    isolation: isolate;
    margin-top: -28px;
}
.hero-photo-frame {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(140deg, #E8EFFF 0%, #D6E4FF 100%);
    box-shadow:
        0 30px 60px -28px rgba(15, 24, 40, 0.35),
        0 8px 18px -10px rgba(15, 24, 40, 0.18);
}
/* Тёмная зона под карточками: солидно до 50% высоты, выше плавный fade.
   Гарантирует читаемость светлого текста независимо от того, что под ним
   на фото (лицо, рубашка, контрастные элементы). */
.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 14, 28, 0.82) 0%,
        rgba(8, 14, 28, 0.78) 50%,
        rgba(8, 14, 28, 0.40) 70%,
        rgba(8, 14, 28, 0)    100%
    );
    pointer-events: none;
    z-index: 1;
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
    filter: contrast(1.02) saturate(1.04);
    transform: translate(-10px, -35px) scale(1.41);
    transform-origin: 60% 40%;
}
.hero-stat {
    position: absolute;
    /* Карточки без подложки — данные «парят» прямо на затемнённом фото.
       Читаемость обеспечивает gradient overlay на .hero-photo-frame::after.
       Минималистичный fintech-look. */
    background: transparent;
    border-radius: 16px;
    padding: 10px 16px;
    z-index: 3;
    min-width: 0;
    border: none;
    box-shadow: none;
    transition: transform .25s ease;
}
.hero-stat:hover { transform: translateY(-2px); }
.hero-stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-stat-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--ink);
}
.hero-stat-icon svg { width: 100%; height: 100%; display: block; }
/* Цвета иконок/цифр на тёмном стекле — светлые насыщенные оттенки.
   На rgba(15,20,35,0.55) тёмные #1A6B41 / #C44141 совершенно не видны. */
.hero-stat-icon.is-forest { color: #5EE8A6; }
.hero-stat-icon.is-coral  { color: #FF8B8B; }
.hero-stat-icon.is-violet { color: #7BA3FF; }
.hero-stat-num {
    display: block;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    white-space: nowrap;
    /* Лёгкий drop для разделения цифр от фото на промежуточных тонах. */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.hero-stat-num.is-violet { color: #7BA3FF; }
.hero-stat-num.is-coral  { color: #FF8B8B; }
.hero-stat-num.is-forest { color: #5EE8A6; }
.hero-stat-label {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
/* Раскладка карточек — все 5 сгруппированы в нижней половине фото
   (как fintech-приложения Тинькофф/Точка). Верх фото — чистое лицо
   юриста и эмблема, низ — стек данных.
   ┌─────────────────────────┐
   │      lawyer photo       │
   │      (clean top)        │
   │  ┌──── 1 широкая ────┐  │  ← TL (hero-stat-lg, «сэкономлено клиентам»)
   │  ┌── 2 ──┐  ┌── 4 ──┐   │  ← TL2 (нарушений)  + MR (средний штраф)
   │  ┌── 3 ──┐  ┌── 5 ──┐   │  ← BL (проверено)   + BR (% нарушают)
   └─────────────────────────┘  */
/* Grid 2-кол: левая колонка left:16..50%-4, правая 50%+4..-16.
   Все 4 малые карточки одинаковой ширины и левого выравнивания. */
.hero-stat-tl  { bottom: 184px; left: 16px; right: 16px; min-width: 0; }
.hero-stat-tl2 { bottom: 100px; left: 16px;            right: calc(50% + 4px); }
.hero-stat-mr  { bottom: 100px; left: calc(50% + 4px); right: 16px; }

.hero-emblem {
    position: absolute;
    top: 24px;
    right: -16px;
    z-index: 4;
    background: linear-gradient(165deg, #9A1F2E 0%, #6E1620 100%);
    border-radius: 12px;
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 14px 30px -10px rgba(110, 22, 32, 0.45),
        0 2px 6px rgba(110, 22, 32, 0.20);
    transition: transform 220ms ease;
}
.hero-emblem:hover { transform: translateY(-2px) rotate(-1deg); }
.hero-emblem-mark {
    width: 58px;
    height: 58px;
    display: block;
    filter: brightness(0) invert(1);
}
.hero-emblem-text {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
}
@media (max-width: 720px) {
    .hero-emblem { top: 42px; right: -10px; padding: 16px 12px 14px; gap: 8px; border-radius: 10px; }
    .hero-emblem-mark { width: 42px; height: 42px; }
    .hero-emblem-text { font-size: 8px; }
}
.hero-stat-bl { bottom: 16px; left: 16px;            right: calc(50% + 4px); }
.hero-stat-br {
    bottom: 16px;
    left: calc(50% + 4px);
    right: 16px;
}
.hero-stat-br:hover { transform: translateY(-2px); }

/* size modifier — крупнее остальных, для главной плашки (экономия) */
.hero-stat-lg {
    padding: 21px 28px;
    min-width: 205px;
    border-radius: 20px;
}
.hero-stat-lg .hero-stat-row { gap: 12px; }
.hero-stat-lg .hero-stat-icon {
    width: 28px;
    height: 28px;
}
.hero-stat-lg .hero-stat-num {
    font-size: 35px;
}
.hero-stat-lg .hero-stat-label {
    font-size: 15px;
    margin-top: 7px;
}

@media (max-width: 720px) {
    .hero-photo-stage { aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; }
    .hero-photo-frame { border-radius: 20px; }
    /* Overlay чуть светлее на мобильной — фото лица юриста становится
       заметнее, текст карточек всё ещё читается за счёт text-shadow. */
    .hero-photo-frame::after {
        background: linear-gradient(
            to top,
            rgba(8, 14, 28, 0.68) 0%,
            rgba(8, 14, 28, 0.62) 50%,
            rgba(8, 14, 28, 0.30) 75%,
            rgba(8, 14, 28, 0)    100%
        );
    }
    .hero-stat { padding: 6px 10px; min-width: 0; }
    .hero-stat-num { font-size: 16px; }
    .hero-stat-label { font-size: 10.5px; margin-top: 2px; }
    /* 2-кол grid: left col left:12..50%-2, right col 50%+2..16.
       Правая колонка имеет чуть больше right-отступ (16 vs 12),
       чтобы текст «60-300 тыс ₽» не упирался в правый край. */
    .hero-stat-tl  { bottom: 132px; left: 12px; right: 12px; }
    .hero-stat-tl2 { bottom: 72px;  left: 12px;                   right: calc(50% + 4px); }
    .hero-stat-mr  { bottom: 72px;  left: calc(50% + 4px);        right: 16px; }
    .hero-stat-bl  { bottom: 12px;  left: 12px;                   right: calc(50% + 4px); }
    .hero-stat-br  { bottom: 12px;  left: calc(50% + 4px);        right: 16px; }
    .hero-stat-lg { padding: 8px 14px; }
    .hero-stat-lg .hero-stat-num { font-size: 19px; }
    .hero-stat-lg .hero-stat-label { font-size: 11px; }
}

/* На промежуточных размерах (планшет/узкий десктоп) теперь та же grid
   2-кол что и широкий desktop — карточки рассчитаны через calc(50%),
   не пересекаются по математике. Старое правило с display:none больше
   не нужно. */

/* ─── hero blue mockup stage (legacy, still used by JS animations if any) ─ */
.hero-mockup-stage {
    background: linear-gradient(140deg, #2E7BFF 0%, #1052D9 100%);
    border-radius: 24px;
    padding: 36px 28px;
    min-height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-mockup-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), transparent 75%);
    pointer-events: none;
}
.hero-mockup-card {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 14px;
    box-shadow:
        0 24px 48px -16px rgba(15, 24, 40, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
    overflow: hidden;
}
.hero-mockup-bar {
    background: var(--cream-deep);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--line-soft);
}
.hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.hero-mockup-url {
    flex: 1;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 10px;
    margin-left: 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    text-align: center;
}
.hero-mockup-body { padding: 20px 18px 18px; }
.hero-mockup-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line-soft);
}
.hero-mockup-summary-num {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hero-mockup-summary-label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 500;
}
.hero-mockup-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line-soft);
}
.hero-mockup-row:first-of-type {
    border-top: none;
    padding-top: 0;
}
.row-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.hero-row-pass .row-icon { background: var(--forest-soft); color: var(--forest); }
.hero-row-fail .row-icon { background: rgba(226, 106, 106, 0.15); color: var(--coral); }
.row-text {
    flex: 1;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.3;
    font-weight: 500;
}
.row-tag {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(30, 111, 255, 0.1);
    color: var(--violet);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .hero-mockup-stage { min-height: 360px; padding: 24px 18px; }
    .hero-mockup-summary-num { font-size: 18px; }
    .row-text { font-size: 12px; }
}

.hero-underline-wrap {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    padding: 0 0.08em;
    isolation: isolate;
}
.hero-underline-wrap::before {
    content: '';
    position: absolute;
    left: -0.04em;
    right: -0.04em;
    bottom: 0.04em;
    height: 0.46em;
    background: rgba(230, 57, 70, 0.55);
    border-radius: 2px;
    z-index: -1;
    transform: rotate(-2deg) scaleX(0);
    transform-origin: 0 50%;
    animation: marker-draw 1100ms cubic-bezier(0.65, 0, 0.35, 1) 400ms forwards;
}
/* На тёмно-синем фоне CTA — coral как в hero, но чуть прозрачнее для
   нежности (0.55 → виден отчётливо, не «брутально»). */
.hero-underline-wrap--on-blue::before {
    background: rgba(230, 57, 70, 0.55);
}
@keyframes marker-draw {
    to { transform: rotate(-2deg) scaleX(1); }
}

/* hero-illustration animations removed — replaced by .hero-mockup-stage */

/* ─── hero check input + button ──────────────── */
.check-form {
    position: relative;
    isolation: isolate;
}
@property --ai-glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.check-form::before {
    content: '';
    position: absolute;
    inset: -14px -10px -16px -10px;
    background: conic-gradient(
        from var(--ai-glow-angle, 0deg),
        rgba(124, 92, 255, 0.60) 0%,
        rgba(30, 111, 255, 0.55) 18%,
        rgba(34, 199, 184, 0.45) 36%,
        rgba(251, 191, 36, 0.40) 55%,
        rgba(236, 72, 153, 0.55) 75%,
        rgba(124, 92, 255, 0.60) 100%
    );
    filter: blur(22px);
    opacity: 0.8;
    z-index: 0;
    border-radius: 32px;
    pointer-events: none;
    animation: check-form-ai-glow 9s linear infinite;
    transition: opacity 320ms ease, filter 320ms ease;
}
@keyframes check-form-ai-glow {
    to { --ai-glow-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    .check-form::before { animation: none; }
}
.check-form-bar {
    --mx: 50%;
    --my: 50%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 6px;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 22px -6px rgba(30, 111, 255, 0.40),
        0 24px 50px -14px rgba(30, 111, 255, 0.30),
        0 50px 90px -32px rgba(30, 111, 255, 0.26);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

/* AI-подсветка: rotating conic-gradient рамка в idle. Невербальный намёк,
   что под капотом работает «умный» анализ. Гаснет при hover/focus, чтобы не
   отвлекать при наборе URL. */
@property --ai-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.check-form-bar::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 16px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--ai-angle, 0deg),
        #7C5CFF 0%,
        #1E6FFF 18%,
        #22C7B8 36%,
        #FBBF24 55%,
        #EC4899 75%,
        #7C5CFF 100%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
            mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
    animation: check-form-ai-rotate 7s linear infinite;
    transition: opacity 320ms ease;
}
.check-form-bar:hover::before,
.check-form-bar:focus-within::before {
    opacity: 0;
}
@keyframes check-form-ai-rotate {
    to { --ai-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    .check-form-bar::before { animation: none; }
}
.check-form-bar::after {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 16px;
    padding: 1.8px;
    background: radial-gradient(180px circle at var(--mx) var(--my),
        rgba(30, 111, 255, 0.95) 0%,
        rgba(124, 92, 255, 0.65) 30%,
        transparent 65%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
            mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease;
}
.check-form:hover .check-form-bar::after,
.check-form:focus-within .check-form-bar::after {
    opacity: 1;
}
.check-form-bar:focus-within {
    border-color: var(--violet);
    box-shadow:
        0 0 0 4px rgba(30, 111, 255, 0.18),
        0 8px 22px -6px rgba(30, 111, 255, 0.46),
        0 24px 50px -14px rgba(30, 111, 255, 0.36),
        0 50px 90px -32px rgba(30, 111, 255, 0.30);
}
.check-form:focus-within::before {
    /* при focus оставляем AI-ауру, но приглушаем, чтобы не отвлекала */
    opacity: 0.45;
    filter: blur(44px);
}

/* вариант формы на синей секции: тот же AI-aura, но с усиленной opacity
   и насыщенностью — чтобы хорошо читалась поверх синего фона */
.check-form-on-blue::before {
    opacity: 1;
    filter: blur(24px) saturate(1.2);
}
.check-form-on-blue .check-form-bar {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 8px 24px -6px rgba(255, 255, 255, 0.22),
        0 24px 50px -14px rgba(8, 18, 50, 0.30);
    border-color: rgba(255, 255, 255, 0.5);
}
.check-form-on-blue .check-form-bar:focus-within {
    border-color: #FFFFFF;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.30),
        0 8px 24px -6px rgba(255, 255, 255, 0.30),
        0 24px 50px -14px rgba(8, 18, 50, 0.32);
}
.check-form-on-blue:focus-within::before {
    opacity: 0.6;
    filter: blur(30px) saturate(1.2);
}
.check-form-on-blue .check-form-bar::after {
    background: radial-gradient(180px circle at var(--mx) var(--my),
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.55) 35%,
        transparent 65%);
}
@media (max-width: 640px) {
    .check-form-bar {
        flex-direction: column;
        gap: 8px;
    }
}

.check-input {
    width: 100%;
    padding: 16px 18px 16px 48px;
    border-radius: 10px;
    background: transparent;
    border: none;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}
.check-input:focus { outline: none; }
.check-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(14, 21, 37, 0.28);
    pointer-events: none;
    transition: color 140ms ease;
}
.check-input:focus + .check-input-icon,
.check-input:not(:placeholder-shown) + .check-input-icon {
    color: var(--violet);
}
.check-input::placeholder { color: rgba(14, 21, 37, 0.32); }
.check-input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(30, 111, 255, 0.12);
}

.check-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px;
    border-radius: 10px;
    background: linear-gradient(180deg, #3A8AFF 0%, #1052D9 100%);
    color: var(--cream);
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: filter 140ms ease, transform 80ms ease, box-shadow 140ms ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px -4px rgba(30, 111, 255, 0.45);
}
.check-submit:hover { filter: brightness(1.05); box-shadow: 0 6px 18px -4px rgba(30, 111, 255, 0.55); }
.check-submit:active { transform: scale(0.985); }
.check-submit:disabled { opacity: 0.6; cursor: wait; }
.check-submit-arrow { transition: transform 200ms ease; }
.check-submit:hover .check-submit-arrow { transform: translateX(3px); }

/* ─── result cards ───────────────────────────── */
.check-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 2px solid rgba(14, 21, 37, 0.06);
    position: relative;
    overflow: hidden;
    animation: card-in 500ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.check-card.is-pass { border-color: rgba(46, 139, 87, 0.18); }
.check-card.is-fail { border-color: rgba(226, 106, 106, 0.22); }
.check-card.is-inconclusive { border-color: rgba(217, 152, 41, 0.30); }
.check-card.is-pass::before,
.check-card.is-fail::before,
.check-card.is-inconclusive::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.check-card.is-pass::before { background: var(--forest); }
.check-card.is-fail::before { background: var(--coral); }
.check-card.is-inconclusive::before { background: #D99829; }
.check-card.is-inconclusive .check-card-icon { background: rgba(217, 152, 41, 0.16); color: #B8741A; }
@keyframes card-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.check-card:nth-child(1) { animation-delay: 0ms; }
.check-card:nth-child(2) { animation-delay: 80ms; }
.check-card:nth-child(3) { animation-delay: 160ms; }
.check-card:nth-child(4) { animation-delay: 240ms; }
.check-card:nth-child(5) { animation-delay: 320ms; }

.check-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.check-card-head-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Порядковый номер чекера (1..5) — небольшая нейтральная плашка
   слева от заголовка; виден и в свёрнутой, и в раскрытой карточке. */
.check-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 24, 40, 0.06);
    color: var(--ink-soft);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.check-card.is-pass .check-card-num { background: rgba(46, 139, 87, 0.10); color: var(--forest); }
.check-card.is-fail .check-card-num { background: rgba(226, 106, 106, 0.12); color: var(--coral); }
.check-card.is-inconclusive .check-card-num { background: rgba(217, 152, 41, 0.14); color: #B8741A; }

/* Notification-style badge — отображается ТОЛЬКО на мобиле, поверх
   правого-верхнего угла иконки. На десктопе скрыт (там номер inline). */
.check-card-icon { position: relative; }
.check-card-num-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #FFFFFF;
    letter-spacing: 0.01em;
}
.check-card.is-pass .check-card-num-badge { background: var(--forest); }
.check-card.is-fail .check-card-num-badge { background: var(--coral); }
.check-card.is-inconclusive .check-card-num-badge { background: #B8741A; }

@media (max-width: 640px) {
    /* На мобиле — inline-номер прячем, показываем notification-badge */
    .check-card-num { display: none; }
    .check-card-num-badge { display: inline-flex; align-items: center; justify-content: center; }
}
.check-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.check-card.is-pass .check-card-icon { background: var(--forest-soft); color: var(--forest); }
.check-card.is-fail .check-card-icon { background: rgba(226, 106, 106, 0.15); color: var(--coral); }

.check-card-fine {
    flex-shrink: 0;
    text-align: right;
    padding-left: 16px;
    border-left: 1px solid rgba(15, 24, 40, 0.08);
    min-width: 110px;
}
.check-card-fine-min {
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}
.check-card-fine-max {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--coral);
    white-space: nowrap;
}
.check-card-fine.is-saved .check-card-fine-max {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(46, 139, 87, 0.5);
    opacity: 0.55;
}
.check-card-fine.is-saved .check-card-fine-min {
    text-decoration: line-through;
    opacity: 0.6;
}
.check-card-fine-label {
    font-size: 10.5px;
    color: var(--ink-soft);
    margin-top: 4px;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.check-card-fine.is-saved .check-card-fine-label {
    color: var(--forest);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 10px;
}
.check-card-fine.is-na {
    text-align: right;
    padding-left: 16px;
    border-left: 1px solid rgba(15, 24, 40, 0.08);
    color: var(--ink-soft);
    font-size: 11.5px;
    align-self: center;
}
.check-card-fine.is-note { max-width: 220px; }
.check-card-fine.is-note .check-card-fine-min {
    text-decoration: none;
    opacity: 1;
}
.check-card-fine-big {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--coral);
}
.check-card-fine.is-note.is-saved .check-card-fine-big {
    color: var(--ink-soft);
}
.check-card-fine.is-note .check-card-fine-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 10px;
    margin-top: 4px;
}
.check-card-fine.is-note.is-saved .check-card-fine-label { color: var(--forest); }
.check-card-fine.is-note.is-due .check-card-fine-label { color: var(--coral); }
@media (max-width: 640px) {
    .check-card-head { flex-direction: column; gap: 12px; }
    .check-card-fine { padding-left: 0; border-left: none; border-top: 1px solid rgba(15, 24, 40, 0.08); padding-top: 10px; text-align: left; min-width: 0; width: 100%; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .check-card-fine-min { order: 2; }
    .check-card-fine-max { order: 1; font-size: 18px; }
    .check-card-fine-label { order: 3; margin-top: 0; }
}

.check-card-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.severity-badge {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.severity-critical { background: rgba(226, 106, 106, 0.15); color: var(--coral); }
.severity-warning  { background: rgba(229, 166, 40, 0.2);  color: var(--gold-deep); }
.severity-info     { background: rgba(14, 21, 37, 0.08);   color: var(--ink-soft); }

.finding {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(14, 21, 37, 0.06);
    align-items: flex-start;
}
.finding:first-of-type { border-top: none; padding-top: 16px; }
.finding-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.finding-icon.is-ok { background: var(--forest-soft); color: var(--forest); }
.finding-icon.is-fail { background: rgba(226, 106, 106, 0.15); color: var(--coral); }
.finding-text { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.finding-law {
    display: inline-block;
    margin-left: 6px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: 0.03em;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(30, 111, 255, 0.1);
    color: var(--violet);
    vertical-align: middle;
}

.recommendation {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(255, 200, 87, 0.18);
    border-left: 3px solid var(--gold-deep);
    border-radius: 12px;
}
.recommendation-label {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 6px;
}
.recommendation-text { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ─── CTA tier cards (Tier 1 vs Tier 3) ──────── */
.cta-tier {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.cta-tier-paid {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF7EE 100%);
    border-color: var(--violet);
    border-width: 2px;
    box-shadow: 0 4px 24px -12px rgba(30, 111, 255, 0.18);
}
.cta-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--violet);
    color: var(--cream);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
}
.cta-tier-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.005em;
    margin: 4px 0 14px;
}
.cta-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.cta-price-value {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.cta-price-unit {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-soft);
}
.cta-tier-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.cta-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line-soft);
}
.cta-list li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 8px 0 8px 26px;
    position: relative;
}
.cta-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--violet);
    border-bottom: 2px solid var(--violet);
    transform: rotate(-45deg);
}
.cta-tier-button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 14px;
    background: var(--violet);
    color: var(--cream);
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 140ms ease, transform 80ms ease;
}
.cta-tier-button:hover { background: var(--violet-deep); }
.cta-tier-button:active { transform: scale(0.99); }
.cta-tier-button:disabled { opacity: 0.6; cursor: wait; }
.cta-tier-button-secondary {
    background: transparent;
    color: var(--violet);
    border: 2px solid var(--violet);
}
.cta-tier-button-secondary:hover { background: rgba(30, 111, 255, 0.06); }

/* ─── CTA buttons ────────────────────────────── */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 26px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--ink-soft);
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background 140ms ease, transform 80ms ease;
    cursor: pointer;
    border: none;
}
.cta-button:hover { background: var(--gold-deep); }
.cta-button:active { transform: scale(0.98); }

.lead-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--violet);
    color: var(--cream);
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background 140ms ease;
    cursor: pointer;
    border: none;
}
.lead-submit:hover { background: var(--violet-deep); }
.lead-submit:disabled { opacity: 0.6; cursor: wait; }

/* ─── form fields ────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Onest', system-ui, sans-serif;
}
.form-field input,
.form-field textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: var(--cream-deep);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 140ms ease, background 140ms ease;
    width: 100%;
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(14, 21, 37, 0.32); }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: white;
}
.form-field.has-error input,
.form-field.has-error textarea {
    border-color: var(--coral);
    background: rgba(226, 106, 106, 0.04);
}
.form-error {
    font-size: 12px;
    color: var(--coral);
    min-height: 14px;
    display: block;
}

/* ─── step cards ─────────────────────────────── */
/* ─── how-it-works: horizontal-flow steps with connecting line ─── */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
    position: relative;
}
/* Единая непрерывная линия позади всех иконок — от центра первой до центра
   последней. С 4 колонок: центр первой колонки = 1/8 ширины, последней = 7/8. */
.hiw-steps::before {
    content: '';
    position: absolute;
    top: 36px;  /* центр иконки 72×72 */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: rgba(30, 111, 255, 0.18);
    z-index: 0;
    pointer-events: none;
}
.hiw-step {
    text-align: center;
    padding: 0 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hiw-step-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.hiw-step-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid rgba(30, 111, 255, 0.18);
    color: var(--violet);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px -10px rgba(30, 111, 255, 0.30), 0 2px 4px rgba(15, 24, 40, 0.04);
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}
.hiw-step-icon svg { width: 32px; height: 32px; }
.hiw-step:hover .hiw-step-icon {
    transform: translateY(-3px);
    border-color: var(--violet);
    box-shadow: 0 14px 28px -10px rgba(30, 111, 255, 0.45), 0 2px 6px rgba(15, 24, 40, 0.06);
}
/* Соединительные линии теперь рисуются единой полосой через ::before на
   .hiw-steps выше — никаких per-step lines больше не нужно. */
.hiw-step-line { display: none; }
.hiw-step-label {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.hiw-step-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 10px;
}
.hiw-step-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 14px;
}
.hiw-step-link {
    color: var(--violet);
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 255, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 200ms ease;
}
.hiw-step-link:hover {
    text-decoration-color: var(--violet);
}
.hiw-step-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(30, 111, 255, 0.10);
    color: var(--violet);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: auto;
    align-self: center;
}
@media (max-width: 900px) {
    .hiw-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    /* Линия из ::before работает только в одной строке — на 2×2 скрываем */
    .hiw-steps::before { display: none; }
}
@media (max-width: 500px) {
    .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
    .hiw-step-icon { width: 64px; height: 64px; }
    .hiw-step-icon svg { width: 28px; height: 28px; }
    .hiw-step-title { font-size: 18px; }
}

/* ─── flat checks list (13 items, expandable) ── */
.checks-list {
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
.check-row {
    border-top: 1px solid var(--line-soft);
}
.check-row:first-child { border-top: none; }

.check-row-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background 140ms ease;
}
.check-row-summary:hover { background: rgba(30, 111, 255, 0.025); }
.check-row-summary:focus-visible {
    outline: none;
    background: rgba(30, 111, 255, 0.04);
    box-shadow: inset 3px 0 0 var(--violet);
}

/* Пилюля-номер — единый стиль с .check-card-num на странице результата. */
.check-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(15, 24, 40, 0.06);
    color: var(--ink-soft);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}
.check-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    min-width: 0;
}
.check-law {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(30, 111, 255, 0.08);
    color: var(--violet);
    white-space: nowrap;
    flex-shrink: 0;
}
.check-risk {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(226, 106, 106, 0.13);
    color: #A93838;
    white-space: nowrap;
    flex-shrink: 0;
}
.check-status {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.check-available { background: var(--forest-soft); color: var(--forest); }
.check-soon { background: rgba(14, 21, 37, 0.05); color: rgba(14, 21, 37, 0.55); }

.check-chevron {
    flex-shrink: 0;
    color: rgba(14, 21, 37, 0.4);
    transition: transform 220ms ease, color 140ms ease;
    margin-left: 4px;
}
.check-row.is-open .check-chevron {
    transform: rotate(180deg);
    color: var(--violet);
}

.check-row-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.check-row.is-open .check-row-body {
    grid-template-rows: 1fr;
}
.check-row-body-inner { overflow: hidden; }
.check-row-body p {
    margin: 0;
    padding: 0 26px 22px 64px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 760px;
}

.check-group-divider {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 10px 26px;
    font-family: 'Onest', system-ui, sans-serif;
    background: rgba(14, 21, 37, 0.025);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.check-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(14, 21, 37, 0.62);
}
.check-group-price {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--violet);
    white-space: nowrap;
}
.check-group-price::before {
    content: '·';
    margin-right: 8px;
    color: rgba(14, 21, 37, 0.3);
    font-weight: 400;
}
.check-tier-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
}
.check-tier-card-body {
    flex: 1;
}
.check-tier-card-body p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    max-width: 640px;
}
.check-tier-card-link {
    color: var(--violet);
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 255, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 200ms ease;
}
.check-tier-card-link:hover {
    text-decoration-color: var(--violet);
}
.check-tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: var(--violet);
    color: var(--cream);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 180ms ease, transform 180ms ease;
}
.check-tier-cta:hover {
    background: #1a5fe0;
    transform: translateY(-1px);
}
@media (max-width: 720px) {
    .check-tier-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 18px;
    }
    .check-tier-cta {
        align-self: flex-start;
    }
    .check-group-divider {
        padding: 10px 18px;
    }
}

@media (max-width: 720px) {
    .check-row-summary {
        flex-wrap: wrap;
        row-gap: 8px;
        padding: 16px 18px;
    }
    /* Тёмный pill на мобильной — контрастнее на узком экране. */
    .check-num {
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        font-size: 11px;
        background: var(--ink);
        color: #FFFFFF;
    }
    /* На мобильной: row 1 = [num] [title], row 2 = [risk][law][chevron].
       flex-basis: calc(100% - 50px) — title съедает почти всю ширину минус
       место под num (22+gap), заставляет risk/law перенестись. */
    .check-title {
        flex: 1 1 calc(100% - 50px);
        min-width: 0;
        order: 2;
        font-size: 14.5px;
    }
    .check-law, .check-risk, .check-status {
        order: 3;
    }
    .check-chevron {
        order: 4;
        margin-left: auto;
    }
    .check-row-body p { padding: 0 18px 18px 18px; }
}

/* ─── skeleton loader ────────────────────────── */
.skeleton-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 2px solid rgba(14, 21, 37, 0.06);
    position: relative;
    overflow: hidden;
}
.skeleton-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(30, 111, 255, 0.06), transparent);
    animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skeleton-line {
    background: rgba(14, 21, 37, 0.08);
    border-radius: 6px;
    height: 14px;
}

/* ─── industry bridge ────────────────────────── */
.industry-bridge {
    background: var(--cream);
    border: 1.5px solid var(--violet);
    border-radius: 18px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.industry-bridge::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 220px;
    background: radial-gradient(closest-side, rgba(30, 111, 255, 0.07), transparent);
    pointer-events: none;
}
.industry-bridge-num {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    color: var(--violet);
    line-height: 0.9;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}
.industry-bridge-text {
    flex: 1;
    min-width: 280px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.industry-bridge-text strong {
    color: var(--ink);
    font-weight: 700;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 17px;
    letter-spacing: -0.005em;
}
.industry-bridge-extra {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(14, 21, 37, 0.55);
}
.industry-bridge-extra em {
    font-style: normal;
    color: var(--violet);
    font-weight: 600;
}
.industry-bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(30, 111, 255, 0.08);
    color: var(--violet);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 140ms ease;
    flex-shrink: 0;
    z-index: 1;
}
.industry-bridge-link:hover { background: rgba(30, 111, 255, 0.14); }

/* ─── industry cards ─────────────────────────── */
.industry-card {
    position: relative;
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
    transition: border-color 160ms ease, transform 160ms ease;
}
.industry-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.industry-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.industry-card:hover {
    border-color: rgba(30, 111, 255, 0.25);
    transform: translateY(-2px);
}
.industry-card-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--cream-deep);
    color: var(--ink-soft);
    cursor: pointer;
    transition: transform 220ms ease, background 160ms ease, color 160ms ease;
    z-index: 1;
}
.industry-card-toggle:hover { background: rgba(30, 111, 255, 0.10); color: var(--violet); }
.industry-card.is-open .industry-card-toggle { transform: rotate(180deg); }
@media (max-width: 768px) {
    .industry-card { padding: 22px 22px 20px; cursor: pointer; }
    .industry-card-toggle { display: inline-flex; }
    .industry-card .industry-items {
        max-height: 0;
        overflow: hidden;
        border-top-width: 0;
        padding-top: 0;
        transition: max-height 320ms ease, border-top-width 320ms ease, padding-top 320ms ease;
    }
    .industry-card.is-open .industry-items {
        max-height: 800px;
        border-top-width: 1px;
        padding-top: 14px;
    }
    .industry-card .industry-subtitle { margin-bottom: 0; }
    .industry-card.is-open .industry-subtitle { margin-bottom: 0; }
}
.industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(30, 111, 255, 0.08);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-bottom: 0;
    color: var(--violet);
}
.industry-icon svg { width: 26px; height: 26px; display: block; }
.industry-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.industry-subtitle {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.industry-items {
    list-style: none;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--line-soft);
}
.industry-items li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
    padding: 6px 0 6px 18px;
    position: relative;
}
.industry-items li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--violet);
    opacity: 0.6;
}

/* stats-strip removed — stats now live as floating cards on the hero photo */

/* legacy .stats-block kept for any other usage but unused now */
.stats-block { display: none; }
.stat-number.is-violet { color: var(--violet); }
.stat-number.is-coral  { color: var(--coral); }
.stat-number.is-forest { color: var(--forest); }
.stat-number.is-tick {
    animation: stat-tick 700ms ease;
}
@keyframes stat-tick {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.stat-label {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    margin-top: 16px;
}
.stat-hint {
    font-size: 12px;
    font-weight: 500;
    color: rgba(14, 21, 37, 0.45);
    margin-top: 6px;
}
@media (max-width: 720px) {
    .stats-block { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
    .stat:nth-child(even) { border-right: none; }
    .stat:nth-child(3),
    .stat:nth-child(4) { border-top: 1px solid var(--line-soft); }
    .stat { padding: 22px 14px 20px; }
    .stat-number { font-size: clamp(26px, 7.5vw, 38px); }
}

/* ─── articles block (главная и отчёт перед футером + страницы /articles) ── */
.articles-section { background: var(--cream-deep); }
.articles-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}
.articles-head-text {
    flex: 1;
    min-width: 280px;
}
.articles-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--violet);
    text-decoration: none;
    white-space: nowrap;
}
.articles-all-link:hover { text-decoration: underline; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.articles-grid-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
@media (max-width: 900px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid-page { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 20px;
    border: 1.5px solid rgba(15, 24, 40, 0.08);
    border-radius: 18px;
    background: var(--cream);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.article-card:hover {
    border-color: rgba(30, 111, 255, 0.30);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 24, 40, 0.05);
}
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-card-cat {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(30, 111, 255, 0.10);
    color: var(--violet);
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.article-card-time {
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 500;
}
.article-card-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
}
.article-card-excerpt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    flex: 1;
}
.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
}
.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(14, 21, 37, 0.06);
}
.article-card-date {
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* ─── /articles index page ─────────────────────── */
.articles-page-head {
    text-align: center;
    margin-bottom: 36px;
}
.articles-page-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 6px 0 12px;
    color: var(--ink);
}
.articles-page-sub {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── /articles/:slug single article page ─────── */
.article-page { background: var(--cream); }
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.article-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--violet); }
.article-breadcrumb-current { color: var(--ink); font-weight: 500; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.article-meta time { font-size: 12px; color: var(--ink-soft); }
.article-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4.2vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    color: var(--ink);
}
.article-body {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink);
}
.article-body .article-lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 24px;
    font-weight: 500;
}
.article-body h2 {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 36px 0 14px;
    color: var(--ink);
}
.article-body h3 {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 19px;
    margin: 28px 0 10px;
    color: var(--ink);
}
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
    margin-bottom: 8px;
    line-height: 1.55;
    padding-left: 4px;
}
.article-body li::marker { color: var(--violet); }

/* Чек-лист — список с галочками вместо стандартных маркеров.
   Применять к <ol> или <ul> с классом .article-checklist в EJS body. */
.article-body .article-checklist {
    list-style: none;
    padding-left: 0;
}
.article-body .article-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}
.article-body .article-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: rgba(30, 111, 255, 0.12);
    border: 1.5px solid var(--violet);
}
.article-body .article-checklist li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 6px;
    height: 10px;
    border: solid var(--violet);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.article-body .article-checklist li::marker { content: ''; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body code {
    background: rgba(15, 24, 40, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, monospace;
}

/* Цитата из официального источника (закон, разъяснение регулятора,
   эксперт). Используется в статьях через <blockquote class="article-quote" cite="...">.
   Атрибут cite даёт машиночитаемую ссылку — это сигнал для LLM и Google. */
.article-body .article-quote {
    margin: 24px 0 24px;
    padding: 18px 20px 18px 24px;
    background: linear-gradient(
        180deg,
        rgba(30, 111, 255, 0.04) 0%,
        rgba(30, 111, 255, 0.02) 100%
    );
    border-left: 3px solid var(--violet);
    border-radius: 4px 12px 12px 4px;
    position: relative;
}
.article-body .article-quote::before {
    content: '“';
    position: absolute;
    top: -4px;
    left: 10px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    color: rgba(30, 111, 255, 0.18);
}
.article-body .article-quote p {
    margin: 0 0 10px;
    font-style: italic;
    color: var(--ink);
    line-height: 1.6;
}
.article-body .article-quote p:last-child {
    margin-bottom: 0;
}
.article-body .article-quote footer {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--ink-soft);
    font-style: normal;
}
.article-body .article-quote cite {
    font-style: normal;
}
.article-body .article-quote cite a {
    color: var(--violet);
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 255, 0.35);
    text-underline-offset: 2px;
}
.article-body .article-quote cite a:hover {
    text-decoration-color: var(--violet);
}

/* ─── ВИДЖЕТ «Полезна ли статья» ────────────────────────────── */
.article-helpful {
    margin: 40px 0 0;
    padding: 24px 28px;
    background: var(--cream-deep);
    border: 1px solid rgba(14, 21, 37, 0.08);
    border-radius: 16px;
    text-align: center;
}
.article-helpful-heading {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -0.005em;
}
.article-helpful-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.article-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    border: 1.5px solid rgba(14, 21, 37, 0.12);
    border-radius: 12px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 140ms ease;
    min-width: 110px;
    justify-content: center;
}
.article-helpful-btn:hover:not(:disabled) {
    background: rgba(30, 111, 255, 0.04);
    border-color: rgba(30, 111, 255, 0.4);
    transform: translateY(-1px);
}
.article-helpful-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.article-helpful-btn.is-selected {
    background: var(--violet);
    color: var(--cream);
    border-color: var(--violet);
    opacity: 1;
}
.article-helpful-emoji {
    font-size: 18px;
    line-height: 1;
}
.article-helpful-comment {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.article-helpful-comment-label {
    text-align: left;
    font-size: 13.5px;
    color: var(--ink-soft);
}
.article-helpful-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(14, 21, 37, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: #fff;
    resize: vertical;
    min-height: 64px;
    transition: border-color 180ms ease;
}
.article-helpful-textarea:focus {
    outline: none;
    border-color: var(--violet);
}
.article-helpful-submit {
    align-self: flex-end;
    padding: 9px 18px;
    background: var(--violet);
    color: var(--cream);
    border: none;
    border-radius: 10px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease;
}
.article-helpful-submit:hover:not(:disabled) { background: #1a5fe0; }
.article-helpful-submit:disabled { opacity: 0.5; cursor: default; }
.article-helpful-thanks {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

/* FAQ-секция на главной/landing'ах (отличается от FAQ внутри статьи —
   шире, крупнее, под маркетинговый контекст). */
.page-faq-section { background: var(--cream-deep); }
.page-faq-head { margin-bottom: 36px; text-align: center; }
.page-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.page-faq-item {
    border: 1.5px solid rgba(15, 24, 40, 0.08);
    border-radius: 16px;
    background: var(--cream);
    overflow: hidden;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.page-faq-item:hover { border-color: rgba(30, 111, 255, 0.20); }
.page-faq-item[open] {
    border-color: rgba(30, 111, 255, 0.30);
    box-shadow: 0 6px 18px rgba(15, 24, 40, 0.04);
}
.page-faq-question {
    cursor: pointer;
    list-style: none;
    padding: 22px 60px 22px 24px;
    position: relative;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    color: var(--ink);
    transition: color 160ms ease;
}
.page-faq-question::-webkit-details-marker { display: none; }
.page-faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    color: var(--ink-soft);
    transition: transform 200ms ease, color 160ms ease;
    line-height: 1;
}
.page-faq-item[open] .page-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--violet);
}
.page-faq-question:hover { color: var(--violet); }
.page-faq-answer {
    padding: 0 24px 24px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.page-faq-answer p { margin: 0 0 12px; }
.page-faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
    .page-faq-question { padding: 18px 50px 18px 18px; font-size: 15.5px; }
    .page-faq-question::after { right: 18px; font-size: 24px; }
    .page-faq-answer { padding: 0 18px 20px; font-size: 14.5px; }
}

/* Author byline под H1 статьи */
.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 24px;
    margin: -8px 0 32px;
    border-bottom: 1px solid rgba(15, 24, 40, 0.08);
}
.article-author-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 111, 255, 0.10);
    display: grid;
    place-items: center;
}
.article-author-avatar svg { width: 28px; height: 28px; }
.article-author-info { min-width: 0; }
.article-author-name {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.2;
}
.article-author-bio {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: 2px;
}

/* FAQ-секция в статье */
.article-faq {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 24, 40, 0.08);
}
.article-faq-heading {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 18px;
    color: var(--ink);
}
.article-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-faq-item {
    border: 1px solid rgba(15, 24, 40, 0.10);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease;
}
.article-faq-item[open] {
    border-color: rgba(30, 111, 255, 0.25);
    background: rgba(30, 111, 255, 0.02);
}
.article-faq-question {
    cursor: pointer;
    list-style: none;
    padding: 16px 44px 16px 18px;
    position: relative;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    transition: color 160ms ease;
}
.article-faq-question::-webkit-details-marker { display: none; }
.article-faq-question::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--ink-soft);
    transition: transform 200ms ease, color 160ms ease;
    line-height: 1;
}
.article-faq-item[open] .article-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--violet);
}
.article-faq-question:hover { color: var(--violet); }
.article-faq-answer {
    padding: 0 18px 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.article-faq-answer p { margin: 0 0 10px; }
.article-faq-answer p:last-child { margin-bottom: 0; }

.article-cta {
    margin-top: 48px;
    padding: 28px 28px 30px;
    background: linear-gradient(135deg, rgba(30, 111, 255, 0.08) 0%, rgba(30, 111, 255, 0.03) 100%);
    border: 1.5px solid rgba(30, 111, 255, 0.18);
    border-radius: 20px;
    text-align: center;
}
.article-cta-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 16px;
}
.article-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    background: var(--violet);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}
.article-cta-button:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ─── reduce motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ─── COOKIE BANNER (152-ФЗ ст. 9) ───────────────────────────── */
/* HTML-атрибут [hidden] должен всегда скрывать элемент.
   Без этого правила любой класс с display:* перебивает [hidden]
   по специфичности (касается .cookie-modal, .cookie-banner,
   .article-helpful-comment, .article-helpful-thanks и т.д.). */
[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    background: #fff;
    border: 1px solid rgba(14, 21, 37, 0.12);
    border-radius: 14px;
    box-shadow:
        0 24px 48px -16px rgba(15, 24, 40, 0.22),
        0 4px 10px -2px rgba(15, 24, 40, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1), transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
}
.cookie-banner-link {
    color: var(--violet);
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 255, 0.4);
    text-underline-offset: 2px;
}
.cookie-banner-link:hover {
    text-decoration-color: var(--violet);
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
    white-space: nowrap;
}
.cookie-btn-primary {
    background: var(--violet);
    color: var(--cream);
}
.cookie-btn-primary:hover { background: #1a5fe0; }
.cookie-btn-outline {
    background: transparent;
    border-color: rgba(14, 21, 37, 0.16);
    color: var(--ink);
}
.cookie-btn-outline:hover {
    background: rgba(14, 21, 37, 0.04);
    border-color: rgba(14, 21, 37, 0.28);
}
.cookie-btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    padding: 10px 14px;
}
.cookie-btn-ghost:hover {
    color: var(--ink);
    background: rgba(14, 21, 37, 0.04);
}

/* ─── COOKIE MODAL ──────────────────────────────────────────── */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 24, 40, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.cookie-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 26px 28px;
    box-shadow:
        0 30px 60px -20px rgba(15, 24, 40, 0.4),
        0 8px 16px -4px rgba(15, 24, 40, 0.12);
}
.cookie-modal-title {
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.cookie-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cookie-modal-item {
    border-bottom: 1px solid rgba(14, 21, 37, 0.08);
}
.cookie-modal-item:last-child {
    border-bottom: none;
}
.cookie-modal-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
}
.cookie-modal-label.is-disabled {
    cursor: default;
    color: var(--ink-soft);
}
.cookie-modal-hint {
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 400;
}
.cookie-modal-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(14, 21, 37, 0.2);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
    flex-shrink: 0;
}
.cookie-modal-label input[type="checkbox"]:checked {
    background: var(--violet);
    border-color: var(--violet);
}
.cookie-modal-label input[type="checkbox"]:checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.cookie-modal-label input[type="checkbox"]:disabled {
    background: rgba(14, 21, 37, 0.1);
    border-color: rgba(14, 21, 37, 0.16);
    cursor: not-allowed;
}
.cookie-modal-label input[type="checkbox"]:disabled:checked {
    background: rgba(30, 111, 255, 0.5);
    border-color: rgba(30, 111, 255, 0.5);
}
.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .cookie-banner-inner {
        padding: 16px 18px;
        gap: 14px;
    }
    .cookie-banner-text {
        font-size: 13px;
    }
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        padding: 11px 14px;
        font-size: 13.5px;
    }
    .cookie-modal-card {
        padding: 22px 22px;
    }
}

/* ─── MOBILE MENU (≤ md) ──────────────────────────────────────── */
.mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(14, 21, 37, 0.10);
    border-radius: 10px;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}
.mobile-menu-toggle:hover { background: rgba(14, 21, 37, 0.04); border-color: rgba(14, 21, 37, 0.18); }
.mobile-menu-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease;
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    /* Overlay поверх контента — не сдвигает страницу. Header имеет
       position: sticky → меню absolute позиционируется относительно него. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    border-top: 1px solid rgba(14, 21, 37, 0.06);
    border-bottom: 1px solid rgba(14, 21, 37, 0.08);
    padding: 8px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--cream);
    box-shadow: 0 12px 24px -10px rgba(15, 24, 40, 0.18);
}
.mobile-menu a {
    display: block;
    padding: 13px 8px;
    font-family: 'Onest', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
    border-bottom: 1px solid rgba(14, 21, 37, 0.05);
    transition: color 180ms ease, padding-left 180ms ease;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a:active { color: var(--violet); padding-left: 12px; }
