.header-mobile-menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 4px; border: 0; border-radius: 10px; color: var(--site-icon, #444); background: transparent; cursor: pointer; }
.header-mobile-menu { display: none; }
.header-mobile-menu[hidden], .header-mobile-menu [hidden] { display: none !important; }
.header-user-label { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--site-menu-ink, #3f3f3f); font-weight: 600; }
.header-guest-nav .header-guest-nav__items { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; margin: 0; list-style: none; }
.header-guest-nav__items > li { min-width: 0; }
.header-guest-nav .nav-link { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; }
@media (max-width: 1023px) {
    .header-mobile-menu-toggle { display: inline-flex; }
    .header-user-label { display: none; }
    html.header-mobile-menu-open { overflow: hidden !important; }
    html.header-mobile-menu-open #changeMyCurrModal { z-index: 1100; }
    .header-mobile-menu { display: flex; position: fixed; inset: 0; z-index: 1001; width: 100%; height: 100vh; height: 100dvh; flex-direction: column; background: var(--site-bg, #f1eef0); color: var(--site-title, #222); overscroll-behavior: contain; }
    .header-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 8px; font-size: 24px; font-weight: 700; }
    .header-mobile-menu__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 12px; background: var(--site-card, #fff); color: inherit; font-size: 28px; cursor: pointer; }
    .header-mobile-menu__content { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
    .header-mobile-menu__card, .header-mobile-menu__quick, .header-mobile-menu__nav ul, .header-mobile-menu__preferences .header-preferences--mobile, .header-mobile-menu__theme-row { border: 1px solid var(--site-border-soft, #ebe7e7); background: var(--site-card, #fff); }
    .header-mobile-menu__card { display: flex; gap: 12px; padding: 16px; margin-bottom: 12px; border-radius: 15px; }
    .header-mobile-menu__guest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
    .header-mobile-menu__card { flex-direction: row; align-items: center; justify-content: space-between; }
    .header-mobile-menu__account { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .header-mobile-menu__username { display: inline-flex; align-items: center; gap: 6px; color: var(--site-title, #222); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
    .header-mobile-menu__username svg { flex: 0 0 16px; fill: none; stroke: var(--site-text-dim, #8a8487); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .header-mobile-menu__balance { display: flex; flex-wrap: wrap; gap: 4px; color: var(--site-text-dim, #8a8487); font-size: 15px; }
    .header-mobile-menu__balance strong { color: var(--site-mark, #fd5a3c); font-weight: 700; }
    .header-mobile-menu__quick { display: grid; grid-template-columns: repeat(5, 1fr); padding: 12px 4px; margin-bottom: 12px; border-radius: 15px; }
    .header-mobile-menu__quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--site-title, #222) !important; font-size: 13px; font-weight: 500; text-decoration: none; }
    .header-mobile-menu__quick a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header-mobile-menu__quick svg { width: 24px; height: 24px; fill: currentColor; }
    .header-mobile-menu__quick a:hover, .header-mobile-menu__quick a[aria-current="page"] { color: var(--site-mark, #fd5a3c) !important; }
    .header-mobile-menu__icon { position: relative; display: block; height: 24px; }
    .header-mobile-menu__icon .header-mobile-menu__badge { position: absolute; top: -8px; left: 14px; }
    .header-mobile-menu__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 10px; background: var(--site-mark, #fd5a3c); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
    .header-mobile-menu__top-up { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 12px; background: var(--site-accent, #ffbe40); color: var(--site-ink-strong, #111); font-weight: 600; text-decoration: none; }
    .header-mobile-menu__signup, .header-mobile-menu .header-mobile-menu__guest-login { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 12px; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 15px; background: var(--site-card, #fff); color: var(--site-title, #222); font-weight: 600; text-decoration: none; }
    .header-mobile-menu__signup { border: 2px solid var(--site-accent, #ffbe40); }
    .header-mobile-menu__nav ul { display: flex; flex-direction: column; margin: 0 0 12px; padding: 6px 0; list-style: none; border-radius: 15px; overflow: hidden; }
    .header-mobile-menu__nav a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 12px 16px; color: var(--site-title, #222) !important; font-size: 16px; text-decoration: none; }
    .header-mobile-menu__nav a:hover, .header-mobile-menu__nav a[aria-current="page"], .header-mobile-menu__nav a.active { color: var(--site-mark, #fd5a3c) !important; }
    .header-mobile-menu__preferences { display: flex; flex-direction: column; margin-top: 8px; }
    /* Валюта, Язык и Тема — одна карточка с разделителями (27.10, как в новом дизайне) */
    .header-mobile-menu__preferences .header-preferences--mobile { display: flex; flex-direction: column; gap: 0; padding: 0 16px; border-bottom: 0; border-radius: 15px 15px 0 0; }
    .header-mobile-menu__preferences .header-preferences__group { border-bottom: 1px solid var(--site-border-soft, #ebe7e7); }
    .header-mobile-menu__preferences .header-preferences__toggle { width: 100%; min-height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--site-title, #222); font-size: 16px; }
    .header-mobile-menu__preferences .header-preferences__toggle > span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--site-text-dim, #8a8487); }
    .header-mobile-menu__preferences .header-preferences__toggle > span:last-child::after { content: ''; width: 7px; height: 7px; margin: -3px 2px 0 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
    .header-mobile-menu__preferences .header-preferences__options { margin-bottom: 12px; }
    .header-mobile-menu__theme-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-top: 0; border-radius: 0 0 15px 15px; color: var(--site-title, #222); font-size: 16px; }
    .header-mobile-menu .header-mobile-menu__theme { display: flex; align-items: center; gap: 12px; width: auto; height: auto; padding: 0; margin: 0; border: 0; background: transparent; color: var(--site-text-dim, #8a8487); font: inherit; cursor: pointer; }
    .header-mobile-menu__theme-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--site-border-soft, #ebe7e7); border-radius: 10px; color: var(--site-title, #222); }
}

@media (max-width: 1023px) {
    .mobile-menu { display: block; }
    html.header-catalog-open .mobile-menu, html.header-mobile-menu-open .mobile-menu { visibility: hidden; pointer-events: none; }
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.header-mobile-menu__settings-title { margin: 0 0 10px 6px; color: var(--site-text-dim, #8a8487); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
