/* Голонет: общая дизайн-система (сайт и кабинет). Подключать ПЕРВЫМ. Описание: hub_site/DESIGN.md.
   Токены в :root (тёмная «Космос»). Светлая «Татуин»: [data-theme="light"], без атрибута — prefers-color-scheme.
   Префикс компонентов: hn-. Без внешних ресурсов. */

/* ===== Токены ===== */
:root {
  color-scheme: dark;
  --hn-bg: #0a0c12;
  --hn-panel: #11141c;
  --hn-panel-2: #171b25;
  --hn-line: #222836;
  --hn-text: #e8ecf3;
  --hn-muted: #8b94a7;
  --hn-accent: #3fa9ff;
  --hn-accent-hover: #8fd0ff;
  --hn-on-accent: #0a0c12;
  --hn-gold: #f5c542;
  --hn-on-gold: #0a0c12;
  --hn-danger: #ff4d3d;
  --hn-on-danger: #0a0c12;
  --hn-success: #3ddc97;
  --hn-warn: #f5a524;
  --hn-focus: #3fa9ff;
  --hn-star: rgba(232, 236, 243, .55);
  --hn-backdrop: rgba(5, 6, 10, .72);
  --hn-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  --hn-radius: 12px;
  --hn-radius-sm: 8px;
  --hn-gutter: 16px;
  --hn-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hn-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --hn-bg: #f6f1e7;
    --hn-panel: #fffdf8;
    --hn-panel-2: #efe9dc;
    --hn-line: #e3dccb;
    --hn-text: #1b1a17;
    --hn-muted: #6d665a;
    --hn-accent: #1d62d4;
    --hn-accent-hover: #174fae;
    --hn-on-accent: #ffffff;
    --hn-gold: #b7791f;
    --hn-on-gold: #1b1a17;
    --hn-danger: #c02a1e;
    --hn-on-danger: #ffffff;
    --hn-success: #0f7a50;
    --hn-warn: #9a5600;
    --hn-focus: #1d62d4;
    --hn-star: rgba(27, 26, 23, .25);
    --hn-backdrop: rgba(27, 26, 23, .35);
    --hn-shadow: 0 16px 48px rgba(60, 45, 15, .18);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --hn-bg: #f6f1e7;
  --hn-panel: #fffdf8;
  --hn-panel-2: #efe9dc;
  --hn-line: #e3dccb;
  --hn-text: #1b1a17;
  --hn-muted: #6d665a;
  --hn-accent: #1d62d4;
  --hn-accent-hover: #174fae;
  --hn-on-accent: #ffffff;
  --hn-gold: #b7791f;
  --hn-on-gold: #1b1a17;
  --hn-danger: #c02a1e;
  --hn-on-danger: #ffffff;
  --hn-success: #0f7a50;
  --hn-warn: #9a5600;
  --hn-focus: #1d62d4;
  --hn-star: rgba(27, 26, 23, .25);
  --hn-backdrop: rgba(27, 26, 23, .35);
  --hn-shadow: 0 16px 48px rgba(60, 45, 15, .18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --hn-bg: #0a0c12;
  --hn-panel: #11141c;
  --hn-panel-2: #171b25;
  --hn-line: #222836;
  --hn-text: #e8ecf3;
  --hn-muted: #8b94a7;
  --hn-accent: #3fa9ff;
  --hn-accent-hover: #8fd0ff;
  --hn-on-accent: #0a0c12;
  --hn-gold: #f5c542;
  --hn-on-gold: #0a0c12;
  --hn-danger: #ff4d3d;
  --hn-on-danger: #0a0c12;
  --hn-success: #3ddc97;
  --hn-warn: #f5a524;
  --hn-focus: #3fa9ff;
  --hn-star: rgba(232, 236, 243, .55);
  --hn-backdrop: rgba(5, 6, 10, .72);
  --hn-shadow: 0 16px 48px rgba(0, 0, 0, .5);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--hn-bg);
  color: var(--hn-text);
  font: 400 1rem/1.6 var(--hn-font);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--hn-text);
  line-height: 1.2;
  font-weight: 650;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--hn-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ссылки: подчёркивание «световой меч» (линия растёт при наведении) */
.hn-link,
main a:not([class]),
.hn-footer a {
  position: relative;
  color: var(--hn-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.hn-link::after,
main a:not([class])::after,
.hn-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--hn-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s ease;
  pointer-events: none;
}
.hn-link:hover::after,
main a:not([class]):hover::after,
.hn-footer a:hover::after,
.hn-link:focus-visible::after { transform: scaleX(1); }
.hn-link:hover,
main a:not([class]):hover,
.hn-footer a:hover { color: var(--hn-accent-hover); }

.hn-shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--hn-gutter);
}
@media (min-width: 720px) { :root { --hn-gutter: 24px; } }

.hn-main { padding-top: 40px; padding-bottom: 96px; min-height: 60vh; }
.hn-main p, .hn-main li { max-width: 70ch; }
.hn-section { margin: 0 0 64px; }
.hn-section > h2 { margin-bottom: 20px; }
.hn-section > h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--hn-gold);
}

.hn-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--hn-gold);
  color: var(--hn-on-gold);
  border-radius: var(--hn-radius-sm);
}
.hn-skip:focus { top: 8px; }

.hn-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--hn-text);
  max-width: 62ch;
}
.hn-note {
  font-size: .875rem;
  color: var(--hn-muted);
  margin: 0 0 .75rem;
}
.hn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 .8rem/1.2 var(--hn-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hn-muted);
}
.hn-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--hn-gold);
}

.hn-code, .hn-kbd {
  font-family: var(--hn-mono);
  font-size: .9em;
  padding: 2px 6px;
  background: var(--hn-panel-2);
  border: 1px solid var(--hn-line);
  border-radius: 6px;
}
.hn-kbd { border-bottom-width: 2px; }

/* ===== Шапка ===== */
.hn-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hn-bg);
  border-bottom: 1px solid var(--hn-line);
}
.hn-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.hn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hn-text);
  text-decoration: none;
  min-height: 44px;
}
.hn-brand img { width: 36px; height: 36px; }
.hn-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.hn-brand__name small {
  font-size: .7rem;
  font-weight: 400;
  color: var(--hn-muted);
  letter-spacing: .02em;
}
.hn-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 4px;
  width: 100%;
}
.hn-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--hn-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.hn-nav__links a:hover { color: var(--hn-text); border-bottom-color: var(--hn-line); }
.hn-nav__links a[aria-current="page"] { color: var(--hn-text); border-bottom-color: var(--hn-gold); }
.hn-nav__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 960px) {
  .hn-nav__links { order: 2; width: auto; flex: 1 1 auto; justify-content: center; }
  .hn-nav__tools { order: 3; }
}

/* ===== Кнопки ===== */
.hn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--hn-radius-sm);
  background: transparent;
  color: var(--hn-text);
  font: 600 .95rem/1.2 var(--hn-font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.hn-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hn-btn:disabled, .hn-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.hn-btn--primary { background: var(--hn-gold); color: var(--hn-on-gold); }
.hn-btn--primary:hover:not(:disabled) { opacity: .9; color: var(--hn-on-gold); }
.hn-btn--secondary { border-color: var(--hn-line); color: var(--hn-text); background: var(--hn-panel); }
.hn-btn--secondary:hover:not(:disabled) { border-color: var(--hn-accent); color: var(--hn-accent); }
.hn-btn--ghost { color: var(--hn-muted); }
.hn-btn--ghost:hover:not(:disabled) { color: var(--hn-text); background: var(--hn-panel-2); }
.hn-btn--danger { background: var(--hn-danger); color: var(--hn-on-danger); }
.hn-btn--danger:hover:not(:disabled) { opacity: .9; color: var(--hn-on-danger); }
.hn-btn--sm { min-height: 44px; padding: 8px 14px; font-size: .875rem; }
.hn-btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.hn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }

/* Переключатель темы */
.hn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--hn-line);
  border-radius: 999px;
  background: var(--hn-panel);
  color: var(--hn-text);
  font: 500 .9rem/1.2 var(--hn-font);
  cursor: pointer;
  transition: border-color .2s;
}
.hn-toggle:hover { border-color: var(--hn-accent); }
.hn-toggle svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hn-toggle .hn-icon-sun,
.hn-toggle .hn-lbl-light { display: none; }
:root[data-theme="light"] .hn-toggle .hn-icon-sun,
:root[data-theme="light"] .hn-toggle .hn-lbl-light { display: inline; }
:root[data-theme="light"] .hn-toggle .hn-icon-moon,
:root[data-theme="light"] .hn-toggle .hn-lbl-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hn-toggle .hn-icon-sun,
  :root:not([data-theme="dark"]) .hn-toggle .hn-lbl-light { display: inline; }
  :root:not([data-theme="dark"]) .hn-toggle .hn-icon-moon,
  :root:not([data-theme="dark"]) .hn-toggle .hn-lbl-dark { display: none; }
}
@media (max-width: 420px) { :root .hn-toggle .hn-lbl-dark, :root .hn-toggle .hn-lbl-light { display: none !important; } }

/* ===== Панели и сетки ===== */
.hn-card {
  position: relative;
  background: var(--hn-panel);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 20px;
  margin: 0 0 20px;
}
.hn-card--link { transition: border-color .2s; }
.hn-card--link:hover { border-color: var(--hn-accent); }
.hn-card__title { margin: 0 0 6px; font-size: 1.1rem; }
.hn-card__title a { color: var(--hn-text); text-decoration: none; }
.hn-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hn-card__text { color: var(--hn-muted); margin: 0 0 .8em; }
.hn-card > :last-child { margin-bottom: 0; }

.hn-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 20px; }
.hn-grid--2, .hn-grid--3 { gap: 20px; }
@media (min-width: 640px) {
  .hn-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (min-width: 720px) {
  .hn-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hn-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Формы ===== */
.hn-field { display: grid; gap: 6px; margin: 0 0 16px; }
.hn-label { font-size: .9rem; font-weight: 600; color: var(--hn-text); }
.hn-input,
.hn-select,
.hn-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--hn-panel);
  color: var(--hn-text);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius-sm);
  font: 400 1rem/1.4 var(--hn-font);
  transition: border-color .2s;
}
.hn-textarea { min-height: 96px; resize: vertical; }
.hn-input::placeholder, .hn-textarea::placeholder { color: var(--hn-muted); opacity: .8; }
.hn-input:focus, .hn-select:focus, .hn-textarea:focus {
  outline: 2px solid var(--hn-focus);
  outline-offset: 1px;
  border-color: transparent;
}
.hn-input[aria-invalid="true"] { border-color: var(--hn-danger); }
.hn-switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hn-line);
  cursor: pointer;
  transition: background-color .2s;
}
.hn-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hn-muted);
  transition: transform .2s, background-color .2s;
}
.hn-switch:checked { background: var(--hn-accent); }
.hn-switch:checked::after { transform: translateX(20px); background: var(--hn-on-accent); }
.hn-switch:disabled { opacity: .5; cursor: not-allowed; }
.hn-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

/* ===== Таблица ===== */
.hn-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--hn-line); border-radius: var(--hn-radius); }
.hn-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hn-table th,
.hn-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hn-line);
  vertical-align: top;
}
.hn-table th { font-weight: 600; color: var(--hn-muted); font-size: .85rem; }
.hn-table tr:last-child td { border-bottom: 0; }
.hn-num { font-family: var(--hn-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* ===== Бейджи ===== */
.hn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--hn-line);
  border-radius: 999px;
  font: 500 .75rem/1.4 var(--hn-mono);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--hn-muted);
  background: var(--hn-panel-2);
  margin: 0 0 .5em;
  white-space: nowrap;
}
.hn-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.hn-badge--ok { color: var(--hn-success); border-color: color-mix(in srgb, var(--hn-success) 45%, transparent); background: color-mix(in srgb, var(--hn-success) 12%, transparent); }
.hn-badge--warn { color: var(--hn-warn); border-color: color-mix(in srgb, var(--hn-warn) 45%, transparent); background: color-mix(in srgb, var(--hn-warn) 12%, transparent); }
.hn-badge--bad { color: var(--hn-danger); border-color: color-mix(in srgb, var(--hn-danger) 45%, transparent); background: color-mix(in srgb, var(--hn-danger) 12%, transparent); }
.hn-badge--info { color: var(--hn-accent); border-color: color-mix(in srgb, var(--hn-accent) 45%, transparent); background: color-mix(in srgb, var(--hn-accent) 12%, transparent); }
.hn-badge--gold { color: var(--hn-text); border-color: color-mix(in srgb, var(--hn-gold) 60%, transparent); background: color-mix(in srgb, var(--hn-gold) 18%, transparent); }
.hn-badge--muted { color: var(--hn-muted); }
.hn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--hn-muted); vertical-align: middle; }
.hn-dot--ok { background: var(--hn-success); }
.hn-dot--warn { background: var(--hn-warn); }
.hn-dot--bad { background: var(--hn-danger); }

/* ===== Метрики ===== */
.hn-stat {
  background: var(--hn-panel);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 20px;
}
.hn-stat__label { font-size: .875rem; color: var(--hn-muted); margin: 0 0 6px; }
.hn-stat__value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0;
}
.hn-stat__delta { display: inline-flex; gap: 6px; margin: 8px 0 0; font: 500 .85rem/1.2 var(--hn-mono); color: var(--hn-muted); }
.hn-stat__delta--up { color: var(--hn-success); }
.hn-stat__delta--down { color: var(--hn-danger); }
.hn-stat__delta--flat { color: var(--hn-muted); }

/* ===== График (inline SVG из Holonet.spark) ===== */
.hn-chart {
  width: 100%;
  background: var(--hn-panel);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 12px;
}
.hn-chart svg { width: 100%; height: auto; overflow: visible; }
.hn-chart__grid { stroke: var(--hn-line); stroke-width: 1; }
.hn-chart__axis { fill: var(--hn-muted); font: 500 11px var(--hn-mono); }
.hn-chart__line { fill: none; stroke: var(--hn-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hn-chart__area { fill: var(--hn-accent); opacity: .12; }
.hn-chart__dot { fill: var(--hn-gold); }

/* ===== Вкладки, прогресс ===== */
.hn-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--hn-line);
  margin: 0 0 20px;
}
.hn-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--hn-muted);
  font: 600 .95rem/1.2 var(--hn-font);
  cursor: pointer;
}
.hn-tab:hover { color: var(--hn-text); }
.hn-tab[aria-selected="true"] { color: var(--hn-text); border-bottom-color: var(--hn-gold); }

.hn-progress { height: 6px; border-radius: 999px; background: var(--hn-line); overflow: hidden; }
.hn-progress__bar { height: 100%; width: 0; border-radius: inherit; background: var(--hn-accent); transition: width .3s ease; }

/* ===== QR, пустые и загрузочные состояния ===== */
.hn-qr {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
}
.hn-qr img, .hn-qr svg { display: block; width: 100%; height: auto; }

.hn-empty { text-align: center; padding: 40px 16px; color: var(--hn-muted); }
.hn-empty__title { color: var(--hn-text); font-weight: 600; margin: 0 0 6px; }

.hn-skeleton {
  display: block;
  min-height: 1em;
  border-radius: var(--hn-radius-sm);
  background: linear-gradient(90deg, var(--hn-panel-2), var(--hn-line), var(--hn-panel-2));
  background-size: 200% 100%;
  animation: hn-shimmer 1.6s linear infinite;
}
@keyframes hn-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== Уведомления ===== */
.hn-toasts {
  position: fixed;
  top: 88px;
  right: 16px;
  left: 16px;
  z-index: 1000;
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin-left: auto;
  pointer-events: none;
}
.hn-toast {
  pointer-events: auto;
  padding: 12px 16px;
  background: var(--hn-panel);
  color: var(--hn-text);
  border: 1px solid var(--hn-line);
  border-left: 3px solid var(--hn-accent);
  border-radius: var(--hn-radius-sm);
  font-size: .95rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.hn-toast.is-on { opacity: 1; transform: none; }
.hn-toast--ok { border-left-color: var(--hn-success); }
.hn-toast--warn { border-left-color: var(--hn-warn); }
.hn-toast--bad { border-left-color: var(--hn-danger); }
.hn-toast--info { border-left-color: var(--hn-accent); }

/* ===== Модалка (единственный элемент с тенью) ===== */
.hn-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--hn-backdrop);
}
.hn-modal {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  background: var(--hn-panel);
  color: var(--hn-text);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  box-shadow: var(--hn-shadow);
}
.hn-modal__title { font-size: 1.2rem; margin: 0 0 8px; }
.hn-modal__text { color: var(--hn-muted); margin: 0 0 20px; }
.hn-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ===== Герой (главная) ===== */
.hn-hero { padding: 72px 0 56px; margin: 0 0 48px; }
.hn-hero--stars {
  background-image:
    radial-gradient(1px 1px at 8% 22%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 22% 64%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 41% 18%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 74%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 79% 34%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 82%, var(--hn-star) 50%, transparent 52%),
    radial-gradient(1px 1px at 55% 92%, var(--hn-star) 50%, transparent 52%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.hn-hero h1 { margin-bottom: 20px; }

/* ===== Подвал ===== */
.hn-footer {
  border-top: 1px solid var(--hn-line);
  padding: 40px 0 48px;
  font-size: .9rem;
  color: var(--hn-muted);
}
.hn-footer__grid { display: grid; gap: 14px; }
.hn-footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.hn-footer__links a { color: var(--hn-text); display: inline-flex; align-items: center; min-height: 44px; }
.hn-footer__status { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 .85rem/1.4 var(--hn-mono); }
.hn-footer__status span[title] { cursor: help; }
.hn-footer__joke { margin: 0; font-style: italic; color: var(--hn-muted); }
.hn-footer__copy { margin: 0; font-size: .8rem; }

/* ===== Доступность движения ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hn-skeleton { animation: none; }
}
