/* =========================
   Общие стили
========================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #1b1f36;
    color: white;
}

/* =========================
   Шапка
========================= */
header {
    background-color: #242a40;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* =========================
   Навигация
========================= */
.navbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Кнопки навигации */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 170px;
    height: 56px;

    font-size: 14px;
    font-weight: bold;
    color: white;
    text-decoration: none;

    border: 2px solid white;
    border-radius: 6px;

    background-color: transparent;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

/* Активная вкладка — аккуратная и тёмная */
.nav-link.active {
    background: linear-gradient(
        135deg,
        rgba(90, 120, 200, 0.35),
        rgba(60, 80, 160, 0.35)
    );
    border-color: rgba(120, 160, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(120, 160, 255, 0.6),
        0 0 14px rgba(80, 120, 255, 0.35);
}

/* Иконка активной */
.nav-link.active .nav-icon {
    filter:
        drop-shadow(0 0 6px rgba(120,160,255,0.9))
        brightness(1.15);
}

/* hover на активной убираем */
.nav-link.active:hover {
    transform: none;
}

.nav-link:hover {
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.2);
}

/* =========================
   Иконка внутри кнопки
========================= */
.nav-icon {
    width: 42px;
    height: 42px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    flex-shrink: 0;
}

/* =========================
   Футер
========================= */
footer {
    margin-top: auto;
    background-color: #242a40;
    padding-bottom: 10px;
    text-align: center;
    flex-shrink: 0;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-link {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    display: inline-block;
    transition: transform 0.15s;
}

.footer-link:hover {
    transform: scale(1.2);
}

/* =========================
   Адаптация ≤ 425px
========================= */
@media (max-width: 425px) {
    .navbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        justify-items: center;
    }

    .nav-link {
        width: 90%;
        max-width: 220px;
        height: 46px;
        font-size: 13px;
    }

    .nav-icon {
        width: 36px;
        height: 36px;
    }
}