.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    z-index: 3000;
    background: rgba(46, 0, 10, .56);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .24s ease;
}

.mobile-drawer-overlay:not([hidden]) { opacity: 1; }

.mobile-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3010;
    display: flex;
    flex-direction: column;
    width: min(88%, 350px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 48px rgba(43, 8, 15, .22);
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.mobile-drawer--left { left: 0; transform: translateX(-102%); }
.mobile-drawer--right { right: 0; transform: translateX(102%); }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__scroll { flex: 1; overflow-y: auto; padding: 0 12px 15px; scrollbar-width: none; }
.mobile-drawer__scroll::-webkit-scrollbar { display: none; }
.mobile-drawer__header, .mobile-drawer__profile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px 13px; border-bottom: 1px solid #edf1ee; }
.mobile-drawer__brand { display: flex; align-items: center; gap: 8px; color: #17211c; }
.mobile-drawer__brand-logo { width: min(150px, 72vw); height: auto; display: block; max-height: 38px; object-fit: contain; }
.mobile-drawer__brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--brand-900); font-size: calc(17px + 3px); font-weight: 900; }
.mobile-drawer__brand strong, .mobile-drawer__profile-head strong { display: block; font-size: calc(12px + 3px); letter-spacing: .06em; }
.mobile-drawer__brand small { display: block; margin-top: 4px; color: #8a978f; font-size: calc(7px + 3px); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mobile-drawer__profile-head { align-items: flex-start; }
.mobile-drawer__profile-head > div > span { display: inline-flex; margin-top: 7px; padding: 4px 8px; border: 1px solid #f3ddb3; border-radius: 999px; color: #93631a; background: #fff5df; font-size: calc(9px + 3px); font-weight: 800; }
.mobile-drawer__close { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; color: #68766d; background: #f1f4f2; cursor: pointer; }
.mobile-drawer__close:hover, .mobile-drawer__close:focus-visible { color: var(--brand-800); background: var(--brand-100); outline: none; }
.mobile-drawer__nav { display: grid; gap: 3px; padding-top: 14px; }
.mobile-drawer__link { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid transparent; border-radius: 12px; color: #29362f; font-size: calc(11px + 3px); font-weight: 750; }
.mobile-drawer__link i { width: 18px; color: #7e8b82; text-align: center; }
.mobile-drawer__link:hover, .mobile-drawer__link:focus-visible { color: var(--brand-800); background: var(--brand-50); outline: none; }
.mobile-drawer__link.is-active { border-color: var(--brand-100); color: var(--brand-800); background: var(--brand-50); font-weight: 850; }
.mobile-drawer__link.is-active i { color: var(--brand-700); }
.mobile-drawer__link--danger { color: #bd5364; }
.mobile-drawer__link--danger i { color: #bd5364; }
.bottom-nav__favorites { position: relative; }
.bottom-nav__favorites-badge {
    min-width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    padding: 0 4px;
    position: absolute;
    top: -2px;
    left: calc(50% + 5px);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #df4c1e;
    font-size: calc(10px + 3px);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}
.bottom-nav__favorites-badge.is-hidden { display: none; }
.mobile-drawer__divider { height: 1px; margin: 15px 2px 0; background: #edf1ee; }
.mobile-drawer__caption { padding: 17px 11px 0; color: #9aa69f; font-size: calc(9px + 3px); font-weight: 900; letter-spacing: .14em; }
.mobile-drawer__language { padding: 12px; border-top: 1px solid #edf1ee; background: #fff; }
.mobile-drawer__language > span { display: block; margin-bottom: 8px; color: #7b8980; font-size: calc(10px + 3px); font-weight: 700; }
.mobile-drawer__language-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-drawer__language button, .mobile-drawer__language-link { height: 35px; display: grid; place-items: center; border: 1px solid #dfe7e1; border-radius: 10px; color: #526158; background: #fff; cursor: pointer; font-size: calc(10px + 3px); font-weight: 850; text-decoration: none; }
.mobile-drawer__language button.is-active, .mobile-drawer__language-link.is-active { border-color: var(--brand-700); color: #fff; background: var(--brand-700); }
.mobile-drawer__link--accent { color: var(--brand-800); background: var(--brand-50); }
.app-header__actions { gap: 10px; }
.header-chat-button {
    width: 35px;
    height: 35px;
    padding: 3px 3px;
    flex: 0 0 35px;
    border-radius: 10px;
    color: #fff;
    background: #324d35;
    box-shadow: 0 4px 10px rgba(80, 113, 84, .24);
    border: 1px solid #324d35;
}
.header-chat-button:hover,
.header-chat-button:focus-visible {
    color: #fff;
    background: var(--brand-800);
    outline: 2px solid rgba(255, 255, 255, .72);
    outline-offset: 2px;
}
.header-chat-badge {
    min-width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    right: -6px;
    border: 2px solid var(--brand-800);
    border-radius: 999px;
    color: #fff;
    background: #df4c1e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}
.profile-chip { display: grid; place-items: center; overflow: hidden; }
.profile-chip img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }

@media (max-width: 540px) {
    .mobile-drawer { width: min(88%, 340px); }
}
