/* ==========================================================================
   MORE VPS — основные стили
   Подключение (порядок важен для каскада):
   style.css → animations.css → responsive.css
   ========================================================================== */

/* ===== Шрифт Inter (локально: те же файлы, что отдаёт Google Fonts, v20) =====
   Один вариативный файл на подмножество символов, начертания 400–800.
   Браузер скачивает только те подмножества, символы которых есть на странице. */
/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-greek-ext.woff2') format('woff2');
    unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20BC, U+20BE-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ₽ — знак рубля (тот же глиф из latin-ext, файл ~1 КБ вместо 85 КБ) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../assets/fonts/inter-ruble.woff2') format('woff2');
    unicode-range: U+20BD;
}

/* ===== Базовый сброс ===== */
* { 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;
}
/* Параметры каждого орба (раньше — inline-стили в index.html) */
.orb--1 { width: 500px; height: 500px; top: -150px; left: -200px; background: radial-gradient(circle, #3b82f6, #a855f7); animation-duration: 20s; }
.orb--2 { width: 550px; height: 550px; bottom: -200px; right: -150px; background: radial-gradient(circle, #06b6d4, #8b5cf6); animation-duration: 28s; animation-delay: -4s; }

/* ===== Жидкая кнопка (общая) ===== */
.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;
}

/* 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;
}

.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;
}

/* блик-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;
}

/* кольцевое сияние вокруг кнопки */
.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;
}

.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;
}

.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);
}
.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);
}

/* ===== Хедер ===== */
.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; }

/* Кнопка «Бесплатно» в меню (раньше — inline-стиль) */
.glass-header .nav-cta { padding: 8px 20px; font-size: 14px; }

.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; }
.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;
}
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; }
/* Сменяющееся слово в hero (раньше — inline-стиль) */
.hero-word { background: linear-gradient(120deg, #a58eff, #5c9eff); -webkit-background-clip: text; color: transparent; 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; }
.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; }
.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); }
.server-caption { text-align: center; }

/* 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; }

.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; }

/* ===== ТАРИФЫ ===== */
.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; }

/* ===== 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; }
/* Кнопка в финальном CTA (раньше — inline-стиль) */
.btn-hero-cta { margin-top: 20px; }

/* ===== МОДАЛЬНОЕ ОКНО (СЕРВЕРЫ) ===== */
.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; }
/* Кнопка в модальном окне серверов (раньше — inline-стиль) */
.modal-content .modal-cta { width: 100%; justify-content: center; padding: 16px; }

/* ===================================================
   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; }

/* --- Модальное окно --- */
.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);
}

.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 ===== */
/* Выезд панели через transform (раньше — через bottom): кадры анимации те же,
   но без сдвигов макета, которые браузер засчитывал в CLS */
.sticky-bar {
    position: fixed;
    bottom: 0;
    transform: translateY(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: transform 0.4s cubic-bezier(0.2,0.9,0.3,1.1);
}
.sticky-bar.visible { transform: translateY(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); }

/* ===== Виджет чата поверх 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 */
}
