/* ========================================
   PRIVADOC — Landing Page Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Amber accent — vivid on dark ─────────────────────────────────────── */
    --primary: #FBBF24;          /* amber-400 */
    --primary-dark: #F59E0B;     /* amber-500 */
    --primary-light: rgba(251,191,36,0.12);
    --primary-deep: #D97706;     /* amber-600 */
    --primary-lighter: #FCD34D;  /* amber-300 */

    --accent: #FBBF24;
    --accent-dark: #F59E0B;
    --accent-muted: rgba(251,191,36,0.15);
    --accent-light: rgba(251,191,36,0.10);

    /* ── Text ────────────────────────────────────────────────────────────── */
    --dark: #DDE1F0;             /* primary text (was dark bg, now light text) */
    --dark-light: #1B1E2C;       /* elevated surface */
    --gray: rgba(221,225,240,0.5);
    --gray-light: rgba(221,225,240,0.35);

    /* ── Surfaces ────────────────────────────────────────────────────────── */
    --light: #141720;            /* was light bg, now dark surface */
    --light-gray: #111318;       /* was light-gray, now deeper surface */
    --border: rgba(255,255,255,0.08);
    --white: #FFFFFF;            /* kept for explicit white usage */

    /* ── Dark surface tokens ─────────────────────────────────────────────── */
    --surface:   #141720;
    --surface-2: #1B1E2C;
    --surface-3: #232638;

    /* ── Shadows ─────────────────────────────────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.45);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 32px rgba(0,0,0,0.45);
    --shadow-xl: 0 20px 52px rgba(0,0,0,0.55);

    /* ── Shape & motion ─────────────────────────────────────────────────── */
    --radius: 12px;
    --radius-lg: 16px;
    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Semantic status ─────────────────────────────────────────────────── */
    --error: #F87171;
    --success: #34D399;
    --warning: #FBBF24;
    --danger: #F87171;
    --danger-light: rgba(248,113,113,0.1);

    /* ── Input/form ──────────────────────────────────────────────────────── */
    --border-input: rgba(255,255,255,0.12);
    --text-label: rgba(221,225,240,0.7);
    --red-emphasis: #FC8181;

    /* ── Page backgrounds ────────────────────────────────────────────────── */
    --bg: #0D0F16;
    --hero-bg: #0D0F16;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.logo,
.stat strong,
.plan-price,
.step-num {
    font-family: 'Geologica', sans-serif;
}

a { text-decoration: none; }

::selection {
    background: rgba(251,191,36,0.25);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.reveal-children.visible > *:nth-child(9) { transition-delay: 0.64s; }
.reveal-children.visible > *:nth-child(10) { transition-delay: 0.72s; }
.reveal-children.visible > *:nth-child(11) { transition-delay: 0.8s; }
.reveal-children.visible > *:nth-child(12) { transition-delay: 0.88s; }

/* ========================================
   HEADER
   ======================================== */
header {
    position: sticky;
    top: 0;
    background: rgba(13,15,22,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    padding: 14px 0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    border-bottom-color: rgba(255,255,255,0.06);
    box-shadow: 0 1px 20px rgba(0,0,0,0.5);
}

header .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo span { color: var(--primary); }

nav {
    display: flex;
    gap: 28px;
    flex: 1;
}

nav a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--t);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--t);
    border-radius: 1px;
}

nav a:hover { color: var(--dark); }
nav a:hover::after { width: 100%; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 8px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.menu-toggle:hover { background: var(--bg); }

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: center;
}

/* Hamburger → X */
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

nav.open {
    animation: mobileMenuIn 0.18s ease both;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #0D0F16;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--t);
    box-shadow: 0 2px 12px rgba(251,191,36,0.3);
}

.btn-primary:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251,191,36,0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(221,225,240,0.75);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--t);
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(251,191,36,0.07);
}

.btn-outline-dark {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(221,225,240,0.75);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: all var(--t);
    width: 100%;
}

.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(251,191,36,0.07);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: 80px 0 72px;
    text-align: center;
    background-color: var(--hero-bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(251,191,36,0.10), transparent 70%),
        radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px;
    overflow: hidden;
}

.badge {
    display: inline-block;
    background: rgba(251,191,36,0.12);
    color: var(--primary-lighter);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(251,191,36,0.25);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform-origin: left;
    animation: spanLine 0.65s 0.8s cubic-bezier(.4,0,.2,1) both;
}

@keyframes spanLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero .badge    { animation: heroIn 0.55s 0.05s cubic-bezier(.4,0,.2,1) both; }
.hero h1        { animation: heroIn 0.6s  0.18s cubic-bezier(.4,0,.2,1) both; }
.hero .subtitle { animation: heroIn 0.6s  0.33s cubic-bezier(.4,0,.2,1) both; }
.hero-cta       { animation: heroIn 0.6s  0.47s cubic-bezier(.4,0,.2,1) both; }
.hero-stats     { animation: heroIn 0.6s  0.62s cubic-bezier(.4,0,.2,1) both; }
.hero-services  { animation: heroIn 0.5s  0.75s cubic-bezier(.4,0,.2,1) both; }

.subtitle {
    font-size: 18px;
    color: rgba(221,225,240,0.55);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-cta .btn-primary {
    font-size: 17px;
    padding: 16px 36px;
    border-radius: 12px;
}

.hero-note {
    font-size: 14px;
    color: var(--gray);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-services {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-services-label {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
}

.hero-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--accent);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    text-decoration: none;
    transition: all var(--t);
    white-space: nowrap;
}

.hero-service-link:hover {
    background: var(--accent-muted);
    border-color: var(--accent-dark);
    color: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(251,191,36,0.2);
    transform: translateY(-1px);
}

.hs-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat strong {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 13px;
    color: var(--gray);
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    padding: 28px 0;
    text-align: center;
    border-bottom: none;
    background: var(--dark-light);
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-light);
    font-weight: 500;
}

.trust-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.trust-icon svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   PROBLEM
   ======================================== */
.problem {
    padding: 88px 0;
    background: var(--surface);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(239,68,68,0.05), transparent 60%);
    pointer-events: none;
}

.problem h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.problem h2 span { color: var(--red-emphasis); }

.section-sub {
    font-size: 17px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.problem .section-sub { color: rgba(255,255,255,0.72); }

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.problem-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--t);
    box-shadow: inset 3px 0 0 rgba(247,113,113,0.45);
}

.problem-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: inset 3px 0 0 rgba(247,113,113,0.8);
}

.fine-amount {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--red-emphasis);
    margin: 8px 0 14px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-family: 'Geologica', sans-serif;
}

.problem-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-lighter);
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.problem-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.problem-card p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.65;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how {
    padding: 88px 0;
    text-align: center;
    background: var(--bg);
}

.how h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    text-align: left;
}

.step {
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    transition: all var(--t);
    border: 1px solid rgba(255,255,255,0.06);
}

.step:hover {
    background: var(--surface-2);
    border-color: rgba(251,191,36,0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.step p {
    font-size: 14px;
    color: rgba(221,225,240,0.5);
    line-height: 1.65;
}

/* ========================================
   DOCUMENTS
   ======================================== */
.docs {
    padding: 88px 0;
    background: var(--light);
    text-align: center;
}

.docs h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 48px;
    text-align: left;
}

.doc-item {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all var(--t);
}

.doc-item:hover {
    border-color: rgba(251,191,36,0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.doc-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-lighter);
    background: rgba(251,191,36,0.12);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.doc-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #fff;
}

.doc-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.55;
}

.docs-note {
    margin-top: 28px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 600;
}
.sample-cta {
    margin-top: 12px;
    font-size: 14px;
    color: var(--gray);
}
.sample-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.sample-link:hover { text-decoration: underline; }

/* ========================================
   LAWS / REGULATORY FRAMEWORK
   ======================================== */
.laws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.law-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--t);
    position: relative;
}

a.law-card { display: block; }

.law-card:hover {
    border-color: rgba(251,191,36,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.law-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-lighter);
    background: rgba(251,191,36,0.12);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.law-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
    color: #fff;
}

.law-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
    padding: 88px 0;
    text-align: center;
    background: var(--bg);
}

.pricing h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

.pricing-cards--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-group-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-top: 56px;
    margin-bottom: 32px;
}
.pricing-group-label::before,
.pricing-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.pricing-group-label--ip {
    color: var(--accent-dark);
}
.pricing-group-label--ip::before,
.pricing-group-label--ip::after {
    background: rgba(217, 119, 6, 0.25);
}

.pricing-group-sub {
    text-align: center;
    font-size: 15px;
    color: var(--gray);
    max-width: 600px;
    margin: -16px auto 32px;
    line-height: 1.6;
}

.pricing-card.featured-ip {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.15), var(--shadow-lg);
}
.pricing-card.featured-ip:hover {
    box-shadow: 0 0 0 1px rgba(251,191,36,0.25), var(--shadow-xl);
}

.plan-badge--ip {
    background: var(--accent);
    color: #0D0F16;
}

.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: #0D0F16;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--t);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-accent:hover {
    background: var(--primary-lighter);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251,191,36,0.35);
}

.pricing-card {
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: left;
    position: relative;
    transition: all var(--t);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: rgba(251,191,36,0.2);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.15), var(--shadow-xl);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px rgba(251,191,36,0.25), var(--shadow-xl);
    transform: translateY(-6px);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #0D0F16;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 14px;
    font-weight: 700;
    color: rgba(221,225,240,0.45);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.plan-price {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
    line-height: 1;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0;
}

.plan-price .from {
    font-size: 18px;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0;
    margin-right: 4px;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.plan-features li {
    font-size: 14px;
    color: rgba(221,225,240,0.7);
    line-height: 1.4;
}

.plan-features li.disabled { color: rgba(221,225,240,0.25); }

.featured .btn-primary {
    width: 100%;
    text-align: center;
}

.preview-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 0;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color var(--t);
}

.preview-link:hover {
    color: var(--primary);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    padding: 88px 0;
    background: var(--light);
}

.faq h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-align: center;
}

.faq .section-sub { text-align: center; }

.faq-list {
    max-width: 700px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: color var(--t);
    gap: 16px;
    line-height: 1.4;
}

.faq-question:hover { color: var(--primary); }

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gray);
    transition: transform var(--t);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 900px;
}

.faq-answer p {
    font-size: 15px;
    color: rgba(221,225,240,0.5);
    line-height: 1.7;
    padding-bottom: 20px;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 88px 0;
    background-color: var(--surface);
    background-image:
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(251,191,36,0.14), transparent 65%),
        radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
}

.cta h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

.cta-form input {
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    width: 100%;
    transition: border-color var(--t);
}

.cta-form input:focus { border-color: var(--primary); }
.cta-form input::placeholder { color: var(--gray-light); }

.cta-form .btn-primary {
    background: var(--primary);
    color: #0D0F16;
    font-size: 16px;
    padding: 15px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 8px rgba(251,191,36,0.3);
}

.cta-form .btn-primary:hover {
    background: var(--primary-lighter);
    box-shadow: 0 4px 16px rgba(251,191,36,0.4);
}

.form-success {
    color: var(--accent-muted);
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    margin-bottom: 0 !important;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 88px 0;
    background: var(--light);
    text-align: center;
}

.services h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}


/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 48px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: var(--surface);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer .logo {
    font-size: 20px;
    display: inline-block;
}

footer p {
    font-size: 14px;
    color: var(--gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 8px 0;
}

.footer-links a {
    font-size: 14px;
    color: rgba(221,225,240,0.4);
    text-decoration: none;
    transition: color var(--t);
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
    margin-top: 12px;
    font-size: 13px;
    color: var(--border-input);
}

/* ========================================
   PRODUCT PAGES (scan, audit)
   ======================================== */
.product-hero {
    padding: 72px 0 56px;
    text-align: center;
    background-color: var(--hero-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251,191,36,0.08), transparent 70%),
        radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100% 100%, 28px 28px;
}

.product-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #fff;
}

.product-hero h1 span {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: unset;
}

.checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    text-align: left;
}

.check-item {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 22px;
    transition: all var(--t);
}

/* Трёхцветный цикл — янтарный / нейтральный / красный, как у law-xcard на главной */
.checks-grid .check-item:nth-child(3n+1) {
    background: rgba(251,191,36,0.07);
    border-color: rgba(251,191,36,0.2);
}
.checks-grid .check-item:nth-child(3n+2) {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.1);
}
.checks-grid .check-item:nth-child(3n) {
    background: rgba(248,113,113,0.07);
    border-color: rgba(248,113,113,0.18);
}

.check-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.checks-grid .check-item:nth-child(3n+1):hover { border-color: rgba(251,191,36,0.45); }
.checks-grid .check-item:nth-child(3n+2):hover { border-color: rgba(255,255,255,0.22); }
.checks-grid .check-item:nth-child(3n):hover   { border-color: rgba(248,113,113,0.4); }

.check-severity {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sev-high   { background: rgba(239,68,68,0.12);   color: #FC8181; }
.sev-medium { background: rgba(251,191,36,0.12);  color: var(--primary-lighter); }
.sev-low    { background: rgba(52,211,153,0.12);  color: #6EE7B7; }

.check-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.check-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.area-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--t);
}

.area-card:hover {
    border-color: rgba(251,191,36,0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.area-icon {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251,191,36,0.12);
    border-radius: 10px;
}

.area-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #fff;
}

.area-card p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
}

.pricing-single {
    max-width: 420px;
    margin: 48px auto 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color var(--t);
}

.back-link:hover { color: var(--primary); }

/* Scroll anchor offset for sticky header */
section[id], div[id] {
    scroll-margin-top: 72px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .laws-grid { grid-template-columns: repeat(2, 1fr); }
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
    .product-hero h1 { font-size: 30px; letter-spacing: -0.5px; }
    .problem h2, .cta h2 { font-size: 30px; }
    .how h2, .docs h2, .pricing h2, .services h2, .faq h2 { font-size: 28px; }

    .problem-cards,
    .steps,
    .pricing-cards,
    .pricing-cards--two,
    .checks-grid,
    .docs-grid,
    .laws-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-services { flex-direction: column; align-items: center; gap: 8px; }

    /* Скрываем десктопную навигацию и CTA-кнопку из шапки */
    nav { display: none; }
    header .btn-outline,
    header .btn-primary,
    header .btn-amber { display: none; }
    .menu-toggle { display: flex; }

    /* Dropdown-меню выпадает вниз из шапки */
    nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;   /* relative to sticky header — работает без z-index конфликтов */
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-3);
        border-top: 1px solid rgba(255,255,255,0.07);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
        padding: 4px 0 8px;
        z-index: 99;
    }

    nav.open a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
        color: rgba(221,225,240,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background 0.12s, color 0.12s;
    }

    nav.open a:last-child { border-bottom: none; }
    nav.open a:hover,
    nav.open a:active { background: rgba(255,255,255,0.04); color: var(--primary); }
    nav.open a::after { display: none; }

    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-funnel-cta { flex-direction: column; align-items: center; }
    .section-sub { font-size: 15px; }
    .subtitle { font-size: 16px; }
    .trust-items { gap: 16px; }
    .pricing-single { max-width: 100%; }
    .stat strong { font-size: 28px; }

    .hero, .product-hero { padding: 56px 0 48px; }
    .problem, .how, .docs, .pricing, .services, .faq, .cta { padding: 64px 0; }
    .faq-question { font-size: 15px; }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    color: rgba(221,225,240,0.5);
    line-height: 1.55;
}

.cookie-text a,
.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.cookie-link:hover {
    color: var(--primary-dark);
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(221,225,240,0.65);
    transition: all var(--t);
    white-space: nowrap;
}

.cookie-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-btn--accept {
    background: var(--primary);
    color: #0D0F16;
    border-color: var(--primary);
}

.cookie-btn--accept:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-lighter);
    color: #0D0F16;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact {
    padding: 88px 0;
    background: var(--bg);
}

.contact h2 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-align: center;
}

.contact .section-sub { text-align: center; }

.contact-card {
    max-width: 580px;
    margin: 48px auto 0;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-label);
}

.contact-field label .req {
    color: var(--error);
    margin-left: 1px;
}

.contact-field input,
.contact-field textarea {
    padding: 10px 14px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: var(--surface-2);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(221,225,240,0.3);
}

.contact-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-field--error input,
.contact-field--error textarea {
    border-color: var(--error);
}

.contact-error {
    font-size: 12px;
    color: var(--error);
    display: none;
}

.contact-field--error .contact-error {
    display: block;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.contact-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.contact-consent a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-submit {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 15px;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 32px 0;
}

.contact-success p {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.contact-success span {
    font-size: 14px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; gap: 16px; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .contact-row { grid-template-columns: 1fr; }
    .contact { padding: 64px 0; }
}

/* Compare table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}
.compare-table th,
.compare-table td {
    padding: 12px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--dark);
}
.compare-table thead th {
    background: var(--surface-2);
    font-weight: 700;
    font-size: 15px;
    color: rgba(221,225,240,0.9);
}
.compare-table thead th small {
    font-weight: 500;
    color: var(--gray);
    font-size: 13px;
}
.compare-featured {
    background: rgba(251,191,36,0.06);
}
.compare-table thead .compare-featured {
    background: rgba(251,191,36,0.12);
    color: var(--primary);
}
.compare-table .compare-ip {
    background: rgba(251,191,36,0.04);
}
.compare-table thead .compare-ip {
    background: rgba(251,191,36,0.09);
    color: var(--primary-lighter);
}
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ========================================
   CONSENT MODAL
   ======================================== */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10100;
    padding: 24px 16px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.consent-overlay--active { opacity: 1; }

.consent-modal {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.consent-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    line-height: 1;
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--t), color var(--t);
}
.consent-modal-close:hover { background: rgba(255,255,255,0.07); color: #fff; }

.consent-modal-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-dark);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.consent-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}
.consent-modal-sub {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.consent-field {
    margin-bottom: 16px;
}
.consent-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.consent-label .req { color: var(--error); }

.consent-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: var(--bg);
    transition: border-color var(--t), box-shadow var(--t);
    box-sizing: border-box;
    resize: vertical;
}
.consent-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}
.consent-input--err { border-color: var(--error); }
.consent-input--err:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }

.consent-err {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
    min-height: 16px;
}
.consent-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

/* Consent modal — 2-step navigation */
.consent-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
}
.consent-step-item {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.consent-step-item.active { opacity: 1; }
.consent-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.consent-step-item.active .consent-step-num {
    background: var(--primary);
    color: #0F172A;
}
.consent-step-lbl { font-size: 12px; font-weight: 600; color: var(--dark); }
.consent-step-arrow { font-size: 12px; color: var(--gray); flex: 1; text-align: center; }

.consent-next-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #0F172A;
    transition: background var(--t), transform 0.1s;
}
.consent-next-btn:hover { background: var(--primary-lighter); }
.consent-next-btn:active { transform: scale(0.98); }

.consent-back-btn {
    display: block;
    margin-top: 12px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}
.consent-back-btn:hover { color: var(--dark); }

.consent-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 20px 0;
}
.consent-pay-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}
.consent-pay-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.consent-pay-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--t);
    border: 1.5px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(221,225,240,0.75);
}
.consent-pay-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(251,191,36,0.07);
}
.consent-pay-btn--sbp {
    background: rgba(251,191,36,0.08);
    border-color: rgba(251,191,36,0.25);
    color: var(--primary-lighter);
}
.consent-pay-btn--sbp:hover:not(:disabled) {
    background: rgba(251,191,36,0.14);
    border-color: var(--primary);
    color: var(--primary);
}
.consent-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.consent-secure {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray);
    margin-top: 12px;
}

@media (max-width: 540px) {
    .consent-modal { padding: 24px 18px; }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    max-width: 360px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .3s, transform .3s;
}
.toast.visible { opacity: 1; transform: translateX(0); }
.toast--success { border-left: 4px solid var(--accent); }
.toast--error { border-left: 4px solid var(--error); }
.toast--info { border-left: 4px solid var(--primary); }

/* Document preview modal */
.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.preview-overlay.active { opacity: 1; pointer-events: auto; }
.preview-modal {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.preview-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    line-height: 1;
}
.preview-doc {
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}
.preview-doc h3 { font-size: 15px; margin: 16px 0 8px; }
.preview-doc p { margin-bottom: 8px; }
.preview-blur {
    position: relative;
}
.preview-blur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--surface-2));
}
.preview-cta {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .product-hero h1 { font-size: 26px; }
    .problem h2, .cta h2 { font-size: 26px; }
    .areas-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .toast-container { right: 10px; left: 10px; }
    .toast { max-width: 100%; }
    .preview-modal { padding: 20px; width: 95%; }
    /* Hero mobile fixes */
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: clamp(22px, 7vw, 28px); line-height: 1.15; word-break: break-word; }
    .hero .subtitle { font-size: 14px; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-cta .btn-amber, .hero-cta .btn-outline { width: 100%; text-align: center; }
    .hero-services { flex-direction: column; gap: 8px; align-items: stretch; }
    .hero-service-link { justify-content: center; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 20px; }
    .hero { padding: 40px 0 36px; }
}


/* ========================================
   SCAN TOOL INPUT
   ======================================== */
.scan-url-wrap {
    display: flex;
    gap: 8px;
}

.scan-url-input {
    flex: 1;
    padding: 13px 16px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    background: var(--surface);
    color: var(--dark);
}

.scan-url-input:focus { border-color: var(--primary); }
.scan-url-input::placeholder { color: rgba(221,225,240,0.3); }

/* Improved scan result cards */
.scan-result-card {
    transition: box-shadow var(--t), transform var(--t);
}

.scan-result-card:hover {
    box-shadow: inset 3px 0 0 var(--accent), var(--shadow-md);
    transform: translateX(4px);
    border-color: transparent;
}

/* ========================================
   SCAN PROGRESS PULSE
   ======================================== */
@keyframes scanPulse {
    0%   { box-shadow: inset 0 0 0 0 rgba(251,191,36,0); }
    50%  { box-shadow: inset 0 0 12px 2px rgba(251,191,36,0.18); }
    100% { box-shadow: inset 0 0 0 0 rgba(251,191,36,0); }
}

#scan-bar.scanning {
    animation: scanPulse 1.6s ease-in-out infinite;
}

/* ========================================
   PRODUCT HERO PAGE-LOAD ANIMATIONS
   ======================================== */
.product-hero .back-link { animation: heroIn 0.5s 0.05s cubic-bezier(.4,0,.2,1) both; }
.product-hero .badge     { animation: heroIn 0.55s 0.12s cubic-bezier(.4,0,.2,1) both; }
.product-hero h1         { animation: heroIn 0.6s  0.22s cubic-bezier(.4,0,.2,1) both; }
.product-hero .subtitle  { animation: heroIn 0.6s  0.36s cubic-bezier(.4,0,.2,1) both; }
.product-hero .hero-cta  { animation: heroIn 0.6s  0.48s cubic-bezier(.4,0,.2,1) both; }
.product-hero .hero-stats{ animation: heroIn 0.6s  0.62s cubic-bezier(.4,0,.2,1) both; }

/* ========================================
   FUNNEL REDESIGN — новые компоненты (2026-03-26)
   ======================================== */

/* Amber CTA button */
.btn-amber {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #0D0F16;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(251,191,36,0.3);
    white-space: nowrap;
}
.btn-amber:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251,191,36,0.4);
}
.btn-amber:active { transform: translateY(0); }

.btn-amber-lg {
    font-size: 18px;
    padding: 18px 44px;
    border-radius: 14px;
}

/* Ghost button for dark bg */
.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-ghost-white:hover {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    background: rgba(255,255,255,0.07);
}

/* === HERO FUNNEL (dark) === */
.hero-funnel {
    padding: 88px 0 80px;
    text-align: center;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217,119,6,0.18), transparent 65%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 28px,
            rgba(255,255,255,0.018) 28px,
            rgba(255,255,255,0.018) 29px
        );
    position: relative;
    overflow: hidden;
}

.hero-funnel .badge {
    display: inline-block;
    background: rgba(217,119,6,0.15);
    color: #FCD34D;
    border: 1px solid rgba(217,119,6,0.35);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-funnel h1 {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero-funnel .subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.65);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.hero-funnel-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-funnel-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 36px;
    flex-wrap: wrap;
}

.hero-funnel-stats .stat {
    padding: 0 36px;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.hero-funnel-stats .stat:last-child { border-right: none; }

.hero-funnel-stats .stat strong {
    display: block;
    font-family: 'Geologica', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-funnel-stats .stat span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}

/* === PAIN CHECKER === */
.pain-check-section {
    padding: 88px 0;
    background: var(--surface);
}

.pain-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 40px auto 0;
}

.pain-card {
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.2s;
    background: var(--surface-2);
}
.pain-card:hover {
    border-color: rgba(251,191,36,0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.pain-card.answered-yes {
    border-color: rgba(248,113,113,0.4);
    background: rgba(248,113,113,0.08);
}
.pain-card.answered-no {
    opacity: 0.55;
}

.pain-card-icon {
    font-size: 30px;
    margin-bottom: 12px;
    display: block;
}
.pain-card-question {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.4;
}
.pain-card-btns {
    display: flex;
    gap: 8px;
}
.pain-btn {
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid;
    transition: all 0.15s;
    font-family: inherit;
}
.pain-btn-yes { border-color: var(--danger); color: var(--danger); background: transparent; }
.pain-btn-yes:hover, .pain-btn-yes.sel { background: var(--danger); color: #fff; }
.pain-btn-no { border-color: var(--border); color: var(--gray); background: transparent; }
.pain-btn-no:hover, .pain-btn-no.sel { background: var(--light-gray); border-color: var(--gray-light); }

.pain-banner {
    display: none;
    max-width: 800px;
    margin: 24px auto 0;
    padding: 20px 28px;
    background: rgba(248,113,113,0.1);
    border: 1.5px solid rgba(248,113,113,0.3);
    border-radius: var(--radius-lg);
    align-items: center;
    gap: 16px;
    animation: painBannerIn 0.3s ease both;
}
.pain-banner.show { display: flex; }
@keyframes painBannerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pain-banner-emoji { font-size: 28px; flex-shrink: 0; }
.pain-banner strong { display: block; font-size: 16px; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.pain-banner span { font-size: 14px; color: rgba(248,113,113,0.85); }
.pain-banner-cta { margin-left: auto; flex-shrink: 0; }

/* === PROFESSION CHIPS === */
.profession-section {
    padding: 80px 0;
    background: var(--surface);
}
.profession-sub {
    max-width: 600px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 16px;
    color: var(--gray);
    line-height: 1.65;
}
.profession-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    justify-content: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.profession-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(221,225,240,0.65);
    transition: all 0.18s;
    cursor: default;
}
.profession-chip:hover {
    border-color: rgba(251,191,36,0.3);
    color: var(--primary-lighter);
    background: rgba(251,191,36,0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.profession-chip-icon { font-size: 16px; line-height: 1; }

/* === USE CASE CARDS === */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.use-case-card {
    background: var(--surface);
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.use-case-who {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.use-case-situation {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}
.use-case-arrow {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 10px;
}
.use-case-need {
    font-size: 13px;
    color: rgba(221,225,240,0.65);
    line-height: 1.5;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.04);
    padding: 10px 14px;
    border-radius: 8px;
}
.use-case-result {
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
}
.use-case-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t), transform var(--t);
}
.use-case-btn:hover {
    background: var(--primary-dark, #7C3A10);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .use-cases-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* === FREELANCER PHOTOS STRIP === */
.freelancer-photos-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1040px;
    margin: 40px auto 0;
}
.freelancer-photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.freelancer-photo-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
@media (max-width: 640px) {
    .freelancer-photos-strip {
        grid-template-columns: 1fr;
    }
    .freelancer-photo-item img {
        height: 200px;
    }
}

/* === DOCUMENTS PREVIEW IMAGE === */
.docs-preview-img {
    max-width: 720px;
    margin: 44px auto 0;
}
.docs-preview-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 48px rgba(0,0,0,0.13);
}

/* === FINE DISPLAY (large numbers) === */
.fine-num {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: var(--danger);
    display: block;
    margin: 10px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

/* === LAW EXPLAINER === */
.law-explainer-section { padding: 80px 0; background: var(--bg); }

.law-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.law-xcard {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
}
.law-xcard:nth-child(1) { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.18); }
.law-xcard:nth-child(2) { background: var(--surface); border-color: rgba(255,255,255,0.07); }
.law-xcard:nth-child(3) { background: rgba(248,113,113,0.07); border-color: rgba(248,113,113,0.18); }
.law-xcard-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-dark);
    margin-bottom: 16px;
}
.law-xcard:nth-child(2) .law-xcard-label { color: var(--primary); }
.law-xcard:nth-child(3) .law-xcard-label { color: var(--danger); }
.law-xcard-icon { font-size: 36px; display: block; margin-bottom: 14px; }
.law-xcard h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.law-xcard p { font-size: 14px; color: rgba(221,225,240,0.5); line-height: 1.7; }

/* === HOW FUNNEL (service steps) === */
.how-funnel-section { padding: 80px 0; background: var(--surface); }

.how-funnel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 44px;
    position: relative;
}
.how-funnel-grid::before {
    content: '';
    position: absolute;
    top: 26px;
    left: calc(16.67% + 16px);
    right: calc(16.67% + 16px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-dark) 0, var(--accent-dark) 8px, transparent 8px, transparent 16px);
    pointer-events: none;
}
.how-funnel-step {
    text-align: center;
    padding: 0 24px;
}
.how-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Geologica', sans-serif;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(251,191,36,0.3);
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
}
.how-funnel-step:hover .how-step-num {
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(251,191,36,0.4);
}
.how-funnel-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.how-funnel-step p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.how-step-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--accent-muted);
    padding: 3px 12px;
    border-radius: 100px;
}

/* === FUNNEL FINAL CTA === */
.funnel-cta-section {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.funnel-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(217,119,6,0.18), transparent 65%);
    pointer-events: none;
}
.funnel-cta-section h2 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}
.funnel-cta-section p {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
    position: relative;
}
.funnel-cta-section .btn-amber { position: relative; }

/* === FUNNEL FAQ variant === */
.faq-funnel { padding: 80px 0; background: var(--bg); }
.faq-funnel .section-sub a { color: var(--accent-dark); }

/* === SECTION UTILS === */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--primary-lighter);
    background: rgba(251,191,36,0.12);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(251,191,36,0.22);
}

/* === FUNNEL RESPONSIVE === */
@media (max-width: 768px) {
    .hero-funnel { padding: 60px 0 52px; }
    .hero-funnel h1 { font-size: clamp(26px, 7vw, 38px); }
    .hero-funnel-stats .stat { padding: 0 20px; }
    .hero-funnel-stats .stat strong { font-size: 28px; }
    .pain-check-grid { grid-template-columns: 1fr; }
    .law-explainer-grid { grid-template-columns: 1fr; }
    .how-funnel-grid { grid-template-columns: 1fr; gap: 32px; }
    .how-funnel-grid::before { display: none; }
    .pain-banner { flex-wrap: wrap; }
    .pain-banner-cta { margin-left: 0; margin-top: 8px; }
}
@media (max-width: 480px) {
    .hero-funnel-stats .stat { padding: 0 14px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; margin-bottom: 12px; }
    .hero-funnel-stats .stat:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
    .hero-funnel-stats { flex-direction: column; align-items: center; }
}
