/* =========================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 25%, #ffeaa7 50%, #fab1a0 75%, #ff7675 100%);
    background-attachment: fixed;
    color: #2d3436;
    line-height: 1.6;
    padding-bottom: 0;
}

/* =========================================
   ШАПКА САЙТА (HEADER) И НАВИГАЦИЯ (ВЫРАВНИВАНИЕ ПО ЦЕНТРУ)
   ========================================= */
.header {
    background: rgba(255, 234, 167, 0.95);
    padding: 15px 5%;
    display: flex;
    flex-direction: column; /* Элементы выстраиваются вертикально для центрирования */
    justify-content: center;
    align-items: center;
    gap: 15px; /* Зазор между логотипом и меню */
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid #fdcb6e;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    color: #6c5ce7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 0px #ffeaa7;
}

.logo-icon {
    width: 45px;
    height: 45px;
    animation: spin 6s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Чтобы пункты аккуратно переносились на промежуточных экранах */
    gap: 12px;
}

.nav-menu a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
}

.nav-menu a:hover {
    background: #6c5ce7;
    color: #fff;
    transform: translateY(-2px);
}

.burger-toggle { display: none; }
.burger-icon { display: none; }

/* =========================================
   ВЕРХНИЙ ПРОМО-БЛОК
   ========================================= */
.hero-banner {
    max-width: 1100px;
    margin: 30px auto 10px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 3px dashed #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.promo-line {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin: 0 auto;
    padding: 10px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.line-1 {
    font-size: 28px;
    background: linear-gradient(45deg, #ff007f, #ff7675);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: pulseText 2s infinite ease-in-out;
}

.line-2 {
    font-size: 22px;
    background: #ffeaa7;
    color: #d63031;
    border: 2px solid #ff7675;
}

.line-3 {
    font-size: 20px;
    background: #55efc4;
    color: #2d3436;
    font-weight: 800;
}

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

/* =========================================
   ОСНОВНОЙ КОНТЕНТ (ГОРИЗОНТАЛЬНЫЕ БЛОКИ)
   ========================================= */
.main-container {
    max-width: 1100px;
    margin: 20px auto 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.horizontal-block {
    display: flex;
    align-items: center;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.horizontal-block:hover {
    transform: scale(1.01) translateY(-3px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.25);
}

/* Градиенты блоков */
#info { background: linear-gradient(90deg, #74b9ff 0%, #81ecec 100%); }
#connect { background: linear-gradient(90deg, #a29bfe 0%, #74b9ff 100%); }
#account { background: linear-gradient(90deg, #ffeaa7 0%, #fab1a0 100%); }
#mirrors { background: linear-gradient(90deg, #ff7675 0%, #fd79a8 100%); }
#where { background: linear-gradient(90deg, #55efc4 0%, #81ecec 100%); }
#setup { background: linear-gradient(90deg, #fab1a0 0%, #ffeaa7 100%); }
#tariff { background: linear-gradient(90deg, #ff9f43 0%, #ff6b6b 100%); border: 4px solid #ee5253; }
#payment { background: linear-gradient(90deg, #00cec9 0%, #55efc4 100%); }

.block-aside {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 30px;
    border-right: 2px dashed rgba(45, 52, 54, 0.2);
}

.block-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 12px;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1));
}

.block-aside h2 {
    font-size: 22px;
    font-weight: 800;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-content {
    flex: 1;
    padding-left: 30px;
}

.block-content p {
    font-size: 16px;
    font-weight: 500;
    color: #2d3436;
    text-shadow: 0 1px 0px rgba(255,255,255,0.4);
    margin-bottom: 12px;
    text-align: justify;
}

.block-content p:last-child {
    margin-bottom: 0;
}

.block-content strong {
    color: #6c5ce7;
    font-weight: 900;
}

.tariff-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    border: 2px solid rgba(255,255,255,0.5);
}

.price-tag {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    background: #d63031;
    padding: 5px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(214, 48, 49, 0.4);
    text-shadow: none;
}

/* =========================================
   ИНТЕРАКТИВНЫЕ КНОПКИ
   ========================================= */
.interactive-btn-wrapper { margin-top: 15px; text-align: center; }

.interactive-btn {
    display: inline-block;
    padding: 16px 36px;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mirror-btn {
    background: linear-gradient(45deg, #00ecbc 0%, #007ad6 100%);
    box-shadow: 0 0 0 0 rgba(0, 236, 188, 0.7);
    animation: pulseGlowMirror 2s infinite;
}
.mirror-btn:hover {
    transform: scale(1.06) rotate(-1deg);
    background: linear-gradient(45deg, #ff007f 0%, #7928ca 100%);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.4);
}

.connect-btn {
    background: linear-gradient(45deg, #ff9f43 0%, #ff6b6b 100%);
    box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7);
    animation: pulseGlowConnect 2.2s infinite;
}
.connect-btn:hover {
    transform: scale(1.06) rotate(1deg);
    background: linear-gradient(45deg, #10ac84 0%, #05c46b 100%);
    box-shadow: 0 8px 25px rgba(16, 172, 132, 0.4);
}

@keyframes pulseGlowMirror {
    0% { box-shadow: 0 0 0 0 rgba(0, 236, 188, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(0, 236, 188, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 236, 188, 0); }
}
@keyframes pulseGlowConnect {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(255, 159, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); }
}

/* =========================================
   ПОДВАЛ (FOOTER) И СОЦИАЛЬНЫЕ СЕТИ
   ========================================= */
.footer {
    background: rgba(255, 234, 167, 0.95);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 4px solid #fdcb6e;
}

.footer h3 {
    font-size: 22px;
    color: #6c5ce7;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-link {
    width: 65px;
    height: 65px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); 
}

.social-link svg {
    width: 36px;
    height: 36px;
    transition: all 0.4s ease;
}

.vk-link svg { fill: #0984e3; }
.tg-link svg { fill: #00b894; }
.ok-link svg { fill: #ff7675; }

.social-link:hover {
    transform: scale(1.15) translateY(-6px);
    border-color: #ffffff;
}

.social-link:hover svg {
    fill: #ffffff;
    transform: scale(1.1);
}

.social-link.vk-link:hover {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    box-shadow: 0 12px 25px rgba(9, 132, 227, 0.4);
}

.social-link.tg-link:hover {
    background: linear-gradient(135deg, #00cec9, #00b894);
    box-shadow: 0 12px 25px rgba(0, 184, 148, 0.4);
}

.social-link.ok-link:hover {
    background: linear-gradient(135deg, #ff9f43, #ff7675);
    box-shadow: 0 12px 25px rgba(255, 118, 117, 0.4);
}

/* =========================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
   ========================================= */
@media (max-width: 850px) {
    .header {
        flex-direction: row; /* На мобильных возвращаем в строку для корректной работы бургер-меню */
        justify-content: space-between;
    }

    .burger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        cursor: pointer;
        z-index: 1001;
    }

    .burger-icon span {
        display: block;
        height: 4px;
        width: 100%;
        background-color: #6c5ce7;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffeaa7;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        border-left: 4px solid #fdcb6e;
    }

    .nav-menu a {
        font-size: 18px;
        padding: 12px;
        text-align: center;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(0,0,0,0.05);
        width: 100%;
    }

    .burger-toggle:checked ~ .nav-menu { right: 0; }
    .burger-toggle:checked ~ .burger-icon span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-toggle:checked ~ .burger-icon span:nth-child(2) { opacity: 0; }
    .burger-toggle:checked ~ .burger-icon span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .horizontal-block {
        flex-direction: column;
        padding: 25px;
    }

    .block-aside {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px dashed rgba(45, 52, 54, 0.2);
        padding-bottom: 15px;
        margin-bottom: 15px;
        width: 100%;
        flex: none;
    }

    .block-content { padding-left: 0; }
    .block-content p { text-align: left; }

    .tariff-box {
        flex-direction: column;
        gap: 15px;
    }

    .line-1 { font-size: 20px; }
    .line-2 { font-size: 16px; }
    .line-3 { font-size: 15px; }
}