/* === ОБЩИЙ КОНТЕЙНЕР === */
.menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 15, 28, 0.5);
    opacity: 0;
    transition: opacity 0.6s ease;
    backdrop-filter: blur(4px);
    z-index: 1;  /* 👈 ниже панели */
}

.menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #0f111c 0%, #1a1c2a 100%);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2; /* 👈 выше overlay */
}

/* === КНОПКА ЗАКРЫТИЯ === */
.menu__close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #d2d2cc;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* === СПИСОК === */
.menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.menu__list li {
    margin: 20px 0;
}
.menu__list a {
    font-family: 'SangBleu Sunrise', serif;
    font-size: 1.6rem;
    color: #f5f2ef;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.menu__list a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #f8e1c1, #c9a678);
    transition: width 0.4s ease, left 0.4s ease;
}
.menu__list a:hover {
    color: #d8c3a8;
}
.menu__list a:hover::after {
    width: 80%;
    left: 10%;
}

/* === АКТИВАЦИЯ === */
.menu.open {
    pointer-events: all;
}
.menu.open .menu__overlay {
    opacity: 1;
}
.menu.open .menu__panel {
    transform: translateX(0);
}

/* === АДАПТИВ === */
@media (max-width: 576px) {
    .menu__panel {
        width: 100%;
    }
    .menu__list a {
        font-size: 1.3rem;
    }
}
