/* Luna Mix: header alignment, sticky navigation and optional submenus. */
.header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #161616;
}
.header.header--absolute { position: fixed; }
.header-wrap { align-items: center; }
.header-logo-text:empty { display: none; }
.header-logo-img { width: 250px; height: auto; aspect-ratio: 1920 / 186; }
.header-logo-img img { display: block; }
.header-menu > li { position: relative; }
.header-menu-row { display: flex; align-items: center; }
.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
}
.header-menu-toggle:hover { color: var(--sea-100); }
.header-menu a:focus-visible, .header-menu-toggle:focus-visible { outline: 2px solid var(--sea-100); outline-offset: 4px; }
.header-menu-toggle svg { transition: transform .2s; }
.header-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-submenu {
  display: none;
  position: absolute;
  left: -16px;
  top: 100%;
  min-width: 210px;
  max-width: min(360px, 85vw);
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border: 1px solid var(--w-3);
  border-radius: 12px;
  background: #161616;
  box-shadow: 0 12px 28px #0005;
  z-index: 310;
}
.header-menu-item--dropdown.is-submenu-open > .header-submenu { display: block; }
.header-menu .header-submenu a { display: block; padding: 10px 16px; line-height: 1.4; white-space: normal; }
.header-menu .header-submenu a:hover { background: var(--w-5); }
html { scroll-padding-top: 110px; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-logo-img { width: 170px; }
  .header-contacts-top { gap: 14px; }
  .header-contacts-text { font-size: 11px; }
}
@media (max-width: 1199.98px) {
  .header-logo-img { width: 250px; }
  .header-menu { width: 100%; }
  .header-menu > li { width: 100%; }
  .header-menu-row { justify-content: space-between; gap: 8px; }
  .header-menu-toggle { width: 44px; height: 44px; margin: -8px 0; background: var(--w-5); }
  .header-submenu { position: static; min-width: 0; max-width: none; margin-top: 12px; box-shadow: none; }
}
@media (max-width: 991.98px) { .header-logo-img { width: 180px; } }
@media (prefers-reduced-motion: reduce) { .header-menu-toggle svg { transition: none; } }
