/* ==========================================================================
   Max & Martin Children's Foundation — design system
   Inspired by charity: water's structure (serif headlines over full-bleed
   imagery, donation picker in the hero, one big number, proof/transparency,
   clear ways to help) but in the foundation's own voice: light, calm, home.
   ========================================================================== */

:root {
  /* Brand — sampled from the 2026 logo (balloons tied to a house) and brand presentation.
     The --navy names are kept for compatibility; they now hold the logo's warm charcoal. */
  --navy: #3a3330;
  --navy-2: #554b46;
  --navy-deep: #2b2623;
  --ink: #3a3330;
  --muted: #6e6660;
  --line: #ece4d7;
  --line-cool: #e9e2d7;
  --paper: #fbf8f2;
  --cream: #f5eee1;
  --cream-2: #efe5d4;
  --sky: #e6f2f9;

  /* Donate red (brief: red button, top right) — a deeper take on the logo's coral */
  --red: #c84a36;
  --red-dark: #ad3c2a;

  /* The seven balloon colours of the logo */
  --yellow: #e5bb49;
  --orange: #eb914f;
  --coral: #e57f67;
  --green: #8bc161;
  --teal: #55c7af;
  --blue: #5ba3d9;
  --violet: #a78bd6;   /* extra header colours, outside the logo's seven balloons */
  --pink: #ee8fb1;
  --purple: #79c1d9;   /* light-blue balloon (the name is historical) */
  /* soft tints for cards */
  --t-coral: #fbe5dd;
  --t-blue: #e1eefa;
  --t-yellow: #faefd2;
  --t-teal: #dcf4ed;
  --t-orange: #fce8d8;
  --t-green: #e8f3dd;
  --t-sky: #e2f2f8;

  --serif: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(58, 51, 48, .05), 0 10px 30px rgba(58, 51, 48, .07);
  --shadow-lg: 0 2px 6px rgba(58, 51, 48, .06), 0 26px 60px rgba(58, 51, 48, .14);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
}

/* ---------- Mriia Display (Мрія): the foundation's own Ukrainian headline font ----------
   A round geometric sans in the spirit of Ukraine NOW / Diia. Used for headlines and big
   numbers on the Ukrainian pages only (it has no Latin). The variable is still called
   --serif for historical reasons; on Ukrainian pages it holds this sans.
   Source: fonts/src/build_mriia.py · specimen: fonts/specimen.html */
@font-face {
  font-family: "Mriia Display";
  src: url("../fonts/MriiaDisplay-Regular.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+2116;
}
html[lang="uk"] { --serif: "Mriia Display", "Montserrat", system-ui, sans-serif; }
html[lang="uk"] [lang="en"] { --serif: "Montserrat", system-ui, sans-serif; }
html[lang="uk"] h1, html[lang="uk"] h2 { letter-spacing: -0.01em; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 3.05rem); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Eyebrow label — charity: water uses small caps labels above headlines */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 12px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: var(--dot, var(--coral)); flex: none;
}
.eyebrow--light { color: #fff; }

/* Placeholder text the team still has to fill in */
.ph {
  background: repeating-linear-gradient(-45deg, #fff4cf 0 8px, #ffefbd 8px 16px);
  color: #6b4d00; border-radius: 6px; padding: .05em .4em; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--cream { background: var(--cream); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #dfe7f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--navy .section-head p { color: #c3cfe4; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split, .split--wide-text { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.45em;
  font: 700 1rem/1 var(--sans); letter-spacing: .01em;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 36, 83, .16); }
.btn:active { transform: translateY(0); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-dark); }
.btn--navy:hover { --bg: var(--navy-2); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: rgba(11, 36, 83, .28); }
.btn--ghost:hover { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn--white { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--white-ghost { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .6); }
.btn--white-ghost:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--lg { min-height: 58px; font-size: 1.06rem; padding: 0 1.8em; }
.btn--sm { min-height: 40px; font-size: .9rem; padding: 0 1.1em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--navy);
}
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-cool); box-shadow: 0 4px 20px rgba(11, 36, 83, .06); }
body.has-overlay-header .site-header { position: fixed; left: 0; right: 0; }
body.has-overlay-header .site-header:not(.is-scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img.mark { height: 50px; width: auto; }
.brand img.word { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: rgba(11, 36, 83, .06); }
.nav a[aria-current="page"] { background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang {
  display: flex; border: 1px solid var(--line-cool); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 800;
}
.lang span, .lang a { padding: 6px 9px; text-decoration: none; color: var(--muted); }
.lang [aria-current="true"] { background: var(--navy); color: #fff; }
.btn-donate { min-height: 44px; padding: 0 1.15em; font-size: .95rem; }
.btn-donate svg { width: 16px; height: 16px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-cool);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }


@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-top: 1px solid var(--line-cool); box-shadow: 0 20px 40px rgba(11, 36, 83, .12);
    padding: 12px var(--gutter) 24px; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { font-size: 1.08rem; padding: 14px 12px; border-radius: 12px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .brand img.word { display: none; }
  .brand img.mark { height: 46px; }
  .lang { display: none; }
  .btn-donate { padding: 0 1em; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: clamp(720px, 112vh, 1080px); display: flex; align-items: flex-start;
  background: #f7f9fb url("../assets/hero-courtyard-fade.webp") center bottom / cover no-repeat;
  padding: calc(var(--header-h) + clamp(20px, 5vh, 56px)) 0 clamp(150px, 20vh, 220px);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  /* keeps the sky calm behind the headline */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,.35) 46%, rgba(255,255,255,0) 60%);
}
.hero-copy { max-width: 980px; text-align: center; margin: 0 auto; }
.hero h1 { margin-bottom: .3em; font-size: clamp(2.3rem, 4.8vw, 4rem); }
.hero .lead { color: #2a3550; max-width: 700px; margin: 0 auto 1.5rem; }
@media (max-width: 900px) { .hero-balloons { display: none; } }
@media (max-width: 700px) {
  .hero { min-height: 0; background-size: 200% auto; background-position: 40% bottom; padding-bottom: 300px; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 55%, rgba(255,255,255,0) 78%); }
}
.hero .btn-row { justify-content: center; }
.hero-balloons { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-balloons span {
  position: absolute; width: 22px; height: 27px; border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%;
  opacity: .75; animation: floaty 9s ease-in-out infinite;
}
.hero-balloons span::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 34px; background: rgba(11,36,83,.25);
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }

/* Donation widget — overlaps the hero bottom, like charity: water's hero picker */
.give-dock { position: relative; z-index: 5; margin-top: clamp(-140px, -14vh, -100px); }
.give-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 20px 36px; align-items: center;
}
.give-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 .2em; }
.give-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.give-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.give-controls input.amount-other { width: 130px; }
@media (max-width: 1100px) { .give-card { grid-template-columns: 1fr; } .give-controls { justify-content: flex-start; } }
@media (max-width: 560px) {
  .give-controls .freq, .give-controls .amounts { width: 100%; }
  .give-controls .freq button { flex: 1; }
  .give-controls .amount { flex: 1; min-width: 0; }
  .give-controls input.amount-other { width: 100%; }
  .give-controls .btn { width: 100%; }
}

.freq {
  display: inline-flex; padding: 4px; background: var(--sky); border-radius: 999px;
}
.freq button {
  border: 0; background: transparent; font: 700 .9rem var(--sans); color: var(--navy);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.freq button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amount {
  min-width: 86px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 2px solid var(--line-cool); background: #fff; color: var(--navy);
  font: 800 1rem var(--sans); cursor: pointer; transition: border-color .15s, background .15s;
}
.amount:hover { border-color: var(--navy); }
.amount[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.amount-other {
  width: 130px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line-cool);
  padding: 0 14px; font: 700 1rem var(--sans); color: var(--navy);
}
.amount-other:focus { border-color: var(--navy); outline: none; }
.give-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- Status notice ---------- */
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
.notice__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  color: var(--orange); border: 1px solid var(--line);
}
.notice__icon svg { width: 20px; height: 20px; }
.notice strong { color: var(--navy); display: block; margin-bottom: 2px; }
.notice p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Tabs ("why" section) ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs-nav button {
  border: 1.5px solid var(--line-cool); background: #fff; border-radius: 999px; padding: 10px 18px;
  font: 800 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); cursor: pointer;
}
.tabs-nav button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.photo {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); position: relative;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--square { aspect-ratio: 1; }
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--navy);
  font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}

/* ---------- Big stat band ---------- */
.stat-band { text-align: center; }
.stat-band .num {
  font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1;
  font-size: clamp(4rem, 12vw, 9rem); letter-spacing: -0.03em; display: block; margin-bottom: .1em;
}
.stat-band .num small { font-size: .45em; vertical-align: .55em; margin-right: .08em; }
.stat-band p.big { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--navy); max-width: 760px; margin: 0 auto .8em; }
.source { font-size: .82rem; color: var(--muted); }
.source a { color: var(--muted); }

/* ---------- Image mosaic ("home, not a hospital") ---------- */
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 260px 260px;
}
.mosaic .photo { border-radius: var(--radius); height: 100%; }
.mosaic .m1 { grid-row: 1 / 3; }
.mosaic .m4 { grid-column: 2 / 4; }
@media (max-width: 820px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 180px 180px; }
  .mosaic .m1 { grid-column: 1 / 3; grid-row: auto; }
  .mosaic .m4 { grid-column: 1 / 3; }
}
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-list .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--navy);
}
.feature-list .ic svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: 1.05rem; margin: 2px 0 2px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Facts / "what we're building" numbers ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.fact { padding: 30px 22px 6px 0; border-right: 1px solid rgba(255,255,255,.14); padding-left: 22px; }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact .n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: #fff; display: block; margin-bottom: 10px; letter-spacing: -0.02em; }
.fact .l { font-size: .97rem; color: #c9d4e8; line-height: 1.45; }
.fact .dot { display: inline-block; width: 9px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 22px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6ecf7; font-size: .92rem; font-weight: 600;
}
.chip i { width: 8px; height: 10px; border-radius: 50%; display: block; }
.disclaimer { font-size: .82rem; color: #98a8c6; margin-top: 22px; }

/* ---------- Story ---------- */
.story-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.35; color: var(--navy);
  border-left: 3px solid var(--coral); padding-left: 22px; margin: 0 0 1.2em;
}
.memorial {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px;
}
.memorial span {
  font-size: .85rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 8px;
}
.memorial i { width: 9px; height: 11px; border-radius: 50%; display: block; }

/* ---------- Progress / timeline ---------- */
.progress-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px);
}
.stage-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #0f6b3a; background: #e3f4e6; border-radius: 999px; padding: 6px 12px; margin-bottom: 14px;
}
.stage-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23a35a; box-shadow: 0 0 0 4px rgba(35,163,90,.18); }
.updated { font-size: .85rem; color: var(--muted); }
.bar { height: 12px; background: var(--sky); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: inherit; }
.bar--pending > span {
  width: 100% !important;
  background: repeating-linear-gradient(-45deg, #e3edf7 0 10px, #d6e4f2 10px 20px);
}
.bar-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.bar-meta strong { color: var(--navy); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps > li {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 28px;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.15rem var(--serif); color: var(--navy); background: #fff; border: 2px solid var(--line-cool); z-index: 1;
}
.steps > li::after {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line-cool);
}
.steps > li:last-child::after { display: none; }
.steps > li.is-current::before { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(11,36,83,.1); }
.steps > li.is-done::before { content: "✓"; background: #e3f4e6; border-color: #bfe3c6; color: #0f6b3a; }
.steps h3 { margin: 12px 0 4px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.steps .now { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: 999px; padding: 3px 9px; vertical-align: 3px; }

/* Horizontal mini-roadmap for the home page */
.roadmap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; margin-top: 30px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line-cool); }
.roadmap li { list-style: none; position: relative; padding-right: 10px; }
.roadmap .pin {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-cool);
  font: 700 .95rem var(--serif); color: var(--navy); position: relative; z-index: 1; margin-bottom: 12px;
}
.roadmap li.is-current .pin { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 6px rgba(11,36,83,.1); }
.roadmap .t { font-size: .88rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.roadmap li.is-current .t::after { content: "Ми тут"; display: block; color: var(--red); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
:lang(en) .roadmap li.is-current .t::after { content: "We are here"; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 10px; }
  .roadmap::before { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .roadmap li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; }
  .roadmap .pin { margin: 0; }
}

/* ---------- Cards (ways to help) ---------- */
.card {
  background: #fff; border: 1px solid var(--line-cool); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__body .link-arrow { margin-top: 8px; }
.card--plain { padding: 26px; }
.card--plain .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--icbg, var(--sky)); color: var(--icfg, var(--navy));
}
.card--plain .ic svg { width: 24px; height: 24px; }
.card--plain p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* ---------- Transparency (charity: water's "proof") ---------- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.proof > div { padding: 30px 28px; border-right: 1px solid var(--line); }
.proof > div:last-child { border-right: 0; }
.proof .k { font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.proof h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-bottom: 8px; }
.proof p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } .proof > div { border-right: 0; border-bottom: 1px solid var(--line); } .proof > div:last-child { border-bottom: 0; } }

.legal-line { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); margin-top: 22px; }
.legal-line b { color: var(--navy); }

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative; color: #fff; text-align: center; isolation: isolate; overflow: hidden;
  padding: clamp(90px, 14vw, 170px) 0;
  background: var(--navy) url("../assets/concept-entrance.jpg") center / cover no-repeat;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,26,61,.55), rgba(7,26,61,.78));
}
.cta-final h2 { color: #fff; max-width: 820px; margin: 0 auto .4em; }
.cta-final p { color: #e4ebf7; max-width: 620px; margin: 0 auto 2rem; font-size: 1.12rem; }
.cta-final .btn-row { justify-content: center; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 240px; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(340px, 46vw, 520px); display: flex; align-items: flex-end;
  padding: 120px 0 clamp(40px, 6vw, 64px);
  /* set the photo per page with an inline style="background-image:url('assets/…')" */
  background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,26,61,.55) 0%, rgba(7,26,61,.15) 65%, rgba(7,26,61,0) 100%),
    linear-gradient(180deg, rgba(7,26,61,.12) 0%, rgba(7,26,61,.42) 42%, rgba(7,26,61,.86) 100%);
}
.page-hero h1, .page-hero .lead, .page-hero .eyebrow, .page-hero .crumbs { text-shadow: 0 1px 18px rgba(7,26,61,.35); }
.page-hero--light h1, .page-hero--light .lead, .page-hero--light .eyebrow, .page-hero--light .crumbs { text-shadow: none; }
.page-hero h1 { color: #fff; max-width: 860px; margin-bottom: .3em; }
.page-hero .lead { color: #eef3fb; max-width: 680px; margin: 0; }
.page-hero .eyebrow { color: #fff; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.crumbs a { color: #fff; }

/* Light variant: cream band, no image */
.page-hero--light { background: var(--cream); color: var(--ink); min-height: 0; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 60px); }
.page-hero--light::before { display: none; }
.page-hero--light h1 { color: var(--navy); }
.page-hero--light .lead { color: var(--ink); }
.page-hero--light .eyebrow { color: var(--navy); }

/* ---------- Sub-nav (in-page anchors) ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line-cool); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 12px; font-size: .9rem; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--coral); }

/* ---------- Principles / values ---------- */
.value { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .b { width: 12px; height: 15px; border-radius: 50%; display: block; margin-bottom: 14px; }
.value h3 { font-size: 1.12rem; margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-cool); }
.avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy);
  font: 600 1.4rem var(--serif); position: relative; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.08rem; margin: 4px 0 2px; }
.person .role { font-size: .85rem; font-weight: 700; color: var(--teal); margin-bottom: 8px; display: block; letter-spacing: .01em; }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Photo placeholder frame */
.ph-frame {
  border: 2px dashed #e3c97a; background: #fffaf0; border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 28px; color: #7a5d12; min-height: 260px;
}
.ph-frame svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .7; }
.ph-frame strong { display: block; color: #6b4d00; }
.ph-frame span { font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-cool); }
.faq details { border-bottom: 1px solid var(--line-cool); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 1.2rem; font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; color: var(--muted); max-width: 720px; }
.faq .a p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 40px); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 700; font-size: .93rem; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-cool);
  font: 500 1rem var(--sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(11,36,83,.1); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line-cool);
  font-weight: 600; font-size: .93rem; cursor: pointer; color: var(--ink); margin: 0;
}
.radios input { accent-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.hint { font-size: .88rem; color: var(--muted); background: var(--sky); border-radius: 10px; padding: 12px 14px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success .ok { width: 60px; height: 60px; border-radius: 50%; background: #e3f4e6; color: #0f6b3a; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ok svg { width: 28px; height: 28px; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; }

/* ---------- Bank details ---------- */
.bank { background: #fff; border: 1px solid var(--line-cool); border-radius: var(--radius-lg); overflow: hidden; }
.bank dl { margin: 0; display: grid; grid-template-columns: 180px 1fr; }
.bank dt, .bank dd { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--line-cool); }
.bank dt { font-size: .85rem; font-weight: 700; color: var(--muted); background: #fbfcfe; }
.bank dd { font-weight: 600; color: var(--navy); word-break: break-word; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bank dd code { font: 700 1rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.copy-mini {
  border: 1px solid var(--line-cool); background: #fff; border-radius: 8px; padding: 5px 9px; font: 700 .75rem var(--sans); color: var(--navy); cursor: pointer; flex: none;
}
.copy-mini:hover { background: var(--sky); }
.bank__foot { padding: 18px 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--cream); }
@media (max-width: 640px) {
  .bank dl { grid-template-columns: 1fr; }
  .bank dt { border-bottom: 0; padding-bottom: 2px; background: #fff; }
}

/* ---------- Donate page picker (larger) ---------- */
.donate-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.4vw, 38px); }
.donate-box .freq { display: flex; width: 100%; }
.donate-box .freq button { flex: 1; padding: 13px 10px; font-size: .98rem; }
.donate-box .amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 10px; }
.donate-box .amount { min-height: 60px; font-size: 1.12rem; }
.donate-box input.amount-other { width: 100%; min-height: 56px; }
.impact-line { margin: 16px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--cream); font-size: .95rem; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.impact-line::before { content: ""; width: 10px; height: 12px; border-radius: 50%; background: var(--yellow); flex: none; margin-top: 6px; }
.goal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-cool); }

/* ---------- Services directory (parents page) ---------- */
.service { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-cool); background: #fff; }
.service .city { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.service h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.service p { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.service .tel { font-weight: 700; color: var(--navy); }
.callout {
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); background: var(--navy); color: #dfe7f5;
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.callout .big { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); color: #fff; line-height: 1; }
.callout h3 { color: #fff; }
.callout p { margin: 0; }
.callout--action { grid-template-columns: 1fr auto; }
@media (max-width: 640px) { .callout, .callout--action { grid-template-columns: 1fr; } }

/* ---------- Docs / reports ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-cool); }
.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line-cool); }
.doc-list .doc { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--navy); }
.doc-list .doc svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.doc-list .status { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--sky); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* ---------- Contacts ---------- */
.contact-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-cool); }
.contact-card .k { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.contact-card a { font-size: 1.12rem; font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footnotes ---------- */
sup.fn a { text-decoration: none; font-weight: 800; color: var(--red); padding: 0 2px; }
.footnotes { border-top: 1px solid var(--line-cool); padding-top: 22px; margin-top: 40px; font-size: .93rem; color: var(--muted); }
.footnotes ol { padding-left: 1.2em; margin: 0; }
.footnotes a.back { text-decoration: none; font-weight: 700; margin-left: 6px; }
:target, section[id], [id].reveal { scroll-margin-top: calc(var(--header-h) + 56px); }
li:target, p:target { background: #fff7dd; border-radius: 8px; transition: background 1s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c6de; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: #e4ebf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.site-footer .socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center;
}
.site-footer .socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8e9fbf; }
.footer-balloons { display: flex; gap: 6px; }
.footer-balloons i { width: 9px; height: 11px; border-radius: 50%; display: block; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
  background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: .95rem; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Balloon colour helpers */
.c-yellow { background: var(--yellow) !important; } .c-orange { background: var(--orange) !important; }
.c-coral { background: var(--coral) !important; } .c-green { background: var(--green) !important; }
.c-teal { background: var(--teal) !important; } .c-blue { background: var(--blue) !important; }
.c-purple { background: var(--purple) !important; }

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

/* ==========================================================================
   v3 — Balloons & playground
   Brand presentation 2026 (new hand-drawn logo, seven balloon colours) +
   ideas from ugs.foundation: floating pill header, highlighted words,
   tinted cards with big icons, numbers with icons, photo strip, a line that
   draws itself down the page (here: a balloon string ending at the house).
   ========================================================================== */
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
html[lang="uk"] h1, html[lang="uk"] h2 { letter-spacing: -0.01em; }
h3 { color: var(--ink); }
.section-head p, .muted { color: var(--muted); }

/* ---- icons (assets/icons/*.svg) ---- */
.ico { display: block; width: 56px; height: 56px; flex: none; }
.ico--sm { width: 40px; height: 40px; }
.ico--xs { width: 26px; height: 26px; }
.ico--lg { width: 84px; height: 84px; }
.ico--xl { width: 110px; height: 110px; }

/* ---- floating pill header with the new logo ---- */
.site-header { height: var(--header-h); background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; box-shadow: none !important; padding-top: 12px; }
.header-inner {
  height: 68px; background: rgba(255, 255, 255, .93); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(58, 51, 48, .05), 0 10px 30px rgba(58, 51, 48, .08);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  padding: 0 10px 0 18px; max-width: calc(var(--wrap) - 16px);
}
.site-header .wrap.header-inner { width: calc(100% - 2 * var(--gutter)); }
.brand img.mark { height: 52px; width: auto; }
.brand .lockup { display: flex; flex-direction: column; font: 800 .68rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.nav a { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--t-yellow); }
.lang { border-color: var(--line); }
.lang [aria-current="true"] { background: var(--ink); }
@media (max-width: 1040px) { .nav { inset: var(--header-h) var(--gutter) auto var(--gutter); border-radius: 24px; border: 0; } }
@media (max-width: 1240px) { .brand .lockup { display: none; } }
@media (max-width: 520px) { .brand .lockup { display: none; } .header-inner { padding: 0 8px 0 12px; } .brand img.mark { height: 46px; } }
.subnav { top: calc(var(--header-h) - 4px); background: var(--paper); }
.page-hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 80px); }

/* ---- highlighted words: a hand-drawn marker stroke in a balloon colour ---- */
.hl {
  --hl: var(--yellow);
  background: no-repeat left bottom .02em / 100% .44em;
  background-image: linear-gradient(transparent, transparent);
  padding: 0 .08em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl--yellow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%23E5BB49' fill-opacity='.62'/%3E%3C/svg%3E"); }
.hl--coral { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%23E57F67' fill-opacity='.5'/%3E%3C/svg%3E"); }
.hl--blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%235BA3D9' fill-opacity='.45'/%3E%3C/svg%3E"); }
.hl--teal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%2355C7AF' fill-opacity='.5'/%3E%3C/svg%3E"); }
.hl--green { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%238BC161' fill-opacity='.55'/%3E%3C/svg%3E"); }
.hl--orange { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 92 7 122 9s52-1 75 3l-2 9c-35-3-75-1-115-1-30 0-55 1-75 2z' fill='%23EB914F' fill-opacity='.5'/%3E%3C/svg%3E"); }
.section--navy .hl, .cta-final .hl, .page-hero:not(.page-hero--light) .hl { color: inherit; }

/* ---- hero: real balloons floating around the headline ---- */
.hero-balloons img { position: absolute; width: var(--w, 46px); height: auto; animation: floaty 9s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(58, 51, 48, .12)); }
.hero-balloons span { display: none; }
.hero .lead { color: var(--ink); }

/* ---- photo strip (rounded cards, slowly moving) ---- */
.photo-strip { overflow: hidden; padding: 6px 0 4px; margin-top: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.photo-strip .track { display: flex; gap: 16px; width: max-content; animation: strip 70s linear infinite; }
.photo-strip:hover .track { animation-play-state: paused; }
.photo-strip img { height: clamp(190px, 22vw, 290px); border-radius: 26px; object-fit: cover; flex: none; }
.photo-strip img.n { width: clamp(150px, 17vw, 230px); }
.photo-strip img.w { width: clamp(280px, 34vw, 470px); }
@keyframes strip { to { transform: translateX(calc(-50% - 8px)); } }

/* ---- notice with the info balloon ---- */
.notice { background: #fff; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 24px; align-items: center; }
.notice__icon { width: auto; height: auto; background: none; border: 0; }
.notice__icon img { width: 54px; height: 54px; }

/* ---- tabs with icons ---- */
.tabs-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; background: #fff; border-color: var(--line); }
.tabs-nav button img { width: 28px; height: 28px; }
.tabs-nav button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); }

/* ---- feature list & small icon cards ---- */
.feature-list li { grid-template-columns: 56px 1fr; }
.feature-list .ic { width: 56px; height: 56px; background: none; border-radius: 0; }
.feature-list .ic img { width: 56px; height: 56px; }
.card--plain { border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.card--plain .ic { width: auto; height: auto; background: none !important; border-radius: 0; margin-bottom: 12px; }
.card--plain .ic img { width: 64px; height: 64px; }
.card { border: 0; box-shadow: var(--shadow); }

/* ---- tinted "get involved" cards (UGS-style) ---- */
.tint-coral { --tint: var(--t-coral); } .tint-blue { --tint: var(--t-blue); } .tint-yellow { --tint: var(--t-yellow); }
.tint-teal { --tint: var(--t-teal); } .tint-orange { --tint: var(--t-orange); } .tint-green { --tint: var(--t-green); } .tint-sky { --tint: var(--t-sky); }
.join-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: var(--tint, var(--t-yellow)); border-radius: var(--radius-lg); padding: 28px 26px 26px; min-height: 300px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.join-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.join-card .ico { width: 92px; height: 92px; margin: -4px 0 10px -6px; transition: transform .35s ease; }
.join-card:hover .ico { transform: translateY(-6px) rotate(-4deg); }
.join-card h3 { font-size: 1.28rem; margin: 0; }
.join-card p { color: var(--ink); opacity: .82; font-size: .98rem; margin: 0 0 14px; }
.join-card .btn { margin-top: auto; align-self: flex-start; }
.btn--soft { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--soft:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }

/* ---- numbers with icons (UGS "values") ---- */
.num-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 26px 26px 24px; box-shadow: var(--shadow); }
.num-card .num { position: relative; display: inline-block; font: 700 clamp(3.2rem, 5vw, 4.2rem)/1 var(--serif); color: var(--c, var(--blue)); margin: 0 0 14px 18px; letter-spacing: -0.02em; }
.num-card .num img { position: absolute; left: -26px; bottom: -8px; width: 52px; height: 52px; }
.num-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.num-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.c-coral-t { --c: var(--coral); } .c-blue-t { --c: var(--blue); } .c-green-t { --c: var(--green); }
.c-teal-t { --c: var(--teal); } .c-orange-t { --c: var(--orange); } .c-yellow-t { --c: #d4a73a; } .c-sky-t { --c: var(--purple); }

/* ---- balloon-shaped step markers ---- */
.roadmap::before { top: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); height: 2px; opacity: .35; }
.roadmap .pin {
  width: 40px; height: 47px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: var(--c, var(--blue)); border: 3px solid var(--ink); color: var(--ink); font: 700 1rem var(--serif);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .45);
}
.roadmap .pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 6px solid var(--ink); border-top: 0; }
.roadmap li:nth-child(7n+1) { --c: var(--coral); } .roadmap li:nth-child(7n+2) { --c: var(--yellow); } .roadmap li:nth-child(7n+3) { --c: var(--blue); }
.roadmap li:nth-child(7n+4) { --c: var(--green); } .roadmap li:nth-child(7n+5) { --c: var(--orange); } .roadmap li:nth-child(7n+6) { --c: var(--teal); } .roadmap li:nth-child(7n+7) { --c: var(--purple); }
.roadmap li.is-current .pin { background: var(--c); border-color: var(--ink); color: var(--ink); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .45), 0 0 0 6px rgba(229, 127, 103, .25); animation: floaty 4s ease-in-out infinite; }
.roadmap li.is-current .t::after { color: var(--red); }
.steps > li::before {
  width: 46px; height: 54px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: var(--c, var(--t-blue)); border: 3px solid var(--ink); color: var(--ink); font: 700 1.1rem var(--serif);
  box-shadow: inset 5px 5px 0 rgba(255, 255, 255, .45);
}
.steps > li:nth-child(7n+1) { --c: var(--coral); } .steps > li:nth-child(7n+2) { --c: var(--yellow); } .steps > li:nth-child(7n+3) { --c: var(--blue); }
.steps > li:nth-child(7n+4) { --c: var(--green); } .steps > li:nth-child(7n+5) { --c: var(--orange); } .steps > li:nth-child(7n+6) { --c: var(--teal); } .steps > li:nth-child(7n+7) { --c: var(--purple); }
.steps > li.is-current::before { background: var(--c); border-color: var(--ink); color: var(--ink); box-shadow: inset 5px 5px 0 rgba(255, 255, 255, .45), 0 0 0 6px rgba(229, 127, 103, .25); }
.steps > li::after { left: 22px; top: 56px; background: repeating-linear-gradient(180deg, var(--ink) 0 5px, transparent 5px 10px); opacity: .35; }
.stage-badge { color: #2f6b1f; background: var(--t-green); }

/* ---- dark "what we're building" band: charcoal with grain, colourful numbers ---- */
.section--navy {
  background: var(--navy-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: #e9e2d8; border-radius: 40px; margin: 0 clamp(8px, 1.6vw, 20px);
}
.section--navy .section-head p, .section--navy .fact .l, .section--navy p { color: #d8d0c5; }
.fact .ico { width: 64px; height: 64px; margin-bottom: 14px; }
.facts .fact:nth-child(1) .n { color: var(--purple); } .facts .fact:nth-child(2) .n { color: var(--yellow); }
.facts .fact:nth-child(3) .n { color: var(--green); } .facts .fact:nth-child(4) .n { color: var(--coral); }
.chip { background: rgba(255, 255, 255, .07); }

/* ---- stat band, story, proof ---- */
.stat-band .num { color: var(--ink); }
.stat-band .num .bl { display: inline-block; width: .42em; vertical-align: .1em; margin-left: .06em; }
.section--sky { background: var(--t-sky); }
.section--cream { background: var(--cream); }
.proof { border: 0; background: transparent; gap: 18px; overflow: visible; }
.proof > div { background: #fff; border: 0 !important; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.proof .ico { width: 64px; height: 64px; margin-bottom: 12px; }
.story-quote { border-left-color: var(--coral); }
.value { border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.person, .service, .contact-card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.contact-card .ico, .service .ico { width: 52px; height: 52px; margin-bottom: 12px; }
.form-card, .progress-card, .donate-box, .bank, .role-card { border-radius: var(--radius-lg); }
.callout { background: var(--navy-deep); border-radius: var(--radius-lg); }
.callout .ico { width: 84px; height: 84px; }
.photo, .card .photo { border-radius: var(--radius-lg); }

/* ---- final CTA balloons ---- */
.cta-final { border-radius: 40px; margin: 0 clamp(8px, 1.6vw, 20px); }
.cta-final .float-b { position: absolute; width: var(--w, 52px); animation: floaty 8s ease-in-out infinite; z-index: 1; }

/* ---- playground scene above the footer (every page) ---- */
.playground { background: var(--paper); padding: clamp(30px, 5vw, 60px) var(--gutter) 0; }
.playground__inner { position: relative; max-width: var(--wrap); margin: 0 auto; }
.playground__scene { display: block; width: 100%; height: auto; }
.playground__house { position: absolute; left: 71.5%; bottom: 5.4%; width: 9.5%; height: auto; }
.site-footer { border-radius: 40px 40px 0 0; }
.footer-brand img.mark-light { height: 92px; width: auto; margin-bottom: 14px; }
.footer-brand .lockup { font: 800 .74rem/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }

/* ---- the balloon string that draws itself down the home page ---- */
main[data-string] { position: relative; }
.string-line { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 1; }
.string-line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.string-line path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; opacity: .85; }
main[data-string] > section > .wrap, main[data-string] > .wrap, main[data-string] > .photo-strip { position: relative; z-index: 2; }
@media (max-width: 1100px) { .string-line { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .photo-strip .track { animation: none; }
  .hero-balloons img, .cta-final .float-b { animation: none; }
}
@media (max-width: 760px) { .cta-final .float-b { display: none; } .section--navy, .cta-final { border-radius: 28px; margin: 0 8px; } }

/* ==========================================================================
   v4 — fixes after review
   ========================================================================== */
/* foundation name always next to the logo (hidden only where the full menu needs the room) */
.brand .lockup { display: flex; }
@media (min-width: 1121px) and (max-width: 1260px) { .brand .lockup { display: none; } }
@media (max-width: 400px) { .brand .lockup { display: none; } }
@media (max-width: 520px) { .brand .lockup { display: flex; font-size: .6rem; } }

/* playground: this is only the anchor where the home page string ends — at the kite */
.playground__house { left: 21.1%; top: 19%; bottom: auto; width: 2px; height: 2px; }

/* step markers: plain round badges in balloon colours (the egg shapes read as Easter eggs) */
.roadmap .pin { width: 42px; height: 42px; border-radius: 50%; box-shadow: none; border-width: 3px; }
.roadmap .pin::after { display: none; }
.roadmap::before { top: 20px; }
.roadmap li.is-current .pin { box-shadow: 0 0 0 6px rgba(229, 127, 103, .25); animation: none; }
.steps > li::before { width: 48px; height: 48px; border-radius: 50%; box-shadow: none; }
.steps > li.is-current::before { box-shadow: 0 0 0 6px rgba(229, 127, 103, .25); }
.steps > li::after { left: 23px; top: 50px; }

/* "concept art" labels on every render */
figure[data-concept]::after, .concept-tag {
  content: attr(data-concept); position: absolute; right: 12px; top: 12px; z-index: 3;
  font: 800 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(43, 38, 35, .72); padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.concept-tag { top: auto; bottom: 16px; right: 16px; }
.hero .concept-tag { bottom: 150px; }
@media (max-width: 700px) { .hero .concept-tag { bottom: 120px; right: 10px; } }

/* founders */
.founder { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.founder .portrait { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tint, var(--t-yellow)); font: 700 2.2rem var(--serif); color: var(--ink); border: 3px solid var(--ink); }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 { font-size: 1.4rem; margin: 2px 0 2px; }
.founder .role { display: block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.founder .rel { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.founder p { margin: 0 0 .7em; font-size: .98rem; }
.founder p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder .portrait { width: 104px; height: 104px; font-size: 1.8rem; } }
.partner-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 28px; margin-top: 18px; }
.partner-row .plogo { font: 800 1.5rem/1 var(--sans); letter-spacing: .14em; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 14px 18px; }
.partner-row .k { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.partner-row p { margin: 0; }
@media (max-width: 640px) { .partner-row { grid-template-columns: 1fr; } .partner-row .plogo { justify-self: start; } }
/* hero balloons only where there is room beside the headline */
@media (max-width: 1320px) { .hero-balloons { display: none; } }

/* v5 — the real logo (horizontal lockup from the brandbook) in the header and footer */
.brand img.logo { height: 54px; width: auto; display: block; }
@media (max-width: 520px) { .brand img.logo { height: 46px; } }
.footer-brand img.logo-footer { height: 84px; width: auto; margin: 0 0 16px -4px; }

/* v6 — Mriia Display 3: the wordmark's heavy round style, now with Latin, used for headings in both languages */
:root, html[lang="uk"], html[lang="uk"] [lang="en"] { --serif: "Mriia Display", "Montserrat", system-ui, sans-serif; }
h1, h2, html[lang="uk"] h1, html[lang="uk"] h2 { font-weight: 400; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); }

/* v7 — headings in Outfit Bold, the typeface of the "Max & Martin" wordmark.
   Outfit has no Cyrillic, so Ukrainian letters come from Мрія (drawn in the same style);
   digits and punctuation come from Outfit in both languages. */
:root, html[lang="uk"], html[lang="uk"] [lang="en"] { --serif: "Outfit", "Mriia Display", system-ui, sans-serif; }
h1, h2, html[lang="uk"] h1, html[lang="uk"] h2 { font-weight: 700; letter-spacing: -0.01em; }
.stat-band .num, .fact .n, .num-card .num, .callout .big, .founder .portrait { font-weight: 700; }

/* v8 — Outfit MM: Outfit Bold (the wordmark's typeface) with Ukrainian built on it.
   One font for headings in both languages. Source: fonts/src/build_outfit_mm.py */
@font-face {
  font-family: "Outfit MM";
  src: url("../fonts/OutfitMM-Bold.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root, html[lang="uk"], html[lang="uk"] [lang="en"] { --serif: "Outfit MM", "Outfit", system-ui, sans-serif; }

/* v9 — no more egg-shaped dots: section labels have no marker, small markers are plain circles */
.eyebrow::before { display: none; }
.eyebrow { gap: 0; }
.memorial i, .chip i, .fact .dot, .footer-balloons i, .value .b { width: 10px; height: 10px; border-radius: 50%; }
.impact-line::before { width: 10px; height: 10px; border-radius: 50%; }

/* v10 — footer logo follows the language: English lockup on EN pages, Ukrainian name on UA pages */
.logo-footer-uk { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.logo-footer-uk img { height: 84px; width: auto; margin: 0; }
.logo-footer-uk span { display: flex; flex-direction: column; font: 700 1.55rem/1.08 var(--serif); color: #fff; letter-spacing: -0.01em; }

/* v11 — header shows the mark only (house on balloons); the name lives in the footer logo */
.brand img.logo { height: 58px; }
@media (max-width: 520px) { .brand img.logo { height: 50px; } }

/* v12 — AIMM logo tile; tighter founder text */
.partner-row .plogo-img { height: 76px; width: auto; border-radius: 14px; display: block; }
.founder p strong { color: var(--ink); }
/* founder cards: one per row until there is room for two readable columns */
@media (max-width: 1080px) { #team .grid-2 { grid-template-columns: 1fr; } }
.founder { grid-template-columns: 104px 1fr; gap: 22px; }
.founder .portrait { width: 104px; height: 104px; font-size: 1.7rem; }

/* v13 — founder portraits; two separate photo places for Max and Martin */
.founder .portrait { background: var(--cream); border-width: 3px; }
.memorial-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.memorial-photos .ph-frame { min-height: 0; aspect-ratio: 4 / 5; padding: 18px; }

/* v14 — icons on dark sections sit on a light round badge, so their charcoal outline stays visible */
.section--navy .fact .ico { box-sizing: border-box; width: 96px; min-width: 96px; max-width: none; height: 96px; padding: 24px; background: #fff8ec; border-radius: 50%; object-fit: contain; }
@media (max-width: 760px) { .section--navy .fact .ico { width: 76px; min-width: 76px; height: 76px; padding: 17px; } }

/* ==========================================================================
   v15 — phones and tablets
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
a, button, label, summary, [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* iPad portrait and other mid-size screens: keep text and picture side by side */
@media (min-width: 700px) and (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr 1fr; gap: 30px; }
  .split .form-card, .split .donate-box { padding: 26px; }
  .split .form .row { grid-template-columns: 1fr; }
  #bank .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .bank dl { grid-template-columns: 1fr; } .bank dt { border-bottom: 0; padding-bottom: 2px; background: #fff; } .bank dd { min-width: 0; } }

/* iOS zooms the page when a focused field has text smaller than 16px */
@media (max-width: 1100px) { input, select, textarea { font-size: 16px !important; } }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .founder { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .partner-row { padding: 20px 22px; }
  .memorial-photos { gap: 10px; }
}
@supports (height: 100dvh) { .nav { max-height: calc(100dvh - var(--header-h) - 12px); } }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
/* the language switch stays in the header on phones (the header only carries the house mark now) */
@media (max-width: 520px) {
  .lang { display: inline-flex; font-size: .74rem; }
  .lang span, .lang a { padding: 6px 7px; }
  .header-actions { gap: 7px; }
  .btn-donate { padding: 0 .9em; }
}
@media (max-width: 380px) { .btn-donate svg { display: none; } }
/* facts: two equal columns on phones, with the big numbers sized to fit */
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .fact { padding-right: 0; }
  .fact .n { font-size: clamp(1.9rem, 9.5vw, 2.6rem); white-space: nowrap; }
}

/* v16 — shorter home page */
.status-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 760px; font-size: .95rem; color: var(--muted); text-align: left; }
.status-line img { width: 30px; height: 30px; flex: none; }
.status-line strong { color: var(--ink); }
.status-line a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.legal-line--center { justify-content: center; margin-top: 34px; }
.legal-line a { color: var(--ink); font-weight: 700; }

/* short menu: four links in the bar; the other pages appear in the phone menu and the footer */
@media (min-width: 1041px) { .nav .nav-more { display: none; } .nav ul { gap: 6px; } .nav a { padding: 9px 15px; font-size: .97rem; } }

/* story section: the picture column fills the height of the text beside it, so no gap is left under it */
.story-side { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .story-side { align-self: stretch; grid-template-rows: auto 1fr; }
  .story-side .photo { aspect-ratio: auto; min-height: 280px; height: 100%; }
}

/* ==========================================================================
   v17 — illustration instead of stock photography; unfinished content hidden
   ========================================================================== */
[hidden] { display: none !important; }

/* an illustrated panel in place of a photograph */
.illo { margin: 0; border-radius: var(--radius-lg); background: var(--tint, var(--t-yellow)); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: clamp(12px, 2.4vw, 26px) clamp(12px, 2.4vw, 26px) 0; overflow: hidden; }
.illo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.illo--tall { aspect-ratio: 5 / 4; }

/* page headers: one flat balloon colour and a drawing */
.page-hero--color { background: var(--hero, var(--yellow)); color: var(--ink); min-height: clamp(300px, 32vw, 400px); padding-bottom: clamp(34px, 5vw, 56px); }
.page-hero--color::before { display: none; }
.page-hero--color h1, .page-hero--color .lead, .page-hero--color .eyebrow, .page-hero--color .crumbs, .page-hero--color .crumbs a { color: var(--ink); text-shadow: none; }
.page-hero--color .wrap { position: relative; }
.page-hero--color h1 { max-width: min(640px, 58%); }
.page-hero--color .lead { max-width: min(560px, 56%); }
.page-hero__art { position: absolute; right: var(--gutter); bottom: calc(-1 * clamp(34px, 5vw, 56px) + 6px); width: min(38%, 440px); height: auto; pointer-events: none; }
/* side by side down to small tablets; stacked and centred only on phones */
@media (max-width: 900px) { .page-hero--color h1 { max-width: 56%; } .page-hero--color .lead { max-width: 54%; } .page-hero__art { width: min(40%, 360px); } }
@media (max-width: 600px) {
  .page-hero--color h1, .page-hero--color .lead { max-width: none; }
  .page-hero__art { position: static; display: block; width: min(88%, 330px); margin: 24px auto calc(-1 * clamp(34px, 5vw, 56px) + 4px); }
}
/* long button labels wrap inside narrow cards instead of spilling out */
.join-card .btn, .card .btn, .contact-card .btn { max-width: 100%; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; line-height: 1.25; }

/* ==========================================================================
   v18 — small delights
   ========================================================================== */
/* balloons released when a form is sent */
.fly-balloon { position: fixed; z-index: 80; height: auto; pointer-events: none; }

/* paper plane on send buttons */
.btn-plane { width: 18px; height: 18px; flex: none; transition: transform .25s ease; }
.btn:hover .btn-plane { transform: translate(3px, -3px) rotate(-8deg); }
.btn.is-sending { pointer-events: none; }
.btn.is-sending .btn-plane { animation: plane-off .52s ease-in forwards; }
@keyframes plane-off { 30% { transform: translate(-4px, 3px) rotate(6deg); } 100% { transform: translate(150px, -90px) rotate(-22deg) scale(.55); opacity: 0; } }

/* progress under a form: a short count and one balloon per required field, coloured in as each is completed */
.form-balloons { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px -2px; }
.form-balloons .fb-text { font-size: .82rem; font-weight: 600; color: var(--muted); }
.form-balloons.is-complete .fb-text { color: var(--ink); }
.form-balloons .fb-row { display: flex; gap: 5px; }
.form-balloons img { width: 17px; height: 22px; object-fit: cover; object-position: center top; filter: grayscale(1) brightness(1.25); opacity: .3; transform: translateY(3px) scale(.88); transform-origin: 50% 100%; transition: filter .3s, opacity .3s, transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.form-balloons img.is-on { filter: none; opacity: 1; transform: none; }

/* thank-you panel: a heart balloon instead of a tick */
.form-success .ok.ok--balloon { width: auto; height: auto; background: none; border-radius: 0; }
.form-success .ok.ok--balloon img { width: 84px; height: 84px; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* the balloon that carries you back to the top */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(58, 51, 48, .1), 0 10px 26px rgba(58, 51, 48, .16); cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top img { display: block; width: 22px; height: 31px; object-fit: cover; object-position: center top; margin-top: 3px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top.is-flying { opacity: 0; pointer-events: none; transition: transform 1.1s cubic-bezier(.5, 0, .8, .4), opacity .35s .75s; transform: translateY(-110vh); }
@media (max-width: 640px) { .to-top { width: 46px; height: 46px; } .to-top img { width: 19px; height: 27px; } }

@media (prefers-reduced-motion: reduce) {
  .form-success .ok.ok--balloon img { animation: none; }
  .form-balloons img { transition: none; }
  .to-top:hover { transform: none; }
}

/* v19 — donating in as few clicks as possible: one button on the home page and on the donate page */
.give-card--direct .give-controls { gap: 14px 18px; }
.give-progress { display: grid; gap: 6px; min-width: 210px; font-size: .88rem; color: var(--muted); }
.give-progress .bar { margin: 0; height: 9px; }
.give-progress strong { color: var(--ink); }
.give-other { font-size: .9rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .give-card--direct .give-progress { width: 100%; } .give-card--direct .give-other { width: 100%; text-align: center; } }

/* the two memorial photos share the row equally, whatever the pictures' own sizes */
.memorial-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.memorial-photos .photo { min-width: 0; width: 100%; }
/* portraits of Max and Martin: always 4:5 so both heads sit identically; the name goes under the picture */
.memorial-photo { margin: 0; min-width: 0; }
.memorial-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.memorial-photo figcaption { margin-top: 10px; text-align: center; font: 700 1.05rem/1.2 var(--serif); color: var(--ink); }

/* v20 — new concept pictures: room, entrance and floor plan side by side on the hospice page */
.concept-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.concept-row .photo { aspect-ratio: 4 / 3; min-width: 0; }
@media (max-width: 900px) { .concept-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .concept-row .photo:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .concept-row { grid-template-columns: 1fr; } .concept-row .photo:last-child { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   v21 — donate page: one fundraiser card and a list of ways to give
   ========================================================================== */
.give-head { max-width: 720px; margin-bottom: clamp(20px, 3vw, 34px); }
.give-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .give-layout { grid-template-columns: 1fr; } }

.fund-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.fund-card__img { margin: 0; position: relative; aspect-ratio: 16 / 9; }
.fund-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fund-card__body { padding: clamp(18px, 3vw, 28px); }
.fund-card__tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.fund-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 16px; }
.fund-card .bar { margin: 0 0 12px; height: 12px; }
.fund-nums { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.fund-nums span { display: block; font-size: .86rem; color: var(--muted); }
.fund-nums strong { display: block; font: 700 clamp(1.3rem, 3.4vw, 1.7rem)/1.2 var(--serif); color: var(--ink); white-space: nowrap; }
.fund-nums div:last-child { text-align: right; }
.fund-meta { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }

.ways { display: grid; gap: 12px; }
.ways__title { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 0 0 4px; }
.way { background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.way > summary, a.way { display: flex; align-items: center; gap: 14px; padding: 15px 18px; min-height: 72px; cursor: pointer; list-style: none; text-decoration: none; color: var(--ink); }
.way > summary::-webkit-details-marker { display: none; }
.way .ico { width: 44px; height: 44px; flex: none; }
.way b { display: block; font-size: 1.05rem; line-height: 1.25; }
.way small { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.way > summary::after, a.way::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; opacity: .6; }
a.way::after { transform: rotate(-45deg); }
.way[open] > summary::after { transform: rotate(-135deg); }
.way__body { padding: 0 18px 18px; }
.way__body > p { margin: 0 0 12px; }
.way .bank { box-shadow: none; border: 1px solid var(--line); }
.way .bank dl { grid-template-columns: 1fr; }
.way .bank dt { border-bottom: 0; padding-bottom: 2px; background: #fff; }
.way .bank dd { min-width: 0; }
@media (hover: hover) { .way > summary:hover b, a.way:hover b { text-decoration: underline; } }

/* v22 — bank details right under the donate button on the home page (partner companies pay by transfer) */
.give-bank { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2px; }
.give-bank__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.give-bank__head strong { font: 700 1.1rem/1.2 var(--serif); color: var(--ink); }
.give-bank__head span { font-size: .88rem; color: var(--muted); }
.give-bank__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; }
.give-bank__list > div { min-width: 0; }
.give-bank__list .wide { grid-column: 1 / -1; }
.give-bank__list dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.give-bank__list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.give-bank__list dd > span { min-width: 0; }
.give-bank__list code { font: 700 .98rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .01em; }
.give-bank__list .tr { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); }
.give-bank__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
@media (max-width: 640px) { .give-bank__list { grid-template-columns: 1fr; } .give-bank__foot .btn { width: 100%; } .give-bank__foot .give-other { width: 100%; text-align: center; } }

/* v23 — the foundation's name beside the mark in the header, on every screen size */
.brand { gap: 11px; min-width: 0; }
.brand .lockup { display: flex !important; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; text-transform: none; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.brand .lockup b { font: 700 1.08rem/1.15 var(--serif); }
.brand .lockup small { font: 600 .74rem/1.2 var(--sans); color: var(--muted); }
.nav .nav-lang { display: none; }
@media (max-width: 1040px) {
  .site-header .brand { flex: 0 1 auto; }
}
@media (max-width: 520px) {
  .header-actions > .lang { display: none; }           /* moved into the menu */
  .nav .nav-lang { display: block; padding: 12px 12px 4px; }
  .nav .nav-lang .lang { display: inline-flex; font-size: .9rem; }
  .nav .nav-lang .lang span, .nav .nav-lang .lang a { padding: 9px 16px; }
  .brand { gap: 8px; }
  .brand .lockup b { font-size: clamp(.78rem, 3.5vw, .92rem); }
  .brand .lockup small { font-size: clamp(.58rem, 2.6vw, .66rem); }
}
/* phones: a slightly smaller donate button and menu button so the name fits beside the mark */
@media (max-width: 520px) {
  .header-actions { gap: 6px; }
  .btn-donate { font-size: .88rem; padding: 0 .85em; min-height: 42px; }
  .menu-toggle { width: 42px; height: 42px; }
  .brand .lockup b { font-size: clamp(.72rem, 3.25vw, .92rem); }
}
@media (max-width: 350px) {                 /* very narrow phones: the name alone, on two lines */
  .brand .lockup { white-space: normal; }
  .brand .lockup small { display: none; }
  .brand .lockup b { line-height: 1.1; }
}

/* v24 — the name follows the real logo: a handwritten line and a bold line of the same size.
   Ukrainian: «Благодійний фонд» handwritten above «Макса та Мартіна»; English: "Max & Martin" above "Children's Foundation". */
:root { --hand: "Pangolin", "Comic Sans MS", cursive; }
.brand .lockup { gap: 0; }
.brand .lockup b { font: 700 1.1rem/1.15 var(--serif); }
.brand .lockup small { font: 400 1.12rem/1.15 var(--hand); color: var(--ink); letter-spacing: .01em; }
@media (max-width: 520px) {
  .brand .lockup b { font-size: clamp(.72rem, 3.25vw, .92rem); }
  .brand .lockup small { font-size: clamp(.74rem, 3.3vw, .94rem); }
}
.logo-footer-uk span { font-size: 1.5rem; line-height: 1.12; }
.logo-footer-uk i { font: 400 1.5rem/1.12 var(--hand); font-style: normal; letter-spacing: .01em; }

/* v25 — less text on screen: lists that fold, principles as one short list */
.dir { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 4px 24px; max-width: 880px; }
.dir details + details { border-top: 1px solid var(--line); }
.dir summary { list-style: none; cursor: pointer; position: relative; padding: 17px 40px 17px 0; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary b { display: block; font-size: 1.08rem; line-height: 1.25; color: var(--ink); }
.dir summary small { display: block; font-size: .9rem; color: var(--muted); margin-top: 3px; }
.dir summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; opacity: .6; }
.dir details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.dir .a { padding: 0 0 18px; }
.dir .svc + .svc { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.dir .svc h3 { font-size: 1.02rem; margin: 0 0 4px; }
.dir .svc p { font-size: .95rem; color: var(--muted); margin: 0 0 .45em; }
.dir .svc .tel { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.dir .svc .tel a { color: inherit; }
@media (hover: hover) { .dir summary:hover b { text-decoration: underline; } }
@media (max-width: 560px) { .dir { padding: 2px 18px; } }

.more { margin-top: clamp(24px, 4vw, 40px); }
.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; color: var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; opacity: .6; }
.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.more > summary .when-open, .more[open] > summary .when-closed { display: none; }
.more[open] > summary .when-open { display: inline; }
.more .steps { margin-top: 26px; max-width: 720px; }

.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 48px; }
.plist li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; }
.plist img { width: 48px; height: 48px; object-fit: contain; }
.plist p { margin: 0; color: var(--muted); }
.plist b { display: block; color: var(--ink); font-size: 1.08rem; }
@media (max-width: 760px) { .plist { grid-template-columns: 1fr; gap: 16px; } }

.gov-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 28px; margin-top: 18px; scroll-margin-top: 140px; }
.gov-row p { margin: 0; flex: 1 1 360px; }
.gov-row small { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.gov-row .btn-row { margin: 0; }

/* v26 — home donate card: bank details as a tidy tinted panel of fields */
.give-progress .bar { height: 11px; }
.give-progress strong { font: 700 1.2rem/1 var(--serif); }
.give-bank { border-top: 0; margin-top: 4px; padding: clamp(16px, 2.4vw, 22px); background: var(--cream); border-radius: 22px; }
.give-bank__head { justify-content: space-between; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.give-bank__head strong { display: block; font-size: 1.15rem; }
.give-bank__head span { display: block; margin-top: 2px; }
.give-bank__head .btn { flex: none; }
.give-bank__list { gap: 10px; }
.give-bank__list > div { background: #fff; border-radius: 16px; padding: 11px 16px 12px; display: flex; flex-direction: column; justify-content: center; }
.give-bank__list dt { font-size: .7rem; letter-spacing: .1em; margin-bottom: 3px; }
.give-bank__list dd { flex-wrap: nowrap; justify-content: space-between; gap: 12px; overflow-wrap: normal; line-height: 1.35; }
.give-bank__list dd > span { overflow-wrap: anywhere; }
.give-bank__list code { font-size: 1.02rem; }
.give-bank__list .is-iban { padding-top: 13px; padding-bottom: 14px; }
.give-bank__list .is-iban code { display: flex; flex-wrap: wrap; gap: 0 1ch; font-size: clamp(1.05rem, 2.5vw, 1.3rem); letter-spacing: .02em; }
.give-bank__list .is-iban code span { white-space: nowrap; }
.copy-ic { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sky); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.copy-ic:hover { background: #d3e8f4; }
.copy-ic:active { transform: scale(.94); }
.give-bank__foot { margin-top: 14px; }
@media (min-width: 900px) {
  .give-bank__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .give-bank__list .is-iban { grid-column: 1 / 3; grid-row: 1; }
  .give-bank__list > div:nth-child(3) { grid-column: 3; grid-row: 1; }
  .give-bank__list > div:nth-child(2) { grid-column: 1; grid-row: 2; }
}
@media (max-width: 640px) {
  .give-bank__head .btn { width: 100%; }
  .give-bank__foot .give-other { text-align: left; }
}
.give-bank__list dd > code { min-width: 0; }
@media (max-width: 420px) { .give-bank__list .is-iban code { font-size: .95rem; letter-spacing: 0; } .give-bank__list > div { padding-left: 14px; padding-right: 12px; } }
@media (max-width: 350px) { .give-bank__list .is-iban code span { white-space: normal; } }
.give-bank__foot { gap: 2px 8px; font-size: .9rem; }
.give-bank__foot > span { color: var(--muted); font-weight: 600; }
.give-bank__foot .give-other { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .give-bank__foot .give-other { width: auto; } }

/* v27 — photo of Zhenia and Yulia under the boys' portraits on About */
.memorial-photo--wide img { height: auto; aspect-ratio: 3 / 2; object-position: 50% 30%; }
@media (min-width: 700px) {
  .story-side:has(.memorial-photo--wide) { grid-template-rows: auto auto; align-content: start; }
}
