/* ==========================================================================
   GDE VPN — дизайн-система
   Тёмная фиолетовая тема, стекло, мягкие свечения. Один файл на сайт, кабинет, MiniApp и админку.
   ========================================================================== */

:root {
    --bg: #0a0613;
    --bg-2: #110a20;
    --bg-3: #1a1030;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --surface-3: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .08);
    --border-2: rgba(255, 255, 255, .14);
    --text: #f5f1ff;
    --text-2: #c3b8de;
    --muted: #8a7dab;

    --v-200: #ddd6fe;
    --v-300: #c4b5fd;
    --v-400: #a78bfa;
    --v-500: #8b5cf6;
    --v-600: #7c3aed;
    --v-700: #6d28d9;
    --v-800: #5b21b6;
    --v-900: #3b1a78;
    --pink: #e879f9;
    --pink-2: #d946ef;

    --good: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;

    --grad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 45%, #c026d3 100%);
    --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(192, 38, 211, .12));
    --grad-text: linear-gradient(100deg, #f5f1ff 10%, #c4b5fd 45%, #e879f9 90%);

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px -20px rgba(0, 0, 0, .6);
    --glow: 0 10px 40px -10px rgba(124, 58, 237, .65);

    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --gutter: 20px;
    --maxw: 1180px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 500 15px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
html { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(139, 92, 246, .45); }
:focus-visible { outline: 2px solid var(--v-400); outline-offset: 2px; border-radius: 6px; }

/* ---------- фон: свечения + сетка + зерно ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx::before, .bg-fx::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.bg-fx::before { width: 720px; height: 720px; left: -200px; top: -260px; background: radial-gradient(circle, #6d28d9 0%, transparent 65%); }
.bg-fx::after { width: 640px; height: 640px; right: -220px; top: 120px; background: radial-gradient(circle, #a21caf 0%, transparent 65%); opacity: .35; }
.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-noise {
    position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 560px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.h1 { font-size: clamp(38px, 6.2vw, 78px); letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -.03em; }
.h3 { font-size: 22px; }
.h4 { font-size: 17px; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; max-width: 620px; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v-300);
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; opacity: .7; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin: 18px auto 0; }
.section-head .eyebrow { margin-bottom: 18px; }

/* ---------- кнопки ---------- */
.btn {
    --h: 48px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--h); padding: 0 22px; border-radius: 14px;
    font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
    user-select: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -1px 0 rgba(0, 0, 0, .2) inset, var(--glow);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .2s;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 60%);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 50px -10px rgba(139, 92, 246, .85); }
.btn-white { background: #fff; color: var(--v-800); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--bad); border: 1px solid rgba(248, 113, 113, .25); }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; border-radius: 18px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border); transition: background .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.link { color: var(--v-300); font-weight: 600; }
.link:hover { color: var(--v-200); }

/* ---------- карточки ---------- */
.card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-sm { padding: 16px; border-radius: var(--r); }
.card-hover { transition: transform .3s var(--ease), border-color .3s, background .3s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--surface-2); }
.card-glow::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(196, 181, 253, .6), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(232, 121, 249, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-hero {
    background: radial-gradient(120% 120% at 100% 0%, rgba(232, 121, 249, .35) 0%, transparent 45%),
                radial-gradient(100% 100% at 0% 100%, rgba(76, 29, 149, .9) 0%, transparent 60%),
                linear-gradient(150deg, #8b5cf6 0%, #6d28d9 45%, #3b1a78 100%);
    border: 1px solid rgba(255, 255, 255, .16); color: #fff; overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 30px 80px -30px rgba(124, 58, 237, .9);
}
.divider { height: 1px; background: var(--border); margin: 18px 0; border: 0; }

/* ---------- чипы, бейджи ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2);
    white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--surface-3); color: var(--text-2);
}
.badge-v { background: rgba(139, 92, 246, .18); color: var(--v-200); }
.badge-good { background: rgba(52, 211, 153, .14); color: var(--good); }
.badge-warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.badge-bad { background: rgba(248, 113, 113, .14); color: var(--bad); }
.badge-hot { background: var(--grad); color: #fff; }

/* ---------- формы ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.input {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; outline: none;
    background: rgba(0, 0, 0, .25); border: 1px solid var(--border-2); color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--v-400); box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); background: rgba(0, 0, 0, .35); }
.input::placeholder { color: var(--muted); }
.input-code { text-align: center; font: 700 26px/1 var(--mono); letter-spacing: .5em; padding-left: .5em; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a78bfa' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--v-500); width: 16px; height: 16px; margin-top: 2px; }

/* ---------- сегменты / табы ---------- */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }
.segmented button { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .2s; }
.segmented button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; }

/* ---------- навигация сайта ---------- */
.nav {
    position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 6, 19, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--border); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 6px 16px rgba(139, 92, 246, .55)); }
.logo b { font-weight: 700; }
.logo i { font-style: normal; color: var(--v-300); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- HERO ---------- */
.hero { padding: 56px 0 40px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--v-400); }

/* телефон-мокап */
.device-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.device-halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: conic-gradient(from 180deg, #7c3aed, #c026d3, #6366f1, #7c3aed); filter: blur(70px); opacity: .45; animation: spin 18s linear infinite; }
.device {
    position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 12px;
    background: linear-gradient(160deg, #2b1f45, #120a22 40%, #0b0716);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 0 0 9px #0c0817, 0 0 0 10px rgba(255, 255, 255, .08), 0 50px 120px -30px rgba(0, 0, 0, .9);
    transform: rotate(-4deg);
}
.screen {
    position: relative; height: 100%; border-radius: 36px; overflow: hidden; padding: 54px 20px 20px;
    background: radial-gradient(120% 70% at 50% 0%, #3b1a78 0%, #120a22 55%, #0b0716 100%);
    display: flex; flex-direction: column; align-items: center;
}
.screen::before { content: ''; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.screen-top { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); font-weight: 700; }
.power {
    position: relative; margin: 44px 0 26px; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 35%, #a78bfa, #6d28d9 60%, #4c1d95);
    box-shadow: 0 0 0 10px rgba(139, 92, 246, .12), 0 0 0 22px rgba(139, 92, 246, .06), 0 20px 60px -10px rgba(139, 92, 246, .9), 0 2px 0 rgba(255, 255, 255, .35) inset;
}
.power::before, .power::after { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 1.5px solid rgba(196, 181, 253, .35); animation: pulse 2.6s var(--ease) infinite; }
.power::after { animation-delay: 1.3s; }
.power svg { width: 56px; height: 56px; color: #fff; }
.screen-status { font: 600 22px/1.1 var(--display); letter-spacing: -.02em; }
.screen-sub { color: var(--good); font-size: 13px; font-weight: 700; margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.screen-stats { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.screen-stat { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.screen-stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.screen-stat b { font: 800 15px/1.35 var(--font); letter-spacing: -.01em; }
.floating { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(23, 14, 42, .78); border: 1px solid var(--border-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8); font-size: 13px; font-weight: 700; animation: float 6s ease-in-out infinite; }
.floating .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--grad-soft); border: 1px solid var(--border); }
.floating small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.f1 { top: 70px; left: -10px; }
.f2 { top: 210px; right: -24px; animation-delay: -2s; }
.f3 { bottom: 120px; left: -36px; animation-delay: -4s; }
.f4 { bottom: 6px; right: -10px; animation-delay: -1s; }

/* бегущая строка сервисов */
.marquee { position: relative; overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.svc { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--text-2); }
.svc i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font: 700 13px/1 var(--display); color: #fff; }

/* ---------- бенто преимуществ ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { padding: 28px; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; }
.b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; }
.feat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); color: var(--v-300); margin-bottom: 22px; }
.feat-ico svg { width: 24px; height: 24px; }
.bento h3 { font-size: 20px; margin-bottom: 10px; }
.bento p { margin: 0; color: var(--text-2); }
.bento .art { margin-top: auto; padding-top: 22px; }

/* блок нейросетей */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ai-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.ai-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.ai-item i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 13px/1 var(--display); font-style: normal; color: #fff; flex: none; }
.ai-item b { display: block; font-size: 14px; }
.ai-item small { color: var(--muted); font-size: 12px; font-weight: 600; }
.chat { padding: 22px; }
.chat-head { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.msg-u { margin-left: auto; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg-a { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; color: var(--text-2); }
.msg-err { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .25); color: #fecaca; border-bottom-left-radius: 6px; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .6); }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--v-300); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; }
.step-num { font: 600 13px/1 var(--display); color: var(--v-300); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); margin-bottom: 20px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
    position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
    display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s, background .3s; cursor: pointer; text-align: left;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); }
.plan.featured { background: linear-gradient(170deg, rgba(139, 92, 246, .28), rgba(76, 29, 149, .12) 60%), var(--surface); border-color: rgba(167, 139, 250, .5); box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .8); }
.plan.selected { border-color: var(--v-400); box-shadow: 0 0 0 1px var(--v-400) inset, 0 20px 60px -25px rgba(139, 92, 246, .9); }
.plan-ribbon { position: absolute; top: -11px; right: 18px; }
.plan-name { font-weight: 700; color: var(--text-2); }
.plan-price { font: 600 40px/1 var(--display); letter-spacing: -.04em; margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan-price small { font: 600 16px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan-old { color: var(--muted); text-decoration: line-through; font-size: 14px; font-weight: 600; }
.plan-month { font-size: 13px; color: var(--muted); font-weight: 600; min-height: 20px; }
.plan ul { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--v-400); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan-check { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; transition: all .2s; }
.plan.selected .plan-check { background: var(--v-500); border-color: var(--v-500); }
.plan.selected .plan-check::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.plans-note { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 13px; font-weight: 600; }
.plans-note span { display: inline-flex; align-items: center; gap: 8px; }
.plans-note svg { width: 16px; height: 16px; color: var(--v-400); }

/* ---------- розыгрыш ---------- */
.raffle-banner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: 44px; border-radius: var(--r-xl); }
.raffle-banner h2 { font-size: clamp(26px, 3.6vw, 42px); }
.raffle-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.prize-phone { width: 150px; height: 300px; border-radius: 34px; position: relative; transform: rotate(8deg);
    background: linear-gradient(150deg, #e9e3ff 0%, #b8a6f0 30%, #7c5cd6 60%, #3b1a78 100%);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .5) inset, 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 80px rgba(232, 121, 249, .4); }
.prize-phone::before { content: ''; position: absolute; top: 16px; left: 16px; width: 62px; height: 62px; border-radius: 18px; background: rgba(20, 10, 40, .85); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.prize-phone::after { content: ''; position: absolute; top: 24px; left: 24px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #6366f1, #111 70%); box-shadow: 26px 0 0 0 #111, 0 26px 0 0 #111, 26px 26px 0 -6px #333; }
.ticket { position: absolute; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--v-800); font: 700 12px/1 var(--display); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--v-700); }
.ticket::before { left: -5px; } .ticket::after { right: -5px; }
.progress { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fff, #f0abfc); box-shadow: 0 0 20px rgba(240, 171, 252, .8); transition: width 1s var(--ease); }
.progress.dark > i { background: var(--grad); box-shadow: 0 0 16px rgba(139, 92, 246, .8); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: background .2s, border-color .2s; }
.faq details[open] { background: var(--surface-2); border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--v-300); border-bottom: 2px solid var(--v-300); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- CTA + футер ---------- */
.cta-final { padding: 64px 40px; border-radius: var(--r-xl); text-align: center; }
.cta-final .lead { margin: 18px auto 30px; color: rgba(255, 255, 255, .82); }
.footer { padding: 48px 0 40px; border-top: 1px solid var(--border); margin-top: 40px; color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font: 700 13px/1 var(--font); color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: var(--text); }

/* ==========================================================================
   Кабинет / MiniApp
   ========================================================================== */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); min-height: 100vh; }
.app-wide { max-width: 1180px; }
.app-top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-title { font: 600 26px/1.1 var(--display); letter-spacing: -.03em; margin: 8px 0 18px; }
.tabbar {
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
    display: flex; gap: 2px; padding: 6px; border-radius: 22px; width: min(528px, calc(100% - 24px));
    background: rgba(20, 12, 36, .82); border: 1px solid var(--border-2); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-radius: 16px; font-size: 11px; font-weight: 700; color: var(--muted); transition: color .2s, background .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.active { color: #fff; background: rgba(139, 92, 246, .22); }

.status-card { padding: 26px; }
.status-row { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-val b { font: 600 32px/1 var(--display); letter-spacing: -.04em; }
.ring-val small { font-size: 11px; font-weight: 700; opacity: .75; margin-top: 4px; }
.status-label { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; }
.status-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-align: left; transition: background .2s, border-color .2s, transform .2s var(--ease); display: block; width: 100%; }
.tile:hover { background: var(--surface-2); border-color: var(--border-2); }
.tile:active { transform: scale(.98); }
.tile .feat-ico { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; }
.tile .feat-ico svg { width: 20px; height: 20px; }
.tile b { display: block; font-size: 15px; }
.tile small { color: var(--muted); font-size: 12px; font-weight: 600; }
.offer-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(110deg, rgba(232, 121, 249, .22), rgba(139, 92, 246, .2)); border: 1px solid rgba(232, 121, 249, .35); }
.offer-banner .big { font: 700 26px/1 var(--display); letter-spacing: -.03em; color: #fff; }

.list { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; width: 100%; text-align: left; transition: background .2s; }
.list-item + .list-item { border-top: 1px solid var(--border); }
button.list-item:hover, a.list-item:hover { background: var(--surface-2); }
.list-item .feat-ico { width: 38px; height: 38px; margin: 0; border-radius: 11px; flex: none; }
.list-item .feat-ico svg { width: 19px; height: 19px; }
.chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); flex: none; margin-right: 4px; }

.key-box { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px dashed rgba(167, 139, 250, .45); }
.key-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 var(--mono); color: var(--v-200); }
.qr { background: #fff; padding: 14px; border-radius: 20px; width: 220px; margin: 0 auto; }
.qr svg { width: 100%; height: auto; }
.os-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.os-grid button { padding: 12px 4px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); transition: all .2s; }
.os-grid button svg { width: 22px; height: 22px; }
.os-grid button.active { border-color: var(--v-400); background: rgba(139, 92, 246, .16); color: #fff; }
.steps-v { counter-reset: s; display: grid; gap: 14px; }
.steps-v > div { position: relative; padding-left: 46px; min-width: 0; }
.steps-v > div > span { display: block; }
.steps-v > div::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 600 13px/1 var(--display); background: rgba(139, 92, 246, .16); color: var(--v-300); border: 1px solid rgba(139, 92, 246, .3); }
.steps-v b { display: block; margin-bottom: 4px; }

.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); width: 100%; text-align: left; transition: all .2s; }
.method + .method { margin-top: 8px; }
.method.active { border-color: var(--v-400); background: rgba(139, 92, 246, .12); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); flex: none; display: grid; place-items: center; }
.method.active .radio { border-color: var(--v-400); }
.method.active .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--v-400); }
.summary { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); margin-top: 18px; padding: 16px; border-radius: 20px; background: rgba(23, 14, 42, .9); border: 1px solid var(--border-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .6); }
.plan-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-row .plan { padding: 16px; border-radius: 18px; }
.plan-row .plan-price { font-size: 28px; margin: 10px 0 2px; }

/* авторизация */
.auth { max-width: 440px; margin: 0 auto; padding: 32px 0 60px; }
.auth-card { padding: 28px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 22px 0; }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.tg-btn { background: #2aabee; color: #fff; box-shadow: 0 10px 30px -10px rgba(42, 171, 238, .7); }
.tg-btn:hover { background: #229ed9; }

/* ---------- live-розыгрыш ---------- */
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #fca5a5; text-transform: uppercase; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); animation: livepulse 1.6s infinite; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 74px; padding: 14px 8px 10px; border-radius: 16px; text-align: center; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); }
.countdown b { display: block; font: 600 30px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.big-ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring .ring-val b { font-size: 46px; }
.leader { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.leader + .leader { border-top: 1px solid var(--border); }
.leader .pos { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 600 12px/1 var(--display); background: var(--surface-2); color: var(--text-2); flex: none; }
.leader:nth-child(1) .pos { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #451a03; }
.leader:nth-child(2) .pos { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #0f172a; }
.leader:nth-child(3) .pos { background: linear-gradient(135deg, #fed7aa, #c2410c); color: #431407; }
.drum { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.drum span { width: 58px; height: 78px; border-radius: 14px; display: grid; place-items: center; font: 600 40px/1 var(--display); background: #fff; color: var(--v-800); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 -3px 0 rgba(0, 0, 0, .08) inset; }
.proof { font: 500 12px/1.6 var(--mono); word-break: break-all; color: var(--text-2); padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); }

/* ==========================================================================
   Админка
   ========================================================================== */
.admin-layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--border); background: rgba(10, 6, 19, .6); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { padding: 6px 10px 22px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: all .2s; width: 100%; }
.side-link svg { width: 19px; height: 19px; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: rgba(139, 92, 246, .18); color: #fff; box-shadow: 0 0 0 1px rgba(167, 139, 250, .25) inset; }
.admin-main { padding: 28px 32px 80px; min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: 30px; letter-spacing: -.03em; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar .input { height: 40px; width: auto; border-radius: 12px; font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.kpi small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi b { display: block; font: 600 28px/1.15 var(--display); letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.kpi.accent { background: linear-gradient(150deg, rgba(139, 92, 246, .3), rgba(76, 29, 149, .15)); border-color: rgba(167, 139, 250, .4); }
.charts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.chart-card { padding: 18px 18px 12px; }
.chart-card h4 { font: 700 13px/1 var(--font); color: var(--text-2); letter-spacing: 0; }
.chart-card .total { font: 600 22px/1.2 var(--display); margin: 8px 0 10px; letter-spacing: -.02em; }
.chart { position: relative; height: 150px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: var(--v-500); transition: fill .15s; }
.chart .bar.hl { fill: var(--v-300); }
.chart .line { fill: none; stroke: var(--v-400); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#areaGrad); }
.chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-weight: 600; font-family: var(--font); }
.chart .cross { stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.chart .dot { fill: var(--v-300); stroke: var(--bg-2); stroke-width: 2; }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: #1f1537; border: 1px solid var(--border-2); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); transform: translate(-50%, -110%); }
.tip b { display: block; font-size: 14px; color: #fff; }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.t th { position: sticky; top: 0; text-align: right; padding: 12px 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #140c26; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: default; }
.t th.sortable { cursor: pointer; } .t th.sortable:hover { color: var(--text); }
.t td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t th:first-child, .t td:first-child { text-align: left; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .15s; }
.t tbody tr:hover { background: var(--surface-2); }
.t tfoot td { font-weight: 800; background: rgba(139, 92, 246, .08); border-top: 1px solid var(--border-2); border-bottom: 0; }
.t .strong { font-weight: 800; color: #fff; }
.inline-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--v-500); vertical-align: middle; margin-right: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.code-block { font: 500 12px/1.65 var(--mono); padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); overflow-x: auto; white-space: pre; color: var(--v-200); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- оверлеи ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(5, 2, 12, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 26px; background: #150d28; border: 1px solid var(--border-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); animation: pop .3s var(--ease); }
.modal-wide { max-width: 760px; }
.toast-host { position: fixed; z-index: 100; left: 50%; top: 16px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: #21163a; border: 1px solid var(--border-2); font-weight: 600; font-size: 14px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); display: flex; gap: 10px; align-items: center; animation: drop .35s var(--ease); }
.toast.ok::before { content: '✓'; color: var(--good); font-weight: 900; }
.toast.err { border-color: rgba(248, 113, 113, .4); }
.toast.err::before { content: '!'; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; flex: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; }
.skeleton { border-radius: 16px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.page-loader { min-height: 60vh; display: grid; place-items: center; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.success-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #6ee7b7, #059669); box-shadow: 0 0 0 10px rgba(52, 211, 153, .12), 0 20px 50px -10px rgba(52, 211, 153, .7); }
.success-ico svg { width: 40px; height: 40px; color: #fff; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- анимации ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 100% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes roll { 0% { transform: translateY(-30%); opacity: .2; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .charts { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero-grid, .ai-grid, .raffle-banner { grid-template-columns: 1fr; }
    .hero { padding-top: 28px; text-align: center; }
    .hero .lead { margin: 0 auto; }
    .hero-cta, .hero-trust { justify-content: center; }
    .device-wrap { min-height: 520px; margin-top: 12px; }
    .bento { grid-template-columns: 1fr 1fr; }
    .b-2, .b-3, .b-4, .b-6 { grid-column: span 2; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar .logo { display: none; }
    .side-link { width: auto; flex: none; }
    .admin-main { padding: 20px 16px 80px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .section { padding: 64px 0; }
    .nav-inner { height: 62px; gap: 12px; }
    .nav-cta .btn-ghost { display: none; }
    .device { transform: scale(.88) rotate(-3deg); }
    .floating { transform: scale(.9); }
    .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 0; } .f4 { right: 4px; }
    .plans { grid-template-columns: 1fr; }
    .ai-list { grid-template-columns: 1fr; }
    .raffle-banner, .cta-final { padding: 30px 22px; }
    .countdown div { min-width: 0; flex: 1; }
    .os-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 110px 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
