/* === Motanka Landing — design tokens === */
:root {
  /* Palette */
  --olive-900: oklch(0.22 0.025 115);
  --olive-700: oklch(0.36 0.035 115);     /* primary deep khaki */
  --olive-600: oklch(0.45 0.04 115);
  --olive-500: oklch(0.55 0.045 115);
  --olive-300: oklch(0.78 0.03 115);
  --olive-100: oklch(0.93 0.02 110);

  --sand-500: oklch(0.78 0.05 80);         /* threads / craft */
  --sand-300: oklch(0.88 0.035 82);
  --sand-100: oklch(0.95 0.018 85);

  --paper:    oklch(0.985 0.006 90);       /* page bg */
  --paper-2:  oklch(0.965 0.008 88);
  --ink:      oklch(0.22 0.02 115);
  --ink-soft: oklch(0.42 0.022 115);

  --ua-yellow: oklch(0.86 0.16 95);        /* primary CTA */
  --ua-yellow-deep: oklch(0.78 0.17 92);
  --ua-blue:   oklch(0.5 0.13 252);        /* secondary action */
  --ua-blue-deep: oklch(0.4 0.14 252);

  --line: oklch(0.88 0.02 110);
  --line-strong: oklch(0.72 0.03 110);

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

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 115 / 0.06), 0 0 0 1px oklch(0.2 0.03 115 / 0.04);
  --shadow:    0 8px 24px -12px oklch(0.2 0.03 115 / 0.18), 0 2px 6px -2px oklch(0.2 0.03 115 / 0.08);
  --shadow-lg: 0 32px 60px -28px oklch(0.2 0.03 115 / 0.35), 0 8px 20px -8px oklch(0.2 0.03 115 / 0.12);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Onest", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ua-yellow); color: var(--olive-900); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--olive-900);
}

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ua-yellow);
  color: var(--olive-900);
  box-shadow: 0 6px 18px -8px var(--ua-yellow-deep);
}
.btn--primary:hover { background: var(--ua-yellow-deep); }

.btn--blue {
  background: var(--ua-blue);
  color: white;
  box-shadow: 0 6px 18px -8px var(--ua-blue-deep);
}
.btn--blue:hover { background: var(--ua-blue-deep); }

.btn--ghost {
  background: transparent;
  color: var(--olive-900);
  box-shadow: inset 0 0 0 1.5px var(--olive-700);
}
.btn--ghost:hover { background: var(--olive-700); color: var(--sand-100); }

.btn--dark {
  background: var(--olive-700);
  color: var(--sand-100);
}
.btn--dark:hover { background: var(--olive-900); }

.btn--sm { padding: 10px 16px; font-size: 14px; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.985 0.006 90 / 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--olive-900);
}
.brand__mark {
  width: 40px; height: 56px;
  flex: none;
  border-radius: 50%;          /* неоднакові сторони → овал */
  object-fit: cover;
  background: var(--olive-100);
  box-shadow: 0 0 0 1px var(--line);
}
.brand__sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;            /* у хедері два рядки, 1.05 від стека їх злипає */
  color: var(--ink-soft);
  letter-spacing: 0;
}
.brand__title-stack { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--olive-100); color: var(--olive-900); }

.header-cta { display: flex; gap: 10px; align-items: center; }

/* === Перемикач мови === */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--olive-100);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active {
  background: var(--olive-700);
  color: var(--sand-100);
}

.menu-toggle { display: none; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .header-cta .btn--ghost { display: none; }
}

/* Хедер на телефоні: лого, перемикач мови й «Донат» мають вміститися в рядок,
   інакше вся сторінка їде вбік разом із горизонтальним скролом. */
@media (max-width: 540px) {
  :root { --gutter: 14px; }
  .site-header__row { gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand__mark { width: 30px; height: 42px; }
  .brand__sub { font-size: 10.5px; }
  .header-cta { gap: 6px; }
  .lang-switch__btn { padding: 5px 8px; font-size: 12px; }
  .header-cta .btn--sm { padding: 9px 11px; font-size: 13px; }
}
@media (max-width: 430px) {
  .brand__sub { display: none; }
  .brand { font-size: 14px; }
  .site-header__row { gap: 8px; }
  .header-cta { gap: 5px; }
  .lang-switch__btn { padding: 5px 7px; }
  .header-cta .btn--sm { padding: 9px 10px; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--sand-100);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--olive-700);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ua-blue);
  box-shadow: 0 0 0 0 var(--ua-blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.5 0.13 252 / 0.5); }
  70% { box-shadow: 0 0 0 8px oklch(0.5 0.13 252 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.5 0.13 252 / 0); }
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--olive-700);
  display: inline;
  padding: 0 4px;
  background-image: linear-gradient(to top,
    var(--ua-yellow) 0,
    var(--ua-yellow) 38%,
    transparent 38%,
    transparent 100%);
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  flex-wrap: wrap; /* по вмісту, «Понад рік» не ріжеться; на вузькому — у два рядки */
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  gap: 20px 32px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  color: var(--olive-900);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.stat__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Hero image stack */
.hero__media {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--olive-700);
  box-shadow: var(--shadow-lg);
}
.placeholder-photo {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.32 0.04 115) 0 14px,
      oklch(0.36 0.045 115) 14px 28px);
  display: grid;
  place-items: center;
  color: var(--sand-100);
}
.placeholder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 35%, oklch(0.45 0.05 115 / 0.7), transparent 70%),
    radial-gradient(120% 70% at 50% 110%, oklch(0.18 0.02 115 / 0.8), transparent 60%);
}
/* Коли фото підвантажене з теки images/ — ховаємо смугастий патерн,
   затемнення та службову підпис-плашку «[фото]». */
.placeholder-photo.has-photo {
  background-color: transparent;
}
.placeholder-photo.has-photo::after {
  display: none;
}
.placeholder-photo.has-photo .placeholder-photo__tag {
  display: none;
}
.placeholder-photo__tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: oklch(0.985 0.006 90 / 0.92);
  color: var(--olive-700);
  border: 1px solid var(--line);
  text-align: center;
  max-width: 80%;
}

.hero__badge {
  position: absolute;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  max-width: min(calc(100% - 36px), 240px); /* підпис у два рядки, а не картка на всю ширину */
}
.hero__badge--tl { top: 18px; left: 18px; }
.hero__badge--br { bottom: 18px; right: 18px; }
.hero__badge__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sand-300);
  display: grid; place-items: center;
  color: var(--olive-900);
}
.hero__badge__icon--blue { background: var(--ua-blue); color: white; }
.hero__badge__text { line-height: 1.1; }
.hero__badge__text strong { font-family: var(--font-display); font-size: 15px; }
.hero__badge__text small { display: block; font-size: 12px; line-height: 1.3; color: var(--ink-soft); margin-top: 3px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 4.5; }
}

/* === Net texture utility === */
.net-bg {
  background-image:
    repeating-linear-gradient(45deg,
      transparent 0 22px,
      oklch(0.36 0.035 115 / 0.04) 22px 23px),
    repeating-linear-gradient(-45deg,
      transparent 0 22px,
      oklch(0.36 0.035 115 / 0.04) 22px 23px);
}

/* === About === */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.section--cream { background: var(--sand-100); border-block: 1px solid var(--line); }
.section--olive {
  background: var(--olive-900);
  color: var(--sand-100);
}
.section--olive h2, .section--olive h3 { color: var(--sand-100); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--olive-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.section__kicker::before {
  content: ""; width: 28px; height: 1px; background: var(--olive-700);
}
.section--olive .section__kicker { color: var(--sand-300); }
.section--olive .section__kicker::before { background: var(--sand-300); }

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section__desc {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-left: auto;
}
.section--olive .section__desc { color: oklch(0.85 0.025 110); }

@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 18px; }
  .section__desc { margin-left: 0; }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.about-text p + p { margin-top: 18px; }
.about-text p { font-size: 18px; color: var(--ink-soft); }
.about-text p strong { color: var(--olive-900); font-weight: 600; }

.about-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-300);
}
.about-quote {
  position: absolute;
  left: -18px; bottom: 28px;
  max-width: 80%;
  background: var(--paper);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--ua-yellow);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--olive-900);
}
.about-quote small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* === Directions cards === */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1080px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .dir-grid { grid-template-columns: 1fr; } }

.dir-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.dir-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--olive-600);
  letter-spacing: 0.08em;
}
.dir-card__icon {
  width: 76px; height: 76px;
  border-radius: 14px;
  background: var(--olive-100);
  display: grid; place-items: center;
  color: var(--olive-700);
  margin-bottom: 8px;
}
.dir-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dir-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.dir-card__meta {
  margin-top: auto;
  display: flex; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.dir-card__meta strong { color: var(--olive-700); }

/* === CTA Tabs === */
.tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: oklch(0.18 0.02 115);
  border-radius: 999px;
  margin-bottom: 40px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.tab {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: oklch(0.78 0.03 115);
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--sand-100); }
.tab.is-active {
  background: var(--sand-100);
  color: var(--olive-900);
}

/* На вузьких екранах пігулки не влазять у рядок — ставимо їх стовпчиком,
   а в блоках з реквізитами переносимо кнопку «Копіювати» під сам номер. */
@media (max-width: 540px) {
  .tabs {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius);
  }
  .tab { width: 100%; }
  .card-block {
    flex-direction: column;
    align-items: stretch;
  }
  .card-block .copy-btn { justify-content: center; }
}

.tab-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; } }

.panel-card {
  background: oklch(0.26 0.025 115);
  border: 1px solid oklch(0.4 0.03 115);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.panel-card h3 {
  font-size: 26px;
  color: var(--sand-100);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.panel-card p {
  color: oklch(0.82 0.02 110);
  font-size: 15px;
  margin-bottom: 20px;
}

.card-block {
  background: oklch(0.18 0.02 115);
  border: 1px solid oklch(0.4 0.03 115);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.card-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.7 0.025 110);
}
.card-block__value {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--sand-100);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.copy-btn {
  padding: 10px 14px;
  border-radius: 8px;
  background: oklch(0.34 0.03 115);
  color: var(--sand-100);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s ease;
}
.copy-btn:hover { background: oklch(0.4 0.035 115); }
.copy-btn.is-copied { background: var(--ua-blue); color: white; }

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.amount {
  padding: 14px 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--sand-100);
  background: oklch(0.2 0.02 115);
  border: 1px solid oklch(0.4 0.03 115);
  border-radius: 10px;
  transition: all .15s ease;
}
.amount:hover { border-color: var(--ua-yellow); color: var(--ua-yellow); }
.amount.is-active {
  background: var(--ua-yellow);
  color: var(--olive-900);
  border-color: var(--ua-yellow);
}

.needs-list { list-style: none; padding: 0; margin: 0 0 4px; }
.needs-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid oklch(0.32 0.025 115);
}
.needs-list li:last-child { border-bottom: 0; }
.needs-list .need-name { color: var(--sand-100); font-size: 15px; }
.needs-list .need-name small { display: block; color: oklch(0.7 0.025 110); font-size: 12.5px; margin-top: 3px; }
.needs-list .need-bar {
  width: 110px; height: 6px; border-radius: 999px;
  background: oklch(0.22 0.02 115); overflow: hidden;
  position: relative;
}
.needs-list .need-bar i {
  display: block; height: 100%;
  background: var(--ua-yellow);
  border-radius: 999px;
}
.needs-list .need-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: oklch(0.78 0.025 110);
  min-width: 36px; text-align: right;
}

.location-card {
  background: oklch(0.26 0.025 115);
  border: 1px solid oklch(0.4 0.03 115);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 18px, oklch(0.4 0.04 115 / 0.5) 18px 19px),
    repeating-linear-gradient(-45deg, transparent 0 18px, oklch(0.4 0.04 115 / 0.5) 18px 19px);
  opacity: 0.4;
  pointer-events: none;
}
.location-card > * { position: relative; z-index: 1; }
.location-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ua-yellow);
}
.location-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ua-yellow);
  animation: pulse 2.4s infinite;
}
.location-card h4 {
  color: var(--sand-100);
  font-family: var(--font-display);
  font-size: 22px;
  margin: 14px 0 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.location-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.location-meta li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: oklch(0.85 0.02 110);
}
.location-meta li strong { color: var(--sand-100); display: block; font-weight: 500; }
.location-meta li small { color: oklch(0.7 0.025 110); font-size: 12px; }
.location-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: oklch(0.78 0.02 110);
}

/* Прогрес банки monobank — числа підставляє script.js */
.jar { margin: 0 0 18px; }
.jar__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.jar__amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--sand-100);
}
.jar__percent {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ua-yellow);
}
.jar__bar {
  height: 8px;
  border-radius: 999px;
  background: oklch(0.18 0.02 115);
  border: 1px solid oklch(0.4 0.03 115);
  overflow: hidden;
}
.jar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ua-blue), var(--ua-yellow));
  transition: width .6s ease;
}
.jar__goal {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.7 0.025 110);
}

/* === Gallery (masonry) === */
.gallery {
  /* Не більше трьох колонок: на широкому екрані плитка виходить ~400px
     і фото справді видно. Вузькі екрани самі падають до 2 і 1 колонки,
     бо 220px — мінімальна ширина колонки. */
  columns: 3 220px;
  column-gap: 14px;
}
/* Плитки без фото ховаємо: photos.js вішає .has-photo на ті, що заповнились,
   тож зайві сірі заглушки не висять у сітці, а нове фото в images/gallery/
   само проявляє наступну плитку. */
.gallery__item:has(.placeholder-photo:not(.has-photo)) { display: none; }
.gallery__item {
  break-inside: avoid;
  margin: 0 0 14px;            /* figure за замовчуванням має ще й 40px з боків */
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--olive-700);
}
.gallery__item .placeholder-photo {
  position: relative;
  width: 100%;
  height: auto;
}
.gallery__item .placeholder-photo {
  aspect-ratio: var(--ar, 3/4);
}
.gallery__caption {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sand-100);
  background: oklch(0.18 0.02 115 / 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* === Footer === */
.footer {
  background: var(--olive-900);
  color: oklch(0.85 0.02 110);
  padding: 72px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 24px, oklch(0.35 0.04 115 / 0.4) 24px 25px),
    repeating-linear-gradient(-45deg, transparent 0 24px, oklch(0.35 0.04 115 / 0.4) 24px 25px);
  opacity: 0.5;
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand-100);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ua-yellow); }
.footer a { font-size: 14.5px; transition: color .15s; }

.footer-brand p {
  margin-top: 16px;
  font-size: 14.5px;
  color: oklch(0.78 0.025 110);
  max-width: 38ch;
}
.footer .brand { color: var(--sand-100); }
.footer .brand__mark { box-shadow: 0 0 0 1px oklch(1 0 0 / 0.18); }
.footer .brand__sub { color: oklch(0.72 0.025 110); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid oklch(0.36 0.03 115);
  font-size: 13px;
  color: oklch(0.7 0.025 110);
  gap: 16px;
  flex-wrap: wrap;
}

.social {
  display: flex; gap: 8px;
}
.social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: oklch(0.26 0.025 115);
  color: var(--sand-100);
  transition: background .2s ease;
}
.social a:hover { background: var(--ua-blue); }

/* === Tiny details === */
.icon {
  width: 28px; height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 36px; height: 36px; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sand-100);
  font-size: 12.5px;
  color: var(--olive-700);
  border: 1px solid var(--line);
}

.urgency-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: var(--olive-900);
  color: var(--sand-100);
  border-radius: 999px;
  font-size: 14px;
  margin-top: 28px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
}
.urgency-strip .pulse { background: var(--ua-yellow); animation: pulse 1.6s infinite; }
.urgency-strip strong { color: var(--ua-yellow); font-weight: 600; }
