/* Mobile navigation — static header: toggles .block-header-layout-mobile__dropdown--open */
@media screen and (max-width: 920px) {
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 17;
    background: rgba(0, 30, 40, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    -webkit-tap-highlight-color: transparent;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .block-header-layout-mobile__dropdown.block-header-layout-mobile__dropdown--open {
    max-height: min(calc(100dvh - 64px), 580px) !important;
    padding-top: 12px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
  }

  .block-header-layout-mobile .block-header__nav-links {
    width: 100%;
    padding: 4px 0 8px;
  }

  .block-header-layout-mobile .block-header-item__label {
    display: block;
    width: 100%;
  }

  .block-header-layout-mobile .block-header-item__item {
    min-height: 48px;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: background 0.15s ease;
  }

  .block-header-layout-mobile .block-header-item__item:hover,
  .block-header-layout-mobile .block-header-item__item:focus-within {
    background: rgba(255, 255, 255, 0.06);
  }

  .block-header-layout-mobile a.item-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 10px;
    font-size: 17px !important;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }

  .block-header-layout-mobile a.item-content:active {
    color: rgb(245, 166, 81) !important;
  }

  .block-header-layout-mobile .item-content-wrapper--active a.item-content {
    color: rgb(245, 166, 81) !important;
  }

  .block-header-layout-mobile span.item-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 10px;
    font-size: 16px !important;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .block-header-layout-mobile .block-header-item__dropdown {
    margin: 4px 0 8px 0 !important;
    padding: 4px 0 8px 12px !important;
    border-left: 3px solid rgb(245, 166, 81);
    background: rgba(0, 0, 0, 0.12);
    border-radius: 0 8px 8px 0;
  }

  .block-header-layout-mobile .block-header-item__dropdown .item-content {
    font-size: 15px !important;
    font-weight: 500;
    padding: 10px 8px;
    min-height: 44px;
  }

  .block-header-layout-mobile .block-header-item__dropdown a.item-content {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .block-header-layout-mobile .block-header-item__dropdown a.item-content:active {
    color: rgb(245, 166, 81) !important;
  }

  .block-header__hamburger-menu {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: -6px;
    border-radius: 8px;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .block-header__hamburger-menu:focus-visible {
    outline: 2px solid rgb(245, 166, 81);
    outline-offset: 2px;
  }

  .block-header__hamburger-menu:active {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media screen and (min-width: 921px) {
  .mobile-nav-backdrop {
    display: none !important;
  }
}
