/* ============================================================
   孙丽 · 组织与人才发展 / 高级HRBP 作品集
   配色：暖纸底 + 深墨蓝 + 克制锈红（编辑式，非渐变风格）
   ============================================================ */

:root {
  --paper: #f5f3ee;
  --paper-deep: #efece4;
  --surface: #ffffff;
  --surface-2: #f9f7f3;
  --ink: #1d2733;
  --ink-2: #46505c;
  --muted: #7b838c;
  --line: #e2ddd2;
  --line-strong: #cfc8ba;
  --blue: #25476b;
  --blue-deep: #173450;
  --blue-soft: #e9eef4;
  --rust: #9a4b3b;
  --rust-soft: #f5e9e5;
  --shadow-sm: 0 3px 14px rgba(29, 39, 51, 0.045);
  --shadow: 0 18px 46px rgba(29, 39, 51, 0.11);
  --radius: 12px;
  --max: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 26px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

::selection { background: var(--blue-soft); color: var(--blue-deep); }

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

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 400;
}
.skip-link:focus { left: 16px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  position: relative; font-family: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  color: var(--ink); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; padding-right: 7px;
}
.brand-mark::after {
  content: ""; position: absolute; right: 0; bottom: 3px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--rust);
}
.brand-text strong { display: block; font-size: 14px; line-height: 1.2; letter-spacing: 0.08em; font-weight: 600; }
.brand-text span { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px; color: var(--ink-2); padding: 8px 15px; border-radius: 4px;
  transition: background 0.18s, color 0.18s; white-space: nowrap;
}
.nav a:hover { background: var(--paper-deep); color: var(--blue); }
.nav a.active { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }

.menu-toggle {
  position: relative; display: none; width: 40px; height: 40px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 6px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span { position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero { padding: 70px 0 66px; border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--rust); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--rust); }

.hero h1 {
  margin: 18px 0 10px; font-family: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(34px, 3.8vw, 48px); line-height: 1.28; letter-spacing: -0.01em; font-weight: 500; color: var(--ink);
}
.hero-subtitle { margin: 0 0 22px; font-size: 13px; color: var(--blue); letter-spacing: 0.06em; }
.hero-lead { max-width: 660px; font-size: 15px; color: var(--ink-2); line-height: 1.95; margin: 0 0 20px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 24px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.hero-figure {
  margin: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #eef0e9; padding: 20px 22px 16px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.fig-head, .fig-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; letter-spacing: 0.12em; color: #7f887b; }
.fig-head span:last-child { color: var(--rust); }
.fig-stage { position: relative; display: grid; place-items: center; }
.fig-stage svg { width: 100%; max-width: 400px; height: auto; }
.fig-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 600;
}
.fig-label {
  position: absolute; padding: 5px 11px; background: rgba(255,255,255,0.86);
  border: 1px solid var(--line); border-radius: 3px; font-size: 11px; color: var(--ink-2);
}
.lbl-goal { top: 16%; left: 8%; }
.lbl-org { top: 45%; right: 4%; }
.lbl-talent { bottom: 14%; left: 12%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--blue-deep); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------------- Section base ---------------- */

.section { padding: 72px 0; }
.section--paper { background: var(--paper-deep); }
.section--white { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.02em; }
.section-head p { margin: 0; max-width: 660px; color: var(--ink-2); font-size: 15px; }
.section-index { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }

/* ---------------- Capability: forced single row ---------------- */

.cap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cap-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 16px 18px; min-width: 0;
  transition: border-color 0.18s, transform 0.18s;
}
.cap-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.cap-num { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--rust); }
.cap-card h3 { margin: 12px 0 8px; font-size: 16px; line-height: 1.45; }
.cap-card p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.tag {
  display: inline-block; padding: 3px 8px; font-size: 10px;
  color: var(--blue); background: var(--blue-soft); border-radius: 3px; letter-spacing: 0.02em;
}

/* ---------------- Process ---------------- */

.process-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 34px 30px; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); }
.process-step { position: relative; padding-right: 16px; counter-increment: step; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 13px; left: 32px; right: 8px; height: 1px; background: var(--line-strong);
}
.process-step::before {
  content: counter(step, decimal-leading-zero); position: relative; z-index: 1;
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; margin-bottom: 14px;
}
.process-step h3 { margin: 0 0 6px; font-size: 14px; }
.process-step p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------------- Public cases ---------------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-btn {
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  border-radius: 4px; padding: 7px 16px; font-size: 13px; cursor: pointer; transition: all 0.18s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.access-hint {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px;
  padding: 14px 18px; border-left: 3px solid var(--rust); background: var(--rust-soft);
  border-radius: 0 6px 6px 0; font-size: 13px; color: #6d352a; line-height: 1.75;
}
.access-hint svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }

.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 24px);
}
.case[hidden] { display: none; }
.case-head { padding: 28px 32px 24px; border-bottom: 1px solid var(--line); }
.case-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case-no { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--rust); }
.case-head h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -0.015em; }
.case-summary { margin: 0; max-width: 840px; color: var(--ink-2); font-size: 15px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.case-meta b { color: var(--ink); font-weight: 600; }

.case-public { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 26px 32px 30px; }
.public-metrics { display: grid; gap: 12px; align-content: start; }
.metric { border-left: 2px solid var(--blue); padding: 1px 0 1px 13px; }
.metric strong { display: block; font-size: 20px; line-height: 1.25; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.metric span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.metric.rust { border-color: var(--rust); }
.metric.rust strong { color: var(--rust); }

.public-evidence { min-width: 0; }
.public-evidence h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.public-evidence p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.public-evidence p:last-child { margin-bottom: 0; }
.public-quote {
  padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.8;
}
.public-quote b { color: var(--blue-deep); }

.case-foot {
  padding: 18px 32px 22px; border-top: 1px solid var(--line); background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.case-foot p { margin: 0; font-size: 12px; color: var(--muted); }
.btn-gate {
  min-height: 42px; background: var(--rust); color: #fff; padding: 0 18px;
}
.btn-gate:hover { background: #823c2e; }
.btn-gate svg { width: 15px; height: 15px; }

/* ---------------- Desensitization note ---------------- */

.aside-title {
  margin: 0 0 12px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase;
}

.data-note {
  display: flex; align-items: center; gap: 7px; margin: 0 0 12px;
  font-size: 11.5px; color: var(--rust); letter-spacing: 0.01em;
}
.data-note::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); flex-shrink: 0; }

/* ---------------- Shared data visuals ---------------- */

.chart-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: var(--surface); }
.chart-title { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: 0.02em; }
.bar-group { display: grid; gap: 12px; }
.bar-item { display: grid; grid-template-columns: 112px 1fr 58px; align-items: center; gap: 10px; }
.bar-item .bar-label { font-size: 11.5px; color: var(--muted); }
.bar-track { display: block; height: 9px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar-fill.rust { background: var(--rust); }
.bar-fill.ink { background: var(--ink); }
.bar-value { font-size: 12px; font-weight: 700; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.duo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stat { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--surface); }
.mini-stat strong { display: block; font-size: 26px; line-height: 1.1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.mini-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }

.stack-bar { display: flex; height: 32px; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.stack-bar div { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; }
.stack-bar .s1 { background: var(--blue); width: 30%; }
.stack-bar .s2 { background: var(--rust); width: 40%; }
.stack-bar .s3 { background: var(--ink); width: 30%; }
.stack-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.stack-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.result-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-item { border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px; background: var(--surface); }
.result-item strong { display: block; font-size: 22px; color: var(--blue-deep); line-height: 1.2; font-variant-numeric: tabular-nums; }
.result-item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
.data-table th { background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.data-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

.matrix { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 9px 6px; text-align: center; color: var(--ink-2); }
.matrix th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.matrix td:first-child { text-align: left; background: var(--surface-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.matrix .filled { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }

.callout { background: var(--blue-soft); border-radius: 6px; padding: 16px 18px; color: var(--blue-deep); font-size: 13px; line-height: 1.8; }
.callout b { color: var(--blue-deep); }

/* ---------------- Access gate ---------------- */

.gate[hidden], .viewer[hidden] { display: none; }
.gate {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  padding: 20px; background: rgba(29, 39, 51, 0.58); backdrop-filter: blur(3px);
}
.gate-dialog {
  width: min(100%, 460px); background: var(--surface); border-radius: 10px;
  box-shadow: var(--shadow); padding: 30px 30px 26px; border-top: 3px solid var(--rust);
}
.gate-dialog h2 { margin: 0 0 14px; font-size: 21px; }
.gate-prompt { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.gate-label { display: block; font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.gate-input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: var(--surface-2); color: var(--ink); outline: none;
}
.gate-input:focus { border-color: var(--blue); background: var(--surface); }
.gate-error { min-height: 20px; margin: 8px 0 0; font-size: 12px; color: var(--rust); }
.gate-actions { display: flex; gap: 10px; margin-top: 14px; }
.gate-actions .btn { flex: 1; }
.gate-actions .btn-outline { flex: 0 0 92px; }
.gate-foot { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------------- Protected viewer ---------------- */

.viewer { position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow-y: auto; }
.viewer-bar {
  position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.viewer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.viewer-tag { font-size: 11px; letter-spacing: 0.16em; color: #b9c6d3; text-transform: uppercase; }
.viewer-title { font-size: 14px; font-weight: 600; margin-top: 2px; }
.btn-return {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 18px; background: #fff; color: var(--ink); border-radius: 6px;
  font-size: 14px; font-weight: 700; border: 1px solid #fff; cursor: pointer; flex-shrink: 0;
}
.btn-return:hover { background: var(--blue-soft); }
.btn-return svg { width: 16px; height: 16px; }

.viewer-body { padding: 44px 0 80px; }
.viewer-intro { max-width: 780px; margin-bottom: 30px; }
.viewer-intro h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.35; }
.viewer-intro p { margin: 0; color: var(--ink-2); font-size: 15px; }

.full-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.full-aside-inner { position: sticky; top: 90px; }
.full-aside p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.full-block { margin-bottom: 36px; }
.full-block:last-child { margin-bottom: 0; }
.full-block h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 9px; }
.full-block h3::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rust); flex-shrink: 0; }
.full-block p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.full-block p:last-child { margin-bottom: 0; }
.full-block ul { margin: 0; padding-left: 19px; color: var(--ink-2); font-size: 13.5px; }
.full-block li { margin-bottom: 8px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 6px; }
.tool-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.tool-card img { width: 100%; height: auto; background: #fff; }
.tool-card figcaption { padding: 10px 13px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.viewer-pdf {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 0 20px; background: var(--blue); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 600;
}
.viewer-pdf:hover { background: var(--blue-deep); }
.viewer-pdf svg { width: 16px; height: 16px; }
.viewer-bottom {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.viewer-bottom p { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------------- Footer + to-top ---------------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 20px 0; font-size: 11.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--blue);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s; z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); color: #fff; }
.to-top svg { width: 17px; height: 17px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .cap-grid { grid-template-columns: repeat(5, 210px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .cap-card { scroll-snap-align: start; }
}

@media (max-width: 1024px) {
  .full-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .case-public { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .container { width: min(calc(100% - 34px), var(--max)); }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px 16px 16px; flex-direction: column; align-items: stretch; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .menu-toggle { display: inline-flex; }

  .hero { padding: 54px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { min-height: 280px; }
  .section { padding: 58px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .section-index { padding-bottom: 0; }

  .process { grid-template-columns: 1fr; gap: 20px; }
  .process-step { padding-left: 40px; }
  .process-step::before { position: absolute; left: 0; top: 0; }
  .process-step:not(:last-child)::after { top: 32px; left: 13px; right: auto; bottom: -22px; width: 1px; height: auto; }

  .case-head, .case-public, .case-foot { padding-left: 22px; padding-right: 22px; }
  .case-public { grid-template-columns: 1fr; gap: 20px; }
  .public-metrics { grid-template-columns: repeat(2, 1fr); }
  .full-layout { grid-template-columns: 1fr; gap: 24px; }
  .full-aside-inner { position: static; }
  .tool-grid { grid-template-columns: 1fr; }
  .viewer-body { padding: 32px 0 60px; }
  .viewer-bar-inner { gap: 12px; }
  .btn-return { padding: 0 12px; font-size: 13px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 14.5px; }
  .fig-label { font-size: 10px; padding: 4px 8px; }
  .duo-grid, .stat-row, .result-strip, .public-metrics { grid-template-columns: 1fr; }
  .bar-item { grid-template-columns: 88px 1fr 48px; gap: 7px; }
  .data-table, .matrix { display: block; overflow-x: auto; white-space: nowrap; font-size: 11.5px; }
  .gate-dialog { padding: 24px 20px 20px; }
  .viewer-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-return { align-self: stretch; justify-content: center; }
}

@media print {
  .site-header, .to-top, .filter-bar, .hero-actions, .btn-gate, .gate, .viewer { display: none !important; }
  body { background: #fff; }
  .section { padding: 30px 0; }
  .case { box-shadow: none; break-inside: avoid; }
}
