/* =====================================================================
   Home in Bohuslav — styles
   Palette and type follow the AUG/AMIS project proposal (March 2026).
   Poppins has no Cyrillic, so the Ukrainian page uses Montserrat,
   the closest geometric match. EN/DA use Poppins.
   ===================================================================== */

/* ---------- fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-300-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/montserrat-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Caveat: handwritten accents only (story years, labels, notes) */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --white: #ffffff;
  --lav: #d4dafb;          /* section backgrounds */
  --lav-soft: #eef0fd;
  --mid: #8090f5;          /* circles, fills */
  --blue: #3b52e0;         /* links, quotes, primary button */
  --blue-dark: #3346c4;    /* small blue text on lavender (AA) */
  --ink: #1f1f24;
  --muted: #6b6b76;
  --muted-lav: #5a5a64;    /* secondary text on lavender (AA) */
  --coral: #e27a80;
  --coral-soft: #f6d5d7;
  --terra: #b85733;        /* crayon terracotta (AA as large text) */
  --yellow: #f5e642;
  --tint: #f5f6fe;
  --line: rgba(31, 31, 36, 0.14);
  --line-lav: rgba(31, 31, 36, 0.2);

  --font: "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --section: clamp(72px, 10vw, 128px);
  --crayon-blue: url(/assets/illustrations/stroke-blue.svg);
  --crayon-track: url(/assets/illustrations/stroke-track.svg);
  --crayon-white: url(/assets/illustrations/stroke-white.svg);
}
:lang(uk) { --font: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
strong { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 300; margin: 0; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.h2-big { font-size: clamp(2.4rem, 6.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section--lavender :focus-visible, .band :focus-visible, .closing :focus-visible, .cta-band :focus-visible { outline-color: var(--ink); }
::selection { background: var(--lav); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute !important; 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: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; }
.hl { background: url(/assets/illustrations/underline-yellow.svg) no-repeat 0 92% / 100% 0.36em; padding-bottom: 0.04em; }
.label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); margin: 0 0 18px; }
.section--lavender .label, .band .label { color: var(--muted-lav); }
.small { font-size: 0.875rem; color: var(--muted); }
.caption { font-size: 0.8125rem; color: var(--muted); margin: 12px 0 0; }
.hint { font-size: 0.875rem; color: var(--muted); margin-top: 28px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 3px;
  font: 500 0.95rem/1.2 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2c41c2; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .btn--primary:hover { transform: translateY(-2px) rotate(-1deg); }
  .btn--primary:hover .ico-heart { transform: scale(1.18); }
}
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.section--lavender .btn--outline { color: var(--blue-dark); border-color: var(--blue-dark); }
.section--lavender .tab-panel .btn--outline { color: var(--blue); border-color: var(--blue); }
.section--lavender .btn--outline:hover { color: #fff; background: var(--blue-dark); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; gap: 7px; }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1rem; }
.btn--xl { min-height: 60px; padding: 16px 36px; font-size: 1.075rem; }
.ico-heart { width: 1.15em; height: 1.15em; flex: none; color: var(--coral); transition: transform 0.2s ease; }
.btn--primary .ico-heart { color: #ffb3b8; }
.link-arrow { color: var(--blue); font-weight: 400; text-decoration: underline; text-underline-offset: 0.3em; }
.link-arrow::after { content: " →"; }

/* Unfilled placeholder from config.js: visible only so you can spot it. */
.is-placeholder { outline: 1px dashed var(--coral); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 400; font-size: 1rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark { transition: transform 0.3s ease; }
  .brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 400; }
.nav-list a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang a { display: inline-block; padding: 8px 7px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none; line-height: 1; border-bottom: 1px solid transparent; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lang--header { display: none; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before, .nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -7px; }
.nav-toggle-lines::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav.is-open {
  display: block; position: fixed; inset: var(--header-h) 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px var(--pad) 28px; max-height: calc(100dvh - var(--header-h)); overflow: auto;
}
.nav.is-open .nav-list a { display: block; padding: 12px 0; font-size: 1.35rem; font-weight: 300; border-bottom: 1px solid var(--line); }
.lang--nav { margin-top: 20px; }
.lang--nav a { font-size: 0.95rem; padding: 10px 10px 10px 0; margin-right: 10px; }

@media (min-width: 640px) {
  .lang--header { display: flex; }
  .lang--nav { display: none; }
}
@media (min-width: 1000px) {
  .nav, .nav.is-open { display: block; position: static; padding: 0; border: 0; margin-left: auto; max-height: none; background: none; }
  .nav-list { display: flex; gap: 26px; }
  .nav.is-open .nav-list a, .nav-list a { display: inline; padding: 0; font-size: 0.9rem; border: 0; }
  .header-actions { margin-left: 12px; }
  .nav-toggle { display: none; }
}
.brand { min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 440px) {
  .header-actions { gap: 8px; }
  .header-actions .btn--sm .ico-heart { display: none; }
}
@media (max-width: 380px) {
  .brand span:last-child { font-size: 0.9rem; }
  .header-actions .btn--sm { padding-inline: 12px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--rule { padding-top: 0; }
.section--rule::before {
  content: ""; display: block; height: 1px; background: var(--line);
  width: min(calc(var(--wrap) - 2 * var(--pad)), calc(100% - 2 * var(--pad)));
  margin: 0 auto var(--section);
}
.section--lavender { background: var(--lav); }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; } .grid-2--top { align-items: start; } }
.prose { max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(16px, 4vw, 56px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-areas: "art" "copy"; gap: 8px; align-items: center; }
.hero-copy { grid-area: copy; }
.hero-art { grid-area: art; }
.hero-art .illo { width: 100%; max-width: 360px; margin: 0 auto; }
.kicker { font-size: 1.7rem; color: var(--terra); margin: 0 0 4px; transform: rotate(-2deg); transform-origin: left; }
.hero-title { font-size: clamp(2.6rem, 8.4vw, 5.4rem); line-height: 1.03; letter-spacing: -0.025em; font-weight: 300; margin-bottom: 18px; }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 34ch; margin-bottom: 28px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-areas: "copy art"; grid-template-columns: 6fr 6fr; gap: 48px; }
  .hero-art .illo { max-width: 620px; }
}

/* goal card: the most important element on the page */
.goal-card { background: var(--lav-soft); border-radius: 4px; padding: clamp(20px, 3vw, 30px); max-width: 520px; position: relative; }
.goal-label { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 2px; color: var(--muted); }
.section--lavender .goal-label { color: var(--muted-lav); }
.goal-amount { font-size: clamp(2.8rem, 7vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; color: var(--ink); }
.goal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.goal-actions .btn { flex: 1 1 auto; }
.goal-organizer { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.goal-organizer:hover { color: var(--ink); text-decoration: underline; }
.goal-organizer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
@media (min-width: 520px) { .goal-actions .btn { flex: 0 0 auto; } }

/* ---------- render (real visual) ---------- */
.render { position: relative; }
.render > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }
@media (min-width: 700px) { .render > img { aspect-ratio: 2200 / 953; } }
.render-note {
  position: absolute; left: var(--pad); top: clamp(14px, 4vw, 48px);
  display: flex; align-items: flex-end; gap: 4px;
  background: #fff; padding: 4px 14px 6px; border-radius: 3px;
  font-size: clamp(1.35rem, 2.6vw, 2rem); color: var(--blue); line-height: 1.1;
  transform: rotate(-2deg); max-width: calc(100% - 2 * var(--pad));
}
.render-note img { order: 2; width: clamp(48px, 7vw, 90px); height: auto; transform: translateY(70%) rotate(8deg); }
.render-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 0.8125rem; color: var(--muted); padding-top: 12px; }

/* ---------- progress (crayon) ---------- */
/* One crayon stroke stretched to full width (no tiling = no seams). The fill
   uses the same full-width stroke (sized to the track via container units),
   so its texture stays the same at any percentage. */
.progress-track { position: relative; height: 16px; background: var(--crayon-track) 0 0 / 100% 100% no-repeat; overflow: hidden; container-type: inline-size; }
.progress-fill { height: 100%; width: 0; background: var(--crayon-blue) 0 0 / 100cqw 100% no-repeat; transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.progress-text { margin: 10px 0 0; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.progress-raised { font-weight: 400; }
.progress-pct { color: var(--blue); font-weight: 500; }
.progress-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; font-size: 0.8125rem; color: var(--muted); }
.progress-meta span:empty { display: none; }
.progress--full { margin-top: clamp(36px, 5vw, 56px); max-width: 760px; }
.progress--full .progress-track { height: 20px; }
.progress--full .progress-text { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300; }
.progress--full .progress-raised { font-weight: 300; }
.section--lavender .progress-track, .cta-band .progress-track { background-image: var(--crayon-white); }
.section--lavender .progress-pct, .cta-band .progress-pct { color: var(--blue-dark); }
.section--lavender .progress-meta, .cta-band .progress-meta { color: var(--muted-lav); }

/* ---------- story ---------- */
.story { padding-bottom: clamp(64px, 9vw, 112px); }
.chapters { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: clamp(64px, 10vw, 136px); }
.chapter { display: grid; gap: 20px; align-items: center; }
.chapter-art { position: relative; max-width: 620px; }
.chapter-art .illo { width: 100%; }
.chapter-mark { font-size: clamp(3.2rem, 9vw, 5.8rem); line-height: 0.9; color: var(--blue); margin: 0 0 10px; display: inline-block; transform: rotate(-3deg); }
.chapter:nth-child(2) .chapter-mark { color: var(--terra); }
.chapter:nth-child(3) .chapter-mark { color: var(--blue-dark); }
.chapter:nth-child(5) .chapter-mark { color: var(--terra); }
.chapter--muted .chapter-mark { color: var(--muted); }
.chapter-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; max-width: 18ch; }
.chapter-body { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 38ch; margin: 0; }
@media (min-width: 860px) {
  .chapter { grid-template-columns: 7fr 5fr; gap: 64px; }
  .chapter--flip { grid-template-columns: 5fr 7fr; }
  .chapter--flip .chapter-art { order: 2; justify-self: end; }
}

/* taped polaroid with a real photo */
.polaroid {
  position: relative; width: clamp(150px, 46%, 210px); margin-top: 32px;
  background: #fff; padding: 8px 8px 0; border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(31, 31, 36, 0.12);
}
.polaroid--r { transform: rotate(3deg); }
.polaroid--l { transform: rotate(-3deg); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption { text-align: center; font-size: 1.15rem; line-height: 1.1; padding: 6px 2px 8px; color: var(--ink); }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 22px; background: rgba(245, 230, 66, 0.75); transform: translateX(-50%) rotate(-5deg); }

/* mid-page call to action */
.cta-band { background: var(--lav); padding-block: clamp(72px, 10vw, 120px); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 20ch; margin-bottom: 16px; }
.cta-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 46ch; margin-bottom: 30px; }
.progress--band { width: 100%; max-width: 560px; margin-bottom: 30px; }
.progress--band .progress-text, .progress--band .progress-meta { justify-content: center; }

/* ---------- house: before / after ---------- */
.ba { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.ba-item { position: relative; }
.ba-item > img { width: 100%; object-fit: cover; }
.ba-now > img { aspect-ratio: 4 / 3; filter: saturate(0.8); }
.ba-after > img { aspect-ratio: 16 / 10; }
.ba-tag { position: absolute; z-index: 2; top: -0.7em; left: 14px; background: #fff; padding: 0 12px; font-size: 2.1rem; line-height: 1.2; color: var(--muted); transform: rotate(-3deg); }
.ba-tag--after { color: var(--blue); }
.ba-arrow { width: 90px; margin: -16px auto; transform: rotate(80deg); }
.problem-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.problem-list li { position: relative; padding-left: 30px; }
.problem-list li::before { content: "×"; position: absolute; left: 2px; top: -0.32em; font-family: var(--hand); font-size: 1.9rem; color: var(--coral); font-weight: 600; }
.ba-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ba-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .ba { grid-template-columns: 5fr auto 7fr; gap: 20px; }
  .ba-arrow { margin: 80px 0 0; transform: none; width: 110px; }
}

.build-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; margin: clamp(72px, 9vw, 112px) 0 28px; }
.build-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.build-list li { text-align: center; }
.build-list .illo { width: 100%; max-width: 200px; margin: 0 auto 10px; }
.build-list h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.build-list p { font-size: 0.95rem; color: var(--muted); margin: 0 auto; max-width: 24ch; }
@media (min-width: 700px) { .build-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .build-list { grid-template-columns: repeat(5, 1fr); } }

/* lavender band with the line-art map */
.band { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 128px); }
.band--lavender { background: var(--lav); }
/* The map is placed so that Bohuslav (81.14% / 51.29% of the image, i.e.
   49.55°N 30.88°E) lands exactly on the pin at (--pin-x, --pin-y) of the band. */
.band--map { --map-w: 170vw; --pin-x: 60%; --pin-y: calc(100% - 92px); padding-bottom: 190px; }
@media (min-width: 900px) { .band--map { --map-w: min(980px, 74vw); --pin-x: 80%; --pin-y: 50%; padding-bottom: clamp(72px, 10vw, 128px); } }
.band-map {
  position: absolute; width: var(--map-w); aspect-ratio: 1400 / 1238; pointer-events: none;
  left: calc(var(--pin-x) - var(--map-w) * 0.8114);
  top: calc(var(--pin-y) - var(--map-w) * 0.8843 * 0.5129);
}
.band-map img { width: 100%; height: 100%; opacity: 0.4; }
@media (min-width: 900px) { .band-map img { opacity: 0.55; } }
.map-pin { position: absolute; left: var(--pin-x); top: var(--pin-y); margin: 0; width: 0; height: 0; }
.map-dot {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(31, 31, 36, 0.25);
}
.map-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .map-dot::after { animation: pin-pulse 2.4s ease-out infinite; }
  @keyframes pin-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.2); opacity: 0; } }
}
.map-label {
  position: absolute; left: 16px; top: -40px; white-space: nowrap;
  font-size: 1.9rem; line-height: 1; color: var(--blue-dark); transform: rotate(-4deg);
}
.band-inner { position: relative; }
.band-title { margin-bottom: 16px; max-width: 18ch; }
.band-text { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 36ch; margin: 0; }

/* ---------- photo lightbox ---------- */
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.has-lightbox { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #141418; color: #fff;
}
.lightbox::backdrop { background: rgba(20, 20, 26, 0.6); }
.lightbox-figure {
  height: 100%; margin: 0; padding: 64px clamp(12px, 7vw, 96px) 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lightbox-img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); cursor: zoom-out; }
.lightbox-caption { max-width: 70ch; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lightbox-title { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: #fff; }
.lightbox-credit { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.lightbox-title:empty, .lightbox-credit:empty { display: none; }
.lightbox-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; padding: 0;
  transition: background-color 0.2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-btn svg { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 0.25s ease; }
  .lightbox[open] .lightbox-img { animation: lb-zoom 0.3s ease; }
  @keyframes lb-in { from { opacity: 0; } }
  @keyframes lb-zoom { from { transform: scale(0.96); } }
}

/* ---------- phases ---------- */
.phases { display: grid; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.phase { border-bottom: 1px solid var(--line); }
.phase-head { margin: 0; font: inherit; }
.phase-btn {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 18px 0; background: none; border: 0; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.phase-circles { display: flex; flex: none; }
.circle {
  --c: 44px;
  width: var(--c); height: var(--c); border-radius: 50%; flex: none;
  background: var(--mid);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.circle + .circle { margin-left: -12px; }
.circle-label { display: none; }
.phase--pilot .circle { background: var(--coral); }
.phases--funded .circle { background: linear-gradient(to top, var(--mid) var(--fill), var(--lav) var(--fill)); }
.phases--funded .phase--pilot .circle { background: linear-gradient(to top, var(--coral) var(--fill), var(--coral-soft) var(--fill)); }
.phase-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phase-num { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.phase-title { font-size: 1.1rem; font-weight: 400; line-height: 1.3; }
.phase-amount { font-size: 0.875rem; color: var(--blue); font-weight: 400; }
.phase-btn:hover .phase-title, .phase-btn[aria-expanded="true"] .phase-title { color: var(--blue); }
.phase-plus { position: relative; width: 16px; height: 16px; margin-left: auto; flex: none; }
.phase-plus::before, .phase-plus::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.2s ease; }
.phase-plus::after { transform: rotate(90deg); }
.phase-btn[aria-expanded="true"] .phase-plus::after { transform: rotate(0deg); }
.phase-panel { padding: 0 0 22px; max-width: 62ch; }
.phase-panel p { margin: 0; }
.phase-panel-num { font-weight: 500; }
.timeline { display: none; }

@media (min-width: 820px) {
  .phases { --c: clamp(150px, 17vw, 196px); grid-template-columns: repeat(4, var(--c)); border: 0; }
  .phase { display: contents; }
  .phase-head { grid-row: 1; align-self: end; }
  .phase-btn { flex-direction: column-reverse; align-items: center; gap: 0; padding: 0; text-align: center; height: 100%; justify-content: flex-start; }
  .phase-meta { align-items: center; padding: 0 10px 22px; }
  .phase-circles { flex-direction: column; align-items: center; }
  .circle { --c: inherit; padding: 14%; }
  .circle + .circle { margin-left: 0; margin-top: calc(var(--c) * -0.03); }
  .circle-label { display: block; font-size: 0.8rem; line-height: 1.3; font-weight: 400; color: var(--ink); }
  .phase-plus { display: none; }
  .phase-btn:hover .circle { filter: brightness(1.04); }
  .phase-btn[aria-expanded="true"] .phase-meta::after { content: ""; display: block; width: 28px; height: 1.5px; background: var(--blue); margin-top: 10px; }
  .phase-panel { grid-column: 1 / -1; padding: 28px 0 0; font-size: 1.05rem; }
  .js .phase-panel { grid-row: 2; }
  .timeline { --c: clamp(150px, 17vw, 196px); display: grid; grid-template-columns: calc(var(--c) * 3) calc(var(--c) + 48px); margin-top: 32px; font-size: 0.8125rem; color: var(--muted); }
  .timeline span { border-top: 2px solid var(--mid); padding-top: 8px; text-align: center; position: relative; }
  .timeline .timeline-pilot { border-top-color: var(--coral); }
  .timeline .timeline-pilot::after { content: ""; position: absolute; right: 0; top: -7px; width: 12px; height: 12px; border-top: 2px solid var(--coral); border-right: 2px solid var(--coral); transform: rotate(45deg); }
}
.js .phase-panel[hidden] { display: none; }

/* ---------- donate ---------- */
.donate-head { display: grid; gap: 28px; margin-bottom: clamp(32px, 5vw, 56px); align-items: end; }
.donate-head h2 { margin: 0; }
.donate-goal { background: #fff; border-radius: 4px; padding: clamp(20px, 3vw, 28px); }
.donate-goal .goal-amount { margin-bottom: 14px; }
.donate-goal .progress-track { background-image: var(--crayon-track); }
@media (min-width: 900px) { .donate-head { grid-template-columns: 1fr minmax(340px, 460px); gap: 56px; } }

.tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.tab {
  min-height: 52px; padding: 10px 16px; text-align: left;
  font: 400 0.9rem/1.3 var(--font); color: var(--ink);
  background: transparent; border: 1px solid var(--line-lav); border-radius: 3px; cursor: pointer;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; border-color: #fff; font-weight: 500; }
@media (min-width: 760px) {
  .tab-list { display: flex; gap: 4px; margin-bottom: 0; }
  .tab { border-bottom: 0; border-radius: 3px 3px 0 0; padding-inline: 22px; }
}
.tab-panel { background: #fff; padding: clamp(24px, 4.5vw, 52px); border-radius: 3px; }
.tab-panel > *:last-child { margin-bottom: 0; }
.tab-panel p { max-width: 60ch; }
.panel-title { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

/* Monobank tab: text + jar card side by side */
.mono-panel { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .mono-panel { grid-template-columns: 1fr minmax(320px, 380px); gap: 56px; } }
.panel-actions--tight { margin: 8px 0 18px; }
.crypto-sub { margin: 0 0 6px; }

/* Shared layout: text on the left, branded QR card on the right */
.pay-block { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .pay-block { grid-template-columns: 1fr minmax(300px, 360px); gap: 56px; } }
.pay-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.15rem; }
.pay-head strong { font-weight: 500; }
.pay-head svg { width: 30px; height: 30px; flex: none; }
.field-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin: 22px 0 6px; }
.pay-copy .copy-field { max-width: 420px; }

/* Binance Pay */
.btn--binance { background: #fcd535; color: #181a20; }
.btn--binance:hover { background: #f0b90b; color: #181a20; }
@media (prefers-reduced-motion: no-preference) { .btn--binance:hover { transform: translateY(-2px); } }
.bn-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  width: 100%; max-width: 360px; justify-self: center;
  padding: 24px 22px 22px; border-radius: 16px; text-decoration: none; color: #eaecef;
  background:
    radial-gradient(rgba(240, 185, 11, 0.07) 1.2px, transparent 1.7px) 0 0 / 16px 16px,
    linear-gradient(180deg, #1e2329 0%, #181a20 100%);
  box-shadow: 0 18px 40px rgba(24, 26, 32, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bn-card:hover { color: #eaecef; box-shadow: 0 22px 48px rgba(24, 26, 32, 0.4); }
@media (prefers-reduced-motion: no-preference) { .bn-card:hover { transform: translateY(-3px); } }
.bn-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.bn-brand { display: flex; align-items: center; gap: 10px; color: #f0b90b; font-weight: 700; font-size: 1.45rem; letter-spacing: 0.06em; line-height: 1; }
.bn-brand svg { width: 30px; height: 30px; }
.bn-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%;
  padding: 18px 18px 16px; border: 1px solid #2b3139; border-radius: 12px; background: rgba(24, 26, 32, 0.6);
}
.bn-scan { font-size: 0.95rem; text-align: center; line-height: 1.35; }
.qr-frame--bn { width: 78%; padding: 5%; }
.bn-id { font-size: 0.9rem; font-weight: 500; color: #eaecef; letter-spacing: 0.02em; }

/* ZEN */
.pay-head .mark-zen { color: #1f1f24; }
.btn--zen { background: #2b2b2b; color: #fff; border-radius: 999px; padding-inline: 32px; }
.btn--zen:hover { background: #000; color: #fff; }
.zen-open { margin: 18px 0 4px; }
.zen-open .small { margin: 8px 0 0; }
/* The deep link only works on a phone with the app; on desktop the QR does the job. */
@media (hover: hover) and (pointer: fine) { .zen-open { display: none; } }
.zen-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; max-width: 360px; justify-self: center;
  padding: 26px 24px 24px; border-radius: 24px; color: #fff; text-align: center;
  background: #2b2b2b; box-shadow: 0 18px 40px rgba(20, 20, 20, 0.28);
}
.zen-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.04em; line-height: 1; }
.zen-brand svg { width: 28px; height: 28px; color: #fff; }
.zen-scan { font-size: 0.95rem; line-height: 1.35; max-width: 26ch; }
.qr-frame--zen { width: 78%; padding: 5%; border-radius: 18px; }
.qr-frame--zen .qr-logo { color: #2b2b2b; border-radius: 50%; }
.zen-phone { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85); }

/* SEPA */
.sepa > p:not(.pay-head) { margin-bottom: 20px; }
.pay-block--sepa { align-items: start; }
.bank-fields { margin: 0; display: grid; gap: 16px; }
.bank-fields dt { font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.bank-fields dd { margin: 0; }
.bank-fields .copy-field { max-width: 460px; }
.bank-fields .copy-value { word-break: normal; overflow-wrap: anywhere; }   /* IBAN wraps between groups */
.bank-fields .btn-copy, .pay-copy .btn-copy { min-width: 84px; padding: 0 12px; }
.copy-value:not(.mono) { font-family: var(--font); font-weight: 400; }
.bank-static { display: inline-block; padding: 10px 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 2px; font-weight: 500; font-size: 0.9rem; }
.sepa-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  width: 100%; max-width: 360px; justify-self: center;
  position: relative; overflow: hidden;
  padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.sepa-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #1f3fbf; }
.qr-frame--sepa { width: min(100%, 210px); }
.sepa-scan { font-weight: 500; margin: 6px 0 0; }
.sepa-hint { font-size: 0.8125rem; color: var(--muted); margin: 0; max-width: 32ch; }

/* USDT wallets */
.wallets-block { margin-top: clamp(36px, 5vw, 52px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.wallets-block .warning { margin: 0 0 22px; }
.wallets { display: grid; gap: 20px; }
@media (min-width: 760px) { .wallets { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.wallet {
  --net: var(--muted);
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
}
.wallet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--net); }
.wallet--tron { --net: #eb0029; }
.wallet--eth { --net: #627eea; }
.wallet--bnb { --net: #f0b90b; }
.wallet-head { display: flex; align-items: center; gap: 12px; }
.wallet-head .mark-tether { width: 36px; height: 36px; flex: none; }
.wallet-asset { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.wallet-asset strong { font-weight: 500; font-size: 1.05rem; }
.wallet-coin { font-size: 0.8125rem; color: var(--muted); }
.network { font-size: 0.8125rem; font-weight: 500; background: var(--lav); padding: 4px 11px; border-radius: 99px; white-space: nowrap; }
.wallet .network { background: color-mix(in srgb, var(--net) 12%, #fff); color: color-mix(in srgb, var(--net) 70%, #1f1f24); }
.qr-frame--wallet { width: min(100%, 200px); align-self: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.wallet-scan { font-size: 0.8125rem; color: var(--muted); text-align: center; margin: -4px 0 0; }
.wallet .copy-field { max-width: none; }
.wallet .copy-value { font-size: 0.8rem; }
.wallet .btn-copy { min-width: 84px; padding: 0 12px; }

/* Monobank-style jar card */
.mono-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 380px; justify-self: center;
  padding: 24px 22px 18px; border-radius: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, #5a2a92 0%, #74409f 48%, #9a6aaa 100%);
  box-shadow: 0 18px 40px rgba(90, 42, 146, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mono-card:hover { color: #fff; box-shadow: 0 22px 48px rgba(90, 42, 146, 0.36); }
@media (prefers-reduced-motion: no-preference) { .mono-card:hover { transform: translateY(-3px) rotate(-0.6deg); } }
.mono-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.mono-title { font-weight: 500; font-size: 1.2rem; line-height: 1.3; }
.mono-sub { font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.mono-rule { display: block; width: 100%; height: 1px; background: rgba(255, 255, 255, 0.32); margin: 16px 0 6px; }
.mono-stage { position: relative; display: flex; justify-content: center; width: 100%; padding: 54px 0 48px; }
.mono-holder { position: relative; display: block; width: 54%; max-width: 200px; }
.mono-ears { position: absolute; left: 0; bottom: calc(100% - 10px); width: 100%; height: auto; }
.mono-qr {
  position: relative; display: block; aspect-ratio: 1; padding: 9%;
  background: #fff; border: 5px solid #111; border-radius: 24px;
  box-shadow: 0 16px 24px rgba(40, 10, 70, 0.28);
}
.mono-qr svg { display: block; width: 100%; height: 100%; }
.mono-paw { position: absolute; width: 27%; display: block; }
.mono-paw svg { display: block; width: 100%; height: auto; }
.mono-paw--l { left: -15%; top: -4%; }
.mono-paw--r { right: -15%; bottom: -8%; transform: scale(-1, -1); }
.mono-bubble {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  background: rgba(255, 255, 255, 0.2);
}
.mono-bubble--1 { left: 0; top: 6%; }
.mono-bubble--2 { right: 0; top: 30%; }
.mono-bubble--3 { left: 1%; bottom: 22%; }
.mono-bubble--4 { right: 1%; bottom: -2%; }
.mono-logo { font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .mono-card:hover .mono-paw--l { transform: rotate(-8deg); }
  .mono-paw { transition: transform 0.3s ease; }
}

.copy-field { display: flex; align-items: stretch; max-width: 640px; border: 1px solid var(--line); border-radius: 2px; }
.copy-value { flex: 1; min-width: 0; padding: 12px 14px; background: var(--tint); font-size: 0.875rem; line-height: 1.5; word-break: break-all; color: var(--ink); }
.copy-value.mono { font-family: var(--mono); }
.btn-copy { flex: none; min-width: 112px; padding: 0 16px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--blue); font: 500 0.85rem var(--font); cursor: pointer; }
.btn-copy:hover { background: var(--tint); }
.btn-copy.is-copied { color: var(--ink); }

.crypto-item { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.crypto-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 10px; }
.network { font-size: 0.8125rem; font-weight: 500; background: var(--lav); padding: 3px 10px; border-radius: 99px; }
.warning { font-weight: 400; margin: 14px 0 6px; display: flex; gap: 10px; align-items: flex-start; }
.warning-mark { flex: none; width: 12px; height: 12px; margin-top: 0.42em; border-radius: 50%; background: var(--yellow); outline: 1px solid rgba(31, 31, 36, 0.35); }

/* QR codes: always visible, crisp, optional brand mark in the centre */
.qr-frame { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.qr-code, .qr-code svg { display: block; width: 100%; height: 100%; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 22%; padding: 3.5%;
}
.qr-logo svg { display: block; width: 100%; height: 100%; }
.qr-frame.is-placeholder { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); }
.qr-empty { font-size: 0.875rem; color: var(--muted); }

.chips { margin: 18px 0 4px; }
.chips-label { font-size: 0.8125rem; color: var(--muted); margin: 0 0 8px; }
.chips ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 16px; border: 1px solid var(--blue); border-radius: 99px; font-size: 0.875rem; font-weight: 400; text-decoration: none; }
.chip:hover { background: var(--blue); color: #fff; }

.every-gift { margin: clamp(32px, 5vw, 48px) 0 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; color: var(--blue-dark); max-width: 26ch; transform: rotate(-1deg); }
.recipient { margin-top: clamp(28px, 4vw, 40px); padding-top: 22px; border-top: 1px solid var(--line-lav); max-width: 72ch; }
.recipient-title { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.recipient p { font-size: 0.975rem; margin-bottom: 0.5em; }

/* ---------- transparency ---------- */
.organizer {
  position: relative; margin-top: 100px; padding: 30px 28px 26px; max-width: 440px;
  background: var(--lav-soft); border-radius: 4px;
}
/* polaroid of Anastasiia and Oleksii, taped onto the card */
.organizer-photo {
  position: relative; width: 86%; margin: -64px auto 26px;
  background: #fff; padding: 10px 10px 0; border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(31, 31, 36, 0.16);
  transform: rotate(-2.5deg);
  transition: transform 0.4s ease;
}
.organizer-photo::before { content: ""; position: absolute; z-index: 1; top: -13px; left: 50%; width: 96px; height: 26px; background: rgba(245, 230, 66, 0.78); transform: translateX(-50%) rotate(3deg); }
.organizer-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.organizer-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px 12px; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.organizer-photo .ico-heart { width: 0.8em; height: 0.8em; color: var(--coral); }
@media (prefers-reduced-motion: no-preference) { .organizer:hover .organizer-photo { transform: rotate(0deg) scale(1.01); } }
.organizer-kicker { font-size: 1.6rem; line-height: 1; color: var(--terra); margin: 0 0 6px; transform: rotate(-2deg); transform-origin: left; }
.organizer-name { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 400; line-height: 1.15; margin: 0 0 12px; }
.organizer-role { margin: 0 0 10px; }
.organizer-private { font-size: 0.9rem; color: var(--muted); margin: 0; }

.def-list { margin: 0; }
.def-list > div { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 6px 32px; }
.def-list > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .def-list > div { grid-template-columns: 180px 1fr; } }
.def-list dt { font-weight: 500; font-size: 0.95rem; }
.def-list dd { margin: 0; }
.def-list dd p { margin: 0 0 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 4px 0; }
.help { margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 40px); background: var(--lav-soft); border-radius: 4px; display: grid; gap: 16px 40px; align-items: center; }
.help-title { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; color: var(--blue-dark); margin: 0; transform: rotate(-1deg); }
.help-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.help-list li { background: #fff; border-radius: 99px; padding: 8px 16px; font-size: 0.95rem; font-weight: 400; }
.help .btn { justify-self: start; }
@media (min-width: 960px) { .help { grid-template-columns: auto 1fr auto; } }

/* ---------- partners ---------- */
.partner-list { list-style: none; padding: 0; margin: clamp(36px, 5vw, 52px) 0 0; display: grid; gap: 40px; }
@media (min-width: 760px) { .partner-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.partner-list li { border-top: 1px solid var(--line); padding-top: 26px; }
.partner-list img { height: 76px; width: auto; }
.partner-list h3 { font-size: 1.05rem; font-weight: 500; margin: 20px 0 6px; }
.partner-list p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- closing ---------- */
.closing { background: var(--lav); padding-block: clamp(64px, 10vw, 120px); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-illo { width: 100%; max-width: 560px; margin-bottom: 28px; }
.closing-quote { margin: 0 0 40px; padding: 0; }
.closing-quote p { font-style: italic; font-weight: 300; color: var(--blue); font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.3; max-width: 26ch; margin: 0 auto 20px; }
.closing-quote footer { font-size: 0.875rem; color: var(--muted-lav); }

/* ---------- sticky donate bar (phones) ---------- */
.sticky-donate {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.sticky-donate.is-visible { transform: none; visibility: visible; }
.sticky-inner { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin: 0 auto; }
.sticky-progress { flex: 1; min-width: 0; }
.sticky-text { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-track { display: block; height: 10px; background: var(--crayon-track) 0 0 / 100% 100% no-repeat; overflow: hidden; container-type: inline-size; }
.sticky-fill { display: block; height: 100%; background: var(--crayon-blue) 0 0 / 100cqw 100% no-repeat; }
.sticky-donate .btn { min-height: 46px; padding-inline: 20px; }
@media (min-width: 1000px) { .sticky-donate { display: none; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 40px; }
@media (max-width: 999px) { .site-footer { padding-bottom: 110px; } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .small { margin-bottom: 8px; }
.brand--footer { margin: 0 0 14px; }
.footer-label { font-size: 0.8125rem; font-weight: 500; margin: 0 0 8px; }
.contact-list--footer { font-size: 0.9rem; }
.lang--footer { margin: -6px 0 12px -7px; }

/* ---------- 404 ---------- */
.notfound { padding-block: 120px; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 32px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .chapter-art.reveal { transform: translateY(22px) rotate(-1.5deg); }
  .js .chapter--flip .chapter-art.reveal { transform: translateY(22px) rotate(1.5deg); }
  .js .chapter-art.reveal.is-visible { transform: none; }
  .hero-art .illo { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- admin ---------- */
.admin { padding-block: 48px 96px; max-width: 760px; }
.admin h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.admin-card { border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); margin-top: 28px; border-radius: 2px; }
.admin-card h2 { font-size: 1.3rem; font-weight: 400; margin-bottom: 16px; }
.admin .progress-text { flex-direction: row; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea { font: 300 1rem var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid rgba(31, 31, 36, 0.35); border-radius: 2px; background: #fff; width: 100%; }
.field textarea { min-height: 72px; resize: vertical; }
.field-hint { font-size: 0.8125rem; color: var(--muted); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.status { margin-top: 16px; padding: 12px 14px; font-size: 0.95rem; border-left: 3px solid var(--blue); background: var(--tint); }
.status--error { border-left-color: var(--coral); }
.status:empty { display: none; }
.snippet { font-family: var(--mono); font-size: 0.85rem; background: var(--tint); padding: 16px; white-space: pre; overflow: auto; border: 1px solid var(--line); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.admin [hidden] { display: none !important; }
