/* CCMH 2.0 — Design tokens & base */
:root {
  /* Palette — refined from alliance-ccmh.org's linen-blue + deep navy */
  --ink: #0a1929;          /* deep ocean ink */
  --ink-2: #14253a;
  --ink-3: #223349;
  --paper: #f7fbfb;        /* light teal-white (CCMH-aligned) */
  --paper-2: #eef6f5;
  --paper-3: #e2eded;
  --line: rgba(10, 25, 41, 0.12);
  --line-2: rgba(10, 25, 41, 0.06);
  --muted: #5a6b7e;
  --teal: #1f6f7a;         /* science teal */
  --teal-2: #277f8c;
  --teal-soft: #e6f5f3;
  --clay: #c66b3d;         /* warm clay accent */
  --clay-2: #b25a2f;
  --clay-soft: #fbe9e1;
  --gold: #c9a44a;
  --leaf: #5a7d4a;
  --crisis: #c8412c;
  --lilac: #8b66b0;         /* долгосрочные экономические последствия */
  --signal-amber: #d8a13a;
  --signal-green: #5a7d4a;

  /* Type */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 18px;

  --maxw: 1400px;
}

/* Длинные строки: одна строка на десктопе, перенос — на мобильных */
.nowrap-desktop { white-space: nowrap; }
@media (max-width: 880px) {
  .nowrap-desktop { white-space: normal; }
  .chain-flow { flex-wrap: wrap !important; white-space: normal !important; overflow-x: visible !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
pre, code { max-width: 100%; overflow-x: auto; }
table { max-width: 100%; }
/* prevent grid/flex children from blowing out parent */
.container > *, .topbar-inner > *, .footer-grid > *, .app-shell > * { min-width: 0; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.025em; line-height: 0.98; }
h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.018em; }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }

.label, .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Top nav */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 251, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
}
.brand small { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: normal; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 15px; color: var(--ink); font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.nav-links a.active { border-bottom-color: var(--ink); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex; gap: 14px; align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #0c5d6f; color: var(--paper); }
.btn-primary:hover { background: #0a4f5e; }
/* Кнопки в шапке: фон как у шапки + обводка 0c5d6f */
.nav-cta .btn { font-size: 15px; }
.nav-cta .btn-primary { background: transparent; color: #0c5d6f; border: 1px solid #0c5d6f; }
.nav-cta .btn-primary:hover { background: #0c5d6f; color: var(--paper); }

/* Language switcher */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-btn {
  flex: none;
  width: 38px; height: 38px; padding: 0; overflow: hidden;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.lang-btn:hover { border-color: #0c5d6f; box-shadow: 0 0 0 2px rgba(12, 93, 111, 0.15); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 172px; padding: 6px; margin: 0;
  list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 25, 41, 0.14);
  z-index: 60;
}
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 8px; border: none; background: transparent;
  color: var(--ink); font-size: 14px; cursor: pointer; text-align: left;
  transition: background .12s;
}
.lang-item:hover { background: rgba(12, 93, 111, 0.08); }
.lang-item.is-active { color: #0c5d6f; font-weight: 600; }
.lang-name { white-space: nowrap; padding-right: 8px; }
.lang-check { margin-left: auto; color: #0c5d6f; }

/* Climate threats block */
.cth-sec {
  background: #eef4f5;
  border-top: 1px solid #dce9ea; border-bottom: 1px solid #dce9ea;
  padding: 68px 0;
}
.cth-sec .tag.cth-tag { background: #d6e8ea; color: #155057; }
.cth-grid { display: grid; gap: 18px; margin-top: 28px; }
.cth-card {
  background: #fff; border: 1px solid #dde9ea; border-radius: 16px;
  padding: 24px 26px; transition: box-shadow .15s, border-color .15s;
}
.cth-card:hover { border-color: #a9cfd3; box-shadow: 0 10px 28px rgba(21, 80, 87, 0.08); }
.cth-flow { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 20px; align-items: stretch; }
.cth-label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em;
  text-transform: uppercase; color: #5b8a8f; margin-bottom: 8px;
}
.cth-cause p { font-size: 16px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.cth-arrow { align-self: center; color: #1f6f7a; font-size: 24px; line-height: 1; }
.cth-result {
  background: #e6f1f2; border: 1px solid #cfe4e6; border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; justify-content: center;
}
.cth-result .cth-label { color: #1f6f7a; }
.cth-result p { font-size: 16px; line-height: 1.4; color: #12474e; font-weight: 600; }
.cth-effects { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e7f0f0; }
.cth-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.cth-list li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-3);
}
.cth-list li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: #4f9aa1;
}
@media (min-width: 860px) { .cth-list { grid-template-columns: 1fr 1fr; gap: 9px 32px; } }
@media (max-width: 720px) {
  .cth-flow { grid-template-columns: 1fr; gap: 14px; }
  .cth-arrow { transform: rotate(90deg); justify-self: start; }
}
/* Кнопки в hero: фон как у блока + обводка 0c5d6f, текст 0c5d6f */
.hero .btn { background: transparent; color: #0c5d6f; border: 1px solid #0c5d6f; }
.hero .btn:hover { background: #0c5d6f; color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-2); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-lg { padding: 14px 22px; font-size: 14px; }

.kbd {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--paper-2);
}

/* Cards & surfaces */
.card {
  background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card-dark {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2);
}
.tag-clay { background: rgba(198,107,61,0.14); color: var(--clay-2); }
.tag-teal { background: rgba(31,111,122,0.14); color: var(--teal); }
.tag-leaf { background: rgba(90,125,74,0.16); color: var(--leaf); }
.tag-amber { background: rgba(216,161,58,0.18); color: #8d6a1f; }
.tag-crisis { background: rgba(200,65,44,0.14); color: var(--crisis); }

/* Status dot */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--signal-green); box-shadow: 0 0 0 4px rgba(90,125,74,0.18); }
.dot-amber { background: var(--signal-amber); box-shadow: 0 0 0 4px rgba(216,161,58,0.22); }
.dot-red { background: var(--crisis); box-shadow: 0 0 0 4px rgba(200,65,44,0.22); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(200,65,44,0.18); } 50% { box-shadow: 0 0 0 8px rgba(200,65,44,0.05); } }

/* Footer */
.footer {
  background: var(--ink); color: var(--paper); padding: 60px 0 32px; margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.55); font-weight: 400; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer ul a { color: rgba(244,239,230,0.85); }
.footer ul a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 56px; font-family: var(--mono); font-size: 11px; color: rgba(244,239,230,0.5); letter-spacing: 0.04em; }

/* Auth dashboard layout */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: var(--paper);
  padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-section { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244,239,230,0.4); margin: 18px 10px 6px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px;
  color: rgba(244,239,230,0.78); transition: background .12s, color .12s;
}
.side-link:hover { background: rgba(244,239,230,0.06); color: var(--paper); }
.side-link.active { background: rgba(244,239,230,0.10); color: var(--paper); }
.side-link .ic { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.side-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; padding: 1px 6px; border-radius: 4px; background: var(--clay); color: #fff; }
.workspace { padding: 32px 40px 80px; min-width: 0; }

/* Inputs */
.input {
  width: 100%; padding: 12px 14px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px;
}
.input:focus { outline: none; border-color: var(--ink); }
.field-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }

/* Charts */
.spark { width: 100%; height: 60px; }

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.gap-32 { gap: 32px; } .gap-40 { gap: 40px; } .gap-56 { gap: 56px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-40 { margin-bottom: 40px; } .mb-56 { margin-bottom: 56px; }
.mt-auto { margin-top: auto; }
.full { width: 100%; }
hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* Section titles */
.section-title {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
}
.section-title h2 { max-width: 720px; }
.section-title .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  background: #ecfbf4;
}
.hero-grid {
  display: grid; grid-template-columns: 1.3fr clamp(246px, 35.2vw, 462px); gap: 60px; align-items: end;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }

/* Crisis banner */
.crisis-banner {
  background: #0c5d6f; color: var(--paper);
  padding: 10px 0; font-size: 12.5px;
}
.crisis-banner .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Map placeholder */
.map-placeholder {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(10,25,41,0.045) 24px, rgba(10,25,41,0.045) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(10,25,41,0.045) 24px, rgba(10,25,41,0.045) 25px),
    var(--paper-2);
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* Image placeholder (striped) */
.imgph {
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Toggle pill */
.pill-toggle {
  display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 999px; gap: 2px;
  border: 1px solid var(--line);
}
.pill-toggle button {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--muted);
}
.pill-toggle button.on { background: var(--ink); color: var(--paper); }

/* Misc lists */
.kv {
  display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px;
  font-size: 13.5px;
}
.kv dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; }

/* Hero wireframe globe — d3 + canvas2D */
.hero-globe {
  aspect-ratio: 1/1; max-width: 462px; width: 100%; margin-left: auto;
  position: relative;
  background: transparent;
  overflow: visible;
  filter: drop-shadow(0 12px 40px rgba(10,25,41,0.10));
}
.hero-globe-canvas {
  display: block; width: 100%; height: 100%;
  cursor: grab; touch-action: none;
}
.hero-globe-canvas:active { cursor: grabbing; }
.hero-globe-load {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(244,239,230,0.7);
  pointer-events: none;
}
.hero-globe-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); opacity: 0.55; pointer-events: none;
}

/* Floating tags on globe */
.float-tag {
  position: absolute; padding: 6px 10px; background: var(--paper); color: var(--ink);
  border-radius: 6px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px -6px rgba(10,25,41,0.3);
  z-index: 2;
}

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button {
  padding: 10px 16px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s ease both; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink { animation: blink 1.4s ease-in-out infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Meta ribbon (hero) */
.meta-ribbon {
  display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 28px 36px;
  width: 100%;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-ribbon-item { display: flex; flex-direction: column; gap: 4px; }

/* Events */
.events-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px;
}
.event-card {
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; text-decoration: none; color: inherit;
  border-color: #0c5d6f;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  border-color: #0a4f5e;
  box-shadow: 0 10px 30px -18px rgba(10,25,41,0.25);
}
.event-card .cover {
  aspect-ratio: 4/3;
  background: #e6e0d3 center/cover no-repeat;
  border-radius: 8px;
}
.event-card.lg .cover { aspect-ratio: 16/10; }
.events-rail {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.events-rail > * {
  flex: 0 0 280px; scroll-snap-align: start;
}

/* Research */
.research-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.research-card {
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.research-card:hover {
  transform: translateY(-2px);
  border-color: var(--clay);
  box-shadow: 0 10px 30px -18px rgba(10,25,41,0.25);
}
.research-card .bar {
  height: 4px; background: var(--paper-2);
  border-radius: 2px; overflow: hidden;
}
.research-card .bar > i {
  display: block; height: 100%; background: var(--clay);
}
.filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { border-color: var(--ink-2); }
.filter-chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { margin: 0 auto; }
  .app-shell { grid-template-columns: 200px 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .events-grid > .event-card.lg { grid-column: 1 / -1; }
  .impact-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .workspace { padding: 24px; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid > .event-card.lg { grid-column: auto; }
  .research-list { grid-template-columns: 1fr; }
  .meta-ribbon { gap: 18px 28px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr !important; }
}
.brand-logo {
  height: 52px; width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo-sm { height: 28px; }
.brand-logo-lg { height: 76px; }
@media (max-width: 600px) {
  .brand-logo { height: 44px; }
}
.brand-platform {
  font-size: 10px; letter-spacing: 0.18em; color: var(--muted);
  text-transform: uppercase; margin-left: 4px; padding-left: 14px;
  border-left: 1px solid var(--line); white-space: nowrap; flex-shrink: 0;
}
.hero-alliance {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(31,163,156,0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(224,97,58,0.08), transparent 60%);
}
.hero-alliance::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(13,31,45,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,31,45,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
}
.project-card {
  position: relative;
  border-radius: 18px;
  padding: 36px 36px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: stretch;
  overflow: hidden;
}
.project-card.is-main {
  background: linear-gradient(135deg, #0d1f2d 0%, #182b3d 100%);
  color: var(--paper);
  border: 1px solid rgba(244,239,230,0.08);
}
.project-card.is-child {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.project-card .tag-rail {
  position: absolute; top: 18px; right: 18px;
  display: flex; gap: 8px; align-items: center;
}
.project-stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px; margin-top: 28px;
}
/* «Об альянсе 2» — показатели в один ряд под левой колонкой */
.about2-stats { grid-template-columns: repeat(4, 1fr); }
.project-card.is-main .project-stat-grid .big { color: var(--paper); }
.project-card.is-main .project-stat-grid .sub { color: rgba(244,239,230,0.7); }
.project-feature {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 12px; align-items: start; padding: 12px 0;
}
.project-card.is-main .project-feature { border-top: 1px solid rgba(244,239,230,0.08); }
.project-card.is-child .project-feature { border-top: 1px solid var(--line); }
.project-feature:first-of-type { border-top: none; }
.project-feature .num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 6px; border-radius: 4px;
  background: var(--clay); color: #fff;
  align-self: start;
}
.project-card.is-main .project-feature .num { background: var(--clay); }
.project-card.is-child .project-feature .num { background: var(--teal); }

/* hierarchy badge */
.relation-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: rgba(244,239,230,0.12);
  color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.relation-pill .pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
  box-shadow: 0 0 0 3px rgba(224,97,58,0.18);
}
.relation-pill.alt { background: var(--paper-2); color: var(--ink); }
.relation-pill.alt .pill-dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(31,163,156,0.20); }

/* relationship diagram */
.hg-diagram {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 18px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #ffffff;
}
.hg-diagram .branch {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  display: grid; gap: 6px;
}
.hg-diagram .arrow {
  font-family: var(--mono); font-size: 22px; color: var(--clay);
}
.expert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.expert-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.expert-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(13,31,45,0.35); }
.expert-photo {
  aspect-ratio: 4/5; border-radius: 10px;
  background-color: var(--paper-2);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.expert-photo[data-empty="1"] {
  background-image:
    repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--paper-3) 14px 28px);
}
.expert-photo .upload-cta {
  position: absolute; inset: auto 8px 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(13,31,45,0.86); color: var(--paper);
  padding: 8px 10px; border-radius: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.expert-photo input[type="file"] { display: none; }
.expert-name { font-size: 16px; font-family: var(--serif); letter-spacing: -0.01em; }
.expert-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-2); }
.expert-caption {
  width: 100%; resize: none;
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 12.5px; line-height: 1.4;
  background: transparent; color: var(--ink-2);
  font-family: var(--sans);
  min-height: 50px;
}
.expert-caption:focus { outline: none; border-color: var(--teal); border-style: solid; }
.expert-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }

/* Expanded expert panel */
.expert-detail {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 28px;
}
.expert-detail .photo-large {
  aspect-ratio: 4/5; border-radius: 12px;
  background-color: var(--paper-2);
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.subtabs {
  display: flex; gap: 4px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.subtabs button {
  padding: 9px 14px; font-size: 12.5px;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.subtabs button.on { color: var(--ink); border-bottom-color: var(--clay); }

.cert-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
}
.cert-thumb {
  width: 56px; height: 72px; border-radius: 4px;
  background:
    linear-gradient(135deg, var(--teal-soft), var(--paper-2));
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9px; color: var(--teal-2); letter-spacing: 0.1em;
  border: 1px solid var(--line);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.gallery-grid .imgph { aspect-ratio: 4/3; }

.event-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.event-row:first-child { border-top: none; }
.event-row .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }

/* ─── Action quads (research page CTAs) ─── */
.action-quad {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.action-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.action-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(13,31,45,0.35); }
.action-card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
}
.action-card h3 { font-size: 22px; }
.action-card .icon-bubble {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-2);
}
.action-card.is-clay .icon-bubble { background: var(--clay-soft); color: var(--clay-2); }
.action-card .field-mini {
  border: 1px dashed var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
}
.action-card .field-mini.is-input { border-style: solid; color: var(--ink); background: var(--paper); cursor: text; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,31,45,0.45);
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeUp 0.18s ease both;
}
.modal {
  background: var(--paper); border-radius: 18px;
  width: 100%; max-width: 640px; max-height: 86vh; overflow: auto;
  padding: 28px 28px 22px;
  border: 1px solid var(--line);
}
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .modal-close {
  float: right;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center; color: var(--ink-2);
}
.modal label { display: block; margin-top: 14px; }
.modal textarea.input { min-height: 90px; }

/* CCMH brand-mark fallback (when no logo loaded) */
.brand-mark-orange { background: var(--clay) !important; }
.brand-mark-teal   { background: var(--teal) !important; }

.img-credit {
  position: absolute; bottom: 6px; right: 8px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(244,239,230,0.85);
  background: rgba(13,31,45,0.55);
  padding: 2px 6px; border-radius: 4px;
}
.imgph { position: relative; }

/* Responsive */
@media (max-width: 900px) {
  .project-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .project-card .tag-rail { position: static; margin-bottom: 16px; }
  .hg-diagram { grid-template-columns: 1fr; text-align: center; }
  .hg-diagram .arrow { transform: rotate(90deg); justify-self: center; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-detail { grid-template-columns: 1fr; }
  .action-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .expert-grid { grid-template-columns: 1fr; }
  .action-quad { grid-template-columns: 1fr; }
  .subtabs { flex-wrap: wrap; }
}

/* ──────────────── RESPONSIVE UTILITIES (mobile-first) ──────────────── */
.grid-sidebar { display: grid; grid-template-columns: 1fr 360px; gap: 24px; }
.grid-sidebar-sm { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.grid-data-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-data-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-data-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.scroll-chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1023px) {
  .grid-sidebar, .grid-sidebar-sm { grid-template-columns: 1fr; }
  .grid-data-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-data-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-data-4, .grid-data-3, .grid-data-2 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .btn-sm { min-height: 38px; }
  .btn { min-height: 44px; }
  input, select, textarea { font-size: 16px; /* prevent iOS zoom */ }
}
@media (max-width: 480px) {
  .scroll-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-left: -16px; margin-right: -16px;
    padding-left: 16px; padding-right: 16px;
  }
  .scroll-chips > * { scroll-snap-align: start; flex-shrink: 0; }
  .scroll-chips::-webkit-scrollbar { display: none; }
}

/* Safe area (notch / Dynamic Island) */
@supports (padding: env(safe-area-inset-top)) {
  .topbar { padding-top: calc(14px + env(safe-area-inset-top)); }
  .container { padding-left: calc(28px + env(safe-area-inset-left)); padding-right: calc(28px + env(safe-area-inset-right)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile drawer (TopBar hamburger) */
.nav-toggle { display: none; }
.nav-drawer {
  position: fixed; inset: 0; background: rgba(10,25,41,0.6);
  z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, visibility 0s linear 0.2s;
  overflow: hidden;
  visibility: hidden;
}
.nav-drawer.open {
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity 0.2s, visibility 0s;
}
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(82vw, 360px);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 8px;
  padding: calc(20px + env(safe-area-inset-top, 0)) 24px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 28px rgba(0,0,0,0.18);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-panel a {
  font-size: 17px; padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.nav-drawer-close {
  align-self: flex-end;
  background: none; border: none; cursor: pointer;
  font-size: 22px; padding: 8px; color: var(--ink);
  min-width: 44px; min-height: 44px;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: var(--teal-soft); border: 1px solid var(--teal);
    border-radius: 8px; cursor: pointer; color: var(--teal);
    margin-left: 6px;
  }
  .nav-toggle:active { background: var(--teal); color: #fff; }
  .nav-links { display: none !important; }
  .topbar-inner { padding-right: 16px; padding-left: 16px; }
  .nav-cta { margin-left: auto; }
}

/* Globe responsive height */
@media (max-width: 1023px) { .globe-container { height: 460px !important; } }
@media (max-width: 600px)  { .globe-container { height: 360px !important; } }

/* Data row tables — desktop grid, mobile card-stack */
.data-row { display: grid; gap: 16px; align-items: center; padding: 14px 18px; }
.data-row.cols-6 { grid-template-columns: 100px 60px 1fr 100px 100px 110px; }
.data-row.cols-7 { grid-template-columns: 110px 80px 1fr 90px 110px 110px 120px; }
@media (max-width: 900px) {
  .data-row.cols-6, .data-row.cols-7 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .data-row > .btn { justify-self: start; margin-top: 4px; min-width: 140px; }
  .data-row > .mono.text-xs { opacity: 0.6; font-size: 11px; }
}

/* Modal bottom-sheet on mobile */
@media (max-width: 600px) {
  .modal-card, .modal {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    animation: sheet-up 0.25s ease-out;
  }
  .modal-card::before, .modal::before {
    content: "";
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: var(--line); border-radius: 2px;
  }
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* allow grid/flex items to shrink below content min-width (prevents track blow-out) */
.grid > *, .col > *, .row > *, .pub-grid > *, .card-dark > *, .events-grid > *, .footer-grid > * { min-width: 0; }
/* Responsive collapse for inline gridTemplateColumns (audit 2026-05-15) */
@media (max-width: 480px) {
  .grid[style*="repeat(2,"],
  .grid[style*="repeat(3,"],
  .grid[style*="repeat(4,"],
  .grid[style*="repeat(5,"],
  .grid[style*="1fr 1fr"],
  .grid[style*="1.4fr 1fr"],
  .grid[style*="1.5fr 1fr"],
  .grid[style*="1.6fr 1fr"],
  .grid[style*="2fr 1fr"],
  .grid[style*="1fr 2fr"],
  .pub-grid[style*="1.6fr 1fr"],
  div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1.5fr 1fr"],
  div[style*="grid-template-columns: 1.6fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .brand-platform { display: none !important; }
  .nav-cta .btn { display: none !important; }
  .nav-cta .nav-toggle { display: inline-flex !important; }
  /* prevent flex-row tag/button overlap on narrow screens */
  .row { flex-wrap: wrap; }
  /* long words / urls — break instead of overflow */
  body, p, h1, h2, h3, h4, h5, li, a, span { overflow-wrap: anywhere; word-break: normal; }
  /* absolute-positioned hero float tags escape on small screens — hide */
  .hero-globe .float-tag { display: none; }
}
@media (min-width: 481px) and (max-width: 900px) {
  .grid[style*="repeat(3,"],
  .grid[style*="repeat(4,"],
  .grid[style*="repeat(5,"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .grid[style*="1.4fr 1fr"],
  .grid[style*="1.5fr 1fr"],
  .grid[style*="1.6fr 1fr"],
  .grid[style*="2fr 1fr"],
  .grid[style*="1fr 2fr"],
  div[style*="grid-template-columns: 1fr 2fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1.5fr 1fr"],
  div[style*="grid-template-columns: 1.6fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Touch targets — WCAG 2.5.5 (a11y) */
.btn-sm { min-height: 44px; min-width: 44px; padding: 10px 18px; }

/* SignalsPage error fallback */
.error-boundary-fallback {
  padding: 60px 28px; text-align: center; color: var(--ink-2);
  max-width: 520px; margin: 40px auto;
}
.error-boundary-fallback h3 {
  font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--ink);
}
.error-boundary-fallback p { font-size: 14px; opacity: 0.8; margin-bottom: 18px; }

/* ──────────────── Publications block (HomePage) ──────────────── */
.publications-block .pub-grid { align-items: stretch; }
.pub-card {
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden; padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.pub-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.pub-card-featured {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 360px;
}
.pub-cover {
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  min-height: 220px;
}
.pub-body {
  padding: 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.pub-title { font-family: var(--serif); color: var(--ink); margin: 0; }
.pub-card:hover .pub-title { color: var(--clay-2); }
.pub-abs { margin: 0; }

/* Research highlight tile (alliance-ccmh.org/research3) — third-tile style, fully clickable */
.research-highlight-tile { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.research-highlight-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.research-highlight-tile h3 { transition: color .2s ease; }
.research-highlight-tile:hover h3 { color: var(--clay-2); }
.research-highlight-cover {
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  width: 100%; aspect-ratio: 3 / 2; min-height: 200px;
}

@media (max-width: 900px) {
  .publications-block .pub-grid { grid-template-columns: 1fr !important; }
  .pub-card-featured { grid-template-columns: 1fr; }
  .pub-cover { min-height: 200px; }
}

/* ──────────────── Reports — index + detail ──────────────── */
.report-page { padding-bottom: 80px; }

/* Report hero */
.report-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.report-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.report-hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  margin: 14px 0 16px;
  color: var(--ink);
  max-width: 640px;
}
.report-hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
}
.report-meta > div > div { color: var(--ink); margin-top: 4px; }
.report-cover-wrap {
  position: relative;
  aspect-ratio: 680 / 948;
  max-width: 320px;
  margin-left: auto;
  filter: drop-shadow(0 18px 40px rgba(10,25,41,0.18));
}
.report-cover {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 4px;
  display: block;
}

@media (max-width: 900px) {
  .report-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .report-cover-wrap { max-width: 240px; margin: 0 auto; }
}

/* Report layout — sticky TOC + content */
.report-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.report-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}
.report-toc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--line);
}
.report-toc-item a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 8px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
  line-height: 1.35;
}
.report-toc-item a:hover { color: var(--ink); }
.report-toc-item.active a {
  color: var(--ink);
  border-left-color: var(--clay);
  font-weight: 500;
}
.report-toc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  min-width: 22px;
}
.report-toc-item.active .report-toc-num { color: var(--clay-2); }

@media (max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; gap: 32px; }
  .report-sidebar { position: relative; top: 0; }
  .report-toc-list {
    flex-direction: row; flex-wrap: wrap; gap: 6px;
    border-left: none; border-top: 1px solid var(--line); padding-top: 14px;
  }
  .report-toc-item a {
    border-left: none; border-bottom: 2px solid transparent;
    padding: 6px 10px; margin-left: 0;
  }
  .report-toc-item.active a { border-left-color: transparent; border-bottom-color: var(--clay); }
}

/* Report sections */
.report-section {
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line-2);
  scroll-margin-top: 88px;
}
.report-section:last-of-type { border-bottom: none; }
.report-section-label {
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 14px;
}
.report-section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--ink);
  position: relative;
}
.report-anchor {
  position: absolute;
  left: -28px; top: 0.1em;
  color: var(--line);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.7em;
  transition: color 120ms ease;
}
.report-section-title:hover .report-anchor { color: var(--clay); }

.report-prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  width: 100%;
}
.report-prose strong { color: var(--ink); font-weight: 600; }
.report-prose .report-list {
  font-size: 16px; color: var(--ink-2); line-height: 1.65;
  padding-left: 22px; margin: 8px 0 20px;
  width: 100%;
}
.report-prose .report-list li { margin-bottom: 8px; }

/* Research article tables & diagrams (no background, borders only) */
.rtable-wrap { overflow-x: auto; margin: 28px 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); min-width: 640px; background: transparent; }
.rtable th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line-2); font-weight: 600; background: transparent;
}
.rtable td { padding: 9px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; background: transparent; }
.rtable tr:last-child td { border-bottom: none; }
.rtable .rt-sec td {
  font-weight: 600; color: var(--teal); background: transparent;
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.rtable td.num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; background: transparent; }
.rtable tr:hover td { background: transparent; }
.rfigure { margin: 30px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 22px; background: transparent; }
.rfigure-title { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 0 16px; line-height: 1.3; }
.rfigure .rflow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.rflow .rnode {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 16px;
  color: var(--ink); font-size: 13.5px; text-align: center; max-width: 520px; background: transparent;
}
.rflow .rnode.is-root { color: var(--ink); border-color: var(--ink); font-weight: 600; background: transparent; }
.rflow .rnode.is-cat { border-color: rgba(198,107,61,0.35); font-weight: 600; background: transparent; }
.rflow .rnode.is-mh { border-color: rgba(31,111,122,0.35); font-weight: 600; background: transparent; }
.rflow .rarrow { color: var(--clay); font-size: 15px; line-height: 1; padding: 5px 0; }
.rflow .rrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; max-width: 760px; }
.rflow .rchip {
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  padding: 5px 13px; font-size: 12.5px; color: var(--ink-2);
}
.rfig-cap { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 8px 0 22px; width: 100%; }
.rcite { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 14px 0 4px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.rcite a { color: var(--teal); text-decoration: none; }
.rcite a:hover { text-decoration: underline; }
.rquote { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--clay); border-radius: 0 8px 8px 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; background: transparent; }
/* Concentric diagram (slide 7) */
.rdiagram { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.rdiagram .rrings { position: relative; width: 300px; height: 300px; flex: 0 0 auto; margin: 0 auto; }
.rrings .rring {
  position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 11.5px; line-height: 1.35; padding: 6px; box-sizing: border-box; background: transparent;
}
.rrings .r-c0 { inset: 96px; border: 1px solid var(--ink); font-weight: 600; font-size: 13px; color: var(--ink); }
.rrings .r-c1 { inset: 60px; border: 1px dashed rgba(31,111,122,0.55); color: var(--teal); }
.rrings .r-c2 { inset: 16px; border: 1px solid rgba(198,107,61,0.4); color: var(--ink-2); }
.rdiagram .rnotes { flex: 1 1 280px; min-width: 260px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 720px) { .rdiagram .rrings { width: 240px; height: 240px; } .rdiagram .rrings .r-c0 { inset: 76px; } .rdiagram .rrings .r-c1 { inset: 46px; } .rdiagram .rrings .r-c2 { inset: 10px; } }

/* Stat hero (big numbers) */
.stat-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat-hero { display: flex; flex-direction: column; gap: 6px; }
.stat-hero-n {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 6px;
}
.stat-hero-sub { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Key takeaway */
.key-takeaway {
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
}
.key-takeaway-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.key-takeaway-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.key-takeaway-body strong { font-weight: 600; }

/* Report quote */
.report-quote {
  position: relative;
  padding: 24px 28px 24px 56px;
  margin: 32px 0;
  border-left: 3px solid var(--clay);
  background: var(--clay-soft);
  border-radius: 0 6px 6px 0;
}
.report-quote-mark {
  position: absolute;
  left: 16px; top: 8px;
  font-family: var(--serif);
  font-size: 56px;
  color: var(--clay);
  line-height: 1;
}
.report-quote p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.report-quote-author {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  font-style: normal;
}

/* Chart figure */
.chart-figure {
  margin: 32px 0;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.chart-canvas-stub {
  background: var(--paper-2);
  aspect-ratio: 16/9;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.chart-caption {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ink-2);
}
.chart-svg-wrap, .chart-inner {
  padding: 16px 16px 8px;
  background: var(--paper);
}
.chart-inner svg { width: 100%; height: auto; display: block; }
.chart-tick {
  font-family: var(--mono);
  font-size: 10.5px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}
.chart-annot {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-2);
  letter-spacing: 0.05em;
}
.chart-axis-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-footer {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* ──────────────── Topics / Актуальные вопросы ──────────────── */
/* Объединённый блок: заголовок + интро + статистика */
.topics-hero { padding-bottom: clamp(40px, 6vw, 72px); background: #ecfbf4; }
.topics-hero::after { display: none; }
.topics-hero-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.topics-hero-grid > p { max-width: 760px; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; color: var(--ink); font-weight: 500; }
.topics-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.topics-stat { display: flex; flex-direction: column; gap: 8px; }
.topics-stat-n {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  color: var(--clay-2);
  letter-spacing: -0.01em;
}
.topics-stat-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}
@media (max-width: 680px) {
  .topics-hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Текст +2px и максимальный контраст (цифры не увеличиваем) — только на этой странице */
.topics-page .topics-stat-label { font-size: 15px; color: var(--ink); }
.topics-page .topic-chip { font-size: 15px; color: var(--ink); }
.topics-page .faq-qtext { font-size: clamp(19px, 1.9vw, 23px); color: var(--ink); }
.topics-page .faq-body p { font-size: 17.5px; color: var(--ink); }
.topics-page .faq-stat-l { font-size: 14.5px; color: var(--ink); }
.topics-page .faq-rec-list li { font-size: 16.5px; color: var(--ink); }
.topics-page .key-takeaway-body { font-size: 18px; color: var(--ink); }
.topics-page .key-takeaway-label { font-size: 13px; }
.topics-page .report-quote p { font-size: 21px; color: var(--ink); }
.topics-page .report-quote-author { font-size: 13px; color: var(--ink); }

.topic-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s, transform .12s;
}
.topic-chip:hover { border-color: var(--clay); color: var(--clay-2); transform: translateY(-1px); }
.topic-chip .n { font-family: var(--mono); font-size: 11px; color: var(--clay); }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  transition: border-color .15s, box-shadow .2s;
}
.faq-item.open { border-color: var(--clay); box-shadow: 0 8px 32px -22px rgba(198,107,61,0.55); }
.faq-q {
  display: flex; align-items: center; gap: 18px; width: 100%;
  text-align: left; padding: 22px 26px; background: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--paper-2); }
.faq-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--clay); flex-shrink: 0; }
.faq-ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); flex-shrink: 0;
}
.faq-item.open .faq-ic { background: var(--clay-soft); color: var(--clay-2); }
.faq-qtext {
  font-family: var(--serif); font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.25; color: var(--ink); flex: 1; letter-spacing: -0.01em;
}
.faq-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--ink-2); flex-shrink: 0;
  transition: transform .25s ease, background .15s, color .15s, border-color .15s;
}
.faq-item.open .faq-toggle { background: var(--clay); color: #fff; border-color: var(--clay); transform: rotate(180deg); }
.faq-body { padding: 4px 26px 30px 84px; animation: faq-reveal .25s ease-out; }
.faq-body p { color: var(--ink-3); font-size: 15.5px; line-height: 1.65; margin-bottom: 14px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body .key-takeaway, .faq-body .report-quote, .faq-body .faq-stats { margin: 20px 0; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.faq-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px; padding: 22px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px;
}
.faq-stat-n { font-size: 32px; line-height: 1; color: var(--clay-2); letter-spacing: -0.01em; }
.faq-stat-l { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; margin-top: 8px; }

.faq-rec-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.faq-rec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.faq-rec-list li::before { content: "→"; color: var(--teal); flex-shrink: 0; font-family: var(--mono); }
.key-takeaway .faq-rec-list li::before { color: var(--teal); }

@media (max-width: 600px) {
  .faq-q { padding: 16px 18px; gap: 12px; }
  .faq-ic { display: none; }
  .faq-body { padding: 0 18px 22px; }
}

/* ──────────────── Impact factors accordion (AboutPage · is-main card) ──────────────── */
.factor-list { display: flex; flex-direction: column; }
.factor-topic { border-bottom: 1px solid rgba(244,239,230,0.12); }
.factor-topic:first-child { border-top: 1px solid rgba(244,239,230,0.12); }
.factor-head {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: inherit; transition: opacity 160ms ease;
}
.factor-head:hover { opacity: 0.82; }
.factor-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(244,239,230,0.5); flex-shrink: 0;
}
.factor-title {
  flex: 1; min-width: 0;
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--paper);
}
.factor-chevron {
  color: rgba(244,239,230,0.6); flex-shrink: 0;
  transition: transform 250ms ease;
}
.factor-topic.is-open .factor-chevron { transform: rotate(180deg); }
.factor-body { overflow: hidden; transition: max-height 300ms ease; }
.factor-body p {
  margin: 0; padding: 0 4px 14px 26px;
  font-size: 13px; line-height: 1.55; color: rgba(244,239,230,0.75);
  white-space: pre-line;
}

/* «Об альянсе 2» — правая колонка крупнее, в размер левой */
.about2-factors .factor-title { font-size: 15.5px; }
.about2-factors .factor-body p { font-size: 15.5px; line-height: 1.6; }

/* Иконки-бейджи факторов: по умолчанию скрыты, видны только в «Об альянсе 2» */
.factor-ic-badge { display: none; }
.about2-factors .factor-num { display: none; }
.about2-factors .factor-ic-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--clay); color: var(--paper); flex-shrink: 0;
}
/* раскрытый текст фактора выровнять под иконку */
.about2-factors .factor-body p { padding-left: 46px; }

/* «Об альянсе 2» — второй блок: плитки целей */
.about2-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about2-tile {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
}
.about2-tile-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--clay); color: var(--paper);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.about2-tile p {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
@media (max-width: 880px) {
  .about2-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .about2-tiles { grid-template-columns: 1fr; }
}


/* ─── Research hero tiles (match alliance-ccmh.org/research) ─── */
.rhero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rhero-tile {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.rhero-tile .rhero-img {
  width: 100%; aspect-ratio: 378 / 283;
  object-fit: cover; display: block;
  border-radius: 4px; background: var(--line);
}
.rhero-tile h3 {
  margin: 18px 0 0; font-size: 22px; line-height: 1.25;
  font-weight: 700; color: var(--ink);
}
.rhero-tile p {
  margin: 10px 0 0; font-size: 15px; line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .rhero-tiles { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
  .rhero-tiles { grid-template-columns: 1fr; }
}

/* Research-teaser tiles on Home + Research page — same outline as buttons/event cards */
#research-teaser .rhero-tile, .rhero-tile {
  border: 1px solid #0c5d6f;
  border-radius: var(--radius-lg);
  padding: 14px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#research-teaser .rhero-tile:hover, .rhero-tile:hover {
  transform: translateY(-2px);
  border-color: #0a4f5e;
  box-shadow: 0 10px 30px -18px rgba(10,25,41,0.25);
}
