/* Переменные для удобства */
:root {
    --dark-bg: #1a1e28;
    --dark-card: #282c3f;
    --accent-blue: #007bff;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
}

/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    
    /* ИЗМЕНЕНИЕ 3: УМЕНЬШЕННЫЙ ОТСТУП ДЛЯ ФИКСИРОВАННОЙ ШАПКИ НА ДЕСКТОПЕ */
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-blue);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--dark-bg);
    /* ИЗМЕНЕНИЕ 1: УМЕНЬШЕННЫЙ ВЕРТИКАЛЬНЫЙ ПАДДИНГ */
    padding: 5px 0; 
    border-bottom: 1px solid var(--dark-card);

    /* ФИКСАЦИЯ ШАПКИ */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    z-index: 1000;
    
    /* ИСПРАВЛЕНИЯ ДЛЯ SAFARI/iOS */
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden; 
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Кнопка Гамбургер (СКРЫТА на десктопе) --- */
.hamburger-btn {
    display: none; 
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2em;
    cursor: pointer;
    z-index: 1010; 
}

/* --- Навигация (ДЕКСТОП) --- */
.nav {
    display: flex; 
    align-items: center;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
}

/* --- ОБНОВЛЕННЫЙ ЛОГОТИП --- */
.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* ИЗМЕНЕНИЕ 2: УМЕНЬШЕННЫЙ РАЗМЕР ЛОГОТИПА */
.logo-img {
    height: 40px; 
    width: 40px;
    margin-right: 8px;
    border-radius: 50%;
    object-fit: cover;
}


.nav a {
    margin-left: 25px;
    font-weight: 500;
}

.profile-icon {
    font-size: 1.2em;
    padding-left: 10px;
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    min-height: 704px;
    /* Я использую ваш предыдущий фон, убедитесь, что имя файла верное */
    background-image: url('20251208205924.JPG'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 100px 0;
    margin: 0 auto;
}

.hero-section .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    padding: 0;
    text-align: left;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 0.1em;
}

.hero-content .subtitle {
    font-size: 1.2em;
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content .tagline {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Features Section --- */
.features-section {
    background-color: var(--dark-bg);
    padding: 40px 0 80px;
    border-top: 1px solid var(--dark-card);
}

.features-section .container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.feature-icon {
    width: 105px;
    height: 120px;
}

.feature-card {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    flex-basis: 30%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
    display: block;
    width: 105px;
    height: 120px;
    margin: 0 auto 15px auto;
}

.feature-card h3 {
    font-size: 1.2em;
    font-weight: normal;
}

/* --- Footer --- */
.footer {
    background-color: #11141c;
    padding: 20px 0;
    border-top: 1px solid var(--dark-card);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.footer-links a {
    margin-right: 20px;
    color: var(--text-muted);
}

.social-links a {
    margin-left: 15px;
    font-size: 1.2em;
}

/* ======================================= */
/* --- СТИЛИ СЕКЦИИ КАЛЬКУЛЯТОРА --- */
/* ======================================= */

.calculator-section {
    background-color: var(--dark-bg);
    padding: 60px 0 80px;
    text-align: center;
    border-top: 1px solid var(--dark-card);
}

.calculator-section h2 {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
}

/* Выбор Платформ */
.platforms-selection {
    margin-bottom: 40px;
}

.platforms-title {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-btn {
    background-color: var(--dark-card);
    color: var(--text-light);
    border: 1px solid var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-grow: 1;
    min-width: 120px;
    max-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Активная (выбранная) кнопка платформы */
.platform-btn.active {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

.platform-btn:hover:not(.active) {
    background-color: #383c4f;
    border-color: var(--accent-blue);
}

/* Группы ползунков (слайдеров) */
.control-group {
    margin: 30px auto;
    max-width: 600px;
    text-align: left;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: normal;
    font-size: 1.1em;
    color: var(--text-light);
}

.slider-value-wrapper {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2em;
    white-space: nowrap;
}

.control-group #gigabytes-value,
.control-group #accounts-value {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1em;
    margin-right: 5px;
}

/* Стилизация ползунка (Slider) */
input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--dark-card);
    border-radius: 5px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-top: 5px;
}

/* Бегунок (Thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
    transition: background-color 0.2s;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.8);
}

/* Подписи (0 и Max) */
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Кнопка "Calculate" */
.calculate-action {
    margin-top: 50px;
}

.calculate-btn {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.calculate-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* ======================================= */
/* --- СТИЛИ СЕКЦИИ ЛИЧНОГО КАБИНЕТА (DASHBOARD) --- */
/* ======================================= */

.dashboard-section {
    padding: 60px 0 80px;
    background-color: var(--dark-bg);
}

.dashboard-header {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--dark-card);
    padding-bottom: 20px;
}

.dashboard-header h2 {
    font-size: 2.5em;
    color: var(--text-light);
    margin: 0;
}

.status-summary {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-top: 5px;
}

/* Сетка для карточек */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.card h3 {
    color: var(--text-light);
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

/* Статус Подписки */
.icon-indicator {
    font-size: 2em;
    float: right;
    margin-left: 15px;
}

.active-status {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.expiry-date {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Кнопки в Дашборде */
.primary-btn {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: var(--dark-bg);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.secondary-btn:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.full-width {
    width: 100%;
    margin-top: 15px;
}

/* Прогресс-бар */
.progress-bar-container {
    background-color: #383c4f;
    border-radius: 5px;
    height: 10px;
    margin: 10px 0 15px;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-blue);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.usage-text {
    color: var(--text-light);
}
.usage-note {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* Список устройств */
.device-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.device-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.device-name {
    color: var(--text-light);
}

.action-btn {
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s;
}
.action-btn:hover {
    border-color: red;
    color: red;
}

/* Быстрые настройки */
.settings-links {
    list-style: none;
    padding: 0;
}
.settings-links li {
    padding: 10px 0;
}
.settings-links a {
    color: var(--text-light);
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}
.settings-links a:hover {
    color: var(--accent-blue);
}

/* ======================================= */
/* --- СТИЛИ СЕКЦИИ ТАРИФОВ (PRICING) --- */
/* ======================================= */

.pricing-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
}

.pricing-title {
    font-size: 2.5em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 50px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}

.pricing-card {
    background-color: var(--dark-card);
    padding: 40px 30px;
    border-radius: 12px;
    width: 300px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border 0.3s;
    position: relative;
    border: 2px solid transparent; 
}

.pricing-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent-blue);
}

/* Выделение рекомендуемого тарифа */
.pricing-card.recommended {
    border-color: var(--accent-blue);
    transform: scale(1.05); 
    background-color: #31364a; 
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-blue);
    color: var(--text-light);
    padding: 5px 15px;
    font-size: 0.8em;
    font-weight: bold;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.pricing-card h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--text-light);
}

.price {
    font-size: 3em;
    font-weight: bold;
    color: var(--accent-blue);
    margin-bottom: 30px;
}

.price .period {
    font-size: 0.4em;
    font-weight: normal;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 1.05em;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Стили для кнопок в тарифах */
.pricing-card .cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
    margin-top: 15px;
}


/* --- Мобильная адаптивность (<= 768px) --- */
@media (max-width: 768px) {
    
    /* СБРОС ВЕРХНЕГО ОТСТУПА ИЗ-ЗА ФИКСИРОВАННОЙ ШАПКИ */
    body {
        padding-top: 0; 
    }
    
    /* ПОКАЗЫВАЕМ КНОПКУ ГАМБУРГЕР */
    .hamburger-btn {
        display: block; 
    }

    /* РАЗМЕР ЛОГОТИПА НА МОБИЛЬНЫХ (Оставляем 45px, чтобы он был чуть больше, чем на десктопе, для читаемости) */
    .logo-img {
        height: 45px;
        width: 45px;
    }
    
    /* ШАПКА В РЕЖИМЕ "ЛОГОТИП + КНОПКА" */
    .header .container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    
    /* СКРЫВАЕМ ОСНОВНУЮ НАВИГАЦИЮ И ПРЕВРАЩАЕМ ЕЕ ВО ВСПЛЫВАЮЩУЮ ПАНЕЛЬ */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; 
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-card); 
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        /* Уменьшаем верхний паддинг, так как шапка меньше */
        padding: 60px 20px 20px; 
        
        transform: translateX(100%); /* СКРЫВАЕМ ЗА ЭКРАНОМ */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1005; 
    }
    
    /* КЛАСС ДЛЯ ОТКРЫТОГО МЕНЮ */
    .nav.open {
        transform: translateX(0);
    }
    
    .nav a {
        margin: 10px 0;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Скрываем иконку профиля, она уже внутри мобильного меню */
    .profile-icon {
        padding-left: 0;
    }

    /* ОСТАЛЬНЫЕ СТИЛИ АДАПТИВНОСТИ */
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .features-section .container {
        flex-direction: column;
    }

    /* Адаптивность Калькулятора */
    .platform-buttons {
        gap: 8px;
    }

    .platform-btn {
        min-width: unset;
        max-width: unset;
        font-size: 0.9em;
        flex-basis: 30%;
    }

    .calculator-section h2 {
        font-size: 2em;
    }

    .calculate-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Адаптивность Дашборда */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-header {
        text-align: center;
    }
    .card {
        padding: 20px;
    }

    /* Адаптивность Тарифов */
    .pricing-section {
        padding: 50px 0;
    }
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin: 0;
        transform: none !important;
        border: 2px solid transparent;
    }
    .pricing-card.recommended {
        transform: none;
    }
    .pricing-card.recommended:hover {
        transform: none;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-links {
        margin-bottom: 15px;
    }
}
