/* ZhiWu 项目站 · 设计系统 */

:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --bg-rise: #101828;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e8eefb;
  --text-dim: #98a7c2;
  --text-faint: #6b7b98;
  --accent: #45e0ac;
  --accent-deep: #12a878;
  --blue: #6aa1ff;
  --violet: #b689ff;
  --amber: #ffc46b;
  --rose: #ff8096;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --nav-h: 62px;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 460px at 12% -6%, rgba(69, 224, 172, 0.16), transparent 62%),
    radial-gradient(680px 420px at 88% 4%, rgba(106, 161, 255, 0.15), transparent 60%),
    radial-gradient(720px 520px at 60% 105%, rgba(182, 137, 255, 0.12), transparent 62%);
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7bf0c6; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.28; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); }
img, svg { max-width: 100%; display: block; }

/* 长路径 / 长变量名不允许撑破窄屏布局 */
p, li, td, th, h1, h2, h3, h4, button, .card, .node, .badge, .pill, .lede, .faint, .muted { overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }

/* ---------- 通用容器 ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 62px 0; }
.section-plain { border-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.lede { color: var(--text-dim); font-size: 1.05rem; max-width: 68ch; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 0.86rem; }
.center { text-align: center; }
.section-head { margin-bottom: 40px; max-width: 76ch; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.nav.stuck { background: rgba(7, 11, 20, 0.82); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--mono); font-size: 11px; color: var(--text-faint); font-weight: 500; letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); font-size: 0.92rem; padding: 8px 13px; border-radius: 9px;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--accent); background: rgba(69, 224, 172, 0.1); }
.nav-cta { margin-left: 8px; }
.burger {
  display: none; margin-left: auto; width: 42px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger i { display: block; width: 17px; height: 1.6px; background: var(--text); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 11px;
  font-size: 0.94rem; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #35c9ff); color: #04121b; box-shadow: 0 10px 30px -12px rgba(69, 224, 172, 0.65); }
.btn-primary:hover { color: #04121b; box-shadow: 0 14px 34px -10px rgba(69, 224, 172, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text-dim);
}
.badge-green { color: var(--accent); border-color: rgba(69, 224, 172, 0.34); background: rgba(69, 224, 172, 0.1); }
.badge-blue { color: var(--blue); border-color: rgba(106, 161, 255, 0.32); background: rgba(106, 161, 255, 0.1); }
.badge-violet { color: var(--violet); border-color: rgba(182, 137, 255, 0.32); background: rgba(182, 137, 255, 0.1); }
.badge-amber { color: var(--amber); border-color: rgba(255, 196, 107, 0.32); background: rgba(255, 196, 107, 0.1); }
.badge-rose { color: var(--rose); border-color: rgba(255, 128, 150, 0.32); background: rgba(255, 128, 150, 0.1); }
.badge-method { min-width: 62px; justify-content: center; font-weight: 600; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 18px; }
.grid > *, .layer-body > *, .lanes > *, .flow-steps > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 两栏分区：窄屏自动塌成单列 */
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 36px; }
.split.wide-l { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.split.wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }

.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }
.card .icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: rgba(69, 224, 172, 0.13); color: var(--accent); font-size: 16px;
}
.icon.blue { background: rgba(106, 161, 255, 0.13); color: var(--blue); }
.icon.violet { background: rgba(182, 137, 255, 0.13); color: var(--violet); }
.icon.amber { background: rgba(255, 196, 107, 0.13); color: var(--amber); }
.icon.rose { background: rgba(255, 128, 150, 0.13); color: var(--rose); }
.card-link { display: block; color: var(--text); }
.card-link:hover { color: var(--text); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.92rem; }
.card ul li { margin-bottom: 5px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 66px) 0 74px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(78% 68% at 50% 22%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(78% 68% at 50% 22%, #000 40%, transparent 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 46px; align-items: center; }
.hero h1 span.grad { background: linear-gradient(100deg, var(--accent), #86b6ff 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-dim); font-size: 1.09rem; max-width: 60ch; margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.title-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.version-chip { font-family: var(--mono); font-size: 12px; color: var(--accent); border: 1px dashed rgba(69, 224, 172, 0.4); border-radius: 8px; padding: 3px 10px; }

/* 终端卡片 */
.terminal { border-radius: var(--radius); border: 1px solid var(--line-strong); background: #080d17; box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.terminal-bar i:first-child { background: #ff6b6b; }
.terminal-bar i:nth-child(2) { background: #ffc46b; }
.terminal-bar i:nth-child(3) { background: #45e0ac; }
.terminal-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.terminal-body { padding: 18px 20px; font-family: var(--mono); font-size: 12.9px; line-height: 1.85; color: #c6d5ef; white-space: pre; overflow-x: auto; }
.terminal-body .c { color: var(--text-faint); }
.terminal-body .k { color: var(--accent); }
.terminal-body .v { color: #86b6ff; }
.terminal-body .w { color: var(--violet); }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); text-align: center; }
.stat b { display: block; font-size: 1.7rem; font-family: var(--mono); color: var(--accent); letter-spacing: -0.02em; }
.stat span { font-size: 0.83rem; color: var(--text-dim); }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.79rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; background: rgba(255, 255, 255, 0.035); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
td code, p code, li code { background: rgba(106, 161, 255, 0.12); color: #a9c8ff; padding: 1.5px 6px; border-radius: 5px; font-size: 0.85em; }
td .path { font-family: var(--mono); font-size: 0.85rem; color: #cdddf6; white-space: nowrap; }

/* ---------- 代码块 ---------- */
.code { position: relative; min-width: 0; margin: 0 0 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #080d17; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.code-head b { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
pre { margin: 0; max-width: 100%; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #c6d5ef; }
.copy { font-family: var(--mono); font-size: 11px; color: var(--text-dim); background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; cursor: pointer; transition: 0.16s; }
.copy:hover { color: var(--accent); border-color: rgba(69, 224, 172, 0.45); }

/* ---------- 提示块 ---------- */
.callout { display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(106, 161, 255, 0.07); margin: 18px 0; font-size: 0.93rem; color: var(--text-dim); }
.callout b { color: var(--text); }
.callout .mark { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-family: var(--mono); background: rgba(106, 161, 255, 0.2); color: var(--blue); }
.callout.warn { background: rgba(255, 196, 107, 0.08); border-color: rgba(255, 196, 107, 0.28); }
.callout.warn .mark { background: rgba(255, 196, 107, 0.18); color: var(--amber); }
.callout.danger { background: rgba(255, 128, 150, 0.08); border-color: rgba(255, 128, 150, 0.28); }
.callout.danger .mark { background: rgba(255, 128, 150, 0.18); color: var(--rose); }

/* ---------- 架构图（纯 CSS） ---------- */
.diagram { display: flex; flex-direction: column; gap: 14px; }
.layer { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 15px 16px 17px; position: relative; }
.layer > .layer-label { position: absolute; top: -10px; left: 14px; padding: 1px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--bg); color: var(--text-faint); border-radius: 6px; }
.layer-body { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.node { border-radius: 11px; padding: 12px 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); }
.node b { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.node span { display: block; font-size: 0.79rem; color: var(--text-dim); line-height: 1.6; }
.node em { display: block; font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--text-faint); margin-top: 5px; }
.node.accent { border-color: rgba(69, 224, 172, 0.4); background: rgba(69, 224, 172, 0.08); }
.node.blue { border-color: rgba(106, 161, 255, 0.36); background: rgba(106, 161, 255, 0.08); }
.node.violet { border-color: rgba(182, 137, 255, 0.36); background: rgba(182, 137, 255, 0.08); }
.node.amber { border-color: rgba(255, 196, 107, 0.34); background: rgba(255, 196, 107, 0.07); }
.node.external { border-style: dashed; background: transparent; }

.flow-steps { counter-reset: step; display: grid; gap: 12px; }
.flow-step { position: relative; padding: 15px 18px 15px 60px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.flow-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 17px; top: 15px; font-family: var(--mono); font-size: 1.05rem; color: var(--accent); opacity: 0.85; }
.flow-step b { display: block; margin-bottom: 3px; }
.flow-step p { margin: 0; font-size: 0.9rem; color: var(--text-dim); }

/* 状态机泳道 */
.lanes { display: grid; gap: 14px; }
.lane { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: rgba(255, 255, 255, 0.025); }
.lane-title { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 11px; letter-spacing: 0.08em; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { font-family: var(--mono); font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.pill.term { border-color: rgba(69, 224, 172, 0.45); color: var(--accent); background: rgba(69, 224, 172, 0.09); }
.pill.warn { border-color: rgba(255, 196, 107, 0.45); color: var(--amber); background: rgba(255, 196, 107, 0.09); }
.pill.bad { border-color: rgba(255, 128, 150, 0.45); color: var(--rose); background: rgba(255, 128, 150, 0.09); }
.arrow { color: var(--text-faint); font-family: var(--mono); }

/* ---------- Tab ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tabs button {
  font: inherit; font-size: 0.92rem; color: var(--text-dim); background: transparent; border: 0;
  border-bottom: 2px solid transparent; padding: 10px 15px; cursor: pointer; margin-bottom: -1px; transition: 0.18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 文档内页布局 ---------- */
.doc { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: calc(var(--nav-h) + 40px); }
.doc > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--nav-h) + 26px); font-size: 0.88rem; max-height: calc(100vh - var(--nav-h) - 60px); overflow: auto; }
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.toc a { display: block; color: var(--text-dim); padding: 6px 12px; border-left: 2px solid var(--line); transition: 0.16s; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.page-head { margin-bottom: 34px; }

/* 列表 */
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 27px; color: var(--text-dim); font-size: 0.95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 4px; background: rgba(69, 224, 172, 0.22); box-shadow: inset 0 0 0 1.5px rgba(69, 224, 172, 0.55); }

/* 过滤器 */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.input {
  flex: 1 1 260px; min-width: 220px; font: inherit; font-size: 0.92rem; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; outline: none;
}
.input:focus { border-color: rgba(69, 224, 172, 0.5); }
.input::placeholder { color: var(--text-faint); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px 0 34px; margin-top: 40px; background: rgba(7, 11, 20, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 30px; }
.footer h5 { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-dim); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.83rem; }

/* ---------- 动效 ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .split, .split.wide-l, .split.wide-r { grid-template-columns: 1fr; gap: 26px; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .toc h4 { width: 100%; }
  .toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
  .toc a.active { border-color: rgba(69, 224, 172, 0.5); }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 14px 20px 22px; background: rgba(7, 11, 20, 0.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.28s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
