/* Общие стили */
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);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    width: 50px;
    height: 50px;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Навигационные ссылки */
.nav-link {
    width: 150px;
    height: 50px;
    background-size: cover;
    background-position: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s, text-decoration 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none; /* Убирает подчеркивание */
}

.nav-link:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: underline; /* Подчеркивает текст */
}

/* Футер */
footer {
    background-color: #242a40; /* Темно-серый фон */
    padding: 0 10px 10px; /* Убираем верхний отступ */
    text-align: center;
}

.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;
    transition: transform 0.1s;
    display: inline-block;
}

.footer-link:hover {
    transform: scale(1.2);
}

/* === Разбивка кнопок шапки на 2 колонки при ширине <= 425px === */
@media (max-width: 425px) {
    .navbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* две колонки */
        gap: 10px 15px; /* вертикальный и горизонтальный отступ */
        justify-items: center;
        align-items: center;
        width: 100%;
    }

    .nav-link {
        width: 90%;
        max-width: 200px;
        height: 45px;
        font-size: 13px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }

    h1 {
        font-size: 20px;
    }
}