/* --- 1. БАЗА И ШАПКА --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Segoe UI', sans-serif; 
    background: #050815; /* Глубокий темный фон */
    color: #e0e6ed; 
    overflow-x: hidden; 
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.site-header { 
    background: rgba(5, 8, 21, 0.95); backdrop-filter: blur(10px); 
    padding: 10px 0; position: sticky; top: 0; z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.site-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo-link { display: block; text-decoration: none; }
.site-logo { max-height: 50px; width: auto; display: block; object-fit: contain; }

/* Навигация (база) */
.nav-list { display: flex; gap: 30px; list-style: none; }
.nav-list a { text-decoration: none; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; transition: 0.3s; opacity: 0.8; }
.nav-list a:hover, .nav-list .active-link { color: #00c6ff; opacity: 1; }

/* Кнопка "Кабинет" в списке (Скрыта на десктопфе) */
.nav-item-login { display: none; }

/* Стилизация кнопки Кабинет */
.btn-login { 
    background: rgba(255,255,255,0.1); 
    color: #fff; 
    padding: 10px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
    border: 1px solid rgba(255,255,255,0.2); 
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    margin-left: 20px; 
    gap: 10px;
}
.btn-login:hover { background: #0056b3; border-color: #0056b3; }

/* Переключатель языков */
.lang-switcher { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.5); }
.lang-link { opacity: 0.5; font-weight: bold; text-decoration: none; color: #fff; font-size: 14px;}
.lang-link.active { opacity: 1; color: #fff; border-bottom: 2px solid #e74c3c; }


/* --- 2. HERO: GALAXY --- */
.hero {
    position: relative; height: 800px;
    background: radial-gradient(circle at 70% 50%, #1a0000 0%, #050815 60%, #000000 100%);
    color: white; display: flex; align-items: center; overflow: hidden;
}

/* ЗВЕЗДЫ */
#stars, #stars2, #stars3 { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; animation: animStar 50s linear infinite; }
#stars { 
    width: 2px; height: 2px; background: transparent;
    box-shadow: 1744px 122px #FFF, 134px 1321px #FFF, 222px 421px #FFF, 882px 821px #FFF, 1200px 100px #FFF, 400px 500px #FFF, 100px 300px #FFF, 1500px 800px #FFF, 900px 200px #FFF, 50px 900px #FFF, 1600px 400px #FFF, 700px 1200px #FFF, 300px 50px #FFF, 1100px 1400px #FFF; 
    animation-duration: 50s; opacity: 0.8; 
    filter: drop-shadow(0 0 2px white);
}
#stars2 { 
    width: 3px; height: 3px; background: transparent;
    box-shadow: 100px 1200px #FFF, 600px 50px #FFF, 1400px 900px #FFF, 200px 700px #FFF, 800px 300px #FFF, 1100px 400px #FFF, 50px 500px #FFF; 
    animation-duration: 100s; opacity: 0.9;
    filter: drop-shadow(0 0 4px #00c6ff);
}
#stars3 { 
    width: 4px; height: 4px; background: transparent;
    box-shadow: 500px 200px #FFF, 1200px 800px #FFF, 300px 500px #FFF; 
    animation-duration: 150s; opacity: 1; 
    filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 10px #00c6ff);
}
@keyframes animStar { from { transform: translateY(0px); } to { transform: translateY(-2000px); } }

/* ЯДРО */
.hologram-wrapper { position: absolute; top: 50%; right: 10%; transform: translateY(-50%); width: 400px; height: 400px; display: flex; justify-content: center; align-items: center; perspective: 1000px; z-index: 2; }
.holo-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.05); box-shadow: 0 0 20px rgba(0, 86, 179, 0.2); pointer-events: none; }
.r1 { width: 360px; height: 360px; animation: spin 20s linear infinite; border-top: 2px solid #e74c3c; } 
.r2 { width: 280px; height: 280px; animation: spin 15s linear infinite reverse; border-right: 2px solid #0056b3; }
.r3 { width: 180px; height: 180px; animation: spinAxis 10s linear infinite; border-bottom: 2px solid #fff; }
.holo-core { width: 80px; height: 80px; background: white; border-radius: 50%; box-shadow: 0 0 50px #e74c3c, 0 0 100px #0056b3; display: flex; justify-content: center; align-items: center; font-size: 35px; color: #0056b3; animation: pulseCore 4s infinite; z-index: 10; }
.holo-beam { position: absolute; bottom: -300px; width: 2px; height: 300px; background: linear-gradient(to bottom, #fff, transparent); opacity: 0.2; pointer-events: none; }
@keyframes spin { 0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);} }
@keyframes spinAxis { 0% {transform: rotate3d(1, 1, 1, 0deg);} 100% {transform: rotate3d(1, 1, 1, 360deg);} }
@keyframes pulseCore { 0% {transform: scale(1); box-shadow: 0 0 30px #e74c3c;} 50% {transform: scale(1.1); box-shadow: 0 0 60px #0056b3;} 100% {transform: scale(1);} }

/* КАРТОЧКИ HUD */
.hud-card {
    position: absolute; background: rgba(10, 20, 40, 0.85); border: 1px solid rgba(0, 198, 255, 0.6);
    padding: 10px 15px; border-radius: 8px; color: white; font-size: 13px; font-weight: bold;
    display: flex; align-items: center; gap: 8px; box-shadow: 0 0 15px rgba(0,0,0,0.8);
    white-space: nowrap; z-index: 5; opacity: 0; 
    animation: hoverCard 6s ease-in-out infinite, textReveal 8s infinite; 
}
.hud-card i { color: #00c6ff; font-size: 16px; text-shadow: 0 0 5px #00c6ff; }
.c1 { top: -60px; left: 50%; transform: translateX(-50%); border-bottom: 2px solid #e74c3c; animation-delay: -1.2s, 0s; }
.c4 { top: 50%; left: -150px; transform: translateY(-50%); border-right: 2px solid #e74c3c; animation-delay: -0.5s, 1s; }
.c6 { bottom: -20px; right: -80px; border-left: 2px solid #e74c3c; animation-delay: -2.1s, 2s; }
.c2 { top: 50%; right: -150px; transform: translateY(-50%); border-left: 2px solid #00c6ff; animation-delay: -3.5s, 3s; }
.c8 { top: -20px; left: -80px; border-right: 2px solid #fff; animation-delay: -1.8s, 4s; }
.c3 { bottom: -60px; left: 50%; transform: translateX(-50%); border-top: 2px solid #fff; animation-delay: -4.2s, 5s; }
.c5 { top: -20px; right: -80px; border-left: 2px solid #fff; animation-delay: -0.3s, 6s; }
.c7 { bottom: -20px; left: -80px; border-right: 2px solid #00c6ff; animation-delay: -2.9s, 7s; }

@keyframes textReveal { 0% { opacity: 0; transform: scale(0.95); } 1% { opacity: 0; } 3% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 15px white; background: rgba(0, 198, 255, 0.5); } 6% { opacity: 1; transform: scale(1); background: rgba(10, 20, 40, 0.85); } 35% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hoverCard { 0%, 100% { margin-top: 0px; } 50% { margin-top: -10px; } }

/* ТЕКСТ HERO */
.hero-content { position: relative; z-index: 10; width: 100%; }

/* --- ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ЗНАЧКОВ "ТАБЛЕТОК" (4G + IP) --- */
.hero-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* ЕДИНЫЙ СТИЛЬ ДЛЯ 4G И IP */
.tech-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    gap: 10px;
}

/* Старый класс badge-tech оставляем для совместимости */
.badge-tech { margin-bottom: 0; }

/* Красная пульсирующая точка */
.pulse-dot {
    display: block; 
    width: 8px; 
    height: 8px; 
    background: #e74c3c; 
    border-radius: 50%; 
    box-shadow: 0 0 10px #e74c3c; 
    flex-shrink: 0;
}

/* Специфика для IP бейджа (только анимация) */
.user-ip-badge {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-title { font-size: 64px; font-weight: 900; line-height: 1.1; margin-bottom: 25px; }
.gradient-text { background: linear-gradient(90deg, #0056b3, #e74c3c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.typing-cursor { display: inline-block; width: 4px; height: 50px; background-color: #00c6ff; animation: blink 1s infinite; margin-left: 5px; vertical-align: bottom; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-desc { font-size: 18px; color: #b0bec5; max-width: 550px; margin-bottom: 40px; line-height: 1.6; }

/* Кнопки на Главной */
.hero-buttons {
    display: flex; 
    gap: 20px;
    flex-wrap: wrap; 
    justify-content: flex-start;
}
.glow-btn { background: linear-gradient(90deg, #0056b3, #e74c3c); color: white; padding: 18px 55px; border-radius: 50px; text-decoration: none; font-weight: 800; transition: 0.3s; box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4); }
.glow-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 86, 179, 0.6); }

/* --- СУПЕР-КНОПКА АКЦИИ (PULSE + SHINE + SHAKE) --- */
.btn-promo-cta {
    position: relative; 
    overflow: hidden;   
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff; 
    padding: 18px 35px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.4);
    animation: btnPulse 2s infinite;
}

.btn-promo-cta i {
    font-size: 1.2em;
    animation: giftShake 2s infinite;
}

.btn-promo-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 100%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
    transform: skewX(-25deg);
    z-index: -1;
    animation: shineSweep 3s infinite ease-in-out;
    animation-delay: 1s;
}

.btn-promo-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.6);
    background: linear-gradient(45deg, #2ecc71, #2ecc71);
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@keyframes shineSweep {
    0% { left: -150%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

/* --- 3. ОБЩИЙ ФОН ДЛЯ КОНТЕНТА --- */
.section-bg-dots { 
    background: #050815; 
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px); 
    background-size: 30px 30px; 
}
.section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 50px; color: #fff; text-shadow: 0 0 20px rgba(0, 198, 255, 0.3); }

/* Секция тарифов на index.html */
.section-tariffs { padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }

.tariffs-split { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.tariffs-column { flex: 1; min-width: 320px; max-width: 500px; display: flex; flex-direction: column; }
.column-title { text-align: center; font-size: 22px; margin-bottom: 20px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; color: #fff; }
.column-title span { font-size: 14px; color: #888; display: block; margin-top: 5px; }

.constructor-box { background: #111827; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.3); text-align: center; border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; min-height: 450px; height: 100%; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
.wave-card { background: #0d1b2a; color: white; }
.liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: 15%; background: linear-gradient(0deg, #0056b3 0%, #00c6ff 100%); transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s ease; z-index: 0; box-shadow: 0 -5px 20px rgba(255, 255, 255, 0.2); }
.liquid::before { content: ""; position: absolute; top: -15px; left: 0; width: 100%; height: 30px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 60" xmlns="http://www.w3.org/2000/svg"><path d="M0 30 Q 150 60 300 30 T 600 30 T 900 30 T 1200 30 V 60 H 0 Z" fill="white" opacity="0.9"/></svg>') repeat-x; background-size: 600px 30px; animation: waveAnim 4s linear infinite; opacity: 0.3; }
@keyframes waveAnim { from {background-position-x: 0;} to {background-position-x: 600px;} }

.box-content { position: relative; z-index: 2; padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.val-text { font-size: 70px; font-weight: 800; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.val-unit { font-size: 24px; font-weight: normal; opacity: 0.8; }
.dark-text { color: white !important; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.glass-info { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); color: white !important; border-radius: 8px; padding: 10px; margin-bottom: 25px; display: inline-block; font-size: 14px; }
.glass-info b { color: white; }

.speedometer-wrapper { position: relative; height: 120px; margin-bottom: 10px; }
.speedometer { height: 100%; width: 100%; }
.speed-indicator-text { position: absolute; bottom: 0; width: 100%; text-align: center; }
.t-name { text-transform: uppercase; font-size: 14px; font-weight: bold; color: white; letter-spacing: 1px; opacity: 0.8; }
.t-val { font-size: 24px; font-weight: 800; color: white; }
#speed-fill { transition: stroke-dashoffset 0.5s ease, stroke 0.3s; }

.slider-wrapper { margin-bottom: 30px; }
.dark-slider { width: 100%; -webkit-appearance: none; height: 8px; background: rgba(255,255,255,0.1); border-radius: 5px; outline: none; }
.dark-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; background: white; border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 0 15px rgba(255,255,255,0.5); transition: 0.2s; }
.dark-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.dark-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: rgba(255,255,255,0.5); font-weight: bold; }
.price-big { font-size: 42px; font-weight: 800; color: white; margin-bottom: 20px; }
.full-width { width: 100%; padding: 15px; border: none; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-dark { background: white; color: #0056b3; }
.btn-dark:hover { background: #f0f0f0; transform: translateY(-2px); }

/* --- 4. УСТРОЙСТВА (INDEX.HTML) --- */
.devices-section { 
    position: relative; padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); 
    background-color: #050815;
    background-image: radial-gradient(circle at 50% 40%, rgba(0, 86, 179, 0.25) 0%, transparent 70%), radial-gradient(rgba(0, 198, 255, 0.2) 2px, transparent 2px);
    background-size: 100% 100%, 50px 50px; overflow: hidden;
}

.device-showcase {
    display: flex; align-items: center; gap: 40px; 
    background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(10px);
    border-radius: 20px; border: 1px solid rgba(0, 198, 255, 0.2); 
    padding: 40px; margin-bottom: 60px; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    position: relative; z-index: 2;
}

.dev-img-wrap { flex: 1; text-align: center; position: relative; min-height: 300px; display: flex; justify-content: center; align-items: center; }
.dev-real-img { max-width: 100%; max-height: 280px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6)); animation: floatDev 6s ease-in-out infinite; }
.dev-glow { position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%); width: 180px; height: 40px; background: ellipse(at center, #00c6ff 0%, transparent 70%); filter: blur(20px); opacity: 0.6; z-index: 1; animation: pulseGlow 4s infinite alternate; }

.dev-info-wrap { flex: 1.5; text-align: left; z-index: 5; }
.dev-badge { display: inline-block; background: linear-gradient(90deg, #e74c3c, #c0392b); padding: 6px 12px; font-size: 12px; font-weight: bold; border-radius: 4px; margin-bottom: 15px; color: white; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3); }
.dev-info-wrap h3 { font-size: 32px; margin-bottom: 5px; color: white; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.dev-model { color: #00c6ff; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.dev-desc { color: #cfd8dc; line-height: 1.6; margin-bottom: 25px; font-size: 16px; }
.dev-specs { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dev-specs li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
.dev-specs li i { color: #2ecc71; background: rgba(46, 204, 113, 0.1); padding: 5px; border-radius: 50%; }

.outdoor-intro { text-align: center; margin-bottom: 40px; position: relative; z-index: 2; }
.outdoor-intro h3 { font-size: 28px; color: white; margin-bottom: 10px; }
.outdoor-intro p { color: #94a3b8; font-size: 16px; }

.outdoor-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; align-items: stretch; position: relative; z-index: 2; }
.outdoor-card {
    flex: 1; min-width: 300px; max-width: 500px;
    background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(5px);
    padding: 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05);
    text-align: center; transition: 0.4s; display: flex; flex-direction: column; align-items: center;
}
.outdoor-card:hover { transform: translateY(-7px); border-color: #00c6ff; background: rgba(17, 24, 39, 0.9); box-shadow: 0 10px 40px rgba(0, 198, 255, 0.15); }
.out-img-container { height: 180px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; position: relative; }
.out-img-container::after { content: ''; position: absolute; width: 80px; height: 80px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; }
.out-real-img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5)); transition: 0.4s; z-index: 1; }
.outdoor-card:hover .out-real-img { transform: scale(1.1); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); }
.outdoor-card h4 { font-size: 20px; color: white; margin-bottom: 5px; font-weight: 700; }
.dev-model-sm { font-size: 12px; color: #64748b; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.out-desc { font-size: 14px; color: #cbd5e1; line-height: 1.5; }
@keyframes floatDev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); } }

/* --- 5. ПРОЧЕЕ --- */
.coverage-section { background: #0b1120; padding: 50px 0; color: white; text-align: center; margin-top: 0; border-top: 1px solid rgba(255,255,255,0.05); }
.coverage-form { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.coverage-form input { padding: 15px; width: 250px; border-radius: 5px; border: none; background: #1f2937; color: white; }
.btn-check { background: #27ae60; color: white; padding: 15px 30px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }
.site-footer { background: #000; color: #666; padding: 30px; text-align: center; border-top: 1px solid #111; }

/* КНОПКА TELEGRAM (Новая) */
.telegram-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #0088cc; color: white; text-decoration: none; padding: 15px 30px;
    border-radius: 5px; font-weight: bold; margin-top: 15px; transition: 0.3s;
    width: 100%; max-width: 300px; border: 1px solid #0088cc;
}
.telegram-link:hover { background: #0077b5; box-shadow: 0 0 15px rgba(0, 136, 204, 0.5); transform: translateY(-2px); }
.coverage-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }


/* --- 6. СТИЛИ ДЛЯ СТРАНИЦЫ TARIFFS.HTML (ДЕТАЛЬНЫЙ ВИД) --- */

/* 1. Эффект пульсации фона */
@keyframes color-pulse {
    0% { background: radial-gradient(circle at 50% 100%, #1a0000 0%, #050815 60%, #000000 100%); }
    50% { background: radial-gradient(circle at 50% 100%, #2a002a 0%, #050815 60%, #000000 100%); }
    100% { background: radial-gradient(circle at 50% 100%, #1a0000 0%, #050815 60%, #000000 100%); }
}

.page-header { 
    padding: 120px 0 60px; 
    text-align: center; 
    position: relative; 
    animation: color-pulse 20s infinite alternate; 
}
.page-title { font-size: 48px; font-weight: 900; color: white; margin-bottom: 10px; text-shadow: 0 0 20px rgba(0, 198, 255, 0.5); }
.page-subtitle { color: #b0bec5; font-size: 18px; margin-bottom: 40px; }

/* 2. Стили для кнопок-фильтров */
.filter-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-filter {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(0, 198, 255, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-filter:hover {
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
}

.btn-filter.active {
    background: linear-gradient(90deg, #0056b3, #00c6ff);
    border-color: #00c6ff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

/* ОБЩИЙ КОНТЕЙНЕР ТАРИФОВ */
.all-tariffs-section { 
    padding: 40px 0 80px; 
}
.tariffs-group { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    justify-content: center;
    align-items: stretch;
}

/* ЗАГОЛОВОК КАТЕГОРИИ */
.group-category-title {
    grid-column: 1 / -1; 
    text-align: center;
    padding: 30px 0 20px;
}
.group-category-title h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}
.group-category-title p {
    color: #94a3b8;
    font-size: 16px;
}

/* КАРТОЧКА ДЕТАЛЬНОГО ТАРИФА (Specification Card) */
.spec-card {
    background: #111827; 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px; 
    padding: 30px; 
    position: relative; 
    transition: 0.3s;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.spec-card:hover { 
    transform: translateY(-5px); 
    border-color: #00c6ff; 
    box-shadow: 0 15px 40px rgba(0, 198, 255, 0.1);
}

.card-header h4 { color: #fff; font-size: 28px; margin-bottom: 5px; }
.card-price { font-size: 36px; font-weight: bold; color: #00c6ff; margin-bottom: 30px; }
.card-price span { font-size: 18px; font-weight: normal; color: #888; }

.card-specs { list-style: none; text-align: left; margin-bottom: 30px; }
.card-specs li { 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    color: #ccc; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.card-specs li i { color: #e74c3c; width: 20px; text-align: center; }
.card-specs li b { color: white; font-weight: 700; }

/* ВЫДЕЛЕННАЯ КАРТОЧКА */
.featured-spec { 
    border-color: #e74c3c; 
    background: linear-gradient(135deg, #1f2937, #0d1b2a);
    transform: scale(1.03); 
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.2);
}
.featured-spec .card-price { color: #e74c3c; }
.featured-spec:hover { border-color: #e74c3c; transform: scale(1.03) translateY(-5px); }
.featured-spec .card-specs li i { color: #00c6ff; }


/* FAQ (АККОРДЕОН) */
.faq-section { padding: 60px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: #111827; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.faq-question { padding: 20px; color: white; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-question:hover { background: rgba(255,255,255,0.05); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.3s ease; color: #b0bec5; line-height: 1.6; }
.faq-item.active .faq-answer { padding: 20px; max-height: 500px; border-top: 1px solid rgba(255,255,255,0.05); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: #00c6ff; }


/* --- 7. СТИЛИ ДЛЯ СТРАНИЦЫ FAQ (faq.html) --- */

/* Фон заголовка */
.faq-header {
    background: radial-gradient(circle at 50% 100%, #000030 0%, #050815 60%, #000000 100%);
    padding: 150px 0 80px;
}
.faq-header .page-title {
    color: #00c6ff;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
    margin-bottom: 5px;
}
.faq-header .page-subtitle {
    color: #b0bec5;
    font-size: 16px;
}

/* Эффект ГЛИТЧА для заголовка */
.glitch {
    position: relative;
    color: #00c6ff;
    font-weight: 900;
    font-size: 50px;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #e74c3c; 
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-before 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #0056b3; 
    clip: rect(84px, 450px, 98px, 0);
    animation: glitch-anim-after 4s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim-before {
    0% { clip: rect(27px, 9999px, 54px, 0); }
    15% { clip: rect(61px, 9999px, 81px, 0); }
    30% { clip: rect(31px, 9999px, 24px, 0); }
    45% { clip: rect(51px, 9999px, 58px, 0); }
    60% { clip: rect(21px, 9999px, 88px, 0); }
    75% { clip: rect(75px, 9999px, 26px, 0); }
    90% { clip: rect(100px, 9999px, 40px, 0); }
    100% { clip: rect(67px, 9999px, 45px, 0); }
}

@keyframes glitch-anim-after {
    0% { clip: rect(12px, 9999px, 75px, 0); }
    20% { clip: rect(72px, 9999px, 23px, 0); }
    40% { clip: rect(44px, 9999px, 30px, 0); }
    60% { clip: rect(78px, 9999px, 58px, 0); }
    80% { clip: rect(120px, 9999px, 62px, 0); }
    100% { clip: rect(98px, 9999px, 30px, 0); }
}

/* Основной блок FAQ */
.faq-content-section {
    padding: 40px 0 100px;
}
/* Адаптация аккордеона */
.faq-grid {
    max-width: 900px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
.faq-item {
    border: 1px solid rgba(0, 198, 255, 0.1); 
}
.faq-item.active {
    border-color: #00c6ff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
}

/* --- 8. СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ (contacts.html) --- */

.contacts-content-section {
    padding: 60px 0 100px;
}

.contact-block {
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 10px;
    background: #0d1b2a;
    border: 1px solid rgba(0, 198, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.contacts-content-section .section-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 28px;
    color: #00c6ff;
    border-bottom: 2px solid rgba(0, 198, 255, 0.3);
    padding-bottom: 10px;
}

.contacts-content-section .section-title i {
    margin-right: 10px;
    color: #e74c3c;
}

/* Сетка для центральных номеров */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: #111827;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.1);
}

.info-card h3 {
    font-size: 16px;
    color: #b0bec5;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Стилизация номера, который теперь является ссылкой */
.info-card a.contact-number {
    text-decoration: none;
    color: white; 
    transition: color 0.3s;
}

.info-card a.contact-number:hover {
     color: #00c6ff;
}

.contact-number, .info-card a.contact-link-chat {
    font-size: 30px;
    font-weight: 900;
    color: white;
    margin: 5px 0;
    display: block;
}

.info-card .desc {
    font-size: 14px;
    color: #64748b;
}

.featured-card {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #2a0000, #110000);
}
.featured-card h3, .featured-card .contact-number {
    color: #e74c3c;
}

/* Стили для кликабельных иконок в контактах */
.info-card h3 a.contact-link {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    transition: color 0.3s;
}

.info-card h3 a.contact-link:hover {
    color: #00c6ff; 
}

/* Сетка для региональных представителей */
.regional-title {
    color: #e74c3c !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.region-card {
    background: #1f2937;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #0056b3;
    transition: 0.3s;
}

.region-card:hover {
    background: #2c3e50;
    border-left-color: #00c6ff;
}

.region-card h4 {
    font-size: 14px;
    color: white;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.reg-number {
    font-size: 20px;
    font-weight: bold;
    color: #00c6ff;
}

/* --- 9. СТИЛИ ДЛЯ ABOUT.HTML --- */

.mission-section {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #111827;
    border-radius: 10px;
    border: 1px solid rgba(231, 76, 60, 0.1);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.tech-title {
    font-size: 28px;
    color: #00c6ff;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 198, 255, 0.3);
    padding-bottom: 10px;
}
.tech-title i {
    color: #00c6ff;
    margin-right: 10px;
}

.mission-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #cfd8dc;
    margin-bottom: 15px;
}
.mission-text p strong {
    color: #00c6ff;
}

/* Достижение */
.achievement-title {
    color: #e74c3c !important; 
    border-color: rgba(231, 76, 60, 0.4) !important;
}

.award-badge {
    padding: 20px;
    background: #0d1b2a;
    border-radius: 8px;
    border-left: 5px solid #e74c3c;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.award-badge strong {
    color: #e74c3c;
    font-weight: 700;
}

/* --- 10. СТИЛИ ДЛЯ СТРАНИЦЫ АКЦИИ (promo.html) --- */

/* Фон заголовка */
.promo-header {
    background: radial-gradient(circle at 50% 100%, #1a0030 0%, #050815 60%, #000000 100%);
    padding: 150px 0 80px;
    text-align: center;
}

.promo-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.promo-title {
    font-size: 56px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
}

.highlight-text {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Анимация пульсации для CTA кнопки */
.pulse-btn {
    animation: pulseGlowBtn 2s infinite;
}

@keyframes pulseGlowBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Секция преимуществ */
.promo-details-section {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-card {
    background: #111827;
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid #00c6ff;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.detail-card h3 {
    font-size: 22px;
    color: #00c6ff;
    margin-bottom: 10px;
}
.detail-card h3 i {
    margin-right: 8px;
    color: #e74c3c;
}

.detail-card p {
    color: #b0bec5;
    font-size: 15px;
}

/* Секция CTA внизу страницы */
.promo-cta-section {
    padding: 60px 0;
    background: #0b1120;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.cta-text {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.promo-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.promo-form input {
    width: 280px; 
}

.promo-form .btn-check {
    background: #e74c3c;
    transition: 0.3s;
}
.promo-form .btn-check:hover {
    background: #c0392b;
}


/* --- 11. АДАПТИВНОСТЬ (MOBILE FIRST) --- */

/* 1. БУРГЕР МЕНЮ - Начинаем скрывать на десктопе */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
}
.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

/* 2. АДАПТАЦИЯ (992px - Tablet Landscape и меньше) */
@media (max-width: 992px) {
    
    /* Hero Section */
    .hero { height: auto; padding: 120px 0 80px; }
    .hologram-wrapper { display: none; } 
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; display: flex; }

    /* Device Section - Stack elements */
    .device-showcase { flex-direction: column; text-align: center; }
    .dev-info-wrap { text-align: center; }
    .dev-specs { justify-content: center; align-items: center; }
    .dev-specs li { width: 100%; justify-content: flex-start; } 

    /* Tariffs & General Grid Adapting */
    .tariffs-split { flex-direction: column; align-items: center; }
    .tariffs-column { max-width: 100%; }

    /* Contact and Info Grids should adjust automatically via auto-fit */
    .info-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .regions-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

    /* About Section */
    .mission-text { padding: 20px; }
}

/* 3. АДАПТАЦИЯ (768px - Mobile Portrait и меньше) */
@media (max-width: 768px) {
    
    /* Скрываем кнопку .btn-login в основном потоке шапки */
    .site-header > .container > .btn-login {
        display: none;
    }
    
    .site-header .container { 
        flex-wrap: nowrap; 
        justify-content: space-between;
    }
    .site-logo { max-height: 40px; }
    
    /* Mobile Menu: Show burger and hide nav normally */
    .burger-menu { display: flex; }
    
    /* ПОКАЗЫВАЕМ ДУБЛИКАТ КНОПКИ КАБИНЕТ ВНУТРИ БУРГЕРА */
    .nav-item-login {
        display: block; 
        margin-top: 20px;
        padding: 0 20px;
    }
    .nav-item-login .btn-login {
        width: 100%; 
        padding: 15px 0;
        border-color: #00c6ff;
        margin-left: 0; /* Убираем отступ для центровки внутри меню */
    }
    
    /* КОНТЕЙНЕР НАВИГАЦИИ */
    .main-nav { 
        position: absolute; top: 60px; left: 0; right: 0;
        background: #0d1b2a; 
        width: 100%; 
        max-height: 0; 
        overflow: hidden;
        box-shadow: 0 0 0 transparent;
        transition: max-height 0.3s ease-out, box-shadow 0.3s;
    }
    
    /* АКТИВНОЕ СОСТОЯНИЕ: РАСКРЫТЬ */
    .main-nav.active { 
        max-height: 700px; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    }

    .nav-list {
        flex-direction: column; 
        text-align: center;
        width: 100%;
        padding: 20px 0; 
    }
    .nav-list li { margin: 10px 0; }

    /* Центрируем переключатель языков */
    .lang-switcher {
        justify-content: center;
    }
    
    /* Headings */
    .hero-title, .page-title, .glitch { font-size: 40px; }
    .glitch::before, .glitch::after { font-size: 40px; }
    .section-title, .tech-title { font-size: 24px; margin-bottom: 30px; }
    
    /* Coverage form */
    .coverage-form { flex-direction: column; }
    .coverage-form input, .btn-check { width: 100%; }
    
    /* Tariffs Grid - Force single column on smaller screens */
    .tariffs-group { grid-template-columns: 1fr; gap: 20px; }
    .featured-spec { transform: scale(1); }
    .group-category-title h3 { font-size: 20px; }

    /* Contacts */
    .info-grid, .regions-grid { grid-template-columns: 1fr; }
    .contact-number, .info-card a.contact-link-chat { font-size: 26px; }

    /* About */
    .tech-title { font-size: 20px; }
    
    /* Promo */
    .promo-title { font-size: 40px; }
    .promo-form { flex-direction: column; align-items: center; }
    .promo-form input, .promo-form .btn-check { width: 100% !important; max-width: 350px; }
    
    /* Значки 4G/IP на мобильном */
    .hero-badges {
        flex-direction: column-reverse; /* IP будет НАД 4G */
        gap: 10px;
        align-items: center; /* Центруем */
        width: 100%;
    }
    .tech-pill { padding: 6px 14px; }
}

/* 4. АДАПТИВНОСТЬ (480px - Small Mobile) */
@media (max-width: 480px) {
    
    /* Уменьшаем шрифты, чтобы влезали слова */
    .hero-title, .page-title, .glitch { 
        font-size: 28px !important; 
        line-height: 1.2;
    }
    
    .glitch::before, .glitch::after { 
        font-size: 28px !important; 
    }
    
    .typing-cursor { height: 25px; }
    .page-header { padding: 80px 0 40px; }
    
    /* Улучшаем читаемость описаний */
    .hero-desc { font-size: 15px; padding: 0 10px; }
    
    .btn-filter { font-size: 11px; padding: 8px 12px; }

    .dev-info-wrap h3 { font-size: 22px; }
    .outdoor-card h4 { font-size: 18px; }

    .site-header { padding: 5px 0; }

    /* Кнопки на главном экране друг под другом для удобства */
    .hero-buttons {
        gap: 15px;
        flex-direction: column; /* Кнопки в столбик */
        width: 100%;
        align-items: center;
    }
    
    .btn-promo-cta, .glow-btn {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%; /* Кнопка во всю ширину */
        max-width: 320px;
        justify-content: center;
    }

    /* Исправление заголовка АКЦИЯ */
    .promo-title { 
        font-size: 32px !important; 
        line-height: 1.3;
    }
    
    /* Форма тоже должна быть удобной */
    .promo-form input, .promo-form .btn-check { 
        width: 100% !important; 
        max-width: 100%; 
    }
}
/* --- ВСТАВИТЬ В КОНЕЦ style.css --- */

/* Класс для выравнивания заголовков с иконками */
.center-flex {
    display: flex;              /* Включаем гибкий контейнер */
    align-items: center;        /* Выравниваем иконку и текст по вертикали ровно */
    justify-content: center;    /* Центрируем всё содержимое (и для ПК, и для моб) */
    gap: 12px;                  /* Расстояние между иконкой и текстом */
    width: 100%;                /* Растягиваем на всю ширину */
}

/* Настройки специально для мобильных телефонов */
@media (max-width: 768px) {
    .center-flex {
        flex-direction: row;    /* Принудительно в одну строку */
        flex-wrap: nowrap;      /* Запрещаем перенос на новую строку */
        white-space: nowrap;    /* Текст тоже не переносится */
    }
    
    /* Если иконка слишком большая или маленькая, поправляем */
    .center-flex i {
        margin-top: -2px;       /* Небольшая коррекция высоты иконки */
    }
}
/* --- FIX CONTACTS CENTER (Mobile) --- */
@media (max-width: 768px) {

    /* 1. Центрируем заголовок "ГЛАВНЫЙ ОФИС" и иконку */
    .contacts-content-section .section-title {
        text-align: center !important;
        display: block !important; /* Гарантируем, что заголовок занимает всю ширину */
    }

    /* 2. Центрируем контейнер с карточками */
    .contact-block {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрируем всё содержимое внутри синего блока */
    }

    /* 3. Центрируем саму сетку с телефонами */
    .info-grid {
        justify-content: center; /* Центрируем карточки по горизонтали */
        width: 100%;
    }

    /* 4. Ограничиваем ширину карточек, чтобы они были ровно по центру */
    .info-card {
        margin: 0 auto; /* Магический отступ для центровки */
        width: 100%;
        max-width: 350px; /* Чтобы на широких телефонах не растягивало на весь экран */
    }
}
/* --- FIX TITLES SIZE (Mobile) --- */
@media (max-width: 768px) {
    
    /* Уменьшаем размер заголовков, чтобы они помещались в одну строку */
    .contacts-content-section .section-title,
    .regions-section .section-title {
        font-size: 22px !important; /* Оптимальный размер */
        white-space: nowrap;        /* Запрещаем перенос на вторую строку */
        margin-bottom: 20px !important; /* Чуть уменьшим отступ снизу */
    }

    /* Уменьшаем иконку рядом с текстом, чтобы было пропорционально */
    .contacts-content-section .section-title i,
    .regions-section .section-title i {
        font-size: 20px !important;
        margin-right: 8px !important;
    }
}
/* --- 1. АНИМАЦИЯ БУРГЕРА (Превращение в крестик) --- */
.burger-menu span {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

/* Когда меню открыто (класс active добавляется скриптом) */
.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0; /* Средняя палка исчезает */
    transform: translateX(10px);
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- 2. ТВОЙ ЛОАДЕР (Follow the Leader) --- */
@-webkit-keyframes follow-the-leader {
  0% { -webkit-transform: rotate(0deg) translateY(-200%); transform: rotate(0deg) translateY(-200%); }
  60%, 100% { -webkit-transform: rotate(360deg) translateY(-200%); transform: rotate(360deg) translateY(-200%); }
}
@keyframes follow-the-leader {
  0% { -webkit-transform: rotate(0deg) translateY(-200%); transform: rotate(0deg) translateY(-200%); }
  60%, 100% { -webkit-transform: rotate(360deg) translateY(-200%); transform: rotate(360deg) translateY(-200%); }
}

/* Контейнер лоадера внутри кнопки */
.btn-loader-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центруем строго по центру */
    display: flex;
    justify-content: center;
    align-items: center;
}

.follow-the-leader {
  height: 14px;
  position: relative;
  width: 14px;
}

.follow-the-leader div {
  -webkit-animation: follow-the-leader 1.875s infinite backwards;
  animation: follow-the-leader 1.875s infinite backwards;
  background-color: #ffffff;
  border-radius: 100%;
  height: 100%;
  position: absolute;
  width: 100%;
}

.follow-the-leader div:nth-child(1) { animation-delay: 0.15s; background-color: rgba(255, 255, 255, 0.9); }
.follow-the-leader div:nth-child(2) { animation-delay: 0.3s;  background-color: rgba(255, 255, 255, 0.8); }
.follow-the-leader div:nth-child(3) { animation-delay: 0.45s; background-color: rgba(255, 255, 255, 0.7); }
.follow-the-leader div:nth-child(4) { animation-delay: 0.6s;  background-color: rgba(255, 255, 255, 0.6); }
.follow-the-leader div:nth-child(5) { animation-delay: 0.75s; background-color: rgba(255, 255, 255, 0.5); }

/* Класс для кнопки в состоянии загрузки */
.btn-loading {
    color: transparent !important; /* Скрываем текст */
    pointer-events: none; /* Блокируем повторные клики */
    position: relative; /* Чтобы лоадер позиционировался внутри */
}
/* --- АНИМАЦИЯ ЦИФР ТАРИФОВ --- */
.val-text, .price-value {
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
    display: inline-block; /* Чтобы работала трансформация */
    font-variant-numeric: tabular-nums; /* Чтобы цифры не скакали по ширине */
}

/* Класс для импульса при смене (добавляется JS-ом) */
.pulse-change {
    transform: scale(1.15);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}
/* --- PREMIUM UI: QUANTUM CALCULATOR --- */

/* 1. Контейнер цифр */
.main-value-wrap {
    display: flex;
    align-items: baseline; /* Выравниваем цифру и ГБ по низу */
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

/* 2. Огромные цифры (Apple Style) */
.val-text {
    font-size: 5rem; /* Очень крупно */
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    font-variant-numeric: tabular-nums; /* Чтобы цифры не дергались по ширине */
    will-change: transform, opacity;
    display: inline-block;
    /* Тень для объема */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

/* 3. Маленькая подпись (ГБ / Мбит) */
.unit-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4); /* Полупрозрачный белый */
    margin-left: 10px;
    text-transform: uppercase;
    transform: translateY(-5px); /* Чуть поднять */
}

/* 4. ЭНЕРГЕТИЧЕСКИЙ СТОЛБ (Вместо волны) */
.battery-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Градиент уходит в прозрачность сверху */
    background: linear-gradient(to top, currentColor 10%, transparent 120%);
    opacity: 0.9;
    border-radius: 0 0 20px 20px;
    
    /* ГЛАВНОЕ: Пружинистая анимация высоты */
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    
    /* Свечение */
    box-shadow: 0 0 50px currentColor;
    z-index: 0;
}

/* Яркая полоска сверху столба */
.battery-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 -2px 10px rgba(255,255,255,0.8);
}

/* 5. Анимация цифр (Размытие при движении) */
.counter-animating {
    filter: blur(1px);
    opacity: 0.9;
    transform: scale(1.05);
}

.counter-finished {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
/* --- MOBILE FIX: ONLY PRICES (Только цены в одну строку) --- */
@media (max-width: 768px) {
    
    /* Блок с ценой (198 сом./мес) */
    .price-big {
        white-space: nowrap !important; /* Железно запрещаем перенос на новую строку */
        font-size: 26px !important;     /* Оптимальный размер (не мелко, но влезет) */
        
        /* Центровка */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 10px; /* Чуть воздуха сверху */
    }

    /* Сама цифра цены (сделаем её чуть жирнее, чтобы выделялась) */
    .price-big span {
        font-weight: 800 !important;
        margin-right: 6px; /* Отступ от слова "сом./мес" */
    }
}
/* --- PROMO POPUP (МОДАЛЬНОЕ ОКНО АКЦИИ) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Глубокое затемнение */
    z-index: 10000; /* Поверх всего, даже меню */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px); /* Размытие сайта на фоне */
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px; /* Оптимально для вертикального плаката */
    background: transparent;
    border-radius: 20px;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Кнопка закрытия (X) */
.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}
.modal-close:hover { 
    transform: rotate(90deg) scale(1.2); 
    color: #ff0055; 
}

/* Изображение плаката */
.promo-poster-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 198, 255, 0.2);
    /* Защита от случайного выделения */
    -webkit-user-select: none;
    user-select: none;
}

/* Кнопка действия под плакатом */
.btn-modal-action {
    display: block;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    /* Яркий градиент */
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modal-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 114, 255, 0.5);
}

/* Адаптация для маленьких экранов */
@media (max-height: 700px) {
    .modal-content {
        max-width: 400px; /* Чуть меньше, если экран низкий */
    }
    .modal-close {
        top: -40px;
        right: -10px;
    }
}
