@media (min-width: 901px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: 0.25s ease;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: 0.25s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.open {
  border-color: var(--gold);
  color: var(--gold);
}

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

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

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

@media (max-width: 900px) {
  nav {
    position: relative;
  }

  .mobile-menu-btn {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    z-index: 20;
    display: flex !important;
    width: min(320px, calc(100vw - 12vw));
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.35;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }
}
