/* ═══════════════════════════════════════════════════════
   AvenShop — Главный стиль (Фиолетовая тема)
   ═══════════════════════════════════════════════════════ */

/* ─── CSS-переменные ───────────────────────────────── */
:root {
    --bg-primary: #0a0015;
    --bg-secondary: #110020;
    --bg-card: rgba(124, 58, 237, 0.06);
    --bg-card-hover: rgba(124, 58, 237, 0.12);
    --bg-glass: rgba(20, 5, 40, 0.7);

    --purple-50: #f5f3ff;
    --purple-100: #ede9fe;
    --purple-200: #ddd6fe;
    --purple-300: #c4b5fd;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;
    --purple-800: #5b21b6;
    --purple-900: #4c1d95;

    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-glow: rgba(168, 85, 247, 0.4);

    --text-primary: #f0e6ff;
    --text-secondary: #c2b2dd;
    --text-muted: #8f7dab;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --border: rgba(124, 58, 237, 0.2);
    --border-hover: rgba(124, 58, 237, 0.5);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --shadow: 0 4px 30px rgba(124, 58, 237, 0.1);
    --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.2);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Unbounded', 'Inter', -apple-system, sans-serif;
}

/* ─── Сброс ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    /* clip, а не hidden: hidden делает body scroll-контейнером (overflow-y становится auto), и position:sticky
       у колонки товара и сайдбара форума переставал прилипать. clip режет горизонтальный вылет без этого */
    overflow-x: clip;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; }

/* ─── Скроллбар ────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--purple-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-600); }

/* ─── Контейнер ────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Частицы (canvas в main.js) ───────────────────── */
#particles canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ═══ Trust strip (доверие — числа после hero) ═════════ */
.trust-strip {
    padding: 1.75rem 0;
    background:
        linear-gradient(180deg, rgba(20, 5, 40, 0.4), rgba(15, 3, 30, 0.25)),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.08), transparent 70%);
    border-top: 1px solid rgba(168, 85, 247, 0.14);
    border-bottom: 1px solid rgba(168, 85, 247, 0.14);
    position: relative;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
@media (max-width: 720px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
.trust-stat {
    position: relative;
    padding: 0.5rem 0.75rem;
}
.trust-stat + .trust-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 1px; height: 40px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.35), transparent);
}
@media (max-width: 720px) {
    .trust-stat + .trust-stat::before { display: none; }
}
.trust-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #c084fc 60%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.trust-stars { color: #fbbf24; -webkit-text-fill-color: #fbbf24; filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
.trust-stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trust-stat-label i { color: var(--accent-light); font-size: 0.78rem; opacity: 0.85; }

/* ═══ Live sales ticker ═══════════════════════════════ */
.live-sales-section {
    padding: 2.25rem 0 1.5rem;
}
.live-sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.live-sales-title {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.005em;
}
.live-sales-title i { color: #fbbf24; }
.live-pulse {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.75);
    position: relative;
    flex-shrink: 0;
    animation: liveDot 1.6s ease-in-out infinite;
}
.live-pulse::before { content: none; }
@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.82); }
}
.live-sales-sub {
    font-size: 0.86rem;
    color: var(--text-muted);
}
.live-sales-track-wrap {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.live-sales-track {
    display: flex;
    gap: 0.85rem;
    width: max-content;
    animation: liveScroll 60s linear infinite;
}
.live-sales-track:hover { animation-play-state: paused; }
@keyframes liveScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.live-sale-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 320px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.65), rgba(15, 3, 30, 0.45));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.live-sale-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(168, 85, 247, 0.18);
    color: var(--text-primary);
}
.live-sale-card img,
.live-sale-img-ph {
    width: 52px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(168, 85, 247, 0.18);
}
.live-sale-img-ph {
    display: flex; align-items: center; justify-content: center;
    color: var(--purple-700); font-size: 1.2rem;
}
.live-sale-info { flex: 1; min-width: 0; }
.live-sale-line1 {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.live-sale-user { font-weight: 700; color: var(--accent-light); }
.live-sale-product {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-sale-meta {
    display: flex;
    gap: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.live-sale-when i { color: var(--accent-light); margin-right: 3px; }
.live-sale-check { color: var(--success); font-weight: 600; }
.live-sale-check i { margin-right: 3px; }

/* ═══ Bestseller card ═════════════════════════════════ */
.bestseller-section {
    padding: 2.5rem 0 2rem;
}
.bestseller-card {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(40, 14, 75, 0.7), rgba(15, 3, 30, 0.5));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(192, 132, 252, 0.15) inset,
        0 0 80px rgba(168, 85, 247, 0.18);
    isolation: isolate;
}
.bestseller-glow {
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.35), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 760px) {
    .bestseller-card { grid-template-columns: 1fr; }
}
.bestseller-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    overflow: hidden;
    z-index: 1;
}
.bestseller-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.bestseller-card:hover .bestseller-img-wrap img { transform: scale(1.05); }
.bestseller-img-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--purple-700);
    font-size: 5rem;
    background: linear-gradient(135deg, var(--purple-900), var(--bg-primary));
}
.bestseller-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.42rem 0.95rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
    color: #1a0a30;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.bestseller-badge i { font-size: 0.78rem; }
.bestseller-body {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.bestseller-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.85rem;
}
.bestseller-name {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bestseller-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 1.2rem;
}
.bestseller-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}
.bs-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.4rem 0.85rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.bs-stat i { color: var(--accent-light); font-size: 0.85rem; }
.bs-stat:first-child i { color: #f59e0b; }
.bestseller-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.bestseller-price { display: flex; align-items: baseline; gap: 0.5rem; }
.bs-price-from { font-size: 0.85rem; color: var(--text-muted); }
.bs-price-val {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
}

/* ═══ Reviews / Testimonials ══════════════════════════ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.review-card {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.6), rgba(15, 3, 30, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    isolation: isolate;
}
.review-card::before {
    content: '\201C';  /* opening quote */
    position: absolute;
    top: -8px; left: 14px;
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(168, 85, 247, 0.35);
    font-family: Georgia, serif;
    z-index: 0;
    pointer-events: none;
}
.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 36px rgba(168, 85, 247, 0.12);
}
.review-stars {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    position: relative; z-index: 1;
}
.review-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative; z-index: 1;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(168, 85, 247, 0.14);
    position: relative; z-index: 1;
}
.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.review-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.review-meta {
    font-size: 0.78rem;
    color: var(--success);
    margin-top: 1px;
}
.review-meta i { margin-right: 3px; font-size: 0.72rem; }

/* ─── Навигация (premium glass + neon) ──────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background:
        linear-gradient(180deg, rgba(10, 0, 21, 0.78) 0%, rgba(10, 0, 21, 0.62) 100%);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid transparent;
    padding: 0;
    transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Тонкая градиентная линия-граница снизу */
.navbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168, 85, 247, 0) 8%,
        rgba(168, 85, 247, 0.45) 50%,
        rgba(168, 85, 247, 0) 92%,
        transparent 100%);
    pointer-events: none;
}
/* Edge-glow при скролле */
.navbar.scrolled {
    background: rgba(10, 0, 21, 0.86);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
                0 1px 0 rgba(168, 85, 247, 0.06);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: height .3s ease;
}
.navbar.scrolled .container { height: 62px; }

/* ── Лого ── */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    position: relative;
}
.logo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 60%, #5b21b6 100%);
    box-shadow:
        0 4px 14px rgba(168, 85, 247, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.logo:hover i {
    transform: rotate(-8deg) scale(1.05);
    box-shadow:
        0 6px 22px rgba(168, 85, 247, 0.65),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.logo-accent {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(168, 85, 247, 0.35);
}
.logo:hover { color: var(--text-primary); }

/* ── Ссылки ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-link i { font-size: 0.85rem; opacity: 0.85; transition: opacity .2s ease; }
.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
    border-radius: 2px;
    transition: width .25s ease, left .25s ease;
    pointer-events: none;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.06);
}
.nav-link:hover i { opacity: 1; }
.nav-link:hover::before { width: 60%; left: 20%; }
.nav-link.active {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(168,85,247,0.14), rgba(168,85,247,0.04));
}
.nav-link.active::before { width: 60%; left: 20%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ── Dropdown ── */
.nav-dropdown { position: relative !important; display: inline-flex; align-items: center; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    min-width: 240px;
    background: linear-gradient(180deg, rgba(22, 6, 42, 0.96), rgba(15, 3, 30, 0.96));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 14px;
    padding: 0.45rem;
    padding-top: calc(0.45rem + 8px);
    margin-top: 8px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 28px rgba(168, 85, 247, 0.08);
    z-index: 9999;
    transition: opacity .2s ease, transform .2s ease;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 16px;
}
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
}
.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.55rem 0.85rem;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.dropdown-item::after {
    content: '\f054'; /* fa chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
    color: var(--accent);
}
.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.16), rgba(168, 85, 247, 0.04));
    color: var(--text-primary);
    padding-left: 1rem;
}
.dropdown-item:hover::after { opacity: 1; transform: translateX(0); }
.dropdown-toggle i.fa-chevron-down {
    font-size: 0.65rem;
    transition: transform .25s ease;
    margin-left: 2px;
}
.nav-dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-toggle {
    display: none;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.45rem 0.6rem;
    transition: background .2s ease, border-color .2s ease;
}
.mobile-toggle:hover {
    background: rgba(168, 85, 247, 0.16);
    border-color: var(--accent);
}

/* ─── UI Controls (тема, язык, проверка заказа) ───── */
.ui-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.14);
    border-radius: 999px;
}
.theme-switch {
    position: relative;
    width: 46px;
    height: 24px;
    background: rgba(10, 0, 21, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
    transition: border-color .2s ease, background .2s ease;
}
.theme-switch:hover {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.12);
}
.ts-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left .3s cubic-bezier(.4, 1.4, .5, 1), background .25s ease, box-shadow .25s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.ts-thumb i {
    font-size: 0.6rem;
    color: #fff;
}
.light-theme .ts-thumb {
    left: calc(100% - 20px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255,255,255,0.3);
}

.lang-pill {
    position: relative;
    display: flex;
    background: rgba(10, 0, 21, 0.55);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    overflow: hidden;
    padding: 2px;
}
.lp-item {
    position: relative;
    z-index: 1;
    padding: 0.22rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 999px;
    transition: color .2s ease;
}
.lp-item:hover { color: var(--text-primary); }
.lp-item.active {
    color: #fff;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}

/* ── Кнопки навигации (Войти / Проверить заказ) ── */
.nav-check-btn {
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-secondary) !important;
    transition: all .25s ease;
}
.nav-check-btn:hover {
    border-color: var(--accent);
    background: rgba(168, 85, 247, 0.16);
    color: var(--accent-light) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}
.nav-check-btn::before { display: none; }

.nav-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(124, 58, 237, 0.10));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-primary) !important;
    transition: all .25s ease;
}
.nav-account-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(124, 58, 237, 0.18));
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
}
.nav-account-btn::before { display: none; }
.nav-account-name { font-weight: 700; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 1151–1365px: у вошедшего только иконка и баланс, иначе длинный логин выталкивал поиск и «⋯» за край */
@media (min-width: 1151px) and (max-width: 1365px) { .nav-account-name { display: none; } }
.nav-account-balance {
    background: rgba(168, 85, 247, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-light);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.25);
}

/* ── Бесплатные DLC — главный CTA в шапке ── */
.nav-link-free-dlc {
    position: relative;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #5b21b6 100%);
    color: #fff !important;
    border: 1px solid rgba(192, 132, 252, 0.55);
    border-radius: 10px;
    padding: 0.5rem 1rem !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    box-shadow:
        0 4px 18px rgba(168, 85, 247, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
}
.nav-link-free-dlc::before { display: none; }
.nav-link-free-dlc::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .7s ease;
    pointer-events: none;
}
.nav-link-free-dlc:hover {
    box-shadow:
        0 6px 28px rgba(168, 85, 247, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #6d28d9 100%);
    color: #fff !important;
}
.nav-link-free-dlc:hover::after { transform: translateX(100%); }
.nav-link-free-dlc i { color: #fff; }

/* ── Шапка 30.09 (дизайн-аудит A5, G5, A6, D8): меньше пунктов, поиск виден всегда, тема/язык/заказ в «⋯» ── */
/* DLC остаётся в шапке, но контурной кнопкой: залитая спорила с главной кнопкой хиро */
.nav-link-free-dlc { background: transparent; color: var(--accent-light) !important; border-color: rgba(168, 85, 247, .45); box-shadow: none; }
.nav-link-free-dlc::after { display: none; }
.nav-link-free-dlc i { color: var(--accent-light); }
.nav-link-free-dlc:hover { background: rgba(168, 85, 247, .12); color: #fff !important; box-shadow: none; }
.light-theme .nav-link-free-dlc { color: #6d28d9 !important; border-color: rgba(124, 58, 237, .4); }
.light-theme .nav-link-free-dlc i { color: #6d28d9; }
.light-theme .nav-link-free-dlc:hover { background: rgba(124, 58, 237, .08); color: #4c1d95 !important; }
/* каталог в меню: игры с миниатюрами в две колонки. display меняется только при открытии,
   иначе невидимое меню шириной 520px ловило бы клики под «Каталогом» */
.dropdown-item img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid rgba(168, 85, 247, .2); }
.dropdown-games .dropdown-item { justify-content: flex-start; gap: .6rem; }
.dropdown-games .dropdown-item::after { margin-left: auto; }
.dropdown-item > span > i { width: 1.2em; margin-right: .45rem; color: var(--accent-light); text-align: center; }
button.dropdown-item { width: 100%; background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
@media (min-width: 1151px) {
    .dropdown-games { min-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
    .nav-dropdown:focus-within .dropdown-menu { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }
    .nav-dropdown:hover .dropdown-games, .nav-dropdown:focus-within .dropdown-games { display: grid; }
}
/* меню «⋯» справа — только по нажатию */
.nav-settings-btn, .nav-qs-btn { width: 38px; height: 38px; justify-content: center; padding: 0 !important; border: 1px solid rgba(168, 85, 247, .22) !important;
    border-radius: 10px; background: rgba(168, 85, 247, .06); color: var(--text-secondary); cursor: pointer; font: inherit; }
.nav-settings-btn::before, .nav-qs-btn::before { display: none; }
.nav-settings-btn:hover, .nav-qs-btn:hover { border-color: var(--accent) !important; color: var(--text-primary); }
.nav-settings .dropdown-right { left: auto; right: 0; transform: translateY(4px); min-width: 220px; }
.nav-settings:hover .dropdown-right, .nav-settings:focus-within .dropdown-right { display: none; }
.nav-settings.active .dropdown-right { display: block; opacity: 1; transform: translateY(0); }
.dropdown-lang { display: flex; gap: .35rem; padding: .45rem .85rem; }
.dropdown-lang a { flex: 1; text-align: center; padding: .35rem 0; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--text-muted); border: 1px solid rgba(168, 85, 247, .2); }
.dropdown-lang a.active { color: #fff; background: linear-gradient(135deg, #a855f7, #7c3aed); border-color: transparent; }
/* пункты только для мобильного меню */
.nav-m-search, .nav-m-games { display: none; }
@media (max-width: 1150px) {
    .nav-settings { display: none !important; }
    /* сплошной фон: сквозь полупрозрачный просвечивал текст хиро; 100dvh — чтобы низ меню не уходил под панель iOS */
    .nav-links { background: #0c021a !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overscroll-behavior: contain; }
    .light-theme .nav-links { background: #faf7ff !important; }
    .nav-m-search { display: flex !important; width: 100%; align-items: center; gap: .6rem; padding: .8rem 1rem !important; margin-bottom: .2rem;
        border: 1px solid rgba(168, 85, 247, .3); border-radius: 12px; background: rgba(124, 58, 237, .1); color: var(--text-secondary); font: inherit; font-size: 1rem; cursor: pointer; }
    .nav-m-search::before { display: none; }
    .nav-m-games { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .3rem 0 .5rem; }
    .nav-m-game { display: flex; align-items: center; gap: .5rem; min-width: 0; min-height: 44px; padding: .5rem .65rem; border-radius: 10px;
        border: 1px solid rgba(168, 85, 247, .16); background: rgba(255, 255, 255, .02); color: var(--text-secondary); font-size: .88rem; }
    .nav-m-game img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; }
    .nav-m-game span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-m-game:hover { border-color: var(--accent); color: var(--text-primary); }
    .nav-catalog { display: none !important; }
    /* «Ещё» в бургере — плоским списком */
    .nav-more > .dropdown-toggle { display: none !important; }
    .nav-more .dropdown-menu { display: block !important; opacity: 1 !important; position: static; transform: none !important; padding: 0 !important; margin: 0;
        border: 0; background: none !important; box-shadow: none; min-width: 0; backdrop-filter: none; }
    .nav-more .dropdown-menu::before, .nav-more .dropdown-menu::after { display: none; }
    .nav-more .dropdown-item { padding: .8rem 1rem; font-size: 1rem; }
    .nav-links .nav-link-free-dlc { margin-top: .4rem; }
}
html.nav-open, html.nav-open body { overflow: hidden; }
@media (max-width: 400px) { .nav-login-text { display: none; } }

/* ─── Кнопки ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent-light);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    color: #fff;
}
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-xs { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-glow {
    animation: btnGlow 2s ease-in-out infinite alternate;
}
@keyframes btnGlow {
    0% { opacity: .92; }
    100% { opacity: 1; }
}

/* ─── Стеклянная карточка ──────────────────────────── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* ─── Формы ────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(10, 0, 21, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
.form-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px; /* цель для пальца */
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] {
    width: 22px; height: 22px; flex: none;
    accent-color: var(--accent);
    cursor: pointer;
}
.checkmark { display: none; }

/* ─── Флеш-сообщения ──────────────────────────────── */
.flash-container {
    position: fixed;
    top: 80px;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease;
    min-width: min(300px, calc(100vw - 3rem));
}
.flash-success { border-color: var(--success); }
.flash-success i { color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-error i { color: var(--danger); }
.flash-warning { border-color: var(--warning); }
.flash-warning i { color: var(--warning); }
.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Модалка ──────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000; /* выше плавающих слоёв (TG 9990, cookie 9995): иначе они оставались кликабельными поверх диалога */
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    width: 100%;
    max-width: 450px;
    animation: modalIn 0.3s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}
.modal-body { padding: 1.5rem; }
@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ─── Герой ────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: clip;
}
/* Фон хиро — один статичный слой: градиенты бывших пятен (.hero-bg::before с inset:-50% пересчитан в координаты
   самого .hero-bg) и точки звёзд. Раньше дымку рисовали пять систем (аврора с blur, ::before, три анимированных
   пятна, пятна в canvas), а ::before, зависевший от высоты хиро, давал CLS 0,11 на телефоне */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.5px 1.5px at 12% 22%, rgba(233, 213, 255, .75), transparent 60%),
        radial-gradient(1px 1px at 27% 68%, rgba(233, 213, 255, .6), transparent 60%),
        radial-gradient(1.5px 1.5px at 41% 14%, rgba(233, 213, 255, .55), transparent 60%),
        radial-gradient(1px 1px at 58% 82%, rgba(233, 213, 255, .5), transparent 60%),
        radial-gradient(2px 2px at 66% 30%, rgba(233, 213, 255, .7), transparent 60%),
        radial-gradient(1px 1px at 78% 58%, rgba(233, 213, 255, .55), transparent 60%),
        radial-gradient(1.5px 1.5px at 88% 16%, rgba(233, 213, 255, .6), transparent 60%),
        radial-gradient(1px 1px at 93% 76%, rgba(233, 213, 255, .45), transparent 60%),
        radial-gradient(1px 1px at 6% 86%, rgba(233, 213, 255, .45), transparent 60%),
        radial-gradient(600px circle at 10% 30%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(500px circle at 90% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(109, 40, 217, 0.12) 0%, transparent 40%);
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 2rem;
    row-gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-layout .hero-stats {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 700px;
    margin: 1rem auto 0;
    justify-self: center;
}
.hero-content {
    text-align: left;
}
.hero-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.hero-mascot-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    filter: none; /* анимированный drop-shadow перерисовывал 420×630 каждый кадр — свечение теперь в .mascot-aura */
    animation: mascotFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    will-change: transform;
}
@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Аура за маскотом */
.mascot-aura {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.45) 0%, rgba(168, 85, 247, 0.22) 40%, transparent 70%);
    animation: auraPulse 4s ease-in-out infinite;
    will-change: transform, opacity;
    z-index: 0;
    pointer-events: none;
}
@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Магический шар в руке (overlay) */
.mascot-orb {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 28%;
    left: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.9) 0%, rgba(139, 92, 246, 0.5) 40%, transparent 70%);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(139, 92, 246, 0.3), 0 0 60px rgba(192, 132, 252, 0.2);
    animation: orbPulse 2s ease-in-out infinite, mascotFloat 6s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Частицы вокруг маскота */
.mascot-particles {
    position: absolute;
    inset: -20px;
    z-index: 1;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 6px #c084fc, 0 0 12px rgba(192, 132, 252, 0.5);
    animation: particleFloat 3s ease-in-out infinite;
    opacity: 0;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-80px) scale(0); }
}
.p1 { top: 80%; left: 15%; animation-delay: 0s; animation-duration: 3.5s; }
.p2 { top: 70%; left: 85%; animation-delay: 0.5s; animation-duration: 3s; background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.p3 { top: 90%; left: 50%; animation-delay: 1s; animation-duration: 2.8s; }
.p4 { top: 60%; left: 5%; animation-delay: 1.5s; animation-duration: 3.2s; background: #e9d5ff; box-shadow: 0 0 6px #e9d5ff; width: 3px; height: 3px; }
.p5 { top: 85%; left: 70%; animation-delay: 2s; animation-duration: 3.8s; background: #a855f7; }
.p6 { top: 75%; left: 30%; animation-delay: 0.8s; animation-duration: 2.5s; width: 3px; height: 3px; }
.p7 { top: 95%; left: 40%; animation-delay: 1.8s; animation-duration: 3.3s; background: #e9d5ff; box-shadow: 0 0 6px #e9d5ff; }
.p8 { top: 65%; left: 90%; animation-delay: 2.5s; animation-duration: 2.7s; width: 5px; height: 5px; }
/* .hero-badge убран из разметки главной (ничего не сообщал); правило оставлено для старых шаблонов */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 2rem;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 0;
    padding: 1.2rem 2rem;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    animation: statsSlideUp 0.8s ease-out 0.3s both;
}
@keyframes statsSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
}
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-size: 1.3rem;
    color: var(--accent);
    transition: all 0.3s ease;
    animation: iconGlow 3s ease-in-out infinite;
}
.stat-item:hover .stat-icon-wrap {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
}
@keyframes iconGlow {
    0%, 100% { opacity: .9; }
    50% { opacity: 1; }
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ─── Секции ───────────────────────────────────────── */
.section {
    padding: 5.5rem 0;
    position: relative;
}
.section-dark {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        var(--bg-secondary);
    position: relative;
}
.section-dark::before,
.section-dark::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
}
.section-dark::before { top: 0; }
.section-dark::after  { bottom: 0; }

.section-header {
    text-align: center;
    margin-bottom: 3.25rem;
    position: relative;
}
.section-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
    border-radius: 2px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-wrap: balance;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.page-header {
    padding: 6rem 0 2rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}
.page-header-sm { padding: 5.5rem 0 1.5rem; }
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 0.6rem; }

/* ─── Карточки категорий ───────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.category-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.18);
    background: var(--bg-card);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
    display: block;
    color: var(--text-primary);
    min-height: 280px;
    isolation: isolate;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.category-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6) 0%, transparent 35%, transparent 65%, rgba(124, 58, 237, 0.5) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 3;
}
.category-card:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(168, 85, 247, 0.4),
        0 0 60px rgba(168, 85, 247, 0.25);
    border-color: transparent;
    color: var(--text-primary);
}
.category-card:hover::before { opacity: 1; }

.category-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.category-card-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: opacity .5s ease, transform .7s cubic-bezier(.4, 0, .2, 1);
}
.category-card:hover .category-card-bg img {
    opacity: 0.65;
    transform: scale(1.08);
    filter: saturate(1.25);
}
.category-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.25), transparent 60%),
        linear-gradient(135deg, var(--purple-900), var(--bg-primary));
    font-size: 3rem;
    color: var(--purple-700);
}
.category-card-content {
    position: relative;
    z-index: 2;
    padding: 1.6rem 1.5rem 1.4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(to top,
            rgba(10, 0, 21, 0.96) 0%,
            rgba(10, 0, 21, 0.85) 35%,
            rgba(10, 0, 21, 0.35) 70%,
            transparent 100%);
}
.category-card-content h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    transition: transform .35s ease;
}
.category-card:hover .category-card-content h3 { transform: translateY(-2px); }
.category-card-content p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}
.category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 0.85rem;
    border-top: 1px solid rgba(168, 85, 247, 0.12);
}
.category-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 999px;
    font-weight: 600;
    color: var(--accent-light);
}
.category-meta > span:first-child i {
    font-size: 0.7rem;
}
.category-arrow {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    color: var(--accent-light);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                background .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}
.category-card:hover .category-arrow {
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    color: #fff;
    border-color: rgba(192, 132, 252, 0.6);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.55);
}

/* ─── Карточки товаров ─────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.product-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.45));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
    isolation: isolate;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 3;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(168, 85, 247, 0.2);
    border-color: transparent;
}
.product-card:hover::before { opacity: 1; }
.product-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}
.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 3, 30, 0.6) 100%);
    pointer-events: none;
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.4, 0, .2, 1), filter .35s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.08);
    filter: saturate(1.2);
}
.product-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--purple-700);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}
.product-status {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.status-undetected {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-undetected .status-dot {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}
.status-detected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-detected .status-dot {
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}
.status-updating {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-updating .status-dot {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
    animation: statusPulse 1s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.product-card { display: flex; flex-direction: column; }
.product-card-body { padding: 1.4rem; position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.product-card-footer { margin-top: auto; }
.product-card-body > .product-category-tag, .product-card-body > .pc-rating { align-self: flex-start; }
/* нет в наличии: нейтральный серый, не красный (красный = detected) */
.product-status.status-sold { background: rgba(20, 12, 34, .82); color: #cbc3dc; border: 1px solid rgba(203, 195, 220, .28); }
.product-status.status-sold .status-dot { background: #9d93b3; }
.product-card.is-sold .product-card-image img { opacity: .7; }
.price-sold { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.pc-rating { display: inline-flex; align-items: center; gap: .3rem; margin: -.1rem 0 .45rem; font-size: .82rem; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pc-rating i { color: #fbbf24; font-size: .75rem; }
.pc-rating small { font-weight: 500; color: var(--text-muted); font-size: .78rem; }
/* категория с одним товаром: широкая горизонтальная карточка вместо одной колонки из четырёх */
.products-grid.is-single { grid-template-columns: 1fr; max-width: 920px; }
.product-card-wide { flex-direction: row; }
.product-card-wide .product-card-image { flex: 0 0 48%; height: auto !important; min-height: 240px; }
.product-card-wide .product-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card-wide .product-card-body { padding: 1.8rem; }
.product-card-wide .product-card-title { font-size: 1.5rem; }
.product-card-wide .product-card-desc { -webkit-line-clamp: 4; font-size: .95rem; }
@media (max-width: 720px) {
    .product-card-wide { flex-direction: column; }
    .product-card-wide .product-card-image { min-height: 0; aspect-ratio: 3 / 2; }
    .product-card-wide .product-card-body { padding: 1.3rem; }
}
.product-category-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.65rem;
}
.product-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(168, 85, 247, 0.12);
}
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.price-current {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ─── Фичи (преимущества) ──────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: -1;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(168, 85, 247, 0.15);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }

.feature-icon {
    position: relative;
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 60%, #5b21b6 100%);
    border-radius: 16px;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1.4rem;
    box-shadow:
        0 10px 28px rgba(124, 58, 237, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform .4s cubic-bezier(.4, 1.4, .5, 1);
}
.feature-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: conic-gradient(from 0deg, rgba(168, 85, 247, 0.6), transparent, rgba(168, 85, 247, 0.6));
    opacity: 0;
    z-index: -1;
    transition: opacity .35s ease;
    animation: spinGlow 6s linear infinite;
}
@keyframes spinGlow {
    to { transform: rotate(360deg); }
}
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
}
.feature-card:hover .feature-icon::before { opacity: 1; }
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.005em;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ─── FAQ ──────────────────────────────────────────── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.faq-item {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.16);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.faq-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s ease;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}
.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.faq-item:hover::before { opacity: 0.6; }
.faq-item.active {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(180deg, rgba(30, 8, 55, 0.6), rgba(20, 5, 40, 0.45));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 32px rgba(168, 85, 247, 0.12);
}
.faq-item.active::before { opacity: 1; }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.3rem 1.6rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}
.faq-question i {
    color: var(--accent);
    font-size: 0.85rem;
    transition: transform .35s cubic-bezier(.4, 1.4, .5, 1);
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.active .faq-answer { max-height: 280px; }
.faq-answer p {
    padding: 0 1.6rem 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ─── Страница товара ──────────────────────────────── */
.product-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 2rem;
    align-items: start;
}
.product-media {
    position: sticky;
    top: 90px;
    align-self: start;
    min-width: 0;
    overflow: hidden;
}
.product-image-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.22);
    background:
        radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.15), transparent 60%),
        var(--bg-secondary);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    isolation: isolate;
}
.product-image-main::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(168, 85, 247, 0.08);
}
.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}
.product-placeholder-large {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--purple-700);
}
.product-status-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.status-dot-lg {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-undetected .status-dot-lg {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}
.status-detected .status-dot-lg {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}
.status-updating .status-dot-lg {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: statusPulse 1s ease-in-out infinite;
}
.product-video { margin-top: 1rem; }

/* Стрелки галереи */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 3, 30, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    z-index: 5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    opacity: 0.85;
}
.gallery-arrow:hover {
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    border-color: rgba(192, 132, 252, 0.6);
    box-shadow: 0 8px 26px rgba(168, 85, 247, 0.5);
    opacity: 1;
}
.gallery-arrow-left:hover { transform: translateY(-50%) translateX(-2px); }
.gallery-arrow-right:hover { transform: translateY(-50%) translateX(2px); }
.gallery-arrow-left { left: 10px; }
.gallery-arrow-right { right: 10px; }

/* Точки-индикаторы */
.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, box-shadow .25s ease;
}
.gallery-dot.active {
    width: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c084fc, #a855f7);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}
.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
.video-container {
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}
.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-light);
    margin-bottom: 1rem;
}
.product-category-badge i {
    font-size: 0.75rem;
    opacity: 0.85;
}
.product-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.product-short-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
/* ─── Инфо-карточки (Статус / Наличие / Обновлено) ─── */
.product-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}
.info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.1rem 0.6rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.65), rgba(15, 3, 30, 0.45));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 14px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
    isolation: isolate;
}
.info-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), transparent 50%, rgba(124, 58, 237, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.info-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.info-card:hover::before { opacity: 1; }
.info-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.info-card-icon.status-undetected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08));
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.info-card-icon.status-undetected .status-dot-lg {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px var(--success), 0 0 24px rgba(16, 185, 129, 0.5);
    animation: statusPulse 2s ease-in-out infinite;
}
.info-card-icon.status-detected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.08));
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.info-card-icon.status-detected .status-dot-lg {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}
.info-card-icon.status-updating {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.08));
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.info-card-icon.status-updating .status-dot-lg {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 12px var(--warning);
    animation: statusPulse 1s ease-in-out infinite;
}
.info-card-icon.info-icon-stock {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(124, 58, 237, 0.1));
    color: var(--accent-light);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.info-card-icon.info-icon-date {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.08));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
}
.info-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.info-card-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
/* Значение статуса — аккуратный pill-бейдж (а не текст с фоном впритык) */
.info-card-value[class*="status-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.info-card-value.status-undetected {
    color: var(--success);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}
.info-card-value.status-detected {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}
.info-card-value.status-updating {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

@media (max-width: 480px) {
    .product-info-cards {
        grid-template-columns: 1fr;
    }
}
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-bold { font-weight: 700 !important; }
.text-center { text-align: center !important; }
.text-xl { font-size: 1.3rem !important; }

/* ─── Тарифы (premium) ─────────────────────────────── */
.tariffs-section { margin-bottom: 1.5rem; padding-top: 0.5rem; }
fieldset.tariffs-section { border: 0; margin: 0 0 1.5rem; padding: .5rem 0 0; min-width: 0; }
.tariffs-section h3, .tariffs-legend {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: -0.005em;
}
.tariffs-legend { padding: 0; float: left; width: 100%; }
.tariffs-legend + .tariffs-grid { clear: both; }
.tariffs-section h3 i, .tariffs-legend i {
    color: var(--accent);
    font-size: 0.95rem;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 0.7rem;
    padding-top: 14px;  /* room for top badges */
}
.tariff-card {
    position: relative;
    padding: 1.2rem .6rem 1rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.7), rgba(15, 3, 30, 0.5));
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
                border-color .3s ease,
                box-shadow .3s ease,
                background .3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    isolation: isolate;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.tariff-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), transparent 35%, transparent 65%, rgba(124, 58, 237, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.tariff-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(168, 85, 247, 0.2);
}
.tariff-card:hover::before { opacity: 1; }
.tariff-card .tariff-name, .tariff-card .tariff-notify-hint { display: block; }
/* один тариф (AntiLose): не сетка из одной узкой карточки, а строка на всю ширину: срок и подпись слева, цена справа */
.tariffs-grid.is-single { grid-template-columns: 1fr; }
.tariffs-grid.is-single .tariff-card { min-height: 0; padding: 1rem 1.3rem; text-align: left; display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "term price" "hint hint"; column-gap: 1rem; row-gap: .25rem; align-items: center; }
.tariffs-grid.is-single .tariff-card:hover, .tariffs-grid.is-single .tariff-card.selected { transform: none; }
.tariffs-grid.is-single .tariff-name { grid-area: name; margin: 0; }
.tariffs-grid.is-single .tariff-duration { grid-area: term; justify-self: start; margin: 0; }
.tariffs-grid.is-single .tariff-price { grid-area: price; margin: 0; align-items: flex-end; }
.tariffs-grid.is-single .tariff-notify-hint { grid-area: hint; }
.tariffs-grid.is-single .tariff-card.selected::after { display: none; }
.tariff-card:has(input:focus-visible) { outline: 2px solid #c084fc; outline-offset: 3px; }

.tariff-card.selected {
    transform: translateY(-4px);
    border-color: transparent;
    background: linear-gradient(180deg, rgba(35, 12, 65, 0.85), rgba(25, 8, 50, 0.7));
    box-shadow:
        0 0 0 2px rgba(168, 85, 247, 0.6),
        0 0 0 6px rgba(168, 85, 247, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(168, 85, 247, 0.45);
}
.tariff-card.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, #c084fc, #a855f7 50%, #7c3aed);
}
.tariff-card.selected::after {
    content: '\f00c'; /* fa check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px; left: 8px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    color: #fff;
    font-size: 0.65rem;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

/* Популярный тариф — особый */
.tariff-popular {
    border-color: rgba(168, 85, 247, 0.4);
    background:
        linear-gradient(180deg, rgba(40, 14, 75, 0.65), rgba(20, 5, 40, 0.55));
}
.tariff-popular::before {
    opacity: 0.6;
    background: linear-gradient(135deg, #c084fc, transparent 35%, transparent 65%, #7c3aed);
}
.tariff-popular:hover::before { opacity: 1; }

/* Бейджи и скидки */
.tariff-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 60%, #5b21b6 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 2;
    box-shadow:
        0 4px 14px rgba(168, 85, 247, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tariff-discount {
    position: absolute;
    top: -10px; right: -8px;
    padding: 0.22rem 0.55rem;
    background: linear-gradient(135deg, #e879f9, #a855f7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tariff-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.tariff-duration {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
    margin: 0 auto 0.85rem;
}
.tariff-card.selected .tariff-duration {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(192, 132, 252, 0.5);
    color: var(--accent-light);
}
.tariff-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.tariff-price .price-old {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.7);
}
.tariff-price .price-main {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e9d5ff, #c084fc 50%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.tariff-card.selected .tariff-price .price-main {
    background: linear-gradient(135deg, #fff, #f0e6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(192, 132, 252, 0.5);
}
/* светлая тема: белый градиент на светлом фоне выбранного тарифа был почти невидим (B4) */
.light-theme .tariff-card.selected .tariff-price .price-main {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

/* Тариф без ключей */
.tariff-card.tariff-disabled {
    opacity: 0.85;
    cursor: not-allowed;
    border-color: rgba(203, 195, 220, 0.18);
    background: linear-gradient(180deg, rgba(24, 16, 36, 0.6), rgba(16, 10, 26, 0.45));
}
.tariff-card.tariff-disabled::before {
    background: linear-gradient(135deg, rgba(203, 195, 220, 0.25), transparent 60%);
    opacity: 0.4;
}
.tariff-card.tariff-disabled:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.tariff-card.tariff-disabled:hover::before { opacity: 0.7; }
.tariff-card.tariff-disabled .tariff-name,
.tariff-card.tariff-disabled .tariff-duration,
.tariff-card.tariff-disabled .tariff-price .price-main {
    color: var(--text-muted);
    background: none;
    -webkit-text-fill-color: var(--text-muted);
}
.tariff-card.tariff-disabled .tariff-price .price-old {
    color: var(--text-muted);
}
.tariff-badge-sold {
    background: #2a2138 !important;
    border: 1px solid rgba(203, 195, 220, 0.3);
    color: #d8d0e8;
    font-weight: 800;
    font-size: 0.66rem;
    padding: 0.22rem 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.tariff-sold-overlay { display: none; }

.buy-section {
    margin-top: 1.25rem;
    animation: buyEnter .3s ease;
}
@keyframes buyEnter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.buy-section .btn-glow {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    letter-spacing: 0.01em;
}
.buy-summary { margin-top: .55rem; text-align: center; font-size: .86rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.buy-summary:empty { display: none; }
.buy-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 1.4rem;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.buy-trust-badges span, .buy-trust-badges a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.buy-trust-badges i {
    color: var(--success);
    font-size: 0.85rem;
}
.buy-trust-badges a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: rgba(168, 85, 247, .4); text-underline-offset: 3px; }
.buy-trust-badges a:hover { color: var(--text-primary); }
.buy-trust-badges a i { color: var(--accent-light); }

/* Фичи-список */
.product-features { margin-top: 1.75rem; }
.product-features h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.product-features h3 i {
    color: var(--accent);
    font-size: 0.95rem;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}
.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.16);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.features-list li:hover {
    transform: translateX(2px);
    border-color: rgba(168, 85, 247, 0.45);
    background: linear-gradient(180deg, rgba(30, 10, 55, 0.7), rgba(20, 5, 40, 0.5));
}
.features-list li i { color: var(--success); flex-shrink: 0; }

/* ─── Системные требования ─────────────────────────── */
.product-sysreq {
    margin-top: 1.75rem;
}
.product-sysreq h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.product-sysreq h3 i {
    color: var(--accent);
    font-size: 0.95rem;
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.sysreq-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 12px;
    overflow: hidden;
}
.sysreq-row {
    display: flex;
    padding: 0.7rem 1.1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    transition: background .2s ease;
}
.sysreq-row:last-child { border-bottom: none; }
.sysreq-row:hover { background: rgba(168, 85, 247, 0.07); }
.sysreq-label {
    flex: 0 0 40%;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
}
.sysreq-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.product-description {
    margin-top: 3rem;
    padding: 2.25rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.6), rgba(15, 3, 30, 0.42));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.product-description h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}
.product-description h2 i { color: var(--accent); }
.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
}
.description-content p { margin-bottom: 1rem; }

.related-products { margin-top: 3rem; }
.related-products h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subcategory-section { margin-bottom: 3rem; }
.subcategory-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.subcategory-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ─── Чекаут ───────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}
.checkout-product {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}
.checkout-product-image {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.checkout-product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-placeholder-sm {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--purple-700);
    font-size: 1.5rem;
}
.product-status-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.3rem;
}
.checkout-product-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.checkout-details { display: flex; flex-direction: column; gap: 0.5rem; }
.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.checkout-divider {
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}
.checkout-total { font-size: 1.1rem; }

/* Промокод */
.promo-input-group {
    display: flex;
    gap: 0.5rem;
}
.promo-input-group .form-control { flex: 1; }
.promo-message {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.promo-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.promo-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Способы оплаты */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.payment-option {
    cursor: pointer;
    display: block;
}
.payment-option input { display: none; }
.payment-option-content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.payment-option-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.payment-option:hover .payment-option-content {
    border-color: rgba(124,58,237,0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124,58,237,0.12);
}
.payment-option:hover .payment-option-content::before {
    opacity: 1;
}
.payment-option.selected .payment-option-content {
    border-color: var(--accent);
    background: rgba(124,58,237,0.08);
    box-shadow: 0 0 0 1px rgba(124,58,237,0.3), 0 4px 24px rgba(124,58,237,0.18);
}
.payment-option.selected .payment-option-content::before {
    opacity: 1;
}
/* Иконка платёжки */
.payment-option-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(var(--pm-color), 0.15);
    background-color: color-mix(in srgb, var(--pm-color, #7c3aed) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--pm-color, #7c3aed) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--pm-color, var(--accent));
    transition: all 0.22s ease;
    flex-shrink: 0;
}
.payment-option.selected .payment-option-icon {
    background-color: color-mix(in srgb, var(--pm-color, #7c3aed) 25%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--pm-color, #7c3aed) 40%, transparent);
}
/* Текст */
.payment-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.payment-option-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.payment-option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}
/* Галочка */
.payment-option-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.payment-option-check i {
    font-size: 0.55rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.payment-option.selected .payment-option-check {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(124,58,237,0.5);
}
.payment-option.selected .payment-option-check i {
    opacity: 1;
}
.form-agreement {
    margin-bottom: 1.5rem;
}
.form-agreement a {
    color: var(--accent);
    text-decoration: underline;
}

/* ─── Страница оплаты ──────────────────────────────── */
.payment-page {
    max-width: 500px;
    margin: 0 auto;
}
.payment-card { text-align: center; }
.payment-header { margin-bottom: 1.5rem; }
.payment-icon {
    width: 70px; height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--purple-600), var(--accent));
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}
.payment-info {
    text-align: left;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.stub-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--warning);
}
.mock-card-form { margin-bottom: 1.5rem; text-align: left; }
.payment-footer { margin-top: 1.5rem; }
.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.payment-secure i { color: var(--success); }

/* ─── Страница успеха ──────────────────────────────── */
.order-success-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}
.order-success-card { text-align: center; }
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}
.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.success-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.key-delivery-box {
    text-align: left;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.key-delivery-box h3, .key-delivery-box .key-title { margin-bottom: 0.75rem; font-size: 1.1rem; }
/* что дальше после оплаты */
.order-next { text-align: left; margin: 0 0 1.5rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(168, 85, 247, .22); border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 5, 40, .55), rgba(15, 3, 30, .4)); }
.order-next ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.order-next b { color: var(--text-primary); }
.order-next-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .7rem; }
.light-theme .order-next { background: #fff; border-color: rgba(124, 58, 237, .2); }
.light-theme .order-next ol { color: #4a3860; }
.key-value {
    padding: 1rem;
    background: rgba(10, 0, 21, 0.8);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent-light);
    word-break: break-all;
    margin-bottom: 0.75rem;
}
.key-instruction {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.key-instruction h4 { margin-bottom: 0.5rem; }
.key-instruction pre {
    padding: 1rem;
    background: rgba(10, 0, 21, 0.6);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.6;
}
.email-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: left;
}
.email-notice i { font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.pending-icon, .cancelled-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.pending-icon { color: var(--warning); }
.cancelled-icon { color: var(--danger); }
.order-details-summary {
    text-align: left;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.order-details-summary h4, .order-details-summary .order-next-title { margin-bottom: 0.75rem; }
.order-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ─── Логин ────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}
.login-card { text-align: center; }
.login-header { margin-bottom: 2rem; }
.login-header .logo {
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.login-header h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.login-card .form-group { text-align: left; }
.password-input {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}
.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.login-footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.login-footer a:hover { color: var(--accent); }

/* ─── Пустое состояние ─────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state i { font-size: 4rem; color: var(--purple-700); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ─── Ошибка ───────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 8rem 2rem;
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple-600), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}
.error-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ─── Футер ────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.footer-logo i { color: var(--accent); }
.footer-logo:hover { color: var(--text-primary); }
.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.footer-pay { margin-top: .6rem; font-size: .82rem; color: var(--text-secondary); }
/* все 11 игр двумя подколонками (раньше выводились первые 6) */
.footer-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
}
.footer-col a:hover { color: var(--accent); padding-left: 0.3rem; }
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Анимации ─────────────────────────────────────── */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}
.animate-scale-in {
    opacity: 0;
    transform: scale(0.5);
    animation: scaleIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

/* Ленивые анимации (срабатывают при скролле) */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Бейджи статусов заказа ───────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-lg {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}
.order-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.order-paid { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.order-delivered { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.order-cancelled { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.order-refunded { background: rgba(168, 85, 247, 0.15); color: var(--accent); }

/* ─── Пагинация ────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem 0 0.5rem;
}
.pagination-link {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination-dots { color: var(--text-muted); padding: 0 0.3rem; }

/* ─── Адаптив ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; gap: 2rem; }
    .hero-mascot { order: -1; }
    .hero-mascot-img { max-width: 300px; }
    .mascot-orb { width: 35px; height: 35px; top: 26%; left: 24%; }
    .product-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-media { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; padding: 1.2rem 1rem; }
    .stat-number { font-size: 1.5rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    /* телефон: две колонки вместо одной длинной (подвал был 973px), описание на всю ширину */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
    .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
    .footer-grid > .footer-col:nth-child(2) { grid-column: 1 / -1; }
    .footer-col a { padding: .35rem 0; }
    .payment-methods { grid-template-columns: 1fr; }

    /* Навигация */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(12, 2, 26, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    }
    .nav-links .nav-link { display: flex; width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }
    .nav-links .nav-link-free-dlc { justify-content: center; }
    .light-theme .nav-links { background: rgba(250, 247, 255, 0.98); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    /* На мобильном тумблеры темы/языка и «Проверить заказ» переезжают в меню */
    .ui-controls { display: none; }
    .nav-right .nav-check-btn { display: none; }
    .nav-right { gap: 0.45rem; }
    .nav-mobile-extras { display: flex; }
    .nav-dropdown { width: 100%; position: relative !important; display: block; }
    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        padding: 0 0 0 1rem;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu { display: block; }
    .nav-check-text { display: none; }

    /* Контент */
    .features-list { grid-template-columns: 1fr; }
    .product-title { font-size: 1.5rem; }
    .product-info-cards { grid-template-columns: 1fr 1fr; }
    .glass-card { padding: 1.25rem; }
    .product-description { padding: 1.25rem; }
    .breadcrumb { flex-wrap: wrap; }
    .error-code { font-size: 5rem; }
    .hero { min-height: calc(100vh - 70px); min-height: calc(100dvh - 70px); }

    /* Флеш-сообщения */
    .flash-container { right: 1rem; left: 1rem; }
    .flash-message { min-width: auto; max-width: 100%; }

    /* Модалка */
    .modal { max-width: calc(100vw - 2rem); margin: 0 1rem; }

    /* Системные требования */
    .sysreq-row { flex-direction: column; gap: 0.2rem; }
    .sysreq-label { flex: none; }

    /* Увеличение тач-таргетов */
    .gallery-dot { width: 12px; height: 12px; }
    .thumb-arrow { width: 40px; height: 40px; font-size: 0.85rem; }
    .gallery-arrow { width: 42px; height: 42px; }
    .lp-item { padding: 0.35rem 0.75rem; font-size: 0.8rem; min-height: 32px; display: flex; align-items: center; }

    /* Чекаут */
    .checkout-product { flex-wrap: wrap; }
    .checkout-product-image { width: 60px; height: 60px; }

    /* Покупка */
    .buy-trust-badges { gap: .45rem 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { flex-direction: column; gap: 1rem; padding: 1rem; }
    .stat-icon-wrap { width: 40px; height: 40px; font-size: 1.1rem; }
    .hero-mascot-img { max-width: 220px; }
    .mascot-orb { width: 25px; height: 25px; top: 25%; left: 26%; }
    .mascot-particles .particle { width: 3px; height: 3px; }
    .tariffs-grid { grid-template-columns: 1fr; gap: .55rem; padding-top: 10px; }
    .form-row-2 { grid-template-columns: 1fr; }

    .product-title { font-size: 1.3rem; }
    .product-info-cards { grid-template-columns: 1fr; }
    .product-card-image { height: 180px; }
    .error-code { font-size: 4rem; }
    .error-text { font-size: 1rem; }
    .order-actions { flex-direction: column; }
    .order-actions .btn { width: 100%; }
    .key-value { font-size: 0.85rem; padding: 0.75rem; }
    .flash-container { top: 75px; right: 0.5rem; left: 0.5rem; }

    /* Футер */
    .footer { padding: 2rem 0 1rem; }
    .footer-grid { gap: 1.25rem; }
    .footer-col h4 { margin-bottom: 0.5rem; }

    /* Тарифы списком: 5 тарифов занимали три ряда высоких карточек */
    .tariff-card { min-height: 0; padding: .8rem 1rem .8rem 2.9rem; text-align: left;
        display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "term price" "hint hint";
        column-gap: .8rem; row-gap: .2rem; align-items: center; }
    .tariff-card:hover, .tariff-card.selected { transform: none; }
    .tariff-card .tariff-name { grid-area: name; margin: 0; font-size: 1rem; }
    .tariff-card .tariff-duration { grid-area: term; justify-self: start; margin: 0; padding: 1px 8px; font-size: .74rem; }
    .tariff-card .tariff-price { grid-area: price; margin: 0; align-items: flex-end; }
    .tariff-card .tariff-notify-hint { grid-area: hint; margin-top: .25rem; }
    .tariff-price .price-main { font-size: 1.15rem; }
    .tariff-badge { left: 2.9rem; transform: none; top: -9px; }
    .tariff-card::after { content: ''; position: absolute; left: .95rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
        border-radius: 50%; border: 2px solid rgba(192, 132, 252, .45); }
    .tariff-card.selected::after { left: .85rem; right: auto; top: 50%; bottom: auto; margin-top: -11px; border: 0; }

    /* Навигация */
    .navbar .container { height: 60px; }
    .logo { font-size: 1.3rem; }
    .nav-links { top: 60px; }
    .main-content { padding-top: 60px; }
    .hero { padding-top: 60px; }
}

/* ─── Утилиты ──────────────────────────────────────── */
.main-content {
    min-height: calc(100vh - 70px);
    padding-top: 70px;
    position: relative;
    z-index: 1;
}
s { text-decoration: line-through; }
code {
    padding: 0.2rem 0.5rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-light);
}

/* ─── Поиск на главной ─────────────────────────────── */
.site-search-wrap {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 100;
}
.site-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.65), rgba(15, 3, 30, 0.55));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    gap: 0.75rem;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.site-search-inner::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.site-search-inner:focus-within {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.45),
        0 0 0 4px rgba(168, 85, 247, 0.18),
        0 0 28px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.site-search-inner:focus-within::before { opacity: 1; }
.site-search-ico {
    color: var(--accent-light);
    font-size: 0.95rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}
.site-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font);
    letter-spacing: 0.01em;
}
.site-search-input::placeholder {
    color: var(--text-muted);
}
.site-search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
    transition: var(--transition-fast);
}
.site-search-clear:hover { color: var(--text-primary); }
.site-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; right: 0;
    background: rgba(15, 3, 30, 0.97);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 380px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}
.site-search-dropdown.active,
.site-search-dropdown.open { display: block; }

/* ── Элементы выпадающего списка поиска ── */
.ssd-group-label {
    padding: 0.5rem 1rem 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ssd-group-label i { color: var(--accent); font-size: 0.7rem; }
.ssd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}
.ssd-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.ssd-thumb {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.ssd-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
}
.ssd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ssd-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ssd-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ssd-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.site-search-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.9rem;
}
.site-search-dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.site-search-dropdown a img {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.site-search-dropdown .search-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ─── Светлая тема ─────────────────────────────────── */
.light-theme {
    --bg-primary: #f8f6ff;
    --bg-secondary: #ede9fe;
    --bg-card: rgba(124, 58, 237, 0.06);
    --bg-card-hover: rgba(124, 58, 237, 0.12);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #1a0530;
    --text-secondary: #4a3860;
    --text-muted: #5d4d7a;
    --accent-light: #7c3aed;
    /* контраст на светлом фоне #f8f6ff: ссылки 5,3:1 (было 3,7:1), UNDETECTED 5,1:1 (было 2,4:1), «обновляется» 4,7:1 (было 2,0:1) */
    --accent: #7c3aed;
    --success: #047857;
    --warning: #b45309;
    --border: rgba(124, 58, 237, 0.18);
    --border-hover: rgba(124, 58, 237, 0.4);
    --shadow: 0 4px 30px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.12);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
}
.light-theme .navbar {
    background: rgba(248, 246, 255, 0.9);
    border-bottom-color: rgba(124, 58, 237, 0.12);
}
.light-theme .footer {
    background: #ede9fe;
    border-top-color: rgba(124, 58, 237, 0.12);
}
.light-theme ::-webkit-scrollbar-track { background: #f8f6ff; }
.light-theme ::-webkit-scrollbar-thumb { background: var(--purple-300); }
.light-theme .hero { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%); }
.light-theme .hero-title { color: #1a0530; }
.light-theme .gradient-text { background: linear-gradient(135deg, #7c3aed, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.light-theme .particle { background: rgba(124, 58, 237, 0.15); }
.light-theme .product-image-main { background: #fff; }
.light-theme .dropdown-menu { background: rgba(255, 255, 255, 0.95); }
.light-theme .site-search-inner { background: #fff; }
.light-theme .site-search-dropdown { background: rgba(255, 255, 255, 0.98); }
.light-theme .section-dark {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}
.light-theme .section-dark .section-title { color: #1a0530; }
.light-theme .section-dark .section-subtitle { color: #4a3860; }
.light-theme .category-card-content {
    color: #fff;
}
.light-theme .category-card-content h3 {
    color: #fff;
}
.light-theme .category-card-content p {
    color: rgba(255, 255, 255, 0.8);
}
.light-theme .category-card-content .category-meta {
    color: rgba(255, 255, 255, 0.7);
}
.light-theme .category-card-content .category-arrow {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.light-theme .product-card-title {
    color: #1a0530;
}

/* === Light theme: contrast fixes for trust-strip / live-sales / hero-stats === */
.light-theme .trust-strip {
    background:
        linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.06), transparent 70%);
    border-top: 1px solid rgba(124, 58, 237, 0.22);
    border-bottom: 1px solid rgba(124, 58, 237, 0.22);
}
.light-theme .trust-stat + .trust-stat::before {
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.35), transparent);
}
.light-theme .trust-stat-value {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.light-theme .trust-stars,
.light-theme .trust-stars.trust-stat-value {
    background: none;
    -webkit-text-fill-color: #d97706;
    color: #d97706;
    filter: drop-shadow(0 0 6px rgba(217, 119, 6, 0.35));
}
.light-theme .trust-stat-label { color: #4a3860; }
.light-theme .trust-stat-label i { color: #7c3aed; opacity: 1; }
.light-theme .live-sale-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
}
.light-theme .live-sale-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18), 0 0 24px rgba(124, 58, 237, 0.1);
}
.light-theme .live-sale-card img,
.light-theme .live-sale-img-ph {
    background: #f5f3ff;
    border: 1px solid rgba(124, 58, 237, 0.22);
}
.light-theme .live-sale-line1 { color: #5d4d7a; }
.light-theme .live-sale-meta  { color: #5d4d7a; }
.light-theme .live-sale-user  { color: #6d28d9; }
.light-theme .live-sale-when i { color: #7c3aed; }
.light-theme .hero-stats {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}
.light-theme .stat-icon-wrap {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.28);
    color: #7c3aed;
}
.light-theme .stat-item:hover .stat-icon-wrap {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}
.light-theme .stat-number { color: #6d28d9; }

/* ─── Навигация миниатюр ──────────────────────────── */
.thumbs-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    position: relative;
}
.thumb-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(4px);
    z-index: 2;
}
.thumb-arrow:hover {
    background: rgba(124, 58, 237, 0.7);
    border-color: var(--accent);
}

/* ─── Галерея миниатюр товара ──────────────────────── */
.product-thumbs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255,255,255,0.08);
    flex: 1;
    min-width: 0;
}
.product-thumbs::-webkit-scrollbar {
    height: 6px;
}
.product-thumbs::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}
.product-thumbs::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}
.product-thumbs img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.product-thumbs img:hover,
.product-thumbs img.active {
    opacity: 1;
    border-color: var(--accent);
}

/* ─── Лайтбокс (просмотр фото) ────────────────────── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    user-select: none;
    cursor: default;
    transition: transform 0.3s;
}
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10001;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10001;
    user-select: none;
}
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-arrow.prev { left: 1.5rem; }
.lightbox-arrow.next { right: 1.5rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    z-index: 10001;
}

/* SEO текстовый блок */
.seo-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}
.seo-text h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}
.seo-text p {
    margin-bottom: 0.8rem;
}
.seo-text ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}
.seo-text ul li {
    margin-bottom: 0.4rem;
}
.seo-text strong {
    color: var(--text-primary);
}
.light-theme .seo-text {
    color: rgba(0, 0, 0, 0.6);
}
.light-theme .seo-text h2,
.light-theme .seo-text strong {
    color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════
   Hero v2: trust-chips + glass showcase  (2026 redesign)
   ═══════════════════════════════════════════════════════ */
.hero-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}
.htc {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: var(--transition);
}
.htc i { color: var(--accent-light); }
.htc:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-2px); }

/* ── Showcase (заменяет маскот) ── */
.hero-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}
.showcase-glow {
    position: absolute;
    width: 75%;
    height: 75%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: scGlow 7s ease-in-out infinite alternate;
}
@keyframes scGlow {
    0%   { transform: scale(0.9); opacity: 0.55; }
    100% { transform: scale(1.1); opacity: 0.85; }
}
.showcase-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 1.6rem;
    background: var(--bg-glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 40px rgba(168, 85, 247, 0.18);
    animation: scFloat 6s ease-in-out infinite alternate;
}
@keyframes scFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}
.showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.showcase-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.sc-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--success);
}
.showcase-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.showcase-rating i { color: #f59e0b; }
.showcase-order {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    margin-bottom: 1.1rem;
}
.sc-order-ico {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--purple-600), var(--accent));
    color: #fff;
    font-size: 1.05rem;
}
.sc-order-body { flex: 1; min-width: 0; }
.sc-order-title { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.sc-order-sub { font-size: 0.78rem; color: var(--text-muted); }
.sc-order-check {
    width: 26px; height: 26px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
}
.showcase-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.sc-stat {
    text-align: center;
    padding: 0.75rem 0.4rem;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}
.sc-stat b {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sc-stat > span {
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent);
    vertical-align: top;
}
.sc-stat small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.showcase-pay {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.5rem;
    color: var(--text-secondary);
}
.showcase-pay .sc-pay-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: auto;
}
.sc-pay-chip {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.showcase-pay .fa-bitcoin { color: #f7931a; }
.showcase-float {
    position: absolute;
    z-index: 2;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-hover);
    color: var(--accent-light);
    font-size: 1.15rem;
    box-shadow: var(--shadow);
}
.sc-float-1 { top: 8%; left: -4%; animation: scFloat 5s ease-in-out infinite alternate; }
.sc-float-2 { bottom: 10%; right: -2%; color: #f59e0b; animation: scFloat 4.2s ease-in-out infinite alternate-reverse; }

/* ═══ Лента поддерживаемых игр — убрана с главной (DESIGN.md: дублирует каталог) ═══ */

/* ═══ Как это работает ═══════════════════════════════════ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}
.how-step {
    position: relative;
    padding: 2.2rem 1.6rem 1.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}
.how-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.how-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 28px rgba(168, 85, 247, 0.12);
}
.how-step:hover::after { opacity: 1; }
.how-num {
    position: absolute;
    top: 0.9rem; right: 1.1rem;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(168, 85, 247, 0.16);
}
.how-ico {
    width: 64px; height: 64px;
    margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--purple-600), var(--accent));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    position: relative; z-index: 1;
}
.how-step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative; z-index: 1;
}
.how-step p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative; z-index: 1;
}

/* ── Адаптив hero v2 / новые секции ── */
@media (max-width: 1024px) {
    .hero-trust-chips { justify-content: center; }
    .hero-showcase { min-height: auto; margin-top: 1rem; }
    .showcase-float { display: none; }
}
@media (max-width: 760px) {
    .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .showcase-card { padding: 1.2rem; }
    .sc-stat b { font-size: 1.1rem; }
}

/* ── Light theme ── */
.light-theme .htc { background: rgba(124, 58, 237, 0.06); color: #5b21b6; }
.light-theme .showcase-card { background: rgba(255, 255, 255, 0.75); border-color: rgba(124, 58, 237, 0.25); }
.light-theme .sc-order-title { color: #1a0530; }
.light-theme .how-step { background: rgba(255, 255, 255, 0.6); }
.light-theme .how-step h3 { color: #1a0530; }

/* ═══════════════════════════════════════════════════════
   Redesign 2026-08-24: мобильное меню, SEO-аккордеон,
   премиум-типографика
   ═══════════════════════════════════════════════════════ */

/* ── Доп. пункты мобильного меню (тема / язык / заказ) ── */
.nav-mobile-extras {
    display: none; /* видно только внутри раскрытого мобильного меню */
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.nav-mobile-row { display: flex; gap: 0.5rem; }
.nme-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.22);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nme-btn:hover { color: var(--text-primary); border-color: var(--accent); }
.nme-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-color: transparent;
}

/* ── Логотип дисплейным шрифтом ── */
.logo span, .footer-logo span { font-family: var(--font-display); font-weight: 600; font-size: 0.92em; }

/* ── SEO-текст в аккордеоне ── */
details.seo-details { max-width: 900px; margin: 0 auto; }
details.seo-details > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: color .2s ease, border-color .2s ease;
    user-select: none;
}
details.seo-details > summary::-webkit-details-marker { display: none; }
details.seo-details > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    transition: transform .25s ease;
}
details.seo-details[open] > summary::after { transform: rotate(180deg); }
details.seo-details > summary:hover { color: var(--text-secondary); border-color: var(--border-hover); }
details.seo-details .seo-text { padding-top: 1.25rem; }

/* ── Компактные фичи товара: столько колонок, сколько влезает ── */
.features-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features-list li { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
@media (max-width: 480px) {
    /* названия функций короткие: две колонки вдвое сокращают список на телефоне */
    .features-list { grid-template-columns: 1fr 1fr; gap: .4rem; }
    .features-list li { padding: .5rem .6rem; font-size: .8rem; gap: .45rem; line-height: 1.3; }
}

/* ── Плавающая кнопка Telegram на мобильном — компактнее ── */
@media (max-width: 768px) {
    .tg-widget-btn { width: 52px; height: 52px; }
    .tg-widget-btn svg { width: 27px; height: 27px; }
}

/* ── Уважение к reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .tariff-discount, .tg-widget-btn { animation: none !important; }
    .animate-slide-up, .animate-fade-in, .animate-scale-in { animation-duration: 0.01s !important; }
}

/* Показ доп. пунктов меню на мобильном (после базового display:none выше) */
@media (max-width: 768px) {
    .nav-links .nav-mobile-extras { display: flex; }
}

/* Декоративные blob'ы и бегущая строка не должны создавать горизонтальный скролл */
html { overflow-x: hidden; }

/* Сверхузкие экраны: ужимаем шапку */
@media (max-width: 374px) {
    .logo { font-size: 1.05rem; gap: 0.4rem; }
    .logo i { width: 26px; height: 26px; font-size: 0.8rem; }
    .nav-right { gap: 0.35rem; }
    .nav-account-btn { padding: 0.4rem 0.6rem !important; font-size: 0.78rem !important; }
    .nav-account-name { display: none; }
    .mobile-toggle { padding: 0.4rem 0.5rem; font-size: 0.95rem; }
}

/* ═══════════════════════════════════════════════════════
   Design FX 2026-08-28: scroll-progress, 3D-tilt + spotlight,
   shimmer на кнопках, декоративный фон карточек товара
   ═══════════════════════════════════════════════════════ */

/* ── Индикатор прогресса прокрутки ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 1100;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #e879f9);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
    will-change: transform;
    pointer-events: none;
}

/* ── 3D-наклон карточек + световое пятно ──
   Наклон ставит JS инлайном (card.style.transform), события ловятся на
   нетрансформируемом гриде, активная карточка определяется по ПЛОСКОЙ
   геометрии (offset-*), поэтому у краёв нет дрожания hover.
   Пятно .tilt-glow — дочерний элемент (не ::after, чтобы не конфликтовать). */
.tilt-card { transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease; }
/* Пока JS держит карточку активной — стабильная «поднятая» тень,
   не зависящая от мигающего браузерного :hover у краёв. */
.tilt-active {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(168, 85, 247, 0.4),
                0 0 55px rgba(168, 85, 247, 0.22) !important;
    border-color: transparent !important;
}
.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
                rgba(192, 132, 252, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 4;
}
.tilt-active .tilt-glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .tilt-card { transform: none !important; }
    .tilt-glow { display: none; }
    .scroll-progress { display: none; }
}

/* ── Бегущий блик на главных кнопках ── */
.btn-primary { position: relative; overflow: hidden; }
/* блик двигается через transform (раньше анимировался left — перерасчёт раскладки на каждом кадре) */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
}
.btn-primary:hover::after { animation: btnShine .85s ease; }
@keyframes btnShine { to { transform: translateX(250%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) {
    .btn-primary::after { display: none; }
}

/* ── Декоративный фон карточек товара (за прозрачным лого) ── */
.product-card-image {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(168,85,247,0.16), transparent 70%),
        repeating-linear-gradient(45deg, rgba(168,85,247,0.05) 0 2px, transparent 2px 22px),
        linear-gradient(160deg, #1a0733, #0f0320);
}
.product-card-image::before {
    /* мягкое сияние-ореол по центру логотипа */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 55% at 50% 45%, rgba(124,58,237,0.28), transparent 72%);
    opacity: .8;
    pointer-events: none;
    transition: opacity .35s ease, transform .6s ease;
    z-index: 0;
}
.product-card:hover .product-card-image::before { opacity: 1; transform: scale(1.08); }
.product-card-image img { position: relative; z-index: 1; }

/* ── Инфо-карточки товара в светлой теме (были тёмные градиенты
      → серый фон и нечитаемый зелёный текст) ── */
.light-theme .info-card {
    background: linear-gradient(180deg, #ffffff, #faf7ff);
    border-color: rgba(124, 58, 237, 0.16);
    box-shadow: 0 2px 10px rgba(76, 29, 149, 0.06);
}
.light-theme .info-card-label { color: #6b5b8a; }
.light-theme .info-card-value { color: #1a0530; }
.light-theme .info-card-value.status-undetected {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(5, 150, 105, 0.5);
}
.light-theme .info-card-value.status-detected {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(185, 28, 28, 0.45);
}
.light-theme .info-card-value.status-updating {
    color: #a16207;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(161, 98, 7, 0.45);
}
/* «106 шт.» — зелёный на белом должен быть темнее */
.light-theme .info-card-value.text-success { color: #047857; }
.light-theme .info-card-value.text-danger { color: #b91c1c; }

/* ═══════════════════════════════════════════════════════
   Блог 2026-08-31 (SEO-контент)
   ═══════════════════════════════════════════════════════ */
.blog-index-page .section-header { margin-bottom: 2rem; }
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}
.blog-cards-index { max-width: 1000px; margin: 0 auto; }
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(180deg, rgba(20, 5, 40, 0.55), rgba(15, 3, 30, 0.45));
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 16px;
    color: var(--text-primary);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 30px rgba(168, 85, 247, 0.12);
    color: var(--text-primary);
}
.blog-card h2, .blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.blog-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* 140+ карточек на /blog: браузер не считает раскладку тех, что ниже экрана */
.blog-cards-index .blog-card { content-visibility: auto; contain-intrinsic-size: auto 470px; }
.blog-card-date { color: var(--text-muted); font-size: 0.78rem; }
.blog-card-more { color: var(--accent-light); font-size: 0.85rem; font-weight: 600; }
.blog-card-more i { font-size: 0.75rem; transition: transform .2s ease; }
.blog-card:hover .blog-card-more i { transform: translateX(3px); }

.blog-article { padding-top: 1.5rem; }
/* Статья: колонка ~70 знаков (было 900px и 112 знаков в строке), кегль 17px, текст светлее.
   Общий .seo-text (SEO-блок главной и категорий) не меняется: специфичность .blog-article.seo-text выше */
.blog-article.seo-text { max-width: 680px; font-size: 1.0625rem; line-height: 1.75; color: rgba(240, 230, 255, .84); }
.blog-article.seo-text ol { margin: .5rem 0 1rem 1.5rem; padding: 0; }
.blog-article.seo-text ol li { margin-bottom: .4rem; padding-left: .2rem; }
.blog-article h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--text-primary); }
.light-theme .blog-article.seo-text { color: rgba(20, 10, 40, .84); }
/* таблицы: все обёртки нормализует blog.js в .tablewrap; подсказка прокрутки — статичные тени у краёв */
.blog-article .tablewrap { overflow-x: auto; margin: 1.2rem 0; border-radius: 12px;
    background: linear-gradient(90deg, var(--bg-primary) 30%, transparent) left / 24px 100% no-repeat local,
                linear-gradient(270deg, var(--bg-primary) 30%, transparent) right / 24px 100% no-repeat local,
                radial-gradient(farthest-side at 100% 50%, rgba(168, 85, 247, .35), transparent) right / 10px 100% no-repeat scroll; }
.blog-article table:not([class]) { width: 100%; border-collapse: collapse; font-size: .92rem; }
.blog-article table:not([class]) th { text-align: left; padding: .7rem 1rem; background: rgba(168, 85, 247, .1); color: var(--text-primary); font-weight: 700; border-bottom: 1px solid var(--border); }
.blog-article table:not([class]) td { padding: .7rem 1rem; border-bottom: 1px solid rgba(168, 85, 247, .1); }
@media (max-width: 768px) {
    .blog-article.seo-text { font-size: 1rem; line-height: 1.7; }
}
@media (max-width: 600px) {
    .blog-article :is(th, td) { padding: .55rem .6rem !important; font-size: .86rem; }
    .blog-article td:first-child { min-width: 6.5rem; }
}
/* ≥1280px: оглавление и полоса каталога в липкой правой колонке (blog.js переносит узлы и ставит .has-rail).
   Работает благодаря body { overflow-x: clip }: при hidden sticky не прилипал */
@media (min-width: 1280px) {
    .blog-article-page.has-rail .container { display: grid; grid-template-columns: minmax(0, 680px) 280px; column-gap: 48px; justify-content: center; }
    .blog-article-page.has-rail .breadcrumb, .blog-article-page.has-rail .blog-related, .blog-article-page.has-rail > .container > .blog-promo-strip { grid-column: 1 / -1; }
    .blog-article-page.has-rail .blog-article.seo-text { margin: 0; }
    .blog-rail { position: sticky; top: 88px; align-self: start; display: grid; gap: 1rem; padding-top: 1.5rem; }
    .blog-rail[hidden] { display: none; }
    .blog-rail .blog-toc-box { margin: 0; }
    .blog-rail .blog-toc-box ol { columns: 1 !important; max-height: calc(100vh - 260px); overflow-y: auto; }
    .blog-rail .blog-promo-strip { margin: 0; flex-direction: column; align-items: stretch; padding: 1rem; }
}
.blog-article-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-wrap: balance;
}
.blog-article-meta {
    display: flex;
    gap: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.blog-article h2 { margin-top: 1.8rem; }
.blog-article a { text-decoration: underline; text-underline-offset: 3px; }
.blog-related { max-width: 1000px; margin: 2.5rem auto 0; }
.blog-related-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.light-theme .blog-card { background: linear-gradient(180deg, #ffffff, #faf7ff); }
@media (max-width: 768px) {
    .blog-article-title { font-size: 1.4rem; }
}

/* Расширенные описания товаров: подзаголовки и списки */
.description-content h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.4rem 0 0.6rem;
}
.description-content ul {
    margin: 0.5rem 0 1rem 1.3rem;
    padding: 0;
}
.description-content ul li { margin-bottom: 0.4rem; }
.description-content strong { color: var(--text-primary); }
.description-content a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* Навбар с пунктом «Блог»: три режима ширины, без переносов строк */
@media (min-width: 769px) {
    .nav-link { padding: 0.55rem 0.65rem; white-space: nowrap; }
    .nav-links { gap: 0; }
    .nav-right { gap: 0.5rem; }
}
/* Компакт-режим: полный навбар ещё не влезает */
/* Средние десктопы: после добавления пункта «Молитвы» правые кнопки не влезают — текст «Проверить заказ» скрываем до 1600px */
@media (min-width: 1151px) and (max-width: 1600px) {
    .nav-check-text { display: none; }
}
@media (min-width: 1151px) and (max-width: 1340px) {
    .nav-link { font-size: 0.85rem; }
}
/* Планшеты: навигация в бургер, как на мобильных */
@media (min-width: 769px) and (max-width: 1150px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(12, 2, 26, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active { display: flex; }
    .nav-links .nav-link { display: flex; width: 100%; padding: 0.8rem 1rem; font-size: 1rem; white-space: normal; }
    .nav-links .nav-link-free-dlc { justify-content: center; }
    .light-theme .nav-links { background: rgba(250, 247, 255, 0.98); }
    .mobile-toggle { display: block; }
    .ui-controls { display: none; }
    .nav-right .nav-check-btn { display: none; }
    .nav-links .nav-mobile-extras { display: flex; }
    .nav-dropdown { width: 100%; position: relative !important; display: block; }
    .nav-links .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        padding: 0 0 0 1rem;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu { display: block; }
}

/* ═══════════════════════════════════════════════════════
   Светлая тема 2026-08-31: единые светлые поверхности
   для всех карточных компонентов (раньше — тёмные хардкод-
   градиенты, дававшие грязно-серые блоки на светлом фоне)
   ═══════════════════════════════════════════════════════ */

/* Единая светлая поверхность карточек */
.light-theme .product-card,
.light-theme .feature-card,
.light-theme .review-card,
.light-theme .faq-item,
.light-theme .tariff-card,
.light-theme .features-list li,
.light-theme .sysreq-grid,
.light-theme .product-description,
.light-theme .how-step,
.light-theme .blog-card {
    background: linear-gradient(180deg, #ffffff, #faf8ff);
    border-color: rgba(124, 58, 237, 0.16);
    box-shadow: 0 2px 12px rgba(76, 29, 149, 0.06);
}

/* Ховеры — мягкая фиолетовая тень вместо чёрной */
.light-theme .product-card:hover,
.light-theme .feature-card:hover,
.light-theme .review-card:hover,
.light-theme .faq-item:hover,
.light-theme .how-step:hover,
.light-theme .blog-card:hover,
.light-theme .category-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 16px 36px rgba(76, 29, 149, 0.14);
}
.light-theme .tilt-active {
    box-shadow: 0 16px 36px rgba(76, 29, 149, 0.16),
                0 0 0 1px rgba(124, 58, 237, 0.35) !important;
}
.light-theme .tilt-glow {
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
                rgba(124, 58, 237, 0.08), transparent 60%);
}

/* Бестселлер: светлая витрина вместо тёмного монолита */
.light-theme .bestseller-card {
    background: linear-gradient(135deg, #ffffff 40%, #f1eafe);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.12),
                0 0 0 1px rgba(124, 58, 237, 0.05) inset;
}
.light-theme .bestseller-glow {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 65%);
}

/* FAQ: активный и ховер без чёрных теней */
.light-theme .faq-item.active {
    background: linear-gradient(180deg, #f7f2ff, #efe8fc);
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.10);
}

/* Тарифы на карточке товара */
.light-theme .tariff-card:hover,
.light-theme .tariff-card.selected {
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 10px 28px rgba(76, 29, 149, 0.14);
}
.light-theme .tariff-popular {
    background: linear-gradient(180deg, #f6f0ff, #ede4fd);
    border-color: rgba(124, 58, 237, 0.5);
}
.light-theme .tariff-card.tariff-disabled {
    background: #f3f1f7;
    box-shadow: none;
}
.light-theme .features-list li:hover {
    background: #f6f1ff;
    border-color: rgba(124, 58, 237, 0.4);
}

/* Стрелки галереи товара */
.light-theme .gallery-arrow {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.25);
    color: #4c1d95;
}

/* Секции-прослойки: чуть отличимый светлый фон вместо тёмного */
.light-theme .live-sales-section,
.light-theme .bestseller-section { background: transparent; }

/* Тексты, которые в тёмной теме были почти белыми хардкодом */
.light-theme .bestseller-name { color: #1a0530; }
.light-theme .review-text { color: #3d2d55; }
.light-theme .faq-answer p { color: #4a3860; }
.light-theme .product-card-desc { color: #5d4d7a; }
.light-theme .price-current { color: #6d28d9; }

/* Плашки скидки/статуса не трогаем — они цветные и работают на обеих темах */

/* Цены на карточках товаров: без переноса «349 ₽» на две строки */
.product-price .price-old,
.product-price .price-current { white-space: nowrap; }

/* Плашка-примечание в статьях блога (утечки/оговорки) */
.blog-article .blog-note {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 3px solid #f59e0b;
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin: 1.2rem 0;
    font-size: 0.92rem;
}
.blog-article .blog-note strong { color: #f59e0b; }
.light-theme .blog-article .blog-note {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.35);
    border-left-color: #d97706;
}
.light-theme .blog-article .blog-note strong { color: #b45309; }

/* ── Промокоды в блоге ── */
.promo-table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.promo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.promo-table th {
    text-align: left; padding: 0.7rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary); font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.promo-table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(168, 85, 247, 0.1); }
.promo-code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-light);
    padding: 0.25rem 0.6rem; border-radius: 6px;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
    user-select: all;
}
.promo-badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.promo-badge-perm { color: #10b981; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.35); }
.promo-badge-temp { color: #f59e0b; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.35); }

/* CTA-блок с нашим промокодом внутри статьи */
.promo-cta {
    margin: 1.8rem 0;
    padding: 1.5rem 1.6rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.06));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
}
.promo-cta-head { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.promo-cta-head i { color: var(--accent-light); }
.promo-cta p { margin-bottom: 1rem; }
.promo-cta-code {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1rem; flex-wrap: wrap;
    font-size: 0.95rem; color: var(--text-secondary);
}
.promo-cta-code code {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff; padding: 0.35rem 0.9rem; border-radius: 8px;
    font-size: 1.1rem; font-weight: 800; letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
    user-select: all;
}

/* Промо-полоса в конце статей */
.blog-promo-strip {
    max-width: 680px; margin: 2.5rem auto 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
}
.blog-promo-strip-text strong { display: block; color: var(--text-primary); margin-bottom: 0.2rem; }
.blog-promo-strip-text strong i { color: var(--accent-light); }
.blog-promo-strip-text span { color: var(--text-secondary); font-size: 0.9rem; }
.blog-promo-strip code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(168, 85, 247, 0.16); color: var(--accent-light);
    padding: 0.15rem 0.5rem; border-radius: 5px; font-weight: 700; user-select: all;
}
.blog-promo-strip .btn { white-space: nowrap; }

.light-theme .promo-cta,
.light-theme .blog-promo-strip { background: linear-gradient(135deg, #f3ecff, #ede4fd); }
.light-theme .promo-table th { background: rgba(124, 58, 237, 0.08); }
.light-theme .promo-code { color: #6d28d9; }

/* ── Обложки статей блога ── */
.blog-article-cover {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.6rem;
    border: 1px solid var(--border);
    line-height: 0;
}
.blog-article-cover img { width: 100%; height: auto; display: block; }

/* Карточка блога с картинкой сверху */
.blog-card-img-top { padding: 0; overflow: hidden; }
.blog-card-img { line-height: 0; overflow: hidden; background: #0f0320; }
.blog-card-img img {
    width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.blog-card-img-top:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-top .blog-card-body {
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: 1.3rem 1.5rem 1.5rem;
    flex: 1;
}

/* ─── Навбар 2026-09-08: «Форум» рядом с «Главная», просторнее ─────────
   На десктопе убираем иконки у текстовых пунктов (оставляем стрелку каталога
   и иконку CTA «Бесплатные DLC»), возвращаем воздух между пунктами. */
@media (min-width: 1151px) {
    .nav-links { gap: 0.2rem; }
    .nav-links > .nav-link,
    .nav-links .nav-dropdown > .nav-link { padding: 0.55rem 0.95rem; }
    .nav-links > .nav-link > i:not(.fa-chevron-down),
    .nav-links .dropdown-toggle > i:not(.fa-chevron-down) { display: none; }
    .nav-links > .nav-link-free-dlc > i { display: inline-block; }
    .nav-links .dropdown-toggle > i.fa-chevron-down { font-size: 0.7rem; opacity: 0.7; margin-left: 0.1rem; }
    .nav-links > .nav-link-free-dlc { margin-left: 0.5rem; }
}
@media (min-width: 1151px) and (max-width: 1340px) {
    .nav-links > .nav-link,
    .nav-links .nav-dropdown > .nav-link { padding: 0.5rem 0.7rem; }
}

/* ─── Блог: темы (хабы) ─────────────────────────────── */
.blog-topics { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; max-width: 1000px; margin: -1rem auto 1.8rem; }
/* телефон: темы одной прокручиваемой строкой (было 9 строк чипов, ~380px до первой статьи) */
@media (max-width: 768px) {
    .blog-topics { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: -.6rem -16px 1.2rem; padding: 0 16px .2rem;
        scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
    .blog-topics::-webkit-scrollbar { display: none; }
}
.blog-topic-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 50px; font-size: .82rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition); white-space: nowrap; }
.blog-topic-chip i { color: var(--accent-light); font-size: .8rem; }
.blog-topic-chip span { font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 50px; background: rgba(168,85,247,.15); color: var(--accent-light); }
.blog-topic-chip:hover { color: var(--text-primary); border-color: var(--accent); background: var(--bg-card-hover); }
.blog-topic-chip.active { color: #fff; background: linear-gradient(135deg, var(--purple-600), var(--accent)); border-color: transparent; box-shadow: 0 4px 15px rgba(124,58,237,.3); }
.blog-topic-chip.active i, .blog-topic-chip.active span { color: #fff; background: rgba(255,255,255,.18); }
.blog-topic-chip-sm { padding: .15rem .6rem; font-size: .74rem; }
.blog-related-title { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.blog-related-all { font-family: var(--font); font-size: .82rem; font-weight: 600; color: var(--accent-light); }
.blog-related-all i { font-size: .7rem; transition: transform .2s ease; }
.blog-related-all:hover i { transform: translateX(3px); }

/* ─── Блог 2026-09-13: просмотры, горячее, оглавление, шэринг, поиск ── */
.blog-card { position: relative; }
.blog-card-img { position: relative; }
.blog-hot { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 50px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 4px 14px rgba(239,68,68,.45); line-height: 1.2; }
.blog-card-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .76rem; color: var(--text-muted); }
.blog-card-meta i { margin-right: .25rem; opacity: .8; }
.blog-card-views, .blog-card-read { white-space: nowrap; }
.blog-hot-strip { max-width: 1000px; margin: 0 auto 1.5rem; padding: 1rem 1.1rem 1.1rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(249,115,22,.10), rgba(168,85,247,.08)); border: 1px solid rgba(249,115,22,.25); }
.blog-hot-strip-head { font-weight: 700; font-size: .9rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .45rem; }
.blog-hot-strip-head i { color: #f97316; }
.blog-hot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.blog-hot-item { display: flex; flex-direction: column; gap: .5rem; padding: .55rem; border-radius: 12px; background: rgba(10,0,21,.35); border: 1px solid var(--border); color: var(--text-primary); transition: var(--transition); }
.light-theme .blog-hot-item { background: #fff; }
.blog-hot-item:hover { transform: translateY(-2px); border-color: rgba(249,115,22,.5); color: var(--text-primary); }
.blog-hot-item img { width: 100%; height: auto; aspect-ratio: 1200/630; object-fit: cover; border-radius: 8px; display: block; }
.blog-hot-item-title { font-size: .8rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-hot-item-meta { font-size: .7rem; color: #f97316; font-weight: 700; }
.blog-toolbar { max-width: 1000px; margin: 0 auto 1.2rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.blog-search { flex: 1 1 280px; position: relative; display: block; }
.blog-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; }
.blog-search input { width: 100%; padding: .7rem 1rem .7rem 2.4rem; border-radius: 50px; border: 1px solid var(--border); background: rgba(10,0,21,.45); color: var(--text-primary); font-family: var(--font); font-size: .9rem; transition: var(--transition); }
.light-theme .blog-search input { background: #fff; }
.blog-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.blog-sort { display: inline-flex; padding: .25rem; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--border); gap: .2rem; }
.blog-sort-btn { border: 0; background: none; color: var(--text-muted); font-family: var(--font); font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: 50px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; transition: var(--transition); }
.blog-sort-btn.active { background: linear-gradient(135deg, var(--purple-600), var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.blog-empty { max-width: 1000px; margin: 1rem auto; padding: 2rem; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.blog-empty i { display: block; font-size: 1.8rem; margin-bottom: .5rem; color: var(--purple-700); }
.blog-article-meta { flex-wrap: wrap; align-items: center; row-gap: .5rem; }
.blog-article-meta > span, .blog-article-meta > a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.blog-meta-comments { color: var(--accent-light); font-weight: 600; }
.blog-meta-comments:hover { color: var(--text-primary); }
.blog-toc { margin: 0 0 1.6rem; }
.blog-toc-box { border: 1px solid var(--border); border-radius: 14px; background: rgba(124,58,237,.06); padding: .6rem 1rem; }
.blog-toc-box summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .5rem; color: var(--text-primary); padding: .2rem 0; }
.blog-toc-box summary::-webkit-details-marker { display: none; }
.blog-toc-box summary i { color: var(--accent-light); }
.blog-toc-box summary span { font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 50px; background: rgba(168,85,247,.15); color: var(--accent-light); }
.blog-toc-box summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .7rem; color: var(--text-muted); transition: transform .2s ease; }
.blog-toc-box[open] summary::after { transform: rotate(180deg); }
.blog-toc-box ol { margin: .6rem 0 .3rem; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.blog-toc-box li { margin: .25rem 0; break-inside: avoid; font-size: .88rem; }
.blog-toc-box a { color: var(--text-secondary); text-decoration: none !important; }
.blog-toc-box a:hover, .blog-toc-box a.active { color: var(--accent-light); }
.blog-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.blog-share-label { font-size: .85rem; font-weight: 700; color: var(--text-muted); margin-right: .3rem; display: inline-flex; align-items: center; gap: .4rem; }
.blog-share-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 1.05rem; cursor: pointer; transition: var(--transition); text-decoration: none !important; }
.blog-share-btn:hover { transform: translateY(-2px); color: #fff; }
.blog-share-btn.tg:hover { background: #229ED9; border-color: #229ED9; }
.blog-share-btn.vk:hover { background: #0077FF; border-color: #0077FF; }
.blog-share-btn.wa:hover { background: #25D366; border-color: #25D366; }
.blog-share-btn.copy:hover { background: var(--accent); border-color: var(--accent); }
.blog-discuss-btn { margin-left: auto; }
.f-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 10000; padding: .7rem 1.2rem; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); font-size: .88rem; box-shadow: 0 12px 40px rgba(0,0,0,.45); opacity: 0; transition: all .25s ease; pointer-events: none; }
.f-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Кнопка «наверх» */
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 9989; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--accent-light); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .25s ease, transform .25s ease, translate .25s ease, visibility 0s linear .25s; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.to-top:hover { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .blog-hot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .blog-toc-box ol { columns: 1; }
    .blog-discuss-btn { margin-left: 0; width: 100%; justify-content: center; }
    /* телефон: «Наверх» не показываем — один плавающий слой на экране (DESIGN.md), прокрутка там жестом */
    .to-top { display: none !important; }
    /* оглавление статьи: пункты высотой 17px были мелкой целью для пальца */
    .blog-toc-box a { display: block; padding: .45rem 0; }
}
.blog-article .blog-article-meta a, .blog-article .blog-share a, .blog-article .blog-toc a { text-decoration: none !important; }

/* ─── Рефералы / донат / VIP (2026-09-13) ─────────────── */
.ref-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 2rem; align-items: center; padding: 2.2rem !important; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.ref-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at 90% 10%, rgba(245,158,11,.14), transparent 60%), radial-gradient(500px circle at 0% 100%, rgba(168,85,247,.18), transparent 60%); pointer-events: none; }
.ref-hero > * { position: relative; }
.ref-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); padding: .3rem .8rem; border-radius: 50px; border: 1px solid rgba(168,85,247,.4); background: rgba(168,85,247,.12); margin-bottom: 1rem; }
.ref-hero h1 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin: 0 0 .8rem; }
.ref-hero p { color: var(--text-secondary); font-size: 1rem; line-height: 1.55; margin: 0 0 1.2rem; }
.ref-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.ref-hero-art { display: flex; align-items: center; justify-content: center; font-size: 7rem; color: rgba(192,132,252,.6); filter: drop-shadow(0 20px 40px rgba(124,58,237,.35)); }
.ref-link-box { display: flex; gap: .6rem; flex-wrap: wrap; }
.ref-link-box input { flex: 1 1 260px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: .95rem; color: var(--accent-light); }
.ref-share { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .9rem; }
.ref-stats { grid-template-columns: 1fr 1fr !important; margin-bottom: 0 !important; }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ref-card { padding: 1.6rem !important; }
.ref-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.ref-card h3 i { color: var(--accent-light); }
.ref-steps { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.55; }
.ref-steps li { margin-bottom: .55rem; }
.ref-steps b { color: var(--text-primary); }
.ref-rules { font-size: .8rem; color: var(--text-muted); padding: .8rem 1rem; border-radius: 10px; background: rgba(245,158,11,.07); border: 1px dashed rgba(245,158,11,.35); line-height: 1.5; }
.ref-sub { font-size: .9rem; margin: 1.2rem 0 .6rem; display: flex; gap: .5rem; align-items: center; }
.ref-sub i { color: var(--accent-light); }
.ref-invited { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.ref-invited li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.ref-invited small { color: var(--text-muted); }
.ref-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ref-feature { padding: 1.4rem !important; }
.ref-feature-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; margin-bottom: .8rem; background: linear-gradient(135deg, #7c3aed, #a855f7); }
.ref-feature h3 { font-size: 1rem; margin: 0 0 .4rem; }
.ref-feature p { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.ref-ideas { padding-left: 1.2rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.6; margin: 0 0 1rem; }
.checkout-note { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: rgba(168,85,247,.08); border: 1px solid var(--border); font-size: .85rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.5; }
.checkout-note i { color: var(--accent-light); margin-top: .15rem; }
.checkout-note-vip { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.checkout-note-vip i { color: #f5c542; }
@media (max-width: 900px) { .ref-hero { grid-template-columns: 1fr; } .ref-hero-art { display: none; } .ref-grid { grid-template-columns: 1fr; } .ref-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ref-features { grid-template-columns: 1fr; } .ref-hero h1 { font-size: 1.5rem; } .ref-stats { grid-template-columns: 1fr !important; } }
/* Статы кабинета (глобально: используются в кабинете и на странице рефералов) */
.cabinet-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:24px; }
.cab-stat { padding:18px 20px !important; display:flex; align-items:center; gap:14px; }
.cab-stat-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:#fff; flex-shrink:0; }
.cab-stat-value { font-size:1.3rem; font-weight:800; color:var(--text-primary); line-height:1; }
.cab-stat-label { font-size:0.75rem; color:var(--text-muted); margin-top:2px; }
.tx-row { display:flex; align-items:center; justify-content:space-between; }
.tx-info { display:flex; align-items:center; gap:12px; }
.tx-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:0.85rem; flex-shrink:0; }
.tx-plus { background:rgba(34,197,94,0.15); color:#22c55e; }
.tx-desc { font-weight:600; font-size:0.875rem; color:var(--text-primary); }
.tx-date { font-size:0.75rem; color:var(--text-muted); }
.tx-amounts { text-align:right; }
.tx-amount { font-weight:800; font-size:0.95rem; }
.tx-plus-text { color:#22c55e; }
.cab-empty { text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; color:var(--text-muted); }
@media(max-width:768px){ .cabinet-stats { grid-template-columns:1fr 1fr; } }

/* ── Донат по UID: ползунок объёма ─────────────────────────────────── */
.topup-widget { margin-bottom: 1.2rem; }
.tu-amount-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tu-amount { display: inline-flex; align-items: stretch; border: 1px solid rgba(168,85,247,.3); border-radius: 14px; background: linear-gradient(180deg, rgba(20,5,40,.7), rgba(15,3,30,.5)); overflow: hidden; }
.tu-step { width: 46px; border: 0; background: rgba(168,85,247,.12); color: #c084fc; font-size: .9rem; cursor: pointer; transition: background .2s; }
.tu-step:hover { background: rgba(168,85,247,.28); color: #fff; }
.tu-number { width: 150px; border: 0; background: transparent; color: #fff; font-family: 'Unbounded', 'Inter', sans-serif; font-weight: 800; font-size: 1.6rem; text-align: center; padding: .55rem .4rem; -moz-appearance: textfield; outline: none; }
.tu-number::-webkit-outer-spin-button, .tu-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tu-amount-label { display: flex; flex-direction: column; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.tu-amount-label small { color: var(--text-muted); font-weight: 500; font-size: .78rem; }
.tu-range { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, #7c3aed, #c084fc 60%, #f5c542); border-radius: 999px; outline: none; margin: .4rem 0 1rem; cursor: pointer; }
.tu-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #a855f7; box-shadow: 0 4px 16px rgba(168,85,247,.55); cursor: grab; transition: transform .15s; }
.tu-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.tu-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #a855f7; box-shadow: 0 4px 16px rgba(168,85,247,.55); cursor: grab; }
.tu-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tu-chip { border: 1px solid rgba(168,85,247,.28); background: rgba(168,85,247,.08); color: var(--text-secondary); border-radius: 999px; padding: .38rem .85rem; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; }
.tu-chip:hover { border-color: #a855f7; color: #fff; }
.tu-chip.active { background: linear-gradient(135deg, #c084fc, #7c3aed); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.4); }
.tu-addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.tu-addon { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid rgba(168,85,247,.22); border-radius: 14px; background: linear-gradient(180deg, rgba(20,5,40,.7), rgba(15,3,30,.5)); cursor: pointer; transition: all .2s; position: relative; }
.tu-addon:hover { border-color: rgba(168,85,247,.55); transform: translateY(-2px); }
.tu-addon input { position: absolute; opacity: 0; pointer-events: none; }
.tu-addon-box { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(168,85,247,.14); color: #c084fc; font-size: 1rem; flex: none; transition: all .2s; }
.tu-addon input:checked ~ .tu-addon-box { background: linear-gradient(135deg, #c084fc, #7c3aed); color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.45); }
.tu-addon:has(input:checked) { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.18); }
.tu-addon-text { display: flex; flex-direction: column; line-height: 1.25; }
.tu-addon-text b { font-size: .88rem; color: var(--text-primary); }
.tu-addon-text small { color: #22c55e; font-weight: 700; font-size: .82rem; }
.tu-addon-text small s { color: var(--text-muted); font-weight: 500; margin-left: .35rem; }
.tu-quote { padding: 1rem 1.2rem !important; border-color: rgba(168,85,247,.35) !important; }
.tu-quote-main { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.tu-quote-gems { font-size: 1.05rem; color: var(--text-secondary); }
.tu-quote-gems b { font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.35rem; color: #fff; }
.tu-quote-price b { font-family: 'Unbounded', 'Inter', sans-serif; font-size: 1.5rem; background: linear-gradient(135deg, #c084fc, #f5c542); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tu-quote-price s { color: var(--text-muted); margin-left: .5rem; font-size: .95rem; }
.tu-quote-items { margin-top: .45rem; color: var(--text-secondary); font-size: .88rem; }
.tu-quote-items i { color: #c084fc; margin-right: .3rem; }
.tu-quote-saving { margin-top: .35rem; color: #22c55e; font-weight: 700; font-size: .85rem; }
.tu-quote-saving:empty { display: none; }
.tu-hint { margin-top: .8rem; font-size: .8rem; color: var(--text-muted); line-height: 1.45; }
.tu-hint i { color: #38bdf8; margin-right: .3rem; }
#buyButton.disabled { opacity: .5; pointer-events: auto; cursor: not-allowed; filter: grayscale(.4); }
.checkout-row-items { align-items: flex-start !important; }
.light-theme .tu-amount, .light-theme .tu-addon { background: linear-gradient(180deg, #fff, #faf8ff); }
.light-theme .tu-number { color: #1e1b2e; }
.light-theme .tu-quote-gems b { color: #1e1b2e; }
@media (max-width: 520px) { .tu-number { width: 110px; font-size: 1.3rem; } .tu-quote-price b { font-size: 1.3rem; } }


/* ── Производительность (14.09.2026): backdrop-filter только у навбара/меню/модалок/поиска.
   Стеклянные карточки и бейджи — полупрозрачный фон без размытия: визуально то же, GPU дышит. ── */
.glass-card, .hero-stats, .product-status, .product-status-badge, .gallery-arrow, .thumb-arrow,
.showcase-card, .showcase-float, .site-search-inner, .flash-message {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.glass-card { background: linear-gradient(180deg, rgba(22, 8, 44, 0.86), rgba(15, 4, 32, 0.9)); }
.light-theme .glass-card { background: linear-gradient(180deg, #fff, #faf8ff); }
.hero-stats { background: rgba(18, 6, 38, 0.72); }

/* Календарь в меню: на средних десктопах FAQ уходит (он есть в футере и на главной), чтобы пункты не переполняли шапку */
@media (min-width: 1151px) and (max-width: 1760px) { .nav-link-faq { display: none !important; } }

/* Светлая тема: поля форм были тёмными (контраст ~3,2:1, плейсхолдер почти не виден), таблетки темы/языка тоже */
.light-theme .form-control { background: #fff; border-color: rgba(124, 58, 237, .4); color: #1a0530; }
.light-theme .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .25); }
.light-theme .form-control::placeholder { color: #74669c; }
.light-theme .theme-switch, .light-theme .lang-pill { background: rgba(124, 58, 237, .06); }
.light-theme .theme-switch:hover { background: rgba(124, 58, 237, .12); }
