:root {
    --bg-main: #fffcf0; /* Веселый теплый светло-желтый фон */
    --primary: #ff4757; /* Сочный коралловый */
    --secondary: #2ed573; /* Яркий салатовый */
    --accent: #1e90ff; /* Насыщенный синий */
    --text-dark: #2f3542; /* Мягкий темный для отличной читаемости */
    --card-yellow: #fff275;
    --card-cyan: #70a1ff;
    --card-orange: #ffa502;
    --shadow: 0 8px 24px rgba(255, 71, 87, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, 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;
}

/* КРАСИВОЕ ПЛАВАЮЩЕЕ ВЕРХНЕЕ МЕНЮ */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 15px;
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 12px 35px rgba(255, 71, 87, 0.12);
    border: 2px solid var(--primary);
    margin: 15px auto;
    width: 92%;
    max-width: 1200px;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 25px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, #ffa502, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: 20px;
    position: relative;
}

/* Эффектная линия при наведении */
.nav-links li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links li:not(:last-child) a:hover::after {
    width: 70%;
}

.nav-links li:not(:last-child) a:hover {
    color: var(--primary);
}

/* Кнопка Личного Кабинета в меню */
.nav-links .btn-lk-nav {
    background: linear-gradient(135deg, var(--secondary), #22c55e);
    color: white;
    box-shadow: 0 6px 15px rgba(46, 213, 115, 0.3);
    padding: 10px 22px;
    border-radius: 25px;
}

.nav-links .btn-lk-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 213, 115, 0.5);
    color: white;
}

#menu-toggle {
    display: none;
}

.burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-icon span {
    display: block;
    width: 26px;
    height: 3.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
    padding: 80px 0 60px 0;
    text-align: center;
    background: radial-gradient(circle at center, #fff9db 0%, var(--bg-main) 70%);
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: #ff4757;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #ffffff, 5px 5px 0px rgba(0,0,0,0.05);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #57606f;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.btn-main {
    background: linear-gradient(135deg, var(--primary), #ff6b81);
    color: #ffffff;
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #70a1ff);
    color: #ffffff;
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.4);
}

/* СТИЛИ СЕКЦИЙ */
section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: #2f3542;
}

.section-title span {
    color: var(--primary);
}

/* 1. ИНФОРМАЦИЯ */
.info-block {
    background: linear-gradient(135deg, #e3fafc, #eef5ff);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow);
    border: 4px solid #70a1ff;
}

.info-text {
    font-size: 1.2rem;
    color: #57606f;
    font-weight: 500;
    text-align: justify;
}

/* 2. КАК ПОДКЛЮЧИТЬ */
.connect-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 3px solid #ffa502;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-num {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--card-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.step-card h3 {
    margin-top: 15px;
    font-size: 22px;
    margin-bottom: 15px;
    color: #2f3542;
}

/* 3. ЛИЧНЫЙ КАБИНЕТ И ЗЕРКАЛО */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.interactive-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 4px solid var(--secondary);
    text-align: center;
}

.interactive-card.mirror {
    border-color: var(--accent);
}

.interactive-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #2f3542;
}

.interactive-card p {
    font-size: 1.1rem;
    color: #57606f;
    margin-bottom: 30px;
}

/* БЛОК: ГДЕ РАБОТАЕТ (5 КВАДРАТОВ) */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.device-box {
    background: #fff3cd;
    border: 3px dashed #ffa502;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #2f3542;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.device-box:hover {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
    color: white;
    border-style: solid;
    border-color: transparent;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 165, 2, 0.3);
}

.device-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

/* 5. НАСТРОЙКА */
.setup-container {
    background: #f1f2f6;
    border-radius: 30px;
    padding: 45px;
    border: 3px solid #747d8c;
}

.setup-list {
    list-style: none;
}

.setup-list li {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
    font-weight: 500;
}

.setup-list li::before {
    content: "⚙️";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 20px;
}

/* 6. ТАРИФ */
.single-tariff {
    max-width: 550px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff275, #fffa65);
    border: 5px solid #ff4757;
    border-radius: 35px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(255, 71, 87, 0.3);
    animation: pulse 3s infinite alternate;
}

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

.tariff-price {
    font-size: 5rem;
    font-weight: 900;
    color: #ff4757;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 3px 3px 0 #ffffff;
}

.tariff-price span {
    font-size: 1.8rem;
    color: #2f3542;
    font-weight: 700;
}

.tariff-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
    display: inline-block;
}

.tariff-features li {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 12px 0;
    color: #2f3542;
}

.tariff-features li::before {
    content: "🔥 ";
}

/* 7. ОПЛАТА */
.payment-methods {
    background: #e8f5e9;
    border: 4px solid var(--secondary);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
}

.payment-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.payment-badge {
    background: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #a4b0be;
    color: #57606f;
}

/* ФУТЕР */
footer {
    background: #2f3542;
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    font-weight: 600;
}

footer p {
    opacity: 0.8;
    font-size: 14px;
    margin-top: 10px;
}

/* АДАПТИВНОСТЬ ДЛЯ МЕНЮ И КВАДРАТОВ */
@media (max-width: 992px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
        top: 10px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .burger-icon {
        display: flex;
    }

    /* Адаптивное выпадающее бургер-меню */
    .nav-links {
        position: absolute;
        top: 75px;
        left: -105%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 24px;
        flex-direction: column;
        padding: 30px 0;
        gap: 15px;
        transition: left 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border: 2px solid var(--primary);
    }

    .nav-links a {
        font-size: 18px;
        width: 80%;
        text-align: center;
    }

    #menu-toggle:checked ~ .nav-links {
        left: 0;
    }

    #menu-toggle:checked ~ .burger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    #menu-toggle:checked ~ .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .burger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

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