.menu {
    display: none; /* Скрываем меню по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding-top: 20%;
}

.menu.active {
    display: block; /* Показываем меню, когда оно активно */

}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    display: block;
    margin: 20px 0;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
}

.navbar-toggler {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Скрываем кнопку по умолчанию */
}
/* Стили для мобильных устройств */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block; /* Показываем кнопку на мобильных устройствах */
    }

    .menu {
        display: none; /* Скрываем меню на мобильных устройствах по умолчанию */
    }
}


/* Стили для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-toggler {
        display: block; /* Показываем кнопку на планшетах */
    }

    .menu {
        display: flex; /* Устанавливаем flex для меню */
        justify-content: center; /* Центрируем ссылки */
        align-items: center; /* Выравнивание по вертикали */
        position: static;
        width: 100%; /* Задаем ширину 100% */
        height: auto;
        background-color: transparent;
        color: inherit;
        text-align: center; /* Центрируем текст */
        padding-top: 0;
    }

    .menu a {
        color: black;
        font-size: 16px;
        display: inline;
        margin: 0 10px; /* Уменьшаем отступы между ссылками */
    }

    .close-btn {
        display: block; /* Показываем кнопку закрытия на планшетах */
    }
}

/* Стили для десктопной версии */
@media (min-width: 1024px) {
    .navbar-toggler {
        display: none; /* Скрываем кнопку на десктопной версии */
    }

    .menu {
        display: flex; /* Устанавливаем flex для меню */
        justify-content: flex-end !important; /* Перемещаем ссылки вправо */
        align-items: center; /* Выравнивание по вертикали */
        position: static;
        width: 100%; /* Задаем ширину 100% */
        height: auto;
        background-color: transparent;
        color: inherit;
        text-align: left;
        padding-top: 0;
    }

    .menu a {
        color: black;
        font-size: 16px;
        display: inline;
        margin: 0 15px;
    }

    .close-btn {
        display: none; /* Скрываем кнопку закрытия на десктопах */
    }
}