.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg-hero);
  padding: 29px var(--section-padding-x);
}

.site-header__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  gap: clamp(2rem, 38vw, 542px);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 25px;
  box-sizing: border-box;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 23px;
  width: auto;
  filter: brightness(0);
}

.site-header__menu-btn {
  display: none;
  padding: var(--space-sm);
  align-items: center;
  justify-content: center;
}

.site-header__menu-icon {
  display: block;
}

.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  margin-left: auto;
}

.site-header__nav-list a {
  color: var(--color-text-on-light);
  transition: color var(--transition-fast);
}

.site-header__nav-list a:hover {
  color: var(--color-text-muted);
}

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.site-header__overlay.is-open {
  display: block;
}

.site-header__nav-panel {
  display: contents;
}

.site-header__nav-head,
.site-header__nav-close,
.site-header__nav-social {
  display: none;
}

@media (max-width: 900px) {
  .site-header__menu-btn {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #D9D9D9;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 101;
    overflow-y: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

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

  .site-header__nav-panel {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 55px 0;
    gap: clamp(2.5rem, 18vw, 177px);
    width: 100%;
    max-width: 295px;
    min-height: 100%;
    box-sizing: border-box;
  }

  .site-header__nav-head,
  .site-header__nav-close,
  .site-header__nav-social {
    display: flex;
  }

  .site-header__nav-head {
    flex-direction: row;
    align-items: center;
    gap: 143px;
    width: 100%;
    max-width: 295px;
    flex: none;
  }

  .site-header__nav-logo {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    letter-spacing: 0.02em;
    text-decoration: none;
    flex: none;
    transition: opacity var(--transition-fast);
  }

  .site-header__nav-logo:hover {
    opacity: 0.8;
    color: #000000;
  }

  .site-header__nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    flex: none;
    transition: opacity var(--transition-fast);
  }

  .site-header__nav-close:hover {
    opacity: 0.7;
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 19px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 35px;
    line-height: 42px;
    color: #000000;
  }

  .site-header__nav-list a {
    color: #000000;
    display: flex;
    align-items: center;
  }

  .site-header__nav-list a:hover {
    color: #333;
  }

  .site-header__nav-item--hide-mobile {
    display: none;
  }

  .site-header__nav-social {
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    flex: none;
  }

  .site-header__nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
  }

  .site-header__nav-social-link img {
    display: block;
    width: 32px;
    height: auto;
    filter: brightness(0);
  }
}
