.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99999;
  background: linear-gradient(180deg, #000000 0%, rgba(22, 26, 53, 0) 100%);
  padding: 1.5rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text);
}

.nav-links a {
  display: inline-block;
  padding: 6px 4px;
  border-radius: 4px;
      transition: transform 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.05);
    color: white;
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-links--center {
  justify-content: center;
  flex: 1;
}

.button-header {
  width: auto;
  height: auto;
  padding: 8px 16px;
  font-size: 12px;
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Hamburger (hidden on desktop) ─── */

.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ─── Dropdown panel (hidden by default) ─── */

.site-header__dropdown {
  display: none;
}

/* ─── Tablet / mobile ─── */

@media (max-width: 1076px) {

  .nav-links,
  .button-header {
    display: none;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-header__hamburger {
    display: flex;
    margin-left: 0;
  }

  /* Dropdown panel */
  .site-header__dropdown {
    position: fixed;
    top: 62px;
    right: 12px;
    width: 230px;
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 8px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: none;
    flex-direction: column;
    gap: 4px;
  }

  .site-header.is-open .site-header__dropdown {
    display: flex;
    animation: dropdown-in 0.18s ease;
  }

  @keyframes dropdown-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-header__dropdown-nav {
    display: flex;
    flex-direction: column;
  }

  .site-header__dropdown-nav a {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    padding: 11px 14px;
    border-radius: 8px;
    display: block;
  }

  .site-header__dropdown-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-header__dropdown-nav a.active {
    font-weight: 600;
    color: #ffffff;
  }

  .button-header--dropdown {
    display: flex;
    margin: 4px 6px 0;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Hamburger → X */
  .site-header.is-open .site-header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .site-header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .site-header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
