@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ==========================================
   Базовые стили и сброс
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: #f0f4f9;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Шапка и меню (Лого и меню по центру в 1 строку)
   ========================================== */
header {
    background: #0d47a1;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #1565c0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1450px;
    margin: 0 auto;
    width: 100%;
    gap: 25px;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo i {
    color: #cff145;
}

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

.nav-menu a {
    text-decoration: none;
    color: #e3f2fd;
    font-weight: 700;
    font-size: 13.5px;
    padding: 7px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a i {
    font-size: 13px;
    opacity: 0.9;
}

.nav-menu a:hover {
    background: #1565c0;
    color: #ffffff;
}

/* Кнопка Volet (Фирменный салатовый цвет #cff145) */
.btn-volet {
    background: #cff145 !important; 
    color: #0d47a1 !important; 
    border: none !important;
    box-shadow: 0 2px 10px rgba(207, 241, 69, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 900 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-volet i {
    color: #0d47a1 !important;
}

.btn-volet:hover {
    background: #bde625 !important;
    color: #08295e !important;
    box-shadow: 0 4px 14px rgba(207, 241, 69, 0.6);
    transform: translateY(-1px);
}

.burger-checkbox { display: none; }
.burger-label {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
}

/* ==========================================
   Главный контейнер страницы
   ========================================== */
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    width: 100%;
}

/* ==========================================
   Новый премиальный стиль карточек и блоков
   ========================================== */
.hero,
.section-block,
.error-404-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Акцентная верхняя градиентная полоса */
.hero::before,
.section-block::before,
.error-404-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0d47a1, #1976d2, #cff145);
}

.section-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(13, 71, 161, 0.09);
}

/* Настройки баннера Hero */
.hero {
    text-align: center;
    max-width: 1010px;
    margin: 30px auto 0 auto;
    width: calc(100% - 40px);
    background: #ffffff;
}

.hero h1 {
    font-size: 30px;
    font-weight: 900;
    color: #0d47a1;
    margin-top: 0;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero h2 {
    font-size: 19px;
    font-weight: 800;
    color: #1976d2;
    margin: 0;
}

/* Настройки информационных блоков */
.section-block {
    margin-bottom: 25px;
    width: 100%;
}

.section-block h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0d47a1;
    margin-top: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #edf4fc;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid #d0e1f9;
}

.section-block h2 i {
    color: #1976d2;
}

.section-block p, 
.section-block ul, 
.section-block ol,
.steps p {
    text-align: justify;
    font-size: 16px;
    color: #334155;
}

/* Внутренние списки шагов */
.steps {
    background: #f8fafc;
    padding: 20px 25px 20px 45px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.steps li { 
    margin-bottom: 12px; 
    color: #334155;
}

.steps li strong {
    color: #0d47a1;
}

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

.mirror-btn {
    display: block;
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.mirror-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.2);
    filter: brightness(1.1);
}

/* Палитра кнопок зеркал */
.m-c1 { background: #1565c0; }
.m-c2 { background: #0277bd; }
.m-c3 { background: #0d47a1; }
.m-c4 { background: #1976d2; }
.m-c5 { background: #00838f; }
.m-c6 { background: #0288d1; }
.m-c7 { background: #283593; }
.m-c8 { background: #0097a7; }

.buttons-center {
    text-align: center;
    margin-top: 25px;
    width: 100%;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1976d2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    margin: 5px 8px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.25);
    transition: all 0.2s ease;
}

.btn-action:hover { 
    background: #1565c0; 
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.35);
}

.btn-action-secondary {
    background: #475569;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.btn-action-secondary:hover {
    background: #334155;
}

/* ==========================================
   Блок внимания Volet (Обновленная структура)
   ========================================== */
.volet-highlight {
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #cff145;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.volet-highlight p {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    text-align: justify;
    width: 100%;
}

.volet-highlight p i {
    color: #1976d2;
    margin-right: 5px;
}

/* ==========================================
   Страница ошибки 404
   ========================================== */
.error-404-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 280px);
    padding: 40px 20px;
}

.error-404-card {
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-code {
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    color: #0d47a1;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: 4px 4px 0px #edf4fc;
}

.error-title {
    font-size: 26px;
    font-weight: 800;
    color: #0d47a1;
    margin: 15px 0 15px;
}

.error-title i {
    color: #cff145;
    text-shadow: 0 0 5px rgba(13, 71, 161, 0.2);
}

.error-desc {
    font-size: 16px;
    color: #334155;
    margin-bottom: 30px;
    text-align: center !important;
}

/* ==========================================
   Подвал (Footer)
   ========================================== */
footer {
    background: #0d47a1;
    color: #ffffff;
    padding: 35px 20px;
    text-align: center;
    border-top: 3px solid #1565c0;
    margin-top: auto;
}

footer h2 {
    font-size: 20px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    margin: 6px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
}

.vk { background: #0077ff; }
.tg { background: #229ed9; }
.ok { background: #ee8208; }

.copyright {
    margin-top: 20px; 
    font-weight: 700; 
    color: #93c5fd;
    font-size: 14px;
}

/* ==========================================
   Адаптивность (Mobile & Tablet)
   ========================================== */
@media (max-width: 1250px) {
    .header-container { 
        justify-content: space-between; 
    }
    .mirrors-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .burger-label { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #0a387f;
        padding: 15px 0;
        margin-top: 10px;
        border-radius: 8px;
        gap: 8px;
    }
    .burger-checkbox:checked ~ .nav-menu { display: flex; }
}

@media (max-width: 500px) {
    .mirrors-grid { grid-template-columns: 1fr; }
    .hero, .section-block, .error-404-card { padding: 20px; }
    .hero { margin-top: 20px; }
    .hero h1 { font-size: 22px; }
    .hero h2 { font-size: 15px; }
    .section-block h2 { font-size: 18px; width: 100%; }
}