.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 13, 27, .88);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.nav {
  position: relative;
  width: min(calc(100% - 40px), 1180px);
  height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav .brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f7f8fc;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.nav .brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: #a9b3c9; text-decoration: none; font-size: 15px; font-weight: 650; }
.nav-links > a:hover { color: #f7f8fc; }
.nav .button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8aeff, #a9d79b);
  color: #171022;
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 12px 32px rgba(174, 146, 235, .18);
}
.nav .button:hover { color: #171022; filter: brightness(1.05); }

.nav-toggle, .mobile-nav { display: none; }
.nav-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(201, 214, 242, .18);
  border-radius: 15px;
  background: #182137;
  color: #f7f8fc;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .menu-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: block; }

.mobile-nav {
  position: absolute;
  z-index: 60;
  top: calc(100% - 2px);
  right: 0;
  width: min(340px, 100%);
  padding: 12px;
  gap: 4px;
  border: 1px solid rgba(201, 214, 242, .16);
  border-radius: 22px;
  background: #11182a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.mobile-nav > a:not(.button) { min-height: 48px; padding: 12px 14px; display: flex; align-items: center; border-radius: 12px; color: #a9b3c9; text-decoration: none; font-weight: 650; }
.mobile-nav > a:not(.button):hover, .mobile-nav > a:not(.button):focus-visible { background: rgba(203, 177, 255, .09); color: #f7f8fc; }
.mobile-nav > .button { width: 100%; margin-top: 6px; }

.nav-language { flex: 0 0 auto; }
.nav-language .language-option { width: 40px; height: 40px; }
.nav .header-meta { display: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav:not([hidden]) { display: grid; }
  .nav-language .language-option[aria-current="page"] { display: none; }
}

@media (max-width: 620px) {
  .nav { width: min(calc(100% - 28px), 1180px); height: 68px; gap: 12px; }
  .nav .brand { font-size: 19px; gap: 10px; }
  .nav .brand img { width: 42px; height: 42px; }
}
