.site-header {
  position: absolute;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 28px);
  min-height: var(--header-h);
  height: var(--header-h);
  padding-inline: clamp(18px, 1.3vw, 28px);
  background-color: var(--color-gray);
  border-radius: var(--radius);
  overflow: visible;
}

.logo {
  display: block;
  flex-shrink: 0;
  width: clamp(190px, 13.5vw, 260px);
  height: auto;
  max-height: calc(var(--header-h) - 16px);
  overflow: visible;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--header-h) - 20px);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: var(--nav-gap);
  min-width: 0;
}

.nav__link {
  font-size: var(--fs-nav);
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-orange);
}

.nav__link--active {
  color: var(--color-orange);
  font-weight: 500;
}

.site-header__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 110;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open .burger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1399px) {
  .nav {
    gap: clamp(10px, 1.2vw, 20px);
  }

  .nav__link {
    font-size: clamp(13px, 0.9vw, 16px);
  }
}

@media (max-width: 1199px) {
  .burger {
    display: flex;
  }

  .site-header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 100px var(--container-pad) 40px;
    background-color: rgba(19, 24, 28, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--color-gray);
    white-space: normal;
  }

  .nav__cta {
    display: flex;
    margin-top: 28px;
    justify-content: center;
  }

  body.is-menu-open {
    overflow: hidden;
  }
}

@media (min-width: 1200px) {
  .nav__cta {
    display: none;
  }
}
