/*
 * The header, one for every page (issue 084ae58a). The pages had grown their
 * own copies — different entries, a different hover colour, a translucent
 * background on one and not the others, a header that scrolled away on the
 * plugin pages — so it lives here once, as the home page has always drawn it.
 *
 * The entries are the same everywhere and in the same order:
 *   Возможности · Скачать · Плагины · Версии · Поддержка · Telegram · Связаться
 * «Плагины» is hidden until a plugin is published. The page you are on is
 * marked with aria-current="page" — for a screen reader as much as for the eye.
 */
/* Room for the scrollbar on every page, scrolling or not: without it the
   centred header moved sideways between a long page and a short one. */
html { scrollbar-gutter: stable; }

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 36px;
  height: 36px;
}
.nav-brand span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}
.nav-right {
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[hidden] { display: none; }
.nav-links a[aria-current="page"] { color: var(--text-heading); }
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  margin-left: 16px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--accent);
  color: var(--bg);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}
