

/* Start:/local/templates/blago/assets/css/main.css?1794948253100734*/
/* ==========================================================================
   БФ «Благо дарю» — main.css
   Дизайн-язык по токенам vtb.ru (GOAL.md, раздел 3).
   ========================================================================== */

/* Запасной шрифт с метриками Onest: пока woff2 грузится, текст набран
   Arial, подогнанным по ширине и высоте строки. При подмене на Onest строки
   не переносятся заново и блоки ниже не прыгают (раньше шапка страницы
   укорачивалась на 40px — CLS 0.05). Коэффициенты сняты замером
   кириллического текста страниц: Onest шире Arial на 3.3–4.5%. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.8%;
  ascent-override: 93.4%;
  descent-override: 29.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/local/templates/blago/assets/css/../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/local/templates/blago/assets/css/../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/local/templates/blago/assets/css/../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Палитра «Изумруд и терракота». Одна тема: вариант green убран.
   Терракота (--cta) — единственный цвет призыва помочь, изумруд
   (--primary) — навигация и весь остальной интерактив.
   ========================================================================== */

:root {
  --bg:         #FAF5EC;   /* крем: фон сайта */
  --bg-soft:    #F3EAD6;   /* подложки секций */
  --hero-bg:    #FAF5EC;
  --sun-outer:  #F7E4B3;   /* солнце: WebGL и CSS-фолбэк берут цвета отсюда */
  --sun-inner:  #F2D38B;
  --sun-deep:   #F2B64F;   /* насыщенное солнце: свет за знаком на /about/ */
  --primary:    #1F5140;   /* изумруд: ссылки, активные табы, иконки — белый текст */
  --primary-h:  #173F32;
  --cta:        #A65A31;   /* терракота: только главный призыв «Поддержать» */
  --cta-h:      #8E4B27;
  --accent:     #8FA07A;   /* васаби: теги направлений, буллеты, декор */
  --khaki:      #F3E8C8;   /* фоны тегов и выделенных блоков */
  --ink:        #16211C;
  --text-soft:  #55605A;
  --line:       #E4D9C2;
  --dark:       #13201B;   /* тёмные секции: CTA-лист и футер */
  --on-dark:    #E6EBDD;
  --ph:         #E8DFCC;   /* фото-плейсхолдеры */

  /* производные — считаются из токенов */
  --white:        #FFFFFF;
  --tint:         #F3E8C8;
  --soft-hover:   color-mix(in srgb, var(--ink) 8%, var(--bg-soft));
  --line-strong:  color-mix(in srgb, var(--ink) 24%, transparent);
  --on-dark-soft: color-mix(in srgb, var(--on-dark) 76%, var(--dark));
  --glass:        color-mix(in srgb, var(--white) 72%, transparent);
  --chip-on-dark: color-mix(in srgb, var(--white) 22%, transparent);
  --shadow:       0 8px 32px color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow-lift:  0 16px 40px color-mix(in srgb, var(--ink) 18%, transparent);
  --overlay-top:  color-mix(in srgb, var(--ink) 58%, transparent);
  --overlay-mid:  color-mix(in srgb, var(--ink) 46%, transparent);
  --overlay-bot:  color-mix(in srgb, var(--ink) 88%, transparent);

  /* форма */
  --radius:      28px;
  --radius-sm:   20px;
  --radius-tile: 24px;
  --sheet-r:     36px;
  --container:   1128px;
  --gutter:      24px;
  --section-y:   clamp(48px, 7.5vw, 112px);
  --header-bar:  76px;                 /* высота бара шапки */
  --header-h:    var(--header-bar);    /* реальная высота шапки, уточняет JS */
  --ease:        cubic-bezier(.16, 1, .3, 1);

  /* шрифт */
  --font: "Onest", "Onest Fallback", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(40px, calc(5.3vw + 20px), 88px);
  --fs-h1-page: clamp(36px, calc(3.1vw + 24px), 64px);
  --fs-h2: clamp(28px, calc(1.99vw + 20.5px), 46px);
  --fs-h3: clamp(20px, calc(.44vw + 18.3px), 24px);
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --sheet-r: 28px;
    --header-bar: 64px;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-h); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1 { font-size: var(--fs-h1-page); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.05; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hdr:not(.is-solid) :focus-visible { outline-color: var(--white); }

.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;
}

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 12px 20px; border-radius: 999px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.soft { color: var(--text-soft); }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; }

/* ---------- кнопки-пилюли ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--primary-h); color: var(--white); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--bg-soft); color: var(--ink); }

.btn--soft { background: var(--bg-soft); color: var(--ink); }
.btn--soft:hover { background: var(--soft-hover); color: var(--ink); }

.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--white); }

.btn--chip { padding: 12px 20px; font-size: 16px; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 520px) {
  .btn { white-space: normal; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  color: var(--white);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.hdr.is-solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hdr__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-bar);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: inherit; }
.logo__img {
  /* эмблема во всю высоту бара, с небольшим воздухом сверху и снизу */
  width: calc(var(--header-bar) - 8px);
  height: calc(var(--header-bar) - 8px);
  flex: none;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.footer .logo__img { width: 56px; height: 56px; background: var(--bg); padding: 3px; }

.nav { flex: 1; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { color: inherit; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hdr.is-solid .nav__link:hover { background: var(--bg-soft); }
.nav__link[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
}

.hdr__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.hdr__login {
  padding: 10px 14px;
  border-radius: 999px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.hdr__login:hover { color: inherit; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hdr.is-solid .hdr__login:hover { background: var(--bg-soft); }

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.avatar:hover { color: var(--primary-h); }
.hdr.is-solid .avatar { background: var(--primary); color: var(--white); }

.hdr__support { background: var(--white); color: var(--ink); }
.hdr__support:hover { background: var(--bg-soft); color: var(--ink); }
.hdr.is-solid .hdr__support { background: var(--primary); color: var(--white); }
.hdr.is-solid .hdr__support:hover { background: var(--primary-h); }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--chip-on-dark);
  color: inherit;
  cursor: pointer;
}
.hdr.is-solid .burger { background: var(--bg-soft); }
.burger__lines,
.burger__lines::before,
.burger__lines::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), background-color .2s;
}
.burger__lines { top: 50%; margin-top: -1px; }
.burger__lines::before, .burger__lines::after { content: ""; left: 0; margin-left: 0; }
.burger__lines::before { transform: translateY(-6px); }
.burger__lines::after { transform: translateY(6px); }
.menu-open .burger__lines { background: transparent; }
.menu-open .burger__lines::before { transform: rotate(45deg); }
.menu-open .burger__lines::after { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--hero-bg);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.menu__list { display: grid; gap: 4px; list-style: none; }
.menu__link {
  display: block;
  padding: 10px 0;
  color: var(--white);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}
.menu__link:hover { color: var(--white); opacity: .8; }
.menu__link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }
.menu__mail { color: var(--white); font-size: 18px; }

/* меню открыто: бар поверх оверлея, всегда белый текст */
.menu-open .hdr { background: transparent; box-shadow: none; color: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .hdr .burger { background: var(--chip-on-dark); }
.menu-open .hdr .hdr__support { background: var(--primary); color: var(--white); }

@media (max-width: 1100px) {
  .nav, .hdr__login, .hdr__actions .avatar { display: none; }
  .burger { display: block; }
  .hdr__actions { margin-left: auto; }
  .hdr__bar { gap: 16px; }
}
@media (min-width: 1101px) {
  .menu { display: none; }
}
@media (max-width: 640px) {
  .logo { font-size: 16px; gap: 8px; }
  .logo__img { width: 46px; height: 46px; }
  .hdr__bar { gap: 10px; }
  .hdr__support { padding: 11px 14px; font-size: 14px; }
  .hdr__actions { gap: 8px; }
}
@media (max-width: 340px) {
  .logo span { display: none; }
}

/* ---------- page-sheet: листы, наезжающие друг на друга ---------- */
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--sheet-r));
  padding-block: var(--section-y) calc(var(--section-y) + var(--sheet-r));
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  background: var(--bg);
  transform: translate3d(0, var(--sheet-shift, 0px), 0);
}
.sheet--soft { background: var(--bg-soft); }
.sheet--grad { background: var(--hero-bg); color: var(--ink); }
.sheet--dark { background: var(--dark); color: var(--on-dark); }
.sheet--tight { padding-top: clamp(32px, 4vw, 56px); }
.sheet:last-of-type { padding-bottom: calc(var(--section-y) + var(--sheet-r)); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.sec-head h2 { max-width: 20ch; }
.sec-head .lead { grid-column: 1 / -1; max-width: 680px; margin: 0; color: var(--text-soft); }
@media (max-width: 640px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head .link-arrow { justify-self: start; }
}
.on-dark .sec-head .lead, .sheet--grad .sec-head .lead { color: var(--on-dark-soft); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-soft);
}

/* ---------- page-hero внутренних страниц ---------- */
.band {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 calc(clamp(56px, 7vw, 104px) + var(--sheet-r));
  background: var(--hero-bg);
  color: var(--white);
}
.band .eyebrow { color: var(--on-dark-soft); }
.band h1 { max-width: 16ch; }
.band .lead { max-width: 640px; margin-top: 20px; color: var(--white); }
.band--short { padding-bottom: calc(clamp(120px, 14vw, 180px) + var(--sheet-r)); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 20px;
  list-style: none;
  font-size: 14px;
  color: var(--white);
}
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .7; }
.crumbs a { color: var(--white); text-decoration: none; opacity: .85; }
.crumbs a:hover { color: var(--white); opacity: 1; text-decoration: underline; }

/* ---------- фото-плейсхолдеры ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--ph);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.ph { overflow: hidden; }
.ph__cap { max-width: 30ch; }
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- hero главной ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(32px, 5vh, 72px)) 0 calc(var(--sheet-r) + 32px);
  background: var(--hero-bg);
  color: var(--white);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: start;
}
.hero__text { container-type: inline-size; }
.hero__title {
  font-size: var(--fs-h1);
  /* Строки заголовка не переносятся (построчное появление), поэтому кегль
     ограничен шириной колонки: самая длинная строка «Дарить благо —» —
     около 7.6em. Без этого на 1100–1440px тире выходило за колонку,
     обрезалось overflow'ом строки и выглядело как дефис. */
  font-size: min(var(--fs-h1), 12.8cqi);
  font-weight: 500;
  line-height: 1.2;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__line > span { display: block; white-space: nowrap; }
.hero__sub {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual { position: relative; padding: 8px 0 40px 32px; }
.hero__photo { aspect-ratio: 4 / 4.4; border-radius: var(--radius); }
.hero__chip {
  position: absolute;
  top: 32px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow);
}
.hero__chip svg { width: 20px; height: 20px; color: var(--primary); }
.hero__card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(340px, 86%);
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.hero__card .eyebrow { margin: 0; }
.hero__card-title { margin: 4px 0 14px; font-size: 17px; font-weight: 500; line-height: 1.3; }

.teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vh, 72px);
  list-style: none;
}
.teaser__card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.teaser__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.teaser__ph { width: 64px; height: 64px; padding: 0; border-radius: 16px; font-size: 0; }
.teaser__title { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); text-decoration: none; }
.teaser__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.teaser__title:hover { color: var(--ink); }
.teaser__meta { display: block; margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.teaser .bar { margin-top: 8px; height: 4px; }

/* оркестрованный вход hero */
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in-scale { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

.hero__line > span { animation: rise .55s var(--ease) both; }
.hero__line:nth-child(2) > span { animation-delay: 80ms; }
.hero__line:nth-child(3) > span { animation-delay: 160ms; }
.hero__sub { animation: fade-up .7s var(--ease) 260ms both; }
.hero__actions { animation: fade-up .7s var(--ease) 340ms both; }
.hero__visual { animation: fade-in-scale .8s var(--ease) 300ms both; }
.teaser { animation: fade-up .7s var(--ease) 420ms both; }

@media (max-width: 1024px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__visual { max-width: 640px; padding: 0 0 72px; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__chip { top: 16px; right: 16px; }
  .hero__card { left: 16px; right: 16px; width: auto; }
  .teaser {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 42%);
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .teaser::-webkit-scrollbar { display: none; }
  .teaser > li { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero__title { max-width: none; }
  .hero__sub { margin-top: 16px; font-size: 18px; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .hero__visual { padding: 0 0 72px; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__chip { top: 16px; right: 16px; padding: 10px 14px; font-size: 14px; }
  .hero__card { left: 16px; right: 16px; width: auto; }
  .teaser { grid-auto-columns: 82%; margin-top: 32px; }
}

/* ---------- segmented control ---------- */
.seg-scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg-scroll::-webkit-scrollbar { display: none; }

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  isolation: isolate;
}
.seg__btn {
  position: relative;
  z-index: 1;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.seg__btn:hover { color: var(--primary); }
.seg__btn[aria-pressed="true"], .seg__btn[aria-checked="true"] { background: var(--primary); color: var(--white); box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 10%, transparent); }
.seg__thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 10%, transparent);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.seg__btn:has(input:checked) { background: var(--primary); color: var(--white); box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 10%, transparent); }
.seg__btn:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.seg.has-thumb .seg__btn { background: transparent; box-shadow: none; }
.seg.has-thumb .seg__btn[aria-pressed="true"], .seg.has-thumb .seg__btn:has(input:checked) { color: var(--white); }

.seg--glass { background: var(--line); }
.seg--glass .seg__btn:hover { color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 32px; }
@media (max-width: 640px) {
  .filters { display: grid; margin-inline: calc(-1 * var(--gutter)); }
  .filters .seg-scroll { padding-inline: var(--gutter); }
}

/* ---------- вертикальный ритм секций: gap контейнера ----------
   При урезании сайта вместе с блоками пропали и отступы, которые висели на
   них margin'ами: CTA прилипали к сеткам, между шапкой и каталогом зияла дыра.
   Теперь расстояние между блоками секции задаёт контейнер через gap, а у
   самих блоков внешних отступов нет — убранный блок больше ничего не ломает. */
:root { --stack-gap: clamp(40px, 4.5vw, 56px); }
.sheet > .container:not(.calc):not(.cta),
.band > .container {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}
.band > .container { gap: 20px; }
.sheet > .container:not(.calc):not(.cta) > :not(.dhero),
.band > .container > * { margin-block: 0; }
/* CTA под сеткой или списком — отдельный ряд по левому краю сетки */
.sec-foot, .steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* Шапка внутренней страницы и первый лист одного цвета: между ними не разрыв
   секций, а обычный шаг ритма. Если лист начинается с заголовка секции —
   оставляем ему воздух как у секции. */
.band:not(.band--short) { padding-bottom: calc(var(--stack-gap) + var(--sheet-r)); }
.band:not(.band--short) + .sheet { padding-top: 0; }
.band:not(.band--short) + .sheet:has(> .container > .sec-head:first-child) { padding-top: var(--stack-gap); }

/* ---------- тёмные фото-карточки проектов ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
@media (max-width: 1024px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pgrid--scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pgrid--scroll::-webkit-scrollbar { display: none; }
  .pgrid--scroll > li { scroll-snap-align: start; }
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pcard__ph {
  position: absolute;
  inset: 0;
  z-index: -2;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 72px 28px 0;
}
.pcard__ph .ph__cap { color: var(--white); opacity: .9; }
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--overlay-top) 0%, var(--overlay-mid) 30%,
    color-mix(in srgb, var(--ink) 82%, transparent) 58%, color-mix(in srgb, var(--ink) 94%, transparent) 100%);
}
.pcard__top { display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__eyebrow, .pcard__status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-on-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.pcard__status { background: var(--white); color: var(--ink); }
.pcard__body { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 72px; }
.pcard__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.2; }
.pcard__link { color: var(--white); text-decoration: none; }
.pcard__link:hover { color: var(--white); }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard__desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 15px;
  color: var(--on-dark);
}
/* Раньше тут стоял селектор «.pcard .pcard .pcard__cta» — хвост от вырезанной
   обёртки прогресса. Он ни на что не срабатывал, и кнопка прилипала к описанию. */
.pcard__cta { position: relative; z-index: 2; align-self: flex-start; }
.pcard { gap: 12px; }
@media (max-width: 640px) {
  .pcard { min-height: 420px; padding: 24px; }
  .pcard__ph { padding-inline: 24px; }
}

.empty {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
  color: var(--text-soft);
}

/* ---------- плитки-иконки ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  list-style: none;
}
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tile__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: var(--radius-tile);
  background: var(--accent);
  color: var(--ink);
  color: var(--white);
  transition: transform .2s ease;
}
.tile:nth-child(4n+2) .tile__icon { background: var(--primary); color: var(--white); }
.tile:nth-child(4n+3) .tile__icon { background: var(--accent); color: var(--ink); }
.tile:nth-child(4n+4) .tile__icon { background: var(--khaki); color: var(--ink); }
.tile:hover .tile__icon { transform: translateY(-4px); }
.tile__icon svg { width: 40px; height: 40px; }
.tile__title { max-width: 24ch; font-size: 17px; font-weight: 500; line-height: 1.35; }
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tiles { gap: 28px 16px; }
  .tile__icon { width: 72px; height: 72px; border-radius: 20px; }
  .tile__icon svg { width: 34px; height: 34px; }
  .tile__title { font-size: 15px; }
}

/* ---------- донат-калькулятор ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
/* левая колонка: ритм через gap, у блоков своих отступов нет */
.calc__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.calc__intro > * { margin: 0; }
.calc__intro h2 { max-width: 12ch; }
.calc__intro .lead { max-width: 32ch; font-weight: 500; }
.calc__points { display: grid; gap: 12px; list-style: none; font-weight: 500; }
.calc__actions { margin-top: 8px; }        /* кнопка отстоит от списка на 32px */
.calc__note { max-width: 36ch; color: var(--text-soft); }
.calc__note .link-arrow { white-space: nowrap; }
.calc__qr { display: flex; justify-content: center; }
.calc__points li { display: flex; gap: 12px; align-items: center; }
.calc__points svg { width: 22px; height: 22px; flex: none; }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
}

/* чипы сумм */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 500; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.chip span:hover { background: var(--tint); }
.chip input:checked + span { background: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.chips--soft .chip span { background: var(--bg-soft); }
.chips--soft .chip span:hover { background: var(--soft-hover); }

/* ---------- формы ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 500; }
.field__req { color: var(--primary); }
.field__hint { font-size: 13px; color: var(--text-soft); }

.input, .select, .textarea {
  width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  transition: border-color .2s, background-color .2s;
}
.card-white .input, .card-white .select, .card-white .textarea { background: var(--white); border-color: var(--line); }
.card-white .input, .card-white .select, .card-white .textarea { background: var(--bg-soft); border-color: transparent; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 26%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.textarea { min-height: 150px; resize: vertical; }

.select-wrap { position: relative; }
.select { appearance: none; padding-right: 52px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }

.form__note { font-size: 13px; color: var(--text-soft); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 640px) {
  .form__actions .btn { width: 100%; }
}

.success {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 48px) 0;
  text-align: center;
}
.success__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
}
.success__icon svg { width: 44px; height: 44px; }
.motion .success__icon { animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.success h2, .success h3 { font-size: var(--fs-h3); }
.success p { max-width: 40ch; color: var(--text-soft); }

.card-white {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.card-soft {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

/* ---------- шаги ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
}
.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
}
.step p { color: var(--text-soft); }
.steps__cta { margin-top: 32px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 24px; }
  .step__num { grid-row: span 2; margin: 0; }
}

/* ---------- новости ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; list-style: none; }
@media (max-width: 1024px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ngrid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.ncard { position: relative; display: flex; flex-direction: column; gap: 12px; }
.ncard__ph { aspect-ratio: 16 / 10; border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.ncard:hover .ncard__ph { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ncard__date { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.ncard__title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.ncard__link { color: var(--ink); text-decoration: none; }
.ncard__link:hover { color: var(--primary); }
.ncard__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- CTA-лист ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.cta__title { max-width: 18ch; font-size: clamp(32px, calc(3.2vw + 20px), 64px); line-height: 1.08; }
.cta__text { margin-top: 20px; max-width: 44ch; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .cta .btn { justify-self: stretch; }
}

/* ---------- детальная проекта ---------- */
.dhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 42vw, 520px);
  margin-top: calc(-1 * clamp(120px, 14vw, 180px) - var(--section-y) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.dhero__ph { position: absolute; inset: 0; z-index: -2; align-items: flex-start; justify-content: flex-end; padding: 28px; }
.dhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, var(--overlay-mid) 45%, var(--overlay-bot) 100%);
}
.dhero__body { padding: clamp(24px, 4vw, 48px); max-width: 860px; }
.dhero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.dhero__title { font-size: clamp(32px, calc(2.6vw + 22px), 56px); line-height: 1.1; }
.dhero__desc { margin-top: 14px; max-width: 52ch; font-size: 18px; color: var(--on-dark-soft); }

.dlayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px 64px;
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
}
.dlayout__main { grid-column: 1; grid-row: 1; min-width: 0; }

@media (max-width: 1024px) {
  .dlayout { grid-template-columns: minmax(0, 1fr); }
    .dlayout__main { grid-row: 2; }
}

.dsection + .dsection { margin-top: clamp(48px, 6vw, 80px); }
.dsection h2 { margin-bottom: 24px; font-size: clamp(26px, calc(1.5vw + 20px), 38px); }
.goals { display: grid; gap: 14px; list-style: none; counter-reset: goal; }
.goals li { position: relative; padding-left: 44px; font-size: 18px; }
.goals li::before {
  counter-increment: goal;
  content: counter(goal);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.term-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.term-line b { font-weight: 600; }
/* цель программы и её проекты — тексты из документа фонда */
.goal-text { max-width: 62ch; margin: 0 0 20px; font-size: 18px; }
.plist { display: grid; gap: 12px; list-style: none; }
.plist__item { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-tile); background: var(--bg-soft); }
.plist__item > * { margin: 0; }
.plist__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
.plist__item p { max-width: 62ch; color: var(--text-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; }
.tags li { padding: 10px 16px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 15px; font-weight: 500; }

@media (max-width: 480px) { .done { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  }


/* нижняя панель доната на мобилке */
@media (max-width: 1024px) {
  }

/* ---------- о фонде ---------- */
.mission { font-size: clamp(24px, calc(1.6vw + 18px), 40px); font-weight: 500; line-height: 1.3; max-width: 30ch; }
.manifest {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
}
.manifest__title { font-size: var(--fs-h2); margin-bottom: 20px; }
.manifest p { max-width: 58ch; font-size: clamp(18px, 1.4vw, 21px); }

.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.dir { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--white); }
.dir .tile__icon { margin-bottom: 8px; }
.dir p { color: var(--text-soft); }
@media (max-width: 900px) { .dirs { grid-template-columns: minmax(0, 1fr); } }

/* принципы: список слева, пояснение справа; на мобилке аккордеон */
.principles {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-auto-rows: auto;
  column-gap: clamp(32px, 5vw, 80px);
}
.principle { display: contents; }
.principle__tab {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.principle__tab:hover { color: var(--ink); background: var(--bg-soft); }
.principle__tab[aria-expanded="true"] { background: var(--bg-soft); color: var(--ink); }
.principle__n { flex: none; width: 28px; font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 600; }
.principle__chev { display: none; }
.principle__panel {
  grid-column: 2;
  grid-row: 1 / span 10;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
}
.principle__big { display: block; margin-bottom: 24px; font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: .9; opacity: .9; }
.principle__text { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; }
.principle__text strong { font-weight: 600; }
.motion .principle__panel:not([hidden]) { animation: fade-up .5s var(--ease) both; }

@media (max-width: 900px) {
  .principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .principle { display: block; border-radius: var(--radius-sm); background: var(--bg-soft); }
  .principle__tab { padding: 18px 20px; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: 17px; }
  .principle__tab[aria-expanded="true"] { background: transparent; }
  .principle__chev { display: block; margin-left: auto; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
  .principle__tab[aria-expanded="true"] .principle__chev { transform: rotate(-135deg); }
  .principle__panel { position: static; padding: 0 20px 20px 64px; background: none; color: var(--ink); }
  .principle__big { display: none; }
  .principle__text { font-size: 16px; }
}

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; }
.person {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.person__ph { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); }
.person__body { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; }
.person__role { font-size: 13px; font-weight: 500; color: var(--primary); }
.person__name { font-size: var(--fs-h3); }
.person__bio { color: var(--text-soft); font-size: 16px; }
.person__quote { margin: 0; padding-left: 16px; border-left: 3px solid var(--primary); font-size: 17px; }
.person .link-arrow { margin-top: auto; }
@media (max-width: 1024px) { .people { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .person { grid-template-columns: minmax(0, 1fr); } .person__ph { aspect-ratio: 4 / 3; } }

/* ---------- документы и отчёты ---------- */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
@media (max-width: 640px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.doc {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s;
}
.sheet--soft .doc { background: var(--white); }
.doc:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.doc__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.doc__body { min-width: 0; }
.doc__name { display: block; font-size: 18px; font-weight: 500; line-height: 1.3; }
.doc__meta { display: block; margin-top: 2px; font-size: 14px; color: var(--text-soft); }
.doc__arrow { margin-left: auto; flex: none; color: var(--primary); font-size: 22px; }

.years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
@media (max-width: 900px) { .years { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.year {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.year:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.year__num { font-size: clamp(56px, 6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.year__title { margin-top: auto; font-size: 20px; font-weight: 500; }
.year__link { color: var(--white); text-decoration: none; }
.year__link:hover { color: var(--white); }
.year__link::after { content: ""; position: absolute; inset: 0; }
.year__meta { margin-top: 4px; font-size: 14px; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .year { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
  .year__num { font-size: 48px; }
  .year__title { flex: 1 1 160px; margin: 0; }
  .year__meta { flex-basis: 100%; margin-top: 0; }
}

.rtable { width: 100%; border-collapse: collapse; font-size: 16px; }
.rtable th { padding: 0 16px 14px; font-size: 14px; font-weight: 500; color: var(--text-soft); text-align: left; border-bottom: 1px solid var(--line); }
.rtable td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtable th:first-child, .rtable td:first-child { padding-left: 0; }
.rtable th:last-child, .rtable td:last-child { padding-right: 0; text-align: right; }
.rtable .num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable__project { font-weight: 500; }
.rtable__dir { display: block; margin-top: 2px; font-size: 14px; color: var(--text-soft); }
@media (max-width: 760px) {
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; }
  .rtable tr { margin-bottom: 12px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
  .rtable td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right; }
  .rtable td:first-child { display: block; padding-bottom: 12px; text-align: left; }
  .rtable td:last-child { justify-content: flex-start; padding-top: 12px; }
  .rtable td[data-label]::before { content: attr(data-label); color: var(--text-soft); text-align: left; }
}

/* ---------- FAQ ---------- */
.acc { display: grid; gap: 12px; list-style: none; }
.acc__item { border-radius: var(--radius); background: var(--bg-soft); transition: background-color .2s; }
.acc__item:has(.acc__btn[aria-expanded="true"]) { background: var(--tint); }
.acc__q { margin: 0; font-size: inherit; font-weight: inherit; }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.acc__icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); }
.acc__panel { padding: 0 96px 28px 28px; font-size: 17px; }
@media (max-width: 640px) {
  .acc__btn { padding: 20px; }
  .acc__panel { padding: 0 20px 24px; }
}

/* ---------- контакты ---------- */
.contact-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
/* текстовая колонка — ритм через gap, как в секциях (правая — карточка формы, её не трогаем) */
.contact-main > :first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact-main > :first-child > * { margin: 0; }
.contact-main > :first-child > .contact-list,
.contact-main > :first-child > .req-details { align-self: stretch; }
@media (max-width: 900px) { .contact-main { grid-template-columns: minmax(0, 1fr); } }
.bigmail {
  display: inline-block;
  font-size: clamp(24px, calc(1.8vw + 16px), 40px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.contact-list { display: grid; gap: 0; margin: 12px 0 0; }
.contact-list div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: 14px; color: var(--text-soft); }
.contact-list dd { margin: 4px 0 0; font-size: 19px; font-weight: 500; }

/* ---------- новость ---------- */
.article { max-width: 780px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; font-size: 15px; }
.article__ph {
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-radius: var(--radius);
}
.prose { font-size: 19px; line-height: 1.65; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 28px; line-height: 1.2; }
@media (max-width: 640px) { .prose { font-size: 17px; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; list-style: none; }
.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.pager a:hover { background: var(--soft-hover); color: var(--ink); }
.pager [aria-current] { background: var(--primary); color: var(--white); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  margin-top: calc(-1 * var(--sheet-r));
  padding: clamp(56px, 7vw, 96px) 0 32px;
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  background: var(--dark);
  color: var(--on-dark);
}
.footer a { color: var(--on-dark); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.footer__mission { margin-top: 20px; max-width: 30ch; color: var(--on-dark-soft); }
.footer__h { margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--on-dark-soft); }
.footer__nav { display: grid; gap: 10px; list-style: none; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; color: var(--white); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__mail { font-size: 20px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.footer__mail:hover { color: var(--tint); }
.footer__phone, .footer__addr { margin: 0; font-style: normal; color: var(--on-dark-soft); }
.footer__req { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--on-dark-soft); }
.footer__req > div { display: block; margin-bottom: 8px; }
.footer__req dt { display: inline; }
.footer__req dt::after { content: ': '; }
.footer__req dd { display: inline; margin: 0; color: var(--white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 14px;
  color: var(--on-dark-soft);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer__legal a { color: var(--on-dark-soft); text-decoration: none; }
.footer__legal a:hover { color: var(--white); text-decoration: underline; }
.footer__copy { margin: 0; }
.footer .btn--white { color: var(--ink); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .sheet { transform: none !important; }
  .pcard:hover, .ncard:hover .ncard__ph, .doc:hover, .year:hover, .person:hover, .mini:hover, .teaser__card:hover, .tile:hover .tile__icon, .num:hover .num__shape { transform: none; }
  .num--c .num__shape, .num--c:hover .num__shape { transform: rotate(-6deg); }
}


/* ---------- «солнце» из логотипа ----------
   Один центр на все слои, поэтому круги концентричны по построению.
   В hero рисует WebGL (assets/js/sun.js); эти правила — фолбэк и
   донат-секция. Позиция центра задаётся переменными --sun-x/--sun-y,
   радиус — --sun-r, всё внутри секции, а не у края окна. */
.hero, .band, .sheet--grad, .flow {
  position: relative;
  background: var(--hero-bg);
  color: var(--ink);
  overflow: hidden;
}
/* мобильное меню остаётся fixed — ему меняем только цвета */
.menu { background: var(--hero-bg); color: var(--ink); }

.hero          { --sun-x: 74%; --sun-y: 30%; --sun-r: min(300px, 24vw); }
.band          { --sun-x: 86%; --sun-y: 24%; --sun-r: min(230px, 18vw); }
/* в секции помощи солнце живёт в правой колонке, над карточкой QR */
.sheet--grad   { --sun-x: 76%; --sun-y: 22%; --sun-r: min(200px, 16vw); }

/* ядро с мягким краем + ореол: один радиальный градиент, без ступенек */
.hero__sun, .band::before, .sheet--grad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--sun-bg);
}
/* Градиент объявлен на самих секциях, а не на :root: он ссылается на
   --sun-x/--sun-y/--sun-r, а на :root их нет — переменная становилась
   невалидной, и ядро солнца не рисовалось нигде, оставались одни лучи. */
.hero, .band, .sheet--grad {
  --sun-bg:
    radial-gradient(circle var(--sun-r) at var(--sun-x) var(--sun-y),
      var(--sun-inner) 0%,
      color-mix(in srgb, var(--sun-inner) 88%, var(--sun-outer)) 34%,
      color-mix(in srgb, var(--sun-outer) 92%, transparent) 62%,
      color-mix(in srgb, var(--sun-outer) 45%, transparent) 86%,
      transparent 100%),
    radial-gradient(circle calc(var(--sun-r) * 3.1) at var(--sun-x) var(--sun-y),
      color-mix(in srgb, var(--sun-outer) 55%, transparent) 0%,
      color-mix(in srgb, var(--sun-outer) 22%, transparent) 45%,
      transparent 78%);
}

/* лучи: длинные и короткие двумя коническими слоями с радиальными масками */
.hero__sun::before, .hero__sun::after, .band::after {
  content: "";
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: calc(var(--sun-r) * 6.2);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: sun-spin 160s linear infinite;
}
.hero__sun::before, .band::after {
  /* длинные лучи, верхний начинает отсчёт */
  background: repeating-conic-gradient(from 90deg,
    color-mix(in srgb, var(--sun-inner) 75%, transparent) 0deg 1.3deg,
    transparent 1.3deg 45deg);
  -webkit-mask-image: radial-gradient(circle, transparent 14%, #000 22%, transparent 44%);
  mask-image: radial-gradient(circle, transparent 14%, #000 22%, transparent 44%);
  opacity: .38;
}
.hero__sun::after {
  /* короткие лучи: смещены на пол-сектора и заканчиваются раньше */
  background: repeating-conic-gradient(from 112.5deg,
    color-mix(in srgb, var(--sun-inner) 62%, transparent) 0deg 1deg,
    transparent 1deg 45deg);
  -webkit-mask-image: radial-gradient(circle, transparent 14%, #000 19%, transparent 33%);
  mask-image: radial-gradient(circle, transparent 14%, #000 19%, transparent 33%);
  opacity: .3;
  animation-duration: 190s;
}
@keyframes sun-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* когда солнце рисует WebGL, CSS-слои прячем */
/* с JS CSS-солнце в hero не рисуем: его заменит холст, а тяжёлые
   конические градиенты не тормозят первую отрисовку. Без JS или без
   WebGL слои возвращаются. */
html.js .hero__sun { background: none; }
html.js .hero__sun::before, html.js .hero__sun::after { display: none; }
html.js.no-webgl .hero__sun { background: var(--sun-bg); }
html.js.no-webgl .hero__sun::before, html.js.no-webgl .hero__sun::after { display: block; }
.hero__sun canvas { display: block; width: 100%; height: 100%; }

/* солнце шапки на внутренних страницах: тот же WebGL, что в hero главной.
   Пока холст не готов (или WebGL недоступен), видно CSS-солнце: ядро с
   ореолом и лучи, которые гаснут маской к краю. */
.page-sun { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-sun canvas { display: block; width: 100%; height: 100%; }
.band:has(> .page-sun.is-gl)::before,
.band:has(> .page-sun.is-gl)::after { display: none; }

/* контент секций — поверх солнца */
.hero > .container, .band > .container, .sheet--grad > .container,
.hero__grid, .teaser { position: relative; z-index: 1; }

@media (max-width: 768px) {
  /* солнце меньше и выше — над фото, заголовок не перекрывает */
  .hero        { --sun-x: 80%; --sun-y: 14%; --sun-r: min(150px, 34vw); }
  .band        { --sun-x: 86%; --sun-y: 16%; --sun-r: min(130px, 30vw); }
  /* на мобилке QR под текстом — солнце уходит вниз, за карточку */
  .sheet--grad { --sun-x: 70%; --sun-y: 74%; --sun-r: min(130px, 30vw); }
}

/* ---------- светлые секции: тёмный текст ---------- */
.band .lead, .crumbs, .crumbs a, .menu__link, .menu__mail { color: var(--ink); }
.band .eyebrow { color: var(--text-soft); }
.crumbs a:hover, .menu__link:hover { color: var(--primary); opacity: 1; }
.sheet--grad.on-dark { color: var(--ink); }
.sheet--grad .sec-head .lead, .sheet--grad .calc__intro .lead { color: var(--text-soft); }
.hdr { color: var(--ink); }
.hdr:not(.is-solid) .nav__link:hover,
.hdr:not(.is-solid) .hdr__login:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.burger, .menu-open .hdr .burger { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.hdr:not(.is-solid) :focus-visible, .band :focus-visible,
.hero :focus-visible, .sheet--grad :focus-visible, .flow :focus-visible { outline-color: var(--primary); }
.menu-open .hdr { color: var(--ink); }

/* кнопки на светлом: главная — заливка primary, вторичная — контур primary */
.hdr__support, .hdr.is-solid .hdr__support,
.hero .btn--white, .band .btn--white, .menu .btn--white {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.hdr__support:hover, .hdr.is-solid .hdr__support:hover,
.hero .btn--white:hover, .band .btn--white:hover, .menu .btn--white:hover {
  background: var(--primary-h);
  border-color: var(--primary-h);
  color: var(--white);
}
.btn--ghost { border-color: var(--primary); color: var(--primary); }
.btn--ghost:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.avatar { background: var(--primary); color: var(--white); }
.avatar:hover { background: var(--primary-h); color: var(--white); }

/* тёмные секции остаются с белыми кнопками */
.sheet--dark .btn--white, .footer .btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.sheet--dark .btn--white:hover, .footer .btn--white:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.footer .btn--outline, .sheet--dark .btn--ghost, .footer .btn--ghost { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--on-dark); }

/* ---------- временная версия: плашки, реквизиты, почта вместо формы ---------- */
.notice {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--khaki);
  color: var(--ink);
  font-weight: 500;
}
.notice--lg { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); font-weight: 400; font-size: clamp(18px, 1.5vw, 21px); }
.notice--lg p + p { margin-top: 12px; font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card-soft h3 { margin-bottom: 10px; }
.card-soft p { color: var(--text-soft); }

.dpanel-simple {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.dpanel-simple__title { font-size: 20px; }
.facts { display: grid; gap: 10px; margin: 0; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.facts dt { color: var(--text-soft); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 1024px) {
  .dpanel-simple { grid-column: 1; grid-row: 1; }
}

.support { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.support__title { font-size: clamp(20px, 2.2vw, 28px); }
.support__card > * { margin: 0; }
/* колонка QR — без подложки: карточкой здесь остаётся сам QR */
.support__card--plain { padding-inline: 0; background: none; }
.reqs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: 15px; }
.reqs div { display: contents; }
.reqs dt { color: var(--text-soft); }
.reqs dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .reqs, .reqs div { display: block; }
  .reqs dd { margin-bottom: 10px; }
}
/* ---------- реквизиты: копирование по полю и целиком ---------- */
.reqs dd.num { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.reqs dd.num span { white-space: nowrap; }
.req-copy {
  margin: 0;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
}
.req-copy:hover { border-color: var(--primary); color: var(--primary); }
.req-details { border-top: 1px solid var(--line); padding-top: 16px; }
.req-details > summary { cursor: pointer; font-weight: 500; color: var(--primary); list-style: none; }
.req-details > summary::-webkit-details-marker { display: none; }
.req-details > summary::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.req-details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.req-details__body { display: grid; gap: 20px; padding-top: 18px; }

/* ---------- QR по реквизитам фонда (ГОСТ Р 56042-2014) ---------- */
.qr-row { display: flex; justify-content: center; }
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: none;
  width: min(340px, 100%);
  margin: 0;
  padding: 24px 24px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.qr-card__code { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.qr-card__cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding-left: .2em;          /* компенсируем трекинг у последней буквы */
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.qr-card__leaf {
  width: 11px;
  height: 16px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url(/local/templates/blago/assets/css/../img/leaf.svg) center / contain no-repeat;
  mask: url(/local/templates/blago/assets/css/../img/leaf.svg) center / contain no-repeat;
}
.qr-card__hint { max-width: 28ch; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.45; text-align: center; }
/* внутри панели, которая сама карточка, QR идёт без своей рамки — без «карточки в карточке» */
.qr-card--flat { width: 100%; padding: 20px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.qr-card--flat .qr-card__code { width: min(100%, 292px); }

.mail-fallback { display: grid; gap: 14px; }
.mail-fallback__title { font-size: var(--fs-h3); }
.mail-fallback p { color: var(--text-soft); margin: 0; }

/* ---------- главный призыв помочь: терракота ----------
   Изумруд остаётся навигации и остальному интерактиву. */
.btn--cta,
.hdr__support, .hdr.is-solid .hdr__support,
.hero .btn--white, .band .btn--white, .menu .btn--white {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--white);
}
.btn--cta:hover,
.hdr__support:hover, .hdr.is-solid .hdr__support:hover,
.hero .btn--white:hover, .band .btn--white:hover, .menu .btn--white:hover {
  background: var(--cta-h);
  border-color: var(--cta-h);
  color: var(--white);
}
/* на тёмных секциях призыв остаётся белой пилюлей */
.sheet--dark .btn--white, .footer .btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.sheet--dark .btn--white:hover, .footer .btn--white:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
}

/* ---------- /about/: символика логотипа ----------
   Две колонки — только от 1100px, обе minmax(0, 1fr) внутри контейнера.
   Уже 1100px — логотип липкий сверху, тексты прокручиваются под ним.
   Панель фиксированной высоты: логотип вписывается в неё целиком,
   пилюли-переключатели всегда внутри панели. */
/* свет за знаком шире колонки: по горизонтали подрезаем clip'ом —
   он, в отличие от hidden, не ломает sticky */
.symbols { overflow-x: clip; }
.story {
  --stage-h: min(100svh - var(--header-h) - 48px, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.story__stage {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 12px;
  height: clamp(260px, 42svh, 420px);
  padding: 12px 0 14px;
  background: var(--bg);           /* тексты уезжают под логотип, а не сквозь него */
}
/* мягкий край липкой панели вместо жёсткой линии */
.story__stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
}
/* логотип центрирован по вертикали между верхом панели и пилюлями */
.story__visual {
  position: relative;
  display: grid;
  /* строка задана явно: иначе она auto, и height: 100% у логотипа не
     разрешается — знак брал размер по содержимому и вылезал из панели */
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-height: 0;
  height: 100%;
}
.story__logo {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
}
.story__svg, .story__logo img { display: block; width: 100%; height: 100%; }
/* свет больше логотипа на 30% и гаснет радиальной маской — без видимой коробки */
.story__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  height: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
.story__glow canvas { display: block; width: 100%; height: 100%; }
.story__glow-css {
  position: absolute;
  left: var(--gx, 50%);
  top: var(--gy, 50%);
  width: var(--gr, 70%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--glow, var(--sun-inner));
  opacity: .8;
  -webkit-mask: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 72%);
  mask: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 72%);
  transition: left .5s ease, top .5s ease, width .5s ease, background-color .5s ease;
}
.story__glow.is-gl .story__glow-css { display: none; }

.story__dots {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}
.story__dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.story__dot-mark { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s ease, transform .3s ease; }
.story__dot[aria-current="true"] { color: var(--primary); border-color: var(--primary); background: var(--khaki); }
.story__dot[aria-current="true"] .story__dot-mark { background: var(--cta); transform: scale(1.35); }
/* на телефоне без точки-маркера все четыре пилюли помещаются в одну строку */
@media (min-width: 480px) { .story__dot-mark { display: block; } }

.story__blocks { min-width: 0; }
.story__block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 62vh;
}
.story__block > * { margin: 0; }
.story__term { font-size: var(--fs-h3); }
.story__block p { max-width: 46ch; color: var(--text-soft); }
.story__mark { font-weight: 500; color: var(--primary); }

@media (min-width: 1100px) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
  .story__stage {
    top: calc(var(--header-h) + 24px);
    height: var(--stage-h);
    gap: 20px;
    padding: 0;
    background: none;
  }
  .story__stage::after { display: none; }
  .story__dot { font-size: 14px; padding: 6px 14px; }
  .story__block { min-height: 70vh; }
}

/* ---------- подсветка знака: два слоя и маска света ----------
   Нижний слой — весь знак «спящим», верхний (<use> того же #logo-art) —
   в цвете сквозь маску #spot. Пятна света в маске гаснут и зажигаются
   прозрачностью, движутся только transform. Разметку маски строит logo-story.js. */
.story--js .logo-dim {
  opacity: .16;
  filter: saturate(.2);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), filter .7s cubic-bezier(.4, 0, .2, 1);
}
/* пока знак распускается, клон <use> скрипт не видит — показываем нижний слой в цвете */
.story--js.is-blooming .logo-dim { opacity: 1; filter: none; transition: none; }
.story--js.is-blooming .logo-lit { visibility: hidden; }

/* уходящее состояние гаснет за 500 мс, входящее зажигается за 700 */
.spot, .spot-default, .spot-leaf { transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.spot { opacity: 0; }
.story--js[data-active=""] .spot-default { opacity: 1; transition-duration: .7s; }
.story--js:not([data-active=""]) .spot-default { opacity: 0; }
.story--js[data-active="roots"] .spot--roots,
.story--js[data-active="woman"] .spot--woman,
.story--js[data-active="sun"] .spot--sun,
.story--js[data-active="circle"] .spot--circle { opacity: 1; transition-duration: .7s; }
/* листья «распускаются» светом снизу вверх: data-i идёт от нижних к верхним */
.spot-leaf { opacity: 0; }
.story--js[data-active="woman"] .spot-leaf {
  opacity: 1;
  transition-duration: .6s;
  transition-delay: calc(var(--i, 0) * 40ms);
}

/* блик по дуге — один пробег при входе в «Круг», запускает скрипт */
#logo-spark { opacity: 0; }

@keyframes story-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes story-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes story-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.story--js[data-active="sun"] #logo-sun-rays {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: story-spin 48s linear infinite;
}
.story--js[data-active="sun"] #logo-sun-core {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: story-pulse 4.2s ease-in-out infinite;
}
.story--js[data-active="woman"] #logo-leaves path {
  animation: story-breath 3.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@media (prefers-reduced-motion: reduce) {
  .story__glow { display: none; }
  #logo-spark { display: none; }
  /* без движения масок: только смена прозрачности пятен, 300 мс */
  .spot, .spot-default, .spot-leaf,
  .story--js[data-active] .spot, .story--js[data-active] .spot-leaf,
  .story--js .logo-dim { transition-duration: .3s; transition-delay: 0s; }
  .story--js[data-active] #logo-sun-rays,
  .story--js[data-active] #logo-sun-core,
  .story--js[data-active] #logo-leaves path { animation: none; }
}

/* ==========================================================================
   Новости (NEWS-SPEC.md): новость-лендинг, карточки, блок на главной, лайтбокс.
   Только новые классы n* и карточка .ncard (она есть только у новостей).
   ========================================================================== */

/* шапка поверх тёмной обложки новости — белая, пока страницу не прокрутили */
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) { color: var(--white); }
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) .nav__link:hover,
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) .burger { background: var(--chip-on-dark); }
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) .hdr__support { background: var(--white); border-color: var(--white); color: var(--ink); }
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) .hdr__support:hover { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--ink); }
html:not(.menu-open) .page-newsitem .hdr:not(.is-solid) :focus-visible { outline-color: var(--white); }

/* ---------- обложка ---------- */
.nhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(70vh, 520px);
  padding: calc(var(--header-h) + 40px) 0 calc(var(--sheet-r) + 96px);
  background: var(--primary-h);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.nhero__bg { position: absolute; inset: 0; z-index: -2; }
.nhero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* изумрудный градиент: плотный снизу и слева, к правому верхнему углу фото открывается */
.nhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--primary-h) 94%, transparent) 0%, color-mix(in srgb, var(--primary-h) 62%, transparent) 40%, color-mix(in srgb, var(--primary-h) 12%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 86%, transparent) 0%, color-mix(in srgb, var(--primary) 52%, transparent) 48%, transparent 82%);
}
.nhero--plain { background: radial-gradient(120% 90% at 85% 15%, var(--primary) 0%, var(--primary-h) 70%); }
.nhero--plain::before { display: none; }
.nhero__decor img { position: absolute; z-index: -1; opacity: .14; filter: invert(1); }   /* leaf.svg тёмный — делаем светлым */
.nhero__decor img:first-child { right: -3%; top: 14%; width: clamp(220px, 30vw, 440px); height: auto; transform: rotate(-18deg); }
.nhero__decor img:last-child { right: 26%; bottom: 22%; width: clamp(90px, 10vw, 150px); height: auto; transform: rotate(32deg); opacity: .1; }
.nhero__in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.nhero .crumbs, .nhero .crumbs a { margin: 0; color: var(--white); }
.nhero .crumbs a:hover { color: var(--white); text-decoration: underline; }
.nhero__title { max-width: 22ch; font-size: clamp(32px, calc(2.4vw + 22px), 60px); line-height: 1.08; text-wrap: balance; }
/* длинный заголовок (больше 60 знаков) — кегль меньше и колонка шире, чтобы на десктопе уложиться в 3 строки */
.nhero__title--long { max-width: 28ch; font-size: clamp(30px, calc(2vw + 22px), 52px); }
.nhero__date { margin: 0; font-size: 16px; color: color-mix(in srgb, var(--white) 88%, transparent); }
.nhero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--sheet-r) + 64px);
  max-width: min(46ch, 50%);
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  color: color-mix(in srgb, var(--white) 82%, transparent);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 60%, transparent);
}
@media (max-width: 640px) {
  .nhero { min-height: max(60vh, 460px); padding-bottom: calc(var(--sheet-r) + 72px); }
  .nhero__in { gap: 14px; }
  .nhero__credit { left: var(--gutter); right: var(--gutter); max-width: none; bottom: calc(var(--sheet-r) + 40px); }
}

/* пилюли: рубрика и регион */
.npills, .ncard__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.npill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.npill--line { background: transparent; color: var(--white); border-color: color-mix(in srgb, var(--white) 70%, transparent); }
.npill--soft { padding: 4px 12px; border-color: var(--tint); background: var(--tint); color: var(--primary); font-size: 13px; }
.npill--soft.npill--line { background: transparent; border-color: var(--line-strong); color: var(--text-soft); }

/* ---------- факты, лид, текст ---------- */
.sheet.nart > .container:not(.calc):not(.cta) > .nfacts { margin-top: calc(-1 * var(--section-y) - 20px); }
.nfacts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  list-style: none;
}
.nfacts--1 { --n: 1; } .nfacts--2 { --n: 2; } .nfacts--3 { --n: 3; } .nfacts--4 { --n: 4; }
.nfacts__item { display: flex; flex-direction: column; gap: 8px; padding: 4px clamp(20px, 2.6vw, 36px); }
.nfacts__item + .nfacts__item { border-left: 1px solid var(--line); }
.nfacts__val { font-size: clamp(22px, calc(1.2vw + 14px), 32px); font-weight: 500; line-height: 1.12; color: var(--cta); }
.nfacts__note { font-size: 15px; line-height: 1.4; color: var(--text-soft); }
@media (max-width: 760px) {
  .nfacts { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .nfacts__item { padding: 16px 22px; }
  .nfacts__item + .nfacts__item { border-left: 0; border-top: 1px solid var(--line); }
}

.nlead { max-width: 760px; margin: 0; font-size: clamp(20px, calc(.7vw + 15px), 25px); line-height: 1.5; }

.nbody { display: grid; grid-template-columns: minmax(0, 700px); column-gap: clamp(32px, 5vw, 72px); }
.nbody--photo { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); grid-template-rows: auto 1fr; }
.nbody__head { grid-column: 1; grid-row: 1; }
.nbody__tail { grid-column: 1; grid-row: 2; margin-top: 1.2em; }
.nbody .prose > :first-child { margin-top: 0; }
/* у первой части текста нижний отступ последнего абзаца не нужен: шаг до второй части задаёт .nbody__tail
   (иначе между первым и вторым абзацем двойной отступ — 1.2em + 1.2em) */
.nbody__head > :last-child { margin-bottom: 0; }
.nbody .prose h2 { color: var(--primary); }
.nbody__fig { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin: 0; }
.nbody__fig figcaption, .ngal__fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--text-soft); }
@media (max-width: 900px) {
  .nbody--photo { grid-template-columns: minmax(0, 1fr); }
  .nbody__fig { grid-column: 1; grid-row: 2; margin: 28px 0 8px; }
  .nbody__tail { grid-row: 3; }
}

/* ссылки на полноразмерные фото (лайтбокс) */
.nlb { display: block; position: relative; overflow: hidden; border-radius: var(--radius); }
.nlb img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.nlb:hover img { transform: scale(1.03); }
.nbody__fig .nlb { box-shadow: var(--shadow); }

/* галерея — отдельная секция после списка и цитаты (NEWS-2, п. 1.4). Фото не обрезаются: ячейка 4:3,
   снимок вписан целиком, у другой пропорции (афиша 16:9) — белые поля */
.ngal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.ngal--1, .ngal--2, .ngal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngal__fig { margin: 0; }
.ngal__fig .nlb { aspect-ratio: 4 / 3; background: var(--white); }
.ngal__fig .nlb picture, .ngal__fig .nlb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1024px) { .ngal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ngal, .ngal--1, .ngal--2, .ngal--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- состав помощи ---------- */
.nitems__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.nitems__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}
.nitems__mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--white); }
.nitems__mark svg { width: 20px; height: 20px; }
.nitems__note { max-width: 62ch; margin: 0; font-size: clamp(18px, calc(.4vw + 15px), 21px); font-style: italic; line-height: 1.5; }
/* вступление под заголовком и пункты-карточки с описанием (NEWS-2, п. 1.1–1.2) */
.nitems__head { display: grid; gap: 16px; }
.nitems__intro { max-width: 680px; margin: 0; font-size: clamp(18px, calc(.4vw + 15px), 21px); line-height: 1.5; color: var(--text-soft); }
.nitems__grid--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nitems__item--card { align-items: flex-start; gap: 18px; padding: 26px 28px; font-weight: 400; }
.nitems__body { display: grid; gap: 8px; padding-top: 5px; }
.nitems__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.nitems__text { font-size: 16px; line-height: 1.55; color: var(--text-soft); }
@media (max-width: 1024px) { .nitems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nitems__grid, .nitems__grid--pairs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nitems__item { padding: 18px 20px; }
  .nitems__item--card { gap: 14px; padding: 20px; }
  .nitems__title { font-size: 18px; }
}

/* ---------- цитата (NEWS-2, п. 1.3): изумрудная, перед «Как помочь» — тёплая светлая ---------- */
.nquote { background: var(--primary); color: var(--white); }
.nquote--soft { background: var(--bg-soft); color: var(--ink); }
.nquote__fig { display: grid; gap: clamp(20px, 2.4vw, 28px); max-width: 820px; margin: 0; }
.nquote__mark { width: clamp(40px, 4vw, 52px); height: auto; color: var(--sun-inner); }
.nquote--soft .nquote__mark { color: var(--cta); }
.nquote__text { margin: 0; }
.nquote__text p { margin: 0; font-size: clamp(22px, calc(1vw + 16px), 32px); line-height: 1.45; text-wrap: pretty; }
.nquote__cap { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; color: color-mix(in srgb, var(--white) 84%, transparent); }
.nquote__cap::before { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; }
.nquote--soft .nquote__cap { color: var(--text-soft); }

/* ---------- благодарность: документ как лист бумаги ---------- */
.ndocs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ndocs__papers { display: flex; justify-content: center; padding: 16px 0 24px; }
.ndocs__papers .nlb {
  flex: none;
  width: min(100%, 340px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.6deg);
  transition: transform .4s var(--ease);
}
.ndocs__papers .nlb + .nlb { margin-left: -64px; margin-top: 48px; transform: rotate(1.4deg); }
.ndocs__papers--2 .nlb, .ndocs__papers--3 .nlb { width: min(60%, 300px); }
.ndocs__papers .nlb:hover { transform: rotate(0) translateY(-4px); }
.ndocs__papers .nlb:hover img { transform: none; }
.ndocs__text h2 { margin-bottom: 24px; }
.ndocs__text p { max-width: 46ch; font-size: clamp(18px, calc(.4vw + 15px), 20px); line-height: 1.6; }
@media (max-width: 900px) { .ndocs__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ndocs__papers { flex-wrap: wrap; gap: 16px; }
  .ndocs__papers .nlb, .ndocs__papers .nlb + .nlb { margin: 0; transform: none; }
}

/* ---------- как помочь ---------- */
.nhelp { background: var(--primary); color: var(--white); }
.nhelp__head { display: grid; gap: 18px; max-width: 760px; }
.nhelp__intro p { margin: 0; color: color-mix(in srgb, var(--white) 84%, transparent); }
.nhelp__intro p + p { margin-top: 10px; }
.nhelp__intro .nhelp__lead { font-size: clamp(19px, calc(.5vw + 15px), 23px); color: var(--white); }
.nhelp__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; }
.nhelp__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nhelp__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 8%, transparent);
}
.nhelp__card h3 { font-size: clamp(21px, calc(.4vw + 18px), 25px); }
.nhelp__card p { margin: 0; color: color-mix(in srgb, var(--white) 84%, transparent); }
.nhelp__card p:has(> .btn:only-child) { margin-top: auto; padding-top: 8px; }
.nhelp .btn--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.nhelp .btn--white:hover { background: var(--bg-soft); border-color: var(--bg-soft); color: var(--ink); }
.nshare { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.nshare__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--white) 60%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.nshare__btn:hover { background: var(--white); color: var(--ink); }
.nshare__note { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--white); }
@media (max-width: 900px) { .nhelp__cards, .nhelp__cards--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- карточки новостей ---------- */
.ncard { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.ncard__ph { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ph); }
.ncard:hover .ncard__ph { transform: none; box-shadow: var(--shadow-lift); }
.ncard__ph picture, .ncard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ncard__img { transition: transform .6s var(--ease); }
.ncard:hover .ncard__img { transform: scale(1.05); }
.ncard__noimg { position: absolute; inset: 0; background: radial-gradient(120% 100% at 85% 15%, var(--primary) 0%, var(--primary-h) 75%); }
/* фирменный лист — светлый силуэт по маске (сам leaf.svg тёмный) */
.ncard__noimg::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 8%;
  width: 40%;
  aspect-ratio: 1;
  background: var(--white);
  opacity: .16;
  -webkit-mask: url("/local/templates/blago/assets/css/../img/leaf.svg") no-repeat center / contain;
  mask: url("/local/templates/blago/assets/css/../img/leaf.svg") no-repeat center / contain;
  transform: rotate(-14deg);
}
.ncard__body { display: flex; flex-direction: column; gap: 10px; }
.ncard__date { margin: 0; font-size: 14px; color: var(--text-soft); }
.ncard__title { font-size: 21px; font-weight: 500; line-height: 1.3; }
.ncard__text { margin: 0; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__link:focus-visible { outline: none; }
.ncard:has(.ncard__link:focus-visible) { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: var(--radius); }

.ncard--wide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(12px, 1.4vw, 18px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--white);
  box-shadow: var(--shadow);
}
.ncard--wide .ncard__body { gap: 14px; padding: 12px clamp(8px, 2vw, 32px) 12px 0; }
.ncard--wide .ncard__title, .ncard--big .ncard__title { font-size: clamp(23px, calc(.9vw + 16px), 30px); line-height: 1.2; }
.ncard__more { align-self: flex-start; margin-top: 6px; }
.ncard--row { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 20px; }
.ncard--row .ncard__ph { border-radius: var(--radius-sm); }
.ncard--row .ncard__title { font-size: 18px; }
@media (max-width: 900px) {
  .ncard--wide { grid-template-columns: minmax(0, 1fr); }
  .ncard--wide .ncard__body { padding: 4px 8px 12px; }
}
@media (max-width: 480px) { .ncard--row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; } }

/* блок на главной */
/* «Другие новости», когда других нет: только кнопка — без высокой пустой секции */
.nother--empty { padding-block: clamp(32px, 4vw, 48px) calc(clamp(32px, 4vw, 48px) + var(--sheet-r)); }

.nmain__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; list-style: none; }
.nmain__three { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px clamp(24px, 3vw, 48px); align-items: start; }
.nmain__rest { display: grid; gap: 24px; list-style: none; }
@media (max-width: 900px) {
  .nmain__two, .nmain__three { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- лайтбокс ---------- */
html.lbox-open { overflow: hidden; }
.lbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 64px 80px;
  border: 0;
  background: color-mix(in srgb, var(--dark) 95%, transparent);
  color: var(--white);
}
.lbox[open] { display: flex; align-items: center; justify-content: center; }
.lbox::backdrop { background: transparent; }
.lbox__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; margin: 0; }
.lbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 180px); border-radius: 8px; object-fit: contain; }
.lbox__cap { max-width: 70ch; font-size: 15px; line-height: 1.45; text-align: center; color: var(--on-dark); }
.lbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--chip-on-dark);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lbox__btn:hover { background: var(--white); color: var(--ink); }
.lbox__close { top: 16px; right: 16px; }
.lbox__prev, .lbox__next { top: 50%; transform: translateY(-50%); }
.lbox__prev { left: 16px; }
.lbox__next { right: 16px; }
.lbox__count { position: absolute; left: 50%; bottom: 18px; margin: 0; transform: translateX(-50%); font-size: 14px; color: var(--on-dark); }
.lbox :focus-visible { outline-color: var(--white); }
@media (max-width: 640px) {
  .lbox { padding: 72px 12px 88px; }
  .lbox__prev, .lbox__next { top: auto; bottom: 16px; transform: none; }
  .lbox__count { bottom: 30px; }
}

/* ---------- Оферта и требования банка (OFERTA-SPEC.md) ---------- */
/* строка акцепта оферты рядом с кнопками пожертвования (blago_accept_note) */
.accept-note { margin: 0; }
.nhelp__accept { margin-top: 24px; color: color-mix(in srgb, var(--white) 84%, transparent); }
.nhelp__accept a { color: var(--white); }
/* «Принимаем к оплате» (blago_paymarks): официальные цветные знаки на белых скруглённых плашках одной высоты */
.paymarks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.paymarks__title { margin: 0; font-size: 14px; color: inherit; }
.paymarks__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.paymark {
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 12px;
  border-radius: 8px; background: #fff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08);
}
.paymark img { display: block; width: auto; height: 22px; }
.support__card--plain .paymarks { margin-top: 20px; color: var(--text-soft); }
/* маркированные списки в юридических текстах (политика конфиденциальности) — как в docx */
.prose.legal ul { margin: 0 0 1.2em; padding-left: 1.4em; list-style: disc; }
.prose.legal li { margin-bottom: .35em; }

/* уведомление о cookie (footer.php + app.js): плашка внизу экрана, поверх контента — макет не сдвигает */
.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  max-width: 640px; padding: 14px 16px 14px 22px;
  border-radius: 20px; background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-lift);
  font-size: 15px;
}
.cookie-note__text { flex: 1 1 260px; margin: 0; }
.cookie-note a { color: var(--white); }
.cookie-note :focus-visible { outline-color: var(--white); }

/* End */


/* Start:/local/templates/blago/template_styles.css?17927073803222*/
/* ==========================================================================
   Шаблон «Благо дарю» — дополнения для версии на 1С-Битрикс.
   Основные стили — assets/css/main.css (перенесён из статики без изменений),
   здесь только блоки, которых в статике не было: оплата в подвале, требования
   банка на «Как помочь», страница документов, форма с капчей, галерея программы.
   ========================================================================== */

/* подвал: логотипы платёжных систем (монохромные, в тон подвала) */
.footer__pay {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: .75;
}
.footer__pay img { display: block; width: auto; height: 18px; }

/* «Как помочь»: куда идут пожертвования, сумма, доставка */
.donate-terms { display: flex; flex-direction: column; gap: 20px; max-width: 72ch; }
.donate-terms > * { margin: 0; }
.donate-terms p { font-size: 18px; }
.donate-terms__list { display: grid; gap: 10px; padding-left: 1.2em; color: var(--text-soft); }
.donate-terms__list a { color: var(--primary); }

/* страница «Документы»: группы по категориям, неопубликованные — без ссылки */
.docs-group { display: flex; flex-direction: column; gap: 20px; }
.docs-group + .docs-group { margin-top: var(--stack-gap); }
.docs-group__title { font-size: var(--fs-h3); }
.doc--pending { cursor: default; }
.doc--pending .doc__meta { color: var(--cta); }

/* юридические страницы */
.legal { max-width: 72ch; }

/* формы: ловушка для ботов скрыта от людей и скринридеров */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.captcha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.captcha img { border-radius: 10px; background: var(--white); }
.captcha .field { flex: 1 1 180px; }

/* галерея программы (свойство GALLERY) */
.dgallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dgallery li { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; }
.dgallery img { width: 100%; height: 100%; object-fit: cover; }

/* «Новостей пока нет» и прочие пустые состояния */
.notice--lg + .notice--lg { margin-top: 12px; }

/* Панель Битрикса (у редакторов и админов) стоит над страницей, а шапка сайта закреплена у верха окна
   и уходила под панель. Когда панель есть — шапка встаёт сразу под ней и прокручивается со страницей. */
#bx-panel ~ .hdr { position: absolute; top: auto; }

/* End */
/* /local/templates/blago/assets/css/main.css?1794948253100734 */
/* /local/templates/blago/template_styles.css?17927073803222 */
