/* =========================================================
   DESIGN TOKENS — Warm Editorial Trust
   ========================================================= */
:root {
  /* TYPE — ratio 1.250 (major third) */
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --step-6: 3.815rem;

  /* SPACE — base unit 0.25rem */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  /* COLOR — бело-красная палитра, как на исходном сайте за-действие.рф */
  --base: #ffffff;
  --night: #ffffff;
  --surface: #fff6f6;
  --surface-2: #ffeaea;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #f3d6d6;
  --line-gold: rgba(201, 27, 27, 0.25);
  --accent: #c91b1b;
  --accent-ink: #e63946;
  --gold: #c91b1b;
  --gold-bright: #e63946;
  --accent-grad: linear-gradient(90deg, #c91b1b, #e63946);
  --on-light-ink: #1a1a1a;
  --on-light-ink-2: #4a4a4a;
  --on-light-line: #f3d6d6;

  /* FORM */
  --radius: 4px;
  --radius-pill: 999px;
  --border: 1px solid var(--line);
  --shadow-near: 0 1px 2px rgba(29, 36, 48, 0.06);
  --shadow-far: 0 24px 48px -16px rgba(29, 36, 48, 0.18);

  /* MOTION */
  --dur-fast: 120ms;
  --dur: 240ms;
  --dur-slow: 480ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/img/grain.png");
  background-size: 180px 180px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: overlay;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.65; color: var(--ink-2); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-l); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* сюжетная линия прокрутки — тонкая золотая полоса ведёт историю от начала до конца */
.story-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--gold); z-index: 1000; transition: width 80ms linear; box-shadow: 0 0 8px rgba(243, 211, 131, 0.5); }

/* последовательное появление карточек внутри сетки — взгляд идёт по порядку, а не всё разом */
.cases-grid.reveal.is-visible > *, .programs-grid.reveal.is-visible > *, .council-grid.reveal.is-visible > *, .team-grid.reveal.is-visible > *, .roster-grid.reveal.is-visible > * {
  animation: storyStep 620ms var(--ease-out) backwards;
}
.cases-grid > *:nth-child(1), .programs-grid > *:nth-child(1), .council-grid > *:nth-child(1), .team-grid > *:nth-child(1), .roster-grid > *:nth-child(1) { animation-delay: 0ms; }
.cases-grid > *:nth-child(2), .programs-grid > *:nth-child(2), .council-grid > *:nth-child(2), .team-grid > *:nth-child(2), .roster-grid > *:nth-child(2) { animation-delay: 110ms; }
.cases-grid > *:nth-child(3), .programs-grid > *:nth-child(3), .council-grid > *:nth-child(3), .team-grid > *:nth-child(3), .roster-grid > *:nth-child(3) { animation-delay: 220ms; }
.cases-grid > *:nth-child(4), .council-grid > *:nth-child(4), .team-grid > *:nth-child(4), .roster-grid > *:nth-child(4) { animation-delay: 330ms; }
.council-grid > *:nth-child(5), .team-grid > *:nth-child(5), .roster-grid > *:nth-child(5) { animation-delay: 440ms; }
.council-grid > *:nth-child(6), .team-grid > *:nth-child(6), .roster-grid > *:nth-child(6) { animation-delay: 550ms; }
.roster-grid > *:nth-child(7) { animation-delay: 660ms; }
.roster-grid > *:nth-child(8) { animation-delay: 770ms; }
@keyframes storyStep {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   BUTTONS — all five states
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-l);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px rgba(201, 27, 27, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.btn-primary:disabled { background: var(--line); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--base); }
.btn-outline:active { background: var(--line); }
.btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline-light:hover { border-color: var(--accent); background: var(--surface); color: var(--accent); }
.btn-outline-light:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-lg { padding: var(--space-s) var(--space-xl); font-size: var(--step-0); }
.btn-block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-s) 0; gap: var(--space-m); }
.logo { display: flex; align-items: center; gap: var(--space-2xs); }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); display: flex; flex-direction: column; letter-spacing: -0.01em; color: var(--ink); }
.logo-text small { font-family: var(--font-text); font-weight: 400; font-size: 0.65rem; color: var(--ink-3); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: var(--space-xs); font-weight: 700; font-size: var(--step--1); }
.nav-links a {
  position: relative; background: #fff; color: #1a1a1a; padding: 10px 18px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(201,27,27,0.2); background: var(--accent); color: #fff; }
.nav-right { display: flex; align-items: center; gap: var(--space-m); }
.phone { font-weight: 600; font-size: var(--step--1); color: var(--ink-2); }
.nav-burger { display: none; background: none; border: none; font-size: var(--step-2); cursor: pointer; color: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; padding: var(--space-3xl) 0 var(--space-2xl);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.3) 36%, rgba(255,255,255,0.08) 62%, rgba(255,255,255,0.02) 100%),
    url("assets/img/hero-family.jpg") center / cover no-repeat;
}
.hero-copy {
  background: rgba(255,255,255,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius); padding: var(--space-l); box-shadow: 0 20px 50px -24px rgba(60,20,20,0.25);
}

/* animated mesh-gradient backdrop */
.hero-mesh {
  position: absolute; inset: -10% -10%; z-index: 0; pointer-events: none;
  background: rgba(201, 27, 27, 0.06);
  animation: meshDrift 16s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 2%) scale(1.06); }
  100% { transform: translate(2%, -1%) scale(1.02); }
}
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8; }
.hero-3d { position: absolute; top: -8%; right: -6%; width: 64%; height: 120%; z-index: 0; pointer-events: none; opacity: 0.35; }
@media (max-width: 900px) { .hero-3d { display: none; } }

/* floating parallax shapes */
.float-shape { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 0; will-change: transform; }
.float-shape-1 { top: 8%; left: 4%; width: 70px; height: 70px; background: var(--gold); filter: blur(22px); opacity: 0.25; animation: floatY 7s ease-in-out infinite; }
.float-shape-2 { bottom: 10%; left: 42%; width: 40px; height: 40px; background: var(--accent); filter: blur(16px); opacity: 0.22; animation: floatY 5.5s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(8px); } }

/* 3D tilt cards — JS sets --rx/--ry/--mx/--my */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 900px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform var(--dur) var(--ease-out);
}
.hero-media-shine {
  position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 60%);
  opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; mix-blend-mode: overlay;
}
.tilt-card:hover .hero-media-shine { opacity: 1; }

.blob { position: absolute; border-radius: 50%; filter: blur(30px); z-index: -1; }
.blob-a { width: 180px; height: 180px; background: var(--gold); opacity: 0.35; top: -40px; right: -40px; animation: floatY 8s ease-in-out infinite; }
.blob-b { width: 130px; height: 130px; background: var(--accent); opacity: 0.25; bottom: -30px; left: -30px; animation: floatY 6.5s ease-in-out infinite reverse; }

/* magnetic buttons — JS sets translate via --mx/--my */
.btn-magnetic { transform: translate(var(--mx, 0), var(--my, 0)); transition: transform var(--dur-fast) var(--ease-out), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }

.btn-glow { position: relative; }
.btn-glow::before {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  background: var(--accent); opacity: 0.45; z-index: -1;
  animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0; }
}

/* ===== PREMIUM GOLD SHIMMER ===== */
/* тонкая золотая обводка + бегущий блик при наведении — применяется к карточкам и панелям */
.gold-frame {
  position: relative;
  border: 1px solid var(--line-gold);
  background: var(--surface);
  overflow: hidden;
}
.gold-frame::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(243, 211, 131, 0.16) 45%, rgba(243, 211, 131, 0.35) 50%, rgba(243, 211, 131, 0.16) 55%, transparent);
  transform: skewX(-20deg);
  transition: left 900ms var(--ease-out);
  pointer-events: none;
}
.gold-frame:hover::after { left: 150%; }
.gold-frame:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 44px -18px rgba(212, 175, 90, 0.35); }

/* постоянный медленный блик на главной кнопке — premium CTA sheen */
.btn-sheen { position: relative; overflow: hidden; }
.btn-sheen::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55) 50%, transparent);
  transform: skewX(-20deg);
  animation: sheenSweep 3.2s ease-in-out infinite;
}
@keyframes sheenSweep {
  0% { left: -60%; }
  45%, 100% { left: 140%; }
}

/* мерцающие частицы-звёзды поверх премиальных секций */
.sparkle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 6px 1px var(--gold-bright); animation: sparkleTwinkle 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1); }
}

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-2xl); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-3xs); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; color: var(--accent-ink); margin-bottom: var(--space-m); }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, var(--step-6)); margin-bottom: var(--space-m); }
.accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero p { font-size: var(--step-1); margin-bottom: var(--space-l); max-width: 460px; }
.hero-cta { display: flex; gap: var(--space-s); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.hero-stats { display: flex; gap: var(--space-xl); border-top: var(--border); padding-top: var(--space-l); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); font-weight: 600; }
.hero-stats span { font-size: var(--step--1); color: var(--ink-3); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-far); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-media::before { content: ""; position: absolute; inset: var(--space-m) calc(-1 * var(--space-m)) calc(-1 * var(--space-m)) var(--space-m); border: 1px solid var(--line); border-radius: var(--radius); z-index: -1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: calc(var(--radius) + 22px);
  border: 2px dashed var(--line-gold);
  z-index: -1;
  animation: ringSpin 16s linear infinite;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* hero без фото: 3D-объект (уже абсолютно спозиционирован через .hero-3d) — единственный визуал, копия на всю ширину */
.hero-inner.hero-inner-solo { display: block; max-width: 640px; }

/* фото подопечного — квадратная рамка, без элементов поверх лица */
.case-main-photo {
  display: block; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius);
  object-fit: cover; background: var(--surface-2);
}

/* icon-header — цветная иконка вместо фото в карточках историй/мероприятий */
.icon-header { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-bottom: var(--border); }
.icon-header-photo {
  background-size: contain; background-position: center; background-repeat: no-repeat;
  background-color: var(--surface-2);
  position: relative;
}
.icon-header-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,10,0.1) 0%, rgba(20,10,10,0.5) 100%);
}
.icon-header-photo span { position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }

/* =========================================================
   CURRENT CASE — the memorable moment: thermometer scale
   ========================================================= */
.current-case { background: linear-gradient(180deg, #fff6f6 0%, #ffffff 100%); padding: var(--space-2xl) 0; }
.current-case-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-2xl); align-items: center; }
.current-case-media img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.current-case-media {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: var(--space-xl) var(--space-l); box-shadow: 0 16px 40px -20px rgba(201,27,27,0.18);
}
.tag { display: inline-block; color: var(--gold); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-s); }
.case-avatars { display: flex; gap: 10px; margin-bottom: var(--space-m); }
.case-avatar {
  width: 52px; height: 52px; border-radius: 50%; padding: 3px; border: 3px solid #fff;
  background: #fff; cursor: pointer; box-shadow: 0 2px 10px -2px rgba(60,20,20,0.4), 0 0 0 1px var(--line);
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.case-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; opacity: 0.6; transition: opacity var(--dur) var(--ease); }
.case-avatar:hover img { opacity: 0.85; }
.case-avatar:hover { transform: translateY(-2px); }
.case-avatar.active { border-color: var(--accent); box-shadow: 0 2px 10px -2px rgba(201,27,27,0.5), 0 0 0 1px var(--accent); }
.case-avatar.active img { opacity: 1; }
.case-carousel-head { display: flex; align-items: center; gap: var(--space-s); margin-bottom: var(--space-s); flex-wrap: wrap; }
.case-carousel-head .tag { margin-bottom: 0; }
.case-deadline {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--2); font-weight: 600;
  color: var(--accent-ink); background: #fbe7e2; border: 1px solid rgba(201,27,27,0.25);
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.case-deadline::before { content: "⏳"; font-size: 0.85em; }
.case-carousel-nav { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }

.hero-stat-link { display: block; text-decoration: none; color: inherit; transition: transform var(--dur) var(--ease); }
.hero-stat-link:hover { transform: translateY(-2px); }
.hero-stat-link:hover b { color: var(--accent); }
.hero-stats-note { font-size: var(--step--2); color: var(--ink-3); margin-top: var(--space-xs); }
.case-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.case-arrow:hover { background: var(--accent); color: #fff; transform: scale(1.08); }
.case-carousel-dots { display: flex; gap: 6px; }
.case-carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.case-carousel-dots span.active { background: var(--accent); transform: scale(1.3); }
.current-case h2 { color: var(--ink); font-size: var(--step-4); margin-bottom: var(--space-s); max-width: 520px; }
.current-case p { color: var(--ink-2); margin-bottom: var(--space-l); max-width: 480px; }

.progress { margin-bottom: var(--space-l); }
.progress-scale { position: relative; height: 28px; margin-bottom: var(--space-xs); }
.progress-track { position: absolute; top: 11px; left: 0; right: 0; height: 6px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-grad); border-radius: var(--radius-pill); transition: width 1400ms var(--ease-out); position: relative; }
.progress-fill::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 14px; background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 70%); animation: pulseGlow 1.8s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.progress-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.progress-ticks span { width: 1px; height: 28px; background: var(--line); }
.progress-numbers { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--ink-2); }
.progress-numbers b { color: #fff; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; display: block; }
.progress.sm .progress-track { height: 4px; margin-bottom: var(--space-2xs); }
.progress.sm .progress-fill { background: var(--accent-grad); }

/* =========================================================
   SECTIONS GENERIC
   ========================================================= */
section { padding: var(--space-3xl) 0; }
.section-head { max-width: 640px; margin: 0 auto var(--space-2xl); text-align: center; }
.section-title { font-size: clamp(var(--step-3), 3.4vw, var(--step-5)); margin-bottom: var(--space-2xs); }
.section-title.light { color: var(--ink); }
.section-lead { color: var(--ink-3); font-size: var(--step-0); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); max-width: 980px; margin: 0 auto; }
.about-grid p { font-size: var(--step-0); }

/* CASES */
.cases { background: var(--base); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-l); }
.case-card { background: var(--surface); border-radius: 10px; overflow: hidden; border: 1px solid var(--line-gold); transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.case-card:hover { box-shadow: 0 0 0 1px var(--gold), var(--shadow-far); transform: translateY(-4px); }
.case-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.case-card-body { padding: var(--space-m); }
.case-status { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius); margin-bottom: var(--space-xs); }
.case-status.done { background: #e6efe3; color: #3f6b36; }
.case-status.active { background: #fbe7e2; color: var(--accent-ink); }
.case-card h3 { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.case-card p { font-size: var(--step--1); }
.cases-more { text-align: center; margin-top: var(--space-xl); }

/* PROGRAMS */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--border); }
.program { padding: var(--space-l) var(--space-m); border-right: var(--border); }
.program:last-child { border-right: none; }
.program h3 { font-size: var(--step-1); margin-bottom: var(--space-m); color: var(--ink); }
.program li { padding: var(--space-xs) 0; color: var(--ink-2); font-size: var(--step--1); border-top: var(--border); }
.program li:first-child { border-top: none; }

/* REPORTS */
.reports { background: var(--night); }
.reports-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--space-2xl); align-items: center; }
.reports .section-head { text-align: left; margin: 0 0 var(--space-l); }
.reports p { color: var(--ink-2); margin-bottom: var(--space-l); max-width: 460px; }
.reports-links { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.reports-stats { display: flex; flex-direction: column; gap: var(--space-s); }
.reports-stats div { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-m); }
.reports-stats b { display: block; font-family: var(--font-display); font-size: var(--step-4); color: var(--accent); font-weight: 600; }
.reports-stats span { color: var(--ink-2); font-size: var(--step--1); }

/* COUNCIL / TEAM */
.team { background: var(--base); }
.council-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-l); }
.council-card { text-align: center; }
.council-card img { border-radius: 50%; aspect-ratio: 1/1; object-fit: cover; width: 100%; margin-bottom: var(--space-s); filter: grayscale(0.15); transition: filter var(--dur) var(--ease); }
.council-card:hover img { filter: grayscale(0); }
.council-card b { display: block; font-size: var(--step--1); font-weight: 600; }
.council-card span { font-size: 0.75rem; color: var(--ink-3); }

/* DONATE */
.donate.section-light {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 42%, rgba(255,255,255,0.12) 72%, rgba(255,255,255,0.03) 100%),
    url("assets/img/donate-kids.jpg") center / cover no-repeat;
}
.donate-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.donate-copy { background: rgba(255,255,255,0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: var(--space-l); }
.donate-copy .section-title { text-align: left; }
.donate-points { margin-top: var(--space-l); display: flex; flex-direction: column; gap: var(--space-xs); }
.donate-points li { font-weight: 500; font-size: var(--step--1); color: var(--ink-2); }
.donate-form { background: var(--surface-2); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-s); box-shadow: var(--shadow-far); }
.donate-tabs { display: flex; gap: var(--space-3xs); background: var(--surface); border: var(--border); border-radius: var(--radius-pill); padding: var(--space-3xs); }
.donate-tab { flex: 1; border: none; background: none; padding: var(--space-xs); border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; font-size: var(--step--1); color: var(--ink-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.donate-tab.active { background: var(--gold); color: var(--base); }
.donate-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2xs); }
.amount { padding: var(--space-s) 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; cursor: pointer; font-size: var(--step--1); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease); }
.amount:hover { border-color: var(--ink-2); }
.amount.active { border-color: var(--accent); color: var(--accent-ink); background: #fbe7e2; }
.amount:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.donate-input { padding: var(--space-s) var(--space-m); border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: var(--step--1); background: var(--surface); transition: border-color var(--dur) var(--ease); }
.donate-input:focus-visible, .donate-input:focus { outline: none; border-color: var(--accent); }
.donate-check { font-size: 0.75rem; color: var(--ink-3); display: flex; gap: var(--space-2xs); align-items: flex-start; }

/* FOOTER */
.footer { background: var(--night); color: var(--ink-2); padding-top: var(--space-2xl); border-top: 1px solid var(--line-gold); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: var(--space-l); padding-bottom: var(--space-l); }
.footer-brand img { width: 40px; margin-bottom: var(--space-s); }
.footer-brand p { color: var(--ink-3); font-size: var(--step--1); margin: var(--space-xs) 0; }
.age { display: inline-block; border: 1px solid var(--line); padding: 2px 8px; border-radius: var(--radius); font-size: 0.75rem; }
.footer h4 { color: var(--ink); font-family: var(--font-text); font-weight: 600; font-size: var(--step--1); margin-bottom: var(--space-s); }
.footer div > a, .footer div > span { display: block; font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--space-xs); }
.footer div > a:hover { color: var(--accent); }
.qr-placeholder { width: 104px; height: 104px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; text-align: center; color: var(--ink-3); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: var(--space-m) 0; font-size: 0.75rem; color: var(--ink-3); }


/* =========================================================
   NAV — крупная сияющая кнопка "Поддержать" с сердечными искрами
   ========================================================= */
.nav-right .btn-primary { padding: var(--space-s) var(--space-l); font-size: var(--step-0); font-weight: 700; position: relative; }
.btn-heart-sparkle { position: relative; }
.btn-heart-sparkle::before, .btn-heart-sparkle::after {
  content: "♥"; position: absolute; font-size: 0.6rem; color: var(--accent-ink);
  opacity: 0; pointer-events: none; text-shadow: 0 0 6px var(--accent-ink);
}
.btn-heart-sparkle::before { top: -10px; left: 10%; animation: heartSparkle 2.2s ease-in-out infinite; }
.btn-heart-sparkle::after { top: -6px; right: 14%; animation: heartSparkle 2.2s ease-in-out infinite 1.1s; }
@keyframes heartSparkle {
  0%, 100% { opacity: 0; transform: translateY(4px) scale(0.6); }
  50% { opacity: 1; transform: translateY(-10px) scale(1); }
}

/* кнопка целиком в форме сердца — шапка сайта */
.btn-heart-full {
  position: relative; display: block; width: 40px; height: 40px; margin: 27px 6px 4px;
  background: var(--accent-grad); transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(201,27,27,0.35);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
  animation: heartBeat 2.4s ease-in-out infinite;
}
.btn-heart-full::before, .btn-heart-full::after {
  content: ""; position: absolute; width: 40px; height: 40px; background: inherit; border-radius: 50%;
}
.btn-heart-full::before { top: -20px; left: 0; }
.btn-heart-full::after { top: 0; left: 20px; }
.btn-heart-full span {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 0.44rem; text-align: center; line-height: 1.1; letter-spacing: -0.02em;
}
.btn-heart-full:hover { transform: rotate(-45deg) scale(1.08); box-shadow: 0 10px 20px rgba(201,27,27,0.5); animation-play-state: paused; }
@keyframes heartBeat {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  10% { transform: rotate(-45deg) scale(1.04); }
  20% { transform: rotate(-45deg) scale(0.99); }
  30% { transform: rotate(-45deg) scale(1.03); }
  40% { transform: rotate(-45deg) scale(1); }
}
@media (max-width: 900px) {
  .btn-heart-full, .btn-heart-full::before, .btn-heart-full::after { width: 32px; height: 32px; }
  .btn-heart-full { margin: 23px 4px 4px; }
  .btn-heart-full::before { top: -16px; }
  .btn-heart-full::after { left: 16px; }
  .btn-heart-full span { font-size: 0.38rem; letter-spacing: -0.02em; }
}

/* =========================================================
   О ФОНДЕ — разворот старой позолоченной книги
   ========================================================= */
.about-book {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(201, 27, 27, 0.08), var(--shadow-far);
  padding: var(--space-2xl) var(--space-2xl);
}
.about-book::before, .about-book::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 27, 27, 0.3); border-radius: 3px; pointer-events: none;
}
.about-book::after { inset: 18px; border-width: 1px; opacity: 0.6; }
.about-book-title {
  text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: var(--step-4); color: var(--ink); margin-bottom: var(--space-l);
  letter-spacing: 0.01em;
}
.about-book-spine { width: 80px; height: 2px; background: var(--accent); margin: 0 auto var(--space-xl); opacity: 0.6; }
.about-grid.about-book-pages { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); max-width: 100%; position: relative; }
.about-grid.about-book-pages::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,27,27,0.3) 15%, rgba(201,27,27,0.3) 85%, transparent);
}
.about-book-pages p { color: var(--ink-2); font-family: var(--font-display); font-size: var(--step-0); line-height: 1.8; }
.about-book-pages p::first-letter { font-size: 2.2em; font-weight: 600; color: var(--accent); float: left; line-height: 0.8; margin-right: 4px; }

/* =========================================================
   ПРОЕКТЫ — живые персонажи оживают при наведении (по реальным проектам фонда)
   ========================================================= */
.case-card .icon-header { position: relative; overflow: hidden; gap: var(--space-l); }
.icon-header span { display: inline-block; font-size: 2.2rem; transition: transform var(--dur) var(--ease); }
/* Марафон Улыбок: балерина танцует слева, клоун смеётся и машет справа */
.case-card:hover .icon-header .char-ballerina { animation: charSpin 1.4s ease-in-out infinite; }
.case-card:hover .icon-header .char-clown { animation: charWave 0.5s ease-in-out infinite; }
/* Лапы доброты: собака гавкает, кот машет хвостом */
.case-card:hover .icon-header .char-dog { animation: charBark 0.5s ease-in-out infinite; }
.case-card:hover .icon-header .char-cat { animation: charTail 0.6s ease-in-out infinite; }
/* Продюсерский центр: нота и микрофон — музыка играет */
.case-card:hover .icon-header .char-note { animation: charNote 1.1s ease-in-out infinite; }
.case-card:hover .icon-header .char-mic { animation: charWave 0.4s ease-in-out infinite; }
@keyframes charBark { 0%, 100% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
@keyframes charTail { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes charWave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(18deg); } }
@keyframes charNote { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes charSpin { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(360deg) scale(1.1); } }

/* =========================================================
   ТЕКУЩИЙ СБОР — пульсирующее сердце "Помочь" + смена настроения
   ========================================================= */
.case-face.progress-ring-label { font-size: 1.3rem; }
.case-face .face-sad { transition: opacity var(--dur) var(--ease); }
.case-face .face-happy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--dur) var(--ease); border-radius: 50%; background: var(--surface); }
.heart-btn {
  position: relative; width: 64px; height: 58px; margin: 0 auto; display: block; cursor: pointer; border: none; background: none;
}
.heart-btn::before, .heart-btn::after {
  content: ""; position: absolute; top: 0; width: 34px; height: 54px; border-radius: 34px 34px 0 0;
  background: var(--accent-grad); box-shadow: 0 0 18px 4px rgba(217, 165, 33, 0.55);
  animation: heartPulse 1.3s ease-in-out infinite;
}
.heart-btn::before { left: 32px; transform: rotate(-45deg); transform-origin: 0 100%; }
.heart-btn::after { left: -2px; transform: rotate(45deg); transform-origin: 100% 100%; }
@keyframes heartPulse { 0%, 100% { transform-origin: inherit; scale: 1; } 50% { scale: 1.08; } }
.case-face:has(~ .heart-btn:hover) .face-happy,
.current-case-media:hover .face-happy { opacity: 1; }
.current-case-media:hover .face-sad { opacity: 0; }

/* =========================================================
   НАБЛЮДАТЕЛЬНЫЙ СОВЕТ — затемнение фото + описание при наведении
   ========================================================= */
.council-card { position: relative; text-align: center; }
.council-card .council-photo { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; margin-bottom: var(--space-s); }
.council-card .council-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; transition: transform var(--dur-slow) var(--ease), filter var(--dur) var(--ease); }
.council-card:hover .council-photo img { transform: scale(1.06); filter: brightness(0.4); }
.council-card .council-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-s);
  opacity: 0; transition: opacity var(--dur) var(--ease); background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.85));
}
.council-card:hover .council-overlay { opacity: 1; }
.council-card .council-overlay span,
.section-light .council-card .council-overlay span { color: #ffffff !important; font-size: 0.78rem; font-weight: 600; line-height: 1.4; }
.council-card b { display: block; font-size: var(--step--1); font-weight: 600; margin-top: var(--space-2xs); }

/* =========================================================
   НАША КОМАНДА — скрытая выезжающая панель
   ========================================================= */
.team-toggle {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin: 0 auto var(--space-l);
  background: var(--accent-grad); border: none; color: #fff; border-radius: var(--radius-pill);
  padding: var(--space-s) var(--space-xl); font-weight: 700; font-size: var(--step-0); cursor: pointer;
  box-shadow: 0 8px 20px rgba(201,27,27,0.3);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.team-toggle::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 600ms var(--ease-out);
}
.team-toggle:hover::before { transform: translateX(120%); }
.team-toggle:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 28px rgba(201,27,27,0.42); }
.team-toggle .chevron { transition: transform var(--dur) var(--ease); display: inline-block; }
.team-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.team-panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.team-panel.is-open { max-height: 1400px; }
.team-panel .team-grid { padding-top: var(--space-l); }

/* =========================================================
   СТРАТЕГИЧЕСКИЕ ПАРТНЁРЫ — вращающееся колесо логотипов
   ========================================================= */
.partners { background: var(--night); overflow: hidden; }
/* лента-конвейер партнёров: медленно едет слева направо, пауза на ховере */
.partners-belt-wrap { position: relative; max-width: 100%; margin: var(--space-l) auto 0; overflow: hidden; }
.partners-belt-wrap::before, .partners-belt-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.partners-belt-wrap::before { left: 0; background: linear-gradient(90deg, var(--base), transparent); }
.partners-belt-wrap::after { right: 0; background: linear-gradient(-90deg, var(--base), transparent); }
.partners-belt { display: flex; width: max-content; gap: var(--space-m); animation: beltScroll 28s linear infinite; }
.partners-belt-wrap:hover .partners-belt { animation-play-state: paused; }
@keyframes beltScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-chip {
  flex-shrink: 0; min-width: 220px; display: flex; flex-direction: column; justify-content: center;
  padding: var(--space-m) var(--space-l); border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-far);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.partner-chip:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-far); border-color: var(--accent); }
.partner-chip b, .partner-chip a { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.partner-chip span { display: block; font-size: 0.75rem; color: var(--ink-2); margin-top: 2px; }
.partner-chip-logo {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-s); padding: 6px;
}
.partner-chip-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) { .partner-chip { min-width: 170px; padding: var(--space-s) var(--space-m); } }

/* =========================================================
   ДОКУМЕНТЫ — конверты-письма с анимацией открытия
   ========================================================= */
.documents { background: var(--base); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-l); }
.doc-letter { perspective: 1200px; }
.doc-letter summary { list-style: none; cursor: pointer; }
.doc-letter summary::-webkit-details-marker { display: none; }
.doc-envelope {
  position: relative; background: #ffffff; border: 1px solid var(--accent);
  border-radius: 6px; padding: var(--space-l) var(--space-m); min-height: 160px; box-shadow: var(--shadow-far);
  transition: transform var(--dur) var(--ease);
}
.doc-letter:hover .doc-envelope { transform: translateY(-4px); }
.doc-envelope .doc-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 60%; background: var(--accent-grad);
  clip-path: polygon(0 0, 100% 0, 50% 60%); border-radius: 6px 6px 0 0; transform-origin: top; transition: transform var(--dur-slow) var(--ease-out); z-index: 2;
}
.doc-letter[open] .doc-flap { transform: rotateX(-165deg); }
.doc-envelope .doc-seal {
  position: absolute; top: 36%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; z-index: 3;
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}
.doc-envelope .doc-title { position: relative; z-index: 1; text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--on-light-ink); margin-top: var(--space-l); font-size: var(--step-0); }
.doc-envelope .doc-body { position: relative; z-index: 1; margin-top: var(--space-s); color: var(--on-light-ink-2); font-size: var(--step--1); display: none; }
.doc-letter[open] .doc-body { display: block; }
.doc-envelope .doc-link { position: relative; z-index: 1; display: inline-block; margin-top: var(--space-s); font-weight: 600; color: var(--accent); font-size: var(--step--1); }

/* =========================================================
   ПОДДЕРЖКА ФОНДА — QR и кнопка-сердце
   ========================================================= */
.qr-placeholder { width: 128px; height: auto; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 0.68rem; text-align: center; color: var(--on-light-ink-2); padding: 8px 6px; font-weight: 600; }
.qr-placeholder svg { width: 86px; height: 86px; }
.footer .qr-placeholder span { color: var(--on-light-ink-2) !important; margin: 0; }
.footer-support { display: flex; flex-direction: column; gap: var(--space-s); align-items: flex-start; }
.qr-placeholder-xl { width: 256px; padding: 14px; }
.qr-placeholder-xl img { width: 220px; height: 220px; }
.footer-requisites { display: flex; flex-direction: column; gap: 3px; font-size: 0.74rem; color: var(--ink-3); }
.footer-requisites b { color: var(--ink); font-size: 0.8rem; margin-bottom: 2px; }
.btn-heart-shape::before { content: "♥"; font-size: 1.1em; line-height: 1; animation: heartPulse 1.3s ease-in-out infinite; }


/* =========================================================
   HERO — ячейки подопечных (по образцу "Сетки героев")
   ========================================================= */
.hero-inner-cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; max-width: 100%; }
.hero-cell-grid { display: flex; align-items: flex-end; justify-content: center; gap: var(--space-s); flex-wrap: wrap; }
.hero-cell-grid-3 .hero-cell { object-position: center top; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.nav-kruche { white-space: nowrap; }
.hero-cell {
  position: relative; width: 175px; height: 360px; flex-shrink: 0; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-far);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.hero-cell:nth-child(1) { height: 300px; align-self: flex-end; }
.hero-cell:nth-child(2) { height: 420px; }
.hero-cell:nth-child(3) { height: 360px; }
.hero-cell:nth-child(4) { height: 330px; align-self: flex-end; }
.hero-cell:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 0 0 2px var(--accent), var(--shadow-far); }
.hero-cell img { width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.hero-cell-overlay { display: none; }
.hero-cell-overlay-disabled {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-s) var(--space-s) var(--space-m);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}
.hero-cell-overlay b { display: block; color: #fff; font-size: var(--step--1); font-family: var(--font-display); }
.hero-cell-overlay span { color: #ffd4d4; font-size: 0.7rem; }


/* =========================================================
   СВЕТЛАЯ ТЕМА для контентных блоков — по образцу оригинала
   за-действие.рф (белый фон, тёплый красно-золотой акцент)
   ========================================================= */
.section-light {
  background: #ffffff;
}
.section-light .section-title,
.section-light h1, .section-light h2, .section-light h3 {
  color: var(--on-light-ink);
}
.section-light .section-lead,
.section-light p {
  color: var(--on-light-ink-2);
}
.section-light .case-card {
  background: #fff;
  border: 1px solid var(--on-light-line);
}
.section-light .case-card:hover {
  box-shadow: 0 0 0 1px var(--gold), 0 20px 44px -18px rgba(90, 60, 10, 0.25);
}
.section-light .case-card h3 { color: var(--on-light-ink); }
.section-light .case-card p { color: var(--on-light-ink-2); }
.section-light .icon-header:not(.icon-header-photo) { background: linear-gradient(135deg, #fff5f5, #ffe3e3); }
.section-light .icon-header { border-bottom: 1px solid var(--on-light-line); }
.section-light .case-status.active { background: #fde4da; color: var(--accent); }
.section-light .case-status.done { background: #ffe3e3; color: var(--accent); }
.section-light .program { border-right: 1px solid var(--on-light-line); }
.section-light .program:last-child { border-right: none; }
.section-light .program h3 { color: var(--on-light-ink); }
.section-light .program li { color: var(--on-light-ink-2); border-top: 1px solid var(--on-light-line); }
.section-light .program li:first-child { border-top: none; }
.section-light .programs-grid { border-top: 1px solid var(--on-light-line); }
.section-light .council-card b, .section-light .council-card span { color: var(--on-light-ink); }
.section-light .doc-link { color: var(--accent); }
.section-light .donate-copy p, .section-light .donate-points li { color: var(--on-light-ink-2); }
.section-light .donate-form { background: #fff; border: 1px solid var(--on-light-line); }
.section-light .donate-tabs { background: #fff5f5; border-color: var(--on-light-line); }
.section-light .donate-tab { color: var(--on-light-ink-2); }
.section-light .donate-input { background: #fff; border-color: var(--on-light-line); color: var(--on-light-ink); }
.section-light .amount { background: #fff; border-color: var(--on-light-line); color: var(--on-light-ink); }
.section-light .donate-check { color: var(--on-light-ink-2); }
.section-light .about-grid p { color: var(--on-light-ink-2); }
.section-light .hero-cell { border: 1px solid var(--on-light-line); box-shadow: 0 10px 30px -14px rgba(90, 60, 10, 0.3); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-links, .nav-right .phone { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 900px) {
  .hero-inner, .current-case-inner, .about-grid, .reports-inner, .donate-inner { grid-template-columns: 1fr; }
  .about-book-pages::before { display: none; }
  .hero-inner-cells { grid-template-columns: 1fr; }
  .hero-cell { width: 110px; height: 230px !important; align-self: center !important; }
  .about-book { padding: var(--space-l); }
  .docs-grid { grid-template-columns: 1fr; }
  .partners-belt { animation-duration: 20s; }
  .current-case-media { order: -1; max-width: 320px; }
  .cases-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .program { border-right: none; border-top: var(--border); }
  .program:first-child { border-top: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .reports .section-head, .donate-copy .section-title { text-align: center; }
  .donate.section-light {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.85) 100%),
      url("assets/img/donate-kids.jpg") center top / cover no-repeat;
  }
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.05) 100%),
      url("assets/img/hero-family.jpg") center / cover no-repeat;
  }
}
