/* SiteCheck.kz — общий стиль сайта */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #0b1324;
    --ink-2: #334055;
    --muted: #64708a;
    --line: #e4e9f2;
    --line-2: #d5dcea;

    --primary: #1f5eff;
    --primary-600: #1747d6;
    --primary-soft: #ebf1ff;
    --primary-ink: #0f3bb8;

    --good: #16a34a;
    --good-soft: #e7f7ed;
    --warn: #f59e0b;
    --warn-soft: #fff4dc;
    --warn-ink: #b45309;
    --bad: #ef4444;
    --bad-soft: #fdecec;
    --bad-ink: #c81e1e;

    --dark: #0a1226;
    --dark-2: #111b36;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08);
    --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 60px -12px rgba(22, 44, 110, .22);

    --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    height: 52px; padding: 0 24px;
    font: 600 16px/1 var(--font);
    border-radius: 14px; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: background .2s, box-shadow .2s, transform .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #3b74ff 0%, var(--primary) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -6px rgba(31, 94, 255, .55);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #3169f5 0%, var(--primary-600) 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 12px 26px -8px rgba(31, 94, 255, .6); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-outline { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); }
.btn-light { color: var(--dark); background: #fff; }
.btn-light:hover { color: var(--primary); background: #eef3ff; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Метки ---------- */
.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
    font-size: 12px; font-weight: 600; font-style: normal; line-height: 1;
    border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); white-space: nowrap;
}
.tag-good { background: var(--good-soft); color: var(--good); }
.tag-warn { background: var(--warn-soft); color: var(--warn-ink); }
.tag-bad { background: var(--bad-soft); color: var(--bad-ink); }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 247, 251, .8);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid rgba(228, 233, 242, .7);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
    color: #fff; background: linear-gradient(135deg, #3b74ff, #1639c4);
    box-shadow: 0 6px 14px -4px rgba(31, 94, 255, .5);
}
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo-text span { color: var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ink); background: rgba(15, 30, 70, .05); }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(31, 94, 255, .14), transparent 70%),
        radial-gradient(500px 360px at 10% 0%, rgba(90, 200, 250, .12), transparent 70%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(15, 30, 70, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 30, 70, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 12px; margin-bottom: 24px;
    font-size: 14px; font-weight: 500; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--good); opacity: .35; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .accent {
    background: linear-gradient(90deg, #1f5eff, #2f8cff 60%, #1f5eff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 580px; margin-bottom: 32px; }

.hero-form { max-width: 600px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; padding: 3px; color: var(--good); background: var(--good-soft); border-radius: 50%; stroke-width: 3; }

.alert {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px;
    color: var(--bad-ink); background: var(--bad-soft); border: 1px solid #f9caca; border-radius: var(--radius-sm);
}

/* ---------- Форма проверки ---------- */
.check-form { margin: 0; }
.check-form-row {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 8px; background: var(--surface);
    border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.check-form-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 94, 255, .14), var(--shadow); }
.check-form-icon { display: grid; place-items: center; padding-left: 10px; color: var(--muted); }
.check-form input[type=text] {
    flex: 1; min-width: 0; height: 52px; padding: 0 6px;
    font: 500 17px var(--font); color: var(--ink);
    background: transparent; border: 0; outline: none;
}
.check-form input::placeholder { color: #99a3b8; font-weight: 400; }
.check-form-note { margin: 12px 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.check-form-note a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
/* Статус отправки (создаётся в app.js) */
.check-form [role=status] { margin: 14px 4px 8px; font-size: 14px; color: var(--primary-ink); }
.check-form progress { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--primary-soft); overflow: hidden; }
.check-form progress::-webkit-progress-bar { background: var(--primary-soft); }
.check-form progress:indeterminate { background: linear-gradient(90deg, var(--primary-soft) 0 30%, var(--primary) 30% 60%, var(--primary-soft) 60%) 0 0 / 200% 100%; animation: bar 1.2s linear infinite; }
@keyframes bar { to { background-position: -200% 0; } }

/* ---------- Пример отчёта ---------- */
.hero-visual { position: relative; padding: 24px 8px 32px 24px; }
.report-card {
    position: relative; padding: 24px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 24px; box-shadow: var(--shadow-lg);
}
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-label { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.report-domain { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--primary); }
.report-domain .icon { width: 15px; height: 15px; }

.report-body { display: grid; grid-template-columns: 148px 1fr; gap: 24px; align-items: center; padding: 22px 0; }
.gauge { position: relative; width: 148px; height: 148px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.gauge-track { stroke: #eef1f6; }
.gauge-value { stroke: var(--warn); stroke-dasharray: 54 100; animation: gauge 1.4s cubic-bezier(.2, .8, .2, 1) both .2s; }
@keyframes gauge { from { stroke-dasharray: 0 100; } }
.gauge-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-text strong { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.gauge-text span { margin-top: 4px; font-size: 13px; color: var(--muted); }

.report-bars { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.report-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.report-bars b { font-weight: 700; }
.report-bars .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: #eef1f6; position: relative; overflow: hidden; }
.report-bars .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: currentColor; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both .3s; }
@keyframes grow { from { width: 0; } }
.c-good, .bar-good { color: var(--good); }
.c-warn, .bar-warn { color: var(--warn); }
.c-bad, .bar-bad { color: var(--bad); }

.report-fine {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff5f5, #ffecec); border: 1px solid #fbd5d5; border-radius: 16px;
}
.report-fine p { margin: 0 0 2px; font-size: 13px; color: var(--bad-ink); }
.report-fine strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.report-fine-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--bad); background: #fff; box-shadow: var(--shadow-sm); }

.report-fixes { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.report-fixes li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-size: 14px; color: var(--ink-2); }
.report-fixes li + li { border-top: 1px dashed var(--line); }
.fix-text { flex: 1; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 10px; font-size: 14px; font-weight: 600; color: var(--ink);
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.chip-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.chip-icon .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.chip-icon.good { color: var(--good); background: var(--good-soft); }
.chip-icon.bad { color: var(--bad); background: var(--bad-soft); }
.chip-a { top: 0; right: -12px; }
.chip-b { bottom: 4px; left: -8px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Цифры ---------- */
.stats { padding: 0 0 24px; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 0; overflow: hidden;
}
.stat { padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--muted); }
.stat-accent strong { color: var(--bad); }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, #eef2fa, #f5f7fb); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }
.kicker {
    display: inline-block; margin-bottom: 14px !important; font-size: 13px !important; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--primary) !important;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Что проверяем */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature-wide { grid-column: span 2; background: linear-gradient(135deg, #fff 55%, #f1f5ff); }
.feature h3 { font-size: 19px; font-weight: 700; margin: 18px 0 10px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.feature-icon {
    display: grid; place-items: center; width: 48px; height: 48px; flex: none;
    color: var(--primary); background: var(--primary-soft); border-radius: 14px;
}
.feature-icon .icon { width: 24px; height: 24px; }

/* Шаги */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps::before {
    content: ""; position: absolute; top: 44px; left: 12.5%; right: 12.5%; height: 2px;
    background: repeating-linear-gradient(90deg, #b9c9f5 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-icon {
    position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px;
    color: var(--primary); background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
    box-shadow: 0 0 0 8px #eef2fa, var(--shadow);
}
.step-icon .icon { width: 34px; height: 34px; stroke-width: 1.75; }
.step-num {
    position: absolute; top: -2px; right: -2px; display: grid; place-items: center;
    width: 28px; height: 28px; font-size: 13px; font-weight: 700; color: #fff;
    background: var(--primary); border: 3px solid #eef2fa; border-radius: 50%;
}
.step-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p:last-child { font-size: 15px; color: var(--muted); }

/* Для кого */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.audience-item { display: flex; gap: 18px; padding: 24px; }
.audience-item strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.audience-item p { margin: 0; font-size: 15px; color: var(--muted); }
.audience-cta {
    flex-direction: column; justify-content: center; gap: 12px;
    border: 1.5px dashed var(--line-2); border-radius: var(--radius);
}
.audience-cta p { margin: 0; color: var(--ink-2); }

/* Штрафы */
.section-dark {
    position: relative; overflow: hidden; color: #b7c1d9;
    background: radial-gradient(800px 400px at 90% 0%, rgba(31, 94, 255, .28), transparent 60%), var(--dark);
}
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #9aa6c3; }
.section-dark .kicker { color: #ff8a8a !important; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.fines-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fines-table th {
    padding: 16px 20px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #8190b3; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap;
}
.fines-table td { padding: 18px 20px; color: #e6ebf7; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.fines-table td:nth-child(n+3) { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.fines-table tr:last-child td { border-bottom: 0; }
.fines-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.fines-table .muted { color: #8b97b5; font-size: 14px; }
.fines-table .fine-max { color: #ff8a8a; }
.fines-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.section-dark .link-arrow { color: #fff; }
.section-dark .link-arrow:hover { color: #b9ccff; }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px; }
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.plan-price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-desc { color: var(--muted); padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-list { display: grid; align-content: start; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; flex: 1; }
.plan-list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.plan-list .icon { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; stroke-width: 3; color: var(--good); background: var(--good-soft); }
.plan-list li.off { color: #9aa3b5; }
.plan-list li.off .icon { color: #9aa3b5; background: #f0f2f6; }
.plan-list li.soon .icon { color: var(--primary); background: var(--primary-soft); stroke-width: 2.5; }
.plan-list .tag { height: 20px; margin-left: 6px; font-size: 11px; vertical-align: 1px; }
.plan .btn { width: 100%; }
.plan-pro {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #f5f8ff, #fff 40%);
    box-shadow: 0 30px 60px -20px rgba(31, 94, 255, .3);
}
.plan-pro .plan-name { color: var(--primary); }
.plan-badge {
    position: absolute; top: -15px; left: 36px; display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(90deg, #1f5eff, #6a4cff); border-radius: 999px; box-shadow: 0 8px 20px -6px rgba(31, 94, 255, .6);
}
.plan-badge .icon { width: 15px; height: 15px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 104px; margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq-toggle { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--primary); background: var(--primary-soft); border-radius: 50%; transition: transform .25s; }
.faq-toggle .icon { width: 18px; height: 18px; }
.faq details[open] .faq-toggle { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* Финальный CTA */
.cta-section { padding-top: 24px; }
.cta-box {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
    padding: 56px; border-radius: 28px; color: #d4defa;
    background:
        radial-gradient(500px 300px at 100% 100%, rgba(122, 92, 255, .45), transparent 60%),
        radial-gradient(500px 300px at 0% 0%, rgba(90, 170, 255, .35), transparent 60%),
        linear-gradient(135deg, #1f5eff, #1639c4);
    box-shadow: 0 30px 70px -24px rgba(31, 94, 255, .6);
}
.cta-box h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.cta-box p { margin: 0; font-size: 17px; }
.cta-box .check-form-row { border-color: transparent; box-shadow: 0 20px 40px -12px rgba(5, 15, 50, .45); }
.cta-box .check-form-note, .cta-box .check-form [role=status] { color: #c9d6ff; }
.cta-box .check-form-note a { text-decoration-color: rgba(255, 255, 255, .4); }

/* ---------- Подвал ---------- */
.site-footer { padding: 64px 0 32px; background: var(--surface); border-top: 1px solid var(--line); margin-top: 96px; font-size: 15px; }
.page-home .site-footer { margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a, .footer-company a { color: var(--ink-2); }
.site-footer nav a:hover, .footer-company a:hover { color: var(--primary); }
.footer-company p:last-child { color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Внутренние страницы (без отдельной вёрстки) ---------- */
.prose { max-width: 860px; padding-top: 56px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.prose h2 { font-size: 28px; font-weight: 800; margin-top: 56px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.prose p, .prose li { font-size: 17px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line) !important; border-radius: 14px; overflow: hidden; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f7f9fd; font-size: 13px; font-weight: 600; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose section { margin-top: 24px; }
.prose .check-form { margin: 24px 0; max-width: 640px; }
.prose > p[role=alert] { padding: 12px 16px; color: var(--bad-ink); background: var(--bad-soft); border-radius: var(--radius-sm); }
.prose input[type=text], .prose input[type=email], .prose input[type=url] {
    height: 48px; padding: 0 14px; font: 16px var(--font); border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
}
.prose button:not(.btn) {
    height: 48px; padding: 0 20px; font: 600 16px var(--font); color: #fff; background: var(--primary);
    border: 0; border-radius: 12px; cursor: pointer;
}
.prose button:not(.btn):hover { background: var(--primary-600); }
.prose details { padding: 14px 18px; margin: 10px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.prose img { border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: 680px; }
    .hero-visual { max-width: 560px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .feature-wide { grid-column: span 2; }
    .audience { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-grid .section-head { position: static; }
    .cta-box { grid-template-columns: 1fr; gap: 28px; padding: 44px; }
}
@media (max-width: 860px) {
    .main-nav { display: none; }
    .header-cta { margin-left: auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .steps::before { display: none; }
    .plans { grid-template-columns: 1fr; max-width: 520px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header-inner { height: 64px; }
    .logo-text { font-size: 18px; }
    .hero { padding: 40px 0 56px; }
    .lead { font-size: 16px; }
    .check-form-row { flex-wrap: wrap; padding: 6px; }
    .check-form-icon { display: none; }
    .check-form input[type=text] { height: 50px; padding: 0 12px; }
    .check-form .btn { width: 100%; }
    .hero-visual { padding: 20px 0 28px; }
    .report-card { padding: 18px; }
    .report-body { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
    .report-bars { width: 100%; }
    .report-fixes .tag { display: none; }
    .chip-a { right: -4px; }
    .chip-b { left: -4px; }
    .float-chip { font-size: 13px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 32px; }
    .bento, .audience { grid-template-columns: 1fr; }
    .feature-wide { grid-column: auto; }
    .feature { padding: 22px; }
    .stat { padding: 20px; }
    .stat strong { font-size: 24px; }
    .steps { grid-template-columns: 1fr; }
    .plan { padding: 28px 22px; }
    .plan-badge { left: 22px; }
    .fines-table thead { display: none; }
    .fines-table, .fines-table tbody, .fines-table tr, .fines-table td { display: block; }
    .fines-table tr { padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .fines-table td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; }
    .fines-table td::before { content: attr(data-label); color: #8190b3; font-weight: 400; }
    .fines-table td:first-child { display: block; font-weight: 600; margin-bottom: 6px; }
    .fines-table td:first-child::before { display: none; }
    .fines-table td:nth-child(n+3) { white-space: normal; }
    .fines-foot .btn { width: 100%; }
    .cta-box { padding: 32px 20px; border-radius: 22px; }
    .faq summary { padding: 16px 18px; }
    .faq summary h3 { font-size: 16px; }
    .faq details p { padding: 0 18px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Якоря: отступ под закреплённую шапку ---------- */
[id] { scroll-margin-top: 96px; }
#check { scroll-margin-top: 120px; }

/* ---------- Прелоадер (только при включённом JS) ---------- */
.preloader { display: none; }
.js .preloader {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
    background: var(--bg);
    transition: opacity .35s ease, visibility .35s;
    /* Страховка: если скрипт не сработал, прелоадер уйдёт сам */
    animation: preloader-out .35s ease 2.5s forwards;
}
.is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader-mark {
    position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px;
    color: #fff; background: linear-gradient(135deg, #3b74ff, #1639c4);
    box-shadow: 0 10px 24px -6px rgba(31, 94, 255, .55);
    animation: preloader-beat 1s ease-in-out infinite;
}
.preloader-mark .icon { width: 30px; height: 30px; }
.preloader-mark::after {
    content: ""; position: absolute; inset: -10px; border-radius: 24px;
    border: 2px solid rgba(31, 94, 255, .35); animation: preloader-ring 1s ease-out infinite;
}
@keyframes preloader-beat { 50% { transform: scale(.92); } }
@keyframes preloader-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Появление блоков при прокрутке ---------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Анимации примера отчёта стартуют, когда он появился */
.js .hero-visual:not(.is-visible) .gauge-value,
.js .hero-visual:not(.is-visible) .bar::after { animation-play-state: paused; }

/* ---------- FAQ: плавное раскрытие (высоту анимирует app.js) ---------- */
.faq details p { animation: faq-in .35s ease both; }
.faq details.is-closing p { animation: none; }
.faq details.is-closing .faq-toggle { transform: none; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
