/* ==========================================================================
   Сайт БФ «Подари ЗАВТРА!» — дизайн-система
   Тёплая бумажная основа, глубокий зелёный как цвет доверия, малиновый —
   только для действия «помочь». Один файл без сборщика: так сайт можно
   поддерживать без Node.js.
   ========================================================================== */

:root {
  --paper: #fcfaf5;
  --paper-2: #f6f1e6;
  --surface: #ffffff;
  --surface-2: #f7f3ea;

  --ink: #13221c;
  --ink-2: #31453a;
  --muted: #5f7168;
  --muted-2: #7d8c84;

  --line: #e7e0d3;
  --line-strong: #d5cab8;

  --green-900: #0e3320;
  --green-800: #144a2c;
  --green-700: #1d5c38;
  --green-600: #2a7048;
  --green-500: #4f8c5f;
  --green-100: #e8f1e4;
  --green-50: #f1f7ee;
  --lime: #8cc63f;
  --lime-soft: #dcecc4;

  --pink-800: #8c0d4c;
  --pink-700: #a5105a;
  --pink-600: #c2186f;
  --pink-100: #fce7f1;
  --pink-50: #fdf2f7;

  --amber: #d98a1f;
  --amber-100: #fdf0d8;
  --sky: #2f6f9e;
  --sky-100: #e6f0f7;
  --danger: #b3261e;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(19, 34, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(19, 34, 28, 0.06);
  --shadow-md: 0 14px 34px -16px rgba(19, 34, 28, 0.22);
  --shadow-lg: 0 34px 70px -36px rgba(19, 34, 28, 0.32);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Onest", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Golos Text", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Основа ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-modal {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-800);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--lime-soft);
  color: var(--green-900);
}

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Сетка и утилиты ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.section--tight {
  padding: clamp(32px, 4vw, 56px) 0;
}

.section--paper {
  background: var(--paper-2);
}

.section--ink {
  background: var(--green-900);
  color: #f4f1e8;
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--ink .muted,
.section--ink .lead {
  color: rgba(244, 241, 232, 0.78);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.section__head > div {
  max-width: 720px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.eyebrow--pink {
  color: var(--pink-700);
}

.eyebrow--pink::before {
  background: var(--pink-600);
}

.h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  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-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--green-800);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.icon {
  flex: none;
}

/* --- Кнопки ------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green-700);
  --btn-color: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    box-shadow 0.15s var(--ease), color 0.15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--btn-color);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--green-700);
}

.btn--primary:hover {
  --btn-bg: var(--green-800);
}

.btn--pink {
  --btn-bg: var(--pink-600);
}

.btn--pink:hover {
  --btn-bg: var(--pink-700);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--ink);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--surface);
  --btn-color: var(--green-800);
}

.btn--light {
  --btn-bg: var(--surface);
  --btn-color: var(--green-800);
}

.btn--light:hover {
  --btn-bg: #fff;
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-color: #fff;
  --btn-border: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn--lg {
  padding: 17px 32px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

.btn--link {
  --btn-bg: transparent;
  --btn-color: var(--green-700);
  --btn-border: transparent;
  padding: 6px 0;
  border-radius: 0;
}

.btn--link:hover {
  --btn-bg: transparent;
  box-shadow: none;
  --btn-color: var(--green-900);
  text-decoration: underline;
  transform: none;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Значки и плашки ---------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.badge--pink {
  background: var(--pink-100);
  color: var(--pink-800);
}

.badge--amber {
  background: var(--amber-100);
  color: #8a5300;
}

.badge--muted {
  background: rgba(19, 34, 28, 0.06);
  color: var(--ink-2);
}

.badge--solid {
  background: var(--green-800);
  color: #fff;
}

.badge--dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.chip--active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.chip--active:hover {
  color: #fff;
}

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

/* --- Шапка -------------------------------------------------------------- */

.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
}

.topbar__sep {
  color: rgba(255, 255, 255, 0.25);
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(252, 250, 245, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(19, 34, 28, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}

.logo__img {
  width: auto;
  height: 54px;
}

.logo__img--mark {
  height: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav__link:hover {
  background: rgba(29, 92, 56, 0.07);
  color: var(--green-800);
}

.nav__link.is-active {
  color: var(--green-800);
  background: var(--green-100);
}

.nav__link--pink {
  color: var(--pink-700);
}

.nav__link--pink:hover {
  background: var(--pink-50);
  color: var(--pink-800);
}

.nav__more {
  position: relative;
}

.nav__more > summary {
  list-style: none;
  cursor: pointer;
}

.nav__more > summary::-webkit-details-marker {
  display: none;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 30;
}

.nav__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
}

.nav__dropdown a:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header__phone {
  display: inline-flex;
  white-space: nowrap;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.header__phone small {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .header__phone small {
    display: none;
  }
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

/* --- Герой -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(140, 198, 63, 0.28), transparent 68%);
}

.hero::after {
  width: 460px;
  height: 460px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle at 60% 40%, rgba(194, 24, 111, 0.12), transparent 70%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__title em {
  position: relative;
  z-index: 0;
  isolation: isolate;
  font-style: normal;
  color: var(--green-700);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.14em;
  border-radius: 4px;
  background: var(--lime-soft);
  z-index: -1;
}

.hero__lead {
  max-width: 540px;
  margin-bottom: 26px;
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__trust .icon {
  color: var(--green-600);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__art {
  position: absolute;
  z-index: 0;
  width: min(104%, 500px);
  top: -64px;
  right: -28px;
  opacity: 0.95;
  pointer-events: none;
}

.hero__card {
  position: relative;
  z-index: 2;
  width: min(100%, 408px);
  margin-top: 132px;
}

/* --- Карточка пожертвования -------------------------------------------- */

.donate {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.donate--hero {
  box-shadow: var(--shadow-lg);
}

.donate__head {
  margin-bottom: 16px;
}

.donate__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.donate__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.donate__presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.preset {
  padding: 12px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.preset:hover {
  border-color: var(--green-600);
}

.preset.is-active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.donate__amount {
  position: relative;
  margin-bottom: 14px;
}

.donate__amount-input {
  width: 100%;
  padding: 14px 46px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.donate__amount-input:focus {
  border-color: var(--green-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 112, 72, 0.12);
}

.donate__currency {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}

.donate__methods {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.paymethod {
  position: relative;
  flex: 1;
}

.paymethod input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.paymethod span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.paymethod input:checked + span {
  border-color: var(--green-700);
  background: var(--green-50);
  color: var(--green-800);
}

.paymethod input:focus-visible + span {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

.donate__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.donate__submit {
  width: 100%;
}

.donate__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.donate__note a {
  color: var(--muted);
}

.donate--compact .donate__presets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Хлебные крошки ------------------------------------------------------ */

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

/* --- Карточка сбора ------------------------------------------------------ */

.campaign {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.campaign:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.campaign__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface-2);
}

.campaign__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.campaign:hover .campaign__media img {
  transform: scale(1.03);
}

.campaign__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(140, 198, 63, 0.55), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(194, 24, 111, 0.32), transparent 50%),
    linear-gradient(135deg, #eef3e2, #f7ecef);
  color: var(--green-800);
}

.campaign__placeholder span {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0.55;
}

.campaign--project .campaign__placeholder {
  background:
    radial-gradient(circle at 80% 20%, rgba(47, 111, 158, 0.28), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(140, 198, 63, 0.4), transparent 55%),
    linear-gradient(135deg, #eef1f5, #eff5e6);
  color: var(--sky);
}

.campaign__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 24px);
}

.campaign__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.campaign__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.campaign__title a {
  color: inherit;
  text-decoration: none;
}

.campaign__title a:hover {
  color: var(--green-700);
}

.campaign__title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.campaign__summary {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.campaign__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.progress {
  margin-top: auto;
  padding-top: 6px;
}

.progress__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 14px;
}

.progress__collected {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}

.progress__goal {
  color: var(--muted);
  font-size: 13px;
}

.progress__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--green-600), var(--lime));
  transition: width 0.6s var(--ease);
}

.progress--pink .progress__fill {
  background: linear-gradient(90deg, var(--pink-600), #e26a9f);
}

.progress__percent {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.campaign__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.campaign__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}

.campaign__link:hover {
  color: var(--green-900);
}

.campaign__donors {
  color: var(--muted);
  font-size: 13px;
}

/* --- Цифры --------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.stat {
  position: relative;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--green-50);
}

.stat__value {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.4;
}

.stat__note {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.stats--ink .stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.stats--ink .stat__value {
  color: #fff;
}

.stats--ink .stat__label {
  color: rgba(255, 255, 255, 0.8);
}

.stats--ink .stat::after {
  background: rgba(140, 198, 63, 0.12);
}

/* --- Шаги ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  list-style: none;
}

.steps--grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 22px 22px 22px 74px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.step__num {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-display);
  font-weight: 700;
}

.step__title {
  margin: 0 0 6px;
  font-size: 18px;
}

.step__text {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.steps--grid .step {
  padding: 56px 20px 20px;
}

.steps--grid .step__num {
  top: 18px;
  left: 20px;
}

/* --- Отчёты -------------------------------------------------------------- */

.report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.report-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.report-card--income {
  border-left: 4px solid var(--green-600);
}

.report-card--expense {
  border-left: 4px solid var(--pink-600);
}

.report-card--balance {
  border-left: 4px solid var(--sky);
}

.report-card__label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.report-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.report-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.report-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-table tbody tr:hover {
  background: var(--green-50);
}

.report-table__month {
  font-family: var(--font-display);
  font-weight: 600;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding: 16px 0 0;
  border-bottom: 1px solid var(--line);
}

.chart__col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.chart__bar {
  flex: 1;
  min-height: 2px;
  border-radius: 5px 5px 0 0;
  background: var(--green-600);
  transition: height 0.5s var(--ease);
}

.chart__bar--expense {
  background: var(--pink-600);
  opacity: 0.85;
}

.chart__label {
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.chart__legend {
  display: flex;
  gap: 16px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart__dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green-600);
}

.chart__dot--expense {
  background: var(--pink-600);
}

.bars {
  display: grid;
  gap: 14px;
}

.bar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 14.5px;
}

.bar__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bar__track {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--green-600);
}

.bar--expense .bar__fill {
  background: var(--pink-600);
}

/* --- Документы ----------------------------------------------------------- */

.doc-list {
  display: grid;
  gap: 10px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.doc:hover {
  border-color: var(--green-600);
  transform: translateY(-1px);
  color: inherit;
}

.doc__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doc__body {
  flex: 1;
  min-width: 0;
}

.doc__title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.doc__meta {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.doc__arrow {
  color: var(--muted-2);
}

/* --- Люди ---------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person__photo,
.person__initials {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: linear-gradient(150deg, var(--green-100), var(--pink-50));
}

.person__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
}

.person__name {
  margin: 0;
  font-size: 17px;
}

.person__role {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.person__bio {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.people--compact .person__photo,
.people--compact .person__initials {
  aspect-ratio: 1 / 1;
  width: 96px;
  border-radius: 50%;
  font-size: 28px;
}

/* --- Партнёры ------------------------------------------------------------ */

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
}

.partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.partner img {
  max-height: 40px;
  width: auto;
}

.partner:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

/* --- Новости ------------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__media--empty {
  background:
    radial-gradient(circle at 25% 25%, rgba(140, 198, 63, 0.45), transparent 55%),
    linear-gradient(135deg, #eef3e2, #f8f1e6);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.post-card__date {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.post-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Вопросы ------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__q .icon {
  color: var(--green-700);
  transition: transform 0.2s var(--ease);
}

.faq__item.is-open .faq__q .icon {
  transform: rotate(45deg);
}

.faq__a {
  display: none;
  padding: 0 20px 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.faq__item.is-open .faq__a {
  display: block;
}

/* --- Формы --------------------------------------------------------------- */

.form {
  display: grid;
  gap: 16px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form__note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.form__note a {
  color: var(--muted);
  text-decoration: underline;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field__input:focus {
  border-color: var(--green-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 112, 72, 0.12);
}

.field__input--area {
  min-height: 120px;
  resize: vertical;
}

.field__input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7168' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.field__error {
  margin: 0;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 500;
}

.field--error .field__input {
  border-color: var(--danger);
}

.field--error .field__input:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox__input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green-700);
}

.checkbox__text a {
  color: var(--green-700);
}

.checkbox--error {
  color: var(--danger);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* --- Проза (HTML из админки) -------------------------------------------- */

.prose {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(22px, 2.4vw, 28px);
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 20px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose a {
  color: var(--green-700);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-50);
  color: var(--ink);
  font-size: 17px;
}

.prose blockquote p {
  margin: 0;
}

.prose img {
  border-radius: var(--radius-md);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
}

/* --- Детальная страница сбора ------------------------------------------- */

.detail {
  padding: 8px 0 clamp(40px, 6vw, 72px);
}

.detail__head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.detail__title {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.06;
}

.detail__summary {
  max-width: 640px;
  color: var(--ink-2);
  font-size: 18px;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14.5px;
}

.detail__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gallery {
  margin-top: 26px;
}

.gallery__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery__thumb {
  flex: none;
  width: 84px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.7;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb.is-active,
.gallery__thumb:hover {
  border-color: var(--green-600);
  opacity: 1;
}

.detail__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.progress-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.progress-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-card__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
}

.progress-card__goal {
  color: var(--muted);
  font-size: 13.5px;
}

.progress-card__rest {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.trust-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}

.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.trust-list .icon {
  margin-top: 2px;
  color: var(--green-600);
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share__label {
  color: var(--muted);
  font-size: 13px;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
}

.share__btn:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.doc-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-block__head {
  margin-bottom: 14px;
}

.doc-block__title {
  margin: 0 0 4px;
  font-size: 20px;
}

.update {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-50);
}

.update__date {
  color: var(--muted);
  font-size: 12.5px;
}

.update__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.update__text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* --- Статья -------------------------------------------------------------- */

.article-head {
  max-width: 820px;
  padding: clamp(24px, 4vw, 48px) 0 0;
}

.article-head__title {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.article-cover {
  margin: 26px 0;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article__body {
  margin-bottom: 32px;
}

/* --- CTA-полоса ---------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--green-800), var(--green-900) 65%);
  color: #fff;
}

.cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.35), transparent 65%);
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 38px);
  color: #fff;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16.5px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Подвал -------------------------------------------------------------- */

.footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px) 0 28px;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.74);
  font-size: 14.5px;
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer__title {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__logo {
  height: 56px;
  width: auto;
  margin-bottom: 14px;
}

.footer__about {
  max-width: 320px;
  margin: 0 0 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
}

.footer__social:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.footer__contact {
  display: grid;
  gap: 10px;
}

.footer__contact-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer__contact-row .icon {
  margin-top: 2px;
  color: var(--lime);
}

.footer__legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer__legal p + p {
  margin-top: 10px;
}

.footer__legal strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* --- Cookie -------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: none;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cookie.is-visible {
  display: block;
  animation: slide-up 0.3s var(--ease);
}

.cookie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.cookie__text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Уведомления и мелочи ------------------------------------------------ */

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  color: var(--green-900);
  font-size: 14.5px;
}

.alert--error {
  background: #fdeceb;
  color: #7c1d17;
}

.alert--warn {
  background: var(--amber-100);
  color: #6d4700;
}

.alert__icon {
  margin-top: 2px;
}

.empty {
  padding: 40px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

.pagination .is-current {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
  font-weight: 600;
}

.pagination .is-disabled {
  opacity: 0.45;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.tag:hover {
  background: var(--green-100);
  color: var(--green-800);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.filter-bar .field {
  min-width: 180px;
  flex: 1;
}

.filter-bar__actions {
  display: flex;
  gap: 8px;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  border: 1px solid #d9e8d2;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.callout--pink {
  background: var(--pink-50);
  border-color: #f6d3e4;
}

.callout__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 100px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric__value {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric__label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.divider {
  height: 1px;
  margin: 32px 0;
  background: var(--line);
  border: 0;
}

.requisites {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.requisites th {
  width: 42%;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  vertical-align: top;
}

.requisites td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--green-600);
  color: var(--green-800);
}

/* --- Адаптив ------------------------------------------------------------- */

@media (max-width: 1180px) {
  .header__phone {
    display: none;
  }

  .nav__link {
    padding: 9px 9px;
    font-size: 14.5px;
  }
}

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header__actions .btn--ghost {
    display: none;
  }

  .hero__grid,
  .detail__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .hero__art {
    display: none;
  }

  .hero__card {
    margin-top: 0;
    width: min(100%, 520px);
  }

  .detail__aside {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .people,
  .stats,
  .steps--grid,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .topbar__list li:not(:first-child) {
    display: none;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .grid--2,
  .grid--3,
  .two-col,
  .form__grid,
  .report-cards,
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .donate__presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .report-table {
    font-size: 14px;
  }

  .report-table th,
  .report-table td {
    padding: 10px 8px;
  }

  .report-table .hide-sm {
    display: none;
  }

  .chart {
    height: 140px;
  }

  .footer {
    font-size: 14px;
  }

  .requisites th,
  .requisites td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: 0;
  }

  .requisites tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .article-cover {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .hero__actions .btn {
    width: 100%;
  }

  .people,
  .stats,
  .steps--grid,
  .grid--4,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    gap: 24px;
  }

  .campaign__body {
    padding: 16px 18px 18px;
  }

  .donate {
    padding: 18px;
  }

  .logo__img {
    height: 38px;
  }

  .header__inner {
    min-height: 66px;
  }
}

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

/* --- Печать -------------------------------------------------------------- */

@media print {
  .topbar,
  .header,
  .footer,
  .cookie,
  .btn,
  .donate {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

/* --- Мобильное меню ------------------------------------------------------ */

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-nav.is-open {
  display: block;
  animation: slide-up 0.2s var(--ease);
}

.mobile-nav__inner {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 16px var(--gutter) 28px;
}

.mobile-nav nav {
  display: grid;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  background: var(--green-50);
  color: var(--green-800);
}

.mobile-nav__hint {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 400;
}

.mobile-nav__actions {
  display: grid;
  gap: 8px;
}

@media (min-width: 1041px) {
  .mobile-nav {
    display: none !important;
  }
}

/* --- Результаты и вспомогательные карточки ------------------------------- */

.result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.result:hover {
  border-color: var(--green-600);
  transform: translateY(-2px);
  color: inherit;
}

.result__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.result__sum {
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result__meta {
  color: var(--muted);
  font-size: 13px;
}

.steps--how .step {
  background: var(--surface);
}

.section--paper .step {
  background: var(--surface);
}

.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.partners-strip__label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.campaign__donors {
  max-width: 52%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* --- Пустая обложка сбора ------------------------------------------------- */

.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(140, 198, 63, 0.4), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(194, 24, 111, 0.16), transparent 55%),
    linear-gradient(140deg, #f2f7ea, #fbf3f6);
  text-align: center;
}

.media-empty img {
  width: 88px;
  opacity: 0.45;
}

.media-empty__text {
  max-width: 240px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
