/* «Сила Знань» — campaign page styles.
   Brand tokens copied from strength.foundation main site (src/styles/tokens.css).
   Gold-usage rule: gold #c9a227 on LIGHT bg · gold #e8d48a on OLIVE bg (AA >=4.5:1) · dark-on-gold 7.19:1 ✓ · white-on-olive 8.96:1 ✓ */

/* ===== Self-hosted heading face: e-Ukraine Head (official Ukrainian gov font) ===== */
@font-face {
  font-family: 'e-Ukraine Head';
  src: url('/assets/fonts/e-UkraineHead-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine Head';
  src: url('/assets/fonts/e-UkraineHead-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --color-olive: #4a4b32;
  --color-olive-light: #5d5e42;
  --color-olive-dark: #484934;
  --color-gold: #c9a227;
  --color-gold-glow: rgba(201, 162, 39, 0.3);
  --color-white: #ffffff;
  --color-beige: #faf8f3;
  --color-off-white: #f5f3ed;
  --color-dark: #1a1a1a;
  --color-text: #2d2d2d;
  --color-text-muted: #6b6b6b;

  --font-family: 'e-Ukraine', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'e-Ukraine Head', var(--font-family);   /* headings only; body keeps --font-family */

  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --fs-xl: clamp(1.625rem, 1.35rem + 1.4vw, 2.5rem);    /* h2 ceiling 2.25→2.5 */
  --fs-2xl: clamp(2rem, 1.55rem + 2.25vw, 3.5rem);      /* ceiling 3→3.5 */
  --fs-3xl: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);        /* hero h1 ceiling 3.75→4.5 (steeper ramp = more size contrast) */

  --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  --space-lg: clamp(1rem, 0.75rem + 1.25vw, 1.75rem);
  --space-xl: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  --space-2xl: clamp(2.5rem, 1.75rem + 3.75vw, 5rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 5px 10px rgba(0, 0, 0, 0.04);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1280px;   /* was 1200 — a little more content width on wide screens */

  /* Campaign elevation additions */
  --color-olive-deep: #3a3b27;                     /* darker hero gradient stop */
  --color-gold-soft: rgba(201, 162, 39, 0.12);     /* gold tint fills */
  --color-gold-on-dark: #e8d48a;                   /* gold for use ON olive surfaces — clean, AA >=4.5:1 */
  --color-gold-logo: #efcb4c;                      /* LOGO MARK ONLY — do NOT use in UI (UI gold is #c9a227 / #e8d48a) */
  --color-hairline: #e8e4d8;                       /* warm divider / card outline on light bg */
  --color-hairline-strong: #d8d5c8;               /* stronger edge for progress track / kits-empty */
  --color-input-border: #8a8670;                  /* form-input resting border — 3.67:1 on white (WCAG 1.4.11 ✓) */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --section-pad-compact: var(--space-xl);          /* trust strip padding */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }   /* belt-and-braces: no horizontal scroll on any viewport (sub-pixel edge cases ≤340px); clip keeps position:sticky working */

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

img { max-width: 100%; display: block; }

/* Skip link — visible only on keyboard focus (translateY hide avoids any horizontal overflow) */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 600;
  background: var(--color-olive); color: var(--color-white);
  padding: var(--space-sm) var(--space-md); border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-200%); transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 var(--space-md); overflow-wrap: break-word; }
h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.15; }
h3 { font-size: var(--fs-lg); font-weight: 500; line-height: 1.25; }   /* was fs-md (collided with body); quiet h3s (.budget-h, .trust-col) override down */
p { margin: 0 0 var(--space-md); }

/* Section heading accent — 48px gold underline (skipped on .trust-eyebrow) */
.section h2 { position: relative; padding-bottom: var(--space-sm); margin-bottom: var(--space-lg); letter-spacing: -0.01em; }
.section h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px; border-radius: 2px; background: var(--color-gold);
}
.section-olive h2 { color: var(--color-white); }
ul { margin: 0 0 var(--space-md); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container.narrow { max-width: 800px; }

/* ===== Header / Footer ===== */
.site-header {
  position: sticky; top: 0; z-index: 300;   /* below modal(500)/donate-sticky(400)/skip-link(600) */
  background: var(--color-olive);
  padding: 0.6rem var(--space-lg);
  border-bottom: 3px solid var(--color-gold-on-dark);   /* gold seam */
  display: flex; align-items: center; gap: var(--space-md);
}
.site-header-brand { display: inline-flex; flex-shrink: 0; }
.site-header-brand img { height: 36px; width: auto; display: block; }

/* Nav */
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-lg); }
.site-nav li { margin: 0; }
.site-nav a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-gold-on-dark); }
.site-nav a.is-active { color: var(--color-gold-on-dark); border-bottom-color: var(--color-gold-on-dark); }
.header-cta { flex-shrink: 0; padding: 0.55rem 1.1rem; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .site-header .header-cta { display: none; }   /* mobile uses the fixed bottom donate bar (beats .btn source order) */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; position: relative; cursor: pointer;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-sm);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ''; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--color-white);
    transform: translateX(-50%); transition: transform var(--transition), opacity var(--transition), background var(--transition);
  }
  .nav-toggle-bar { top: 50%; margin-top: -1px; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .site-header.nav-open .nav-toggle-bar { background: transparent; }
  .site-header.nav-open .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--color-olive); border-bottom: 3px solid var(--color-gold-on-dark);
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .site-header.nav-open .site-nav { max-height: 75vh; }
  .site-nav ul { flex-direction: column; gap: 0; padding: var(--space-sm) var(--space-lg); }
  .site-nav a { display: block; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .site-nav a.is-active { border-bottom-color: rgba(255, 255, 255, 0.1); }
}

/* Anchored sections clear the sticky header */
section[id] { scroll-margin-top: 72px; }

.site-footer {
  background: var(--color-olive);
  color: var(--color-white);
  font-size: var(--fs-sm);
  border-top: 3px solid var(--color-gold-on-dark);   /* clean gold seam — 6.07:1 on olive ✓ */
}

/* 3-column grid: contact · social(center) · brand */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}
.footer-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-heading {
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 var(--space-2xs); color: var(--color-gold-on-dark);   /* 6.07:1 on olive ✓ */
}

/* Column 1 — contact / legal */
.footer-contact { align-items: flex-start; text-align: left; }
.footer-address { font-style: normal; margin: 0; line-height: 1.65; color: rgba(255, 255, 255, 0.85); }
.footer-code { margin: 0; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.02em; }
.footer-privacy {
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  border-bottom: 1px solid rgba(232, 212, 138, 0.4); align-self: flex-start;
  transition: color var(--transition), border-color var(--transition);
}
.footer-privacy:hover, .footer-privacy:focus-visible { color: var(--color-gold-on-dark); border-bottom-color: var(--color-gold-on-dark); }

/* Column 2 — social (centered) */
.footer-social { align-items: center; text-align: center; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.social-links li { margin: 0; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.social-link img { width: 22px; height: 22px; display: block; }
/* Hover: keep icons white (gold-fill+invert turned the round Telegram disc into a black circle) */
.social-link:hover, .social-link:focus-visible { background: rgba(255, 255, 255, 0.16); border-color: var(--color-gold-on-dark); transform: translateY(-2px) scale(1.06); }

/* Column 3 — brand / org */
.footer-brand { align-items: flex-end; text-align: right; }
.footer-org { margin: 0; font-weight: 600; color: var(--color-white); }
.footer-email { color: var(--color-gold-on-dark); text-decoration: none; font-weight: 600; }
.footer-email:hover, .footer-email:focus-visible { text-decoration: underline; }
.footer-site { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-site:hover, .footer-site:focus-visible { color: var(--color-gold-on-dark); text-decoration: underline; }

/* Bottom copyright bar */
.footer-bottom { background: rgba(0, 0, 0, 0.18); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: var(--space-md) 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.footer-copyright, .footer-built { margin: 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.75); }

/* Shared focus ring for footer links */
.site-footer a:focus-visible, .social-link:focus-visible { outline: 2px solid var(--color-gold-on-dark); outline-offset: 3px; border-radius: var(--radius-sm); }

/* Responsive: stack to single column on mobile */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); text-align: center; }
  .footer-brand { order: 1; align-items: center; text-align: center; }
  .footer-social { order: 2; }
  .footer-contact { order: 3; align-items: center; text-align: center; }
  .footer-privacy { align-self: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: var(--space-2xs); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--color-olive); outline-offset: 2px; }   /* olive ≥3:1 on white/beige AND on the gold button (gold ring failed at 2.3:1) */

.btn-primary { background: var(--color-gold); color: var(--color-dark); }
.btn-primary:hover { background: #d4ad33; }
.btn-olive { background: var(--color-olive); color: var(--color-white); }
.btn-olive:hover { background: var(--color-olive-light); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
/* Hero is now light → its secondary CTA needs olive ink (Final section keeps the white-outline above) */
.hero .btn-outline-light { color: var(--color-olive); border-color: var(--color-olive); }
.hero .btn-outline-light:hover { background: var(--color-gold-soft); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-lg); }
.cta-row.centered { justify-content: center; }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(120% 70% at 85% 0%, var(--color-gold-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-beige) 0%, var(--color-white) 100%);
  color: var(--color-text);
  padding: var(--space-2xl) 0;
  border-bottom: 3px solid var(--color-gold);   /* on light bg → reads rich; doubles as hero↔progress separator */
  overflow: hidden;
}
.hero-grid { display: grid; gap: var(--space-xl); }
.hero h1 {
  font-size: var(--fs-3xl); font-weight: 700; line-height: 1.1; margin-bottom: var(--space-md);
  color: var(--color-olive);                    /* 8.44:1 on beige / 8.96:1 on white ✓ */
  position: relative; padding-bottom: var(--space-sm);
}
.hero h1::after {                               /* brand tick — mirrors .section h2::after */
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; border-radius: 2px; background: var(--color-gold);
}
.hero-subtitle { font-size: var(--fs-md); font-weight: 500; color: var(--color-text); line-height: 1.5; }
.hero-desc { font-size: var(--fs-base); color: var(--color-text); line-height: 1.65; }   /* designer: smaller hero lead = "air" under the bigger h1 (fs-base = body size, AA 13.77:1, not the smallest text — captions are fs-sm) */

.hero-image {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(74, 75, 50, 0.03) 12px 24px),
    var(--color-off-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;   /* портрет — як самі фото: видно і обличчя, і набори (запит Антона «показати фото максимально») */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-sm); color: var(--color-olive-light);   /* 6.02:1 on off-white ✓ */
  font-size: var(--fs-sm); letter-spacing: 0.04em;
}
.hero-image.has-photo .hero-image-ph { display: none; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.key-numbers {
  list-style: none; padding: 0; margin: var(--space-lg) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm);   /* 4 tiles read better 2×2 in the narrow hero column */
}
.key-numbers li {
  display: flex; flex-direction: column; gap: var(--space-2xs);
  padding: var(--space-md) var(--space-sm); margin: 0;
  background: var(--color-white);                /* white tile on the light wash */
  border: 1px solid var(--color-hairline);
  border-top: 3px solid var(--color-gold);       /* gold accent on a LIGHT tile → reads rich, not muddy */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);                  /* load-bearing: lifts white card off near-white wash */
}
.kn-value { font-size: var(--fs-lg); font-weight: 700; color: var(--color-olive); line-height: 1.15; font-variant-numeric: tabular-nums; } /* 8.96:1 on white */
.kn-label { font-size: var(--fs-sm); color: var(--color-text-muted); opacity: 1; } /* 5.33:1 ✓ */
/* v2: all 4 tiles are static — pending/data-filled machinery removed. 2×2 holds down to 360px (covers 375/390/414); 1-col only on the smallest phones. */
@media (max-width: 360px) { .key-numbers { grid-template-columns: 1fr; } }

/* ===== Sections ===== */
.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }   /* lighter rhythm for supporting sections */
.section-beige { background: var(--color-beige); }
.section-olive { background: var(--color-olive); color: var(--color-white); }
/* Dark-section internals: bright gold accents + light-muted secondary text (never muddy) */
.section-olive h2::after { background: var(--color-gold-on-dark); }
.section-olive .cost-helper,
.section-olive .progress-updated,
.section-olive .budget-note { color: rgba(255, 255, 255, 0.78); }   /* ~6.1:1 on olive ✓ */
.section-olive .budget-block { border-top-color: rgba(255, 255, 255, 0.2); }

/* ===== Progress ===== */
.progress-raised { font-size: var(--fs-md); }
.progress-bar {
  height: 22px;
  background: var(--color-off-white);
  border: 1px solid var(--color-hairline-strong);   /* darker track edge — stays visible on the now-white Progress section */
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, #d4ad33 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--color-gold-glow);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-stats p { margin-bottom: 0.4rem; }
.progress-updated { color: var(--color-text-muted); font-size: var(--fs-sm); }
.progress-note {
  background: var(--color-white);
  color: var(--color-text);   /* white card → always dark text (section-olive would otherwise inherit white = invisible) */
  border: 1px solid var(--color-hairline);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

/* ===== Kits ===== */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-lg);
  max-width: 640px;         /* 2 набори показуємо центрованою парою, а не розтягнутими */
  margin-inline: auto;
}
.kits-empty {
  grid-column: 1 / -1;
  color: var(--color-text-muted); text-align: center;
  padding: var(--space-xl);
  border: 1px dashed var(--color-hairline-strong); border-radius: var(--radius-md);
}
.kit-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.kit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kit-card-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--color-off-white);
}
.kit-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.kit-card-store { font-weight: 600; }
.kit-card-sum { font-size: var(--fs-md); font-weight: 700; color: var(--color-olive); }
.kit-card-promo { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: -0.25rem; }

/* «Увага!» — отримувач посилки (у «Варіантах пакунків» і в панелі відправки) */
.recipient-notice {
  border: 2px solid var(--color-gold);
  background: var(--color-gold-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-md) 0 0;
}
.recipient-notice-title { font-weight: 700; margin: 0 0 0.4rem; }
.recipient-notice-title .u { color: #c1121f; }
.recipient-notice-org { font-weight: 700; margin: 0 0 0.5rem; }
.recipient-notice-list { list-style: none; margin: 0; padding: 0; }
.recipient-notice-list li { margin: 0.2rem 0; }
.recipient-notice-list a { color: inherit; }
.recipient-notice + .btn { margin-top: var(--space-md); }   /* відступ над кнопкою після нотатки */

/* Промокод — копіювання при натисканні (запит магазину) */
.promo-copy {
  font: inherit; font-weight: 700; color: var(--color-olive);
  background: var(--color-gold-soft); border: 1px dashed var(--color-gold);
  border-radius: 6px; padding: 0.05em 0.45em; cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.promo-copy:hover, .promo-copy:focus-visible { background: rgba(201, 162, 39, 0.22); }
.promo-copy.is-copied { color: var(--color-white); background: var(--color-olive); border-color: var(--color-olive); }

/* Кроки «Як оформити замовлення» */
.kits-howto-lead { font-weight: 700; margin: 0 0 var(--space-sm); }
.kits-howto { margin: 0 0 var(--space-md); padding-left: 1.5rem; }
.kits-howto li { margin: 0.4rem 0; }
.kit-card-body .btn { margin-top: auto; width: 100%; }
.kit-card-photo--ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--color-olive-light);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(74, 75, 50, 0.03) 12px 24px),
    var(--color-off-white);
}
.kit-card-photo--ph svg { opacity: 0.5; }

/* ===== Наш досвід (gallery rail) ===== */
#experience { border-top: 1px solid var(--color-hairline); }   /* separates from kits when shown (both light) */
.exp-intro { max-width: 760px; color: var(--color-text-muted); }
/* Wrapping grid at all widths (no horizontal rail → no keyboard-inaccessible scroll / empty focus stop) */
.exp-gallery {
  list-style: none; margin: var(--space-lg) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-md);
}
.exp-gallery li { margin: 0; }
.exp-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-md); background: var(--color-off-white); box-shadow: var(--shadow-md);
}

/* ===== Cost helper (soft money line under the bar; olive override at .section-olive .cost-helper) ===== */
.cost-helper { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0 0 var(--space-md); }

/* ===== Budget — demoted to a quiet sub-band under a hairline ===== */
.budget-block { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-hairline); }
.budget-h { font-size: var(--fs-md); margin-bottom: var(--space-sm); }
.budget-goal { font-size: var(--fs-base); margin-bottom: var(--space-md); }
.budget-cols { display: grid; gap: var(--space-md); }
.budget-list { margin: 0; }
.budget-note { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }
@media (min-width: 720px) { .budget-cols { grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; } }

/* ===== Support / Form ===== */

/* Approach B — compact 4-up entry row + full-width reveal panel.
   Grid: 1-col mobile → 2-col tablet → 4-col desktop (no orphan possible with exactly 4 items).
   Breakpoints chosen so a 280px card fits comfortably:
     ≥580px  → 2 columns (each ≥260px at min viewport)
     ≥980px  → 4 columns (each ≥210px at container max 1280px with gaps)  */
/* ===== Support: master–detail. Усі варіанти видно ліворуч (список), повний зміст обраного — праворуч. ===== */
.support-tabs { display: block; }
@media (min-width: 880px) {
  .support-tabs {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;   /* список + панель на всю ширину */
    column-gap: var(--space-xl);
    align-items: start;
  }
}

/* Лівий список варіантів — завжди видно всі чотири */
.support-tablist { display: flex; flex-direction: column; gap: var(--space-sm); }
@media (max-width: 879px) { .support-tablist { margin-bottom: var(--space-lg); } }
.support-tab {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-sm); align-items: start;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: var(--color-beige);
  border: 1px solid var(--color-hairline);
  border-left: 4px solid transparent;   /* активний індикатор */
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.support-tab:hover { border-color: var(--color-gold); }
.support-tab:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 2px; }
.support-tab[aria-selected="true"] {
  background: var(--color-white);
  border-color: var(--color-gold);
  border-left-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.support-tab-title { display: block; grid-column: 2; min-width: 0; font-weight: 700; font-size: var(--fs-md); margin-bottom: 0.15rem; }
.support-tab-teaser { display: block; grid-column: 2; min-width: 0; font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.35; }
/* decorative tab icon — col 1, spans both text rows */
.support-tab-icon { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 0.1em; color: var(--color-olive); transition: color var(--transition); }
.support-tab[aria-selected="true"] .support-tab-icon { color: var(--color-gold); }

/* Права панель — повний зміст обраного варіанта (вся доступна ширина) */
.support-panels { min-width: 0; }
.support-panel {
  background: var(--color-beige);
  border: 1px solid var(--color-hairline);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.support-panel[hidden] { display: none; }
.support-panel h3 { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.support-panel p { margin-bottom: var(--space-md); }
@media (prefers-reduced-motion: no-preference) {
  .support-panel:not([hidden]) { animation: panelFade 0.28s ease; }
}
@keyframes panelFade { from { opacity: 0; } to { opacity: 1; } }

/* Інлайн-форма, що розкривається всередині картки (відокремлена тонкою лінією) */
.support-form-region {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-hairline);
  max-width: 560px;
}
.support-form-region[hidden] { display: none; }

/* Partner-card benefit list */
.support-benefits-list { list-style: none; padding: 0; margin: 0 0 var(--space-md); }
.support-benefits-list li { display: flex; gap: var(--space-sm); align-items: flex-start; margin-bottom: 0.3rem; font-size: var(--fs-sm); }
.support-benefits-list li::before { content: '✓'; color: var(--color-gold); font-weight: 700; flex-shrink: 0; }   /* #c9a227 on beige 4.73:1 ✓ */

/* Card note + inline links */
.support-card-note { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.support-inline-link { color: var(--color-olive); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.support-inline-link:hover { color: var(--color-olive-light); }
.support-inline-link:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 2px; border-radius: 2px; }

/* Nova Poshta address callout — white card, OLIVE left rail (gold on white = 2.3:1, fails 1.4.11) */
.shipping-callout { background: var(--color-white); border: 1px solid var(--color-hairline); border-left: 4px solid var(--color-olive); border-radius: var(--radius-sm); padding: var(--space-md); margin: var(--space-md) 0; }
.shipping-callout-row { display: flex; flex-wrap: wrap; gap: 0.3em; margin: 0 0 0.35rem; font-size: var(--fs-sm); }
.shipping-callout-row:last-child { margin-bottom: 0; }
.shipping-callout-label { font-weight: 600; color: var(--color-olive); flex-shrink: 0; }   /* 8.96:1 on white ✓ */
.shipping-callout-phone { color: var(--color-olive); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }   /* ≥24px tap target */
.shipping-callout-phone:hover, .shipping-callout-phone:focus-visible { text-decoration: underline; color: var(--color-olive-light); }
.shipping-callout-phone:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 2px; border-radius: 2px; }

/* Olive buttons need a light focus ring everywhere (olive-on-olive is invisible) */
.btn-olive:focus-visible { outline-color: var(--color-gold); }   /* #c9a227 on olive 4.73:1 ✓ */
.form-reassure { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.form-hint { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: 0.25rem; }
.form-field [aria-invalid="true"] { border-color: #a13030; }
.form-field { margin-bottom: var(--space-md); }
.form-field label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: var(--fs-sm); }
.form-field .optional { color: var(--color-text-muted); font-weight: 400; }
/* Зірочка на обов'язкових полях (авто: будь-яке :required у .form-field). `required` уже озвучує AT — зірочка суто візуальна. */
.form-field:has(:required) > label::after { content: " *"; color: #c1121f; font-weight: 700; }   /* #c1121f на білому ≈ 5.9:1 (AA) */
/* «Передати готові пакунки» — рядки типів наборів (тип школи + кількість + прибрати) */
.ship-kits { display: flex; flex-direction: column; gap: var(--space-sm); }
.ship-kit-row { display: grid; grid-template-columns: 1fr 5rem auto; gap: var(--space-sm); align-items: center; }
.ship-kit-row > select, .ship-kit-row > input { margin: 0; }
.sf-kit-remove {
  width: 2.25rem; height: 2.25rem; flex: none; border: 1px solid var(--color-hairline); border-radius: var(--radius-sm);
  background: var(--color-off-white); color: var(--color-text-muted); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.sf-kit-remove:hover { background: #fff; color: var(--color-olive); }
.ship-kit-add {
  margin-top: var(--space-sm); background: none; border: 0; padding: 0.25rem 0;
  color: var(--color-olive); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-decoration: underline;
}
.ship-kit-add:hover { color: var(--color-olive-deep); }
.ship-kit-add:focus-visible, .sf-kit-remove:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 1px;
  border-color: var(--color-olive);
  box-shadow: 0 0 0 3px var(--color-gold-soft);
}
/* Honeypot: visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-error { color: #a13030; font-size: var(--fs-sm); }
.form-success {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}
.cf-turnstile { margin-bottom: var(--space-md); }   /* all 3 form widgets */

/* ===== Безпека + Звітність (compact trust strip) ===== */
.section-compact { padding: var(--section-pad-compact) 0; }
.section-compact .trust-col h3 { font-size: var(--fs-base); margin-bottom: var(--space-sm); color: var(--color-olive); }
.trust-cols { display: grid; gap: var(--space-lg); font-size: var(--fs-sm); line-height: 1.55; color: var(--color-text-muted); }
.trust-cols p, .trust-cols li { font-size: var(--fs-sm); }
.trust-cols p { margin-bottom: var(--space-sm); }
.trust-cols ul { margin-top: var(--space-sm); }
@media (min-width: 720px) { .trust-cols { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; } }
/* eyebrow-styled heading — overrides the global gold underline */
.trust-eyebrow {
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); font-weight: 700; margin-bottom: var(--space-md); padding-bottom: 0;
}
.trust-eyebrow::after { display: none; }
/* decorative icons in trust-column headings (aria-hidden; heading text carries meaning) */
.trust-col h3 { display: flex; align-items: center; gap: 0.5em; }
.trust-icon { flex: 0 0 auto; color: var(--color-gold); }

/* ===== Kits cross-link to shipment path ===== */
.kits-np-link { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-md); }

/* ===== Final ===== */
.section-final {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--color-olive-deep);                /* base under the overlay (gradient-only fallback) */
  color: var(--color-white);
  text-align: center;
  border-top: 3px solid var(--color-gold-on-dark);   /* 6.07:1 on olive — clean seam */
}
/* decorative background photo (revealed by JS only when CFG.FINAL_PHOTO is set) */
.final-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.65);                          /* dim — this bg is a bright classroom; keep it a calm backdrop */
  z-index: -2;
}
.final-photo[hidden] { display: none; }   /* override the global `img { display:block }` so the empty placeholder is truly removed */
/* Olive scrim, darker on the left (where the desktop text/CTA sit) and lighter on the right so the
   warm photo shows through; left floor keeps white text AA on desktop, the ~mid centre keeps the
   single-column mobile (centred text, image centre-crop) legible too. */
.section-final::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(201, 162, 39, 0.10) 0%, transparent 55%),
    linear-gradient(100deg, rgba(58, 59, 39, 0.84) 0%, rgba(58, 59, 39, 0.55) 100%);
}
.section-final > .container { position: relative; z-index: 0; }
.final-text { font-size: var(--fs-lg); font-weight: 600; max-width: 640px; margin: 0 auto var(--space-md); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 500;
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-olive) 0%, var(--color-olive-light) 100%);
  color: var(--color-white);
  border-bottom: 1px solid var(--color-gold-glow);
}
.modal-header h2 { margin: 0; font-size: var(--fs-md); }
.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); color: var(--color-white); }
.modal-close:focus-visible { outline: 2px solid var(--color-gold-on-dark); outline-offset: 2px; }   /* 6.69:1 on olive header */
.modal-body { padding: var(--space-lg); }
.donate-options { display: grid; gap: var(--space-md); }
.donate-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-off-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--transition), transform var(--transition);
}
.donate-option:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.donate-option:focus-visible { outline: 3px solid var(--color-olive); outline-offset: 2px; }
.donate-option-name { font-weight: 700; font-size: var(--fs-md); }
.donate-option-hint { font-size: var(--fs-sm); color: var(--color-text-muted); }
.donate-cpk { background: var(--color-beige); border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md); font-weight: 600; color: var(--color-olive); margin-bottom: var(--space-md); }
.donate-trust { font-size: var(--fs-sm); color: var(--color-text-muted); margin: var(--space-md) 0 0; }
.donate-impact { font-weight: 600; color: var(--color-olive); margin-bottom: var(--space-md); }

/* ===== Up-funnel trust strip ===== */
.trust-strip { background: var(--color-beige); border-bottom: 1px solid var(--color-hairline); font-size: var(--fs-sm); color: var(--color-text-muted); }
.trust-strip .container {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-2xs) var(--space-md);
  padding-top: var(--space-md); padding-bottom: var(--space-md); text-align: center;
}
.trust-strip span::before { content: '·'; color: var(--color-gold); margin-right: var(--space-md); font-weight: 700; }
.trust-strip span:first-child::before { display: none; }

/* ===== Sticky mobile/tablet donate bar ===== */
.donate-sticky { display: none; }
@media (max-width: 959px) {
  .donate-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; display: block;
    background: var(--color-white); border-top: 1px solid var(--color-hairline);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
    padding: var(--space-sm) var(--space-lg);
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  }
  .donate-sticky .btn { width: 100%; }
  body { padding-bottom: 84px; }   /* reserve space so the footer clears the fixed bar */
}
/* Hide the sticky bar while the donate modal is open */
body:has(#donate-modal:not([hidden])) .donate-sticky { display: none; }

/* ===== Responsive ===== */
/* Hero goes 2-col at tablet (was 960) so 768–959 isn't a stacked giant-image dead-zone.
   720 (not 768) so real 768px tablets — whose CSS viewport is ~753 after the scrollbar — qualify. */
@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text visual" "stats visual";   /* зліва: текст (зверху) + числа (знизу); справа: карусель на всю висоту */
    align-items: center; column-gap: var(--space-2xl); row-gap: var(--space-md);
  }
  .hero-text   { grid-area: text; align-self: end; }
  .key-numbers { grid-area: stats; align-self: start; }
  .hero-visual { grid-area: visual; }
}
/* (support-grid is now an explicit trio: auto-fit 1→3-col, locked 3-col at ≥900px — see the Support/Form block above) */

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Dual-segment progress bar (v2) ===== */
.progress-bar-wrap { position: relative; margin-top: 2.5rem; }   /* місце над баром для мітки «200» (абсолютна, виступає ~27px вгору) — інакше налазить на текст «…пакунків» на мобільному */
/* Track goes dark so both gold fills pass WCAG 1.4.11 non-text contrast (4.73:1 / 7.75:1) */
.progress-bar {
  display: flex; align-items: stretch;
  background: var(--color-olive-deep);   /* override the base off-white track */
  margin-bottom: 0;                      /* legend provides the bottom gap */
}
.progress-seg { height: 100%; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.progress-seg--min {
  background: var(--color-gold);                 /* #c9a227 — earned minimum (4.73:1 on dark track) */
  border-radius: 999px 0 0 999px;
  box-shadow: 0 0 10px var(--color-gold-glow);
}
.progress-seg--stretch {
  background: var(--color-gold-on-dark);         /* #e8d48a — reach further (7.75:1 on dark track) */
  border-radius: 0 999px 999px 0;
  margin-left: -1px;                             /* overlap the 1px seam */
}
/* Threshold marker at 200/568 = 35.21% — gold edge stays visible on both the dark track and the gold fill */
.progress-bar-marker {
  position: absolute; left: 35.21%; top: -4px; bottom: -4px;
  width: 2px; background: var(--color-olive-deep);
  border-left: 1px solid var(--color-gold-on-dark);
  border-radius: 1px; pointer-events: none; z-index: 1;
}
.progress-bar-marker-label {
  position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 700; color: var(--color-gold-on-dark);   /* 6.07:1 on olive */
  white-space: nowrap; letter-spacing: 0.04em;
}
/* Legend: 3-col grid so the middle label centres on the marker without an overlap hack */
.progress-bar-legend {
  display: grid; grid-template-columns: auto 1fr auto;
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.65);
  margin-top: 6px; margin-bottom: var(--space-lg);
}
.progress-bar-legend-min { text-align: center; }
.progress-bar-legend span:last-child { text-align: right; }
.progress-pct-line { font-size: var(--fs-md); margin-bottom: var(--space-sm); }
.progress-status-line { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.78); margin-bottom: var(--space-sm); }   /* ~6.1:1 on olive */
.progress-status-line span { font-weight: 600; color: var(--color-gold-on-dark); }                                    /* 6.07:1 on olive */
/* Per-child budget callout — white card on olive (same idiom as .progress-note) */
.budget-per-child {
  background: var(--color-white); color: var(--color-olive);   /* 8.96:1 on white */
  border: 1px solid var(--color-hairline); border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm); padding: var(--space-sm) var(--space-md);
  margin: 0 0 var(--space-sm); font-size: var(--fs-md);
}

/* ===== Final CTA — extended layout (v2) ===== */
.section-final .final-heading {
  font-size: var(--fs-xl); color: var(--color-white); text-align: center;
  margin-bottom: var(--space-md); padding-bottom: 0;   /* scoped (0,2,0) to beat .section h2 */
}
.section-final .final-heading::after { display: none; }
.section-final .final-text {
  font-size: var(--fs-md); font-weight: 400; line-height: 1.7;
  color: rgba(255, 255, 255, 0.92); max-width: 600px; margin: 0 auto var(--space-xl); text-align: center;
}
/* CTAs in the dark final section need a light focus ring (olive-on-olive is invisible) */
.section-final .btn:focus-visible { outline-color: var(--color-gold-on-dark); }
.final-secondary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.final-secondary-sep { color: rgba(255, 255, 255, 0.35); font-size: var(--fs-sm); line-height: 1; }   /* decorative, aria-hidden */
.final-share-btn {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-family); font-size: var(--fs-sm); font-weight: 500;
  color: rgba(255, 255, 255, 0.90); padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.final-share-btn:hover, .final-share-btn:focus-visible { color: var(--color-gold-on-dark); background: rgba(255, 255, 255, 0.08); }
.final-share-btn:focus-visible { outline: 2px solid var(--color-gold-on-dark); outline-offset: 2px; }
.final-share-btn[data-copied]::after { content: ' — скопійовано'; font-weight: 400; font-style: italic; color: var(--color-gold-on-dark); }
.final-secondary-link {
  font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.90); text-decoration: none;
  border-bottom: 1px solid rgba(232, 212, 138, 0.35);
  transition: color var(--transition), border-color var(--transition);
}
.final-secondary-link:hover, .final-secondary-link:focus-visible { color: var(--color-gold-on-dark); border-bottom-color: var(--color-gold-on-dark); }
.final-secondary-link:focus-visible { outline: 2px solid var(--color-gold-on-dark); outline-offset: 2px; border-radius: 2px; }

/* Visually-hidden, screen-reader-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ===== Block 2 «Підготовлено пакунків» — full-width + page's main metric accent (Stage A) =====
   #progress is .section-olive (white text). Inner content capped at a readable measure and centered,
   so the band reads full-width while the numbers stay legible. Bar geometry untouched (height-only grow). */
#progress .progress-bar-wrap,
#progress .progress-bar-legend,
#progress .progress-stats,
#progress .progress-raised,
#progress .budget-block { max-width: 760px; margin-left: auto; margin-right: auto; }

#progress > .container > h2 { font-size: var(--fs-2xl); text-align: center; margin-left: auto; margin-right: auto; }
#progress > .container > h2::after { left: 50%; transform: translateX(-50%); }   /* recenter the gold tick */

#progress .progress-raised { font-size: var(--fs-lg); text-align: center; font-weight: 500; font-family: var(--font-head); }
#progress .progress-raised strong { color: var(--color-gold-on-dark); }   /* 6.07:1 on olive ✓ */

#progress .progress-bar { height: 32px; }                 /* was 22px — vertical-only; marker uses top/bottom insets so 35.21% is unaffected */
#progress .progress-bar-marker-label { font-size: 0.78rem; }

#progress .progress-stats {
  background: var(--color-olive-deep);                     /* darker inset card on the olive band (white text 11.45:1 ✓) */
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 3px solid var(--color-gold-on-dark);        /* gold seam (7.75:1 on olive-deep ✓, 1.4.11) */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-lg);
  text-align: center;
}
#progress .progress-pct-line { font-size: var(--fs-xl); font-family: var(--font-head); }
#progress .progress-pct-line strong { color: var(--color-gold-on-dark); }   /* 7.75:1 on olive-deep ✓ */
@media (max-width: 520px) { #progress .progress-stats { padding: var(--space-md); } }

/* ===== Hero carousel — reuses the .hero-image idiom (4:3, --radius-lg, --shadow-lg) per slide ===== */
.hero-carousel { position: relative; max-width: 500px; margin-inline: auto; }   /* портретна картка (≈500×667 на десктопі), по центру колонки */
@media (max-width: 719px) { .hero-carousel { max-width: 380px; } }   /* на мобільному вужча, щоб не була завеликою */
.hero-carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-hairline); }
.hero-carousel-track { display: flex; }
.hero-carousel-track > .hero-slide { flex: 0 0 100%; }
.hero-carousel:not(.is-ready) .hero-slide + .hero-slide { display: none; }   /* no-JS / pre-init: show only first */
.hero-carousel.is-ready .hero-carousel-track { transition: transform 0.5s ease; transform: translateX(calc(var(--slide-index, 0) * -100%)); }
.hero-slide.hero-image { border-radius: 0; box-shadow: none; border: 0; }     /* viewport clips/frames instead */
.hero-slide.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }   /* портретний кадр 3:4 = форма фото → 3:4-фото видно повністю (обличчя + набори); вищі фото ріжуться мінімально по центру */
.hero-image-ph--alt  { background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(74,75,50,0.035) 12px 24px); }
.hero-image-ph--alt2 { background: repeating-linear-gradient(90deg,  transparent 0 12px, rgba(74,75,50,0.035) 12px 24px); }
.hero-carousel:not(.is-ready) .hero-carousel-btn,
.hero-carousel:not(.is-ready) .hero-carousel-dots,
.hero-carousel:not(.is-ready) .hero-carousel-toggle { display: none !important; }
.hero-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--color-olive); background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-hairline); border-radius: 999px;
  box-shadow: var(--shadow-md); cursor: pointer; transition: background 0.15s ease;
}
.hero-carousel-btn:hover { background: #fff; }
.hero-carousel-btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.hero-carousel-prev { left: var(--space-sm); }
.hero-carousel-next { right: var(--space-sm); }
.hero-carousel-dots { position: absolute; left: 0; right: 0; bottom: var(--space-sm); display: flex; gap: var(--space-2xs); justify-content: center; }
.hero-carousel-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(74, 75, 50, 0.35);
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.hero-carousel-dot[aria-current="true"] { background: var(--color-gold); transform: scale(1.25); }
.hero-carousel-dot:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.hero-carousel-toggle {
  position: absolute; top: var(--space-sm); right: var(--space-sm);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  color: var(--color-olive); background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-hairline); border-radius: 999px;
  box-shadow: var(--shadow-md); cursor: pointer;
}
.hero-carousel-toggle:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.hero-carousel-toggle svg[hidden] { display: none; }   /* UA [hidden] doesn't reliably hide inline SVG → force it (so only one of pause/play shows) */
@media (prefers-reduced-motion: reduce) { .hero-carousel.is-ready .hero-carousel-track { transition: none; } }

/* ===== Партнери 2025 (подяка) — лого-ряд + плейсхолдери до появи реальних лого ===== */
#partners { text-align: center; }
#partners > .container > h2 { margin-left: auto; margin-right: auto; }
#partners > .container > h2::after { left: 50%; transform: translateX(-50%); }   /* recenter the gold tick */
.partners-intro { max-width: 640px; margin: 0 auto var(--space-lg); }
.partners-logos {
  list-style: none; padding: 0; margin: 0 auto var(--space-md);
  display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl);
  align-items: center; justify-content: center;
}
/* Кожен партнер — у БОКСІ однакового розміру; лого вписується (contain). Так усі мають рівне місце,
   жоден логотип не «більший» за інший (форми лого різні, тому однаковий бокс — найчесніший спосіб). */
.partner-item {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: clamp(150px, 44vw, 190px); height: 92px;
  padding: var(--space-sm);
  background: var(--color-white); border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.partner-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* Логотипи обрізані до самого знака (без зайвих полів у файлі). Висота задається на кожне лого (CFG.h) —
   рівна ВІЗУАЛЬНА вага для різних форм: широкий wordmark нижчий, компактніший знак (Олівець) трохи вищий.
   width:auto + max-width — щоб широке лого не виліз за чип. height нижче — фолбек, якщо CFG.h не задано. */
.partner-item img { height: 26px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.partner-item a:focus-visible { outline: 2px solid var(--color-olive); outline-offset: 3px; border-radius: var(--radius-sm); }
.partner-ph { color: var(--color-text-muted); font-weight: 600; font-size: var(--fs-sm); }   /* текстовий фолбек, якщо лого нема */
.partners-donors { max-width: 640px; margin: 0 auto; color: var(--color-text-muted); font-size: var(--fs-sm); }

/* ===== Final CTA — two-column extended layout =====
   Wider than the old .narrow (800px): full .container, grid capped at 1100px. Mobile-first single
   centered column in DOM order (heading → text → CTA); at >=768px copy LEFT, action panel RIGHT.
   Visual placement is pure grid — DOM/reading/focus order unchanged. No colour changes → AA scrim preserved. */
.final-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.final-grid .final-cta { justify-content: center; margin-top: var(--space-lg); }

@media (min-width: 768px) {
  .final-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);   /* balanced 50/50 so both buttons fit side by side */
    align-items: center; column-gap: var(--space-2xl); row-gap: var(--space-lg); text-align: left;
  }
  .final-copy { text-align: left; }
  .section-final .final-grid .final-heading { text-align: left; margin-bottom: var(--space-md); }
  .section-final .final-grid .final-text { text-align: left; max-width: none; margin: 0; }
  .final-action { justify-self: end; width: 100%; max-width: 520px; }
  .final-grid .final-cta { justify-content: flex-start; margin-top: 0; }   /* buttons side by side (wrap only on very narrow screens) */
  .final-grid .final-secondary-row {
    justify-content: flex-start; margin-top: var(--space-lg); padding-top: var(--space-md);
    border-top: 1px solid rgba(232, 212, 138, 0.22);   /* gold hairline, decorative */
  }
}
@media (min-width: 1024px) {
  .section-final .final-grid .final-heading { font-size: var(--fs-2xl); }
  .final-grid { column-gap: clamp(3.5rem, 6vw, 6rem); }
}
