/* =====================================================================
   «Живи сейчас» — стили сайта
   Палитра бренда: оливковый, солнечно-оранжевый, терракота, золото, крем
   ===================================================================== */
:root {
  --cream: #fbf5ea;
  --cream-2: #f5ead6;
  --cream-3: #efe0c6;
  --white: #ffffff;
  --olive: #6d7c3b;
  --olive-dark: #4d5a28;
  --olive-light: #b9c58a;
  --olive-pale: #e9eed6;
  --orange: #e8923a;
  --orange-dark: #c97722;
  --orange-light: #f7c98a;
  --orange-pale: #fdebd3;
  --terra: #c9643b;
  --terra-dark: #a24c2a;
  --terra-pale: #f8dfd2;
  --gold: #d9a441;
  --gold-light: #f0d48a;
  --ink: #2f2a23;
  --ink-soft: #5c554b;
  --ink-mute: #8a8275;
  --line: #e8dcc6;
  --shadow: 0 10px 30px -12px rgba(82, 58, 20, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(82, 58, 20, 0.35);
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --fs: 1.125rem; /* 18px базовый — крупнее обычного ради читаемости */
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

*, *::before, *::after { box-sizing: border-box; }
[id] { scroll-margin-top: 100px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.95em; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange-light); color: var(--ink); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.container.narrow-wide { max-width: 980px; }
.center { text-align: center; }
.center .hero-actions { justify-content: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; vertical-align: -0.28em; }
.i-title { color: var(--orange); width: 1em; height: 1em; vertical-align: -0.12em; }
.small { font-size: 0.9em; color: var(--ink-soft); }

/* Фокус — заметный для клавиатуры */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 12px; font-weight: 700; transition: top 0.2s; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em; padding: 0.8em 1.5em; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--orange) 0%, var(--terra) 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(201, 100, 59, 0.6); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(201, 100, 59, 0.7); filter: saturate(1.08); }
.btn-secondary { background: var(--olive); color: #fff; box-shadow: 0 10px 24px -10px rgba(77, 90, 40, 0.5); }
.btn-secondary:hover { color: #fff; background: var(--olive-dark); }
.btn-outline { background: transparent; border-color: var(--terra); color: var(--terra); }
.btn-outline:hover { background: var(--terra); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.6); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--olive-dark); }
.btn-light:hover { color: var(--olive-dark); background: var(--cream); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08em; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.92em; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 0.4em; }
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none; }
.link-more:hover .i, .card:hover .card-more .i { transform: translateX(4px); }
.link-more .i, .card-more .i { transition: transform 0.25s var(--ease); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 245, 234, 0.92); border-bottom: 1px solid rgba(232, 220, 198, 0.6); transition: box-shadow 0.3s; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header { isolation: isolate; }
.site-header.scrolled { box-shadow: 0 8px 30px -16px rgba(82, 58, 20, 0.3); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 84px; --container: 1360px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-logo { width: 60px; height: 60px; transition: transform 0.4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--olive-dark); }
.brand-sub { font-size: 0.78rem; color: var(--ink-mute); margin-top: 0.2em; max-width: 200px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.main-nav a { display: block; padding: 0.55rem 0.7rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; position: relative; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.main-nav a:hover { background: var(--orange-pale); color: var(--terra-dark); }
.main-nav a[aria-current="page"] { color: var(--terra-dark); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem; height: 3px; border-radius: 2px; background: var(--orange); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.a11y-btn { display: inline-flex; align-items: center; gap: 0.4em; background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: 0.5em 0.9em; cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); transition: all 0.2s; white-space: nowrap; flex: none; }
.header-cta { white-space: nowrap; flex: none; }
.header-actions { flex: none; }
.a11y-btn:hover, .a11y-btn[aria-pressed="true"] { border-color: var(--olive); color: var(--olive-dark); background: var(--olive-pale); }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger .i { width: 1.6em; height: 1.6em; }
.burger .i-close { display: none; }
.burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1400px) {
  .a11y-btn span { display: none; }
  .a11y-btn { padding: 0.55em 0.7em; }
}
@media (max-width: 1280px) {
  .main-nav a { padding: 0.5rem 0.5rem; font-size: 0.95rem; }
  .header-cta span { display: none; }
  .header-cta { padding: 0.6em 0.8em; }
  .brand-sub { display: none; }
}
@media (max-width: 1024px) {
  .header-inner { min-height: 72px; }
  .header-actions { margin-left: auto; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-sub { display: none; }
  .burger { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; height: calc(100dvh - 72px); background: var(--cream); padding: 1.5rem 1.5rem 3rem; margin: 0; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s var(--ease); z-index: 99; visibility: hidden; }
  .main-nav.open { visibility: visible; }
  .main-nav.open { transform: none; }
  .a11y-btn { display: none; }
  .main-nav ul { flex-direction: column; gap: 0.2rem; }
  .main-nav a { font-size: 1.3rem; padding: 0.8rem 1rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }
  .nav-mobile-extra .btn { justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Flash ---------- */
.flash { padding: 0.9rem 0; font-weight: 600; }
.flash-ok { background: var(--olive-pale); color: var(--olive-dark); }
.flash-error { background: var(--terra-pale); color: var(--terra-dark); }

/* ---------- Панель для слабовидящих ---------- */
.a11y-panel { background: #fff; border-bottom: 2px solid var(--line); }
.a11y-panel-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; padding: 1rem 0; align-items: center; }
.a11y-group { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.a11y-label { font-weight: 700; display: inline-flex; align-items: center; gap: 0.3em; }
.a11y-opts { display: flex; gap: 0.4rem; }
.a11y-opt { border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 10px; padding: 0.35em 0.75em; min-width: 2.6em; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 0.3em; }
.a11y-opt[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y-opt-bw { background: #fff; color: #000; }
.a11y-opt-wb { background: #000; color: #fff; }
.a11y-opt-blue { background: #9dd1ff; color: #063462; }
.a11y-opt-beige { background: #f7f3d6; color: #4d4b43; }
.a11y-opt-strong { background: var(--terra); border-color: var(--terra); color: #fff; }
.a11y-group-actions { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3rem 0 2.5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .sun { position: absolute; right: -10%; top: -30%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 201, 138, 0.55) 0%, rgba(247, 201, 138, 0.25) 35%, rgba(251, 245, 234, 0) 70%); animation: breathe 9s ease-in-out infinite; }
.leaf { position: absolute; width: 38px; height: 38px; background: var(--orange-light); border-radius: 0 60% 0 60%; opacity: 0.55; animation: float 14s ease-in-out infinite; }
.leaf-1 { left: 6%; top: 18%; background: var(--olive-light); animation-duration: 16s; }
.leaf-2 { left: 42%; top: 8%; width: 28px; height: 28px; animation-delay: -4s; }
.leaf-3 { left: 58%; top: 70%; background: var(--terra-pale); animation-delay: -8s; animation-duration: 19s; }
.leaf-4 { left: 85%; top: 60%; width: 46px; height: 46px; background: var(--gold-light); animation-delay: -2s; }
.leaf-5 { left: 20%; top: 80%; width: 24px; height: 24px; background: var(--olive-light); animation-delay: -11s; }
.leaf-6 { left: 92%; top: 12%; width: 30px; height: 30px; background: var(--orange-light); animation-delay: -6s; animation-duration: 21s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(14px, -22px) rotate(25deg); } 50% { transform: translate(-10px, -40px) rotate(-10deg); } 75% { transform: translate(18px, -16px) rotate(30deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 0.5em; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45em 1em; font-weight: 700; color: var(--terra-dark); font-size: 0.95rem; box-shadow: var(--shadow); }
.kicker-light { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.hero h1 { margin: 1rem 0 1rem; }
.hero h1 em { font-style: italic; color: var(--terra); position: relative; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.28em; background: var(--orange-light); z-index: -1; border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease) 0.8s forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.lead p { margin-bottom: 0.7em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0; }
.hero-meta { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: var(--ink-soft); font-weight: 600; }
.hero-meta li { display: inline-flex; align-items: center; gap: 0.4em; }
.hero-meta .i { color: var(--olive); }
.hero-visual { position: relative; }
.hero-frame { border-radius: var(--r-xl) var(--r) var(--r-xl) var(--r); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(1.5deg); background: #fff; padding: 10px; }
.hero-frame img { border-radius: calc(var(--r-xl) - 10px) calc(var(--r) - 10px) calc(var(--r-xl) - 10px) calc(var(--r) - 10px); aspect-ratio: 1400/583; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-badge { position: absolute; left: -1.2rem; bottom: -1.2rem; width: 118px; height: 118px; border-radius: 50%; background: var(--olive); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); animation: wobble 6s ease-in-out infinite; border: 5px solid var(--cream); }
.hero-badge strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.hero-badge span { font-size: 0.9rem; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.countdown { margin-top: 2.5rem; background: #fff; border-radius: var(--r-lg); padding: 1.2rem 1.8rem; display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; z-index: 1; }
.countdown-label { font-family: var(--font-head); font-size: 1.25rem; color: var(--olive-dark); font-weight: 700; }
.countdown-units { display: flex; gap: 1.6rem; }
.countdown-units div { text-align: center; min-width: 3.2em; }
.countdown-units b { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: var(--terra); font-variant-numeric: tabular-nums; }
.countdown-units span { font-size: 0.85rem; color: var(--ink-mute); }
.countdown-done { font-weight: 700; color: var(--olive-dark); }

@media (max-width: 920px) {
  .hero { padding-top: 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; max-width: 560px; }
  .hero-badge { width: 92px; height: 92px; left: auto; right: -0.5rem; bottom: -1rem; }
  .hero-badge strong { font-size: 1.9rem; }
  .countdown { justify-content: center; text-align: center; padding: 1rem; }
  .countdown-units { gap: 1rem; }
  .countdown-units b { font-size: 1.8rem; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; position: relative; }
.section-soft { background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%); }
.section-head { max-width: 820px; margin-bottom: 2.5rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 800; color: var(--olive); margin-bottom: 0.6em; }
.eyebrow-light { color: var(--gold-light); }
.section-lead { font-size: 1.15em; color: var(--ink-soft); }
.note { background: #fff; border-left: 4px solid var(--orange); border-radius: 12px; padding: 0.9rem 1.2rem; color: var(--ink-soft); font-size: 0.98em; margin: 1.5rem 0; }
.note .i { color: var(--orange); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 1.4rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid rgba(232, 220, 198, 0.5); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card h3 { margin-top: 0.6rem; }
.card p { color: var(--ink-soft); margin-bottom: 0.8rem; }
.card-more { margin-top: auto; font-weight: 700; color: var(--terra); display: inline-flex; align-items: center; gap: 0.3em; }
.card-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; background: var(--orange-pale); color: var(--terra); flex: none; transition: transform 0.4s var(--ease); }
.card-icon .i { width: 32px; height: 32px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon-orange { background: var(--orange-pale); color: var(--terra); }
.card-icon-olive { background: var(--olive-pale); color: var(--olive-dark); }
.card-icon-terra { background: var(--terra-pale); color: var(--terra-dark); }
.card-icon-gold { background: #fbf0d2; color: #a8781c; }
.card-direction::before { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--cream-2); transition: transform 0.5s var(--ease); z-index: 0; }
.card-direction:hover::before { transform: scale(1.6); }
.card-direction > * { position: relative; z-index: 1; }
.card-direction-wide { flex-direction: row; gap: 1.4rem; align-items: flex-start; }
.card-direction-wide > div { display: flex; flex-direction: column; flex: 1; }
.card-direction-wide h3 { margin-top: 0; }
.card-article { padding: 0; }
.card-img { aspect-ratio: 1400/583; overflow: hidden; background: var(--cream-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card-article:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-top: 0; display: flex; gap: 0.4em; align-items: flex-start; }
.card-body h3 .i { color: var(--orange); margin-top: 0.15em; }
.card-date { font-size: 0.85rem; color: var(--ink-mute); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.card-cat { flex-direction: row; gap: 1.3rem; align-items: flex-start; }
.card-cat h3 { margin-top: 0; }
.card-count { font-size: 0.9rem; color: var(--olive-dark); font-weight: 700; background: var(--olive-pale); padding: 0.2em 0.7em; border-radius: 999px; }

/* ---------- Цель 1111 ---------- */
.section-goal { background: radial-gradient(ellipse at 20% 50%, var(--orange-pale) 0%, var(--cream) 60%); }
.goal-inner { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center; }
.goal-ring { position: relative; width: 300px; height: 300px; margin-inline: auto; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #fff; stroke-width: 14; }
.ring-fg { fill: none; stroke: url(#ringGrad), var(--orange); stroke: var(--orange); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 2.2s var(--ease); }
.goal-ring.in .ring-fg { stroke-dashoffset: var(--offset, 540); }
.goal-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.goal-num b { font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--terra); font-variant-numeric: tabular-nums; }
.goal-num span { font-weight: 700; color: var(--olive-dark); margin-top: 0.3em; }
.goal-progress { background: #fff; display: inline-block; padding: 0.5em 1em; border-radius: 12px; color: var(--olive-dark); }
@media (max-width: 860px) { .goal-inner { grid-template-columns: 1fr; text-align: center; } .goal-text .hero-actions { justify-content: center; } }

/* ---------- Таймлайн ---------- */
.timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; position: relative; max-width: 900px; }
.timeline::before { content: ''; position: absolute; left: 150px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--orange-light), var(--olive-light)); border-radius: 2px; }
.timeline-item { display: grid; grid-template-columns: 120px 60px 1fr; gap: 0 1rem; align-items: start; padding: 0.4rem 0 1.6rem; }
.timeline-time { text-align: right; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--terra); padding-top: 0.3rem; line-height: 1.1; }
.timeline-time span { display: block; font-size: 0.9rem; color: var(--ink-mute); font-family: var(--font-body); font-weight: 600; }
.timeline-dot { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 3px solid var(--orange-light); display: flex; align-items: center; justify-content: center; color: var(--terra); box-shadow: var(--shadow); position: relative; z-index: 1; transition: transform 0.4s var(--ease), border-color 0.3s; }
.timeline-dot .i { width: 28px; height: 28px; }
.timeline-item:hover .timeline-dot { transform: scale(1.1); border-color: var(--orange); }
.timeline-body { background: #fff; border-radius: var(--r); padding: 1.1rem 1.4rem; box-shadow: var(--shadow); border: 1px solid rgba(232, 220, 198, 0.5); }
.timeline-body h3 { margin: 0 0 0.3em; font-size: 1.25rem; }
.timeline-body p { margin: 0; color: var(--ink-soft); }
.timeline-place { margin-top: 0.4em !important; font-size: 0.92em; color: var(--olive-dark) !important; }
@media (max-width: 640px) {
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: 50px 1fr; }
  .timeline-time { grid-column: 2; text-align: left; order: 1; padding: 0; margin-bottom: 0.3rem; }
  .timeline-time span { display: inline; margin-left: 0.3em; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 2; width: 50px; height: 50px; }
  .timeline-body { grid-column: 2; }
}

/* ---------- Мультфильм ---------- */
.section-film { background: linear-gradient(160deg, var(--olive-dark) 0%, #3f4a21 60%, #2f3818 100%); color: #fff; overflow: hidden; }
.section-film h2, .section-film h1 { color: #fff; }
.section-film p { color: rgba(255, 255, 255, 0.86); }
.section-film .eyebrow { color: var(--gold-light); }
.film-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.film-sub { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--gold-light) !important; }
.film-quote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: #fff; }
.film-visual { position: relative; min-height: 360px; }
.film-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); border: 6px solid rgba(255, 255, 255, 0.9); transform: rotate(-2deg); filter: sepia(0.35) saturate(0.9); }
.film-frame-2 { position: absolute; right: -1rem; bottom: -2rem; width: 55%; transform: rotate(4deg); filter: none; border-color: var(--gold-light); }
.roots { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; opacity: 0.55; pointer-events: none; }
.roots-top { top: 0; bottom: auto; height: 70%; }
.roots svg { width: 100%; height: 100%; }
.root { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.8)); }
.in-view .root { animation: draw 3.5s var(--ease) forwards; }
.in-view .root:nth-child(2) { animation-delay: 0.3s; }
.in-view .root:nth-child(3) { animation-delay: 0.6s; }
.in-view .root:nth-child(4) { animation-delay: 0.9s; }
.in-view .root:nth-child(5) { animation-delay: 0.2s; }
.in-view .root:nth-child(6) { animation-delay: 1.4s; }
.in-view .root:nth-child(7) { animation-delay: 1.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.frames { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; align-items: center; }
.frames figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg, 0 30px 60px -25px rgba(60, 40, 10, 0.45)); background: #2b1d10; }
.frames img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.frames figure:hover img { transform: scale(1.04); }
.frame-small { transform: rotate(2deg); border: 6px solid #fff; }
.frame-small figcaption { padding: 0.8rem 1rem; background: #fff; font-family: var(--font-head); font-style: italic; color: var(--terra-dark); text-align: center; }
@media (max-width: 800px) { .frames { grid-template-columns: 1fr; } .frame-small { transform: none; } }
html.a11y .frames figure, html.a11y .frame-small figcaption { transform: none !important; box-shadow: none !important; border: 2px solid var(--a-line) !important; background: var(--a-bg) !important; color: var(--a-fg) !important; }
html.a11y.a11y-noimg .frames img { display: none !important; }
@media (max-width: 900px) { .film-inner { grid-template-columns: 1fr; } .film-visual { min-height: 0; margin-top: 1rem; } .film-frame-2 { display: none; } }

.page-hero-film { background: linear-gradient(160deg, var(--olive-dark) 0%, #3f4a21 60%, #2f3818 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero-film h1 { color: #fff; font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); }
.page-hero-film .lead { color: rgba(255, 255, 255, 0.86); }
.page-hero-film .container { position: relative; z-index: 1; }
.video-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16/9; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.premiere { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.premiere-img img { height: 100%; object-fit: cover; filter: sepia(0.3); }
.premiere-text { padding: 2rem; }
@media (max-width: 800px) { .premiere { grid-template-columns: 1fr; } }
.story-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.story-steps li { background: #fff; border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.story-steps h3 { margin-top: 0.8rem; }
.story-steps p { color: var(--ink-soft); margin: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .story-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .story-steps { grid-template-columns: 1fr; } }

/* ---------- Помощь ---------- */
.donate-strip { margin-top: 3rem; background: linear-gradient(135deg, #fff 0%, var(--orange-pale) 100%); border-radius: var(--r-lg); padding: 2rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); border: 1px solid var(--line); }
.donate-strip-text { max-width: 520px; }
.donate-strip-text p { margin: 0; color: var(--ink-soft); }
.qr-pair { display: flex; gap: 1.5rem; }
.qr { text-decoration: none; color: var(--ink); text-align: center; font-weight: 700; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; transition: transform 0.3s var(--ease); }
.qr:hover { transform: translateY(-4px); color: var(--terra); }
.qr small { font-weight: 600; color: var(--ink-mute); font-size: 0.8rem; max-width: 160px; line-height: 1.3; }
.donate-goal-title { font-weight: 800; margin: 1rem 0 0.3rem !important; color: var(--olive-dark); }
.check-list-compact li { padding: 0.15em 0; font-size: 0.95em; }
.donate-card-note { color: var(--ink-soft); font-size: 0.95rem; max-width: 24ch; line-height: 1.35; margin-top: -0.4rem; }
.qr img { background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow); width: 140px; height: 140px; }
.donate-big { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1.5rem; align-items: stretch; }
.donate-card { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 1rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); border: 1px solid var(--line); }
.donate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.donate-card img { width: 220px; height: 220px; border-radius: 16px; }
.donate-card-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.donate-what { background: var(--olive-pale); border-radius: var(--r-lg); padding: 2rem; }
.donate-what h3 { color: var(--olive-dark); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.4em 0; }
.check-list .i { color: var(--olive); margin-top: 0.2em; width: 1.4em; height: 1.4em; }
@media (max-width: 1000px) { .donate-big { grid-template-columns: 1fr 1fr; } .donate-what { grid-column: 1 / -1; } }
@media (max-width: 560px) { .donate-big { grid-template-columns: 1fr; } .qr-pair { width: 100%; justify-content: center; } }
.req-card { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.req-card h3 { color: var(--olive-dark); margin-top: 1rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }
.req-card h3:first-child { margin-top: 0; }
.req { margin: 0 0 1rem; }
.req > div { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.req dt { color: var(--ink-mute); }
.req dd { margin: 0; font-weight: 600; word-break: break-word; }
.req code, .js-copy { background: var(--cream-2); padding: 0.2em 0.6em; border-radius: 8px; cursor: copy; font-size: 1.05em; transition: background 0.2s; }
.js-copy:hover { background: var(--orange-pale); }
.js-copy.copied { background: var(--olive-pale); }
.req-purpose { background: var(--orange-pale); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
@media (max-width: 600px) { .req > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- Полезное / телефоны ---------- */
.phones-strip { margin-top: 3rem; background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phones-strip h3 { display: flex; align-items: center; gap: 0.5em; color: var(--olive-dark); }
.phones-strip ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.phones-strip li a { display: flex; flex-direction: column; text-decoration: none; background: var(--cream); border-radius: 14px; padding: 0.9rem 1.1rem; color: var(--ink); border: 1px solid var(--line); transition: all 0.25s var(--ease); height: 100%; }
.phones-strip li a:hover { background: var(--orange-pale); border-color: var(--orange-light); transform: translateY(-2px); }
.phones-strip b { font-family: var(--font-head); font-size: 1.5rem; color: var(--terra); }
.phones-strip span { font-size: 0.95em; color: var(--ink-soft); }
@media (max-width: 900px) { .phones-strip ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .phones-strip ul { grid-template-columns: 1fr; } }
.phones-mini { list-style: none; padding: 0; margin: 0 0 1rem; }
.phones-mini li { padding: 0.3em 0; }

/* ---------- Справочник ---------- */
.directory-teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.directory-teaser-img { border-radius: var(--r-xl) var(--r) var(--r-xl) var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.search-form { display: flex; gap: 0.6rem; background: #fff; padding: 0.5rem; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 640px; }
.search-form input { flex: 1; border: 0; background: transparent; font: inherit; padding: 0.6rem 1rem; min-width: 0; outline: none; }
.search-form input:focus-visible { outline: none; }
.search-form:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-pale); }
.search-form-lg { max-width: 760px; margin-top: 1.5rem; }
@media (max-width: 900px) { .directory-teaser { grid-template-columns: 1fr; } .directory-teaser-img { order: -1; } }
@media (max-width: 480px) { .search-form .btn span { display: none; } }
.filter-bar { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; background: #fff; padding: 1.2rem 1.4rem; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 1rem; }
.filter-bar .field { margin: 0; flex: 1; min-width: 200px; }
.results-count { color: var(--ink-mute); font-weight: 700; margin: 0.5rem 0 1rem; }
.entries { display: grid; gap: 1rem; }
.entry { background: #fff; border-radius: var(--r); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); border: 1px solid rgba(232, 220, 198, 0.5); transition: transform 0.3s var(--ease); }
.entry:hover { transform: translateY(-2px); }
.entry-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 0.5rem; }
.entry-title { margin: 0; font-size: 1.2rem; }
.entry-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.85rem; font-weight: 700; background: var(--olive-pale); color: var(--olive-dark); border-radius: 999px; padding: 0.25em 0.8em; text-decoration: none; }
.tag-link { background: var(--orange-pale); color: var(--terra-dark); }
.entry-row { display: flex; gap: 0.6em; align-items: flex-start; margin: 0.3em 0; color: var(--ink-soft); }
.entry-row .i { color: var(--olive); margin-top: 0.25em; }
.entry-row a { font-weight: 600; }
.entry-links { flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3em; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0.25em 0.8em; font-size: 0.9rem; text-decoration: none; color: var(--ink); font-weight: 600; transition: all 0.2s; }
.chip:hover { background: var(--orange-pale); border-color: var(--orange-light); color: var(--terra-dark); }
.entry-extra { margin: 0.6rem 0 0; font-size: 0.95em; color: var(--ink-soft); background: var(--cream); border-radius: 12px; padding: 0.7rem 1rem; }

/* ---------- Внукам ---------- */
.section-call { background: linear-gradient(135deg, var(--terra-pale) 0%, var(--cream) 50%, var(--olive-pale) 100%); }
.call-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.call-img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
@media (max-width: 900px) { .call-inner { grid-template-columns: 1fr; } }

/* ---------- Партнёры, команда ---------- */
.partners { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: center; }
.partners li { background: #fff; border-radius: 18px; padding: 1rem 1.6rem; box-shadow: var(--shadow); display: flex; align-items: center; min-height: 90px; }
.partners img { max-height: 60px; width: auto; max-width: 180px; }
.partners span { font-weight: 700; color: var(--ink-soft); }
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.4rem; }
.team li { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.team img, .team-ph { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); background: var(--orange-pale); display: flex; align-items: center; justify-content: center; color: var(--terra); margin-bottom: 0.6rem; }
.team-ph .i { width: 60px; height: 60px; }
.team span { color: var(--ink-mute); font-size: 0.95em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq-item { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(232, 220, 198, 0.5); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { color: var(--orange); transition: transform 0.3s var(--ease); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); animation: fadeDown 0.35s var(--ease); }
.faq-answer p:last-child { margin: 0; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: 2.5rem 0 3rem; position: relative; }
.page-hero-sm { padding-bottom: 1.5rem; }
.page-hero-img { background: linear-gradient(90deg, var(--cream) 0%, var(--cream) 45%, rgba(251, 245, 234, 0.75) 65%, rgba(251, 245, 234, 0.2) 100%), var(--hero-img) center right / cover no-repeat; min-height: 380px; display: flex; align-items: center; }
.page-hero-img .lead { max-width: 56ch; }
.page-hero h1 { margin: 0.8rem 0; }
.crumbs { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-mute); }
.crumbs span { margin: 0 0.3em; }
.crumbs-light, .crumbs-light a { color: rgba(255, 255, 255, 0.7); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.anchor-nav a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45em 1em; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.anchor-nav a:hover { background: var(--orange-pale); border-color: var(--orange-light); color: var(--terra-dark); }
.info-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tile { background: #fff; border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.2rem; }
.tile .i { color: var(--orange); width: 2em; height: 2em; margin-bottom: 0.4rem; }
.tile b { font-family: var(--font-head); font-size: 1.3rem; color: var(--olive-dark); }
.tile span { color: var(--ink-soft); font-size: 0.95em; }
@media (max-width: 900px) { .info-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .info-tiles { grid-template-columns: 1fr; } .page-hero-img { background-image: linear-gradient(180deg, rgba(251, 245, 234, 0.95), rgba(251, 245, 234, 0.9)), var(--hero-img); } }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.aside-card { background: #fff; border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.1rem; }
.aside-card-accent { background: var(--olive-pale); border-color: var(--olive-light); }
.aside-list { list-style: none; padding: 0; margin: 0; }
.aside-list li + li { border-top: 1px dashed var(--line); }
.aside-list a { display: flex; gap: 0.5em; align-items: center; padding: 0.55em 0.2em; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.aside-list a:hover { color: var(--terra); }
.aside-list a[aria-current="page"] { color: var(--terra-dark); }
.aside-list .i { color: var(--orange); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

.prose { font-size: 1.05rem; }
.prose-lg { font-size: 1.12rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 1.1em 1.4em; background: var(--orange-pale); border-left: 5px solid var(--orange); border-radius: 0 var(--r) var(--r) 0; font-size: 1.05em; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 0.98em; }
.prose th, .prose td { padding: 0.75em 1em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--olive-pale); color: var(--olive-dark); font-weight: 800; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--r); margin: 1.5em 0; }
.prose .article-cover { margin: 0 0 2em; box-shadow: var(--shadow); }
.prose ul li, .prose ol li { margin-bottom: 0.4em; }
.prose ul { padding-left: 1.4em; }
.prose a { font-weight: 600; }
.article-tools { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 2rem 0; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article-nav a { text-decoration: none; display: flex; flex-direction: column; color: var(--ink); background: #fff; padding: 1rem 1.2rem; border-radius: var(--r); box-shadow: var(--shadow); }
.article-nav a span { font-size: 0.85rem; color: var(--ink-mute); font-weight: 700; }
.article-nav a:hover b { color: var(--terra); }
.article-nav-next { text-align: right; }
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } .article-nav-next { text-align: left; } .prose table { display: block; overflow-x: auto; } }

/* ---------- Формы ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.form-wrap-rev .form-side { order: 2; }
.form-side-img { border-radius: var(--r-lg); box-shadow: var(--shadow); margin-top: 1.5rem; }
.form-card { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-title { margin-top: 0; }
.form-intro { color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; font-size: 0.98rem; }
.field input, .field select, .field textarea { font: inherit; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--ink); width: 100%; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-pale); }
.field input.invalid, .field textarea.invalid { border-color: var(--terra); }
.field textarea { resize: vertical; min-height: 100px; }
.req { color: var(--terra); }
.checks { display: flex; flex-direction: column; gap: 0.5rem; }
.check { display: flex; gap: 0.6em; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.4em; height: 1.4em; margin: 0.15em 0 0; accent-color: var(--terra); flex: none; }
.consent { font-size: 0.92rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-actions { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 700; color: var(--terra-dark); }
.form-status.ok { color: var(--olive-dark); }
.form.sent .form-grid, .form.sent .form-actions .btn { display: none; }
.form-success { text-align: center; padding: 2rem 1rem; animation: fadeDown 0.5s var(--ease); }
.form-success .i { width: 72px; height: 72px; color: var(--terra); margin: 0 auto 1rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form-wrap-rev .form-side { order: 0; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 1.4rem; } }
.contact-list p { display: flex; gap: 0.7em; align-items: flex-start; font-size: 1.1rem; }
.contact-list .i { color: var(--olive); margin-top: 0.3em; }

/* ---------- Спасибо ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks-heart { width: 120px; height: 120px; border-radius: 50%; background: var(--terra-pale); margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; color: var(--terra); }
.thanks-heart .i { width: 64px; height: 64px; animation: pulse 1.6s ease-in-out infinite; fill: var(--terra); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--olive-dark); color: rgba(255, 255, 255, 0.85); padding: 4rem 0 2rem; margin-top: 2rem; position: relative; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer h3 { color: var(--gold-light); font-size: 1.05rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; position: relative; z-index: 1; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: rgba(255, 255, 255, 0.6); }
.footer-quote { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; margin-top: 1.2rem; color: var(--gold-light); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.22); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: 0.3em 0; }
.footer-nav a, .footer-nav .link-btn { text-decoration: none; color: rgba(255, 255, 255, 0.9); }
.footer-nav a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-contacts p { display: flex; gap: 0.5em; align-items: flex-start; margin-bottom: 0.6em; }
.footer-contacts .i { color: var(--gold-light); margin-top: 0.3em; }
.footer-contacts .btn-outline { border-color: var(--gold-light); color: var(--gold-light); margin-top: 0.5rem; }
.footer-contacts .btn-outline:hover { background: var(--gold-light); color: var(--olive-dark); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.95rem; position: relative; z-index: 1; }
.footer-numbers { font-size: 1.05rem; }
.footer-note, .footer-copy { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-copy a { color: rgba(255, 255, 255, 0.7); }
.footer-leaves { position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 164, 65, 0.25), transparent 70%); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s; z-index: 90; display: flex; align-items: center; justify-content: center; }
.to-top .i { transform: rotate(180deg); width: 1.6em; height: 1.6em; }
.to-top.show { opacity: 1; transform: none; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 700; opacity: 0; transition: all 0.3s var(--ease); z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .a11y-panel, .to-top, .article-tools, .article-aside, .article-nav, .crumbs, .hero-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .prose table { box-shadow: none; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Уменьшенное движение ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
  .root { stroke-dashoffset: 0; }
  .goal-ring.in .ring-fg { transition: none; }
}

/* =====================================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (html.a11y)
   ===================================================================== */
html.a11y { --font-body: Arial, Helvetica, sans-serif; --font-head: Arial, Helvetica, sans-serif; --r: 6px; --r-lg: 6px; --r-xl: 6px; --shadow: none; --shadow-lg: none; }
html.a11y[data-a11y-family="serif"] { --font-body: 'Times New Roman', Times, serif; --font-head: 'Times New Roman', Times, serif; }
html.a11y[data-a11y-font="m"] { --fs: 1.25rem; }
html.a11y[data-a11y-font="l"] { --fs: 1.5rem; }
html.a11y[data-a11y-font="xl"] { --fs: 1.85rem; }
html.a11y[data-a11y-spacing="w"] body { letter-spacing: 0.06em; word-spacing: 0.1em; line-height: 1.8; }
html.a11y[data-a11y-spacing="x"] body { letter-spacing: 0.12em; word-spacing: 0.2em; line-height: 2; }
html.a11y h1 { font-size: 2.2em; }
html.a11y h2 { font-size: 1.8em; }
html.a11y h3 { font-size: 1.35em; }
html.a11y .main-nav a, html.a11y .btn { font-size: 1em; }
html.a11y .lead, html.a11y .section-lead { font-size: 1.1em; }
html.a11y .a11y-btn { border-width: 3px; }

/* Цветовые схемы */
html.a11y { --a-bg: #fff; --a-fg: #000; --a-link: #000; --a-line: #000; --a-accent: #000; --a-soft: #f2f2f2; }
html.a11y[data-a11y-theme="wb"] { --a-bg: #000; --a-fg: #fff; --a-link: #fff; --a-line: #fff; --a-accent: #fff; --a-soft: #1a1a1a; }
html.a11y[data-a11y-theme="blue"] { --a-bg: #9dd1ff; --a-fg: #063462; --a-link: #063462; --a-line: #063462; --a-accent: #063462; --a-soft: #b9dfff; }
html.a11y[data-a11y-theme="beige"] { --a-bg: #f7f3d6; --a-fg: #4d4b43; --a-link: #4d4b43; --a-line: #4d4b43; --a-accent: #4d4b43; --a-soft: #ebe6c3; }
html.a11y body, html.a11y .site-header, html.a11y .a11y-panel, html.a11y .section, html.a11y .section-soft, html.a11y .section-goal, html.a11y .section-call, html.a11y .page-hero, html.a11y .page-hero-img, html.a11y .hero { background: var(--a-bg) !important; color: var(--a-fg) !important; background-image: none !important; }
html.a11y .section-film, html.a11y .page-hero-film, html.a11y .site-footer { background: var(--a-bg) !important; color: var(--a-fg) !important; border-top: 3px solid var(--a-line); }
html.a11y .section-film *, html.a11y .page-hero-film *, html.a11y .site-footer *, html.a11y .site-footer h3, html.a11y .section-film h2, html.a11y .section-film p, html.a11y .page-hero-film h1, html.a11y .page-hero-film .lead { color: var(--a-fg) !important; }
html.a11y h1, html.a11y h2, html.a11y h3, html.a11y h4, html.a11y p, html.a11y li, html.a11y dd, html.a11y dt, html.a11y span, html.a11y b, html.a11y strong, html.a11y label, html.a11y .eyebrow, html.a11y .lead, html.a11y .brand-name, html.a11y .brand-sub, html.a11y .card p, html.a11y .card h3, html.a11y time, html.a11y .countdown-units b, html.a11y .goal-num b, html.a11y .timeline-time, html.a11y .phones-strip b, html.a11y .hero h1 em { color: var(--a-fg) !important; }
html.a11y a, html.a11y .link-btn, html.a11y .link-more { color: var(--a-link) !important; text-decoration: underline !important; }
html.a11y .card, html.a11y .timeline-body, html.a11y .timeline-dot, html.a11y .countdown, html.a11y .form-card, html.a11y .entry, html.a11y .aside-card, html.a11y .phones-strip, html.a11y .phones-strip li a, html.a11y .donate-card, html.a11y .donate-what, html.a11y .donate-strip, html.a11y .req-card, html.a11y .note, html.a11y .faq-item, html.a11y .tile, html.a11y .kicker, html.a11y .filter-bar, html.a11y .search-form, html.a11y .story-steps li, html.a11y .premiere, html.a11y .article-nav a, html.a11y .partners li, html.a11y .chip, html.a11y .tag, html.a11y .anchor-nav a, html.a11y .entry-extra, html.a11y .req-purpose, html.a11y .prose blockquote, html.a11y .prose table, html.a11y .hero-frame, html.a11y .film-frame, html.a11y .a11y-opt, html.a11y .a11y-btn, html.a11y .burger, html.a11y .main-nav, html.a11y .goal-progress, html.a11y .flash, html.a11y .thanks-heart, html.a11y .card-icon, html.a11y .step-num, html.a11y .hero-badge, html.a11y .footer-social a, html.a11y .toast { background: var(--a-bg) !important; color: var(--a-fg) !important; border: 2px solid var(--a-line) !important; box-shadow: none !important; background-image: none !important; }
html.a11y .prose th { background: var(--a-soft) !important; color: var(--a-fg) !important; }
html.a11y .btn, html.a11y .btn-primary, html.a11y .btn-secondary, html.a11y .btn-light, html.a11y .btn-outline, html.a11y .btn-ghost, html.a11y .btn-ghost-light { background: var(--a-fg) !important; color: var(--a-bg) !important; border: 2px solid var(--a-fg) !important; box-shadow: none !important; background-image: none !important; text-decoration: none !important; }
html.a11y .a11y-opt[aria-pressed="true"], html.a11y .a11y-opt-strong, html.a11y .to-top { background: var(--a-fg) !important; color: var(--a-bg) !important; border-color: var(--a-fg) !important; }
html.a11y .field input, html.a11y .field select, html.a11y .field textarea, html.a11y .search-form input { background: var(--a-bg) !important; color: var(--a-fg) !important; border: 2px solid var(--a-line) !important; }
html.a11y .main-nav a[aria-current="page"]::after, html.a11y .hero h1 em::after { background: var(--a-fg) !important; }
html.a11y .timeline::before { background: var(--a-fg) !important; }
html.a11y .ring-bg { stroke: var(--a-soft) !important; }
html.a11y .ring-fg { stroke: var(--a-fg) !important; }
html.a11y .i { stroke: currentColor; }
html.a11y .root, html.a11y .roots, html.a11y .hero-bg, html.a11y .footer-leaves, html.a11y .card-direction::before { display: none !important; }
html.a11y .hero-frame img, html.a11y .film-frame, html.a11y .call-img, html.a11y .premiere-img img { filter: none !important; transform: none !important; }
html.a11y :focus-visible { outline: 4px solid var(--a-fg); outline-offset: 2px; }
html.a11y .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; }
html.a11y .hero-frame, html.a11y .call-img, html.a11y .directory-teaser-img { transform: none !important; }
html.a11y.a11y-noimg img, html.a11y.a11y-noimg .hero-visual, html.a11y.a11y-noimg .card-img, html.a11y.a11y-noimg .film-visual, html.a11y.a11y-noimg .call-img, html.a11y.a11y-noimg .directory-teaser-img, html.a11y.a11y-noimg .form-side-img, html.a11y.a11y-noimg .premiere-img, html.a11y.a11y-noimg .article-cover, html.a11y.a11y-noimg .video-frame { display: none !important; }
html.a11y.a11y-noimg .brand-logo, html.a11y.a11y-noimg .qr img, html.a11y.a11y-noimg .donate-card img { display: block !important; }
html.a11y .page-hero-img { min-height: 0; }
html.a11y .site-header { position: relative; backdrop-filter: none; }
html.a11y .site-header::before { display: none; }
html.a11y .header-inner { flex-wrap: wrap; row-gap: 0.5rem; padding-block: 0.6rem; }
html.a11y .main-nav { margin-left: 0; }
html.a11y .header-actions { margin-left: auto; }
html.a11y .a11y-btn span, html.a11y .header-cta span { display: inline; }
