.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header a.logo,
.site-header a.logo:hover {
  flex: none;
  font-size: clamp(10px, 3.2vw, 14px);
  letter-spacing: clamp(.06em, .4vw, .18em);
  white-space: nowrap;
}

.site-header .nav {
  flex: none;
  margin-inline: auto;
  white-space: nowrap;
}

.site-header .nav a,
.site-header .nav button {
  padding-inline: 9px;
}

.site-header .util {
  flex: none;
  margin-left: auto;
  white-space: nowrap;
}

.site-header.drawer-visible {
  z-index: 61;
}

.site-header .mega {
  max-height: calc(100dvh - var(--nav-h, 56px) - env(safe-area-inset-top, 0px) - 8px);
  overflow-y: auto;
}

.drawer#drawer {
  top: calc(var(--nav-h, 56px) + env(safe-area-inset-top, 0px) + 8px);
  right: 16px;
  bottom: auto;
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--nav-h, 56px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  overscroll-behavior: contain;
  border-radius: 12px;
  transition: opacity .28s cubic-bezier(.16, 1, .3, 1), transform .42s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

@media (max-width: 1499px) {
  .site-header .nav,
  .site-header .util .hide-md {
    display: none;
  }

  .site-header .menu-btn {
    display: inline-flex !important;
  }

  .site-header .mega {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .site-header .bar {
    padding-inline: 12px;
    gap: 8px;
  }

  .site-header a.logo,
  .site-header a.logo:hover {
    font-size: clamp(8px, calc(2.5vw + 2px), 10px);
  }
}
