/* Кнопка меню в виде кружочка */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0E2B5E;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: #3a5a8a;
    transform: rotate(90deg);
}

.aside-line__container{
    display: flex;
    width: 100%;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.aside-btn-line{
    width: 70%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 20px;
}


/* Выдвигающееся меню */
.side-menu {
    position: fixed;
    top: 0;
    right: -20%; /* Начальное положение за пределами экрана */
    width: 20%;
    height: 100%;
    background-color: #F2F3F7;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.side-menu.active {
    right: 0; /* Меню выдвинуто */
    background-color: #F2F3F7;

}

/* Кнопка закрытия меню */
#closeMenu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0E2B5E;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 100%;
}

.close-line-one__container{
    display: flex;
    width: 100%;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.close-line-one{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: absolute;
    left: 10;
    width: 70%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 20px;
    transform: rotate(-130deg);
}

.close-line-two{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    position: absolute;
    left: 10;
    width: 70%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 20px;
    transform: rotate(130deg);
}

#closeMenu:hover{
    background-color: #3a5a8a;
}

/* Контент меню */
.menu-content {
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
}

.menu-content a {
    padding: 15px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu-content a i {
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.menu-content a:hover {
    background-color: #f5f7fa;
    color: #4a6fa5;
    transform: translateX(5px);
}

/* Затемнение фона */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all 0.3s ease;
}

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

/* Блокировка прокрутки при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) and (max-width: 1024px){
    .side-menu {
        width: 80%; /* На мобильных меню занимает больше места */
        right: -80%;
    }
    
    .menu-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .menu-content > a{
        font-size: 30px;
    }
}
