:root {
    --bg-main: #f5ebd5; /* Теплый песчаный ковбойский фон */
    --primary: #b45309; /* Кожаный благородный коричнево-янтарный */
    --secondary: #166534; /* Кактусовый темно-зеленый */
    --accent: #c2410c; /* Терракотовый */
    --text-dark: #292524; /* Угольно-черный для текста */
    --card-light: #fffbeb; /* Мягкий кремовый пергамент */
    --gold: #eab308; /* Золото прерий */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

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

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

/* ==========================================================================
   🤠 НАВИГАЦИОННАЯ ПАНЕЛЬ С БУРГЕРОМ (FLAT)
   ========================================================================== */
header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 20px auto;
    width: 98%;
    max-width: 1400px;
}

.navbar {
    position: relative; /* Важно для точного позиционирования выпадающего бургер-меню */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--text-dark);
    padding: 12px 15px;
    border-radius: 50px;
    border: 4px solid var(--text-dark);
    gap: 15px;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--gold);
    border: 3px solid var(--text-dark);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li {
    display: inline-flex;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 10px 16px;
    border: 3px solid var(--text-dark);
    border-radius: 25px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ЯРКИЕ ЦВЕТА ДЛЯ КНОПОК МЕНЮ */
.nav-links li:nth-child(1) a { background: #facc15; }
.nav-links li:nth-child(2) a { background: #fb923c; }
.nav-links li:nth-child(3) a { background: #f87171; }
.nav-links li:nth-child(4) a { background: #2dd4bf; }
.nav-links li:nth-child(5) a { background: #a78bfa; }
.nav-links li:nth-child(6) a { background: #4ade80; }
.nav-links li:nth-child(7) a { background: #60a5fa; }

.nav-links a:hover {
    transform: translateY(-3px) rotate(-1deg) scale(1.03);
    filter: brightness(1.05);
}

/* Элементы управления бургер-меню */
#menu-toggle {
    display: none;
}

.burger-icon {
    display: none; /* Скрыт на десктопах */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: var(--gold);
    border: 3px solid var(--text-dark);
    padding: 12px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
}

.burger-icon span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   🚂 СТИЛЬНАЯ ИНТЕРАКТИВНАЯ СЕТКА ЗЕРКАЛ (4х2)
   ========================================================================== */
.mirror-section {
    background: #fffbeb !important;
}

.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ровно 4 колонки на ПК */
    gap: 20px;
    margin-top: 35px;
}

.mirror-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 15px;
    background: #ffffff;
    border: 4px solid var(--text-dark);
    border-radius: 20px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

/* Разные сочные цвета при наведении на зеркала */
.mirror-item:nth-child(4n+1):hover { background: #fb923c; color: white; }
.mirror-item:nth-child(4n+2):hover { background: #2dd4bf; color: var(--text-dark); }
.mirror-item:nth-child(4n+3):hover { background: #a78bfa; color: white; }
.mirror-item:nth-child(4n+4):hover { background: #4ade80; color: var(--text-dark); }

.mirror-item:hover {
    transform: translateY(-5px) scale(1.04) rotate(1deg);
    border-color: var(--text-dark);
}

/* ==========================================================================
   КОНТЕНТНЫЕ БЛОКИ 
   ========================================================================== */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    max-width: 850px;
    margin: 0 auto 45px auto;
    color: #451a03;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 20px 45px;
    border-radius: 40px;
    font-weight: 900;
    font-size: 18px;
    text-decoration: none;
    border: 4px solid var(--text-dark);
    transition: all 0.2s ease;
    text-align: center;
}

.btn-main { background: var(--accent); color: #ffffff; }
.btn-main:hover { background: #a32a00; transform: translateY(-3px); }
.btn-accent { background: var(--secondary); color: #ffffff; }
.btn-accent:hover { background: #14532d; transform: translateY(-3px); }

section { padding: 50px 0; }
.section-title { text-align: center; font-size: 2.8rem; font-weight: 900; margin-bottom: 45px; color: var(--text-dark); }
.section-title span { color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.info-block { background: var(--card-light); border-radius: 30px; padding: 45px; border: 4px solid var(--text-dark); }
.info-text { font-size: 1.25rem; color: var(--text-dark); font-weight: 600; text-align: justify; }

.connect-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.step-card { background: #ffffff; border-radius: 30px; padding: 45px 30px; text-align: center; position: relative; border: 4px solid var(--text-dark); transition: all 0.2s ease; }
.step-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.step-num { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 65px; height: 65px; background: var(--gold); border: 4px solid var(--text-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.step-card h3 { margin-top: 20px; font-size: 22px; margin-bottom: 15px; color: var(--text-dark); font-weight: 900; }

.interactive-card { background: #ffffff; border-radius: 30px; padding: 45px; border: 4px solid var(--text-dark); text-align: center; margin-bottom: 20px; }
.interactive-card h3 { font-size: 26px; margin-bottom: 20px; color: var(--text-dark); font-weight: 900; }
.interactive-card p { font-size: 1.1rem; color: #44403c; margin-bottom: 35px; font-weight: 600; }

.devices-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.device-box { background: var(--card-light); border: 4px solid var(--text-dark); border-radius: 30px; padding: 25px; text-align: center; font-weight: 800; font-size: 15px; color: var(--text-dark); transition: all 0.2s ease; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.device-box:hover { background: var(--gold); transform: scale(1.03); }
.device-icon { font-size: 50px; display: block; margin-bottom: 15px; }

.setup-container { background: #fffbeb; border-radius: 30px; padding: 45px; border: 4px solid var(--text-dark); }
.setup-list { list-style: none; }
.setup-list li { font-size: 1.15rem; margin-bottom: 25px; padding-left: 45px; position: relative; font-weight: 600; }
.setup-list li::before { content: "🌵"; position: absolute; left: 0; top: 2px; font-size: 22px; }

.single-tariff { max-width: 550px; margin: 0 auto; background: var(--gold); border: 5px solid var(--text-dark); border-radius: 40px; padding: 50px 40px; text-align: center; }
.tariff-price { font-size: 5rem; font-weight: 900; color: var(--accent); line-height: 1; margin: 20px 0; }
.tariff-price span { font-size: 1.8rem; color: var(--text-dark); font-weight: 800; }
.tariff-features { list-style: none; margin: 35px 0; text-align: left; display: inline-block; }
.tariff-features li { font-size: 1.2rem; font-weight: 800; margin: 15px 0; color: var(--text-dark); }

.payment-methods { background: #f0fdf4; border: 4px solid var(--text-dark); border-radius: 30px; padding: 45px; text-align: center; }
.payment-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 35px; }
.payment-badge { background: white; padding: 16px 30px; border-radius: 20px; font-weight: 800; font-size: 17px; border: 3px solid var(--text-dark); color: var(--text-dark); }

footer { background: var(--text-dark); color: #ffffff; text-align: center; padding: 50px 0; margin-top: 70px; border-radius: 30px 30px 0 0; }
footer h3 { font-size: 20px; font-weight: 900; }
footer p { opacity: 0.7; font-size: 14px; margin-top: 15px; font-weight: 500; }

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ
   ========================================================================== */
@media (max-width: 1100px) {
    /* Включаем Бургер-меню заранее, чтобы длинные кнопки не ломали верстку */
    .burger-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        display: none; /* Скрываем выпадающий список */
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        background: var(--text-dark);
        border: 4px solid var(--text-dark);
        border-radius: 25px;
        box-sizing: border-box;
        z-index: 999;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 15px;
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    /* Логика открытия меню при клике на бургер */
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    /* Анимация иконки бургера при активации */
    #menu-toggle:checked ~ .burger-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #menu-toggle:checked ~ .burger-icon span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .burger-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 992px) {
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Сетка зеркал перестраивается в 2 столбца и 4 строчки для удобства тапов */
    .mirrors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

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