/* Бургер-меню */
.burger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu:hover span {
    background-color: #007bff;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100%;
    background-color: #1CA4FB;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}


@media screen and (max-width: 767px) {
	.modal-menu {left: -300px;width: 300px;}
}

.modal-overlay.active .modal-menu {
    left: 0;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #007bff;
}

/* Содержимое меню */
.menu-content {
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
}

.menu-item {
    padding: 5px 0;
    text-decoration: none;
    
    
    font-weight: 500;
   
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #e5e5e5;
	 
   text-decoration: underline;
    text-underline-offset: 4px;
 

}

.menu-item:last-child {
    border-bottom: none;
}

/* Анимация бургера при открытии */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.modal-menu  {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

.modal-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
} 

    