                                                                   
nav[aria-label="Main navigation"] {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px min(5vw, 42px);
  border-bottom: 1px solid rgba(20, 22, 26, 0.08);
  background: linear-gradient(
    to bottom,
    rgb(var(--nc, 234 231 224) / var(--nk, 0)) 62%,
    transparent
  );
}
nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navtx, #14161a);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
nav .brand .bm {
  display: block;
  width: 32px;
  height: auto;
}
nav .brand .bm path {
  fill: var(--navtx, #14161a);
}
nav .navright {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--navtx, #14161a);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}
nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--navdim, #5c6470);
  cursor: pointer;
}
nav .lang:hover {
  color: var(--navtx, #14161a);
}
#langbtn[hidden],
#langmenu[hidden] {
  display: none !important;
}
.lcaret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}
#langmenu {
  position: fixed;
  top: 65px;
  right: min(5vw, 42px);
  z-index: 60;
  display: none;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  border: 1px solid rgba(20, 22, 26, 0.18);
  border-radius: 4px;
  background: #eae7e0;
  box-shadow: 0 15px 40px -25px #14161a;
  backdrop-filter: none;
}
#langmenu.open {
  display: flex;
}
#langmenu :is(button,a) {
  padding: 11px 12px;
  border: 0;
  border-radius: 2px;
  background: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-align: left;
  color: #5c6470;
  cursor: pointer;
}
#langmenu :is(button,a):hover,
#langmenu :is(button,a):focus-visible {
  background: rgba(20, 22, 26, 0.06);
  color: #14161a;
}
#langmenu :is(button,a).on {
  color: #14161a;
}
nav a:focus-visible,
nav button:focus-visible,
#langmenu :is(button,a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
@media (max-width: 480px) {
  nav .navright {
    gap: 16px;
  }
  nav .nav-link {
    font-size: 13px;
  }
  nav .brand {
    font-size: 15px;
    gap: 8px;
  }
  nav .brand .bm {
    width: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link::after {
    transition: none;
  }
}
