:root {
    --bg-main: #060913;
    --bg-card: rgba(21, 29, 48, 0.4);
    --bg-card-hover: rgba(29, 39, 64, 0.6);
    --text-main: #ffffff;
    --text-muted: #8a99ad;
    --neon-purple: #a855f7;
    --neon-cyan: #06b6d4;
    --neon-glow: rgba(168, 85, 247, 0.4);
    --radius: 20px;
    --transition-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding: 0 20px;
    overflow-x: hidden;
}

/* --- ФОН --- */
.bg-blur-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
}

.sphere-1 {
    width: 450px;
    height: 450px;
    background: var(--neon-purple);
    top: -10%;
    right: 10%;
    animation: float 12s infinite alternate ease-in-out;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    bottom: 10%;
    left: 5%;
    animation: float 18s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

/* --- ФИКСИРОВАННАЯ ПАРЯЩАЯ ШАПКА --- */
.header {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    position: fixed; /* Фиксируем на экране */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none; /* Чтобы клики сквозь прозрачную область проходили к сайту */
}

.nav {
    background: rgba(21, 29, 48, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
    border-radius: 30px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto; /* Возвращаем кликабельность кнопкам меню */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Добавляем мягкую тень парения */
}


.nav {
    background: rgba(21, 29, 48, 0.6);
    padding: 6px;
    border-radius: 30px;
    display: flex;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #fff;
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-glow);
}

/* --- ГЛАВНЫЙ ЭКРАН --- */
.hero {
    text-align: center;
    padding: 180px 0 60px; /* Увеличили верхний отступ, чтобы шапка не перекрывала текст */
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 20px;
}

/* --- ОБЩИЕ СТИЛИ КАРТОЧЕК --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s var(--transition-fast), 
                border-color 0.3s var(--transition-fast), 
                box-shadow 0.3s var(--transition-fast);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15);
}

/* --- СЕТКА ПРЕИМУЩЕСТВ --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Правильная сетка в ряд */
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}

.feature-card {
    text-align: left;
}

.feature-card .icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* --- СЕТКА ТАРИФОВ --- */
.tariffs {
    max-width: 1100px;
    margin: 100px auto;
    text-align: center;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 50px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Правильная сетка тарифов в ряд */
    gap: 30px;
    align-items: stretch;
}

.tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.tariff-card h3 {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tariff-card .price {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
}

.tariff-card .price span {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}

.tariff-card.popular {
    border: 1px solid var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
}

.badge {
    position: absolute;
    top: -14px;
    background: linear-gradient(135deg, var(--neon-purple), #c084fc);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 15px var(--neon-glow);
}

/* --- КНОПКИ --- */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--neon-glow);
}

/* --- ИНПУТЫ --- */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--bg-main);
    padding: 0 6px;
    color: var(--neon-cyan);
}

/* --- ФУТЕР --- */
.footer {
    text-align: center;
    padding: 70px 0 40px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1100px;
    margin: 0 auto;
}

.footer p { margin-bottom: 6px; }
.footer-links a { color: var(--neon-cyan); text-decoration: none; margin: 0 6px; }
.footer-links a:hover { text-decoration: underline; }
.hidden { display: none !important; }
