:root {
    --right-menu-width: min(340px, calc(100vw - 1.5rem));
    --right-menu-bg: rgba(248, 250, 252, 0.82);
    --right-menu-border: rgba(15, 23, 42, 0.08);
    --right-menu-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
    --right-menu-link: #0f172a;
    --right-menu-link-hover: #0a84ff;
}

.right-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--right-menu-width);
    display: flex;
    flex-direction: column;
    background: var(--right-menu-bg);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-right: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--right-menu-shadow);
    transform: translateX(-104%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease;
    z-index: 1040;
}

.right-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.right-menu__header,
.right-menu__footer {
    padding: 1rem 1rem 0.9rem;
}

.right-menu__header {
    border-bottom: 1px solid var(--right-menu-border);
}

.right-menu__nav {
    padding: 0.7rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.right-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.right-menu__item + .right-menu__item {
    margin-top: 0.4rem;
}

.right-menu__section-title,
.right-menu__section-subtitle {
    padding-inline: 0.55rem;
    letter-spacing: 0.08em;
}

.right-menu__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    color: var(--right-menu-link);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
}

.right-menu__link:hover,
.right-menu__link:focus-visible {
    color: var(--right-menu-link-hover);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(10, 132, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 22px rgba(15, 23, 42, 0.07);
}

.right-menu__link span {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.right-menu__emoji {
    width: 24px;
    text-align: center;
    color: #64748b;
}

.right-menu__footer {
    border-top: 1px solid var(--right-menu-border);
}

body.right-menu-open {
    padding-left: calc(var(--right-menu-width) + 1rem);
    transition: padding-left 0.26s ease;
}

@media (max-width: 992px) {
    body.right-menu-open {
        padding-left: 0;
    }
}
