.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  min-height: var(--header-h);
  position: relative;
  z-index: 50;
}

.site-header__inner {
  width: min(100% - 24px, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--header-fg);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo img,
.logo__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo__tag {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  max-width: 11rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav > li {
  position: relative;
}

.nav > li > a,
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--header-fg);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav > li > a:hover,
.nav__btn:hover {
  text-decoration: underline;
}

.nav__chevron::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #111;
  border: 1px solid #333;
  padding: 8px 0;
  z-index: 60;
}

.nav > li:hover > .nav__dropdown,
.nav > li:focus-within > .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #fff;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-contacts a {
  color: var(--header-fg);
  white-space: nowrap;
}

.header-contacts__icons {
  display: flex;
  gap: 10px;
}

.icon-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
  z-index: 100;
  padding: 24px;
  overflow: auto;
}

.menu-modal.is-open {
  display: block;
}

.menu-modal__close {
  float: right;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
}

.menu-modal nav {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.menu-modal a {
  color: #fff;
}

.menu-modal details {
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.menu-modal summary {
  cursor: pointer;
  list-style: none;
}

.menu-modal details a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

@media (max-width: 1099px) {
  .nav,
  .header-contacts {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}
