/* ═══════════════════════════════════════════════════════════════════════════
   БОБ VPN — Aurora design system (mobile-first)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Base palette */
    --bg-0: #050215;
    --bg-1: #0a0520;
    --ink: #f1ecff;
    --ink-dim: #b8b2d6;
    --ink-mute: #7c7599;

    /* Aurora accents */
    --violet: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, 0.4);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.4);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.35);
    --magenta: #f472b6;
    --magenta-glow: rgba(244, 114, 182, 0.35);

    /* Glass */
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --glass-brd: rgba(255, 255, 255, 0.08);
    --glass-brd-strong: rgba(255, 255, 255, 0.14);

    /* States */
    --ok: #4ade80;
    --warn: #fbbf24;
    --bad: #ef4444;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Rhythm */
    --r: 18px;
    --r-sm: 12px;
    --r-lg: 28px;
    --r-full: 999px;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 55%, #22d3ee 100%);
    --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.15));
    --grad-text: linear-gradient(90deg, #f1ecff 0%, #c4b5fd 50%, #22d3ee 100%);
    --grad-magenta: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);

    /* Shadows */
    --sh-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
    --sh-md: 0 12px 40px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(139, 92, 246, 0.08);
    --sh-lg: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.12);
    --sh-glow: 0 0 30px var(--violet-glow), 0 0 60px var(--blue-glow);
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg-0);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }

/* ─── Aurora canvas ─────────────────────────────────────────────────── */
#aurora-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(5, 2, 21, 0) 0%, rgba(5, 2, 21, 0.55) 80%),
        linear-gradient(180deg, rgba(5, 2, 21, 0.35) 0%, rgba(5, 2, 21, 0.65) 100%);
    pointer-events: none;
}
/* Fallback for no-webgl */
body.no-webgl {
    background:
        radial-gradient(ellipse at 20% 20%, #2a1559 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, #0f3a6b 0%, transparent 60%),
        var(--bg-0);
}

/* ─── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(1.9rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; word-break: break-word; hyphens: auto; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.grad-accent {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-full);
    font-size: clamp(0.64rem, 2.1vw, 0.78rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-dim);
    white-space: nowrap;
    max-width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ─── Layout ────────────────────────────────────────────────────────── */
.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
@media (min-width: 768px) {
    .wrap { width: min(1180px, calc(100% - 64px)); }
}
.section { padding: clamp(60px, 12vw, 140px) 0; position: relative; }
.section-head { text-align: center; margin-bottom: clamp(40px, 8vw, 80px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { color: var(--ink-dim); max-width: 640px; margin: 16px auto 0; font-size: 1.05rem; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }

/* ─── Glass primitive ───────────────────────────────────────────────── */
.glass {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--sh-md);
    overflow: hidden;
}
.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}
.glass-strong {
    background: var(--glass-strong);
    border-color: var(--glass-brd-strong);
}

/* ─── Navbar ────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
    padding: 10px 0;
    background: rgba(5, 2, 21, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-brd);
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: var(--grad-primary);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}
.brand-mark::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.3), transparent 60%);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    color: var(--ink-dim);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 1px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--glass-brd);
    background: var(--glass);
}
.burger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
    .nav { padding: 10px 0; }
    .nav.scrolled { padding: 8px 0; }
    .brand { font-size: 1rem; gap: 8px; }
    .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
    .brand-mark svg { width: 18px; height: 18px; }
    .burger { width: 40px; height: 40px; border-radius: 10px; }

    .nav-links {
        position: fixed;
        inset: 66px 12px auto 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 14px;
        border-radius: var(--r-lg);
        background: rgba(5, 2, 21, 0.85);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid var(--glass-brd);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease), opacity 0.3s;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a { padding: 10px 4px; font-size: 1rem; }
}
@media (min-width: 801px) {
    .burger { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.96rem;
    font-weight: 600;
    border-radius: var(--r-full);
    background: var(--grad-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    isolation: isolate;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-magenta);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: -1;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(139, 92, 246, 0.45), 0 0 30px rgba(244, 114, 182, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
    background: var(--glass);
    border: 1px solid var(--glass-brd-strong);
    color: var(--ink);
    box-shadow: none;
    backdrop-filter: blur(12px);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover {
    background: var(--glass-strong);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Nav cabinet/login button — extra punch to read clearly on aurora bg */
.nav-links > .btn {
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.55),
        0 0 24px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.btn-danger::before { background: linear-gradient(135deg, #f87171, #dc2626); }

/* Arrow motion */
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero { padding: 180px 0 120px; }
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}
.hero-inner h1 {
    margin: 24px 0 20px;
    line-height: 0.95;
    will-change: transform, opacity;
}
.hero-inner .eyebrow,
.hero-inner .sub,
.hero-cta > *,
.hero-stat { will-change: transform, opacity; }
.hero-inner .sub {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--ink-dim);
    max-width: 620px;
    margin: 0 auto 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 40px auto 0;
    max-width: 720px;
}
.hero-stat {
    padding: 14px 10px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hero-stat .v {
    font-size: clamp(1.05rem, 3.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat .l {
    font-size: clamp(0.65rem, 1.8vw, 0.78rem);
    color: var(--ink-mute);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Hero floating orbs — decorative */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.7;
}
.hero-orb.a { width: 220px; height: 220px; background: var(--violet-glow); top: 10%; left: -80px; }
.hero-orb.b { width: 180px; height: 180px; background: var(--cyan-glow); bottom: 15%; right: -60px; }
.hero-orb.c { width: 160px; height: 160px; background: var(--magenta-glow); top: 40%; right: 30%; }

/* ─── Bento grid ────────────────────────────────────────────────────── */
.bento {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
    }
    .bento-a { grid-column: span 4; grid-row: span 2; }
    .bento-b { grid-column: span 2; }
    .bento-c { grid-column: span 2; }
    .bento-d { grid-column: span 2; }
    .bento-e { grid-column: span 2; }
    .bento-f { grid-column: span 2; }
}

.bento-card {
    position: relative;
    padding: 28px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    overflow: hidden;
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--sh-md);
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}
.bento-card:hover {
    border-color: var(--glass-brd-strong);
    transform: translateY(-4px);
}
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--ink-dim); font-size: 0.95rem; }
.bento-card .ic {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.6rem;
}
.bento-card.bento-a {
    min-height: 360px;
    justify-content: space-between;
}
.bento-card.bento-a h3 { font-size: clamp(1.6rem, 3vw, 2rem); }

/* Decorative flow lines in bento-a */
.bento-a .flow {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
}
.bento-a .flow svg { width: 100%; height: 100%; }

/* ─── Tariffs ───────────────────────────────────────────────────────── */
.tariffs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 640px) {
    .tariffs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .tariffs { grid-template-columns: repeat(4, 1fr); }
}

.tariff {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    text-align: center;
    transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
    overflow: hidden;
    will-change: transform;
}
.tariff::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s var(--ease);
}
.tariff:hover::before { opacity: 1; }
.tariff:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.18);
}
.tariff-period {
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.tariff-price {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.tariff-per { color: var(--ink-mute); font-size: 0.88rem; margin-bottom: 22px; }
.tariff-per .dis {
    display: inline-block;
    padding: 2px 9px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
    letter-spacing: 0.05em;
}

.tariff-pop {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), var(--glass));
}
.tariff-pop .tariff-period {
    padding-top: 26px;
}
.tariff-pop::after {
    content: 'Популярный';
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--r-full);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

/* ─── Steps ─────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
    padding: 30px 26px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step:hover {
    transform: translateY(-3px);
    border-color: var(--glass-brd-strong);
}
.step-num {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    opacity: 0.8;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }

/* ─── FAQ ───────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
    padding: 22px 24px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item:hover { background: var(--glass-strong); border-color: var(--glass-brd-strong); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 1.02rem;
}
.faq-q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-mute);
    transition: transform 0.3s var(--ease), color 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--cyan); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
    color: var(--ink-dim);
    font-size: 0.95rem;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; margin-top: 12px; }

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-size: 0.82rem;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.input, .field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--r-sm);
    color: #fca5a5;
    font-size: 0.9rem;
}
.form-ok {
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--r-sm);
    color: #86efac;
    font-size: 0.9rem;
}

/* ─── Auth / Login card ─────────────────────────────────────────────── */
.auth {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 120px 0 80px;
}
.auth-card {
    padding: 40px 32px;
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 440px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-brd-strong);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    box-shadow: var(--sh-lg);
    position: relative;
}
.auth-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), transparent 40%, rgba(34, 211, 238, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head h2 { margin-bottom: 6px; }
.auth-head p { color: var(--ink-dim); font-size: 0.95rem; }
.auth-switch { text-align: center; color: var(--ink-mute); font-size: 0.9rem; margin-top: 18px; }
.auth-switch a { color: var(--cyan); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-full);
    padding: 4px;
    margin-bottom: 24px;
    position: relative;
}
.auth-tabs .ind {
    position: absolute;
    top: 4px; bottom: 4px;
    width: calc(50% - 4px);
    left: 4px;
    background: var(--grad-primary);
    border-radius: var(--r-full);
    transition: transform 0.4s var(--ease);
    z-index: 0;
}
.auth-tabs button {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-dim);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.auth-tabs button.active { color: #fff; }
.auth-tabs[data-idx="1"] .ind { transform: translateX(100%); }

/* ─── Cabinet ───────────────────────────────────────────────────────── */
.cabinet { padding: 120px 0 80px; }
.cabinet-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.cabinet-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cabinet-head .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-full);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    font-size: 0.88rem;
    color: var(--ink-dim);
}
.cabinet-head .chip.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }
.cabinet-head .chip.warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }

.subs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) {
    .subs-grid { grid-template-columns: repeat(2, 1fr); }
}
.sub-card {
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sub-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-brd-strong);
}
.sub-card .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(74, 222, 128, 0.15);
    color: var(--ok);
    margin-bottom: 14px;
}
.sub-card .badge.warn { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.sub-card .badge.bad { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.sub-card h3 { margin-bottom: 4px; }
.sub-card .meta { color: var(--ink-mute); font-size: 0.88rem; margin-bottom: 16px; }
.sub-card .progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--r-full);
    overflow: hidden;
    margin-bottom: 14px;
}
.sub-card .progress > div {
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--r-full);
    box-shadow: 0 0 12px var(--violet-glow);
    transition: width 1s var(--ease);
}

/* Empty state */
.empty {
    padding: 60px 24px;
    text-align: center;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px dashed var(--glass-brd-strong);
}
.empty .ic { font-size: 2.4rem; margin-bottom: 12px; opacity: 0.7; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-dim); margin-bottom: 20px; }

/* ─── Instruction ───────────────────────────────────────────────────── */
.instr { padding: 120px 0 80px; }
.instr-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 6px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-full);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(18px);
}
.instr-tab {
    padding: 10px 20px;
    border-radius: var(--r-full);
    color: var(--ink-dim);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s, background 0.3s var(--ease);
    white-space: nowrap;
}
.instr-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.instr-tab.active {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.instr-platform {
    margin-top: 48px;
    scroll-margin-top: 90px;
}
.instr-platform-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-brd);
}
.instr-platform-ic {
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}
.instr-platform-head h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    margin-bottom: 4px;
}
.instr-platform-head p { font-size: 0.92rem; }

.instr-step {
    padding: 24px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    margin-bottom: 14px;
    backdrop-filter: blur(16px);
}
.instr-step h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.instr-step h3 .n {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
    padding: 40px 0 50px;
    margin-top: 80px;
    border-top: 1px solid var(--glass-brd);
    text-align: center;
    color: var(--ink-mute);
    font-size: 0.88rem;
}

/* ─── Reveal (used by GSAP) ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); }

/* ─── Admin panel minor refresh ─────────────────────────────────────── */
.admin-card, .glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 20px;
}
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--grad-primary);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.admin-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139, 92, 246, 0.32); }
.admin-btn.blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.admin-btn.red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.admin-input {
    padding: 10px 14px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-brd);
    color: var(--ink);
}
.admin-input:focus { outline: none; border-color: var(--violet); }

.admin-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.admin-kpi {
    padding: 20px;
    border-radius: var(--r);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(16px);
}
.admin-kpi-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.admin-kpi-lbl { color: var(--ink-mute); font-size: 0.82rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

.admin-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.admin-tab {
    padding: 9px 18px;
    border-radius: var(--r-full);
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    color: var(--ink-dim);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}
.admin-tab.active {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ─── Testimonials ──────────────────────────────────────────────────── */
.testimonials {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .testimonials { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
    .testimonials { grid-template-columns: repeat(4, 1fr); }
}
.testimonial {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.testimonial .stars {
    color: #fbbf24;
    font-size: 1.05rem;
    letter-spacing: 2px;
}
.testimonial p {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}
.testimonial .author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-brd);
}
.testimonial .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.testimonial .name { font-weight: 600; font-size: 0.95rem; }
.testimonial .meta { color: var(--ink-mute); font-size: 0.8rem; margin-top: 2px; }

/* ─── Telegram banner ───────────────────────────────────────────────── */
.tg-banner {
    padding: clamp(32px, 5vw, 56px);
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) {
    .tg-banner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}
.tg-banner-text .eyebrow { margin-bottom: 18px; }
.tg-banner-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
.tg-banner-text p {
    color: var(--ink-dim);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 520px;
}
.tg-link { color: var(--cyan); font-weight: 600; }
.tg-banner-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.tg-banner-visual {
    display: grid;
    place-items: center;
}
.tg-phone {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-brd);
}
.tg-msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}
.tg-msg-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-brd);
}
.tg-msg-bot .tg-msg-head {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.tg-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, #5b8cff, #8b5cf6);
    color: #fff;
    font-weight: 500;
}
.tg-msg code {
    font-family: 'Space Grotesk', monospace;
    color: var(--cyan);
    font-size: 0.82rem;
}

/* ─── Utilities ─────────────────────────────────────────────────────── */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 36px; }
.text-center { text-align: center; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-orb { animation: none; }
}
