/* ==========================================================================
   fund31ombr.org — Фонд 31 ОМБр
   Дизайн-система успадкована з 31ombr.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Шрифти
   e-Ukraine не розповсюджується через Google Fonts.
   Файли можна взяти з https://31ombr.com/fonts/ або https://brandbook.gov.ua
   і покласти у /fonts/. Поки їх немає — працює фолбек.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "e-Ukraine";
  src: url("../fonts/e-Ukraine-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Токени
   -------------------------------------------------------------------------- */
:root {
  /* Поверхні */
  --bg:            #0A0A0A;
  --surface:       #171717;
  --surface-2:     #1D1D1D;
  --surface-3:     #242424;
  --line:          rgba(255, 255, 255, .10);
  --line-strong:   rgba(255, 204, 0, .35);

  /* Акценти */
  --accent:        #FFCC00;
  --accent-lime:   #F0E500;
  --accent-deep:   #F6BE02;
  --accent-dark:   #C59F06;
  --green:         #71AD17;
  --green-dark:    #2D5A27;
  --danger:        #CC0000;

  /* Текст */
  --text:          #FFFFFF;
  --text-soft:     #E0E0E0;
  --text-muted:    #959595;
  --text-faint:    #6A6A6A;
  --on-accent:     #0A0A0A;

  /* Типографіка */
  --font-display:  "Unbounded", "Arial Black", "Arial", sans-serif;
  --font-tech:     "Tektur", "Arial", sans-serif;
  --font-body:     "e-Ukraine", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Ритм */
  --container:     1280px;
  --gutter:        24px;
  --radius:        4px;
  --radius-lg:     8px;
  --section-y:     clamp(64px, 8vw, 128px);

  /* Рух */
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --dur:           .35s;

  /* Хедер */
  --header-h:      84px;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Типографіка
   -------------------------------------------------------------------------- */
.h1, .h2, .h3, .h4 {
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.h1 { font-size: clamp(38px, 6.2vw, 88px); }
.h2 { font-size: clamp(28px, 3.8vw, 54px); }
.h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }
.h4 { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; }

.accent   { color: var(--accent); }
.muted    { color: var(--text-muted); }
.soft     { color: var(--text-soft); }
.lead     { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-soft); line-height: 1.7; }
.small    { font-size: 14px; }
.tiny     { font-size: 12.5px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.num {
  font-family: var(--font-tech);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 5vw, 80px); }
.section--alt { background: var(--surface); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head__text { max-width: 720px; }
.section-head__text.is-wide { max-width: none; flex: 1 1 100%; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; }

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

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* Тонка сітка-підкладка, як на 31ombr */
.section--grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 80%);
}
.section--grid-bg > .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   6. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-lime); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--solid-dark {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn--solid-dark:hover { background: var(--surface-3); border-color: var(--accent); }

.btn--lg { padding: 18px 38px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 12px; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* Текстове посилання зі стрілкою */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--dur) var(--ease);
}
.link-arrow:hover { gap: 15px; }
.link-arrow svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   7. Хедер
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease);
}
.header.is-scrolled { background: rgba(10, 10, 10, .96); }

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { height: 44px; width: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.logo__sub {
  font-family: var(--font-tech);
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav { margin-left: auto; }
/* 6 пунктів меню */
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  position: relative;
  font-family: var(--font-tech);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-block: 6px;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* Перемикач мов */
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang__btn {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--accent); color: var(--on-accent); }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобільне меню */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility var(--dur);
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__list { display: flex; flex-direction: column; }
.mobile-nav__link {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
.mobile-nav__link.is-active { color: var(--accent); }
.mobile-nav__cta { margin-top: 32px; }

/* Перемикач мов усередині меню — показується лише на вузьких екранах */
.mobile-nav__lang {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mobile-nav__lang-label {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 6vw, 96px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.96) 100%),
    linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.25) 65%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 780px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero .h1 { margin-bottom: 24px; }
.hero__text { max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--line);
  border: 1px solid var(--line);
}
.hero__stat { background: rgba(10,10,10,.72); padding: 24px 26px; }
.hero__stat dt {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hero__stat dd.is-text {
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: .01em;
}

.hero__stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Page hero (внутрішні сторінки)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 104px));
  padding-bottom: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 88% 0%, rgba(255,204,0,.11) 0%, transparent 62%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero .lead { margin-top: 20px; max-width: 760px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   10. Картки
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card__index {
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.card__icon {
  width: 46px; height: 46px;
  margin-bottom: 20px;
  color: var(--accent);
}
.card__title { margin-bottom: 10px; }
a.card__index { transition: color var(--dur) var(--ease); }
a.card__index:hover { color: var(--accent-lime); }
.dir-card__title a:hover { color: var(--accent); }
table.data a.accent:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__text { color: var(--text-muted); font-size: 15px; }
.card__foot { margin-top: 22px; }

/* Картка-напрямок з фото */
.dir-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dir-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.dir-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.dir-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dir-card:hover .dir-card__media img { transform: scale(1.05); }
.dir-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 11px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dir-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.dir-card__title { margin-bottom: 10px; }
.dir-card__text { color: var(--text-muted); font-size: 15px; flex: 1; }
.dir-card__foot { margin-top: 22px; }

/* Прогрес-бар збору */
.progress { margin-top: 20px; }
.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-tech);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.progress__raised { color: var(--accent); font-weight: 700; }
.progress__goal { color: var(--text-muted); }
.progress__track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-lime));
  width: 0;
  transition: width 1.2s var(--ease);
}
.progress__pct {
  margin-top: 8px;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.progress--done .progress__fill { background: linear-gradient(90deg, var(--green-dark), var(--green)); }
.progress--done .progress__raised { color: var(--green); }

/* --------------------------------------------------------------------------
   11. Блок реквізитів / донату
   -------------------------------------------------------------------------- */
.donate {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255,204,0,.10) 0%, transparent 60%),
    var(--surface);
  overflow: hidden;
}
.donate__main { padding: clamp(28px, 3.5vw, 46px); }

/* Рядок-кнопка, що відкриває QR у модалці */
.qr-open {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 22px;
  padding: 16px 20px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.qr-open:hover { border-color: var(--accent); background: var(--surface-3); }

.qr-open__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
}

.qr-open__icon svg { width: 22px; height: 22px; }
.qr-open__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }

.qr-open__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.qr-open:hover .qr-open__title { color: var(--accent); }
.qr-open__note { font-size: 13px; color: var(--text-muted); }
.qr-open__go { flex: none; color: var(--text-faint); }
.qr-open__go svg { width: 18px; height: 18px; }
.qr-open:hover .qr-open__go { color: var(--accent); }

/* QR у модалці */
.modal__box--qr { width: min(480px, 100%); text-align: center; }
.modal__box--qr h2 { font-size: clamp(20px, 2vw, 26px); }

.qr-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 24px auto 20px;
  display: block;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius);
}

.req { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req__row {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
}
.req__label {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.req__value {
  font-family: var(--font-tech);
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
  color: var(--text);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  flex: none;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-done { border-color: var(--green); color: var(--green); }
.copy svg { width: 14px; height: 14px; }

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 204, 0, .28);
  background: rgba(255, 204, 0, .06);
  font-size: 14.5px;
  color: var(--text-soft);
}
/* ТИМЧАСОВЕ: попередження про тестовий рахунок.
   Видалити цей блок разом із <div class="notice notice--test"> у розмітці,
   коли фонд відкриє справжній рахунок. */
.notice--test {
  border-color: rgba(204, 0, 0, .45);
  background: rgba(204, 0, 0, .10);
  color: var(--text);
}
.notice--test b { color: #FF6B6B; }
.notice--test .notice__mark { background: var(--danger); color: #fff; }

.notice__mark {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
}

/* Методи оплати */
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: var(--font-tech);
  font-size: 12.5px;
  letter-spacing: .05em;
  transition: all var(--dur) var(--ease);
}
.pay-method:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   12. Таблиця звітності
   -------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--surface);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
table.data th {
  text-align: left;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
table.data td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background var(--dur) var(--ease); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.is-num { font-family: var(--font-tech); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--done   { background: rgba(113,173,23,.14); color: var(--green);  border: 1px solid rgba(113,173,23,.32); }
.badge--active { background: rgba(255,204,0,.13);  color: var(--accent); border: 1px solid rgba(255,204,0,.32); }
.badge--plan   { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   13. Форми
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__label .req-mark { color: var(--accent); }

.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-3);
}
.textarea { resize: vertical; min-height: 128px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23959595' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field.is-invalid .input,
.field.is-invalid .textarea,
.field.is-invalid .select { border-color: var(--danger); }
.field__error { font-size: 12.5px; color: var(--danger); display: none; }
.field.is-invalid .field__error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-2);
  transition: all var(--dur) var(--ease);
}
.checkbox input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--accent);
}
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form__note { font-size: 13px; color: var(--text-faint); }
.form__success {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(113,173,23,.35);
  background: rgba(113,173,23,.09);
  color: var(--green);
  font-size: 14.5px;
}
.form.is-sent .form__success { display: block; }

/* Швидкий вибір суми */
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amount {
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.amount:hover { border-color: var(--accent); }
.amount.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   14. Timeline / кроки
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 28px 30px;
  background: var(--surface);
  transition: background var(--dur) var(--ease);
}
.step:hover { background: var(--surface-2); }
.step__num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,204,0,.30);
}
.step__title { margin-bottom: 8px; }
.step__text { color: var(--text-muted); font-size: 15px; }

/* Люди */
.person { text-align: left; }
.person__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter var(--dur) var(--ease); }
.person:hover .person__photo img { filter: grayscale(0); }
.person__name { margin-bottom: 6px; }
.person__role {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Цитата */
.quote {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: .6;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 22px;
}
.quote__author { font-family: var(--font-tech); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.quote__role { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }

/* FAQ */
.faq { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq__item { background: var(--surface); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq__a > div { padding: 0 26px 24px; color: var(--text-muted); font-size: 15px; max-width: 860px; }

/* --------------------------------------------------------------------------
   15. Контакти
   -------------------------------------------------------------------------- */
.contact-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}
.contact-card:hover { border-color: var(--line-strong); }
.contact-card__label {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.contact-card__value { font-family: var(--font-tech); font-size: 18px; font-weight: 600; }
.contact-card__value a:hover { color: var(--accent); }
.contact-card__note { margin-top: 10px; font-size: 14px; color: var(--text-muted); }

.socials { display: flex; gap: 10px; }
.social {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.social:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 19px; height: 19px; }

/* CTA-смуга */
.cta-band {
  position: relative;
  padding-block: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 160% at 12% 50%, rgba(255,204,0,.12) 0%, transparent 60%),
    var(--surface);
  overflow: hidden;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band__text { max-width: 620px; }
.cta-band .lead { margin-top: 14px; }

/* Логотипи партнерів */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.partner {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: 20px;
  font-family: var(--font-tech);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
  text-align: center;
  transition: all var(--dur) var(--ease);
}
.partner:hover { background: var(--surface-2); color: var(--accent); }

/* --------------------------------------------------------------------------
   16. Футер
   -------------------------------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(48px, 5vw, 72px); }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__about { max-width: 380px; }
.footer__about .logo { margin-bottom: 20px; }
.footer__about p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }
.footer__title {
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer__list { display: flex; flex-direction: column; gap: 11px; }
.footer__list a, .footer__list li { font-size: 14.5px; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   17. Модалка
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: min(760px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 44px);
}
.modal__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 20px;
  transition: all var(--dur) var(--ease);
}
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__box h2 { margin-bottom: 20px; }
.modal__box h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; margin: 26px 0 10px; }
.modal__box p, .modal__box li { color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }
.modal__box ul { padding-left: 20px; list-style: disc; }

/* Документ у модалці (політика, оферта): довгий текст, на мобільному — на весь екран */
.modal--doc .modal__box {
  width: min(880px, 100%);
  max-height: 88vh;
  padding-top: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal--doc .modal__close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 2;
  margin: 16px calc(-1 * clamp(8px, 1.5vw, 22px)) 0 16px;
}
.modal--doc .modal__box > .eyebrow { display: block; margin-top: clamp(26px, 3.5vw, 44px); }
.modal--doc .modal__box > .h2 { font-size: clamp(24px, 3vw, 38px); margin: 14px 0; }
.modal--doc .modal__box > .lead { margin-bottom: 10px; color: var(--text); }
.modal--doc .legal { margin-top: 8px; }
@media (max-width: 680px) {
  .modal--doc { padding: 0; align-items: stretch; }
  .modal--doc .modal__box {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 0 18px calc(32px + env(safe-area-inset-bottom));
  }
  .modal--doc .modal__close { top: 12px; margin-right: -4px; }
  .modal--doc .modal__box > .eyebrow { margin-top: 22px; }
}

/* --------------------------------------------------------------------------
   17b. ПАРТНЕРИ
   Каталог послуг родинам, вітрина партнерів фонду, сторінка партнера.
   -------------------------------------------------------------------------- */

/* Навігація категоріями (якірні посилання / фільтр) */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-tech);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: all var(--dur) var(--ease);
}
.cat-nav__item:hover { border-color: var(--accent); color: var(--accent); }
.cat-nav__item.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cat-nav__count {
  font-size: 11px;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

/* Заголовок категорії в каталозі */
.cat-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cat-head__icon { flex: none; width: 42px; height: 42px; color: var(--accent); }
.cat-head__icon svg { width: 100%; height: 100%; }
.cat-head__text { flex: 1; }
.cat-head__title { margin-bottom: 6px; }
.cat-head__sum { color: var(--text-muted); font-size: 15px; }

/* Картка послуги для родин */
.svc {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.svc__cat {
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc__title { margin-bottom: 10px; }
.svc__text { color: var(--text-muted); font-size: 15px; flex: 1; }
.svc__how {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}
.svc__how b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.svc__foot { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Картка партнера у вітрині */
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pcard__logo {
  height: 110px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.pcard__logo img { max-height: 62px; width: auto; filter: grayscale(1) opacity(.75); transition: filter var(--dur) var(--ease); }
.pcard:hover .pcard__logo img { filter: none; }
.pcard__logo .pcard__stub {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pcard__title { margin-bottom: 8px; }
.pcard__text { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.pcard__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pcard__since {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Тип допомоги */
.ptype {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 99px;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.ptype a { color: inherit; }
.ptype a:hover { color: var(--accent); }
.ptype:has(a):hover { border-color: var(--line-strong); }

.ptype--service { color: var(--accent); border-color: rgba(255,204,0,.32); background: rgba(255,204,0,.10); }
.ptype--goods   { color: var(--green);  border-color: rgba(113,173,23,.32); background: rgba(113,173,23,.10); }
.ptype--probono { color: #8FB8E8; border-color: rgba(143,184,232,.30); background: rgba(143,184,232,.10); }

/* Шапка сторінки партнера */
.phero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.phero__logo {
  flex: none;
  width: 150px; height: 150px;
  display: grid; place-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.phero__logo img { max-width: 100%; max-height: 100%; }
.phero__logo .pcard__stub { text-align: center; }
.phero__text { flex: 1; min-width: 260px; }
.phero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Зведена інформація */
.meta {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.meta__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 15px 20px;
  background: var(--surface);
}
.meta__k {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta__v { font-size: 15px; color: var(--text); }
.meta__v a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Текст опису партнера */
.md-body { max-width: 760px; }
/* Правові сторінки: трохи ширше й з кращим ритмом для довгого тексту */
.md-body.legal { max-width: 820px; }
.md-body.legal h3 { margin-top: 44px; }
.md-body.legal h3:first-child { margin-top: 0; }
.md-body.legal p, .md-body.legal li { font-size: 15.5px; }
.md-body h3 { margin: 32px 0 12px; }
.md-body h3:first-child { margin-top: 0; }
.md-body h4 { margin: 24px 0 10px; }
.md-body p { color: var(--text-soft); margin-bottom: 14px; }
.md-body .md-list { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.md-body .md-list--num { list-style: decimal; }
.md-body .md-list li { color: var(--text-muted); margin-bottom: 7px; }
.md-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.md-body blockquote p { margin: 0; }
.md-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Застереження */
.disclaimer {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-faint);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-muted);
}

/* Рівні партнерства */
.tier {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease);
}
.tier:hover { border-color: var(--line-strong); }
.tier--featured { border-color: var(--line-strong); background: var(--surface-2); }
.tier__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tier__title { margin-bottom: 10px; }
.tier__text { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; flex: 1; }
.tier__list { display: flex; flex-direction: column; gap: 10px; }
.tier__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-soft);
}
.tier__list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(255,204,0,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCC00' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Стіна логотипів */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-wall__item {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--surface);
  text-align: center;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--text-faint);
  transition: all var(--dur) var(--ease);
}
.logo-wall__item:hover { background: var(--surface-2); color: var(--accent); }

/* Порожній стан */
.empty {
  padding: 48px 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .meta__row { grid-template-columns: 1fr; gap: 6px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .phero { gap: 20px; }
  .phero__logo { width: 110px; height: 110px; }
  .svc, .tier { padding: 24px; }
}

/* --------------------------------------------------------------------------
   17c. СТОРІНКА ЗБОРУ
   Одна сторінка у двох станах: активний збір → закритий зі звітом.
   Адреса не змінюється, тож посилання з соцмереж лишаються робочими.
   -------------------------------------------------------------------------- */

/* Шапка збору */
.camp__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.camp__id {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}
.camp__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.camp__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.camp__status--open   { color: var(--accent); background: rgba(255,204,0,.12); border: 1px solid rgba(255,204,0,.35); }
.camp__status--closed { color: var(--green);  background: rgba(113,173,23,.12); border: 1px solid rgba(113,173,23,.35); }

/* Великий прогрес у шапці */
.camp-progress { margin-top: 30px; max-width: 720px; }
.camp-progress__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.camp-progress__sum {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.camp-progress__goal { font-family: var(--font-tech); font-size: 15px; color: var(--text-muted); }
.camp-progress .progress__track { height: 10px; }

/* Підсумкові цифри закритого збору */
.camp-sum {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.camp-sum__item { background: var(--surface); padding: 24px 26px; }
.camp-sum__k {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.camp-sum__v {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Хронологія */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
}
.timeline__item--done::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.timeline__item--now::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(255,204,0,.12);
}
.timeline__item--wait::before { border-style: dashed; }
.timeline__date {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.timeline__item--now .timeline__date { color: var(--accent); }
.timeline__title { margin-bottom: 6px; }
.timeline__text { color: var(--text-muted); font-size: 15px; max-width: 620px; }

/* Документи */
.docs { display: grid; gap: 12px; }
.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.doc:hover { border-color: var(--line-strong); background: var(--surface-2); }
.doc__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: rgba(255,204,0,.10);
  color: var(--accent);
}
.doc__icon svg { width: 19px; height: 19px; }
.doc__body { flex: 1; min-width: 0; }
.doc__name { display: block; font-size: 15px; color: var(--text); }
.doc__meta {
  display: block;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
.doc__go { flex: none; color: var(--text-muted); transition: color var(--dur) var(--ease); }
.doc:hover .doc__go { color: var(--accent); }

/* Фото передачі */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__cap {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .camp-sum { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .camp-sum { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 7px; }
  .timeline__item::before { left: -28px; width: 16px; height: 16px; }
}

/* --------------------------------------------------------------------------
   17d. НАПРЯМКИ
   -------------------------------------------------------------------------- */
.ncard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ncard__meta b { color: var(--accent); font-weight: 700; }

.admin-band {
  border: 1px solid rgba(255, 204, 0, .28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 204, 0, .055), transparent 55%),
    var(--surface-2);
  padding: clamp(28px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 3vw, 52px);
  align-items: start;
}

.admin-band__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}

.admin-band__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  list-style: none;
}

.admin-band__list--cols { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }

@media (max-width: 680px) {
  .admin-band__list--cols { grid-template-columns: 1fr; }
}

.admin-band__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-muted);
}

.admin-band__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.admin-band--wide { display: block; }
.admin-band--wide .admin-band__head { max-width: 900px; }

.admin-band__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(26px, 3vw, 40px);
}

@media (max-width: 900px) {
  .admin-band__cards { grid-template-columns: 1fr; }
}

.report-filter {
  display: grid;
  grid-template-columns: 220px 160px 1fr;
  gap: 16px;
  align-items: end;
  padding: 20px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.report-filter__note {
  font-size: 14px;
  color: var(--accent);
  padding-bottom: 12px;
}

@media (max-width: 680px) {
  .report-filter { grid-template-columns: 1fr; align-items: stretch; }
  .report-filter__note { padding-bottom: 0; }
}

.btn--wait {
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px dashed var(--line-strong);
  cursor: default;
}

.btn--wait:hover { background: var(--surface-3); color: var(--text-muted); }

.jar {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.jar__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.jar__head svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.jar__text { font-size: 14px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17e. ПАРТНЕРИ ЗБОРУ
   -------------------------------------------------------------------------- */
.camp-partners {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.camp-partners__label {
  display: block;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.camp-partners__list {
  display: grid;
  gap: 12px;
}

.camp-partner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}

.camp-partner:hover { border-color: var(--line-strong); }

.camp-partner__logo {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-family: var(--font-tech);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-align: center;
  padding: 4px;
}

.camp-partner__logo img { max-width: 100%; max-height: 100%; }
.camp-partner__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.camp-partner__name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.camp-partner:hover .camp-partner__name { color: var(--accent); }

.camp-partner__role {
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.camp-partner__note { font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   17f. МАКЕТ ЗВІТНОСТІ (приклад, не реальні дані)
   -------------------------------------------------------------------------- */
.sample {
  position: relative;
  border: 2px dashed rgba(255, 204, 0, .38);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 12px, transparent 12px 24px),
    var(--surface-2);
  padding: clamp(24px, 3vw, 44px);
  padding-top: clamp(46px, 5vw, 62px);
}

.sample__tag {
  position: absolute;
  top: -13px;
  left: clamp(20px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sample__note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 22px;
}

.sample__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.sample__month {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 500;
}

.sample__meta {
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sample__block { margin-top: 30px; }

.sample__label {
  display: block;
  font-family: var(--font-tech);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* сітка показників усередині макета */
.sample__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sample__kpi { background: var(--surface); padding: 18px 20px; }

.sample__kpi dt {
  font-family: var(--font-tech);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sample__kpi dd {
  font-family: var(--font-tech);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  color: var(--text);
}

.sample__kpi dd.is-accent { color: var(--accent); }

/* рядки розподілу */
.sample__bars { display: grid; gap: 14px; }

.sample__bar {
  display: grid;
  grid-template-columns: 220px 1fr 92px;
  align-items: center;
  gap: 16px;
}

.sample__bar-name { font-size: 14.5px; color: var(--text-soft); }

.sample__bar-track {
  height: 8px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.sample__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 99px;
}

.sample__bar-val {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

@media (max-width: 900px) {
  .sample__kpis { grid-template-columns: repeat(2, 1fr); }
  .sample__bar { grid-template-columns: 1fr; gap: 8px; }
  .sample__bar-val { text-align: left; }
}

@media (max-width: 560px) {
  .sample__kpis { grid-template-columns: 1fr; }
  .sample__tag { position: static; margin-bottom: 18px; }
  .sample { padding-top: clamp(24px, 3vw, 44px); }
}

/* --------------------------------------------------------------------------
   18. Утиліти
   -------------------------------------------------------------------------- */
.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;
}
.stack-sm > * + * { margin-top: 10px; }
.stack   > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }
.mt-lg { margin-top: clamp(32px, 4vw, 56px); }
.text-center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: clamp(32px, 4vw, 56px); }

/* Поява при скролі */
/* Ховаємо лише якщо JS працює: без нього .js на <html> не зʼявиться
   і весь контент лишається видимим, а не порожнім екраном. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .req__row { grid-template-columns: 1fr; gap: 8px; }
  .req__row .copy { justify-self: start; }
  .logo__sub { display: none; }
  .admin-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  /* ...але не в шапці: там кнопки лишаються по контенту */
  .header .btn, .header__actions .btn { width: auto; }
  .hero__actions, .cta-band__inner { flex-direction: column; align-items: stretch; }
  .card { padding: 24px; }
  .header__inner { gap: 14px; }
  .header__actions { gap: 10px; }
  .logo__title { font-size: 13px; }
  .logo__mark { height: 38px; }
  .btn--sm { padding: 11px 15px; }
}

/* Компактна шапка на вузьких екранах.
   Лишаються лого + «Підтримати» + бургер.
   Перемикач мов їде в бургер-меню (.mobile-nav__lang). */
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .header .lang { display: none; }
  .mobile-nav__lang { display: flex; }
  /* дозволяємо лого стискатись: якщо назва не влазить — обріжеться трикрапкою,
     а не виштовхне кнопки за екран */
  .logo { gap: 10px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .logo__text { min-width: 0; }
  .logo__mark { height: 34px; }
  .logo__title {
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .btn--sm { padding: 11px 14px; font-size: 11.5px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 11px; width: 18px; }
  .burger span:nth-child(1) { top: 13px; }
  .burger span:nth-child(2) { top: 19px; }
  .burger span:nth-child(3) { top: 25px; }
  .mobile-nav { padding-top: 24px; }
  .mobile-nav__link { font-size: 20px; padding: 16px 0; }
}

@media (max-width: 460px) {
  /* «АДМІНІСТРАТИВНА», «ВІЙСЬКОВОСЛУЖБОВЦІ» — довгі слова, що не влазять у рядок */
  .h1 { font-size: clamp(24px, 7.4vw, 34px); }
  .h2 { font-size: clamp(22px, 6.2vw, 30px); }
  .page-hero .lead, .hero__text { font-size: 15.5px; }
}

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .logo { gap: 8px; }
  .logo__mark { height: 30px; }
  .logo__title { font-size: 11px; }
  .btn--sm { padding: 10px 11px; font-size: 11px; letter-spacing: .05em; }
  .burger { width: 38px; height: 38px; }
  .burger span { left: 10px; }
  .burger span:nth-child(1) { top: 12px; }
  .burger span:nth-child(2) { top: 18px; }
  .burger span:nth-child(3) { top: 24px; }
}

/* Друк */
@media print {
  .header, .mobile-nav, .cta-band, .footer, .burger { display: none !important; }
  body { background: #fff; color: #000; }
}
