/* AVASÉRT Egyesület – the public site.
   Follows the template the association chose (2026-10-27): an off-white ground, navy headings in heavy
   Figtree, one sunny yellow for the main actions, a dark forest green for the support banner, softly
   rounded cards, a few handwritten notes in Caveat and the troop's own photographs.
   On the home page the header floats over the opening photo, as on the Gajdócsi Webshop. */

/* ---------- fonts (self-hosted, no outside requests) ---------- */
@font-face { font-family: 'Bodoni Moda'; font-weight: 400 600; font-display: swap; src: url(/fonts/bodoni-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Bodoni Moda'; font-weight: 400 600; font-display: swap; src: url(/fonts/bodoni-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; font-display: swap; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA; }
@font-face { font-family: 'Caveat'; font-weight: 400 700; font-display: swap; src: url(/fonts/caveat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Caveat'; font-weight: 400 700; font-display: swap; src: url(/fonts/caveat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA; }

/* ---------- tokens ---------- */
:root {
  --bg: #faf8f3;         /* the ground: warm off-white */
  --card: #ffffff;       /* cards and strips on the ground */
  --soft: #f1eee5;       /* quiet panels */
  --ink: #1c2a56;        /* navy: headings, text, the second button */
  --text: #242c48;       /* running text, a touch softer than the headings */
  --muted: #535b75;      /* dates and notes, still readable */
  --yellow: #f8d33b;     /* the one bright colour: main actions, the dot, the sun */
  --yellow-2: #fbe27c;   /* soft yellow panels */
  --green: #1e3a2b;      /* the forest green of the support banner and the footer */
  --sage: #8fa58b;
  --sky: #dce9f6;
  --line: rgba(28, 42, 86, .14);
  --r: 12px;             /* cards */
  --r-btn: 8px;          /* buttons */
  --logo: 'Bodoni Moda', 'Bodoni MT', Didot, Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --space: clamp(64px, 8vw, 120px);
  --t-display: clamp(44px, 7vw, 104px);
  --t-h1: clamp(36px, 4.6vw, 64px);
  --t-h2: clamp(28px, 3vw, 42px);
  --t-h3: 20px;
  --t-lead: clamp(18px, 1.35vw, 20px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 40; }
.skip:focus { top: 12px; }
main { display: block; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.ico { width: 44px; height: 44px; flex: none; }

/* ---------- the logo, rebuilt in type ---------- */
.logo { display: inline-grid; justify-items: stretch; gap: .25em; line-height: 1; color: var(--ink); }
.logo-name { font: 500 26px/1 var(--logo); letter-spacing: .16em; margin-right: -.16em; }
.logo-sub { display: flex; align-items: center; gap: .8em; font: 600 9px/1 var(--sans); letter-spacing: .45em; text-transform: uppercase; padding-left: .45em; }
.logo-sub::before, .logo-sub::after { content: ''; flex: 1; height: 1px; background: currentColor; }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 13px 22px; border-radius: var(--r-btn); border: 2px solid transparent; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.pill-yellow { background: var(--yellow); color: var(--ink); }
.pill-yellow:hover { background: #ffde55; }
.pill-navy { background: var(--ink); color: #fff; }
.pill-navy:hover { background: #2a3b72; }
.pill-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill-light { background: #fff; color: var(--ink); }
.pill .arr { transition: transform .2s ease-out; }
.pill:hover .arr { transform: translateX(4px); }
.pill:active { transform: scale(.98); }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.more:hover .arr { transform: translateX(3px); }
.arr { display: inline-block; transition: transform .2s ease-out; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); color: var(--ink); transition: background-color .2s, color .2s; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); max-width: 1360px; margin-inline: auto; }
.top-logo { text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.nav a { padding: 8px 0; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--yellow); }
.nav-cta { padding: 12px 18px; border-radius: var(--r-btn); background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; }
/* the troop's own site: last in the menu, a button like the 1% one but outlined */
.nav-troop { padding: 10px 16px; border: 2px solid currentColor; border-radius: var(--r-btn); font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; }
.nav-troop:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-phone { display: none; }
@media (max-width: 1180px) {
  .nav, .nav-troop { display: none; }
  .nav-phone { display: block; position: relative; }
  .nav-phone summary { list-style: none; cursor: pointer; padding: 12px 18px; border: 2px solid currentColor; border-radius: var(--r-btn); font-weight: 700; font-size: 15px; line-height: 1; }
  .nav-phone summary::-webkit-details-marker { display: none; }
  .nav-phone[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav-phone nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; width: min(320px, calc(100vw - 32px)); padding: 8px; background: var(--card); color: var(--ink); border-radius: var(--r); border: 1px solid var(--line); }
  .nav-phone nav a { padding: 12px 14px; text-decoration: none; font-weight: 600; border-radius: 6px; }
  .nav-phone nav a:hover { background: var(--soft); }
}
@media (max-width: 560px) { .nav-cta { display: none; } }

/* home: the header floats over the opening photo with white letters, until the page scrolls or the
   phone menu opens (as on the Gajdócsi Webshop) */
.home .top { position: fixed; left: 0; right: 0; }
.home .top:not(.is-scrolled):not(.is-open) { background: linear-gradient(rgba(10, 18, 40, .55), rgba(10, 18, 40, 0)); color: #fff; }
.home .top:not(.is-scrolled):not(.is-open) .logo { color: #fff; }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(600px, 92svh); display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 40, .72) 0%, rgba(10, 18, 40, .42) 50%, rgba(10, 18, 40, .08) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { color: #fff; font-size: var(--t-display); font-weight: 900; line-height: .95; text-transform: uppercase; letter-spacing: -0.025em; max-width: 9ch; margin-bottom: 24px; }
.hero .dot { color: var(--yellow); }
.hero-lead { font-size: clamp(18px, 1.5vw, 22px); max-width: 40ch; margin-bottom: 30px; }
.hero-note { position: absolute; right: var(--gutter); bottom: 150px; margin: 0; font-size: clamp(26px, 2.6vw, 38px); color: #fff; transform: rotate(-4deg); text-align: right; }
.hero-note svg { display: block; width: 64px; height: 54px; color: var(--yellow); margin: 6px 0 0 auto; transform: scaleX(-1) rotate(10deg); }
@media (max-width: 800px) {
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 18, 40, .35) 0%, rgba(10, 18, 40, .78) 75%); }
  .hero-text { padding-bottom: 110px; }
  .hero-note { display: none; }
}

/* ---------- home: the troop in numbers, pulled up over the hero's edge ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); }
.stats-list { list-style: none; margin: 0; padding: 30px clamp(20px, 3vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; background: var(--card); border-radius: var(--r) 0 0 var(--r); border: 1px solid var(--line); border-right: 0; }
.stats-list li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; color: var(--ink); }
.stats-list .ico { grid-row: span 2; color: var(--ink); }
.stats-list strong { font-size: clamp(30px, 3vw, 42px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.stats-list span { font-size: 15px; line-height: 1.3; color: var(--text); }
.stats-troop { display: flex; align-items: center; gap: 18px; padding: 24px clamp(20px, 2.5vw, 36px); background: var(--yellow); color: var(--ink); text-decoration: none; border-radius: 0 var(--r) var(--r) 0; }
.stats-troop .lily { width: 64px; height: 64px; flex: none; }
.stats-troop span { font-size: 15px; line-height: 1.35; }
.stats-troop strong { display: block; font-size: 17px; font-weight: 800; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr; }
  .stats-list { border-radius: var(--r) var(--r) 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .stats-troop { border-radius: 0 0 var(--r) var(--r); }
}
@media (max-width: 640px) { .stats-list { grid-template-columns: 1fr; } }

/* ---------- section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { font-size: var(--t-h2); }

/* ---------- home: who we are ---------- */
.about { padding-top: var(--space); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 110px); align-items: center; }
.about-text h2 { font-size: var(--t-h2); margin-bottom: 20px; }
.about-text p { font-size: var(--t-lead); max-width: 52ch; margin-bottom: 28px; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.note-card { position: absolute; left: -28px; bottom: -28px; background: #fff; color: var(--ink); padding: 18px 22px 16px; font-size: 26px; border-radius: 4px; transform: rotate(-3deg); border: 1px solid var(--line); }
.note-card::before { content: ''; position: absolute; top: -12px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(248, 211, 59, .8); transform: rotate(3deg); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .note-card { left: 12px; bottom: -22px; font-size: 22px; }
}

/* ---------- news cards ---------- */
.latest { padding-top: var(--space); }
.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ncard a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .2s; }
.ncard a:hover { border-color: var(--ink); }
.ncard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ncard-body { position: relative; flex: 1; padding: 20px 56px 22px 22px; }
.ncard-date { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.ncard h3 { font-size: var(--t-h3); }
.ncard-body .arr, .pcard-body > .arr { position: absolute; right: 20px; bottom: 20px; font-weight: 700; font-size: 20px; color: var(--ink); }
.ncard a:hover .arr, .pcard a:hover .arr { transform: translateX(4px); }
@media (max-width: 980px) { .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ncards { grid-template-columns: 1fr; } }

/* ---------- home: the green support banner ---------- */
.banner { position: relative; overflow: hidden; margin-top: var(--space); border-radius: var(--r); background: var(--green); color: #fff; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; padding: clamp(32px, 5vw, 72px); }
.banner-bg { position: absolute; inset: 0 0 0 auto; width: 55%; height: 100%; object-fit: cover; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.banner-text, .banner .taxbox { position: relative; z-index: 1; }
.banner h2 { position: relative; z-index: 1; grid-column: 1 / -1; color: #fff; font-size: clamp(24px, 3vw, 42px); max-width: 28ch; }
.banner-text p { font-size: var(--t-lead); max-width: 52ch; }
.banner-also { font-size: 16px !important; margin: 0; color: #dfe8dc; }
@media (max-width: 900px) { .banner { grid-template-columns: 1fr; } .banner-bg { width: 100%; } }

/* the tax number box, with a copy button */
.taxbox { display: grid; gap: 10px; justify-items: start; background: var(--yellow); color: var(--ink); border-radius: var(--r); padding: clamp(22px, 2.5vw, 32px); }
.taxbox-label { font-weight: 700; font-size: 16px; }
.taxbox-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.taxbox-row strong { font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.copy { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--ink); cursor: pointer; }
.copy .ico { width: 22px; height: 22px; }
.copy:hover { background: rgba(28, 42, 86, .08); }
.copy.done { background: var(--ink); color: var(--yellow); }
.taxbox .pill { margin-top: 6px; }

/* ---------- inner pages: head with a photo that has one big rounded corner ---------- */
.page-head { padding-top: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.page-head h1 { font-size: var(--t-h1); font-weight: 900; margin-bottom: 18px; }
.page-head .lead { font-size: var(--t-lead); max-width: 48ch; margin: 0; }
.head-photo { margin: 0; }
.head-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r) var(--r) var(--r) clamp(80px, 12vw, 180px); }
.page-head-plain { grid-template-columns: 1fr; padding-bottom: 24px; }
@media (max-width: 800px) {
  .page-head { grid-template-columns: 1fr; }
  .head-photo { order: -1; }
}

/* ---------- programs: filter chips and cards ---------- */
.listing { padding-top: clamp(40px, 5vw, 72px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard[hidden] { display: none; }
.pcard a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .2s; }
.pcard a:hover { border-color: var(--ink); }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard-body { position: relative; flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 52px 22px 20px; }
.badge-date { display: grid; justify-items: center; align-content: center; width: 58px; height: 62px; margin: 0; border-radius: 8px; background: var(--yellow); color: var(--ink); line-height: 1; }
.badge-date span { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.badge-date strong { font-size: 26px; font-weight: 900; }
.pcard h3 { font-size: var(--t-h3); margin-bottom: 6px; }
.pcard-body p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pcards { grid-template-columns: 1fr; } }
.ncards-wide { margin-top: 8px; }
.empty { font-size: var(--t-lead); color: var(--muted); }

/* ---------- grants: one row each, opens for the details ---------- */
.grants { padding-top: clamp(40px, 5vw, 72px); }
.glist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.grant { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 90px; }
.grant summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center; padding: 22px 26px; }
.grant summary::-webkit-details-marker { display: none; }
.grant summary:hover .g-main strong { text-decoration: underline; }
.g-year { font-size: 22px; font-weight: 900; color: var(--ink); }
.g-main { display: grid; gap: 2px; }
.g-main strong { font-size: 18px; color: var(--ink); }
.g-main span { font-size: 15px; color: var(--muted); }
.g-amount { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.g-badge { padding: 7px 14px; border-radius: 999px; background: #dde8f6; color: #1f4a7a; font-size: 14px; font-weight: 700; white-space: nowrap; } /* Folyamatban */
.g-badge.g-done { background: #dcefd9; color: #1d5a2a; } /* Megvalósítva */
.grant-body { padding: 0 26px 26px 134px; }
.grant-logo { max-height: 64px; width: auto; margin-bottom: 18px; }
.note-line { display: flex; gap: 12px; align-items: center; margin: 28px 0 0; padding: 16px 20px; border-radius: var(--r); background: var(--sky); color: var(--ink); font-size: 16px; }
.note-line .ico { width: 26px; height: 26px; flex: none; }
@media (max-width: 760px) {
  .grant summary { grid-template-columns: 1fr auto; }
  .g-year { grid-column: 1; }
  .g-main { grid-column: 1 / -1; grid-row: 2; }
  .g-amount { grid-row: 3; }
  .g-badge { grid-row: 1; grid-column: 2; justify-self: end; }
  .grant-body { padding: 0 22px 22px; }
}
.files { list-style: none; padding: 0; }
.files li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.files span { color: var(--muted); font-size: 15px; }

/* ---------- documents ---------- */
.year { font-size: clamp(24px, 2.4vw, 32px); margin: clamp(40px, 5vw, 64px) 0 16px; }
.year:first-child { margin-top: 0; }
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dlist a { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.dlist a:hover { border-color: var(--ink); }
.d-date { font-size: 15px; color: var(--muted); font-weight: 600; }
.d-main { display: grid; gap: 2px; }
.d-main strong { color: var(--ink); font-size: 17px; }
.d-main span { font-size: 15px; color: var(--muted); }
.d-type { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.row-empty { padding: 16px 22px; border-radius: var(--r); background: var(--soft); color: var(--muted); }
@media (max-width: 700px) { .dlist a { grid-template-columns: 1fr; } }

/* ---------- one program or news item ---------- */
.article { padding-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 88px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 28px; padding: 6px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.article .facts { grid-template-columns: 1fr; }
.prose { max-width: 68ch; font-size: 18px; }
.prose h3 { font-size: var(--t-h3); margin: 1.4em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
@media (max-width: 800px) { .article { grid-template-columns: 1fr; } }
.gallery { padding-top: clamp(48px, 6vw, 88px); }
.gallery h2 { font-size: var(--t-h2); margin-bottom: 24px; }
.gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.back { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- fixed pages: blocks of text (működés, kapcsolat, adatkezelés, támogatás) ---------- */
.blocks { padding-top: clamp(40px, 5vw, 80px); display: grid; gap: 16px; }
.block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 5vw, 88px); padding: clamp(28px, 4vw, 52px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); scroll-margin-top: 90px; }
.block h2 { font-size: clamp(24px, 2.4vw, 32px); }
.block-panel { background: var(--yellow-2); border-color: transparent; }
@media (max-width: 800px) { .block { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: step; position: relative; padding: 12px 0 12px 52px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; }
.block-panel .steps li::before { background: var(--ink); color: var(--yellow); }
.account { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.note { font-size: 15px; color: var(--muted); margin-top: 24px; }
.block-photo { margin: 0 0 24px; }
.block-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }

/* ---------- támogatás: tax box, three step cards, the drawing of the Avas ---------- */
.give { padding-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); align-items: center; }
.give > p { font-size: var(--t-lead); margin: 0; max-width: 50ch; }
.give .step-cards { grid-column: 1 / -1; }
.give h2 { font-size: var(--t-h2); margin-bottom: 16px; }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-cards li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.5vw, 32px); }
.step-cards .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 20px; margin-bottom: 16px; }
.step-cards h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.step-cards p { font-size: 16px; margin: 0; }
@media (max-width: 1000px) { .give { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .step-cards { grid-template-columns: 1fr; } }

/* ---------- rólunk and cserkészcsapat ---------- */
.troop-head { position: relative; overflow: hidden; border-radius: var(--r); margin-top: clamp(20px, 3vw, 40px); }
.troop-head img { width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; object-position: center 40%; }
.troop-head-text { position: absolute; left: 0; bottom: 0; max-width: min(720px, 92%); background: var(--bg); padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 56px) 0 0; border-top-right-radius: clamp(60px, 10vw, 160px); }
.troop-head-text h1 { font-size: var(--t-h1); font-weight: 900; }
.troop-lead { padding-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); }
.troop-lead p { font-size: var(--t-lead); margin: 0; }
@media (max-width: 800px) {
  .troop-head-text { position: static; max-width: none; padding: 24px 0 0; border-radius: 0; }
  .troop-lead { grid-template-columns: 1fr; }
}
.facts4 { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.facts4 li { display: grid; gap: 6px; align-content: start; padding: 26px 24px; border-left: 1px solid var(--line); color: var(--ink); }
.facts4 li:first-child { border-left: 0; }
.facts4 strong { font-size: clamp(28px, 2.8vw, 38px); font-weight: 900; line-height: 1; }
.facts4 span { font-size: 15px; color: var(--text); }
.facts4 .ico { width: 38px; height: 38px; margin-bottom: 6px; }
@media (max-width: 900px) { .facts4 { grid-template-columns: 1fr 1fr; } .facts4 li:nth-child(3) { border-left: 0; } .facts4 li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts4 { grid-template-columns: 1fr; } .facts4 li { border-left: 0; } .facts4 li + li { border-top: 1px solid var(--line); } }
.strip { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr 1fr; } }
.split { padding-top: var(--space); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 88px); align-items: center; }
.split h2 { font-size: var(--t-h2); margin-bottom: 18px; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.split-flip > figure { order: -1; }
.split figure { margin: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-flip > figure { order: 0; } }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .ico { width: 32px; height: 32px; color: var(--ink); }
.values strong { color: var(--ink); }

/* ---------- contact: form card ---------- */
.contact { padding-top: var(--space); }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px clamp(32px, 5vw, 88px); padding: clamp(28px, 5vw, 64px); background: var(--ink); color: #fff; border-radius: var(--r); }
.contact-text h2 { color: #fff; font-size: var(--t-h2); margin-bottom: 16px; }
.contact-text p { font-size: var(--t-lead); max-width: 34ch; }
.contact-text .hand { color: var(--yellow); font-size: 34px; transform: rotate(-3deg); margin-top: 20px; }
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: var(--r-btn); padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.contact-form .pill { justify-self: start; margin-top: 6px; }
.form-note { font-size: 15px; margin: 0; color: #d9def0; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { margin-top: var(--space); background: var(--green); color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px clamp(32px, 5vw, 80px); padding-top: clamp(44px, 5vw, 72px); padding-bottom: 40px; }
.foot-logo { text-decoration: none; display: inline-block; margin-bottom: 18px; }
.foot .logo { color: #fff; }
.foot .logo-name { font-size: 34px; }
.foot .logo-sub { font-size: 11px; }
.foot-brand p { color: #d5e0d2; max-width: 36ch; }
.foot-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-links h2 { font-size: 15px; margin-bottom: 12px; color: var(--yellow); letter-spacing: 0; }
.foot-links a { display: block; padding: 5px 0; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-last { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 22px; padding-bottom: 28px; font-size: 15px; color: #d5e0d2; }
.foot-last p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; } .foot-links { grid-template-columns: 1fr 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 18, 40, .9); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: var(--r); }
.lightbox .pill { margin: 14px auto 0; display: flex; width: max-content; }

/* ---------- motion: gentle, and none for those who ask for none ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease-out, transform .7s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pill .arr, .arr { transition: none; }
}
