/* ==========================================================================
   Сердце Элеос — стили сайта. Цвета и шрифты — по брендбуку v1.
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --emerald: #0E8070;
  --emerald-hover: #0A6A5D;
  --emerald-soft: #E1F2EE;
  --mint: #A8E4A0;
  --mint-soft: #E6F6E3;
  --turq: #3CC3B2;
  --ink: #17322B;
  --ink-soft: #4D655C;
  --mist: #F2F8F4;
  --line: #DCE8E0;
  --line-strong: #C4D7CB;
  --white: #FFFFFF;
  --coral: #E0552E;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --warn: #8A5300;
  --warn-soft: #FFF3DC;

  --f-head: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(23, 50, 43, .05), 0 18px 40px -28px rgba(23, 50, 43, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
a { color: var(--emerald); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--emerald-hover); }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 12px;
}
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; font: 800 16px/1.2 var(--f-head); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-hover); color: #fff; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-button { background: none; border: 0; padding: 0; color: var(--emerald); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); color: var(--ink); }
.icon-btn:hover { border-color: var(--emerald); color: var(--emerald); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 48px; width: auto; }
.brand-compact { display: none; }
.nav-desktop { display: flex; gap: 22px; margin-left: auto; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-desktop a:hover { color: var(--emerald); }
.nav-desktop a[aria-current="page"] { border-bottom-color: var(--emerald); color: var(--emerald); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: grid; }
.nav-mobile { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-mobile .wrap { display: grid; padding-block: 8px 20px; }
.nav-mobile-link { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 800 19px/1.2 var(--f-head); }
.nav-mobile-link[aria-current="page"] { color: var(--emerald); }
.nav-mobile-contacts { display: grid; gap: 12px; margin-top: 18px; }
.nav-mobile-contacts a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-mobile-contacts .icon { color: var(--emerald); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; gap: 10px; }
  .brand img { height: 40px; }
}
@media (max-width: 420px) {
  .brand-full { display: none; }
  .brand-compact { display: block; }
  .brand img { height: 34px; }
}

/* ---------- Разделы ---------- */
.section { padding-block: clamp(56px, 7vw, 88px); }
.section-first { padding-top: 12px; }
.section-tint { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 32px; display: grid; gap: 12px; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { font-size: 24px; margin-top: 12px; }
.legal h2 { font-size: 21px; margin-top: 16px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.section-tint .aside-card { border-color: var(--line); }
.aside-title { font: 800 18px/1.3 var(--f-head); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--emerald); margin-top: 3px; }
.plain-list { list-style: none; display: grid; }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.list-title { margin-bottom: 8px; }
.crumbs { display: flex; gap: 8px; font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 16px; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Первый экран ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-text h1 { max-width: 19ch; }
.hero-text .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-link { margin-top: 22px; }
.hero-photo { margin: clamp(32px, 5vw, 56px) auto 0; }
.hero-img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 40%; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Пожертвование ---------- */
.donate { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.donate-form, .donate-pay { display: grid; gap: 14px; }
.donate-title { font: 900 24px/1.2 var(--f-head); margin: 0; }
.donate-purpose { display: grid; gap: 4px; background: var(--emerald-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; }
.donate-purpose .link-button { justify-self: start; font-size: 14px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0; border: 0; background: var(--mist); border-radius: 12px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.segmented input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 50, 43, .15); }
.segmented input:focus-visible + span { outline: 3px solid var(--emerald); outline-offset: 1px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; inset: 0; }
.amount span {
  display: grid; place-items: center; min-height: 52px; padding: 8px 4px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 800 17px/1 var(--f-head); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.amount span:hover { border-color: var(--emerald); }
.amount input:checked + span { border-color: var(--emerald); background: var(--emerald-soft); color: var(--emerald-hover); }
.amount input:focus-visible + span { outline: 3px solid var(--emerald); outline-offset: 2px; }
.amount-own { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; background: var(--white); }
.amount-own:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14, 128, 112, .25); }
.amount-own.is-active { border-color: var(--emerald); background: var(--emerald-soft); }
.amount-own.is-invalid { border-color: var(--danger); }
.amount-own input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 0; font: 800 17px/1 var(--f-head); }
.amount-own input::placeholder { font-family: var(--f-body); font-weight: 400; color: var(--ink-soft); }
.amount-own span { font-weight: 600; color: var(--ink-soft); }
.monthly-note { display: flex; gap: 10px; align-items: flex-start; background: var(--mist); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; color: var(--ink); }
.monthly-note .icon { color: var(--emerald); margin-top: 2px; }
.donate-hint { font-size: 14.5px; color: var(--ink-soft); }
.field-error { color: var(--danger); font-size: 14.5px; font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; text-decoration: none; }
.back .icon { width: 18px; height: 18px; }
.pay-sum { font: 900 30px/1.1 var(--f-head); font-variant-numeric: tabular-nums; }
.pay-qr-wrap { display: grid; justify-items: center; gap: 12px; background: var(--mist); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.pay-qr { width: 220px; height: 220px; background: var(--white); border-radius: 8px; }
.pay-qr svg, .pay-qr img { width: 100%; height: 100%; display: block; }
.pay-qr-wrap p { font-size: 14.5px; }
.pay-or { font-size: 14.5px; color: var(--ink-soft); }
.pay-list { margin: 0; display: grid; gap: 0; font-size: 15px; }
.pay-list div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pay-list dt { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }
.pay-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 8px; padding: 4px 8px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.copy-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.is-done { border-color: var(--emerald); color: var(--emerald); }

/* ---------- Направления ---------- */
.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.direction { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--emerald); }
.direction-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald); }
.direction-icon .icon { width: 26px; height: 26px; }
.direction p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Сбор ---------- */
.campaign { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.campaign h2 { margin-bottom: 14px; }
.campaign-progress { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.progress-nums { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.progress-nums b { font: 900 24px/1 var(--f-head); color: var(--ink); }
.progress { height: 12px; background: var(--mist); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }

/* ---------- Карточки мероприятий ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.event-card.is-cancelled .event-img { filter: grayscale(1); opacity: .7; }
.event-cover { position: relative; display: block; }
.event-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-empty { display: grid; place-items: center; background: var(--mint-soft); }
.photo-empty img { width: 30%; max-width: 140px; height: auto; }
.event-date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; background: var(--white); border-radius: 10px; padding: 6px 10px; line-height: 1.1; box-shadow: 0 2px 8px rgba(23, 50, 43, .15); }
.event-date b { font: 900 22px/1 var(--f-head); color: var(--emerald); }
.event-date span { font-size: 12px; font-weight: 600; color: var(--ink); }
.event-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.event-body h3 { font-size: 19px; }
.event-body h3 a { color: var(--ink); text-decoration: none; }
.event-body h3 a:hover { color: var(--emerald); }
.event-facts { list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.event-facts li { display: flex; gap: 8px; align-items: flex-start; }
.event-facts .icon { width: 18px; height: 18px; color: var(--emerald); margin-top: 2px; }
.event-facts-lg { font-size: 17px; margin-top: 16px; }
.event-summary, .event-note { font-size: 15.5px; color: var(--ink); }
.event-note { color: var(--warn); }
.event-body .link-arrow { margin-top: auto; padding-top: 6px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-ok { background: var(--emerald-soft); color: var(--emerald-hover); }
.badge-muted { background: var(--mist); color: var(--ink-soft); border: 1px solid var(--line); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Страница мероприятий ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs, .view-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a, .view-switch a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--white);
}
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.view-switch a[aria-current="page"] { border-color: var(--emerald); color: var(--emerald); background: var(--emerald-soft); }
.tabs .count { font-size: 13px; font-weight: 500; opacity: .75; }
.view-switch .icon { width: 18px; height: 18px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; background: var(--mist); border-radius: var(--radius); }
.empty p { color: var(--ink-soft); max-width: 50ch; }
.empty-icon { width: 40px; height: 40px; color: var(--emerald); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.empty-inline { color: var(--ink-soft); padding: 16px 0; }
.calendar-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.calendar-head h2 { font-size: 26px; min-width: 9ch; text-align: center; }
.calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-grid th { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: left; padding: 8px; }
.calendar-grid td { vertical-align: top; height: 112px; border: 1px solid var(--line); padding: 6px; }
.calendar-grid td.out { background: var(--mist); }
.calendar-grid td.out .day-num { color: #7E9188; }
.calendar-grid td.today .day-num { background: var(--emerald); color: #fff; }
.day-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.cal-event { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; background: var(--emerald-soft); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cal-event time { font-weight: 600; margin-right: 4px; }
.cal-event:hover { background: var(--emerald); color: #fff; }
.cal-event.is-cancelled { background: var(--danger-soft); text-decoration: line-through; }
.agenda { display: none; }
.agenda-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.agenda-date { display: grid; justify-items: center; min-width: 64px; font-size: 13px; color: var(--ink-soft); }
.agenda-date b { font: 900 26px/1 var(--f-head); color: var(--emerald); }
.agenda-text { display: grid; gap: 4px; justify-items: start; }
.agenda-text small { color: var(--ink-soft); font-size: 14px; }

/* ---------- Страница мероприятия ---------- */
.event-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.event-main { display: grid; gap: 24px; min-width: 0; }
.event-hero { margin: 0; }
.event-hero-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.event-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.block { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.block h2 { font-size: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.event-meta { margin-bottom: 12px; }
.event-body .event-meta { margin-bottom: 0; }

/* ---------- Команда ---------- */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-mini { margin: 0; display: grid; gap: 12px; }
.team-mini img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.team-mini figcaption { display: grid; }
.team-mini b { font: 800 19px/1.3 var(--f-head); }
.team-mini span { color: var(--ink-soft); font-size: 15px; }
.team { display: grid; gap: 28px; }
.member { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.member div { display: grid; gap: 8px; max-width: 62ch; }
.member-role { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }
.board { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; margin-top: 40px; padding: 28px; background: var(--mist); border-radius: var(--radius); }
.board h3 { margin-bottom: 8px; }
.people-list { list-style: none; display: grid; gap: 0; }
.people-list li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.people-list span { color: var(--ink-soft); font-size: 15px; }

/* ---------- Доверие и документы ---------- */
.trust { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.trust > div { display: grid; gap: 16px; justify-items: start; }
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc-list a, .doc-req { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); text-decoration: none; }
.doc-list a:hover { border-color: var(--emerald); }
.doc-list .icon { color: var(--emerald); width: 22px; height: 22px; margin-top: 2px; }
.doc-list span { display: grid; }
.doc-list small { color: var(--ink-soft); font-size: 14px; }
.doc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doc-group { display: grid; gap: 14px; align-content: start; }
.req-table { margin: 0; display: grid; border-top: 1px solid var(--line); }
.req-table > div { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.req-table dt { color: var(--ink-soft); }
.req-table dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rkn-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; }
.rkn-note .icon { color: var(--emerald); margin-top: 2px; }
.help-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.help-text .aside-card { margin-bottom: 8px; background: var(--emerald-soft); border-color: transparent; }

/* ---------- Способы помочь ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { display: grid; gap: 10px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.way-icon { width: 30px; height: 30px; color: var(--emerald); }
.way p { color: var(--ink-soft); font-size: 16px; }
.way .link-arrow { margin-top: 4px; }

/* ---------- Контакты ---------- */
.wrap.contact-band { width: calc(100% - 48px); max-width: calc(var(--wrap) - 48px); }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: 18px; background: var(--mint-soft); }
.contact-band h2 { font-size: clamp(24px, 2.6vw, 32px); }
.contact-band p { color: var(--ink); margin-top: 8px; }
.contact-band-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-link .icon { color: var(--emerald); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.contact-aside { display: grid; gap: 14px; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--emerald); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: 16px; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="time"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14, 128, 112, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; }
.radio span { display: inline-block; padding: 11px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.radio input:checked + span { border-color: var(--emerald); background: var(--emerald-soft); }
.radio input:focus-visible + span { outline: 3px solid var(--emerald); outline-offset: 2px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--emerald); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-result { border-radius: var(--radius); padding: 20px 22px; }
.form-success { display: grid; gap: 12px; justify-items: start; background: var(--emerald-soft); padding: 32px; }
.form-error { background: var(--danger-soft); color: var(--danger); }
.result-icon { width: 36px; height: 36px; color: var(--emerald); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { color: var(--ink-soft); max-width: 40ch; }
.footer-title { font: 800 16px/1.3 var(--f-head); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--emerald); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-strong); display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .directions { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .campaign, .trust, .contact-grid, .event-layout, .help-grid, .board { grid-template-columns: 1fr; gap: 32px; }
  .cards, .ways, .doc-groups { grid-template-columns: 1fr 1fr; }
  .event-aside { position: static; }
  .req-table > div { grid-template-columns: 1fr; gap: 4px; }
  .hero-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .cards, .ways, .doc-groups, .team-row, .directions { grid-template-columns: 1fr; }
  .team-row { gap: 20px; }
  .team-mini { grid-template-columns: 96px 1fr; align-items: center; }
  .team-mini img { aspect-ratio: 1; }
  .member { grid-template-columns: 1fr; }
  .member img { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wrap.contact-band { width: calc(100% - 36px); }
  .section-head-row .btn { width: 100%; }
  .calendar-grid { display: none; }
  .agenda { display: block; }
  .toolbar { align-items: stretch; }
  .tabs a, .view-switch a { flex: 1; justify-content: center; }
  .tabs, .view-switch { width: 100%; }
  .amount span { font-size: 16px; min-height: 48px; }
}
@media (max-width: 380px) {
  .amount span { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
