/* =========================================================
   Free Ukraine Fund — homepage prototype v2
   Visual system follows koloua.com (owner's reference):
   e-Ukraine Head 700 headings + Manrope text, pill buttons (r 32),
   cards r 24, panels r 40, sections 80px, container 1440.
   Brand colours from the FUF logo. Shield mask kept for the hero.
   ========================================================= */

@font-face { font-family: "e-Ukraine Head"; src: url("../fonts/e-UkraineHead-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "e-Ukraine Head"; src: url("../fonts/e-UkraineHead-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "e-Ukraine Head"; src: url("../fonts/e-UkraineHead-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #111111;
  --text: #000000;
  --slate: #3e5065;          /* secondary text (Kolo) */
  --white: #ffffff;
  --grey: #f9f9f9;           /* panels / grey sections (Kolo) */
  --border: #e7e9ef;         /* 2px button borders, card borders (Kolo) */
  --yellow: #f5c51a;         /* FUF logo yellow — donate */
  --yellow-soft: rgba(255, 221, 0, .24);
  --blue: #1466f5;           /* FUF logo blue — get help */
  --blue-dark: #0d52d1;
  --blue-soft: rgba(20, 102, 245, .08);

  --f-head: "e-Ukraine Head", "Manrope", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, sans-serif;

  --container: 1440px;
  --pad-x: 16px;
  --section-y: 80px;
  --r-btn: 32px;
  --r-card: 24px;
  --r-panel: 40px;
  --r-tile: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/24px var(--f-text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section--grey { background: var(--grey); }
.panel { background: var(--grey); border-radius: var(--r-panel); }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- media: fixed ratio, any upload fits ---------- */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4/3); background: var(--grey); border-radius: var(--r-card); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); }

.shield {
  border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 8Q0 0 8 0H92Q100 0 100 8V74C100 95 78 106 50 120C22 106 0 95 0 74Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 8Q0 0 8 0H92Q100 0 100 8V74C100 95 78 106 50 120C22 106 0 95 0 74Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- type (Kolo scale) ---------- */
.h2 { font: 700 64px/1.3 var(--f-head); }
.h3 { font: 700 24px/32px var(--f-head); }
.lead { font: 400 24px/40px var(--f-text); color: var(--slate); }
.text { font: 400 20px/32px var(--f-text); color: var(--slate); }
.sub { font: 400 20px/32px var(--f-text); color: var(--slate); margin-top: 16px; }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; max-width: 1016px; margin-left: auto; margin-right: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--f-text); color: var(--slate); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.todo { text-decoration: underline dotted var(--yellow) 2px; text-underline-offset: 5px; }

/* ---------- buttons: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 10px 32px; border: 2px solid transparent; border-radius: var(--r-btn); font: 600 18px/1 var(--f-text); white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn--lg { height: 64px; min-width: 288px; padding: 0 32px; font-weight: 700; }
.btn--sm { height: 40px; padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .ico { width: 16px; height: 16px; }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--text); }
.btn--yellow:hover { background: #ffd43a; border-color: #ffd43a; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline { background: var(--white); border-color: var(--border); }
.btn--outline:hover { border-color: var(--text); }
.btn--outline-yellow { background: var(--white); border-color: var(--yellow); }
.btn--outline-yellow:hover { background: var(--yellow); }
.btn--black { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--black:hover { background: #2a2a2a; }
.btn--white { background: var(--white); border-color: var(--white); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: auto; }
.brand__word { font: 700 10px/1.1 var(--f-head); letter-spacing: .24em; text-transform: uppercase; }
.nav { display: flex; gap: 36px; margin: 0 auto; font: 400 14px/20px var(--f-text); }
.nav a:hover { color: var(--blue); }
.site-header__actions { display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero { padding-top: 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.hero__kicker { display: flex; align-items: center; gap: 10px; font: 600 16px/24px var(--f-text); color: var(--slate); margin-bottom: 24px; }
.flag { width: 22px; height: 16px; border-radius: 4px; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); }
.hero__title { font: 700 72px/1.2 var(--f-head); }
.hero .lead { margin-top: 24px; max-width: 680px; }
.hero__backers { display: flex; align-items: center; gap: 28px; margin-top: 48px; }
.hero__backers span { font: 400 14px/20px var(--f-text); color: var(--slate); }
.hero__backers img { height: 36px; width: auto; }
.hero__media { position: relative; }
.hero__media .shield { --ratio: 5/6; }
.hero__caption { position: absolute; right: -8px; bottom: 26%; background: var(--white); border-radius: var(--r-btn); padding: 10px 18px; font: 600 14px/20px var(--f-text); box-shadow: 0 8px 24px rgba(17, 17, 17, .08); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--r-card); background: var(--yellow-soft); }
.stat b { flex: none; font: 500 64px/1 var(--f-head); letter-spacing: -.02em; }
.stat p { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font: 600 16px/22px var(--f-text); }
.stat span { font: 600 14px/20px var(--f-text); color: rgba(0, 0, 0, .4); }

/* ---------- audience strip ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--border); }
.strip__track { display: flex; align-items: center; gap: 32px; width: max-content; padding: 28px 0; font: 700 32px/1 var(--f-head); white-space: nowrap; animation: strip 45s linear infinite; }
.strip__track i { width: 14px; height: 17px; flex: none; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V74C100 95 78 106 50 120C22 106 0 95 0 74Z'/%3E%3C/svg%3E") center/100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V74C100 95 78 106 50 120C22 106 0 95 0 74Z'/%3E%3C/svg%3E") center/100% 100%; }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; padding: 80px; }
.about .lead { margin-top: 24px; color: var(--text); }
.about .text { margin-top: 20px; }
.about .btn { margin-top: 40px; }
.about__media { --ratio: 1/1; }

/* ---------- help directions: bento (4 tiles + photo) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(340px, auto)); gap: 16px; grid-template-areas: "law psy photo photo" "reh hum photo photo"; }
.svc--law { grid-area: law; } .svc--psy { grid-area: psy; } .svc--reh { grid-area: reh; } .svc--hum { grid-area: hum; }
.svc { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px; border-radius: var(--r-card); background: var(--grey); transition: background-color .3s; }
.svc:hover { background: var(--yellow-soft); }
.svc__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); transition: background-color .3s; }
.svc:hover .svc__icon { background: var(--yellow); }
.svc__icon svg { width: 26px; height: 26px; }
.svc__title { font: 700 28px/34px var(--f-head); }
.svc__text { margin-top: 12px; font: 400 16px/24px var(--f-text); color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips li { padding: 6px 12px; border-radius: var(--r-btn); background: var(--white); font: 600 13px/18px var(--f-text); }
.help-photo { grid-area: photo; position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 560px; }
.help-photo__img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.help-photo__card { position: absolute; left: 20px; bottom: 20px; max-width: 540px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px 32px; border-radius: 20px; background: var(--blue); color: var(--white); }
.help-photo__title { font: 700 28px/34px var(--f-head); }
.help-photo__text { margin: 8px 0 24px; font: 400 16px/24px var(--f-text); color: rgba(255, 255, 255, .85); max-width: 460px; }

/* ---------- team ---------- */
.team { padding: 96px 0; overflow: hidden; }
.team .section-head { padding: 0 80px; }
/* Auto-scrolling team carousel: JS duplicates the list once, track moves -50% in a loop. */
.people { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.people__track { display: flex; gap: 24px; width: max-content; padding: 0 12px; animation: people 60s linear infinite; }
.people:hover .people__track { animation-play-state: paused; }
@keyframes people { to { transform: translateX(-50%); } }
.person { flex: none; width: 216px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.person__photo { width: 176px; aspect-ratio: 1; border-radius: 50%; margin: 0 0 20px; background: #e9ecf2; }
.person b { font: 600 18px/28px var(--f-text); }
.person > span:last-child { font: 400 16px/22px var(--f-text); color: var(--slate); }

/* ---------- projects ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.feature__media { border-radius: 0; aspect-ratio: auto; min-height: 520px; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px; }
.feature__title { font: 700 48px/1.3 var(--f-head); }
.feature__body .text { font-size: 18px; line-height: 28px; }
.feature__partners { display: flex; align-items: center; gap: 28px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); align-self: stretch; margin-top: auto; }
.feature__partners img { height: 36px; width: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.card__media { border-radius: 0; --ratio: 16/9; }
.card__media img { transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; flex: 1; }
.card__text { font: 400 16px/22px var(--f-text); color: var(--slate); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.card .btn { margin-top: auto; }
.cards:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- donate CTA banner (homepage) ---------- */
.cta-banner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; background: var(--yellow); border-radius: var(--r-panel); overflow: hidden; }
.cta-banner__body { padding: 80px 24px 80px 80px; display: flex; flex-direction: column; justify-content: center; }
.cta-banner .lead { margin-top: 24px; color: var(--text); max-width: 640px; }
.cta-banner { padding: 24px; }
.cta-banner__body { padding-block: 56px; padding-left: 56px; }
.cta-banner__media { --ratio: auto; align-self: stretch; min-height: 440px; margin: 0; border-radius: 24px; }

/* ---------- donate page (Kolo section--primary) ---------- */
.donate { background: var(--yellow); }
.donate__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.donate .lead { margin-top: 24px; color: var(--text); max-width: 640px; }
.donate__media { --ratio: 4/5; border-radius: var(--r-panel); }
.req { margin-top: 48px; background: var(--white); border-radius: var(--r-card); padding: 8px; max-width: 680px; }
.req__tabs { display: flex; gap: 4px; padding: 4px; background: var(--grey); border-radius: var(--r-btn); }
.req__tabs button { flex: 1; height: 44px; border: 0; border-radius: var(--r-btn); background: none; font: 600 16px/1 var(--f-text); color: var(--slate); cursor: pointer; }
.req__tabs .is-active { background: var(--black); color: var(--white); }
.req__rows { padding: 8px 24px 12px; }
.req__rows div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; }
.req__rows div + div { border-top: 1px solid var(--border); }
.req__rows dt { font: 400 14px/20px var(--f-text); color: var(--slate); }
.req__rows dd { font: 600 16px/24px var(--f-text); }
.copy { height: 36px; padding: 0 16px; border: 2px solid var(--border); border-radius: var(--r-btn); background: var(--white); font: 600 14px/1 var(--f-text); cursor: pointer; }
.copy:hover { border-color: var(--text); }

/* ---------- partners ---------- */
.logos .is-clone { display: none; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.logos li { display: flex; align-items: center; justify-content: center; height: 220px; padding: 40px 48px; background: var(--white); border-radius: var(--r-tile); }
.logos img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 24px; padding: 40px 48px; background: var(--white); border-radius: var(--r-tile); }
.join .text { margin-top: 8px; font-size: 18px; line-height: 28px; max-width: 720px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contacts .lead { margin-top: 24px; }
.contact-list { margin-top: 40px; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; padding: 18px 24px; background: var(--grey); border-radius: var(--r-tile); }
.contact-list span { font: 400 14px/20px var(--f-text); color: var(--slate); }
.contact-list a, .contact-list b { font: 600 18px/28px var(--f-text); }
.contact-list a:hover { color: var(--blue); }
.form { display: flex; flex-direction: column; gap: 24px; padding: 48px; border-radius: var(--r-panel); background: var(--grey); }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font: 600 14px/20px var(--f-text); padding: 0; }
.field input, .field textarea { height: 56px; padding: 0 20px; border: 2px solid var(--border); border-radius: var(--r-tile); background: var(--white); font: 400 16px/24px var(--f-text); outline: none; transition: border-color .2s; }
.field textarea { height: auto; padding: 16px 20px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #8a96a6; }
.field--choice { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.field--choice legend { margin-bottom: 8px; }
.field--choice input { position: absolute; opacity: 0; pointer-events: none; }
.field--choice span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 2px solid var(--border); border-radius: var(--r-btn); background: var(--white); font: 600 14px/1 var(--f-text); cursor: pointer; transition: .2s; }
.field--choice input:checked + span { background: var(--yellow); border-color: var(--yellow); }
/* Topic: pills on desktop, native dropdown on mobile (one control is shown at a time) */
.field--select { display: none; }
.field--select.field--always { display: flex; }
.field select { height: 56px; padding: 0 48px 0 20px; border: 2px solid var(--border); border-radius: var(--r-tile); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center / 16px no-repeat; font: 400 16px/24px var(--f-text); color: var(--text); -webkit-appearance: none; appearance: none; outline: none; transition: border-color .2s; }
.field select:focus { border-color: var(--blue); }
.form__note { font: 400 14px/20px var(--f-text); color: var(--slate); text-align: center; }

/* ---------- footer (Kolo: big yellow block + dark bar) ---------- */
.footer__main { background: var(--yellow); padding: 120px 0 128px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.footer__block + .footer__block { margin-top: 56px; }
.footer__title { font: 700 24px/32px var(--f-text); }
.footer__main .btn-row { margin-top: 40px; }
.footer__text { margin-top: 16px; font: 400 18px/28px var(--f-text); max-width: 548px; }
.footer__info { margin: 32px 0 48px; display: flex; flex-direction: column; gap: 32px; }
.footer__info dt { font: 600 20px/28px var(--f-text); }
.footer__info dd { margin-top: 8px; font: 400 18px/28px var(--f-text); }
.footer__info a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.footer__bar { background: var(--black); color: var(--white); padding: 40px 0; }
.footer__bar-inner { display: flex; align-items: center; gap: 32px; }
.footer__copy { font: 400 14px/20px var(--f-text); color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; gap: 32px; margin-left: auto; font: 400 14px/20px var(--f-text); color: rgba(255, 255, 255, .8); }
.footer__nav a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.footer__social a:hover { background: var(--yellow); color: var(--text); }
.footer__social svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: "photo photo" "law psy" "reh hum"; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding: 0 var(--pad-x) 4px; scroll-padding-inline: var(--pad-x); }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 calc(45% - 12px); scroll-snap-align: start; }
  .cta-banner__body { padding: 32px 16px 32px 24px; }
  .footer__grid { gap: 48px; }
}
@media (max-width: 900px) {
  :root { --section-y: 56px; }
  .h2 { font-size: 36px; }
  .hero__title { font-size: 40px; }
  .lead { font-size: 18px; line-height: 28px; }
  .text, .sub { font-size: 17px; line-height: 26px; }
  .btn { height: 52px; padding: 10px 24px; font-size: 16px; }
  .site-header .btn--outline { display: none; }
  .hero { padding-top: 32px; }
  .hero__grid, .about, .feature, .donate__grid, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .hero__backers { flex-wrap: wrap; gap: 16px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { padding: 16px 20px; gap: 16px; }
  .stat b { font-size: 48px; width: 40px; }
  .btn--lg { height: 56px; min-width: 0; width: 100%; }
  .strip__track { font-size: 22px; padding: 20px 0; }
  .about { padding: 40px 20px; border-radius: var(--r-card); }
  .team { padding: 40px 0; border-radius: var(--r-card); }
  .team .section-head { padding: 0 20px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "photo" "law" "psy" "reh" "hum"; gap: 12px; }
  .svc { position: relative; padding: 24px 20px; }
  .svc .svc__icon { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; }
  .svc .svc__icon svg { width: 22px; height: 22px; }
  .svc__title { padding-right: 56px; }
  .svc__text { margin-top: 8px; }
  .chips { margin-top: 16px; }
  .svc__title, .help-photo__title { font-size: 24px; line-height: 30px; }
  .help-photo { min-height: 0; background: var(--blue); }
  .help-photo__img { position: relative; aspect-ratio: 4/3; }
  .help-photo__card { position: static; padding: 24px 20px; border-radius: 0; }
  .help-photo__card .btn { width: 100%; }
  .people__track { gap: 12px; padding: 0 6px; animation-duration: 45s; }
  .person { width: 168px; }
  .person b { font-size: 16px; line-height: 24px; }
  .person > span:last-child { font-size: 14px; line-height: 20px; }
  .feature__media { min-height: 0; aspect-ratio: 16/10; }
  .feature__body { padding: 28px 20px; }
  .feature__title { font-size: 32px; }
  .feature__partners { gap: 16px; flex-wrap: wrap; }
  .card { flex-basis: 82%; }
  .cards { gap: 12px; }
  .cta-banner { grid-template-columns: 1fr; border-radius: var(--r-card); }
  .cta-banner { padding: 12px; }
  .cta-banner__body { padding: 28px 12px 24px; }
  .cta-banner__media { min-height: 0; aspect-ratio: 4/3; border-radius: 16px; }
  .btn--lg { white-space: normal; text-align: center; }
  /* partners: endless marquee on mobile */
  .logos-viewport { overflow: hidden; margin-inline: calc(var(--pad-x) * -1); }
  .logos { display: flex; width: max-content; gap: 12px; padding: 0 6px; animation: people 18s linear infinite; }
  .logos .is-clone { display: flex; }
  .logos li { width: 220px; height: 120px; padding: 24px 28px; }
  .join { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
  .req__rows { padding: 8px 12px; }
  .req__rows div { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .req__rows dt { grid-column: 1 / -1; }
  .req__rows dd { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 28px 20px; border-radius: var(--r-card); }
  .footer__main { padding: 72px 0 80px; }
  .footer__grid { grid-template-columns: 1fr; gap: 56px; }
  .footer__title { font-size: 20px; line-height: 28px; }
  .footer__main .btn-row { flex-direction: column; align-self: stretch; }
  .footer__info dt { font-size: 18px; }
  .footer__info dd { font-size: 16px; line-height: 24px; }
  .footer__bar-inner { flex-wrap: wrap; gap: 20px; }
  .footer__nav { margin: 0; flex-wrap: wrap; gap: 12px 24px; order: 3; width: 100%; }
}

/* ---------- mobile v2.5: smaller type, one projects carousel, centred blocks ---------- */
@media (max-width: 900px) {
  :root { --section-y: 48px; }
  body { font-size: 15px; line-height: 24px; }
  .h2 { font-size: 30px; line-height: 1.25; }
  .section-head { margin-bottom: 32px; }
  .hero__title { font-size: 34px; line-height: 1.15; }
  .lead { font-size: 16px; line-height: 26px; }
  .text, .sub { font-size: 15px; line-height: 24px; }
  .sub { margin-top: 12px; }
  .btn { height: 48px; padding: 0 20px; font-size: 15px; }
  .btn--lg { height: 52px; }
  .btn-row { margin-top: 28px; gap: 10px; }
  .hero__kicker { font-size: 14px; margin-bottom: 16px; }
  .hero__backers { margin-top: 32px; }
  .hero__backers img { height: 30px; }
  .hero__caption { font-size: 12px; padding: 8px 14px; }
  .stat b { font-size: 40px; }
  .stat strong { font-size: 15px; line-height: 20px; }
  .stat span { font-size: 13px; line-height: 18px; }
  .strip__track { font-size: 18px; padding: 16px 0; gap: 20px; }
  .about .btn { margin-top: 28px; }
  .svc__title { font-size: 20px; line-height: 26px; }
  .help-photo__title { font-size: 22px; line-height: 28px; }
  .svc__text, .help-photo__text { font-size: 14px; line-height: 22px; }
  .chips li { font-size: 12px; padding: 5px 10px; }

  /* team: more air between people */
  .people__track { gap: 24px; padding: 0 12px; }
  .person { width: 140px; }
  .person__photo { width: 128px; margin-bottom: 14px; }
  .person b { font-size: 15px; line-height: 22px; }
  .person > span:last-child { font-size: 13px; line-height: 18px; }

  /* projects: running project + others in one swipe carousel */
  .projects-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding: 0 var(--pad-x) 4px; scroll-padding-inline: var(--pad-x); }
  .projects-rail::-webkit-scrollbar { display: none; }
  .projects-rail .cards { display: contents; }
  .projects-rail .feature, .projects-rail .card { flex: 0 0 82%; scroll-snap-align: start; margin: 0; }
  .feature { display: flex; flex-direction: column; gap: 0; }
  .feature__media { aspect-ratio: 16/9; min-height: 0; }
  .feature__body { padding: 20px 20px 24px; gap: 8px; flex: 1; }
  .feature__title { font-size: 20px; line-height: 26px; }
  .feature__body .text { font-size: 14px; line-height: 22px; }
  .feature__partners { gap: 14px; padding: 12px 0; margin: 8px 0 12px; }
  .feature__partners img { height: 24px; }
  .feature__body .btn { width: 100%; margin-top: auto; }
  .card .h3 { font-size: 20px; line-height: 26px; }
  .card__body { padding: 20px 20px 24px; }
  .card__text { font-size: 14px; line-height: 22px; }
  .center { margin-top: 28px; }

  .cta-banner__body { text-align: center; align-items: center; }
  .cta-banner .btn-row { justify-content: center; align-self: stretch; }
  .join { align-items: center; text-align: center; }
  .join .text { font-size: 14px; line-height: 22px; }
  .join .btn { width: 100%; }
  .contact-list a, .contact-list b { font-size: 16px; line-height: 24px; }
  .contact-list li { padding: 14px 20px; }
  .form { gap: 18px; }
  .field input { height: 48px; font-size: 15px; }
  .field--choice { display: none; }
  .field--select { display: flex; }
  .field select { height: 48px; font-size: 15px; }

  /* centred blocks (mobile only) */
  .hero__copy, .about__text, .contacts__info { text-align: center; }
  .hero__kicker, .hero__backers, .hero__copy .btn-row { justify-content: center; }
  .footer__col { align-items: center; text-align: center; }
  .footer__bar-inner { justify-content: center; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__title { font-size: 18px; line-height: 26px; }
  .footer__text { font-size: 15px; line-height: 24px; }
  .footer__info dt { font-size: 16px; line-height: 24px; }
  .footer__info dd { font-size: 15px; line-height: 22px; margin-top: 4px; }
  .footer__info { gap: 20px; margin: 24px 0 32px; }
  .footer__main { padding: 64px 0 72px; }
  .footer__grid { gap: 48px; }
}

/* =====================================================================
   INNER PAGES (about, projects, project, partnership, contacts, donate)
   ===================================================================== */
.nav a[aria-current="page"] { font-weight: 700; }

/* page hero: breadcrumbs + title + lead (Kolo inner pages are centred) */
.page-hero { padding: 56px 0 var(--section-y); text-align: center; }
.crumbs { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font: 400 14px/20px var(--f-text); color: var(--slate); margin-bottom: 24px; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b8c0cc; }
.page-title { font: 700 64px/1.2 var(--f-head); max-width: 1016px; margin: 0 auto; }
.page-hero .lead { max-width: 820px; margin: 24px auto 0; }
.page-hero .btn-row { justify-content: center; }
.crumbs--left { justify-content: flex-start; }
.donate .crumbs, .donate .crumbs li + li::before { color: rgba(0, 0, 0, .55); }
.page-donate .donate { padding-top: 40px; }
.page-hero__media { --ratio: 21/9; margin-top: 56px; border-radius: var(--r-panel); }

/* text + photo split */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; }
.split--rev .split__media { order: -1; }
.split .lead { margin-top: 24px; color: var(--text); }
.split .text { margin-top: 20px; }
.split__media { --ratio: 4/5; border-radius: var(--r-panel); }

/* generic tile grids (reuse .svc tiles from the homepage bento) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles .svc { min-height: 300px; }

/* gallery: fixed cells + object-fit cover, any photo ratio is safe */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 16px; }
.gallery__item { --ratio: auto; height: 100%; }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item img { transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }

/* projects archive */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { height: 44px; padding: 0 20px; border: 2px solid var(--border); border-radius: var(--r-btn); background: var(--white); font: 600 15px/1 var(--f-text); cursor: pointer; }
.filters .is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 16px; border: 2px solid var(--border); border-radius: var(--r-btn); font: 600 15px/1 var(--f-text); }
.pager [aria-current] { background: var(--yellow); border-color: var(--yellow); }

/* single project: meta + editor content (prose) */
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.meta li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-btn); background: var(--grey); font: 600 14px/1 var(--f-text); }
.prose { max-width: 800px; margin: 0 auto; font: 400 18px/30px var(--f-text); color: #1f2a37; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font: 700 36px/1.3 var(--f-head); color: var(--text); }
.prose h3 { margin-top: 40px; font: 700 24px/32px var(--f-head); color: var(--text); }
.prose .lead { color: var(--text); }
.prose ul { display: grid; gap: 10px; padding: 0; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 14px; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); clip-path: path("M0 0H12V8.6C12 11 9.4 12.4 6 14C2.6 12.4 0 11 0 8.6Z"); }
.prose blockquote { margin: 40px 0; padding: 32px 40px; border-radius: var(--r-card); background: var(--yellow-soft); font: 500 24px/36px var(--f-head); color: var(--text); }
.prose blockquote cite { display: block; margin-top: 16px; font: 600 14px/20px var(--f-text); font-style: normal; color: var(--slate); }
.prose figure { margin: 40px 0; }
.prose figure .media { --ratio: 16/9; }
.prose figcaption { margin-top: 12px; font: 400 14px/20px var(--f-text); color: var(--slate); text-align: center; }
.prose .btn-row { margin-top: 32px; }
.prose a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.wide { max-width: 1120px; margin: 40px auto; }
.video { position: relative; display: block; --ratio: 16/9; }
.video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); transition: scale .2s; }
.video:hover .video__play { scale: 1.08; }
.video__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video__label { position: absolute; z-index: 1; left: 24px; bottom: 20px; color: var(--white); font: 600 16px/24px var(--f-text); }
.share { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); font: 600 14px/20px var(--f-text); color: var(--slate); }
.share a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grey); color: var(--text); }
.share svg { width: 20px; height: 20px; }
.project-partners { display: flex; justify-content: center; align-items: center; gap: 40px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--border); }
.project-partners span { font: 400 14px/20px var(--f-text); color: var(--slate); }
.project-partners img { height: 48px; width: auto; }

/* contacts page */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 32px; justify-content: space-between; min-height: 220px; padding: 28px; border-radius: var(--r-card); background: var(--grey); }
.contact-card div > span { display: block; font: 400 14px/20px var(--f-text); color: var(--slate); }
.contact-card b, .contact-card .v { display: block; margin-top: 4px; font: 700 22px/30px var(--f-head); word-break: break-word; }
.contact-card .svc__icon { width: 48px; height: 48px; }
.contact-card--accent { background: var(--blue); color: var(--white); }
.contact-card--accent div > span { color: rgba(255, 255, 255, .8); }
.contact-card--accent .svc__icon { background: rgba(255, 255, 255, .16); color: var(--white); }

/* donate page */
.donate-hero { background: var(--yellow); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.donate-hero .crumbs, .donate-hero .crumbs li + li::before { color: rgba(0, 0, 0, .55); }
.donate-hero .lead { color: var(--text); }
.amounts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.amounts span { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--r-btn); background: var(--white); font: 700 16px/1 var(--f-text); }
.req-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.req-grid .req { margin: 0; max-width: none; padding: 12px; background: var(--grey); }
.req-grid .req__tabs { background: var(--white); }
.req-note { margin-top: 24px; padding: 20px 24px; border-radius: var(--r-tile); background: var(--yellow-soft); font: 400 15px/24px var(--f-text); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; border-radius: var(--r-card); background: var(--white); }
.way .svc__icon { background: var(--grey); margin-bottom: 12px; }
.way h3 { font: 700 24px/32px var(--f-head); }
.way p { font: 400 16px/24px var(--f-text); color: var(--slate); }
.way .btn { margin-top: auto; }

/* section heading aligned left with a side note */
.section-head--split { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-head--split .sub { max-width: 520px; margin: 0; }

@media (max-width: 1200px) {
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 48px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page-hero { padding-top: 32px; }
  .crumbs { font-size: 13px; margin-bottom: 16px; }
  .page-title { font-size: 34px; line-height: 1.15; }
  .page-hero .lead { margin-top: 16px; }
  .page-hero__media { --ratio: 4/3; margin-top: 32px; border-radius: var(--r-card); }
  .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .split--rev .split__media { order: 0; }
  .split__media { --ratio: 4/3; border-radius: var(--r-card); }
  .tiles, .tiles--4, .ways, .cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .tiles .svc { min-height: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .gallery__item { border-radius: 16px; }
  .gallery__item:nth-child(n+8) { display: none; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding: 0 var(--pad-x); margin-bottom: 24px; }
  .filters button { flex: none; height: 40px; font-size: 14px; }
  .pager { margin-top: 32px; }
  .pager a { min-width: 40px; height: 40px; font-size: 14px; }
  .meta { margin-top: 16px; }
  .meta li { height: 32px; font-size: 13px; }
  .prose { font-size: 15px; line-height: 25px; }
  .prose h2 { margin-top: 40px; font-size: 24px; }
  .prose h3 { margin-top: 28px; font-size: 20px; line-height: 26px; }
  .prose blockquote { padding: 24px 20px; font-size: 18px; line-height: 28px; }
  .prose ul li::before { top: 6px; }
  .wide { margin: 28px 0; }
  .video__play { width: 64px; height: 64px; }
  .video__label { left: 16px; bottom: 12px; font-size: 14px; }
  .project-partners { flex-wrap: wrap; gap: 20px; padding: 24px 16px; }
  .project-partners span { width: 100%; text-align: center; }
  .project-partners img { height: 34px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .contact-card { min-height: 0; gap: 16px; padding: 20px 16px; }
  .contact-card b, .contact-card .v { font-size: 15px; line-height: 21px; }
  .contact-card .svc__icon { width: 40px; height: 40px; }
  .contact-card--accent { grid-column: 1 / -1; }
  .contact-card:last-child { grid-column: 1 / -1; }
  .req-grid { grid-template-columns: 1fr; gap: 24px; }
  .req-grid > div:first-child { text-align: center; }
  .amounts span { height: 38px; padding: 0 14px; font-size: 14px; }
  .way { padding: 24px 20px; align-items: center; text-align: center; }
  .way .svc__icon { margin-bottom: 4px; }
  .way h3 { font-size: 20px; line-height: 26px; }
  .way .btn { width: 100%; }
  .section-head--split { display: block; text-align: center; }
  .section-head--split .sub { margin: 12px auto 0; }
  .donate-hero { border-radius: 0 0 var(--r-card) var(--r-card); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .people__track, .logos { animation: none; }
  .people { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; }
}
html.is-static .site-header { position: relative; }
html.is-static .people__track, html.is-static .logos { animation: none; }
html.is-static { scrollbar-width: none; }
html.is-static::-webkit-scrollbar { display: none; }

/* =========================================================
   v0.0.2 — grey page background (client feedback, 25.11.2026)
   Page sits on #f3f3f3; cards/panels become white surfaces with
   a hairline border + soft shadow so they read clearly on grey.
   Nested pills/icons inside white surfaces switch to the page grey.
   ========================================================= */
:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --line: rgba(17, 17, 17, .07);
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 16px 40px -20px rgba(17, 17, 17, .14);
  --yellow-tint: #fff4c4;     /* opaque version of --yellow-soft (no muddy blend on grey) */
}
body { background: var(--bg); }
.site-header { background: rgba(243, 243, 243, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.section--grey { background: transparent; }
.strip { border-color: var(--line); }

.panel, .svc, .contact-card, .form, .contact-list li, .join, .logos li, .way,
.card, .feature, .req, .project-partners, .pager a, .meta li, .share a {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.svc:hover { background: var(--surface); border-color: var(--yellow); }
.stat, .prose blockquote { background: var(--yellow-tint); border: 1px solid rgba(245, 197, 26, .35); box-shadow: var(--shadow); }

/* nested elements on white surfaces */
.svc__icon, .chips li, .req__tabs, .way .svc__icon { background: var(--bg); }
.svc:hover .svc__icon { background: var(--yellow); }
.req-grid .req { background: var(--surface); }
.req-grid .req__tabs { background: var(--bg); }
.contact-card--accent { background: var(--blue); border-color: var(--blue); }
.field input, .field textarea, .field select, .field--choice span { border-color: #e3e5ea; }

/* =========================================================
   v0.0.3 — yellow frames (client feedback, 26.11.2026)
   Block borders switch from grey hairline to the FUF yellow.
   Blocks whose photo runs to the edge (project cards, feature,
   help photo, video) get the same frame: yellow border, then photo.
   ========================================================= */
:root { --frame: 1px solid var(--yellow); }
.panel, .svc, .form, .contact-card, .contact-list li, .join, .logos li, .way,
.card, .feature, .req, .project-partners, .help-photo, .video { border: var(--frame); }
.svc:hover { border-color: var(--yellow); background: var(--yellow-tint); }
.contact-card--accent { border-color: var(--blue); }
.stat, .prose blockquote { border: var(--frame); }

/* =========================================================
   WordPress theme additions
   ========================================================= */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__done { padding: 16px 20px; border-radius: var(--r-tile); background: var(--yellow-tint); border: var(--frame); font: 600 15px/22px var(--f-text); }
.form__done--error { background: #fff0f0; border-color: #e5484d; }
.logos li a { display: contents; }
.wp-site-blocks, main { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section--tight { padding-top: 0; }
.page-hero + .section--tight, .page-hero + .section { padding-top: 0; }

/* filters as links (WP archive) */
.filters a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 2px solid var(--border); border-radius: var(--r-btn); background: var(--white); font: 600 15px/1 var(--f-text); white-space: nowrap; transition: border-color .2s; }
.filters a:hover { border-color: var(--yellow); }
.filters a.is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.pager .dots { display: grid; place-items: center; min-width: 32px; }
.meta li a:hover { text-decoration: underline; }
.share a.is-copied { background: var(--yellow); }
@media (max-width: 767px) {
  .filters a { flex: none; height: 40px; font-size: 14px; }
}

/* Gutenberg core blocks inside .prose (project pages, plain pages) */
.prose .wp-block-image { margin: 40px 0; }
.prose .wp-block-image img { width: 100%; height: auto; border-radius: var(--r-card); }
.prose .wp-block-image figcaption, .prose .wp-element-caption { margin-top: 12px; font: 400 14px/20px var(--f-text); color: var(--slate); text-align: center; }
.prose .wp-block-quote { margin: 40px 0; padding: 32px 40px; border-radius: var(--r-card); background: var(--yellow-tint); border: var(--frame); box-shadow: var(--shadow); font: 500 24px/36px var(--f-head); color: var(--text); }
.prose .wp-block-quote p { margin: 0; }
.prose .wp-block-quote cite { display: block; margin-top: 16px; font: 600 14px/20px var(--f-text); font-style: normal; color: var(--slate); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 10px 32px; border: 2px solid var(--blue); border-radius: var(--r-btn); background: var(--blue); color: var(--white); font: 600 18px/1 var(--f-text); text-decoration: none !important; }
.prose .is-style-outline .wp-block-button__link { background: var(--white); border-color: var(--border); color: var(--text) !important; }
.prose a.wp-block-button__link { color: var(--white); }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 40px 0; }
.prose .wp-block-gallery .wp-block-image { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 16px; }
.prose .wp-block-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.prose .wp-block-embed { margin: 40px 0; }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r-card); border: var(--frame); }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose ol { padding-left: 24px; }
@media (max-width: 767px) {
  .prose .wp-block-quote { padding: 24px 20px; font-size: 18px; line-height: 28px; }
  .prose .wp-block-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .prose .wp-block-button__link { width: 100%; height: 48px; font-size: 16px; }
  .prose .wp-block-buttons { flex-direction: column; }
}

/* Icon colours set per block in the editor (CSS variables from fuf_icon_vars). */
.svc__icon { color: var(--icon-color, currentColor); background: var(--icon-bg, var(--bg)); transition: background-color .3s, color .3s; }
.svc:hover .svc__icon { color: var(--icon-color-hover, var(--icon-color, currentColor)); background: var(--icon-bg-hover, var(--yellow)); }
.way:hover .svc__icon { color: var(--icon-color-hover, var(--icon-color, currentColor)); background: var(--icon-bg-hover, var(--icon-bg, var(--bg))); }
.svc__icon .fuf-svg { display: contents; }
.svc__icon svg { overflow: visible; }

/* Thank-you popup after a form is sent */
.fuf-modal { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-card); background: transparent; }
.fuf-modal[open] { display: block; position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 100; }
.fuf-modal::backdrop { background: rgba(17, 17, 17, .55); backdrop-filter: blur(2px); }
.fuf-modal__box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px 32px; border-radius: var(--r-card); background: var(--white); border: var(--frame); text-align: center; box-shadow: 0 24px 60px rgba(17, 17, 17, .25); }
.fuf-modal__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); }
.fuf-modal__icon svg { width: 30px; height: 30px; }
.fuf-modal__title { font: 700 26px/32px var(--f-head); }
.fuf-modal__text { font: 400 16px/24px var(--f-text); color: var(--slate); }
.fuf-modal__box .btn { margin-top: 12px; min-width: 160px; }
.form [type="submit"]:disabled { opacity: .6; cursor: progress; }

/* Custom logo from «Налаштування сайту» */
.brand--custom { display: inline-flex; align-items: center; }
.brand__logo { display: block; width: auto; height: 44px; max-width: 220px; object-fit: contain; }
.footer__bar .brand__logo { height: 40px; }

/* «Широке фото» block (photo under a page hero or anywhere on a page) */
.section--photo { padding-top: 0; }
.page-hero:has(+ .section--photo) { padding-bottom: 56px; }
.wide-photo { margin: 0; }
.wide-photo__media { border-radius: var(--r-panel); }
.wide-photo figcaption { margin-top: 12px; font: 400 14px/20px var(--f-text); color: var(--slate); text-align: center; }
@media (max-width: 767px) {
  .page-hero:has(+ .section--photo) { padding-bottom: 32px; }
  .wide-photo { --ratio: 4/3 !important; }
  .wide-photo__media { border-radius: var(--r-card); }
}

/* Search & 404 */
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 32px auto 0; }
.search-form input { flex: 1; height: 56px; padding: 0 20px; border: 2px solid #e3e5ea; border-radius: var(--r-btn); background: var(--white); font: 400 16px/24px var(--f-text); }
.search-form input:focus { outline: none; border-color: var(--blue); }
.search-results { display: grid; gap: 12px; max-width: 960px; margin: 0 auto; }
.search-result:hover { border-color: var(--black); }
.page-hero--404 { padding-block: 120px 160px; }
@media (max-width: 767px) {
  .search-form { flex-direction: column; }
  .page-hero--404 { padding-block: 64px 96px; }
}

/* Client: yellow icons everywhere (27.11.2026) on a light blue circle (owner rejected black);
   on hover the circle turns yellow and the icon black. Per-block colours still override. */
:root { --icon-default: #ebb40c; --icon-default-bg: var(--yellow-tint); }
.svc__icon .fuf-ico path { stroke-width: 2; }
.svc__icon, .way .svc__icon, .contact-card:not(.contact-card--accent) .svc__icon {
  color: var(--icon-color, var(--icon-default));
  background: var(--icon-bg, var(--icon-default-bg));
}
.svc:hover .svc__icon, .way:hover .svc__icon, .contact-card:not(.contact-card--accent):hover .svc__icon {
  color: var(--icon-color-hover, var(--black));
  background: var(--icon-bg-hover, var(--yellow));
}

/* Gallery lightbox: click a photo → full-screen viewer, swipe/scroll, arrows, keys */
.gallery__item { cursor: zoom-in; }
html.has-lightbox { overflow: hidden; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, .97); color: var(--white); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; font: 600 15px/1 var(--f-text); }
.lightbox__track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 88px 24px; scroll-snap-align: center; margin: 0; min-width: 0; }
.lightbox__slide img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox__slide figcaption { font: 400 14px/20px var(--f-text); color: rgba(255, 255, 255, .75); text-align: center; }
.lightbox__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; transition: background-color .2s, color .2s; }
.lightbox__btn:hover { background: var(--yellow); color: var(--black); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__nav:disabled { opacity: .25; cursor: default; background: rgba(255, 255, 255, .12); color: var(--white); }
@media (max-width: 767px) {
  .lightbox__bar { padding: 12px 16px; }
  .lightbox__slide { padding: 0 0 16px; }
  .lightbox__slide img { border-radius: 0; max-height: calc(100dvh - 120px); }
  .lightbox__nav { display: none; }
}

/* Mobile menu (burger) — shown where the desktop nav is hidden (≤1200px) */
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--black); transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 100%); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 40px; min-height: 100%; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 700 26px/32px var(--f-head); }
.mobile-menu__nav a[aria-current="page"] { color: var(--blue); }
.mobile-menu__actions { display: grid; gap: 8px; }
.mobile-menu__mail { margin-top: auto; font: 600 16px/24px var(--f-text); color: var(--slate); text-align: center; }
html.menu-open { overflow: hidden; }
@media (max-width: 1200px) {
  .burger { display: inline-block; }
}
@media (max-width: 767px) {
  .mobile-menu__nav a { font-size: 22px; line-height: 28px; padding: 14px 0; }
  /* Projects carousel: a card is almost the container width, the next one just peeks out */
  .projects-rail .feature, .projects-rail .card { flex-basis: calc(100% - 28px); }
}
@media (max-width: 767px) {
  /* «Інші проєкти» under an article: same carousel card size as on the homepage */
  .cards .card { flex: 0 0 calc(100% - 28px); }
}

/* Standalone «Плитки з цифрами»: only the neighbours' section padding around it
   (was: neighbour padding + 64px margin + own bottom padding — too airy on mobile). */
.wp-block-fuf-stats { padding-top: 0; padding-bottom: 0; }
.wp-block-fuf-stats .stats { margin-top: 0; }

/* Email contact card: yellow instead of blue (owner, 27.11.2026) */
.contact-card--accent { background: var(--yellow); border-color: var(--yellow); color: var(--black); transition: background-color .2s; }
.contact-card--accent:hover { background: #ffd43a; }
.contact-card--accent div > span { color: rgba(17, 17, 17, .65); }
.contact-card--accent .svc__icon { background: var(--white); color: var(--black); }

/* «Про фонд» / «Чому з нами» panel: the photo fills the full height of the text column
   instead of shrinking into a small square when the screen gets narrower. */
.about { align-items: stretch; }
.about__media { aspect-ratio: auto; min-height: 420px; height: 100%; }
@media (max-width: 1200px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 48px; }
  .about__media { min-height: 360px; }
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .about__media { aspect-ratio: 4/3; min-height: 0; height: auto; }
}
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .about__media { aspect-ratio: 16/10; min-height: 0; height: auto; }
}
@media (max-width: 767px) {
  .about { padding: 40px 20px; }
  .about__media { aspect-ratio: 4/3; }
}
