html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(-125%);
  opacity: 0;
  z-index: 150;
  padding: 0.65rem 1rem;
  background: var(--brand, rgba(220, 199, 141, 0.95));
  color: #030303;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  border-bottom-right-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand, rgba(220, 199, 141, 0.95));
  outline-offset: 3px;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(220, 199, 141, 0.25);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 95;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.95), rgba(7, 8, 11, 0.78));
}

@supports (backdrop-filter: blur(0)) {
  .nav {
    background-color: rgba(7, 8, 11, 0.74);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 36px);
  padding: 16px clamp(20px, 4vw, 48px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text, rgba(255, 255, 255, 0.88));
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand strong {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.brand span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text, rgba(255, 255, 255, 0.88));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, border 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
}

.nav-links a[aria-current="page"] {
  border-color: rgba(220, 199, 141, 0.65);
  background: rgba(220, 199, 141, 0.18);
  color: var(--brand, rgba(220, 199, 141, 0.95));
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, rgba(255, 255, 255, 0.88));
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.hamburger:hover,
.hamburger:focus-visible {
  border-color: var(--brand, rgba(220, 199, 141, 0.95));
  background: rgba(255, 255, 255, 0.08);
}

.hamburger svg {
  width: 20px;
  height: 20px;
}

.nav.open .nav-links {
  display: flex;
}

@media (max-width: 980px) {
  .hamburger {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    margin: 12px 0 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 7, 10, 0.96);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65);
    gap: 12px;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-inner {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .nav-links,
  .nav-inner,
  .hamburger {
    transition: none !important;
  }
}

[id] {
  scroll-margin-top: 96px;
}
