/* Сквозная шапка Levam (тёмная, единая для главной, внутренних страниц и /docs).
   Классы sh-* намеренно не пересекаются со старым style.css и docs.css. */

:root {
  --sh-bg: rgba(10, 14, 22, 0.92);
  --sh-border: rgba(148, 163, 184, 0.16);
  --sh-text: #e6eaf2;
  --sh-text-soft: #9aa7ba;
  --sh-accent: #3b82f6;
  --sh-accent-hover: #2f6fd8;
  --sh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-header[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sh-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sh-border);
  font-family: var(--sh-font);
}

.site-header[data-site-header] .sh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header[data-site-header] a { text-decoration: none; }

.sh-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--sh-text) !important;
}

.sh-logo .sh-logo-mark { width: 26px; height: 26px; flex: none; }

.sh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.sh-nav a,
.sh-actions a {
  color: var(--sh-text-soft) !important;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.sh-nav a:hover,
.sh-actions a:hover {
  color: var(--sh-text) !important;
  background: rgba(148, 163, 184, 0.1);
  text-decoration: none;
}

.sh-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sh-actions .sh-cta {
  background: var(--sh-accent);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
}

.sh-actions .sh-cta:hover { background: var(--sh-accent-hover); color: #fff !important; }

.sh-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.sh-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--sh-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 960px) {
  .sh-nav,
  .sh-actions { display: none; }

  .sh-burger { display: block; }

  .site-header[data-site-header].sh-open .sh-container { flex-wrap: wrap; padding-bottom: 14px; }

  .site-header[data-site-header].sh-open .sh-nav,
  .site-header[data-site-header].sh-open .sh-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 2px;
  }

  .site-header[data-site-header].sh-open .sh-nav a,
  .site-header[data-site-header].sh-open .sh-actions a { padding: 11px 12px; font-size: 15px; }

  .site-header[data-site-header].sh-open .sh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header[data-site-header].sh-open .sh-burger span:nth-child(2) { opacity: 0; }
  .site-header[data-site-header].sh-open .sh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
