/* ==========================================================================
   Chance Plus International Global Foundation — design system
   White + red, built around the hexagon "C+" mark.
   ========================================================================== */

@font-face { font-family: "Nexa"; src: url("../fonts/nexa-300.woff2?v=2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-400.woff2?v=2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-700.woff2?v=2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-800.woff2?v=2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nexa"; src: url("../fonts/nexa-900.woff2?v=2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --red: #C8102E;
  --red-600: #A50D26;
  --red-700: #7F0A1D;
  --red-50: #FDF1F2;
  --red-100: #FBE1E4;
  --ink: #16110F;
  --ink-2: #4A4340;
  --ink-3: #7B726E;
  --line: #ECE6E3;
  --paper: #FFFFFF;
  --paper-2: #FAF7F5;
  --sun: #FFC93C;          /* small accent, used sparingly (Kids) */
  --sky: #2F6BFF;          /* Ukrainian blue, used only in flag accents */

  --font-display: "Nexa", "Geologica", system-ui, sans-serif;
  --font-body: "Nexa", "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.47'%3E%3Cpath d='M41.50 4.91Q50.00 0.00 58.50 4.91L91.50 23.96Q100.00 28.87 100.00 38.68L100.00 76.79Q100.00 86.60 91.50 91.51L58.50 110.56Q50.00 115.47 41.50 110.56L8.50 91.51Q0 86.60 0 76.79L0 38.68Q0 28.87 8.50 23.96Z'/%3E%3C/svg%3E");

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(22,17,15,.06), 0 2px 8px rgba(22,17,15,.04);
  --shadow: 0 10px 30px -10px rgba(22,17,15,.18);
  --shadow-red: 0 18px 40px -14px rgba(200,16,46,.55);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

/* ---------- bilingual content ---------- */
html[data-lang="en"] [lang="uk"]:not(html),
html[data-lang="uk"] [lang="en"]:not(html) { display: none !important; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--red { background: var(--red); color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; }
h4, .h4 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 62ch; }
.section--red .lead, .section--ink .lead { color: rgba(255,255,255,.82); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--red .eyebrow, .section--ink .eyebrow { color: #fff; }
.text-red { color: var(--red); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head--split > div { max-width: 680px; }

/* highlighted word with hand-drawn underline */
.mark { position: relative; white-space: nowrap; color: var(--red); }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 50 4, 120 4, 198 12' stroke='%23C8102E' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .9; transform-origin: left; animation: draw 1s .5s var(--ease) both;
}
.section--red .mark { color: #fff; }
.section--red .mark::after { filter: brightness(0) invert(1); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { --bg: var(--red); box-shadow: var(--shadow-red); }
.btn--red:hover { --bg: var(--red-600); }
.btn--white { --bg: #fff; --fg: var(--red); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--red .btn--ghost, .page-hero--red .btn--ghost, .hero-kids .btn--ghost, .cta .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.45); }
.section--red .btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .heart { animation: beat 1.6s infinite; }
@keyframes beat { 0%,60%,100% { transform: scale(1); } 30% { transform: scale(1.22); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red); }
.link-arrow svg { width: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; align-items: center; }
.topbar__info span { display: inline-flex; gap: 8px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--red); }
.flag { display: inline-block; width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(var(--sky) 50%, var(--sun) 50%); }
@media (max-width: 760px) { .topbar__addr { display: none !important; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark img, .brand__mark svg { width: auto; height: 27px; }
.brand__name { display: flex; flex-direction: column; color: var(--ink); line-height: 1; }
.brand__word svg { display: block; height: 21px; width: auto; }
.brand__name small { margin-top: 6px !important; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; white-space: nowrap; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transform: translateX(-50%); }
.nav .nav__kids { color: var(--red); background: var(--red-50); }
.nav .nav__kids:hover { background: var(--red-100); color: var(--red-600); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%,-50%); transition: .3s var(--ease); content: ""; }
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after { transform: translate(-50%, 5px); }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translate(-50%, -1px) rotate(45deg); }
.menu-open .burger span::after { transform: translate(-50%, -1px) rotate(-45deg); }

/* compact (burger) header: set by JS whenever the full menu doesn't fit — e.g. longer Ukrainian labels */
  .nav-compact .nav { position: fixed; inset: 116px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 40px; gap: 4px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease); }
  .nav-compact .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-compact .nav a { font-family: var(--font-display); font-size: 24px; font-weight: 500; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-compact .nav a:hover { background: none; }
  .nav-compact .nav .nav__kids { background: none; }
  .nav-compact .nav a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%); width: 8px; height: 8px; }
  .nav-compact .burger { display: block; }
  .nav-compact .header__donate { display: none; }
  .nav-compact .menu-open { overflow: hidden; }

@media (max-width: 760px) { .nav-compact .nav { inset: 76px 0 0 0; } .topbar { display: none; } }
@media (max-width: 420px) { .brand__name small { display: none; } .brand__name { font-size: 17px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before { /* soft red glow */
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200,16,46,.10), transparent); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--red-50); color: var(--red-700); font-weight: 700; font-size: 14px; margin-bottom: 24px; }
.hero__badge b { background: var(--red); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: .06em; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 36px; color: var(--ink-3); font-size: 14.5px; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* hex photo collage */
.hexes { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; margin-left: auto; width: 100%; }
.hex {
  position: absolute; width: 50%; aspect-ratio: 1 / 1.1547;
  -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat;
  overflow: hidden; background: var(--red-100);
  transition: transform .6s var(--ease);
}
.hex img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hex:hover img { transform: scale(1.08); }
.hex--1 { left: 25%; top: 0; }
.hex--2 { left: 0; top: 37.5%; }
.hex--3 { left: 50.5%; top: 37.5%; }
.hex--solid { background: var(--red); display: grid; place-items: center; color: #fff; }
.hex--solid svg { width: auto; height: 42%; }
.hex--4 { left: 25%; top: 75%; width: 28%; left: 61%; }
.float-card {
  position: absolute; z-index: 2; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.3; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card--a { left: -6%; top: 14%; }
.float-card--b { right: -2%; bottom: 6%; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) { .hexes { margin: 10px auto 0; max-width: 460px; } .float-card--a { left: 0; } }

/* page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); position: relative; overflow: hidden; }
.page-hero--red { background: var(--red); color: #fff; }
.page-hero--red .lead { color: rgba(255,255,255,.85); }
.page-hero--red .eyebrow { color: #fff; }
.page-hero h1 { max-width: 16ch; }
.page-hero .bg-mark { position: absolute; z-index: 0; right: -80px; top: 50%; transform: translateY(-50%) rotate(-10deg); width: min(520px, 60vw); color: #fff; opacity: .08; pointer-events: none; }
.page-hero:not(.page-hero--red) .bg-mark { color: var(--red-50); opacity: 1; }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 22px; opacity: .92; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- marquee (partners) ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: #fff; }
.marquee__label { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink-2); white-space: nowrap; }
.marquee__item::before { content: ""; width: 10px; height: 10px; width: 10px; height: 11.5px; background: var(--red); -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--red); color: #fff; }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid rgba(255,255,255,.18); }
.stat:last-child { border-right: 0; }
.stat__num { font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; }
.stat__label { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); } }

/* ---------- cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--ink-2); }
.card__icon { width: 56px; height: 64.66px; display: grid; place-items: center; color: #fff; background: var(--red); margin-bottom: 22px; -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; transition: background .3s, transform .4s var(--ease); }
.card:hover .card__icon { background: var(--red-600); transform: rotate(-6deg); }
.card__icon svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 14px; color: var(--ink-3); }

/* bento programs */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 18px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; isolation: isolate; color: #fff; background: var(--ink); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,17,15,0) 25%, rgba(22,17,15,.85)); }
.tile:hover > img { transform: scale(1.06); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: rgba(255,255,255,.85); margin: 0; font-size: 15.5px; max-width: 46ch; }
.tile .tag { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.tile .go { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform .35s var(--ease); }
.tile .go svg { width: 20px; }
.tile:hover .go { transform: rotate(-45deg); }
.tile--red { background: var(--red); }
.tile--red::before { display: none; }
.tile--kids { background: var(--red); }
.t-a { grid-column: span 4; grid-row: span 2; min-height: 460px; }
.t-b { grid-column: span 2; }
.t-c { grid-column: span 2; }
.t-d { grid-column: span 3; }
.t-e { grid-column: span 3; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .t-a { grid-column: span 2; min-height: 380px; } .t-b, .t-c, .t-d, .t-e { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: span 1; } }

/* ---------- split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--form { grid-template-columns: 1.25fr .75fr; align-items: start; }
@media (max-width: 900px) { .split, .split--form { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--red-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 4/3; }
.media__chip { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: center; font-size: 14.5px; line-height: 1.35; }
.media__chip b { font-family: var(--font-display); font-weight: 600; font-size: 16px; display: block; }
.media-stack { position: relative; }
.media-stack .media--small { position: absolute; width: 46%; aspect-ratio: 1; right: -18px; bottom: -36px; border: 8px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 900px) { .media-stack .media--small { right: 8px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- campaign / progress ---------- */
.campaign { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.campaign__media { position: relative; min-height: 360px; }
.campaign__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign__body { padding: clamp(26px, 4vw, 52px); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200,16,46,.6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
.progress { height: 14px; border-radius: 999px; background: var(--red-50); overflow: hidden; margin: 22px 0 12px; }
.progress__bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-600), var(--red)); position: relative; transition: width 1.8s var(--ease); }

@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress-meta { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-3); margin-bottom: 26px; }
.progress-meta b { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 22px; }
@media (max-width: 860px) { .campaign { grid-template-columns: 1fr; } .campaign__media { min-height: 260px; } }

/* ---------- donate widget ---------- */
.donate-box { background: #fff; color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); }
.donate-box h3 { margin-bottom: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 999px; padding: 5px; margin: 20px 0; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 12px; font-weight: 800; color: var(--ink-3); transition: .25s var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button .save { font-size: 11px; color: var(--red); margin-left: 4px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amounts button { border: 2px solid var(--line); background: #fff; border-radius: var(--r); padding: 14px 6px; font-family: var(--font-display); font-weight: 600; font-size: 18px; transition: .2s var(--ease); }
.amounts button:hover { border-color: var(--red-100); }
.amounts button[aria-pressed="true"] { border-color: var(--red); background: var(--red-50); color: var(--red); }
.amount-custom { position: relative; margin-top: 10px; }
.amount-custom span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-3); }
.amount-custom input { padding-left: 34px !important; }
.impact { display: flex; gap: 12px; align-items: center; background: var(--red-50); border-radius: var(--r); padding: 14px 16px; margin: 16px 0 20px; font-size: 15px; line-height: 1.4; color: var(--red-700); min-height: 74px; }
.impact .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--red); }
.impact .ic svg { width: 20px; }
.donate-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.donate-foot svg { width: 14px; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }

.pay-methods { display: grid; gap: 14px; }
.pay { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: .3s var(--ease); }
.pay:hover { border-color: var(--red-100); box-shadow: var(--shadow-sm); }
.pay__ic { width: 56px; height: 56px; border-radius: 16px; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.pay__ic svg { width: 26px; }
.pay h4, .pay .h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; }
.pay p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.pay code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.copy { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 560px) { .pay { grid-template-columns: 48px 1fr; } .pay__ic { width: 48px; height: 48px; } .pay > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; justify-self: start; } }

/* ---------- steps / how ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { counter-increment: step; position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 600; font-size: 40px; color: var(--red); line-height: 1; margin-bottom: 18px; }
.step h4, .step .h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.section--red .step { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.section--red .step::before { color: #fff; }
.section--red .step p { color: rgba(255,255,255,.94); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- timeline / reports ---------- */
.timeline { position: relative; display: grid; gap: 18px; }
.report { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: .3s var(--ease); }
.report:hover { border-color: var(--red-100); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.report__date { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--red); line-height: 1.4; }
.report__date small { display: block; font-family: var(--font-body); font-weight: 700; color: var(--ink-3); font-size: 13px; }
.report h4, .report .h4 { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.report p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.report__fig { font-family: var(--font-display); font-weight: 600; font-size: 24px; white-space: nowrap; }
.report__fig small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; text-align: right; }
@media (max-width: 720px) { .report { grid-template-columns: 1fr; gap: 8px; } .report__fig small { text-align: left; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: 14px; color: var(--ink-2); transition: .2s; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* news cards */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: .35s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 4/3; overflow: hidden; background: var(--red-50); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post h3 { font-size: 20px; margin: 4px 0 2px; }
.post p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- quote ---------- */
.quote { position: relative; max-width: 940px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.32; letter-spacing: -.02em; }
.quote blockquote::before { content: "“"; display: block; font-size: 120px; line-height: .6; color: var(--red); margin-bottom: 10px; }
.section--red .quote blockquote::before { color: #fff; opacity: .5; }
.quote cite { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-style: normal; font-weight: 700; }
.quote cite img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------- forms ---------- */
.form-card { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 800; font-size: 14.5px; }
.field .hint { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.req::after { content: " *"; color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper-2); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316110F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
input:hover, select:hover, textarea:hover { background-color: #F4EFEC; }
input:focus, select:focus, textarea:focus { outline: none; background-color: #fff; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: var(--red-50); }
.field .err { display: none; color: var(--red); font-size: 13.5px; font-weight: 700; }
.field.is-invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: .2s var(--ease); user-select: none; }
.chip > span:hover { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:checked + span, .chip input:checked + span:hover { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }

/* multi-step */
.stepper { display: flex; gap: 8px; margin-bottom: 28px; }
.stepper i { flex: 1; height: 6px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; font-style: normal; }
.stepper i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stepper i.done::after { transform: scaleX(1); }
.step-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fstep { display: none; animation: fadeUp .45s var(--ease); }
.fstep.is-active { display: block; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.success { display: none; text-align: center; padding: 30px 10px; animation: fadeUp .5s var(--ease); }
.success.is-visible { display: block; }
.success__ic { width: 78px; height: 90px; margin: 0 auto 20px; background: var(--red); color: #fff; display: grid; place-items: center; -webkit-mask: var(--hex) center / 100% 100% no-repeat; mask: var(--hex) center / 100% 100% no-repeat; }
.success__ic svg { width: 38px; }

/* ---------- accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--red-100); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: 22px; font-weight: 600; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq .ans { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- info tiles / contact ---------- */
.info { display: flex; gap: 16px; align-items: flex-start; }
.info .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.info .ic svg { width: 22px; }
.info h4, .info .h4 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.info p, .info a { margin: 0; font-weight: 700; font-size: 17px; }
.info a:hover { color: var(--red); }
.map { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ---------- CTA band ---------- */
.cta { position: relative; border-radius: var(--r-xl); background: var(--red); color: #fff; padding: clamp(36px, 6vw, 80px); overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.86); margin: 0; max-width: 54ch; }
.cta .bg-mark { position: absolute; right: -60px; bottom: -110px; width: 380px; color: #fff; opacity: .1; }
.cta .btn-row { justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- team ---------- */
.person { text-align: left; }
.person__img { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--red-50); display: grid; place-items: center; color: var(--red); margin-bottom: 16px; overflow: hidden; }
.person__img svg { width: 40%; opacity: .5; }
.person h4, .person .h4 { font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.person p { color: var(--ink-3); font-size: 15px; margin: 0; }

/* ---------- gallery ---------- */
.gallery { columns: 4 220px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: var(--r); overflow: hidden; background: var(--red-50); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(22,17,15,.92); display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; animation: fadeUp .3s var(--ease); }
.lightbox img { max-height: 86vh; border-radius: var(--r); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; }

/* ---------- newsletter ---------- */
.newsletter { display: flex; gap: 10px; max-width: 480px; }
.newsletter input { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.18) !important; border-radius: 999px !important; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { border-color: #fff !important; box-shadow: none !important; }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }

/* ---------- footer ---------- */
.footer { overflow: hidden; background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(56px, 7vw, 96px) 0 28px; font-size: 15.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h5 { color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__mark { background: #fff; color: var(--red); }
.footer .brand__name small { color: rgba(255,255,255,.5); }
.footer__about { margin: 20px 0 24px; max-width: 40ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: .25s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__big { color: rgba(255,255,255,.05); margin: 36px 0 -6px; user-select: none; }
.footer__big svg { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- mobile sticky donate ---------- */
.mobile-donate { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; transform: translateY(140%); transition: transform .4s var(--ease); }
.mobile-donate.is-visible { transform: none; }
.mobile-donate .btn { width: 100%; min-height: 56px; box-shadow: 0 16px 40px -10px rgba(200,16,46,.7); }
@media (max-width: 760px) { .mobile-donate { display: block; } body { padding-bottom: 0; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; z-index: 120; opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .3s, visibility .3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- placeholder marker (remove when real content is in) ---------- */
.ph { outline: 2px dashed rgba(200,16,46,.0); }

/* ==========================================================================
   Chance Plus KIDS — same red/white, friendlier shapes + sunny accent
   ========================================================================== */
.kids-theme .hero-kids { position: relative; background: var(--red); color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); }
.hero-kids .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-kids .lead { color: rgba(255,255,255,.88); }
.kids-logo { display: block; width: min(300px, 72vw); height: auto; margin-bottom: 30px; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--1 { width: 220px; height: 220px; background: rgba(255,255,255,.08); left: -60px; bottom: -80px; }
.blob--2 { width: 120px; height: 120px; background: var(--sun); opacity: .9; right: 8%; top: 12%; animation: bob 7s ease-in-out infinite; }
.blob--3 { width: 60px; height: 60px; border: 10px solid rgba(255,255,255,.25); right: 46%; bottom: 14%; animation: bob 5s ease-in-out infinite reverse; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: #fff; }
.kid-photos { position: relative; aspect-ratio: 1; max-width: 520px; margin-left: auto; width: 100%; }
.kid-photos .p { position: absolute; border-radius: 32px; overflow: hidden; border: 8px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); background: #fff; }
.kid-photos .p img { width: 100%; height: 100%; object-fit: cover; }
.kid-photos .p1 { width: 62%; height: 62%; left: 0; top: 4%; transform: rotate(-5deg); }
.kid-photos .p2 { width: 54%; height: 54%; right: 0; bottom: 2%; transform: rotate(6deg); }
.kid-photos .sticker { position: absolute; z-index: 2; right: 6%; top: 6%; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.1; transform: rotate(10deg); padding: 12px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(370deg); } }
@media (max-width: 960px) { .hero-kids .wrap { grid-template-columns: 1fr; } .kid-photos { margin: 0 auto; max-width: 440px; } }

.kcard { border-radius: 32px; padding: 30px; position: relative; overflow: hidden; background: var(--red-50); transition: transform .35s var(--ease); }
.kcard:hover { transform: translateY(-6px) rotate(-.5deg); }
.kcard:nth-child(2) { background: #FFF6DA; }
.kcard:nth-child(3) { background: #F1F4FF; }
.kcard:nth-child(4) { background: var(--paper-2); }
.kcard .emoji { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); color: var(--red); }
.kcard .emoji svg { width: 30px; }
.kcard h3 { font-size: 22px; }
.kcard p { color: var(--ink-2); margin: 0; }

.wishlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wish { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1.5px dashed var(--red-100); font-weight: 700; }
.wish .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.wish .ic svg { width: 22px; }
.wish small { display: block; font-weight: 600; color: var(--ink-3); font-size: 13px; }
@media (max-width: 860px) { .wishlist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wishlist { grid-template-columns: 1fr; } }

.box-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.box-items { display: grid; gap: 10px; }
.box-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: .2s var(--ease); }
.box-item input { display: none; }
.box-item:has(input:checked) { border-color: var(--red); background: var(--red-50); }
.box-item b { font-family: var(--font-display); font-weight: 600; }
.box-item small { display: block; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.box-summary { position: sticky; top: 100px; background: var(--ink); color: #fff; border-radius: 32px; padding: 32px; }
.box-summary .total { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; margin: 10px 0 20px; }
.box-visual { height: 120px; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 22px; }
.box-visual i { flex: 1; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.12); transition: height .5s var(--ease), background .3s; height: 12%; }
.box-visual i.on { background: var(--red); }
@media (max-width: 860px) { .box-builder { grid-template-columns: 1fr; } .box-summary { position: static; } }

/* highlighted word on red backgrounds */
.hero-kids .mark, .page-hero--red .mark { color: #fff; }
.hero-kids .mark::after, .page-hero--red .mark::after { filter: brightness(0) invert(1); }

/* open mobile menu: backdrop-filter would make the header the containing block of the fixed nav */
.menu-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
@media (max-width: 760px) { .blob--2 { width: 64px; height: 64px; top: auto; bottom: 46%; right: -18px; } }
.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; }
.success h2 { font-size: clamp(22px, 2.4vw, 28px); }
.box-summary .btn--red { box-shadow: none; }
.donate-box__title { font-size: clamp(20px, 2vw, 26px); margin-bottom: 4px; }

/* header actions always pinned to the right edge */
.header__actions { margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.nav-compact .nav + .header__actions { margin-left: auto; }
html:not(.nav-compact) [data-mobile-only] { display: none !important; }
@media (max-width: 420px) { .brand { gap: 10px; } .brand__word svg { height: 16px; } .brand__mark { width: 40px; height: 40px; } .header .wrap { gap: 10px; } .header__actions { gap: 8px; } .lang button { padding: 6px 8px; } .burger { width: 42px; height: 42px; } }

/* icons inside buttons: optically centered with the label */
.btn { line-height: 1; }
.btn > svg, .btn .heart { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn .heart svg, .btn > svg { display: block; width: 18px; height: 18px; }

/* light page heroes: the big logo mark sits behind the text and may flow under the next section */
main { overflow-x: clip; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero:not(.page-hero--red) { overflow: visible; z-index: 0; }
.page-hero + .section { position: relative; z-index: 1; }

/* partners marquee: two rows moving in opposite directions */
.marquee { padding: 30px 0 34px; }
.marquee__track + .marquee__track { margin-top: 18px; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 46s; }

/* header gets a bit more room than page content */
.header .wrap { max-width: 1440px; }
.topbar .wrap { max-width: 1440px; }
html:not(.nav-compact) .nav { gap: 2px; }
html:not(.nav-compact) .nav a { padding: 10px 11px; }
