@layer components {
  /* Выдвижное меню (A_MobileMenu) на нативном <dialog>, Stimulus drawer.
     На всю высоту справа; на телефоне — на весь экран. */
  .drawer {
    width: min(420px, 100%);
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: var(--bg);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .drawer::backdrop { background: rgb(15 40 48 / 0.45); }
  .drawer__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: calc(var(--header-h) + 1px); /* + рамка: у шапки сайта она снаружи --header-h */
    padding-inline: var(--gutter);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .drawer__head > .isc-logo { flex: none; }
  .drawer__close { margin-left: auto; }
  .drawer__body { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .drawer__actions { display: flex; gap: 10px; }
  .drawer__actions .btn--primary { flex: 1; }
  .drawer__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
  .drawer__contacts .phone-link { font-size: 18px; }
  .drawer__address { margin-top: 4px; color: var(--ink-2); text-decoration: none; }
  .drawer__hours { font-size: 15px; }

  body:has(.drawer[open]) { overflow: hidden; }
}
