/* Палитра Google Material Design */
:root {
    --bg-main: #e3f2fd;
    --header-bg: #1a73e8;
    --text-dark: #202124;
    --text-light: #f8f9fa;
    
    /* Цвета карточек */
    --card-blue: #bbdefb;
    --card-red: #ffcdd2;
    --card-yellow: #fff59d;
    --card-green: #c8e6c9;
    --card-purple: #e1bee7;
    --card-orange: #ffe082;
    --card-cyan: #b2ebf2;
    --card-teal: #e0f2f1;
    
    /* Акценты */
    --google-blue: #1a73e8;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
    
    /* Фирменный цвет Volet */
    --volet-color: #cff145;
    --volet-hover: #beed18;
    --volet-dark-text: #1a2200;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Центрирование всех заголовков */
h1, h2, h3 {
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-dark);
    text-align: center;
}

/* ================================
   ШАПКА (HEADER) И НАВИГАЦИЯ
   ================================ */
header {
    background-color: var(--header-bg);
    padding: 12px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Выравнивание логотипа и меню в одну строку по центру */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--google-yellow);
    font-size: 24px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Навигационные ссылки */
nav a {
    text-decoration: none;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 9px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a i {
    font-size: 13px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Фирменная кнопка Volet в меню */
nav a.nav-volet-btn {
    background-color: var(--volet-color);
    color: var(--volet-dark-text);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(207, 241, 69, 0.4);
}

nav a.nav-volet-btn:hover {
    background-color: var(--volet-hover);
    color: var(--volet-dark-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(207, 241, 69, 0.6);
}

/* Бургер-меню для мобильных устройств */
.burger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-light);
    background: none;
    border: none;
}

/* Сетка контента */
main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Баннеры */
.top-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.banner {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 16px;
    border-radius: 16px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: pulse 2.5s infinite;
}

.banner-primary {
    background: linear-gradient(135deg, #ff4081, #ff9100);
}

.banner-secondary {
    background: linear-gradient(135deg, #2979ff, #00e5ff);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* Карточки секций */
section {
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: box-shadow 0.3s;
    scroll-margin-top: 80px;
}

section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.1);
}

section p {
    text-align: justify;
}

/* Заголовки секций */
.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Цвета секций */
#info { background-color: var(--card-blue); }
#connect { background-color: var(--card-red); }
#mirrors { background-color: var(--card-green); }
#devices { background-color: var(--card-purple); }
#cabinet { background-color: var(--card-yellow); }
#setup { background-color: var(--card-orange); }
#tariff { background-color: var(--card-cyan); text-align: center; }
#payment { background-color: var(--card-blue); }
#tv-boxes { background-color: var(--card-teal); }

/* Иконки круглые в заголовках */
.material-icon {
    font-size: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.08);
}

/* Шаги подключения и настройки */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.step-icon {
    font-size: 24px;
    line-height: 1;
    color: var(--google-blue);
}

.step-text {
    font-size: 16px;
}

/* Сетка устройств */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.device-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.device-card h3 {
    text-align: center;
    color: var(--google-blue);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.device-card ul {
    list-style-type: none;
    padding: 0;
}

.device-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.device-card ul li::before {
    content: "•";
    color: var(--google-blue);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -4px;
}

/* ТВ приставки - преимущества */
.advantages-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.advantages-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Сетка зеркал */
.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mirror-chip {
    background-color: var(--google-green);
    color: var(--text-light);
    padding: 12px;
    text-align: center;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mirror-chip:hover {
    background-color: #2d9047;
    transform: translateY(-2px);
}

/* Тарифный бейдж */
.price-badge {
    font-size: 64px;
    font-weight: 700;
    color: var(--google-red);
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 40px;
    border-radius: 40px;
}

/* Контейнеры кнопок */
.cta-container {
    text-align: center;
    margin-top: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--google-blue);
    color: var(--text-light);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.action-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.4);
}

.buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-tv-box { background-color: var(--google-blue); }
.btn-top-tv-box { background-color: var(--google-red); box-shadow: 0 4px 6px rgba(234, 67, 53, 0.3); }
.btn-top-tv-box:hover { background-color: #c5221f; box-shadow: 0 6px 12px rgba(234, 67, 53, 0.4); }

/* --- Блок рекомендации Volet --- */
.volet-recommendation-block {
    background: #ffffff;
    border: 2px solid var(--volet-color);
    border-left: 6px solid #b2d625;
    padding: 24px;
    margin: 24px 0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.volet-title {
    font-size: 18px;
    font-weight: 700;
    color: #2e3b00;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volet-title i {
    color: #a1d600;
    font-size: 22px;
}

.volet-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3500;
    text-align: left;
}

/* Фирменная салатовая кнопка Volet (#cff145) */
.volet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--volet-color);
    color: var(--volet-dark-text);
    font-size: 17px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(178, 214, 37, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.volet-btn:hover {
    background-color: var(--volet-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(178, 214, 37, 0.6);
}

/* --- Стили для страницы 404 --- */
.error-container {
    background-color: var(--card-blue);
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.error-code {
    font-size: 96px;
    font-weight: 900;
    color: var(--google-red);
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
}

.error-icon {
    font-size: 48px;
    color: var(--google-blue);
    margin-bottom: 20px;
}

.error-container h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.error-container p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.error-links {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px dashed rgba(0,0,0,0.1);
}

.error-links h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Подвал */
footer {
    background-color: #cfd8dc;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn i {
    font-size: 18px;
}

.social-btn.vk { background-color: #0077FF; }
.social-btn.tg { background-color: #229ED9; }
.social-btn.ok { background-color: #F97400; }

.social-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1250px) {
    .header-container {
        justify-content: space-between;
    }
    .burger {
        display: block;
    }
    nav {
        width: 100%;
        display: none;
        margin-top: 16px;
    }
    nav.active {
        display: flex;
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    nav a {
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }
    nav a.nav-volet-btn {
        background-color: var(--volet-color);
        color: var(--volet-dark-text);
        margin-top: 4px;
    }
}

@media (max-width: 900px) {
    .mirrors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 12px;
    }
    section p {
        text-align: left;
    }
    .mirrors-grid, .devices-grid {
        grid-template-columns: 1fr;
    }
    .banner {
        font-size: 16px;
        padding: 12px;
    }
    .error-code {
        font-size: 72px;
    }
}