/* --- 1. ПЕРЕМЕННЫЕ (ДИЗАЙН-СИСТЕМА) --- */
:root {
    /* Цвета бренда */
    --primary-color: #007bff;       /* Основной синий */
    --primary-dark: #0056b3;        /* Темно-синий (ховер) */
    --accent-color: #ff4757;        /* Акцентный (кнопки, скидки) */
    --accent-dark: #e04040;         /* Темно-красный */
    --text-main: #2f3542;           /* Основной текст */
    --text-light: #747d8c;          /* Второстепенный текст */
    
    /* Фоны */
    --bg-body: #f1f2f6;             /* Фон страницы */
    --bg-white: #ffffff;            /* Белый фон блоков */
    
    /* Декор */
    --border-radius: 16px;          /* Скругление углов */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15); /* Тень при наведении */
    --transition: all 0.3s ease;    /* Плавность анимаций */
}

/* --- 2. БАЗОВЫЕ СТИЛИ --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавная прокрутка */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
}

.container {
    width: 100%;
    max-width: 1200px; /* Оптимальная ширина для чтения */
    margin: 0 auto;
    padding: 0 20px;
}


/* --- 3. ШАПКА (Header) --- */
.header {
    background-color: var(--bg-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__img {
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.order-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.order-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- 4. SPEED CHECK (Проверка скорости) --- */
.speed-check {
    background-color: #2f3542;
    color: white;
    padding: 12px 0;
    font-size: 14px;
    position: relative;
    z-index: 900; /* Чуть ниже шапки */
}

.speed-check__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.speed-link {
    color: #7bed9f;
    text-decoration: none;
    border-bottom: 1px dashed #7bed9f;
    transition: 0.3s;
}

.speed-link:hover {
    color: white;
    border-color: white;
}

.contact-info .phone, 
.contact-info .address {
    margin-left: 20px;
    opacity: 0.9;
}

/* Адаптив для Speed Check */
@media (max-width: 600px) {
    .contact-info { display: none; } /* На телефонах скрываем телефон в этой полоске, чтобы влезла ссылка */
    .speed-check__inner { justify-content: center; }
}

/* --- 5. HERO (Главный экран) --- */
.hero {
    position: relative;
    height: 110vh; /* Делаем на всю высоту экрана */
    min-height: 600px;
    background: url('../images/Neft.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
    /* Растягиваем контент по высоте, чтобы раздвинуть элементы */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px; /* Сдвиг всего блока чуть вниз от самого верха */
}

.hero__title {
    font-size: 52px; /* Чуть крупнее */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Тень для читаемости */
}

.hero__subtitle {
    font-size: 22px;
    margin-bottom: 600px; /* БОЛЬШОЙ отступ до кнопки  <-- поменял*/ 
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    max-width: 700px;
}

.hero__btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 18px 50px; /* Кнопка помассивнее */
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.5); /* Красивая тень */
}

.hero__btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. ОБЩИЕ СТИЛИ СЕКЦИЙ --- */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
}
/* Полоска под заголовком */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- 7. ТАРИФЫ (Возвращаем яркий стиль) --- */
.tariffs {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.tariffs__category {
    font-size: 24px;
    margin: 40px 0 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
    color: var(--text-main);
}

.tariffs__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tariff {
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
    transition: var(--transition);
    color: white; /* Важно: текст белый на цветном фоне */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tariff:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Иконки и заголовки внутри карточки */
.tariff__icon {
    font-size: 45px;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tariff__name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: white;
}

.tariff__subtitle {
    font-size: 15px;
    color: rgb(208, 255, 0);
    margin-bottom: 20px;
    min-height: 40px; /* Чтобы карточки были одной высоты */
}

/* --- ЛЬГОТНЫЙ БЛОК --- */
.lgota-alert {
    background: linear-gradient(to right, #e0acac, #fff);
    border-left: 5px solid #ff0707; /* Желтая полоска слева */
    padding: 20px;
    margin: 20px 0 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
}

.lgota-alert__icon {
    font-size: 32px;
}

.lgota-alert__text {
    font-size: 16px;
    color: #ff0000;
    line-height: 1.4;
}

/* Цена */
.tariff__price {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.1); /* Легкая подложка под цену */
    padding: 10px;
    border-radius: 8px;
}

.tariff__old-price {
    text-decoration: line-through;
    font-size: 16px;
    opacity: 0.7;
    display: block; /* На новой строке или блоком */
    font-weight: 400;
}

.tariff__new-price {
    color: #ffeb3b; /* Желтый цвет для выгоды */
}

/* Список фич */
.tariff__features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: left;
    padding-left: 10px;
}

.tariff__features li {
    margin-bottom: 8px;
    font-size: 15px;
    color: white;
    display: flex;
    align-items: flex-start;
}

.tariff__features li::before {
    content: '✔'; /* Галочка */
    margin-right: 10px;
    font-weight: bold;
    color: rgba(255,255,255, 0.8);
}

/* Кнопка внутри тарифа */
.tariff__order-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    background: white;
    color: #333; /* Темный текст */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tariff__order-btn:hover {
    background: #f1f1f1;
    transform: scale(1.02);
}

/* Бейдж "Популярный" */
.special-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

/* === ГРАДИЕНТЫ (Твои цвета + немного улучшений) === */
.gradient-blue { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); }
.gradient-blue1 { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); }
.gradient-blue2 { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); }
.gradient-purple { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); }
.gradient-purple2 { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); }
.gradient-purple3 { background: linear-gradient(135deg, #305eac 0%, #223e61 100%); } /* Кабельное */
.gradient-green { background: linear-gradient(135deg, #003a36 0%, #2fc668 100%); }
.gradient-green2 { background: linear-gradient(135deg, #003a36 0%, #2fc668 100%); }
.gradient-dark { background: linear-gradient(135deg, #010f4b 0%, #245385 100%); }

/* --- 8. ПРЕИМУЩЕСТВА --- */
.advantages { padding: 80px 0; background-color: var(--bg-white); }
.advantages__list { display: flex; gap: 30px; flex-wrap: wrap; }
.advantage {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    transition: var(--transition);
}
.advantage:hover { background: white; box-shadow: var(--shadow-card); }
.advantage__icon img { width: 64px; height: 64px; margin-bottom: 20px; }
.advantage__title { font-size: 20px; margin-bottom: 15px; }

/* --- 9. О КОМПАНИИ --- */
.about {
    padding: 80px 0;
    background: linear-gradient(rgba(47, 53, 66, 0.9), rgba(47, 53, 66, 0.9)), url('../images/neftekamsk-bg.jpg') center/cover;
    color: white;
    text-align: center;
}
.about .section-title { color: white; }
.about .section-title::after { background-color: var(--accent-color); }
.about__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

/* --- 10. ПОДВАЛ () --- */
.footer { background-color: #2f3542; color: #dfe4ea; padding: 60px 0 20px; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer__title { color: white; font-size: 18px; margin-bottom: 20px; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; }
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 12px; }
.footer__list a { color: #a4b0be; text-decoration: none; transition: 0.3s; }
.footer__list a:hover { color: white; padding-left: 5px; }
.footer__bottom { border-top: 1px solid #57606f; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; color: #747d8c; }

/* --- 11. МОДАЛЬНЫЕ ОКНА --- */
.modal, .order-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Убрали backdrop-filter, сделали фон чуть темнее */
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 2000;
    align-items: center;
    justify-content: center;
    /* backdrop-filter: blur(5px); <--- ЭТОТ СТРОКИ БЫТЬ НЕ ДОЛЖНО */
}

.modal__content, .order-modal__content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal__close, .order-modal__close {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}
.modal__close:hover { color: var(--accent-color); }




/* --- ГАЛЕРЕЯ --- */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.gallery__grid {
    display: grid;
    /* Автоматическая сетка: минимум 250px ширины, иначе перенос */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery__item {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото не будет сплющиваться */
    transition: transform 0.5s ease;
}

/* Эффект при наведении */
.gallery__item:hover .gallery__img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}




/* --- ВАКАНСИИ --- */
.vacancies {
    padding: 80px 0;
    background-color: #f8f9fa; /* Чуть сероватый фон для разделения */
}

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

.vacancy-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vacancy-card__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.vacancy-card__info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.vacancy-card__desc {
    margin-bottom: 20px;
    font-size: 15px;
}

.vacancy-card__btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.vacancy-card__btn:hover {
    background-color: var(--primary-color);
    color: white;
}



/* --- FAQ --- */
.faq {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.faq__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    transition: all 0.3s;
}

.faq__item[open] {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.faq__question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Убираем стандартный треугольник */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Кастомный крестик/плюсик */
.faq__question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg); /* Превращаем плюс в крестик */
}

.faq__answer {
    padding: 0 20px 20px 20px;
    color: var(--text-light);
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
    animation: fadeIn 0.3s ease;
}



/* --- ШАГИ ПОДКЛЮЧЕНИЯ --- */
.steps {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.steps__list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.step-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-item__number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.step-item__title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-item__text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Линия, соединяющая шаги (видна только на больших экранах) */
@media (min-width: 992px) {
    .step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px; /* Половина высоты круга + отступ сверху */
        right: -50%;
        width: 100%;
        height: 2px;
        background-color: #e1e1e1;
        z-index: 1;
    }
}


/* --- ПАРТНЕРЫ / КАНАЛЫ --- */
.partners {
    padding: 60px 0;
    background-color: white;
}

.partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.channel-logo {
    width: 120px;
    height: 80px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    color: #555;
    border: 1px solid #eee;
    font-size: 14px;
    user-select: none;
    /* Если будут картинки, то просто убери стили текста и поставь object-fit */
}

.channel-logo img {
    max-width: 80%;   /* Картинка не больше 80% от квадратика */
    max-height: 80%;  /* Чтобы не вылезала по высоте */
    object-fit: contain; /* Сохраняет пропорции */
}

/* Пример, если захочешь раскрасить их без картинок */
.channel-logo:nth-child(odd) { background-color: #eef2f3; }


/* --- МЕСТНЫЕ КАНАЛЫ (Highlight) --- */
.local-channels-block {
    background-color: #f0f8ff; /* Очень светлый голубой фон */
    border: 2px solid var(--primary-color); /* Синяя рамка */
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px; /* Отступ от обычных каналов */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Декоративный блик */
.local-channels-block::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.local-channels-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
}

.local-channels-header p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.local-channels-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.local-channel-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s;
}

.local-channel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.local-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.local-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.local-name {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}


/* Плавающая кнопка */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #01758a; /* Цвет WhatsApp или просто зеленый */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999; /* Чтобы была поверх всего */
    animation: pulse 2s infinite;
}

.float-btn:hover {
    background-color: #20afb9;
    transform: scale(1.1);
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 144, 163, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* --- Кнопка QR-кода --- */
.qr-btn {
    display: inline-block;        /* Кнопка по размеру текста, не на всю ширину */
    background: var(--accent-color); /* Яркий акцентный цвет (красно-розовый) */
    color: white;                 /* Белый текст */
    border: none;
    padding: 10px 24px;           /* Чуть меньше отступы, чем у огромных кнопок */
    font-size: 14px;              /* Аккуратный шрифт */
    font-weight: 700;
    border-radius: 50px;          /* Закругленная */
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4); /* Цветная тень */
    margin-top: 15px;             /* Отступ сверху */
}

.qr-btn:hover {
    background: var(--accent-dark); /* Темнеет при наведении */
    transform: translateY(-2px);    /* Всплывает */
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.6);
}


/* --- МОБИЛЬНОЕ МЕНЮ --- */

/* Скрываем бургер на больших экранах */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2000; /* Поверх всего */
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Медиа-запрос для телефонов и планшетов (до 768px) */
@media (max-width: 768px) {
    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }

    /* Кнопку "Заказать" в шапке лучше скрыть на мобильном, 
       чтобы не мешалась (она есть в меню или внизу плавающая) 
       ИЛИ переместить её в меню. Пока скроем для простоты: */
    .header .order-btn {
        display: none; 
    }

    /* Превращаем меню в выпадающий список */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Спрятано справа за экраном */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center; /* Центрируем ссылки */
        align-items: center;
        transition: 0.4s ease;
        padding: 20px;
        z-index: 1500;
    }

    /* Класс, который добавляем JS-ом для открытия */
    .nav.active {
        right: 0;
    }

    .nav__link {
        font-size: 20px;
        margin-bottom: 20px; /* Отступы между ссылками */
        display: block;
    }

    /* Анимация крестика при открытии */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* --- УСЛУГИ --- */
.services {
    padding: 80px 0;
    background-color: #f8f9fa; /* Чуть сероватый фон для контраста */
}

.services__list {
    display: grid;
    /* Автоматическая сетка, как в тарифах */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-color); /* Синяя полоска снизу */
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service p {
    color: var(--text-light);
    font-size: 15px;
}


/* --- СЕКЦИЯ ОПЛАТЫ (Новый дизайн) --- */
.payment {
    padding: 80px 0;
    background-color: var(--bg-body); /* Светло-серый фон страницы */
}

.payment__list {
    display: grid;
    /* Автоматическая сетка: 2 колонки на ПК, 1 на телефоне */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.payment__item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px; /* Сильное скругление */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Легкая тень */
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Эффект при наведении */
.payment__item:hover {
    transform: translateY(-10px); /* Карточка взлетает */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

/* Красивый кружок для иконки */
.payment__icon {
    width: 80px;
    height: 80px;
    background-color: #f0f4f8; /* Очень светло-синий фон */
    border-radius: 50%; /* Круг */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px; /* Размер смайлика */
    margin-bottom: 25px;
    transition: 0.3s;
}

.payment__item:hover .payment__icon {
    background-color: var(--primary-color); /* При наведении круг синеет */
    color: white; /* А смайлик (если бы это был шрифт) белеет, но эмодзи останутся цветными */
    transform: rotate(10deg); /* Игривый поворот */
}

.payment__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.payment__text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Особый стиль для карточки с QR (Акцент) --- */
.payment__item--accent {
    border: 2px solid var(--primary-color); /* Синяя рамка */
    background: linear-gradient(to bottom, #ffffff, #fbfdff);
}



/* --- ЗОНА ПОКРЫТИЯ (КАРТА) --- */
.coverage {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Обертка карты */
.coverage-map-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden; /* Чтобы углы карты скруглились */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #eee; /* Цвет, пока карта грузится */
    position: relative;
}

/* Легенда над картой */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.legend-color {
    width: 30px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 4px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .coverage-map-wrapper {
        height: 350px; /* На телефоне карту делаем пониже */
    }
    
    .map-legend {
        gap: 15px;
        flex-direction: column; /* Элементы легенды друг под другом */
        align-items: center;
    }
}



/* --- ДОКУМЕНТЫ --- */
.documents {
    padding: 80px 0;
    background-color: white;
}

.documents__grid {
    display: grid;
    /* Адаптивная сетка: от 1 до 4 колонок в зависимости от экрана */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.doc-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-item:hover {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.doc-item__icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}

.doc-item__info {
    display: flex;
    flex-direction: column;
}

.doc-item__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 5px;
}

.doc-item__size {
    font-size: 13px;
    color: #999;
}



/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Скрыт внизу по умолчанию */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 9999; /* Поверх всего */
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0; /* Выезжает наверх */
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    font-size: 14px;
    color: var(--text-main);
    flex: 1;
}

.cookie-banner__btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }
}





/* --- ЛИЧНЫЙ КАБИНЕТ (КНОПКА-ССЫЛКА) --- */
.cabinet-btn {
    text-decoration: none; /* Убираем подчеркивание ссылки */
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px; /* Отступ от кнопки Заказать */
    transition: all 0.3s ease;
    
    /* Выравнивание иконки и текста */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    line-height: 1; /* Чтобы текст стоял ровно по центру */
}

.cabinet-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.cabinet-icon {
    font-size: 16px;
}

/* Адаптив: на телефонах скрываем текст "ЛК", оставляем иконку */
@media (max-width: 480px) {
    .cabinet-text {
        display: none;
    }
    .cabinet-btn {
        padding: 8px;     /* Делаем квадратной/круглой */
        width: 36px;      /* Фиксируем ширину */
        height: 36px;
        border-radius: 50%; /* Круг */
        margin-right: 10px;
    }
    .cabinet-icon {
        font-size: 18px; /* Иконку чуть крупнее */
    }
}


/* Цвет звездочки в ценах и в сноске */
.tariff__asterisk {
    color: #ffeb3b; /* Тот самый желтый цвет, который ты просил */
    font-weight: bold;
    margin-left: 2px;
}

/* Стиль самой сноски под списком тарифов */
.tariff__footnote {
    font-size: 13px;
    color: #555555; /* Тёмно-серый цвет для читаемости на белом фоне */
    margin-top: 15px;
    margin-bottom: 30px;
    padding-left: 5px;
    line-height: 1.4;
    max-width: 800px;
}

/* Чтобы на мобилках сноска не прилипала к краям */
@media (max-width: 768px) {
    .tariff__footnote {
        text-align: center;
        padding: 0 10px;
    }
}


/* === Падающий снег === */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
}