.drawer {
    position: fixed;
    top: 10vh; /* выравниваем относительно заголовка */
    left: 50vw;
    bottom: 12vh;
    width: min(52vh, 88vw);
    background: rgba(10, 12, 16, 0.92);
    border: 1px solid rgba(250, 189, 110, 0.25);
    box-shadow: 0 10px 30px #000;
    border-radius: 3px;
    padding: 30px;
    z-index: 140;
    transform: translateX(0%);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2, .7, .2, 1), opacity .32s ease;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.drawer.open {
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: all;
}

.drawer__close {
    position: absolute;
    top: 23px;
    right: 23px;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #ffffff1f;
    background: #ffffff0d;
    color: #fff;
    font-size: 2vh;
    line-height: 0;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drawer__close:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
}

/* фон-подложка для клика мимо */
.drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 130;
}

.drawer-scrim.open {
    opacity: 1;
    pointer-events: auto;
}

/* контент внутри панели */
.drawer__content {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer__content .scroller {
    overflow: auto;
    max-height: 100%;
    padding: 0 10px 0 0;
}

.drawer__content .avatar {
    width: 40%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    border: 2px solid #fabd6e;
}

.drawer__content h2 {
    margin: 0 0 2vh;
    color: #fabd6e;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 24px !important;
    padding: 0;
}

.drawer__content h3 {
    margin: 2vh 0;
    color: #fabd6e;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 2vh;
}

.list-grid {
    display: grid;
    gap: 1.2vh;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7vh;
    line-height: 1.6;
}

.list-grid hr {
    width: 100%;
    color: rgba(250, 189, 110, 0.25);
    padding: 0;
    margin: 0;
}

.list-grid a {
    color: #dcdad8;
    display: inline-block;
    padding: .8vh 1.2vh;
    border-radius: 8px;
    transition: background-color .2s ease, transform .16s ease;
}

.list-grid a[href] {
    color: #fabd6e;
}

.list-grid a[href]:hover {
    color: #ffffff;
    background: rgba(250, 189, 110, .08);
    /*transform: translateX(3px);*/
}

/* адаптив: на узких экранах панель шире и ближе к краям */
@media (max-width: 700px) {
    .drawer {
        right: 3vh;
        left: 3vh;
        width: auto;
    }

    .side-actions {
        max-width: none;
    }
}

/* если пользователь просит меньше анимаций */
@media (prefers-reduced-motion: reduce) {
    .side-btn, .drawer, .drawer__close, .list-grid a, .drawer-scrim {
        transition: none !important;
    }
}
