:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Фоновые свечения */
body::before, body::after {
    content: ''; position: absolute; width: 600px; height: 600px;
    border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.3; pointer-events: none;
}
body::before { top: -150px; left: -150px; background: var(--accent); }
body::after { bottom: 10%; right: -150px; background: #8b5cf6; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { padding: 30px 0; display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 1.8em; font-weight: 900; letter-spacing: 1px; 
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
}
.logo-link { text-decoration: none; }

.top-nav a {
    color: var(--text-muted); text-decoration: none; margin-left: 25px; font-weight: 500; transition: color 0.3s;
}
.top-nav a:hover { color: var(--text-main); }
.top-nav .nav-btn {
    border: 1px solid var(--card-border); padding: 8px 20px; border-radius: 8px; color: var(--text-main);
}
.top-nav .nav-btn:hover { background: var(--card-bg); }

.hero { text-align: center; padding: 100px 0 80px; }
.hero h1 { font-size: 4.5em; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero p { font-size: 1.2em; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

.btn-primary { 
    display: inline-block; background: var(--accent-gradient); color: #fff; 
    padding: 16px 45px; border-radius: 12px; text-decoration: none; font-weight: 600; 
    font-size: 1.1em; transition: all 0.3s ease; box-shadow: 0 8px 25px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.1); text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px var(--accent-glow); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 50px; }
.feature-card { 
    background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid var(--card-border); 
    border-radius: 20px; padding: 40px 30px; transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, 0.4); }
.feature-icon { font-size: 2.5em; margin-bottom: 20px; display: block; }
.feature-card h3 { font-size: 1.3em; margin-bottom: 10px; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: 0.95em; }

.section-title { text-align: center; margin: 100px 0 50px; font-size: 2.5em; font-weight: 800; letter-spacing: -1px; }

.tariffs { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.tariff-card { 
    background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid var(--card-border); 
    border-radius: 24px; padding: 50px 40px; width: 340px; position: relative;
    transition: all 0.4s ease; display: flex; flex-direction: column;
}
.tariff-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.tariff-card.popular { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.05); }
.tariff-card.popular::before {
    content: 'ХИТ ПРОДАЖ'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent-gradient); padding: 6px 16px; border-radius: 20px; font-size: 0.75em; font-weight: 800; letter-spacing: 1px;
}
.tariff-title { font-size: 1.4em; color: var(--text-muted); font-weight: 500; text-align: center; }
.tariff-price { font-size: 3.5em; font-weight: 800; margin: 15px 0 30px; text-align: center; }
.tariff-price span { font-size: 0.4em; color: var(--text-muted); font-weight: 500; }
.tariff-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.tariff-features li { margin-bottom: 15px; color: var(--text-muted); position: relative; padding-left: 28px; }
.tariff-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

.btn-outline {
    display: block; width: 100%; padding: 15px 0; border-radius: 12px; text-decoration: none;
    color: var(--text-main); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-border);
    font-weight: 600; transition: all 0.3s; text-align: center;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 25px; margin-bottom: 20px; }
.faq-item h4 { font-size: 1.2em; margin-bottom: 10px; }
.faq-item p { color: var(--text-muted); }

/* Юридические страницы */
.legal-page { 
    background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid var(--card-border); 
    border-radius: 24px; padding: 60px; margin-top: 50px; margin-bottom: 50px;
}
.legal-page h1 { font-size: 2.5em; margin-bottom: 30px; letter-spacing: -1px; }
.legal-page h2 { font-size: 1.5em; margin: 40px 0 20px; color: #fff; }
.legal-page p, .legal-page ul { color: var(--text-muted); margin-bottom: 20px; }
.legal-page ul { padding-left: 20px; }
.back-btn { display: inline-block; margin-bottom: 30px; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.back-btn:hover { color: var(--accent); }

footer { margin-top: 100px; padding: 50px 20px; border-top: 1px solid var(--card-border); text-align: center; }
.footer-nav { margin-bottom: 30px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95em; transition: color 0.3s; }
.footer-nav a:hover { color: var(--text-main); }
.legal-text { color: #475569; font-size: 0.85em; line-height: 1.8; }
.legal-text a { color: var(--text-muted); text-decoration: none; border-bottom: 1px dotted #475569; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8em; }
    .top-nav { display: none; } /* Прячем меню на мобилках для простоты */
    .tariffs { flex-direction: column; align-items: center; }
    .tariff-card { width: 100%; max-width: 350px; }
    .legal-page { padding: 30px 20px; }
}
/* Стили Личного кабинета */
#cabinet { 
    display: none; 
    margin-top: 40px; 
    padding: 30px; 
    background: #1a1a1a; /* Подстрой под свою палитру */
    border-radius: 12px; 
    color: #fff; 
}
.cab-info { 
    margin-bottom: 20px; 
    font-size: 1.1em; 
    line-height: 1.6;
}
.cab-link-box { 
    background: #2a2a2a; 
    padding: 15px; 
    border-radius: 8px; 
    word-break: break-all; 
    font-family: monospace; 
    color: #00ff88; 
    margin-bottom: 20px;
}
#logout-btn { 
    display: none; 
    color: #ff4444; 
    cursor: pointer; 
    font-weight: 600;
}
#logout-btn:hover {
    color: #ff6666;
}
