/* =========================================================
   site.css — 博九娱乐会馆 共享外壳 / 第 12 版
   夜幕蓝墨 · 沙纸白 · 艾德莱斯绛红 · 沙金 · 胡杨青
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1018;
  --ink-2: #1B2431;
  --paper: #F5F1E8;
  --paper-2: #FFFFFF;
  --red: #B3242B;
  --red-deep: #7A1B22;
  --gold: #D9A441;
  --gold-lit: #F2C14E;
  --jade: #2E6E62;
  --mute: #8A8577;
  --line: #C9C2B2;

  --line-on-ink: rgba(245, 241, 232, .16);
  --paper-70: rgba(245, 241, 232, .70);
  --paper-60: rgba(245, 241, 232, .62);
  --paper-40: rgba(245, 241, 232, .42);
  --paper-08: rgba(245, 241, 232, .08);

  --rail-w: 88px;
  --rail-w-open: 216px;
  --topbar-h: 0px;
  --shell-max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-26: 26px;
  --fs-34: 34px;
  --fs-48: 48px;
  --fs-68: 68px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --t-fast: 160ms;
  --t-base: 200ms;
  --t-slow: 260ms;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(34px, 4.6vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 48px); }
h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; }
h4 { font-size: var(--fs-20); line-height: 1.35; }
p { max-width: 68ch; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.rail :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-lit); }
#main-content { display: block; scroll-margin-top: calc(var(--topbar-h) + 16px); }
#main-content:focus { outline: none; }

@media (min-width: 960px) { body { padding-left: var(--rail-w); } }
@media (max-width: 959px) { :root { --topbar-h: 60px; } body { padding-top: var(--topbar-h); } }

/* ---------- 4. Utilities ---------- */
.shell { width: 100%; max-width: var(--shell-max); margin-inline: auto; padding-inline: var(--gutter); }
.shell--wide { max-width: 1560px; }
.section { padding-block: clamp(56px, 7vw, 112px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); }
.section--white { background: var(--paper-2); }
.stack { display: grid; gap: clamp(16px, 2vw, 28px); }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .18em; text-transform: uppercase; color: var(--jade);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section--ink .eyebrow { color: var(--gold); }
.rule { height: 1px; background: var(--line); border: 0; }
.section--ink .rule { background: var(--line-on-ink); }

/* ---------- 5. Buttons / tags / cards ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--line);
  font-size: var(--fs-14); font-weight: 600; letter-spacing: .06em;
  background: transparent; color: var(--ink);
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.btn--primary { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform var(--t-base) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--mute); background: transparent;
}
.tag--jade { color: var(--jade); border-color: rgba(46, 110, 98, .38); background: rgba(46, 110, 98, .06); }
.tag--red { color: var(--red); border-color: rgba(179, 36, 43, .38); background: rgba(179, 36, 43, .06); }
.tag--gold { color: var(--gold); border-color: rgba(217, 164, 65, .45); background: rgba(217, 164, 65, .08); }

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 1px 0 rgba(11, 16, 24, .04), 0 18px 34px -30px rgba(11, 16, 24, .55);
  transition: border-color var(--t-base) var(--ease);
}
.card:hover { border-color: var(--ink); }
.card--ink { background: var(--ink-2); border-color: var(--line-on-ink); color: var(--paper); }

/* ---------- 6. Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .1em; color: var(--mute);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { border-bottom: 1px solid transparent; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--red); border-color: var(--red); }
.section--ink .breadcrumb { color: var(--paper-40); }
.section--ink .breadcrumb a:hover { color: var(--gold-lit); border-color: var(--gold-lit); }

/* ---------- 7. Media containers (页面阶段放图，外壳不放图) ---------- */
.media {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.media__frame { position: relative; width: 100%; }
.media--16x9 .media__frame { padding-top: 56.25%; }
.media--4x3 .media__frame { padding-top: 75%; }
.media--1x1 .media__frame { padding-top: 100%; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .26em; color: rgba(245, 241, 232, .5);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(179, 36, 43, .26) 0 9px, rgba(11, 16, 24, 0) 9px 26px),
    repeating-linear-gradient(115deg, rgba(217, 164, 65, .12) 0 2px, rgba(11, 16, 24, 0) 2px 34px),
    linear-gradient(158deg, #16202D 0%, #0B1018 58%, #1B2431 100%);
}

/* ---------- 8. Ledger table ---------- */
.ledger { width: 100%; font-size: var(--fs-14); }
.ledger caption {
  text-align: left; padding-bottom: 12px;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .16em; color: var(--mute);
}
.ledger th, .ledger td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.ledger thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--paper-2);
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: .12em; font-weight: 600; color: var(--jade);
  border-bottom: 1px solid var(--ink);
}
.ledger tbody tr { transition: background-color var(--t-fast) var(--ease); }
.ledger tbody tr:hover { background: rgba(179, 36, 43, .06); }
.ledger td:first-child { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--mute); }

/* ---------- 9. Fold (FAQ 等宽编号折叠条目) ---------- */
.fold { border-top: 1px solid var(--line); }
.fold:last-child { border-bottom: 1px solid var(--line); }
.fold__head {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 0; text-align: left; color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.fold__head:hover { color: var(--red); }
.fold__num {
  flex: 0 0 46px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: var(--fs-12); letter-spacing: .1em; color: var(--gold);
}
.fold__title { flex: 1 1 auto; font-size: var(--fs-16); font-weight: 600; line-height: 1.5; }
.fold__sign { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.fold__sign::before, .fold__sign::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-fast) var(--ease);
}
.fold__sign::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.fold__sign::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.fold__head[aria-expanded="true"] .fold__sign::after { transform: scaleY(0); opacity: 0; }
.fold__panel {
  padding: 0 0 22px 62px;
  font-size: var(--fs-14); line-height: 1.85; color: var(--mute);
}

/* ---------- 10. Header ---------- */
.site-header { position: relative; z-index: 100; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  padding: 10px 18px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--red);
  font-size: var(--fs-14); font-weight: 600; letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.progress {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  height: 2px; z-index: 91; pointer-events: none;
  background: rgba(11, 16, 24, .08);
}
.progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold-lit));
  transition: width 90ms linear;
}
@media (min-width: 960px) {
  .progress { top: 0; left: var(--rail-w); background: rgba(245, 241, 232, .1); }
}

/* 移动工具条 */
.topbar { display: none; }
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: 0 0 32px;
  background: var(--red); color: var(--paper);
  font-weight: 800; font-size: var(--fs-16); letter-spacing: 0;
}
.topbar__brandtext { display: flex; flex-direction: column; gap: 1px; }
.topbar__brandname { font-size: var(--fs-14); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.topbar__brandsub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; color: var(--gold); line-height: 1.2;
}
.topbar__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 241, 232, .3);
  color: var(--paper); font-size: var(--fs-12); letter-spacing: .14em;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.topbar__toggle:hover { border-color: var(--gold); color: var(--gold-lit); }
.topbar__bars { display: grid; gap: 4px; width: 18px; }
.topbar__bars span {
  display: block; height: 1.5px; background: var(--gold);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.site-header[data-open] .topbar__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .topbar__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .topbar__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 侧边轨道 */
.rail {
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 94;
  width: var(--rail-w);
  display: flex; flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid var(--line-on-ink);
  overflow: hidden;
  transition: width var(--t-slow) var(--ease);
}
.rail:hover, .rail:focus-within { width: var(--rail-w-open); }

.rail__brand {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  min-height: 96px; padding-left: 22px;
  border-bottom: 1px solid var(--line-on-ink);
}
.rail__mark {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--red); color: var(--paper);
  font-weight: 800; font-size: var(--fs-20); letter-spacing: 0;
}
.rail__brandtext {
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}
.rail:hover .rail__brandtext,
.rail:focus-within .rail__brandtext { opacity: 1; transform: none; }
.rail__brandname { font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.rail__brandsub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; color: var(--paper-40); white-space: nowrap;
}

.rail__nav { flex: 1 1 auto; overflow-y: auto; padding-block: 10px; }
.rail__list { display: flex; flex-direction: column; }
.rail__item { position: relative; }
.rail__link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 58px; padding-left: 22px;
  color: var(--paper-60);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.rail__link::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px;
  background: var(--red);
  transform: scaleY(0); transform-origin: center;
  transition: transform var(--t-base) var(--ease);
}
.rail__link:hover { color: var(--paper); background: var(--paper-08); }
.rail__link[aria-current="page"] { color: var(--paper); background: rgba(245, 241, 232, .1); }
.rail__link[aria-current="page"]::before { transform: scaleY(1); }
.rail__link[aria-current="page"] .rail__num { color: var(--gold-lit); }
.rail__num {
  flex: 0 0 44px; width: 44px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: var(--fs-12); letter-spacing: .06em;
  color: var(--gold); text-align: center;
}
.rail__label {
  flex: 0 0 auto;
  font-size: 14.5px; font-weight: 600; letter-spacing: .08em; white-space: nowrap;
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--t-fast) var(--ease) 40ms, transform var(--t-slow) var(--ease) 40ms;
}
.rail:hover .rail__label,
.rail:focus-within .rail__label { opacity: 1; transform: none; }

.rail__foot {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0 22px 22px;
  border-top: 1px solid var(--line-on-ink);
}
.rail__pip {
  flex: 0 0 8px; width: 8px; height: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, .16);
}
.rail__badge {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--gold); white-space: nowrap;
  opacity: 0; transition: opacity var(--t-base) var(--ease);
}
.rail:hover .rail__badge,
.rail:focus-within .rail__badge { opacity: 1; }

.rail__scrim { display: none; }
body.is-nav-open { overflow: hidden; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-on-ink);
}
.site-footer__weave {
  height: 48px;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(179, 36, 43, .55) 0 2px, rgba(11, 16, 24, 0) 2px 15px),
    repeating-linear-gradient(115deg, rgba(217, 164, 65, .3) 0 6px, rgba(11, 16, 24, 0) 6px 26px),
    repeating-linear-gradient(115deg, rgba(46, 110, 98, .28) 0 1px, rgba(11, 16, 24, 0) 1px 9px);
  border-bottom: 1px solid var(--line-on-ink);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
}
.site-footer__logo {
  display: inline-block;
  font-size: var(--fs-26); font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.site-footer__logo:hover { color: var(--gold-lit); border-color: var(--gold-lit); }
.site-footer__tag {
  margin-top: 10px;
  font-size: var(--fs-14); color: var(--paper-60); max-width: 22ch;
}
.site-footer__meta {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; color: var(--paper-40);
}
.site-footer__vers {
  display: inline-block; margin-right: 6px; padding: 2px 7px;
  background: var(--gold); color: var(--ink); font-weight: 700;
}
.site-footer__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.footer-col__title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; color: var(--gold); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-on-ink);
}
.footer-col__list { display: grid; gap: 8px; }
.footer-col__link {
  display: inline-block;
  font-size: var(--fs-14); color: var(--paper-60);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer-col__link:hover { color: var(--paper); border-color: var(--paper); }
.footer-col__link[aria-current="page"] { color: var(--gold-lit); border-color: var(--gold-lit); }

.footer-contact__list { display: grid; gap: 0; }
.footer-contact__item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(245, 241, 232, .1);
}
.footer-contact__label {
  flex: 0 0 42px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; color: var(--gold);
}
.footer-contact__text {
  flex: 1 1 200px;
  font-size: var(--fs-14); line-height: 1.65; color: var(--paper-60);
}
.copy-btn {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(245, 241, 232, .28);
  color: var(--paper); text-align: left;
  font-family: var(--font-mono); font-size: var(--fs-14); letter-spacing: .02em;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold-lit); }
.copy-btn__hint {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: .1em; color: var(--paper-40);
  transition: color var(--t-fast) var(--ease);
}
.copy-btn[data-copy-state="ok"] .copy-btn__hint { color: var(--gold-lit); }
.copy-btn[data-copy-state="fail"] .copy-btn__hint { color: var(--red); }
.site-footer__cta { margin-top: 22px; }
.site-footer .btn--ghost { border-color: rgba(245, 241, 232, .3); color: var(--paper); }
.site-footer .btn--ghost:hover,
.site-footer .btn--ghost:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.site-footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--line-on-ink);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; color: var(--paper-40);
}
.site-footer__icp { max-width: none; }
.site-footer__copy { max-width: none; }
.site-footer__legalnav { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.site-footer__legalnav a {
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.site-footer__legalnav a:hover { color: var(--gold-lit); border-color: var(--gold-lit); }
.site-footer__legalnav a[aria-current="page"] { color: var(--gold-lit); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 959px) {
  .topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 96;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: var(--topbar-h); padding-inline: 16px;
    background: var(--ink); color: var(--paper);
    border-bottom: 1px solid var(--line-on-ink);
  }
  .rail {
    top: var(--topbar-h);
    width: min(84vw, 326px);
    transform: translateX(-102%);
    border-right: 0;
    box-shadow: 28px 0 56px -36px rgba(0, 0, 0, .9);
    transition: transform var(--t-slow) var(--ease);
  }
  .rail:hover, .rail:focus-within { width: min(84vw, 326px); }
  .site-header[data-open] .rail { transform: none; }
  .rail__brandtext, .rail__label, .rail__badge { opacity: 1; transform: none; }
  .rail__brand { min-height: 80px; }
  .rail__foot { padding-block: 18px 20px; }

  .rail__scrim {
    display: block;
    position: fixed; inset: 0; z-index: 92;
    background: rgba(11, 16, 24, .62);
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
  }
  .site-header[data-open] .rail__scrim { opacity: 1; pointer-events: auto; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__legalnav { margin-left: 0; }
}

@media (max-width: 679px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__logo { font-size: var(--fs-20); }
  .site-footer__tag { max-width: none; }
  .footer-contact__item { gap: 4px 10px; }
  .footer-contact__label { flex-basis: 100%; }
  .site-footer__legal { font-size: 10px; letter-spacing: .06em; }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .site-footer__inner { grid-template-columns: 1fr 1.4fr; }
  .site-footer__contact { grid-column: 1 / -1; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rail, .rail__label, .rail__brandtext, .rail__badge, .btn__arrow,
  .rail__link::before, .progress__bar { transition: none !important; }
  .rail:hover, .rail:focus-within { width: var(--rail-w); }
  .rail:hover .rail__label,
  .rail:focus-within .rail__label { opacity: 0; transform: translateX(-4px); }
  .rail:hover .rail__brandtext,
  .rail:focus-within .rail__brandtext { opacity: 0; transform: translateX(-6px); }
  .rail:hover .rail__badge,
  .rail:focus-within .rail__badge { opacity: 0; }
  .btn:hover .btn__arrow { transform: none; }
  @media (max-width: 959px) {
    .rail:hover, .rail:focus-within { width: min(84vw, 326px); }
    .rail:hover .rail__label,
    .rail:focus-within .rail__label,
    .rail:hover .rail__brandtext,
    .rail:focus-within .rail__brandtext,
    .rail:hover .rail__badge,
    .rail:focus-within .rail__badge { opacity: 1; transform: none; }
  }
}
