/* StaggeredMenu — мобильное меню со slide-анимацией (порт с reactbits.dev) */

.staggered-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.staggered-menu-overlay.is-active {
    display: block;
}

.staggered-menu-overlay.is-active * {
    pointer-events: auto;
}

.sm-prelayers {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 420px);
    pointer-events: none;
    z-index: 1;
}

.sm-prelayer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

.staggered-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 420px);
    height: 100%;
    background: #1e1e22;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 6rem 5vw 2rem;
    overflow-y: auto;
    z-index: 10;
    pointer-events: auto;
}

.sm-panel-close {
    position: absolute;
    top: 1.25rem;
    right: 5vw;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    z-index: 15;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.sm-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sm-panel-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.sm-panel-close-icon {
    display: block;
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}

.sm-panel-close-icon::before,
.sm-panel-close-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    margin-left: -7px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 2px;
}

.sm-panel-close-icon::before {
    transform: rotate(45deg);
}

.sm-panel-close-icon::after {
    transform: rotate(-45deg);
}

.sm-panel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sm-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sm-panel-item {
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1;
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: color 0.25s;
    display: inline-block;
    text-decoration: none;
    padding-right: 2.5em;
}

.sm-panel-item:hover {
    color: var(--sm-accent, var(--accent, #B19EEF));
}

.sm-panel-itemLabel {
    display: inline-block;
    will-change: transform;
    transform-origin: 50% 100%;
}

.sm-socials {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sm-socials-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--sm-accent, var(--accent, #B19EEF));
}

.sm-socials-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sm-socials-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.sm-socials-link:hover {
    color: var(--sm-accent, var(--accent, #B19EEF));
}

/* Только на мобильных */
@media (min-width: 901px) {
    .staggered-menu-overlay {
        display: none !important;
    }
}
