.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.94), rgba(12, 34, 65, 0.9));
  border-bottom: 1px solid rgba(217, 190, 122, 0.26);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-400) 46%, transparent 100%);
}

.site-header__inner {
  width: min(1180px, 94vw);
  margin-inline: auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.site-brand__logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(227, 201, 143, 0.45);
  background: rgba(8, 26, 50, 0.55);
  box-shadow: 0 4px 12px rgba(4, 11, 24, 0.24);
  flex-shrink: 0;
}

.site-brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.site-brand__text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  min-width: max-content;
}

.site-brand__title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.site-brand__subtitle {
  margin-top: 0;
  font-size: 0.56rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .site-brand__subtitle {
    display: none;
  }
}

@media (max-width: 599px) {
  .site-header__inner {
    min-height: 66px;
  }

  .site-brand__logo-wrap {
    width: 34px;
    height: 34px;
  }

  .site-brand__logo {
    width: 28px;
    height: 28px;
  }

  .site-brand__title {
    font-size: 0.95rem;
  }

  .site-brand__subtitle {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 430px) {
  .site-brand {
    gap: 0.5rem;
  }

  .site-brand__title {
    font-size: 0.9rem;
  }
}

.header-contact {
  display: none;
  text-decoration: none;
  color: #fff;
  font-size: 0.82rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-contact:hover,
.header-contact:focus-visible {
  border-color: rgba(217, 190, 122, 0.8);
}

.lang-switch {
  display: inline-flex;
  gap: 0.16rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.16rem;
}

.lang-switch button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.28rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
}

.lang-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: #fff;
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 74px 0 auto 0;
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.98), rgba(14, 37, 69, 0.98));
  border-bottom: 1px solid rgba(217, 190, 122, 0.35);
  max-height: calc(100dvh - 74px);
  overflow: auto;
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.nav-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list,
.subnav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  padding: 0.55rem 1rem 1.1rem;
}

.nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link,
.subnav-link,
.subnav-toggle {
  display: block;
  width: 100%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 0.38rem;
  font-size: 0.95rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.nav-item.has-children .nav-item__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.subnav-toggle {
  color: #fff;
}

.subnav-toggle::after {
  content: "+";
  color: var(--gold-400);
  font-size: 1.15rem;
}

.subnav-toggle[aria-expanded="true"]::after {
  content: "-";
}

.subnav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 200ms ease;
}

.subnav-list {
  overflow: hidden;
}

.subnav.is-open {
  grid-template-rows: 1fr;
}

.subnav-list > li {
  margin-left: 0.75rem;
}

.subnav-link {
  color: rgba(255, 255, 255, 0.76);
  padding-block: 0.52rem;
  font-size: 0.88rem;
}

.nav-link.is-active,
.subnav-link.is-active {
  color: #fff;
  font-weight: 700;
}

.nav-link.is-active {
  border-left: 3px solid var(--gold-500);
  padding-left: calc(0.38rem - 3px);
}

.nav-link.is-review,
.subnav-link.is-review {
  color: #f2d89e;
}

.nav-link.is-review::after,
.subnav-link.is-review::after {
  content: none;
}

@media (min-width: 1000px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1.3rem;
  }

  .header-contact {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-drawer {
    position: static;
    inset: auto;
    max-height: none;
    background: transparent;
    border: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: visible;
    transition: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    padding: 0;
  }

  .nav-item {
    border: none;
    position: relative;
  }

  .nav-item.has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.66rem 0.72rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 160ms ease, color 160ms ease;
  }

  .nav-link.is-active {
    border-left: none;
    padding-left: 0.72rem;
    background: rgba(217, 190, 122, 0.18);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .nav-item.has-children .nav-item__top {
    display: block;
  }

  .subnav-toggle {
    display: none;
  }

  .subnav {
    display: block;
    grid-template-rows: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    padding: 0.95rem 0.4rem 0.4rem;
    border-radius: 13px;
    border: 1px solid rgba(217, 190, 122, 0.32);
    background: #0d2a4f;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    max-height: min(72vh, 520px);
    overflow: auto;
    scrollbar-width: thin;
  }

  .nav-item:hover .subnav,
  .nav-item:focus-within .subnav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .subnav-list > li {
    margin-left: 0;
  }

  .subnav-link {
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    font-size: 0.84rem;
  }

  .subnav-link:hover,
  .subnav-link:focus-visible,
  .subnav-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}
