/* XSAITE · единая космическая тема */
:root {
  --bg: #020208;
  --bg2: #0a0418;
  --text: #e8ecf4;
  --muted: #9aa4c8;
  --line: rgba(170,180,255,0.16);
  --neon: #7aa2ff;
  --neon2: #c792ea;
  --neon3: #56d8ff;
}

html.stx, html.stx body {
  background: radial-gradient(120% 90% at 20% 10%, #0d0724 0%, #020208 45%, #02040e 100%) fixed !important;
  background-color: #020208 !important;
  color: #e8ecf4;
}

body.stx *::-webkit-scrollbar { width: 10px; height: 10px; }
body.stx *::-webkit-scrollbar-thumb { background: rgba(122,162,255,0.35); border-radius: 10px; }
body.stx *::-webkit-scrollbar-track { background: transparent; }

/* ── Единая шапка ── */
.stx-nav {
  position: relative;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(2,2,10,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  flex-wrap: wrap;
  position: sticky;
}
.stx-nav .stx-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.stx-nav .stx-brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--neon3);
  box-shadow: 0 0 12px var(--neon3);
  display: inline-block;
}
.stx-nav .stx-menu {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.stx-nav .stx-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: all .2s;
}
.stx-nav .stx-menu a:hover {
  color: var(--text);
  background: rgba(122,162,255,0.12);
  border-color: var(--line);
}
.stx-nav .stx-menu a.stx-here {
  color: #fff;
  background: linear-gradient(120deg, rgba(122,162,255,0.28), rgba(199,146,234,0.22));
  border-color: rgba(122,162,255,0.4);
}

/* ── Выпадающее подменю ── */
.stx-nav .stx-menu .stx-drop { position: relative; }
.stx-nav .stx-menu .stx-dropbtn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}
.stx-nav .stx-menu .stx-dropbtn:hover {
  color: var(--text);
  background: rgba(122,162,255,0.12);
  border-color: var(--line);
}
.stx-nav .stx-menu .stx-caret { font-size: 10px; opacity: .8; }
.stx-nav .stx-menu .stx-dropcontent {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: rgba(8,10,26,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  z-index: 1100;
}
.stx-nav .stx-menu .stx-drop.stx-open .stx-dropcontent { display: block; }
.stx-nav .stx-menu .stx-dropcontent a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
}
.stx-nav .stx-menu .stx-dropcontent a:hover {
  color: var(--text);
  background: rgba(122,162,255,0.15);
}
.stx-nav .stx-menu .stx-dropcontent a.stx-here {
  color: #fff;
  background: linear-gradient(120deg, rgba(122,162,255,0.3), rgba(199,146,234,0.24));
}

/* ── Единый подвал ── */
.stx-footer {
  margin-top: 40px;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: rgba(2,2,10,0.6);
}
.stx-footer .stx-foot-links { margin-top: 8px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stx-footer .stx-foot-links a { color: var(--neon); text-decoration: none; font-size: 12.5px; }
.stx-footer .stx-foot-links a:hover { color: var(--text); }

/* Отступ под фиксированную шапку, если понадобится */
body.stx-pad { padding-top: 0; }