.site-menu, .header-call { display: none; }

@media (max-width: 900px) {
  .header, .inner-header {
    --nav-ink: #faf9f6;
    --nav-surface: #191919;
    --nav-rule: rgba(255,255,255,.16);
    --nav-glass: linear-gradient(155deg, #383836, #252525);
    --nav-edge: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 0 rgba(255,255,255,.18), 0 4px 16px rgba(0,0,0,.18);
    margin-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    isolation: isolate;
    background: transparent;
    color: var(--nav-ink);
    z-index: 45;
  }
  .header { top: max(8px, env(safe-area-inset-top)); }
  .inner-header { position: relative; margin-top: max(8px, env(safe-area-inset-top)); }
  .header::before, .inner-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: 28px; background: var(--nav-glass); box-shadow: var(--nav-edge);
  }
  .header, .inner-header > .inner-wrap {
    display: flex; align-items: center; justify-content: flex-start;
    flex-wrap: nowrap; gap: 8px; height: 56px; padding: 0 6px 0 15px;
  }
  .inner-header > .inner-wrap { width: 100%; }
  .header > nav, .inner-header .inner-wrap > nav, .header-number,
  .header .phone .ico { display: none; }
  .header .brand, .inner-header .inner-brand {
    position: static; transform: none; margin-right: auto;
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 24px; letter-spacing: -.055em; color: var(--nav-ink);
  }
  .header .phone, .inner-header .inner-phone {
    order: 0; margin: 0; padding: 0 4px; min-height: 44px;
    display: inline-flex; align-items: center; color: var(--nav-ink);
    background: none; font-size: 15px; font-weight: 600; text-decoration: none;
  }
  .header-call { display: inline; }
  .site-menu { display: block; }
  .site-menu :is(summary, .menu-toggle) {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 14px; list-style: none; cursor: pointer;
    border-radius: 22px; background: #ffe1d8; color: var(--nav-surface);
    font: inherit; font-size: 15px; font-weight: 600;
  }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu-icon { display: grid; align-content: center; gap: 4px; width: 15px; }
  .site-menu-icon::before, .site-menu-icon::after {
    content: ""; width: 15px; height: 2px; background: currentColor; border-radius: 2px;
  }
  .site-menu:is([open], [data-open]) .site-menu-icon::before { transform: translateY(3px) rotate(45deg); }
  .site-menu:is([open], [data-open]) .site-menu-icon::after { transform: translateY(-3px) rotate(-45deg); }
  .header .site-menu nav, .inner-header .site-menu nav {
    display: none; position: absolute; inset: calc(100% + 5px) 0 auto; width: auto;
    margin: 0; padding: 4px 18px 14px; border: 0; border-radius: 22px; box-sizing: border-box;
    max-height: calc(100dvh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--nav-glass); color: var(--nav-ink); box-shadow: var(--nav-edge);
  }
  .header .site-menu:is([open], [data-open]) nav, .inner-header .site-menu:is([open], [data-open]) nav { display: block; }
  .header .site-menu nav a, .inner-header .site-menu nav a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding: 8px 4px; border-top: 1px solid var(--nav-rule);
    font-size: 18px; line-height: 1.25; color: inherit; text-decoration: none;
  }
  .site-menu nav a[aria-current] { font-weight: 600; }
  .site-menu nav a[aria-current]::after { content: "✓"; color: #ff9688; }
  .site-menu :focus-visible { outline: 2px solid #ff9688; outline-offset: 2px; }
}
.site-menu :is(summary, .menu-toggle) { -webkit-tap-highlight-color: transparent; }
.site-menu .menu-open-label, .site-menu:is([open], [data-open]) .menu-closed-label { display: none; }
.site-menu:is([open], [data-open]) .menu-open-label { display: inline; }

.menu-toggle { border: 0; appearance: none; touch-action: manipulation; }
.site-menu nav[hidden] { display: none !important; }

@media (max-width: 900px) {
  .site-menu nav a:first-child { border-top: 0; }
  /* Separate surfaces avoid filtering the dropdown through the header twice. */
  @supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    html:not(.motion-lite) :is(.header, .inner-header)::before,
    html:not(.motion-lite) :is(.header, .inner-header) .site-menu nav {
      background: linear-gradient(155deg, rgba(54,54,52,.85), rgba(25,25,25,.88));
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }
  }
}
@media (prefers-reduced-transparency: reduce) {
  html:not(.motion-lite) :is(.header, .inner-header)::before,
  html:not(.motion-lite) :is(.header, .inner-header) .site-menu nav {
    background: #282828;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 370px) {
  .header, .inner-header > .inner-wrap { gap: 4px; padding-inline: 10px 4px; }
  .header .brand, .inner-header .inner-brand { font-size: 21px; }
  .header .phone, .inner-header .inner-phone { font-size: 14px; padding-inline: 2px; }
  .site-menu :is(summary, .menu-toggle) { font-size: 14px; gap: 5px; padding-inline: 9px; }
}
