body.menu-open {
  overflow: hidden;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

@keyframes subpageNavDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  nav {
    position: sticky;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(8, 10, 31, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .nav-links.open {
    display: flex !important;
    animation: subpageNavDrop 0.2s ease-out;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .nav-links a.is-active {
    background: rgba(232, 0, 13, 0.14);
  }

  .nav-links .nav-cta {
    min-height: 52px;
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }
}
