/* ============================================================
   ProjectCheck KZ — лендинг kz.08plus.ru
   Premium visual design — docs/17 tokens + modern aesthetics
   Apple-минимализм · Manrope · без эмодзи (правила #10, #12)
   ============================================================ */

/* ---------- 1. Design Tokens (docs/17 §2) ---------- */
:root {
    /* Neutrals */
    --bg:           #FAFAF9;
    --surface:      #FFFFFF;
    --surface-warm: #F5F4F1;
    --border:       #E7E5E4;
    --border-soft:  #F1F0EE;

    /* Text */
    --text-1:       #1C1917;
    --text-2:       #57534E;
    --text-3:       #78716C;   /* затемнён vs приложения (#A8A29E) ради WCAG AA */

    /* Accent (blue) */
    --accent:       #2563EB;   /* blue-600: проходит AA */
    --accent-hover: #1D4ED8;   /* blue-700 */
    --brand-blue:   #3B82F6;   /* декоративный (точка) */
    --accent-soft:  #DBEAFE;
    --accent-bg:    #EFF6FF;

    /* Semantic */
    --success:      #10B981;
    --warning:      #F59E0B;

    /* Shadows */
    --shadow-1:     0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-2:     0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-3:     0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-glow:  0 4px 24px rgba(37, 99, 235, 0.15);

    /* Spacing */
    --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
    --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
    --space-24: 96px;

    /* Layout */
    --content-w: 1080px;
    --prose-w:   720px;
    --radius:    14px;

    /* Font */
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-1);
    background: var(--bg);
    font-feature-settings: "ss01" on, "cv11" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--space-6); }

/* ---------- 3. Keyframe Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: var(--shadow-1); }
    50%      { box-shadow: var(--shadow-glow); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- 4. Scroll Reveal System ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 var(--space-8);
    border: none; border-radius: 12px;
    font-family: var(--font); font-weight: 600; font-size: 16px;
    letter-spacing: -0.01em; cursor: pointer;
    transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap; text-decoration: none;
    position: relative; overflow: hidden;
}
.btn--primary {
    background: var(--accent); color: #fff;
    box-shadow: var(--shadow-1), 0 0 0 0 rgba(37, 99, 235, 0);
}
.btn--primary:hover {
    background: var(--accent-hover); color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-2), 0 4px 20px rgba(37, 99, 235, 0.25);
}
.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-1);
}
/* Shimmer effect on primary CTA */
.btn--primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    animation: gradientShift 4s ease infinite;
    pointer-events: none;
}

.btn--ghost {
    background: var(--surface); color: var(--text-1);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    background: var(--surface-warm); color: var(--text-1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}
.btn--sm { height: 40px; padding: 0 var(--space-6); font-size: 15px; }
.btn--disabled { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- 6. Focus Visible (a11y) ---------- */
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
.nav__burger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- 7. Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid rgba(231, 229, 228, 0.6);
    transition: background 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled {
    background: rgba(250, 250, 249, 0.95);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: inline-flex; align-items: center;
    font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
    color: var(--text-1); text-decoration: none;
    transition: opacity 200ms ease;
}
.brand:hover { opacity: 0.8; color: var(--text-1); }
.brand__dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand-blue); margin-right: 10px;
    transition: transform 300ms ease;
}
.brand:hover .brand__dot { transform: scale(1.3); }
.nav__links {
    display: flex; align-items: center;
    gap: var(--space-6); margin-left: auto; margin-right: var(--space-6);
}
.nav__links a:not(.btn) {
    color: var(--text-2); font-size: 15px; font-weight: 500;
    transition: color 150ms ease;
    position: relative;
}
.nav__links a:not(.btn)::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
    transform: scaleX(0); transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.nav__links a:not(.btn):hover { color: var(--text-1); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__burger {
    display: none; flex-direction: column; gap: 5px;
    width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 8px; border: none; background: transparent; cursor: pointer;
    transition: background 150ms ease;
}
.nav__burger span {
    width: 20px; height: 2px; background: var(--text-1); border-radius: 2px;
    transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__burger:hover { background: var(--border-soft); }
/* Burger X animation */
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- 8. Hero ---------- */
.hero {
    padding: var(--space-24) 0 var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Subtle radial gradient background */
.hero::before {
    content: '';
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 120%; max-width: 900px; aspect-ratio: 1;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__eyebrow {
    display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    color: var(--accent); background: var(--accent-bg);
    border: 1px solid var(--accent-soft);
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.hero h1 {
    font-size: 52px; line-height: 1.08; font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 760px; margin: 0 auto var(--space-6);
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    /* Subtle gradient text */
    background: linear-gradient(135deg, var(--text-1) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p.lead {
    font-size: 20px; color: var(--text-2);
    max-width: 620px; margin: 0 auto var(--space-8);
    line-height: 1.5;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero__cta {
    display: flex; gap: var(--space-3);
    justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero__note {
    margin-top: var(--space-4); font-size: 14px; color: var(--text-3);
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* Hero visual — mini chat interface mockup */
.hero__visual {
    margin-top: var(--space-12);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.hero__mockup {
    max-width: 640px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3), 0 32px 64px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.hero__mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}
.hero__mockup-dots {
    display: flex; gap: 6px;
}
.hero__mockup-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border);
}
.hero__mockup-title {
    font-size: 13px; font-weight: 600; color: var(--text-2);
    margin-left: 8px;
}
.hero__mockup-body {
    padding: var(--space-6);
}
.hero__mockup-msg {
    display: flex; gap: 12px; margin-bottom: var(--space-4);
    animation: fadeIn 0.4s ease both;
}
.hero__mockup-msg:nth-child(2) { animation-delay: 0.8s; }
.hero__mockup-msg:nth-child(3) { animation-delay: 1.6s; }
.hero__mockup-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.hero__mockup-avatar--user {
    background: var(--accent-bg); color: var(--accent);
}
.hero__mockup-avatar--bot {
    background: var(--surface-warm); color: var(--text-2);
}
.hero__mockup-bubble {
    padding: 10px 14px; border-radius: 12px;
    font-size: 14px; line-height: 1.5;
    max-width: 80%;
}
.hero__mockup-bubble--user {
    background: var(--accent); color: #fff;
    border-bottom-left-radius: 4px;
}
.hero__mockup-bubble--bot {
    background: var(--surface-warm); color: var(--text-2);
    border-bottom-left-radius: 4px;
}
.hero__mockup-bubble .cite {
    display: inline-block; margin-top: 6px;
    padding: 2px 8px; border-radius: 6px;
    background: var(--accent-bg); color: var(--accent);
    font-size: 12px; font-weight: 600;
}

/* ---------- 9. Sections (shared) ---------- */
section { padding: var(--space-16) 0; }
.section-head {
    text-align: center; max-width: 640px;
    margin: 0 auto var(--space-12);
}
.section-head h2 {
    font-size: 34px; font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}
.section-head p { font-size: 18px; color: var(--text-2); }
.muted { color: var(--text-2); }

/* ---------- 10. Problem Section ---------- */
.problem { background: var(--surface-warm); }
.problem__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.problem__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.problem__card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent);
    opacity: 0;
    transition: opacity 350ms ease;
    pointer-events: none;
}
.problem__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--accent-soft);
}
.problem__card:hover::before { opacity: 1; }
.problem__card h3 { font-size: 17px; margin-bottom: var(--space-2); }
.problem__card p { color: var(--text-2); font-size: 15px; }

/* ---------- 11. Steps Section ---------- */
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8); counter-reset: step;
}
.step {
    text-align: center;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.step:hover { transform: translateY(-4px); }
.step__num {
    counter-increment: step;
    width: 52px; height: 52px; margin: 0 auto var(--space-4);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-bg); color: var(--accent);
    border: 2px solid var(--accent-soft);
    font-weight: 700; font-size: 20px;
    transition: all 350ms ease;
}
.step:hover .step__num {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: var(--space-2); }
.step p { color: var(--text-2); font-size: 15px; }
/* Connector lines between steps (desktop) */
.steps__connector {
    display: none; /* shown in specific layout via ::after on steps container */
}

/* ---------- 12. Features Section ---------- */
.features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    box-shadow: var(--shadow-1);
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--accent-soft);
}
.feature:hover::before { transform: scaleX(1); }
.feature h3 {
    font-size: 17px; margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}
.feature p { color: var(--text-2); font-size: 15px; }

/* ---------- 13. Demo Section ---------- */
.demo { background: var(--surface-warm); }
.demo__frame {
    max-width: var(--prose-w); margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3), 0 24px 48px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.demo__frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3), 0 32px 64px rgba(0, 0, 0, 0.08);
}
.demo__bar {
    display: flex; align-items: center; gap: 6px;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(245, 244, 241, 0.5), transparent);
}
.demo__bar span {
    width: 11px; height: 11px;
    border-radius: 50%; background: var(--border);
}
.demo__body { padding: var(--space-8); }
.demo__q { font-weight: 600; margin-bottom: var(--space-4); }
.demo__a { color: var(--text-2); }
.demo__a .cite {
    display: inline-block; margin-top: var(--space-3);
    padding: 2px 8px; border-radius: 6px;
    background: var(--accent-bg); color: var(--accent);
    font-size: 13px; font-weight: 600;
    transition: all 250ms ease;
}
.demo__a .cite:hover {
    background: var(--accent); color: #fff;
}

/* Typing indicator */
.demo__typing {
    display: flex; align-items: center; gap: 4px;
    margin-top: var(--space-3); padding: 8px 14px;
    background: var(--surface-warm); border-radius: 12px;
    width: fit-content;
}
.demo__typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--text-3);
    animation: typingDot 1.4s infinite ease-in-out;
}
.demo__typing span:nth-child(2) { animation-delay: 0.2s; }
.demo__typing span:nth-child(3) { animation-delay: 0.4s; }

/* ---------- 14. Pricing Section ---------- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: var(--space-6); justify-content: center;
}
.plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-8);
    display: flex; flex-direction: column;
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}
.plan--pro {
    border-color: var(--accent);
    box-shadow: var(--shadow-2);
    position: relative;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.3), var(--surface));
}
.plan--pro:hover {
    box-shadow: var(--shadow-3), var(--shadow-glow);
}
.plan__badge {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent); color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 16px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.plan h3 { font-size: 20px; margin-bottom: var(--space-2); }
.plan__price {
    font-size: 36px; font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: var(--space-1);
}
.plan__price small { font-size: 16px; font-weight: 600; color: var(--text-3); }
.plan__sub { color: var(--text-2); font-size: 14px; margin-bottom: var(--space-6); }
.plan ul { list-style: none; margin-bottom: var(--space-8); flex: 1; }
.plan li {
    padding: var(--space-2) 0; color: var(--text-2);
    font-size: 15px; border-bottom: 1px solid var(--border-soft);
    display: flex; align-items: center; gap: 8px;
}
.plan li:last-child { border-bottom: none; }
/* Checkmark for plan items */
.plan li::before {
    content: '✓';
    color: var(--success); font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}

/* ---------- 15. Trust Section ---------- */
.trust { text-align: center; }
.trust__stats {
    display: flex; justify-content: center;
    gap: var(--space-16); flex-wrap: wrap;
    margin-bottom: var(--space-12);
}
.trust__stat-block {
    transition: transform 300ms ease;
}
.trust__stat-block:hover { transform: scale(1.05); }
.stat__num {
    font-size: 48px; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-1);
    line-height: 1;
    margin-bottom: var(--space-1);
    /* Gradient text for numbers */
    background: linear-gradient(135deg, var(--text-1) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat__label { color: var(--text-2); font-size: 15px; }
.quotes {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6); max-width: var(--prose-w);
    margin: 0 auto;
}
.quote {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-6); text-align: left;
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.quote::before {
    content: '"'; position: absolute; top: 16px; left: 20px;
    font-size: 48px; font-weight: 800; line-height: 1;
    color: var(--accent-soft); pointer-events: none;
}
.quote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-1);
    border-color: var(--accent-soft);
}
.quote p {
    font-size: 15px; margin-bottom: var(--space-3);
    position: relative; z-index: 1;
    padding-left: var(--space-6);
}
.quote span {
    color: var(--text-3); font-size: 14px;
    padding-left: var(--space-6);
}

/* ---------- 16. FAQ Section ---------- */
.faq { max-width: var(--prose-w); margin: 0 auto; }
.faq details {
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    transition: background 200ms ease;
}
.faq details[open] {
    background: rgba(239, 246, 255, 0.3);
    margin: 0 calc(-1 * var(--space-4));
    padding: var(--space-4);
    border-radius: 12px;
    border-bottom-color: transparent;
}
.faq summary {
    font-weight: 600; font-size: 17px;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-2) 0;
    transition: color 150ms ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; color: var(--text-3);
    font-size: 22px; font-weight: 400;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--surface-warm);
    flex-shrink: 0;
    transition: all 300ms ease;
}
.faq details[open] summary::after {
    content: "\2212";
    background: var(--accent-bg); color: var(--accent);
    transform: rotate(180deg);
}
.faq details p {
    color: var(--text-2); margin-top: var(--space-3);
    animation: fadeIn 0.3s ease;
}

/* ---------- 17. Disclaimer Section ---------- */
.disclaimer { background: var(--surface-warm); }
.disclaimer__box {
    max-width: var(--prose-w); margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--warning); border-left-width: 4px;
    border-radius: var(--radius);
    padding: var(--space-6) var(--space-8);
    transition: box-shadow 300ms ease;
}
.disclaimer__box:hover { box-shadow: var(--shadow-1); }
.disclaimer__box h3 { font-size: 17px; margin-bottom: var(--space-2); }
.disclaimer__box p { color: var(--text-2); font-size: 15px; }

/* ---------- 18. CTA Strip ---------- */
.cta-strip {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.cta-strip .wrap { position: relative; z-index: 1; }
.cta-strip h2 {
    font-size: 32px; font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

/* ---------- 19. Footer ---------- */
.footer {
    background: var(--text-1); color: #D6D3D1;
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}
.footer a { color: #D6D3D1; transition: color 150ms ease; }
.footer a:hover { color: #fff; }
.footer__top {
    display: flex; justify-content: space-between;
    gap: var(--space-12); flex-wrap: wrap;
    margin-bottom: var(--space-12);
}
.footer__brand { color: #fff; font-weight: 700; font-size: 17px; }
.footer__brand + p {
    color: #A8A29E; font-size: 14px; font-weight: 400;
    margin-top: var(--space-3); max-width: 320px;
}
.footer__cols { display: flex; gap: var(--space-16); flex-wrap: wrap; }
.footer__col h4 {
    color: #fff; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: var(--space-4);
}
.footer__col a {
    display: block; font-size: 15px; padding: var(--space-1) 0;
    transition: color 150ms ease, transform 150ms ease;
}
.footer__col a:hover { transform: translateX(4px); }
.footer__bottom {
    border-top: 1px solid #44403C;
    padding-top: var(--space-6);
    display: flex; justify-content: space-between;
    gap: var(--space-4); flex-wrap: wrap;
    font-size: 13px; color: #A8A29E;
}

/* ---------- 20. Legal Pages ---------- */
.legal {
    max-width: var(--prose-w); margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-24);
}
.legal__back {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 14px; margin-bottom: var(--space-8);
    transition: transform 150ms ease, color 150ms ease;
}
.legal__back:hover { transform: translateX(-4px); }
.legal h1 {
    font-size: 32px; font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: var(--space-2);
}
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: var(--space-8); }
.legal .draft-note {
    background: var(--accent-bg); border: 1px solid var(--accent-soft);
    border-radius: 10px;
    padding: var(--space-3) var(--space-4);
    font-size: 14px; color: var(--text-2);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}
.legal .draft-note::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent);
}
.legal h2 {
    font-size: 20px; font-weight: 700;
    margin: var(--space-8) 0 var(--space-3);
    letter-spacing: -0.01em;
}
.legal h3 {
    font-size: 16px; font-weight: 600;
    margin: var(--space-6) 0 var(--space-2);
}
.legal p { color: var(--text-2); margin-bottom: var(--space-4); }
.legal ul, .legal ol {
    color: var(--text-2);
    margin: 0 0 var(--space-4) var(--space-6);
}
.legal li { margin-bottom: var(--space-2); }
.legal .ph {
    background: #FEF3C7; border-radius: 4px;
    padding: 1px 6px; color: #92400E;
    font-weight: 600; font-size: 0.92em;
}

/* Legal mini-nav */
.legal-nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    padding: var(--space-3) var(--space-6);
    margin: 0 calc(-1 * var(--space-6));
    display: flex; align-items: center; justify-content: space-between;
}
.legal-nav .brand { font-size: 15px; }
.legal-nav .brand__dot { width: 7px; height: 7px; margin-right: 8px; }
.legal .legal-nav { margin-bottom: var(--space-8); }
.legal-nav .legal__back { margin-bottom: 0; }
.draft-note--row { display: flex; gap: 12px; align-items: flex-start; }
.draft-note__icon {
    color: var(--accent); flex-shrink: 0; margin-top: 2px;
}

/* Reading progress bar */
.reading-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--brand-blue));
    z-index: 30;
    transition: width 50ms linear;
}

/* ---------- 21. Responsive — 900px ---------- */
@media (max-width: 900px) {
    .problem__grid, .steps, .features, .quotes {
        grid-template-columns: 1fr;
    }
    .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .hero h1 { font-size: 38px; }
    .hero p.lead { font-size: 18px; }
    .trust__stats { gap: var(--space-8); }
    .footer__top { flex-direction: column; }
    .footer__cols { gap: var(--space-8); }

    /* Бургер navigation */
    .nav__burger { display: flex; }
    .nav__links {
        position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        margin: 0; padding: var(--space-2) var(--space-6) var(--space-4);
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-2);
        display: none;
        animation: slideDown 0.25s ease;
    }
    .nav__links.open { display: flex; }
    .nav__links a:not(.btn) {
        display: block; padding: var(--space-3) 0; font-size: 16px;
    }
    .nav__links a:not(.btn)::after { display: none; }

    /* Hero visual smaller */
    .hero__mockup { max-width: 100%; }
    .hero__mockup-body { padding: var(--space-4); }
}

/* ---------- 22. Responsive — 600px ---------- */
@media (max-width: 600px) {
    :root {
        --space-16: 48px;
        --space-24: 72px;
    }
    .hero h1 { font-size: 32px; }
    .hero p.lead { font-size: 16px; }
    .section-head h2 { font-size: 28px; }
    .cta-strip h2 { font-size: 26px; }
    .stat__num { font-size: 36px; }
    .plan__price { font-size: 30px; }
    .problem__card, .feature, .plan { padding: var(--space-6); }
    .demo__body { padding: var(--space-6); }
}

/* ---------- 23. Reduced Motion (a11y) ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .btn--primary:hover { transform: none; }
    .btn--primary::after { animation: none; }
    .reveal { opacity: 1; transform: none; }
    .demo__typing span { animation: none; opacity: 0.6; }
}
