:root {
    /* Веселая и красочная палитра в синих и голубых тонах */
    --bg-main: #bae6fd;       
    --bg-card: #7dd3fc;       
    --bg-alt: #93c5fd;        
    --bg-blue: #38bdf8;       
    --accent: #2563eb;        
    --accent-light: #dbeafe;  
    --text-main: #082f49;     
    --text-muted: #0369a1;    
    --border-color: rgba(3, 105, 161, 0.2); 
    --shadow-color: rgba(37, 99, 235, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: 'Nunito', sans-serif; 
}

/* =========================================
   ВЫРАВНИВАНИЕ ТЕКСТА ПО ШИРИНЕ
   ========================================= */
.content-block p,
.step-card p,
.alert-box p,
.devices-grid p,
.payment-card p,
.final-cta p,
.error-desc {
    text-align: justify;
    text-justify: inter-word;
}

/* Навигация */
header {
    position: sticky;
    top: 0;
    background-color: rgba(125, 211, 252, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    flex-wrap: wrap; /* Добавлено для корректного отображения */
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-menu {
    display: flex;
    gap: 15px; /* Уменьшено с 20px для вместимости нового пункта */
    list-style: none;
    flex-wrap: wrap; /* Добавлено для корректного переноса на малых экранах */
    justify-content: center;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.nav-menu a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Главный экран */
.hero {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title-new {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    filter: drop-shadow(3px 5px 5px rgba(124, 58, 237, 0.2));
}

.hero-subtitle-new {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    background: var(--bg-card);
    padding: 15px 30px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 45px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    border: 3px dashed var(--accent);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-blue {
    background-color: var(--accent);
    color: var(--accent-light); 
    box-shadow: 0 8px 20px var(--shadow-color);
}

.btn-blue:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* Секции общие */
section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 3px;
}

.content-block {
    width: 100%;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--bg-blue);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 22px;
}

/* Карточки регионов */
.regions-box {
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.alert-box {
    background: var(--bg-main);
    border-left: 6px solid var(--accent);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(3, 105, 161, 0.1);
}

/* Блок перечисления зеркал */
.mirror-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.mirror-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mirror-link:hover {
    border-color: var(--accent);
    background-color: var(--bg-main);
    color: var(--accent);
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 0 6px 15px rgba(3, 105, 161, 0.15);
}

.mirror-link i {
    font-size: 16px;
}

/* Таблица подключения */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.connect-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-blue);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.connect-table th, .connect-table td {
    padding: 18px 20px;
    text-align: left;
    font-size: 16px;
}

.connect-table th {
    background-color: var(--bg-alt);
    color: var(--text-main);
    font-weight: 900;
    border-bottom: 2px solid var(--border-color);
}

.connect-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.connect-table tr:last-child td {
    border-bottom: none;
}

.step-num {
    background: var(--bg-main);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 900;
    border: 1px solid var(--border-color);
}

/* Шаги настройки */
.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: scale(1.01);
}

.step-badge {
    background: var(--bg-alt);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-main);
}

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

/* Оплата */
.payment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.payment-card {
    background-color: var(--bg-alt);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

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

.payment-icon {
    font-size: 28px;
    color: var(--accent);
    background: var(--bg-main);
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.payment-card h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 18px;
}

/* =========================================
   ОБНОВЛЕННЫЙ БЛОК СОЦСЕТЕЙ В ДИЗАЙН ЛЕНДИНГА
   ========================================= */
.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 0 auto 25px auto;
    width: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    text-decoration: none;
    background-color: var(--bg-card); /* Фирменный фон карточек вместо белого */
    border: 3px solid var(--accent);  /* Толстая фирменная рамка */
    box-shadow: 0 6px 14px var(--shadow-color);
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    /* Упругая анимация triple-scale */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

/* Текстовые иконки внутри */
.social-icon i {
    font-size: 26px;
    transition: transform 0.2s ease, color 0.3s ease;
}

/* Дефолтные цвета иконок под тему */
.social-icon.vk-icon { color: #0077FF; border-color: #0077FF; }
.social-icon.tg-icon { color: #0088cc; border-color: #0088cc; }
.social-icon.ok-icon { color: #EE8208; border-color: #EE8208; }

/* Эффект при наведении (Hover) — Увеличиваются */
.social-icon:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Эффект при НАЖАТИИ (Active Click) — Увеличиваются еще сильнее! */
.social-icon:active {
    transform: scale(1.3) rotate(-5deg) !important;
}

/* Индивидуальные стили заливки при наведении/нажатии */
.social-icon.vk-icon:hover, .social-icon.vk-icon:active {
    background-color: #0077FF;
    color: var(--accent-light);
    border-color: #0077FF;
    box-shadow: 0 10px 24px rgba(0, 119, 255, 0.45);
}

.social-icon.tg-icon:hover, .social-icon.tg-icon:active {
    background-color: #0088cc;
    color: var(--accent-light);
    border-color: #0088cc;
    box-shadow: 0 10px 24px rgba(0, 136, 204, 0.45);
}

.social-icon.ok-icon:hover, .social-icon.ok-icon:active {
    background-color: #EE8208;
    color: var(--accent-light);
    border-color: #EE8208;
    box-shadow: 0 10px 24px rgba(238, 130, 8, 0.45);
}

/* Исправление для SVG (если прилетят скриптом) */
.social-icon svg {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
    margin: auto;
}

/* Футер и финальный блок */
.final-cta {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-blue) 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 70px 40px;
    text-align: center;
    margin: 100px auto 40px;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(3, 105, 161, 0.15);
}

.final-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-main);
}

footer {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--bg-alt);
    color: var(--text-muted);
    border-top: 2px solid var(--border-color);
    font-size: 15px;
    font-weight: 700;
}

/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ 404
   ========================================= */
.error-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 60px 20px;
    margin: 20px auto;
}

.error-code {
    font-size: 150px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 5px 5px rgba(124, 58, 237, 0.2));
    font-family: 'Nunito', sans-serif;
}

.error-message {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
}

.error-icon {
    font-size: 80px;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 15px rgba(37, 99, 235, 0.3));
}

/* Адаптивная верстка */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-title-new {
        font-size: 34px;
        margin-bottom: 20px;
    }
    .hero-subtitle-new {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 35px;
    }
    .step-card {
        flex-direction: column;
        gap: 15px;
    }
    .payment-list,
    .devices-grid {
        grid-template-columns: 1fr;
    }
    .mirror-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .final-cta {
        padding: 40px 20px;
    }
}