.site-header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 130;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-open .site-header {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.site-header--home {
  color: #fff;
}

.site-header--white {
  position: sticky;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 2rem;
}

.custom-logo-link,
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo {
  max-height: 64px;
  width: auto;
}

.site-title {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-navigation {
  display: none;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
    font-weight: 600;
}

.primary-menu li a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.header-contact-button {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: #000;
  border-color: #000;
  border-radius: 999px;
  min-width: 130px;
}

.header-contact-button:hover {
  background: #fff;
  color: #000;
}

.menu-open .header-contact-button {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.9rem 1.15rem;
  min-width: 132px;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-header--home .mobile-menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.site-header--white .mobile-menu-toggle {
  color: #111;
  border-color: rgba(17, 17, 17, 0.2);
}

.mobile-menu-toggle:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.site-header--home .mobile-menu-toggle:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.mobile-menu-toggle__label {
  line-height: 1;
}

.menu-open .mobile-menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.mobile-menu-icon::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.mobile-menu-icon::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 3vw, 3rem) 2rem;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  display: none;
}

.mobile-menu-logo {
  display: none;
}

.mobile-navigation {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.mobile-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem) clamp(2rem, 5vw, 5rem);
}

.mobile-primary-menu li {
  border-bottom: 0;
}

.mobile-primary-menu li a {
  display: block;
  padding: 0.2rem 0;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.mobile-primary-menu li a:hover,
.mobile-primary-menu li a:focus-visible {
  color: #fff;
}

.header-contact-button--mobile {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  .header-inner {
    justify-content: center;
    position: relative;
  }

  .header-left {
    text-align: center;
  }

  .header-right {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    gap: 0;
  }

  .header-right .header-contact-button,
  .header-right .primary-navigation,
  .mobile-menu-toggle__label {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-width: auto;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    justify-content: flex-start;
  }

  .custom-logo {
    max-height: 52px;
  }

  .mobile-menu-overlay {
    padding: 5.5rem 1rem 2rem;
  }

  .mobile-navigation {
    max-width: 100%;
  }

  .mobile-primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 4rem;
  }

  .mobile-primary-menu li,
  .mobile-primary-menu li a {
    width: 100%;
  }

  .mobile-primary-menu li a {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
  }
}
