.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--mc-header-height);
  background: rgba(8, 18, 37, 0.96);
  border-bottom: 1px solid var(--mc-border);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--mc-header-height);
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--mc-text-muted);
  font-size: 0.96rem;
}

.site-nav a,
.nav-dropdown-toggle {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--mc-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mc-border-soft);
  border-radius: var(--mc-radius-md);
  background: var(--mc-surface-soft);
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mc-text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn-nav {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* DROPDOWN RISORSE */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mc-text-muted);
  font: inherit;
  font-size: 0.96rem;
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: 0.8rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 10px 0;
  background: rgba(8, 18, 37, 0.98);
  border: 1px solid var(--mc-border);
  border-radius: var(--mc-radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  z-index: 60;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 12px 16px;
  color: var(--mc-text-muted);
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--mc-text-main);
  background: rgba(47, 109, 246, 0.08);
}

@media (min-width: 901px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .site-nav {
    justify-self: center;
    justify-content: center;
  }

  .nav-right {
    justify-self: end;
  }

  .hamburger {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 18, 37, 0.98);
    border-bottom: 1px solid var(--mc-border);
    padding: 8px 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(52, 80, 127, 0.18);
  }

  .hamburger {
    display: flex;
  }

  .nav-right .btn-nav {
    display: none !important;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--mc-text-muted);
    border-bottom: 1px solid rgba(52, 80, 127, 0.18);
  }

  .nav-dropdown-menu {
    position: static;
    min-width: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(14, 27, 52, 0.7);
    padding: 0;
  }

  .nav-dropdown-menu a {
    padding: 12px 36px;
    font-size: 0.96rem;
    border-bottom: 1px solid rgba(52, 80, 127, 0.14);
  }
}

@media (max-width: 720px) {
  :root {
    --mc-header-height: 64px;
  }

  .brand-logo {
    height: 28px;
  }
}