/* ============================================================================
   «Покоління змін» — стилі
   Палітра та типографіка взяті з дизайну (In/Design): темно-зелене тло,
   лаймовий акцент, органічні «краплі», Montserrat.

   Портрет учасника всюди будується як на пекшот-слайді: кольоровий диск
   (колір проєкту, --accent) і вирізана постать поверх нього.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #2B5233;
  --bg-deep: #1F3F27;
  --bg-2: #407235;
  --green-3: #518C3A;
  --green-4: #6CAC3A;
  --green-5: #7DCE41;
  --lime: #A9F040;
  --lime-2: #D9F55C;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.74);
  --faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --ink: #17301C;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
.nobr { white-space: nowrap; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--lime); color: var(--ink);
  font-weight: 700; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  color: var(--lime);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

.section-sub {
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--lime-2), var(--lime));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(169, 240, 64, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(169, 240, 64, 0.38); }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: var(--text);
}
.btn--ghost:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn__icon { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(43, 82, 51, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
  position: relative; padding: 6px 0;
  font-weight: 600; font-size: 15px; color: var(--muted);
  transition: color 0.2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lime); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.site-header__cta { display: none; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}

.hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(40px, 6vw, 80px);
}
.hero__content {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 700px;
}
.hero__title { line-height: 0; margin-bottom: clamp(20px, 3vw, 32px); }
.hero__title img { width: clamp(260px, 34vw, 520px); height: auto; }
.hero__tagline {
  font-size: clamp(18px, 2vw, 26px); font-weight: 600; line-height: 1.4;
  color: var(--muted); max-width: 30ch;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.hero__logos {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.hero__logos img { height: clamp(26px, 2.6vw, 34px); width: auto; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; z-index: 1; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--faint); border: 1.5px solid var(--line);
  animation: nudge 2.2s ease-in-out infinite;
  transition: color 0.2s, border-color 0.2s;
}
.hero__scroll:hover { color: var(--lime); border-color: var(--lime); }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Про проєкт ---------- */
.about {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}
.about .container { position: relative; z-index: 1; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.about__lead {
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.22; letter-spacing: -0.015em;
  margin: 16px 0 24px;
}
.about__paragraphs p { font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); line-height: 1.65; }
.about__paragraphs p + p { margin-top: 16px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.stat__num {
  display: block; font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; line-height: 1;
  color: var(--lime); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }

.steps { margin-bottom: clamp(56px, 8vw, 96px); }
.steps__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.step {
  position: relative; padding: 28px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(169, 240, 64, 0.5); }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: 15px; margin-bottom: 18px;
}
.step__icon { position: absolute; top: 24px; right: 24px; width: 28px; height: 28px; color: var(--lime); opacity: 0.8; }
.step__title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step__text { font-size: 15px; color: var(--muted); line-height: 1.55; }

.directions__list { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips (directions & filters) */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--lime); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.chip__icon { width: 18px; height: 18px; flex: none; }
.chip__count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 7px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14);
  font-size: 12px; font-weight: 700;
}
.chip[aria-pressed="true"] .chip__count, .chip.is-active .chip__count { background: rgba(23, 48, 28, 0.16); }

/* ---------- Портрет: диск кольору проєкту + вирізана постать ---------- */
.disc {
  position: relative;
  border-radius: 50%;
  background: var(--accent, var(--lime));
  overflow: hidden;
}
.disc__img { width: 100%; height: 100%; object-fit: cover; }

/* Маленький варіант для карток — постать вміщується в коло цілком. */
.disc--sm {
  flex: none; width: 88px; height: 88px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Великий варіант для сторінки проєкту: диск кольору проєкту, голова виступає
   над ним, а знизу постать обрізається по самому колу, тож силует замикається
   круглою дугою. Пропорції зняті з пекшот-слайда: диск 76,7 % кадру, фото 112 %
   його висоти. Маска — об'єднання (mask-composite за замовчуванням «add») кола,
   що точно збігається з диском, і всього, що вище його центра: 0,3835 / 1,12 =
   34,24 % ширини фото для радіуса, (0,4985 − 0,028) / 1,12 = 42 % для центра.
   Межа проходить рівно по центру диска, де дуга вертикальна, тому стику не видно. */
/* Ширший за колонку — інакше диск упреться в неї і не виросте. Портрет
   вирівняний по центру, тож розростається симетрично й центр диска не рухається;
   поля кадру прозорі, тому на текст напливає лише порожнє місце. */
.portrait {
  position: relative;
  width: min(120%, 700px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.portrait__disc {
  position: absolute; top: 11.5%; left: 50%;
  width: 76.7%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--accent, var(--lime));
}
.portrait__img {
  position: absolute; top: 2.8%; left: 50%;
  height: 112%; width: auto; max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image:
    radial-gradient(ellipse 34.24% 34.24% at 50% 42%, #000 99%, transparent 100%),
    linear-gradient(to bottom, #000 0 42%, transparent 42%);
  mask-image:
    radial-gradient(ellipse 34.24% 34.24% at 50% 42%, #000 99%, transparent 100%),
    linear-gradient(to bottom, #000 0 42%, transparent 42%);
}

/* Фонова графіка сторінки проєкту: знак програми зеленим по правому краю, що
   тягнеться згори донизу. Лежить під контентом (z-index: -1) на суцільному тлі,
   тому й видно його крізь усі секції — вони власного фону не мають. */
main { position: relative; }
.page-art {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.page-art__flower {
  position: absolute; display: block; aspect-ratio: 1;
  -webkit-mask: url(../assets/img/flower.svg) center / contain no-repeat;
  mask: url(../assets/img/flower.svg) center / contain no-repeat;
}
/* Головний знак прив'язаний до портрета, а не до краю вікна: його центр стоїть
   на 364 px правіше й на 314 px нижче за центр диска. Диск завжди на 456 px нижче
   верху main (портрет обмежений 700 px), а по горизонталі його центр — це
   «край контейнера + 955 px»; звідси й числа нижче. */
.page-art__flower--a {
  top: 770px;
  left: calc(max(0px, (100vw - var(--container)) / 2) + 1319px);
  transform: translate(-50%, -50%);
  width: min(79.5%, 1350px); aspect-ratio: 1;
  background: #599738;
}
.page-art__flower--b { top: 45%;    right: -20%; width: min(42%, 500px); background: #3D6C35; }
.page-art__flower--c { bottom: -4%; right: -10%; width: min(34%, 400px); background: #457634; }

/* Головна: квітка з айдентики стоїть по центру «Заставки», але живе в шарі на всю
   сторінку, тож нижні пелюстки спокійно заходять у «Про проєкт» — без стику. */
.page-art__bloom {
  position: absolute; pointer-events: none;
  top: calc((100svh - var(--header-h)) / 2); right: -30%;
  width: min(112%, 1460px); height: auto;
  transform: translateY(-50%);
  animation: float 12s ease-in-out infinite;
  /* Ліворуч дрібні краплі гаснуть, щоб не лізти під текст, а низ малюнка
     розчиняється у тлі — інакше пелюстки лягають на картки статистики. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 8%, #000 30%),
    linear-gradient(to bottom, #000 58%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 8%, #000 30%),
    linear-gradient(to bottom, #000 58%, transparent 92%);
  mask-composite: intersect;
}
@keyframes float {
  0%, 100% { transform: translateY(calc(-50% + 8px)); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}

/* ---------- Проєкти ---------- */
.projects {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); }
.section-head h2 {
  font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.section-head__lead { font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); line-height: 1.6; }

.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 14px;
}
.filters__count { text-align: center; font-size: 14px; color: var(--faint); margin-bottom: clamp(28px, 3vw, 40px); min-height: 1.5em; }

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.grid__item { --accent: var(--lime); display: flex; }
.grid__item[hidden] { display: none; }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line); border-radius: 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card:hover::before { opacity: 1; }

.card__head { display: flex; align-items: center; gap: 16px; }
.card__author { min-width: 0; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }

.tag {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
}

.card__title {
  font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__summary {
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__btn { margin-top: auto; align-self: flex-start; }
.card:hover .card__btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid__item.reveal { transition-delay: calc(var(--i, 0) * 45ms); }

.noscript { color: var(--muted); margin-bottom: 12px; }
ol.noscript { list-style: decimal; padding-left: 24px; }
ol.noscript li { margin-bottom: 6px; }
ol.noscript a { text-decoration: underline; }

/* =====================================================================
   Сторінка проєкту (projects/<slug>.html)
   ===================================================================== */
/* Сторінка проєкту має суцільний фон (--bg на <body>), тож секції прозорі:
   градієнти й «краплі» тут не використовуються, а overflow має лишатися
   видимим, щоб квітка за портретом могла спускатися до секції з відео. */
.detail {
  position: relative;
  /* clip, не hidden: графіка макета ширша за колонку й має обрізатися по
     горизонталі, але вертикально секція лишається відкритою. */
  overflow-x: clip;
  padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px);
}
.detail .container { position: relative; z-index: 1; }

.detail__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: clamp(20px, 3vw, 36px);
  font-size: 15px; font-weight: 700; color: var(--muted);
  transition: color 0.2s;
}
.detail__back:hover { color: var(--lime); }
.detail__back svg { transition: transform 0.25s var(--ease); }
.detail__back:hover svg { transform: translateX(-3px); }

.detail__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
}
.detail__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.detail__name {
  font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em;
  color: var(--lime);
}
.detail__title {
  font-size: clamp(15px, 1.5vw, 21px); font-weight: 800; line-height: 1.35;
  text-transform: uppercase; letter-spacing: 0.01em;
}

.theses { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.theses li {
  position: relative; padding-left: 34px;
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.5;
}
.theses li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 15px; height: 17px; background: var(--lime);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Відео проєкту */
.detail__video { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.player {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.player video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; background: #000; }
.player__note { margin-top: 14px; font-size: 14px; color: var(--faint); text-align: center; }

/* Інші проєкти */
.detail__more { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.page-project .site-footer { background: none; }
.detail__more .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail__more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.site-footer__partners { display: flex; flex-direction: column; gap: 18px; }
.site-footer__logos { display: flex; align-items: center; gap: 36px; }
.site-footer__logos img { height: 32px; width: auto; opacity: 0.92; transition: opacity 0.2s; }
.site-footer__logos a:hover img { opacity: 1; }
.site-footer__meta { text-align: right; font-size: 14px; color: var(--faint); max-width: 44ch; }
.site-footer__note { margin-bottom: 6px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .grid, .detail__more .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .detail__grid { grid-template-columns: 1fr; gap: 28px; }
  .detail__text { order: 2; }
  .portrait { width: min(96%, 525px); }
  /* Одноколонковий макет — прив'язка до портрета вже не працює. */
  .page-art__flower--a {
    top: 2%; left: auto; right: -20%; transform: none;
    width: min(96%, 620px);
  }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .site-header__cta { display: inline-flex; }
  .brand__logo { height: 32px; }
  .hero { min-height: 0; padding-block: 24px 56px; }
  .hero__inner { align-items: center; text-align: center; padding-block: 48px 64px; }
  .hero__tagline { max-width: none; }
  .hero__content { align-items: center; max-width: none; }
  /* На вузькому екрані квітка йде під контент і притлумлюється, щоб не заважати тексту. */
  .page-art__bloom { top: 420px; right: 50%; width: 118%; transform: translate(50%, -50%); opacity: 0.5; }
  @keyframes float {
    0%, 100% { transform: translate(50%, calc(-50% + 6px)); }
    50%      { transform: translate(50%, calc(-50% - 6px)); }
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { text-align: left; }
  .detail__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 599px) {
  .grid, .detail__more .grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll, .page-art__bloom { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .step, .chip { transition: none; }
}
