*,
*::after,
*::before {
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: 'Manrope';
    src: url('../shrifts/Manrope.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Manrope', sans-serif;
}

a {
    text-decoration: none;
    color: white;
    margin-left: 5px;
}

.blue {
    color: #21409A;
}

.black {
    color: black;
}

h2 {
    font-size: 32px;
}
@media (min-width: 1024px) {
    nav {
        height: 40px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background-color: #21409A;
        font-size: 14px;
        font-weight: 100;
    }

    .nav-item {
        display: flex;
        align-items: center;
    }

    .nav-item.page_bottom {
        display: inline-block;
        padding: 10px 20px;
        text-align: center;
        background-color: white;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .nav-item.page_bottom:hover {
        background-color: #E8E9EA;
    }

    .nav-item.page_bottom .black {
        margin: 0;
        font-size: 20px;
    }

    .head_menu {
        height: 120px;
        display: flex;
        justify-content: left;
    }

    .nav-item-2 {
        display: flex;
        flex-direction: column;
    }

    .head_menu_button {
        height: 50px;
        display: flex;
        justify-content: left;
        align-items: center;
        font-size: 24px;
        margin-bottom: 20px;
    }

    footer {
        background-color: #21409A;
        margin-top: 100px;
        color: white;
    }

    .footer_row {
        display: flex;
        align-items: flex-start;
    }

    .footer_column {
        color:white;
        margin-top: 30px;
        margin-left: 100px;
        font-weight: 100;
    }

    .normal_name_footer {
        font-size: 14px;
    }

    .title {
        font-weight: 600;
    }
}
@media (max-width: 1023px) {
    nav {
        display: flex;          /* Гибкое расположение */
        flex-wrap: nowrap;      /* Запрет переноса на новую строку */
        justify-content: space-between; /* Равномерное распределение */
        align-items: center;    /* Выравнивание по центру */
        padding: 10px 15px;    /* Отступы внутри nav */
        background-color: #21409A;
        font-size: 12px;
        width: 100%;           /* Ширина на весь экран */
        box-sizing: border-box; /* Учитывать padding в ширине */
    }

    .nav-item {
        display: flex;          /* Чтобы иконка и текст были в строку */
        align-items: center;    /* Выравнивание по вертикали */
        gap: 5px;              /* Отступ между элементами внутри .nav-item */
        white-space: nowrap;   /* Запрет переноса текста */
    }

    /* Убираем фиксированную ширину для body */
    body {
        width: auto;
        overflow-x: hidden;    /* На всякий случай, чтобы не было горизонтального скролла */
    }

    .head_menu {
        display: flex;
        flex-direction: row; /* Оставляем горизонтальное расположение */
        align-items: center; /* Выравниваем по центру вертикали */
        height: auto;
        padding: 10px 15px; /* Уменьшаем отступы */
        justify-content: center; /* Центрируем по горизонтали */
        flex-wrap: wrap; /* Разрешаем перенос при нехватке места */
    }

    .head_menu .nav-item {
        margin-left: 0 !important;
        margin-right: 10px; /* Добавляем отступ справа вместо слева */
    }

    .head_menu .nav-item img {
        width: 60px; /* Значительно уменьшаем логотип */
        height: 60px;
    }

    .nav-item-2 p {
        display: block;
        font-size: 10px !important;
        margin-top: 2px;
        white-space: nowrap; /* Запрещаем перенос текста */
    }

    .nav-item-2 h2.blue {
        font-size: 18px; /* Уменьшаем размер заголовка */
        margin: 0; /* Убираем все отступы */
        line-height: 1.2; /* Уменьшаем межстрочный интервал */
    }

    .nav-item-2 p {
        font-size: 10px !important;
        margin-top: 3px; /* Уменьшаем отступ сверху */
        display: none; /* Скрываем слоган на мобильных или оставляем - по желанию */
    }
    .head_menu_button {
        display: flex;
        justify-content: center; /* Центрируем кнопки по горизонтали */
        align-items: center;
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap; /* Разрешаем перенос на новую строку при необходимости */
    }

    .head_menu_button .nav-item.page_bottom {
        width: auto !important; /* Убираем фиксированную ширину */
        min-width: 100px; /* Минимальная ширина */
        margin: 5px 10px !important; /* Отступы между кнопками */
        padding: 8px 15px; /* Уменьшаем внутренние отступы */
        font-size: 14px; /* Уменьшаем размер шрифта */
    }

    /* Убираем все индивидуальные margin-left */
    .head_menu_button .nav-item.page_bottom[style*="margin-left"] {
        margin-left: 10px !important;
    }

    /* Стили для текста внутри кнопок */
    .head_menu_button .black {
        font-size: 14px; /* Уменьшаем размер шрифта */
        white-space: nowrap; /* Запрещаем перенос текста */
    }

    .head_menu_img {
        /* Специфичные стили для устройств с шириной экрана до 1023px */
        position: relative; /* Для возможного позиционирования внутренних элементов */
    }
    
    .head_menu_img img {
        /* Можно добавить дополнительные стили для изображения на мобильных */
        min-height: 200px; /* Минимальная высота изображения (опционально) */
        object-fit: cover; /* Заполнение пространства с сохранением пропорций */
    }

    footer {
        padding: 20px 15px; /* Добавляем отступы по бокам */
        background-color: #21409A;
        
    }

    .footer_row {
        flex-direction: column; /* Меняем направление на вертикальное */
        align-items: center; /* Центрируем элементы */
    }

    .footer_column {
        margin: 15px 0 !important; /* Убираем боковые отступы, оставляем только сверху/снизу */
        margin-left: 0 !important;
        width: 100%; /* Занимаем всю ширину */
        text-align: center; /* Центрируем текст */
        padding-bottom: 0 !important;
    }

    .footer_block {
        margin: 8px 0; /* Оптимизируем вертикальные отступы */
    }

    .title_name_footer {
        color:white;
        font-size: 18px; /* Увеличиваем заголовки для лучшей читаемости */
        display: inline-block;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.2); /* Добавляем разделитель */
    }

    .normal_name_footer {
        font-size: 14px;
        display: block; /* Каждый элемент на новой строке */
        padding: 5px 0;
    }

    /* Специальные стили для блока контактов */
    .footer_column:last-child {
        border-top: 1px solid rgba(255,255,255,0.2); /* Визуальное разделение */
        padding-top: 20px;
        margin-top: 10px;
    }

}
