.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--muted, #475569);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #fff;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.site-nav a.active:hover {
  color: #fff;
  background: #1e293b;
  transform: translateY(-1px);
}

html {
  scroll-padding-top: 5.5rem;
}

@media (max-width: 700px) {
  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.03);
    color: #0f172a;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .menu-toggle:hover {
    background: rgba(29, 78, 216, 0.08);
    transform: translateY(-1px);
  }

  .site-nav {
    position: static;
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    z-index: 30;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    text-align: center;
    background: rgba(148, 163, 184, 0.06);
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: #0f172a;
    color: #fff;
  }

  .site-nav a:hover,
  .site-nav a.active:hover {
    transform: none;
  }
}
