.site-menu-toggle { display: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.admin-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.admin-entry { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 12px; color: var(--muted); text-underline-offset: 4px; }
.site-menu { box-sizing: border-box; width: min(360px, calc(100% - 24px)); height: 100dvh; max-height: 100dvh; max-width: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.site-menu::backdrop { background: #20383c66; }
html:has(.site-menu[open], .chat-drawer[open]) { overflow: hidden; }
.site-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.site-menu-heading h2 { margin: 0; font: inherit; font-size: 18px; font-weight: 600; }
.site-menu-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.site-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.site-menu nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; font-size: 16px; line-height: 1.5; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-menu nav a[aria-current=page] { background: var(--sheet); color: var(--accent); font-weight: 700; }
.site-menu nav a:hover { background: var(--sheet); }
@media (max-width: 720px) {
  .site-header.navigation-ready { flex-wrap: nowrap; justify-content: space-between; min-height: 60px; padding: 8px 16px; gap: 12px; }
  .site-header.navigation-ready .brand { width: auto; min-width: 0; min-height: 44px; font-size: 14px; }
  .site-header.navigation-ready .brand svg { flex-shrink: 0; }
  .site-header.navigation-ready .header-note { display: none; }
  .site-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
  .chat-drawer nav[aria-label="Основная навигация"] a { min-height: 48px; padding-inline: 12px; font-size: 15px; }
  .chat-drawer nav[aria-label="Основная навигация"] a[aria-current=page] { background: var(--sheet); font-weight: 700; text-decoration: none; }
}
