/* ========================================================
   UX · UI · HCI — Interactive Concept Map
   ======================================================== */

:root {
  --bg: #0c0a1a;
  --bg-2: #14122a;
  --panel: #1a1834;
  --panel-2: #221f42;
  --line: #2c2954;
  --text: #ecebf7;
  --muted: #9b97c4;
  --primary: #7c5cff;
  --primary-2: #b48cff;
  --accent: #ff6ec7;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --max: 1180px;
}

[data-theme="light"] {
  --bg: #fbfaff;
  --bg-2: #f1eef9;
  --panel: #ffffff;
  --panel-2: #f6f4ff;
  --line: #e2dff0;
  --text: #15132a;
  --muted: #5b577a;
  --primary: #5b3df3;
  --primary-2: #8a6bff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); }
code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: .92em; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .3px; }
.brand-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.nav-links { display: flex; gap: 4px; overflow-x: auto; max-width: 70vw; scrollbar-width: thin; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.theme-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 17px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 110px 22px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 5.5vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; font-weight: 800; }
h1 em { font-style: italic; color: var(--accent); }
.grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; cursor: pointer; border: 0; font-size: 15px; transition: transform .15s, box-shadow .15s; display: inline-block; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 8px 30px -8px var(--primary); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px var(--primary); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.hero-meta { margin-top: 26px; color: var(--muted); font-size: 13px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.o1 { width: 380px; height: 380px; background: var(--primary); top: -100px; left: -100px; }
.o2 { width: 460px; height: 460px; background: var(--accent); bottom: -180px; right: -120px; }
.o3 { width: 300px; height: 300px; background: #2dd4bf; top: 30%; right: 20%; opacity: .25; }

/* ============ SECTION ============ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 22px;
  border-top: 1px solid var(--line);
}
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -.01em; }
.section h2 .num { color: var(--primary-2); font-family: ui-monospace, monospace; font-size: .58em; margin-right: 10px; vertical-align: middle; }
.subtitle { color: var(--muted); margin: 0 0 36px; max-width: 720px; font-size: 16px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ============ 5 PLANES ============ */
.planes-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.planes-stack {
  display: flex; flex-direction: column;
  gap: 8px;
  perspective: 1200px;
}
.plane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s, background .25s, border-color .25s;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.plane:hover { transform: translateX(8px); background: var(--panel-2); }
.plane.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border-left-color: white; }
.plane.active .plane-q { color: rgba(255,255,255,.85); }
.plane-label { font-weight: 700; font-size: 18px; }
.plane-q { color: var(--muted); font-size: 14px; }

.plane:nth-child(1) { border-left-color: #ff6ec7; }
.plane:nth-child(2) { border-left-color: #b48cff; }
.plane:nth-child(3) { border-left-color: #7c5cff; }
.plane:nth-child(4) { border-left-color: #5b8cff; }
.plane:nth-child(5) { border-left-color: #2dd4bf; }

.plane-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 240px;
}
.pd-name { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.pd-q { color: var(--accent); margin: 0 0 16px; font-style: italic; }
.pd-text { color: var(--muted); }
.arrow { display: inline-block; transform: translateY(2px); }

/* ============ TIMELINE ============ */
.timeline {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 20px 4px 30px;
  scroll-snap-type: x mandatory;
}
.tl-item {
  scroll-snap-align: start;
  min-width: 250px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}
.tl-year { font-family: ui-monospace, monospace; color: var(--primary-2); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.tl-title { font-weight: 700; font-size: 16px; margin: 6px 0 8px; }
.tl-body { color: var(--muted); font-size: 14px; }

/* ============ PERSONA ============ */
.persona-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; }
.persona-form { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.persona-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.persona-form input, .persona-form select { padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; }
.persona-form input[type="range"] { padding: 0; }
.persona-card {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.pc-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 32px; font-weight: 800; color: white;
  margin-bottom: 14px;
}
.pc-name { margin: 0; font-size: 24px; }
.pc-age { color: var(--muted); font-weight: 400; font-size: 18px; margin-left: 6px; }
.pc-role { color: var(--accent); margin: 4px 0 14px; }
.pc-quote { border-left: 3px solid var(--primary); margin: 0 0 16px; padding: 4px 0 4px 14px; color: var(--muted); font-style: italic; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-grid label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pc-grid .val { margin: 4px 0 0; font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); margin-top: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ============ MOSCOW ============ */
.moscow { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.moscow-pool, .moscow-bucket { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; min-height: 160px; }
.moscow-pool h4, .moscow-bucket h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.moscow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.moscow-bucket.must { border-color: var(--bad); }
.moscow-bucket.should { border-color: var(--warn); }
.moscow-bucket.could { border-color: var(--primary-2); }
.moscow-bucket.wont { border-color: var(--muted); }
.chip {
  display: inline-block; margin: 4px;
  padding: 8px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 99px; cursor: grab; font-size: 13px;
  user-select: none;
}
.chip:active { cursor: grabbing; }
.chip.dragging { opacity: .4; }
.dragover { background: color-mix(in srgb, var(--primary) 12%, var(--panel)); }

/* ============ CARD SORT ============ */
.cardsort { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.cs-pool, .cs-cat { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; min-height: 140px; }
.cs-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-cat h4 { margin: 0 0 10px; font-size: 14px; color: var(--accent); outline: none; }
.cs-cat h4:focus { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.card {
  display: inline-block; margin: 4px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 9px 12px; border-radius: 8px; cursor: grab; font-size: 13px;
  user-select: none;
}
.card.dragging { opacity: .4; }

/* ============ WIREFRAME SANDBOX ============ */
.wf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.wf-toolbar .btn { padding: 8px 14px; font-size: 13px; }
.wf-grid-toggle { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; margin-left: auto; }
.wf-canvas {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 560px;
  overflow: hidden;
}
.wf-canvas.grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.wf-box {
  position: absolute;
  background: color-mix(in srgb, var(--primary) 14%, var(--panel-2));
  border: 1.5px dashed var(--primary-2);
  color: var(--primary-2);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  display: grid; place-items: center;
  cursor: grab;
  user-select: none;
  border-radius: 6px;
}
.wf-box.selected { box-shadow: 0 0 0 2px var(--accent); }
.wf-box .wf-handle {
  position: absolute; right: 0; bottom: 0; width: 14px; height: 14px;
  background: var(--accent); cursor: nwse-resize;
  border-radius: 2px 0 6px 0;
}
.wf-box .wf-del {
  position: absolute; top: -8px; right: -8px;
  background: var(--bad); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px;
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.wf-box:hover .wf-del { opacity: 1; }

/* ============ SURFACE ============ */
.surface-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }
.surface-controls { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.surface-controls label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.surface-controls select { padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }

.surface-preview {
  --t-hue: 260; --t-sat: 70%; --t-rad: 12px; --t-space: 16px; --t-font: 15px;
  --t-primary: hsl(var(--t-hue), var(--t-sat), 60%);
  --t-bg: hsl(var(--t-hue), 14%, 96%);
  --t-text: hsl(var(--t-hue), 20%, 12%);
  background: var(--t-bg);
  color: var(--t-text);
  border-radius: var(--radius);
  padding: 22px;
  font-size: var(--t-font);
  font-family: var(--t-family, system-ui);
  min-height: 320px;
}
.surface-preview header { display: flex; justify-content: space-between; align-items: center; gap: var(--t-space); margin-bottom: var(--t-space); }
.surface-preview nav { display: flex; gap: 14px; color: hsl(var(--t-hue), 8%, 35%); font-size: 13px; }
.surface-preview button { background: var(--t-primary); color: #fff; border: 0; padding: 8px 14px; border-radius: var(--t-rad); cursor: pointer; font-family: inherit; }
.surface-preview main h3 { margin: 6px 0 8px; }
.surface-preview .prev-row { display: flex; gap: 10px; margin: var(--t-space) 0; }
.surface-preview .prev-primary { background: var(--t-primary); color: #fff; }
.surface-preview .prev-ghost { background: transparent; color: var(--t-primary); border: 1px solid var(--t-primary); }
.surface-preview .prev-card { background: #fff; border-radius: var(--t-rad); padding: var(--t-space); border: 1px solid hsl(var(--t-hue), 14%, 88%); }
.surface-preview .prev-tag { color: var(--t-primary); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 6px; }

/* ============ HEURISTICS ============ */
.heur-app { width: 100%; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 15px; margin-bottom: 20px; font-family: inherit; }
.heuristics { display: grid; gap: 10px; }
.heur-item {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.heur-item h4 { margin: 0 0 4px; font-size: 15px; }
.heur-item p { margin: 0; color: var(--muted); font-size: 13px; }
.heur-stars { display: flex; gap: 4px; }
.heur-star { width: 26px; height: 26px; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); display: grid; place-items: center; font-size: 14px; }
.heur-star.on { background: var(--primary); color: white; border-color: var(--primary); }
.heur-result { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.heur-bar { height: 12px; background: var(--bg-2); border-radius: 99px; margin: 10px 0; overflow: hidden; }
.heur-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bad), var(--warn), var(--good)); width: 0; transition: width .3s; }
.heur-verdict { font-size: 15px; margin: 0; }

/* ============ FITTS ============ */
.fitts-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 14px; }
.fitts-controls label { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.fitts-canvas {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 380px;
  overflow: hidden;
}
.fitts-target {
  position: absolute;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  cursor: pointer;
  transition: transform .08s;
}
.fitts-target:hover { transform: scale(1.08); }
.fitts-target.start { background: var(--good); }
.fitts-stats { display: flex; gap: 24px; margin-top: 14px; color: var(--muted); }
.fitts-stats strong { color: var(--text); font-size: 18px; }

/* ============ GESTALT ============ */
.gestalt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.gestalt-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.gestalt-card h4 { margin: 0 0 6px; }
.gestalt-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.gestalt-svg { width: 100%; height: 130px; background: var(--bg-2); border-radius: 10px; display: block; }

/* ============ RESEARCH QUADRANT ============ */
.research {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 480px;
}
.r-axis { position: absolute; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.r-y { left: 8px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
.r-x { bottom: 14px; left: 50%; transform: translateX(-50%); }
.r-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 400px;
  position: relative;
}
.r-grid::before, .r-grid::after { content: ""; position: absolute; background: var(--line); }
.r-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.r-grid::after { top: 50%; left: 0; right: 0; height: 1px; }
.r-cell { padding: 12px; display: flex; flex-direction: column; gap: 8px; align-content: start; flex-wrap: wrap; }
.r-method {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.r-method:hover { border-color: var(--primary); color: var(--primary-2); }
.r-method.active { background: var(--primary); color: white; border-color: var(--primary); }
.r-detail { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 100px; }

/* ============ ACCESSIBILITY ============ */
.a11y-controls { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; color: var(--muted); font-size: 14px; align-items: center; }
.a11y-controls label { display: flex; gap: 6px; align-items: center; }

.a11y-demo {
  background: white; color: #15132a;
  border-radius: var(--radius);
  padding: 28px;
  transition: filter .3s;
  font-family: system-ui;
}
.a11y-demo.protanopia { filter: url('#fProt'); }
.a11y-demo.deuteranopia { filter: url('#fDeut'); }
.a11y-demo.tritanopia { filter: url('#fTrit'); }
.a11y-demo.achromatopsia { filter: grayscale(1); }
.a11y-demo.blur { filter: blur(2.5px); }
.a11y-demo.contrast { filter: contrast(.45); }
.a11y-demo.protanopia.blur { filter: url('#fProt') blur(2.5px); }
.a11y-demo h3 { margin: 0 0 8px; }
.a11y-demo input[type=email] { padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; font-size: 14px; width: 70%; max-width: 320px; margin-right: 8px; }
.a11y-traffic { display: flex; gap: 14px; margin-top: 16px; align-items: center; font-size: 13px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; } .dot.amber { background: #f59e0b; } .dot.green { background: #22c55e; }
.a11y-tip { color: #6c6a85; font-size: 13px; margin-top: 14px; }

.contrast-checker { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contrast-checker h4 { margin: 0 0 12px; }
.cc-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cc-row label { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.cc-sample { padding: 12px 18px; border-radius: 10px; font-weight: 600; margin: 0; }

/* ============ MOBILE ============ */
.bp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.bp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.bp-label { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; display: block; margin-bottom: 8px; letter-spacing: 1px; }
.bp iframe { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; }
.bp[data-w="375"] iframe { height: 320px; }
.bp[data-w="768"] iframe { height: 280px; }
.bp[data-w="1280"] iframe { height: 320px; }

/* ============ FUTURE ============ */
.future-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.future-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  cursor: pointer; transition: transform .2s;
}
.future-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.future-card h4 { margin: 0 0 6px; font-size: 18px; }
.future-card .fc-icon { font-size: 28px; margin-bottom: 10px; }
.future-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.future-card .fc-up, .future-card .fc-down { font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-top: 6px; display: none; }
.future-card.open .fc-up, .future-card.open .fc-down { display: block; }
.future-card .fc-up { background: color-mix(in srgb, var(--good) 18%, transparent); border: 1px solid var(--good); color: var(--good); }
.future-card .fc-down { background: color-mix(in srgb, var(--bad) 18%, transparent); border: 1px solid var(--bad); color: var(--bad); }

/* ============ QUIZ ============ */
.quiz { display: grid; gap: 14px; }
.quiz-q {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.quiz-q h4 { margin: 0 0 12px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-options button {
  text-align: left;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px;
  cursor: pointer; color: var(--text); font-family: inherit; font-size: 14px;
}
.quiz-options button:hover { border-color: var(--primary); }
.quiz-options button.correct { background: color-mix(in srgb, var(--good) 22%, var(--bg-2)); border-color: var(--good); }
.quiz-options button.wrong { background: color-mix(in srgb, var(--bad) 22%, var(--bg-2)); border-color: var(--bad); }
.quiz-feedback { margin-top: 10px; font-size: 13px; color: var(--muted); }
.quiz-result { margin-top: 18px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; }

/* ============ FOOTER ============ */
.footer { padding: 50px 22px 60px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer p { margin: 6px 0; }
.foot-credit { font-family: ui-monospace, monospace; font-size: 12px; opacity: .7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .planes-wrap, .persona-wrap, .moscow, .cardsort, .surface-wrap { grid-template-columns: 1fr; }
  .moscow-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { max-width: 50vw; }
  .nav-links a { font-size: 12px; padding: 5px 7px; }
}
@media (max-width: 540px) {
  .moscow-grid { grid-template-columns: 1fr; }
  .cs-cats { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; padding-bottom: 50px; }
  .section { padding: 60px 16px; }
}
