header {
    display: flex;
    justify-content: space-between; /* Размещает элементы по краям */
    align-items: center;
    background-color: #030303;
    color: #fff;
    padding: 10px;
    top: 0;
    left: 0;
    width: 98.8%;
    z-index: 101; /* Хедер всегда выше навигации */
}

.top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*align-items: flex-start; !* Выровнять элементы по левому краю *!*/
    margin-right: 30px;
    border-right: 1px solid #444;
    padding-left: 50px;
    padding-right: 30px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 20px;
}

.top-bar a:hover {
    text-decoration: underline;
}

.navigation {
    display: flex;
    align-items: center; /* Выровнять элементы по вертикали */
    flex: 1; /* Занимает всё доступное пространство */
    justify-content: space-between; /* Размещает элементы по краям */
}

.navigation .column {
    margin: 0 15px;
}

.navigation .h-a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.navigation .h-a:hover {
    text-decoration: underline;
}

.navigation .icons {
    display: flex;
    gap: 10px;
    margin-right: 25px;
}

.navigation .icons a {
    display: block;
}

.navigation .icons img {
    width: 48px; /* Размер иконок */
    height: auto; /* Сохранять пропорции */
}

/*!* Мобильная версия *!*/
@media (max-width: 768px) {
    .body{
        margin: 0;
        padding: 0;
    }
    .navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: fixed;
        transform: translate(0%, 50%);
    }

    .menu-toggle {
        display: block;
    }

    .navigation.active {
        display: flex; /* Показываем навигацию при нажатии на бургер */
        flex-direction: column;
        width: 90%;
        height: 40%;
    }

    .nav-list {
        flex-direction: column;
        margin: 0;
        padding: 0;
        align-items: center; /* Центрируем элементы списка по вертикали */
    }

    .nav-list li {
        margin: 10px 0;
    }

    .icons {
        margin-top: 10px;
        justify-content: center;
    }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1280px) {
    header {
        padding: 8px; /* Уменьшаем отступы внутри хедера */
        width: 98%; /* Корректируем ширину */
    }

    .top-bar {
        margin-right: 20px; /* Уменьшаем отступ справа */
        padding-left: 30px; /* Уменьшаем отступ слева */
        padding-right: 20px; /* Уменьшаем отступ справа */
    }

    .top-bar a {
        font-size: 18px; /* Уменьшаем размер текста ссылок */
        margin-bottom: 8px; /* Уменьшаем отступ между ссылками */
    }

    .navigation .column {
        margin: 0 10px; /* Уменьшаем отступы между колонками */
    }

    .navigation .h-a {
        font-size: 20px; /* Уменьшаем размер текста ссылок в навигации */
    }

    .navigation .icons {
        gap: 8px; /* Уменьшаем расстояние между иконками */
        margin-right: 15px; /* Уменьшаем отступ справа */
    }

    .navigation .icons img {
        width: 40px; /* Уменьшаем размер иконок */
    }
}


