.site-header {
  position: sticky;
  z-index: 1100;
  top: 0;
  height: 70px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(90%, 1140px);
  height: 100%;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  width: 147px;
  height: 40px;
}

.logo img {
  display: block;
  width: 130px;
  height: 40px;
  margin-left: 2px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links > a:not(.nav-button) {
  color: var(--black);
  font-size: var(--font-size-reading);
  font-weight: 300;
  line-height: 26px;
  white-space: nowrap;
}

.nav-button {
  display: flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: #fff;
  font-size: var(--font-size-secondary);
  line-height: 26px;
  white-space: nowrap;
  transition: box-shadow 160ms ease;
}

.nav-button:hover {
  box-shadow: 0 7px 18px rgba(17, 2, 40, 0.15);
}

.nav-button:focus-visible {
  outline: 3px solid rgba(157, 58, 255, 0.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-button {
    transition: none;
  }

}

.burger {
  display: none;
}

.burger:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(157, 58, 255, 0.35);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-header,
  .nav-wrap {
    height: 60px;
  }

  .nav-links {
    position: fixed;
    z-index: 1000;
    top: 60px;
    left: 0;
    flex-direction: column;
    gap: 30px;
    visibility: hidden;
    width: 100%;
    padding: 25px 0;
    transform: translateX(-100%);
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition:
      transform 0.3s ease,
      visibility 0s linear 0.3s;
  }

  .nav-links.nav-links-simple {
    position: static;
    visibility: visible;
    width: auto;
    flex-direction: row;
    gap: 0;
    padding: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
    transition: none;
  }

  .nav-wrap.open .nav-links {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .burger {
    position: relative;
    display: block;
    width: 25px;
    height: 29px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
  }

  .burger .bar {
    position: absolute;
    top: 13px;
    left: 0;
    display: block;
    width: 25px;
    height: 3px;
    margin: 0;
    border-radius: 1px;
    background: var(--black);
    transform-origin: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.25s ease;
    will-change: transform;
  }

  .burger .bar:nth-child(1) {
    transform: translateY(-8px);
  }

  .burger .bar:nth-child(2) {
    transition:
      opacity 0.01s linear 0.12s,
      transform 0.01s linear 0.12s;
  }

  .burger .bar:nth-child(3) {
    transform: translateY(8px);
  }

  .nav-wrap.open .bar:nth-child(1) {
    transform: rotate(45deg);
  }

  .nav-wrap.open .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    transition: none;
  }

  .nav-wrap.open .bar:nth-child(3) {
    transform: rotate(-45deg);
  }
}
