:root {
    --bg-dark: #05080f; 
    --bg-card: #0a101d; 
    --text-white: #ffffff;
    --text-muted: #8b99af;
    --accent: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.3);
    --widget-bg: rgba(10, 16, 29, 0.6);
}

html { scroll-behavior: smooth; }

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark); color: var(--text-white);
    line-height: 1.6; overflow-x: hidden; position: relative;
}
body.no-scroll { overflow: hidden; }

.overlay-fx {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 100; pointer-events: none;
    background: radial-gradient(transparent 70%, rgba(0,0,0,0.85) 100%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* УНИВЕРСАЛЬНАЯ КАРТОЧКА СО СВЕЧЕНИЕМ */
.glow-card {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 8px; position: relative; overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glow-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient( 800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40% );
    opacity: 0; transition: opacity 0.5s ease; z-index: 1; pointer-events: none;
}
.glow-card:hover { border-color: var(--border-hover); }
.glow-card:hover::before { opacity: 1; }
.glow-card > * { position: relative; z-index: 2; }


/* Липкая шапка */
.header { 
    padding: 24px 0; border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(5, 8, 15, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.header.scrolled { padding: 16px 0; background: rgba(5, 8, 15, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; }
.nav-btn { color: var(--text-white); text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 4px; transition: 0.3s; }
.nav-btn:hover { background: var(--text-white); color: var(--bg-dark); }

/* Главный экран */
.hero { position: relative; padding: 160px 0 100px; min-height: 90vh; display: flex; align-items: center; }
#tunnel-canvas { position: absolute; top: 0; right: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.8; }
.hero-container { display: flex; align-items: center; width: 100%; position: relative; }
.hero-content { max-width: 650px; position: relative; z-index: 3; }

.live-widget { background: var(--widget-bg); border: 1px solid var(--border-color); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 4px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.5px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.status-widget { margin-bottom: 30px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pulse-dot.green { background: #10b981; box-shadow: 0 0 10px #10b981; animation: pulseG 2s infinite; }
.pulse-dot.blue { background: #3b82f6; box-shadow: 0 0 10px #3b82f6; animation: pulseB 2s infinite; }
@keyframes pulseG { 0% { opacity: 1; box-shadow: 0 0 10px #10b981; } 50% { opacity: 0.5; box-shadow: 0 0 2px #10b981; } 100% { opacity: 1; box-shadow: 0 0 10px #10b981; } }
@keyframes pulseB { 0% { opacity: 1; box-shadow: 0 0 10px #3b82f6; } 50% { opacity: 0.5; box-shadow: 0 0 2px #3b82f6; } 100% { opacity: 1; box-shadow: 0 0 10px #3b82f6; } }

h1 { font-size: 5rem; line-height: 1.05; font-weight: 900; margin-bottom: 30px; letter-spacing: -2px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 48px; max-width: 500px; }

.cta-button { position: relative; overflow: hidden; display: inline-block; background-color: var(--accent); color: var(--bg-dark); font-size: 1.1rem; font-weight: 700; padding: 18px 48px; border-radius: 4px; text-decoration: none; transition: all 0.3s ease; }
.cta-button:hover { box-shadow: 0 0 25px rgba(255,255,255,0.2); background-color: #f0f0f0; }
.cta-button::after { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(10, 37, 100, 0.15), transparent); transform: skewX(-25deg); animation: scannerGlare 4s infinite; }
@keyframes scannerGlare { 0% { left: -150%; } 20% { left: 200%; } 100% { left: 200%; } }

.trust-metrics { display: flex; align-items: center; gap: 20px; margin-top: 50px; }
.metric { font-size: 0.9rem; color: var(--text-muted); }
.metric strong { color: var(--text-white); font-size: 1.1rem; font-weight: 800; margin-right: 4px; }
.divider { width: 1px; height: 20px; background: var(--border-color); }


/* Платформы */
.platforms { padding: 50px 0; position: relative; z-index: 5; background: rgba(10, 16, 29, 0.4); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.platforms-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.platforms-title { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; font-weight: 700; }
.platforms-logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.platform-item { display: flex; align-items: center; gap: 12px; opacity: 0.5; transition: opacity 0.3s ease, transform 0.3s ease; cursor: default; }
.platform-item:hover { opacity: 1; transform: translateY(-5px); }
.platform-item svg { height: 28px; fill: var(--text-white); }
.platform-item span { color: var(--text-white); font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; }

.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: 1; opacity: 0.05; pointer-events: none; animation: glowFloat 20s infinite alternate ease-in-out; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 800px; height: 800px; background: radial-gradient(circle, rgba(10,37,100,0.3) 0%, transparent 70%); bottom: -200px; right: -200px; animation-duration: 30s; }
@keyframes glowFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 100px) scale(1.1); } }

/* Преимущества */
.features { padding: 100px 0; position: relative; z-index: 10;}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { padding: 40px 30px; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--text-white); transition: background 0.3s ease, transform 0.3s ease; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card:hover .feature-icon { background: rgba(255, 255, 255, 0.08); transform: scale(1.05); }
.feature-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: var(--text-white); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Как это работает */
.how-it-works { padding: 80px 0; position: relative; z-index: 5; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.step-card { padding: 50px 30px; text-align: left; }
.step-card:hover { transform: translateY(-2px); }
.step-number { font-size: 6rem; font-weight: 900; color: rgba(255, 255, 255, 0.02); position: absolute; top: -20px; right: 10px; line-height: 1; user-select: none; z-index: 1 !important; }
.step-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 800; color: var(--text-white); }
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* =========================================
   ИЗМЕНЕНО: Сетка Тарифов (Под 4 колонки)
   ========================================= */
.pricing { padding: 80px 0 120px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: 900; letter-spacing: -1px; }

/* Используем 240px чтобы 4 карточки красиво влезали в один ряд на ПК, а на планшете падали по 2 */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 24px; 
    align-items: stretch; /* Одинаковая высота карточек */
}

/* Flex-direction: column чтобы прижать кнопку к низу карточки */
.price-card { 
    padding: 40px 30px; 
    text-align: left; 
    display: flex;
    flex-direction: column;
}

.price-card:hover { transform: translateY(-2px); }

.price-card.popular { 
    border-color: rgba(255,255,255,0.3); 
    transform: scale(1.02); 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5); 
    z-index: 2;
}
.price-card.popular:hover { transform: scale(1.02) translateY(-3px); border-color: #fff; }

.popular-badge { 
    display: inline-block; background: var(--text-white); color: var(--bg-dark); 
    padding: 4px 12px; border-radius: 2px; font-size: 0.8rem; font-weight: 800; 
    text-transform: uppercase; margin-bottom: 20px; 
}

.price-header { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;}
.price-duration { font-size: 1.3rem; font-weight: 800; color: var(--text-white); margin-bottom: 5px; }

.price-amount { font-size: 3rem; font-weight: 900; margin-bottom: 30px; letter-spacing: -1px;}
.price-amount span { font-size: 1.5rem; color: var(--text-muted); font-weight: 700; margin-left: 4px; }

.price-features { list-style: none; margin-bottom: 40px; flex-grow: 1; /* Растягиваем список, чтобы кнопка всегда была внизу */}
.price-features li { margin-bottom: 16px; color: var(--text-white); display: flex; align-items: flex-start; font-size: 0.95rem; line-height: 1.4;}
.price-features li::before { content: '—'; color: var(--text-muted); margin-right: 12px; font-weight: bold;}

/* Кнопка с margin-top: auto всегда будет прижата к низу */
.price-btn { 
    display: block; width: 100%; padding: 16px; border-radius: 4px; text-align: center; 
    background: var(--accent); color: var(--bg-dark); text-decoration: none; 
    font-weight: 700; transition: 0.3s; position: relative; z-index: 10; margin-top: auto; 
}
.price-btn.outline { background: transparent; color: var(--text-white); border: 1px solid var(--border-color); }
.price-btn:hover { background: #e0e0e0; }
.price-btn.outline:hover { border-color: var(--text-white); background: transparent; color: #fff;}


/* FAQ */
.faq { padding: 60px 0 100px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0; }
.faq-item:hover { transform: none; }
.faq-header { padding: 24px 30px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease; }
.faq-title { font-size: 1.1rem; font-weight: 700; }
.faq-icon { width: 20px; height: 20px; position: relative; flex-shrink: 0; margin-left: 20px; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--text-white); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg) scale(0); }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq-content-inner { overflow: hidden; }
.faq-content-inner p { padding: 0 30px 24px 30px; margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.faq-item.open .faq-content { grid-template-rows: 1fr; }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: opacity, visibility; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Подвал */
.footer { padding: 80px 0 60px; border-top: 1px solid var(--border-color); background: linear-gradient(180deg, transparent 0%, rgba(5,8,15,0.8) 100%); position: relative; z-index: 10; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-col h4 { color: var(--text-white); font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.5px; }
.brand-col .logo { margin-bottom: 16px; font-size: 1.8rem;}
.footer-slogan { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; max-width: 250px;}
.copyright { color: rgba(139, 153, 175, 0.5); font-size: 0.85rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; display: inline-block; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--text-white); transform: translateX(5px); }
.social-link { display: inline-flex; align-items: center; gap: 10px; }
.social-link svg { width: 20px; height: 20px; fill: none; }

/* Модальные окна */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 15, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; width: 100%; max-width: 600px;
    max-height: 85vh; margin: 20px; position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 15px; right: 20px;
    background: transparent; border: none; color: var(--text-muted);
    font-size: 28px; cursor: pointer; transition: color 0.3s; z-index: 10;
}
.modal-close:hover { color: var(--text-white); }
.modal-content { padding: 40px 30px; overflow-y: auto; color: var(--text-muted); }
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
.modal-content h2 { color: var(--text-white); font-size: 1.8rem; margin-bottom: 10px; font-weight: 800; padding-right: 30px;}
.modal-content h3 { color: var(--text-white); font-size: 1.2rem; margin: 30px 0 15px 0; font-weight: 700; }
.modal-content p { font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6; }
.modal-content ul { padding-left: 20px; margin-bottom: 15px; font-size: 0.95rem; }
.modal-content ul li { margin-bottom: 8px; }


/* Адаптив */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    .price-card.popular { transform: scale(1); }
    .price-card.popular:hover { transform: translateY(-3px); }
    #tunnel-canvas { opacity: 0.3; }
    .trust-metrics { flex-wrap: wrap; gap: 15px; }
    .divider { display: none; }
    
    .footer-container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-slogan { max-width: 100%; }
}
@media (max-width: 768px) {
    .platform-item svg { height: 24px; }
    .platform-item span { font-size: 0.9rem; }
}
@media (max-width: 576px) {
    .platforms-logos { gap: 20px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center;}
    .footer-slogan { margin: 0 auto 24px auto;}
    .social-link { justify-content: center; }
    .footer-col ul li a:hover { transform: none; color: var(--accent); }
    .modal-content { padding: 30px 20px; }
}
