/* ===== Базовый сброс ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #5f9eff;
    --accent-2: #a58eff;
    --green: #10b981;
    --green-bright: #34d399;
    --bg-card: rgba(18, 24, 40, 0.55);
}

html { scroll-behavior: smooth; }

body {
    background: radial-gradient(ellipse at 10% 0%, #0a0f1f 0%, #03050a 60%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', -apple-system, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Helvetica, sans-serif;
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* ===== Сетка фона ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(95,158,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95,158,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Анимированные орбы ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 22s infinite alternate ease-in-out;
    will-change: transform;
}
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(6%, 8%) scale(1.4); opacity: 0.85; }
}

/* ===== Жидкая кнопка (общая) ===== */
.liquid-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 15px;
}
.liquid-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.liquid-button:active { transform: scale(0.98); transition: 0.08s; }
.liquid-button::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}
.liquid-button:hover::before { left: 100%; }

.liquid-button.secondary {
    background: rgba(20, 30, 55, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none;
}
.liquid-button.secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255,255,255,0.4); }

.btn-free {
    background: linear-gradient(105deg, #10b981 0%, #059669 50%, #10b981 100%) !important;
    background-size: 200% 100% !important;
    border: 1px solid rgba(72, 255, 144, 0.6) !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255,255,255,0.25) !important;
    animation: pulseGreen 2s infinite ease-in-out, shimmerBtn 3s infinite linear !important;
    font-weight: 700 !important;
}
.btn-free:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.8), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6), 0 0 24px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 0 35px rgba(16, 185, 129, 0.8); }
}
@keyframes shimmerBtn { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* will-change для composited-only анимаций */
.btn-free, .cta-mega-btn { will-change: transform, box-shadow; }

/* ===== MEGA CTA КНОПКА ===== */
.cta-mega-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 28px 0 0;
}

.cta-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 60px;
    letter-spacing: 0.2px;
    animation: urgencePulse 2.5s ease-in-out infinite;
}
@keyframes urgencePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.98); }
}

.cta-mega-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 36px 20px 24px;
    border-radius: 20px;
    background: linear-gradient(105deg, #10b981 0%, #059669 40%, #0d9488 100%);
    background-size: 200% 200%;
    border: none;
    text-decoration: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 0 0 0 rgba(16, 185, 129, 0.7),
        0 8px 32px rgba(16, 185, 129, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: megaGlow 2s ease-in-out infinite, shimmerBg 4s linear infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 300px;
}

@keyframes megaGlow {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(16, 185, 129, 0.7),
            0 8px 32px rgba(16, 185, 129, 0.45),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(16, 185, 129, 0),
            0 12px 48px rgba(16, 185, 129, 0.7),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

@keyframes shimmerBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* блик-sweep поверх кнопки — transform вместо left, не вызывает layout */
.cta-mega-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: sweepShine 3s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}
@keyframes sweepShine {
    0% { transform: translateX(-200%); }
    40%, 100% { transform: translateX(300%); }
}

/* кольцевое сияние вокруг кнопки */
.cta-mega-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 23px;
    background: linear-gradient(105deg, #10b981, #06b6d4, #a855f7, #10b981);
    background-size: 300% 300%;
    z-index: -1;
    animation: borderRainbow 3s linear infinite;
    filter: blur(4px);
    opacity: 0.6;
}
@keyframes borderRainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.cta-mega-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 0 0 rgba(16, 185, 129, 0),
        0 20px 60px rgba(16, 185, 129, 0.7),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.cta-mega-btn:active { transform: scale(0.98); }

.cta-mega-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
    animation: rocketBounce 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes rocketBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.cta-mega-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.cta-mega-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.3px;
}
.cta-mega-sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 3px;
}

.cta-mega-arrow {
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.cta-mega-btn:hover .cta-mega-arrow { transform: translateX(5px); }

.cta-mega-btn--red {
    background: linear-gradient(105deg, #ef4444 0%, #dc2626 40%, #b91c1c 100%);
}
.cta-mega-btn--red::after {
    background: linear-gradient(105deg, #ef4444, #f97316, #ef4444);
}
@keyframes megaGlowRed {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(239, 68, 68, 0.7),
            0 8px 32px rgba(239, 68, 68, 0.45),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(239, 68, 68, 0),
            0 12px 48px rgba(239, 68, 68, 0.7),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}
.cta-mega-btn--red { animation: megaGlowRed 2s ease-in-out infinite, shimmerBg 4s linear infinite; }
.cta-mega-btn--red:hover {
    box-shadow:
        0 0 0 0 rgba(239, 68, 68, 0),
        0 20px 60px rgba(239, 68, 68, 0.7),
        inset 0 1px 0 rgba(255,255,255,0.25);
}



@media (max-width: 600px) {
    .cta-mega-btn { min-width: unset; width: 100%; padding: 18px 20px; }
    .cta-mega-title { font-size: 17px; }
    .cta-mega-wrap { align-items: stretch; }
    .cta-secondary-link { text-align: center; justify-content: center; }
}



/* ===== Хедер ===== */
.glass-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding: 12px 28px; background: rgba(15, 20, 35, 0.65); backdrop-filter: blur(24px);
    border-radius: 80px; border: 1px solid rgba(120, 160, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); margin-bottom: 24px; position: sticky; top: 16px; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
    width: 48px; height: 48px; background: linear-gradient(135deg, #5f9eff, #2b4b9e);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 20px; color: white; position: relative; overflow: hidden;
}
.brand div strong { font-size: 20px; font-weight: 700; background: linear-gradient(135deg, #fff, #bdd4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand div small { color: rgba(255,255,255,0.7); font-size: 12px; }

nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
nav a {
    padding: 8px 20px; border-radius: 60px; font-weight: 500; font-size: 14px; transition: all 0.25s;
    color: #d9e6ff; background: rgba(95, 158, 255, 0.08); border: 0.5px solid rgba(95, 158, 255, 0.3); text-decoration: none; cursor: pointer;
}
nav a:hover, nav a.active { background: rgba(95, 158, 255, 0.25); color: white; border-color: #5f9eff; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; position: relative; z-index: 10; }

/* ===== HERO ===== */
.hero { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 40px; align-items: center; margin: 36px 0 56px; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
.ai-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(95, 158, 255, 0.12);
    border: 1px solid rgba(95, 158, 255, 0.5); border-radius: 60px; font-size: 13px; font-weight: 600; color: #aac9ff; margin-bottom: 14px;
}
h1 {
    font-size: 56px; font-weight: 800; line-height: 1.05; margin: 0 0 20px;
    background: linear-gradient(135deg, #ffffff 0%, #8bb5ff 50%, #a58eff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -1.5px;
}
@media (max-width: 600px) { h1 { font-size: 38px; } }
p.lead { font-size: 18px; color: rgba(255, 255, 255, 0.75); margin: 0 0 24px; line-height: 1.5; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.badge { font-size: 12px; background: rgba(20, 28, 45, 0.6); color: #ccdaff; padding: 8px 14px; border-radius: 60px; border: 1px solid rgba(95, 158, 255, 0.35); }
.cta-perks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.65); }
.cta-perks .check { color: #10b981; font-weight: 700; }

/* 3D Server */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.server-3d { width: 100%; max-width: 380px; aspect-ratio: 1 / 1.05; position: relative; perspective: 1200px; }
.server-box { position: absolute; inset: 0; transform-style: preserve-3d; animation: serverFloat 6s ease-in-out infinite; }
@keyframes serverFloat { 0%, 100% { transform: rotateY(-12deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(6deg) translateY(-14px); } }
.server-face {
    position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(160deg, #1a2545 0%, #0d1428 100%);
    border: 1px solid rgba(95,158,255,0.35); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 80px rgba(95,158,255,0.25);
    padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
}
.server-head { display: flex; align-items: center; justify-content: space-between; }
.server-dots { display: flex; gap: 6px; }
.server-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.server-dots span:first-child { background: #ff5f57; } .server-dots span:nth-child(2) { background: #febc2e; } .server-dots span:nth-child(3) { background: #28c840; }
.server-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6ee7b7; font-weight: 600; }
.server-status .live-dot { width: 6px; height: 6px; border-radius:50%; background:#10b981; }
.server-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; }
.server-lock-circle {
    width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(95,158,255,0.3), rgba(95,158,255,0));
    display: flex; align-items: center; justify-content: center; position: relative;
}
.server-lock-circle::before, .server-lock-circle::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(95,158,255,0.4); animation: pulseRing 3s infinite; }
.server-lock-circle::after { animation-delay: 1.5s; }
@keyframes pulseRing { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.server-lock { font-size: 56px; filter: drop-shadow(0 0 20px rgba(95,158,255,0.6)); }
.server-name { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, #fff, #bdd4ff); -webkit-background-clip: text; color: transparent; }
.server-sub { font-size: 12px; color: rgba(255,255,255,0.6); }
.server-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.server-meta div { background: rgba(95,158,255,0.08); border: 1px solid rgba(95,158,255,0.25); border-radius: 14px; padding: 10px; text-align: center; }
.server-meta strong { display: block; font-size: 14px; color: #aac9ff; font-weight: 700; }
.server-meta small { font-size: 10px; color: rgba(255,255,255,0.5); }

/* Features */
.section-title { font-size: 42px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; background: linear-gradient(135deg, #fff, #bdd4ff); -webkit-background-clip: text; color: transparent; text-align: center; }
.section-subtitle { font-size: 17px; color: rgba(255,255,255,0.6); margin-bottom: 32px; text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .section-title { font-size: 32px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 64px; }
.feature { background: rgba(18, 24, 40, 0.55); border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.1); padding: 32px 28px; transition: transform 0.3s ease; }
.feature:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.25); background: rgba(30, 40, 65, 0.7); }
.feature-icon { width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, #5f9eff, #2c53b0); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; box-shadow: 0 8px 16px rgba(0,0,0,0.2), 0 0 30px rgba(95,158,255,0.3); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.5; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr; } }

/* ===== ТАРИФЫ ===== */
.pricing-section { margin: 64px 0; text-align: center; }
.pricing-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.price-card-glass {
    background: rgba(18, 24, 40, 0.55);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 28px;
    padding: 40px 30px; width: 340px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; text-align: left; position: relative;
}
.price-card-glass:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(95, 158, 255, 0.15); border-color: rgba(95, 158, 255, 0.4); }
.price-card-glass.popular {
    background: linear-gradient(160deg, rgba(40,55,100,0.7), rgba(20,30,55,0.85));
    border: 1px solid rgba(95,158,255,0.6); box-shadow: 0 10px 40px rgba(95, 158, 255, 0.25); transform: scale(1.05);
}
.price-card-glass.popular:hover { transform: scale(1.05) translateY(-8px); }
.price-card-glass .badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(105deg, #f59e0b, #ef4444); color: white;
    padding: 6px 16px; border-radius: 60px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 6px 16px rgba(245,158,11,0.5); white-space: nowrap;
}
.price-card-glass .card-title { font-size: 22px; margin-bottom: 8px; font-weight: 700; }
.price-card-glass .price {
    font-size: 46px; font-weight: 800; margin: 12px 0 24px;
    background: linear-gradient(135deg, #fff, #8bb5ff); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -1px;
}
.price-card-glass .price span { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.5); -webkit-text-fill-color: rgba(255,255,255,0.5); }
.features-list { list-style: none; padding: 0; margin: 0 0 30px 0; flex-grow: 1; }
.features-list li { margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,0.8); display: flex; align-items: flex-start; gap: 10px; }
.features-list li::before { content: '✓'; color: #10b981; font-weight: 800; }
.glass-btn { width: 100%; text-align: center; justify-content: center; padding: 16px; font-size: 15px; }
@media (max-width: 980px) {
    .pricing-cards { flex-direction: column; align-items: center; }
    .price-card-glass { width: 100%; max-width: 400px; }
    .price-card-glass.popular { transform: none; }
    .price-card-glass.popular:hover { transform: translateY(-8px); }
}

/* ===== FAQ & CTA ===== */
details { background: rgba(18, 24, 40, 0.55); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 24px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: #5f9eff; transition: transform .3s ease; }
details[open] summary::after { transform: rotate(45deg); }
details[open] { background: rgba(30, 42, 70, 0.7); border-color: rgba(95, 158, 255, 0.5); }
details > div { margin-top: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

.final-cta {
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(95,158,255,0.18)); border: 1px solid rgba(16,185,129,0.4);
    border-radius: 36px; padding: 56px 32px; text-align: center; margin: 64px 0;
}
.cta-glass { background: rgba(18, 24, 40, 0.55); padding: 40px 32px; text-align: center; margin: 32px 0; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.1); }
footer { margin: 60px 0 30px; padding-top: 30px; border-top: 1px solid rgba(95, 158, 255, 0.2); color: rgba(255, 255, 255, 0.5); font-size: 13px; text-align: center; }

/* ===== МОДАЛЬНОЕ ОКНО (СЕРВЕРЫ) ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 15, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: linear-gradient(160deg, rgba(30, 42, 70, 0.85), rgba(15, 20, 35, 0.98));
    border: 1px solid rgba(95, 158, 255, 0.4); border-radius: 28px;
    padding: 40px 32px; max-width: 440px; width: 90%; text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(20px) scale(0.95); transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white;
    width: 36px; height: 36px; border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); border-color: rgba(255,255,255,0.3); }
.modal-icon { font-size: 54px; margin-bottom: 16px; filter: drop-shadow(0 0 20px rgba(95,158,255,0.6)); }
.modal-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: white; letter-spacing: -0.5px; }
.modal-text { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 28px; line-height: 1.5; }

@keyframes rippleEffect { to { transform: scale(1); opacity: 0; } }

@keyframes fadeSlide { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.feature, .price-card-glass, details, .cta-glass { animation: fadeSlide 0.5s ease-out forwards; }

/* ===== Scroll-анимация через классы (без forced reflow) ===== */
.scroll-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===================================================
   RETENTION MECHANICS
   =================================================== */

/* --- Общий оверлей для попапов --- */
.ret-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ret-overlay.active { display: flex; animation: retFadeIn 0.35s ease; }
@keyframes retFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Модальное окно --- */
.ret-modal {
    position: relative;
    background: linear-gradient(145deg, #0f172a, #1e1b4b);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    animation: retSlideUp 0.4s cubic-bezier(0.2,0.9,0.3,1.1);
}
@keyframes retSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ret-close {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(255,255,255,0.08);
    border: none; color: rgba(255,255,255,0.5);
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 14px; cursor: pointer; line-height: 30px;
    transition: background 0.2s, color 0.2s;
}
.ret-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.ret-emoji { font-size: 44px; margin-bottom: 12px; }

/* Счётчик "X человек смотрят" */
.ret-scarcity {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 60px;
    margin-bottom: 18px;
}
.ret-dot {
    width: 7px; height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: urgencePulse 1.2s ease-in-out infinite;
}

.ret-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
}
.ret-modal--exit .ret-title { font-size: 24px; }

.ret-text {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0 0 20px;
}
.ret-text strong { color: #fff; }

/* Таймер обратного отсчёта */
.ret-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 18px;
}
.ret-timer-label { font-size: 13px; color: rgba(255,255,255,0.5); }
.ret-timer {
    font-size: 22px;
    font-weight: 800;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* CTA-кнопка в попапе */
.ret-cta-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(105deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.6), 0 8px 24px rgba(239,68,68,0.4);
    animation: megaGlowRed 2s ease-in-out infinite;
    transition: transform 0.2s;
}
.ret-cta-btn:hover { transform: translateY(-2px); }

.ret-perks {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}

.ret-skip {
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s;
}
.ret-skip:hover { color: rgba(255,255,255,0.45); }

/* ===== STICKY BAR ===== */
.sticky-bar {
    position: fixed;
    bottom: -90px;
    left: 0; right: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #0f172a, #1e1b4b);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    transition: bottom 0.4s cubic-bezier(0.2,0.9,0.3,1.1);
}
.sticky-bar.visible { bottom: 0; }

.sticky-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 600px;
    justify-content: center;
}
.sticky-bar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sticky-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.sticky-sub { font-size: 12px; color: rgba(255,255,255,0.5); }

.sticky-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(105deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 60px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(239,68,68,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sticky-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(239,68,68,0.6); }

.sticky-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.sticky-close:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 500px) {
    .ret-modal { padding: 32px 20px 24px; }
    .ret-title { font-size: 19px; }
    .sticky-bar-inner { gap: 12px; }
    .sticky-sub { display: none; }
    .sticky-btn { padding: 11px 20px; font-size: 14px; }
}

/* ===== Виджет чата поверх sticky bar ===== */
/* Большинство виджетов рендерят iframe или div в bottom-right угол */
#chat-widget-container,
[id*="chat"],
[class*="chat-widget"],
[class*="crisp"],
[class*="intercom"],
[class*="tawk"],
iframe[src*="india-more-game"],
iframe[src*="widget"] {
    z-index: 9500 !important;
}

/* Когда sticky bar видим — виджет поднимается над ним */
.sticky-bar.visible ~ * iframe,
.sticky-bar.visible {
    /* sticky bar 56px высотой — виджеты сами адаптируются через z-index */
}
