/* ===================================================
   乐道赛场 · /assets/site.css
   共享外壳样式：重置 / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   =================================================== */

/* ---------- 1. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h, 58px) + 12px);
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd, address { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

a { color: inherit; text-decoration: none; }

button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; height: 1px; background: rgba(110, 122, 117, .35); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --pitch-900: #0B2B1F;
  --pitch-800: #14432F;
  --pitch-700: #1C5A3F;
  --gold: #F2B437;
  --gold-soft: #FFD98A;
  --csl-red: #D62828;
  --cl-blue: #1B6CA8;
  --cyan: #35F2C0;
  --stoppage: #FF7A45;
  --tactic: #F4F7F5;
  --graphite: #1A1F1D;
  --line: #6E7A75;
  --line-bright: #8B9691;
  --paper: #EDE7DA;

  /* 尺寸 */
  --rail-w: 272px;
  --bar-h: 58px;
  --shell: 1280px;
  --gap: clamp(20px, 3vw, 40px);
  --corner: 20px;

  /* 字体栈 */
  --font-display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "Noto Sans Mono CJK SC",
               "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas,
               "PingFang SC", "Microsoft YaHei", monospace;
  --font-num: "Oswald", "Barlow Condensed", "Arial Narrow", Impact,
              "PingFang SC", system-ui, sans-serif;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(120% 55% at 100% 0%, rgba(53, 242, 192, .05), transparent 62%),
    var(--pitch-900);
  color: var(--tactic);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

strong { color: var(--gold-soft); font-weight: 700; }

::selection { background: var(--gold); color: var(--graphite); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
}

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--graphite);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .2s ease-out;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部：左侧赛季轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(130% 55% at 100% 0%, rgba(53, 242, 192, .07), transparent 60%),
    linear-gradient(170deg, #14432F 0%, #0B2B1F 46%, #08201A 100%);
  border-right: 1px solid rgba(242, 180, 55, .26);
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 180, 55, .4) transparent;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
    rgba(242, 180, 55, .55) 0 14px,
    transparent 14px 36px);
  opacity: .5;
}
.site-header::-webkit-scrollbar { width: 6px; }
.site-header::-webkit-scrollbar-thumb { background: rgba(242, 180, 55, .35); }

/* 品牌 */
.rail-brand { display: flex; flex-direction: column; gap: 14px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244, 247, 245, .14);
}

.brand__mark {
  flex: none;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 7px 5px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--graphite);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 72% 100%, 0 100%);
}

.brand__block { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .05em;
  color: var(--tactic);
}

.brand__line {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold-soft);
}

.rail-brand__note {
  padding-left: 10px;
  border-left: 2px solid rgba(53, 242, 192, .55);
  font-size: 12px;
  line-height: 1.85;
  color: rgba(244, 247, 245, .62);
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(242, 180, 55, .45);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease-out, opacity .2s ease-out;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 主导航 */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.site-nav__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--line-bright);
}
.site-nav__label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(110, 122, 117, .45);
}

.site-nav__list { display: flex; flex-direction: column; }

.site-nav__link {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 12px;
  border-left: 3px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  color: rgba(244, 247, 245, .72);
  transition: color .18s ease-out, border-color .18s ease-out, background .18s ease-out;
}

.site-nav__idx {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--line);
  transition: color .18s ease-out;
}

.site-nav__link:hover {
  color: var(--gold-soft);
  border-left-color: rgba(242, 180, 55, .5);
  background: linear-gradient(90deg, rgba(242, 180, 55, .1), transparent 76%);
}
.site-nav__link:hover .site-nav__idx { color: var(--gold); }

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(242, 180, 55, .18), transparent 80%);
}
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--cyan); }

/* 轨道底部 */
.rail-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 247, 245, .14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 247, 245, .7);
}
.rail-status__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 192, .16);
  animation: rail-pulse 2.4s ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}

.rail-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.rail-action {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--pitch-900);
  background: var(--gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .18s ease-out, transform .18s ease-out, color .18s ease-out;
}
.rail-action:hover { background: var(--gold-soft); transform: translateY(-2px); }

.rail-action--ghost {
  background: transparent;
  color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(242, 180, 55, .5);
}
.rail-action--ghost:hover { background: rgba(242, 180, 55, .14); color: var(--gold-soft); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #08201A 0%, #0B2B1F 100%);
  border-top: 1px solid rgba(242, 180, 55, .3);
  color: rgba(244, 247, 245, .78);
}

.footer__scan {
  height: 6px;
  background: repeating-linear-gradient(115deg,
    rgba(242, 180, 55, .85) 0 10px,
    transparent 10px 26px);
  opacity: .45;
}

.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 58px) clamp(20px, 3vw, 30px) 26px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.5fr);
  gap: 40px 48px;
}

.footer__lead { display: flex; flex-direction: column; gap: 10px; }

.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .06em;
  color: var(--tactic);
}

.footer__claim {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(244, 247, 245, .6);
}

.footer__domain {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 30px 24px;
}

.footer__title {
  padding-bottom: 10px;
  margin-bottom: 13px;
  border-bottom: 1px solid rgba(242, 180, 55, .26);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer__title--bare {
  padding-bottom: 0;
  margin-bottom: 4px;
  border-bottom: 0;
}

.footer__list { display: flex; flex-direction: column; gap: 9px; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(244, 247, 245, .72);
  transition: color .18s ease-out;
}
.footer__link::before {
  content: "";
  flex: none;
  width: 8px;
  height: 2px;
  background: var(--line);
  transition: width .18s ease-out, background .18s ease-out;
}
.footer__link:hover { color: var(--gold-soft); }
.footer__link:hover::before { width: 15px; background: var(--cyan); }

.footer__contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 34px;
  padding: 26px 24px;
  background: linear-gradient(135deg, rgba(20, 67, 47, .92), rgba(11, 43, 31, .92));
  box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px rgba(53, 242, 192, .12);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.footer__contact > * { min-width: 0; }
.footer__contact .footer__title--bare { grid-column: 1 / -1; }

.footer__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 247, 245, .8);
}
.footer__meta-key {
  flex: none;
  min-width: 40px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold-soft);
}
.footer__meta-val { word-break: break-word; }

.footer__note {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px dashed rgba(110, 122, 117, .45);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(244, 247, 245, .55);
}

.footer__base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(110, 122, 117, .3);
  font-size: 12.5px;
  color: rgba(244, 247, 245, .5);
}
.footer__icp { font-family: var(--font-num); letter-spacing: .08em; }

/* ---------- 7. 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 30px);
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack--tight { gap: 16px; }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

.prose {
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(244, 247, 245, .82);
}
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 {
  margin: 1.9em 0 .55em;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--tactic);
}
.prose ul, .prose ol { margin: 1em 0 1em 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose code {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--cyan);
  background: rgba(53, 242, 192, .1);
}

/* ---------- 8. 通用组件 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(244, 247, 245, .5);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a {
  color: rgba(244, 247, 245, .72);
  border-bottom: 1px solid transparent;
  transition: color .18s ease-out, border-color .18s ease-out;
}
.breadcrumb a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.breadcrumb [aria-current="page"] { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--pitch-900);
  background: var(--gold);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .18s ease-out, transform .18s ease-out, color .18s ease-out;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--gold);
  box-shadow: inset 0 0 0 1.5px rgba(242, 180, 55, .55);
}
.btn--ghost:hover { background: rgba(242, 180, 55, .14); color: var(--gold-soft); }

.btn--cyan { background: var(--cyan); color: #06231B; }
.btn--cyan:hover { background: #6BF7D2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); }

.section-title {
  padding-left: 16px;
  border-left: 5px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--tactic);
}

.panel {
  position: relative;
  padding: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(#123B2B, #0F3626) padding-box,
    linear-gradient(135deg, rgba(242, 180, 55, .55), rgba(242, 180, 55, .06)) border-box;
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.panel--dark {
  background:
    linear-gradient(#0B2B1F, #0B2B1F) padding-box,
    linear-gradient(135deg, rgba(53, 242, 192, .45), rgba(53, 242, 192, .05)) border-box;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat__value--cyan { color: var(--cyan); }
.stat__value--stoppage { color: var(--stoppage); }
.stat__label {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(244, 247, 245, .58);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid currentColor;
  color: var(--line-bright);
}
.tag--cs { color: #FF6B6B; }
.tag--cl { color: #5FB0E8; }
.tag--data { color: var(--cyan); }
.tag--live { color: var(--stoppage); }
.tag--gold { color: var(--gold); }

.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--pitch-800);
  box-shadow: inset 0 0 0 1px rgba(242, 180, 55, .16);
}
.figure__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--pitch-900);
  background: var(--gold);
}
.figure__caption {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(244, 247, 245, .62);
  background: rgba(8, 32, 26, .72);
  border-top: 1px solid rgba(242, 180, 55, .18);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--pitch-800);
  box-shadow: inset 0 0 0 1px rgba(110, 122, 117, .3);
}
.data-table {
  min-width: 640px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(110, 122, 117, .26);
  white-space: nowrap;
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0F3626;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--gold-soft);
}
.data-table tbody tr:nth-child(even) { background: rgba(237, 231, 218, .035); }
.data-table tbody tr:hover { background: rgba(242, 180, 55, .09); }

/* ---------- 9. 动效协议 ---------- */
html[data-enhance="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .26s ease-out, transform .26s ease-out;
}
html[data-enhance="on"] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 45%, var(--cyan) 100%);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  background: rgba(20, 67, 47, .94);
  box-shadow: inset 0 0 0 1px rgba(242, 180, 55, .5);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease-out, transform .22s ease-out,
              visibility .22s linear, background .18s ease-out, color .18s ease-out;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--pitch-900); }

/* ---------- 10. 响应式 ---------- */
@media (min-width: 1080px) {
  .scroll-progress { left: var(--rail-w); }
}

@media (max-width: 1079px) {
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    min-height: var(--bar-h);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 180, 55, .28);
    overflow: visible;
  }
  .site-header::after { display: none; }

  .rail-brand {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .brand {
    padding-bottom: 0;
    border-bottom: 0;
    gap: 10px;
    min-width: 0;
  }
  .brand__mark { min-width: 38px; height: 38px; font-size: 24px; padding: 0 5px 3px; }
  .brand__name { font-size: 16px; letter-spacing: .04em; }
  .brand__line { font-size: 10px; letter-spacing: .14em; }
  .rail-brand__note { display: none; }

  .rail-status { order: 3; font-size: 11px; white-space: nowrap; }
  .rail-status__prefix { display: none; }
  .rail-actions { display: none; }
  .rail-foot {
    order: 3;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex: 0 0 auto;
  }

  .nav-toggle { display: inline-flex; order: 4; }

  .site-nav {
    order: 5;
    flex: 1 1 100%;
    position: fixed;
    top: var(--bar-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    padding: 18px 18px 26px;
    background: linear-gradient(180deg, #14432F 0%, #0B2B1F 100%);
    border-bottom: 1px solid rgba(242, 180, 55, .32);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s linear;
    z-index: 59;
  }
  .site-nav[data-open] {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav__link { font-size: 17px; padding-block: 14px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 20px 22px;
  }
}

@media (max-width: 560px) {
  .rail-status { display: none; }
  .footer__nav { gap: 24px 18px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html[data-enhance="on"] [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
