: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: transparent;
    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;
    background: var(--bg-main);
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    z-index: -1;
}

.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-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,
.input-group select {
    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;
    background: transparent;
    padding: 0;
}

.input-group input:focus ~ label, 
.input-group input:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:not([value=""]) ~ 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; }

/* --- МОДАЛЬНЫЕ ОКНА --- */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10001;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-left { text-align: left; }
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover { color: #fff; transform: rotate(90deg); }

/* --- КОНСТРУКТОР ТАРИФОВ --- */
.constructor-modal {
    padding: 40px 35px;
    position: relative;
    max-width: 520px;
}
.constructor-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}
.constructor-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}
.constructor-slider-wrapper {
    margin-bottom: 25px;
}
.constructor-devices-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
}
.constructor-count {
    font-size: 28px;
    font-weight: 800;
    color: var(--neon-cyan);
}
.constructor-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}
.constructor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
    cursor: pointer;
    box-shadow: 0 0 20px var(--neon-glow);
}
.constructor-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
}
.constructor-price-block {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.constructor-price-amount {
    font-size: 56px;
    font-weight: 800;
}
.constructor-price-currency {
    font-size: 28px;
    font-weight: 600;
    color: var(--neon-cyan);
}
.constructor-price-period {
    font-size: 14px;
    color: var(--text-muted);
}
.constructor-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}
.constructor-feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.constructor-buy-btn {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px var(--neon-glow); }
    50% { box-shadow: 0 0 35px var(--neon-glow); }
}

/* Парящий баннер */
.floating-banner {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.floating-banner .banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}
.floating-banner .banner-close:hover {
    opacity: 1;
}