body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 32, 51, 0.07);
  box-shadow: 0 10px 24px rgba(34, 58, 84, 0.045);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  overflow: visible;
}

.brand-logo {
  width: 220px;
  height: auto;
  max-width: none;
  min-width: 220px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(18, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-icon line {
  stroke: #19324a;
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-icon line:nth-of-type(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-icon line:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-icon line:nth-of-type(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-menu {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: clamp(0.4rem, 1vw, 0.7rem);
  align-items: center;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: #31475d;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-list a:hover {
  background: rgba(234, 246, 247, 0.9);
  border-color: rgba(14, 174, 222, 0.12);
  color: #102235;
}

.nav-list a[aria-current="page"] {
  background: linear-gradient(180deg, rgba(245, 250, 250, 0.98), rgba(248, 244, 239, 0.96));
  color: #17324d;
  border-color: rgba(14, 174, 222, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(58, 92, 120, 0.05);
}

.nav-list a[aria-current="page"]:hover {
  background: linear-gradient(180deg, rgba(243, 250, 250, 1), rgba(247, 241, 235, 0.98));
  color: #13314a;
  border-color: rgba(14, 174, 222, 0.22);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.38rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(14, 174, 222, 0.95), rgba(243, 154, 79, 0.92));
}

@media (max-width: 1024px) {
  .nav-list {
    gap: 0.78rem;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 32, 51, 0.08);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: 0 20px 40px rgba(34, 58, 84, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .nav-list a {
    display: block;
    border-radius: 12px;
    padding: 0.72rem 0.82rem;
    font-size: 0.94rem;
  }

  .nav-list a:hover {
    border-color: rgba(18, 32, 51, 0.08);
  }

  .nav-list a[aria-current="page"] {
    box-shadow:
      inset 3px 0 0 rgba(14, 174, 222, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .nav-list a[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 176px;
    min-width: 176px;
  }
}
