/* БФ «Щедрик» — головна. Етап «структура»: строгий нейтральний стиль, кольори й шрифти уточнимо пізніше. */

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

:root {
  --ink: #1D1D1B;
  --muted: #5A6570;
  --line: #D9E0E6;
  --soft: #F3F6F8;
  --accent: #1C5A80;      /* синій із фірмової палітри, контраст AA */
  --brand: #4EA4D4;       /* фірмовий блакитний */
  --yellow: #F7DA49;      /* фірмовий жовтий — лише заливки й лінії, не текст */
  --sky: #EAF4FA;         /* світлий фон із блакитного */
  --region: #C3D0DA;      /* інші області на карті */
  --r: 3px;
  --line-accent: linear-gradient(90deg, var(--brand), var(--yellow));  /* акцентні лінії: блакитний → жовтий */               /* мінімальне скруглення для всіх прямокутників */
  --white: #fff;

  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(58px, 8vw, 106px);  /* інтервал між блоками */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
abbr { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--ink); color: var(--white); padding: 10px 16px; }
.skip:focus { top: 8px; }

/* Заголовок секції */
.section-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
  padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -3px; width: var(--accent-w, 200px);  /* = довжина лінії в «Місія і мета фонду» */ height: 5px; background: var(--line-accent); }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -.01em; }
.section-head p { color: var(--muted); }
.geo .section-head p { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); font-weight: 500; color: var(--ink); }

/* 1. ШАПКА */
.header { border-bottom: 1px solid var(--line); background: var(--white); }
.topbar { background: #3D4349; color: #F2F4F6; font-size: .9375rem; }
.topbar__item { font-weight: 600; }
.topbar .topbar__label { color: #C9D0D6; font-weight: 400; }
/* три колонки: телефон зліва, email по центру, мови справа */
.topbar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 40px; }
.topbar__mail { justify-self: center; display: inline-flex; align-items: center; gap: 8px; }
/* десктоп: 5 груп (гаряча лінія, пошта, соцмережі, пошук, мови) — з однаковими проміжками */
@media (min-width: 961px) {
  .topbar__in { display: flex; justify-content: space-between; }
  .topbar__in > .topbar__end { display: contents; }
  .topbar__in .lang { margin-left: 0; }
}
.tb-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: #DDE3E8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang { align-items: center; }
/* конверт «відкривається»: клапан складається вгору, лист виглядає й ховається; цикл 4 с, як у трубки */
.env { overflow: visible; }
.env__body, .env__letter { fill: #3D4349; }  /* корпус ховає лист, лист — відкритий клапан позаду */
.env__flap, .env__back { transform-box: view-box; transform-origin: 12px 8px; }
.env__flap { animation: env-flap 4s ease-in-out infinite; }
.env__back { animation: env-back 4s ease-in-out infinite; }
.env__letter { animation: env-letter 4s ease-in-out infinite; }
@keyframes env-flap { 0%, 20%, 60%, 100% { transform: scaleY(1); } 28%, 52% { transform: scaleY(0); } }
@keyframes env-back { 0%, 26%, 54%, 100% { transform: scaleY(0); } 32%, 48% { transform: scaleY(1); } }
@keyframes env-letter { 0%, 30%, 52%, 100% { transform: translateY(4px); opacity: 0; } 37%, 46% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .env__flap, .env__back, .env__letter { animation: none; } .env__letter { opacity: 0; } .env__back { transform: scaleY(0); } }
.topbar__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
/* пошук у плашці */
.search { position: relative; display: flex; align-items: center; }
.search__input { width: 200px; height: 30px; padding: 0 34px 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .9375rem; transition: width .25s, background-color .2s, border-color .2s; -webkit-appearance: none; appearance: none; }
.search__input::placeholder { color: #B7C0C7; }
.search__input:focus { outline: none; background: rgba(255,255,255,.14); border-color: var(--brand); }
/* у плашці — лише іконка; поле висувається ліворуч після натискання */
.search--top .search__input { width: 0; padding: 0; border-color: transparent; background: transparent; opacity: 0; pointer-events: none; transition: width .25s, opacity .2s, padding .25s; }
.search--top.is-open .search__input { width: 240px; padding: 0 34px 0 12px; border-color: var(--brand); background: rgba(255,255,255,.14); opacity: 1; pointer-events: auto; }
.search--top .search__btn { position: relative; right: auto; top: auto; transform: none; margin-left: -30px; }
.search--top:not(.is-open) .search__btn { margin-left: 0; }
.search--top .search__btn { width: 36px; height: 36px; }
.search--top .search__btn svg { width: 23px; height: 23px; stroke-width: 2.1; }
.search--top.is-open .search__btn { margin-left: -36px; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.search__btn svg { width: 17px; height: 17px; fill: none; stroke: #DDE3E8; stroke-width: 2; stroke-linecap: round; }
.search__btn:hover svg { stroke: #fff; }
.search--menu { display: none; }
.topbar__item { color: #fff; text-decoration: none; }
.topbar__item:hover { text-decoration: underline; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; }
/* трубка «дзвонить»: коротке тремтіння кожні 4 с, з неї по черзі йдуть дві хвилі сигналу */
.ring { width: 20px; height: 20px; flex: none; overflow: visible; }
.ring__handset { fill: #fff; transform-box: fill-box; transform-origin: 50% 50%; animation: ring 4s ease-in-out infinite; }
.ring__wave { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; opacity: 0; animation: ring-wave 4s ease-out infinite; }
.ring__wave--2 { animation-name: ring-wave-2; }
@keyframes ring {
  0%, 72%, 100% { transform: rotate(0); }
  74% { transform: rotate(-16deg); } 76% { transform: rotate(14deg); }
  78% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); }
  82% { transform: rotate(-10deg); } 84% { transform: rotate(8deg); }
  86% { transform: rotate(-4deg); } 88% { transform: rotate(0); }
}
@keyframes ring-wave { 0%, 73% { opacity: 0; } 76%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes ring-wave-2 { 0%, 76% { opacity: 0; } 79%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ring__handset, .ring__wave { animation: none; } .ring__wave { opacity: 1; } }

.topbar__label { color: var(--muted); margin-right: 6px; }
/* мови — текстові посилання; поточна підкреслена градієнтною лінією */
.lang { display: flex; gap: 4px; margin-left: auto; }
.lang a { position: relative; padding: 9px 8px; text-decoration: none; font-weight: 600; line-height: 1; color: #C3CAD0; }
.lang a:hover { color: #fff; }
.lang a[aria-current] { color: #fff; }
.lang a[aria-current]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: var(--line-accent); }
.header__in { display: flex; align-items: center; gap: 32px; min-height: 84px; }
/* Логотип — векторний SVG (tools/logo_svg.py): пташка + «Щедрик» у кривих + градієнтна лінія + підпис */
.header__logo { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 58px; width: auto; }
.brand__logo--light { height: 50px; margin-bottom: 16px; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 32px; }
.menu > ul > li > a, .menu .menu__toggle { font-size: 1.3125rem; font-weight: 600; }  /* 21px — крупніше меню */
.menu > ul { align-items: center; }
.menu > ul > li { display: flex; align-items: center; }
.menu > ul > li > a, .menu__toggle { display: inline-flex; align-items: center; line-height: 1.6; padding: 8px 0; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.menu a:hover { box-shadow: inset 0 -3px 0 var(--brand); }
/* випадне меню «Про нас» */
.menu__drop { position: relative; }
.menu__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.menu__toggle::after { content: ""; width: 14px; height: 9px; margin-top: 6px;  /* центр = середина малих літер */ flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }  /* стрілка по центру тексту */
.menu__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.menu__toggle:hover { box-shadow: inset 0 -3px 0 var(--brand); }
.menu__sub { display: none; position: absolute; left: -16px; top: 100%; z-index: 20; min-width: 220px; padding: 8px 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid; border-image: var(--line-accent) 1; box-shadow: 0 12px 28px -18px rgba(29, 29, 27, .45); }
.menu .menu__sub { display: none; flex-direction: column; gap: 0; }
.menu__sub a { display: block; padding: 10px 16px; white-space: nowrap; }
.menu__sub a:hover { background: var(--sky); box-shadow: none; }
.menu .menu__drop.is-open .menu__sub { display: flex; }
@media (hover: hover) and (min-width: 961px) {
  .menu .menu__drop:not(.is-shut):hover .menu__sub, .menu .menu__drop:not(.is-shut):focus-within .menu__sub { display: flex; }
}
.burger { display: none; }

@media (max-width: 960px) {
  .topbar__mail { display: none; }
  .topbar__in { display: flex; }
  .topbar .lang { margin-left: auto; }
  .topbar__end { margin-left: auto; }
  .topbar .search { display: none; }
  .topbar__phone { white-space: nowrap; }
  .search--menu { display: flex; margin: 12px var(--gut) 4px; }
  .search--menu .search__input, .search--menu .search__input:focus { width: 100%; height: 46px; color: var(--ink); background: var(--white); border-color: #B9C7D2; font-size: 1rem; }
  .search--menu .search__input::placeholder { color: var(--muted); }
  .search--menu .search__btn { width: 44px; height: 44px; }
  .search--menu .search__btn svg { stroke: var(--ink); width: 20px; height: 20px; }
  .header__in { min-height: 68px; }
  .header__logo .brand__logo { height: 46px; }
  /* іконка меню: три лінії, середня коротша; без рамки; відкрите меню — хрестик */
  .burger { display: grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border: 0; background: none; cursor: pointer; }
  .burger__bars, .burger__bars::before, .burger__bars::after { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, width .25s ease, background-color .2s; }
  .burger__bars { position: relative; width: 14px; margin-right: 8px; }  /* середня лінія коротша, вирівняна ліворуч */
  .burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; width: 22px; }
  .burger__bars::before { top: -7px; }
  .burger__bars::after { top: 7px; }
  .burger[aria-expanded="true"] .burger__bars { background: transparent; }
  .burger[aria-expanded="true"] .burger__bars::before { top: 0; left: -4px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars::after { top: 0; left: -4px; transform: rotate(-45deg); }
  .header { position: relative; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); margin: 0; }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: 0 var(--gut) 12px; }
  .menu a { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .menu > ul { align-items: stretch; }
  .menu > ul > li { display: block; }
  .menu > ul > li > a { display: flex; width: 100%; padding: 14px 0; }
  .menu .menu__toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
  .menu__sub { position: static; min-width: 0; padding: 0 0 6px 16px; border: 0; box-shadow: none; }
  .menu__sub a { padding: 12px 0; border-top: 1px dashed var(--line); }
}

/* 2. ПЕРШИЙ ЕКРАН — слайдер: фото на всю ширину, текст зліва поверх затемнення */
.hero { position: relative; display: grid; margin-bottom: var(--sec); overflow: hidden; background: #2C3A2A; }
.hero__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(480px, 72vh, 760px);
  visibility: hidden; }
.hero__slide.is-active { visibility: visible; z-index: 1; }
.hero__slide.is-leaving { visibility: visible; z-index: 0; }  /* попередній слайд лишається під новим, поки той «зафарбовує» */
/* перехід: звичайне плавне перетікання */
.hero__slide.is-entering { z-index: 2; animation: hero-fade-in 1s ease both; }
@keyframes hero-fade-in { from { opacity: 0; } }
/* тексти не накладаються: старий одразу зникає, новий з'являється наприкінці переходу */
.hero__slide.is-leaving .hero__in { opacity: 0; transition: opacity .25s; }
.hero__slide.is-entering .hero__in { animation: hero-text-in .5s ease .45s both; }
@keyframes hero-text-in { from { opacity: 0; transform: translateY(10px); } }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__slide--wide .hero__bg { object-position: 50% 50%; }
.hero__slide--wide .hero__text { max-width: min(560px, 44%); }  /* текст лише на лівій половині («до») */
.hero__slide::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 28, 24, .78) 0%, rgba(20, 28, 24, .55) 38%, rgba(20, 28, 24, 0) 66%); }
.hero__in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero__text { max-width: min(640px, 54%); color: var(--white); }
.hero__title { font-size: clamp(2.125rem, 4.4vw, 3.75rem); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 24px; text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero__lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: #F2F4F6; max-width: 26em; }
/* перемикачі слайдів */
.hero__nav { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2; pointer-events: none; }
.hero__dots { display: flex; gap: 10px; pointer-events: auto; }
.hero__dot { width: 48px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: rgba(255,255,255,.45); transition: background-color .3s; }
.hero__dot:hover::before { background: rgba(255,255,255,.8); }
/* поточний слайд: смужка заповнюється за HERO_DELAY; дійшла до кінця — наступний слайд */
.hero__bar { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: 0; border-radius: 1px;
  background: var(--line-accent); background-size: 48px 100%; pointer-events: none; }
.hero__dot[aria-current="true"] .hero__bar { width: 100%; }
.hero__dot.is-running .hero__bar { animation: hero-progress var(--hero-delay, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-running .hero__bar { animation-play-state: paused; }
@keyframes hero-progress { from { width: 0; } to { width: 100%; } }
.hero__dot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .hero__slide::after { background: linear-gradient(90deg, rgba(20, 28, 24, .82) 0%, rgba(20, 28, 24, .6) 48%, rgba(20, 28, 24, 0) 72%); }
  .hero__slide:not(.hero__slide--wide) .hero__bg { object-position: 70% 40%; }
}
@media (max-width: 760px) {
  .hero__text, .hero__slide--wide .hero__text { max-width: none; }
  /* на телефоні фото зверху, текст під ним — щоб не закривати обличчя */
  .hero { background: #26302A; }
  .hero__slide { display: block; min-height: 0; }
  .hero__bg { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 70% 35%; }
  .hero__slide--wide .hero__bg { aspect-ratio: 4 / 3; object-position: 50% 50%; }  /* та сама висота, що й слайд 1; видно стик «до/після» */
  .hero__slide::after { display: none; }
  .hero__in { padding-top: 28px; padding-bottom: 56px; }
  .hero__nav { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide.is-entering, .hero__slide.is-entering .hero__in { animation: none; } }

/* 3. КАРТА */
.geo { padding: 0 0 var(--sec); }
/* Ліва колонка — цифри і сектори, справа карта (на 30% нижча, ніж на всю ширину) */
.geo__stage { position: relative; display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 24px 48px;
  grid-template-areas: "facts map"; align-items: start; }
.geo__map { grid-area: map; position: relative; width: 100%; max-width: 820px; justify-self: end; }
.map__base path { fill: var(--region); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.map__region { fill: var(--brand); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; transition: fill .2s; }
.map__region:hover { fill: var(--accent); }
.map__occ { pointer-events: none; opacity: .5; }
.map__occ path { fill: url(#occ-hatch); stroke: #6E7983; stroke-width: 1; stroke-linejoin: round; }
.map__occ-bg { fill: #C9CFD5; }
.map__occ-line { fill: #8A949D; }
.map__raion { fill: transparent; stroke: rgba(255, 255, 255, .95); stroke-width: 1.1; stroke-dasharray: 3 3; cursor: default; transition: fill .15s; outline: none; }
.map__raion:hover, .map__raion:focus { fill: rgba(28, 90, 128, .55); }
.map__rlabel { font-family: var(--font); font-weight: 600; font-size: 24px; fill: var(--ink); pointer-events: none; opacity: 0; transition: opacity .15s; }
.map__rlabel.is-on { opacity: 1; }
/* під час наведення на район ховаємо підписи міст (без transition на тексті — Safari малює лише обведення) */
.map__svg.is-raion .map__city text { visibility: hidden; }
.map__city circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 2.5; }
.map__pulse { display: none; }
.map__city text { fill: var(--ink); font-family: var(--font); font-weight: 600; font-size: 26px; }
/* біле обведення — окремим текстом під основним (Safari 16 неправильно малює paint-order) */
.map__halo { fill: var(--white); stroke: var(--white); stroke-width: 5px; stroke-linejoin: round; }
.map__city .map__halo { fill: var(--white); }

.geo__facts { grid-area: facts; display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.fact__ico { grid-row: 1 / 3; width: 40px; height: 40px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fact dd { grid-column: 2; grid-row: 1; }
.fact dt { grid-column: 2; grid-row: 2; }
.fact dt { order: 2; color: var(--muted); font-size: 1.1875rem; }
.fact dd { order: 1; font-size: clamp(1.5rem, 2.1vw, 1.875rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fn { text-decoration: none; margin-left: 1px; }

/* сектори — поверх карти, на світлій західній частині України */
.geo__sectors { position: absolute; left: 0; top: 0; width: 40%; max-width: 360px; box-sizing: border-box; display: flex; flex-direction: column; padding: 12px 14px 6px; background: rgba(255,255,255,.45); border: 1px solid #9FB0BD; border-radius: var(--r); }
.geo__sectors h3 { font-size: 1.1875rem; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.sectors li { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.sectors abbr { justify-self: start; padding: 1px 6px; background: var(--sky); border-radius: var(--r); font-weight: 700; font-size: 1.0625rem; letter-spacing: .02em; }
.sectors span { font-size: 1.125rem; color: var(--muted); line-height: 1.35; }

/* легенда — одразу під Кримом */
.geo__legend { margin: 8px 0 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 6px 22px; white-space: nowrap; font-size: 1.0625rem; color: var(--muted); }
.geo__legend li { display: flex; align-items: center; gap: 8px; }
.key { width: 14px; height: 14px; flex: none; }
.key--area { background: var(--brand); border-radius: var(--r); }
.key--occ { background: repeating-linear-gradient(45deg, #8A949D 0 2px, #C9CFD5 2px 5px); border: 1px solid #6E7983; border-radius: var(--r); }
.key--office { border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); }
.footnote { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.footnote--corner { position: absolute; top: 0; right: 0; margin: 0; }
@media (max-width: 900px) { .footnote--corner { position: static; margin: 0; } }  /* автоматично — одразу після секторів */

@media (max-width: 900px) {
  .geo__stage { grid-template-columns: 1fr; grid-template-areas: "map" "facts"; }
  .geo__sectors { position: static; width: auto; max-width: none; padding: 0; background: none; margin-top: 20px; }
  .geo__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo__legend { margin: 12px 0 0; }
}
@media (max-width: 480px) { .geo__facts { grid-template-columns: 1fr; } }

/* 4. МІСІЯ І ПРИНЦИПИ — маніфест на темно-сірому тлі (варіант A) */
  .mission { background: #3D4349; color: #fff; padding: clamp(48px, 7vw, 96px) 0; }
  .mission__kicker { display: inline-block; font-size: clamp(1.25rem, 1.8vw, 1.5rem);  /* завжди менший за текст місії */ font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #fff; padding-top: 14px; border-top: 5px solid; border-image: var(--line-accent) 1; margin-bottom: 24px; }
  .mission__main { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.22; font-weight: 600; letter-spacing: -.015em; max-width: 26em; margin-bottom: 24px; }
  .mission__sub { color: #C3CAD0; font-size: 1.1875rem; max-width: 46em; margin-bottom: clamp(40px, 5vw, 64px); }
  .mission__head { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: #fff; margin-bottom: 24px; }  /* як заголовок «Місія і мета фонду» */
  .mission__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .mission__list li { position: relative; overflow: hidden; padding: 28px 24px 8px 0; min-height: 190px; }
  .mission__list li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
  /* велика біла іконка на тлі тексту, майже прозора */
  .mission__list svg { position: absolute; right: -6px; top: 10px; width: 132px; height: 132px; fill: none; stroke: #fff; stroke-opacity: .12; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  .mission__list h4, .mission__list p { position: relative; }
  .mission__list h4 { font-size: 1.25rem; margin-bottom: 8px; }
  .mission__list p { color: #C3CAD0; font-size: 1rem; }
  @media (max-width: 860px) {
    .mission__list { grid-template-columns: 1fr 1fr; }
    .mission__list li, .mission__list li + li { padding: 20px 16px 20px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  }
.mission :focus-visible { outline-color: var(--yellow); }
/* Анімація іконок принципів: по черзі зліва направо, цикл 8 с (по 2 с на іконку) */
.pi { animation: pi-glow 8s ease-in-out infinite; }
.pi--scales { animation-delay: 2s; } .pi--people { animation-delay: 4s; } .pi--compass { animation-delay: 6s; }
.pi__heart { transform-origin: 18px 18px; animation: pi-heart 8s ease-in-out infinite; }
.pi__beam { transform-origin: 18px 11px; animation: pi-scales 8s ease-in-out 2s infinite; }
.pi__p1 { animation: pi-p1 8s ease-in-out 4s infinite; }
.pi__p2 { animation: pi-p2 8s ease-in-out 4s infinite; }
.pi__needle { transform-origin: 18px 18px; animation: pi-needle 8s ease-in-out 6s infinite; }
@keyframes pi-glow { 0%, 25%, 100% { stroke-opacity: .12; } 3%, 21% { stroke-opacity: .32; } }
@keyframes pi-heart { 0%, 18%, 100% { transform: scale(1); } 4%, 12% { transform: scale(1.13); } 8% { transform: scale(.98); } }
@keyframes pi-scales { 0%, 22%, 100% { transform: rotate(0); } 3% { transform: rotate(10deg); } 7% { transform: rotate(-8deg); } 11% { transform: rotate(5deg); } 15% { transform: rotate(-3deg); } 19% { transform: rotate(1deg); } }
@keyframes pi-p1 { 0%, 8%, 100% { transform: translateY(0); } 3% { transform: translateY(-2.5px); } 5% { transform: translateY(0); } }
@keyframes pi-p2 { 0%, 9%, 17%, 100% { transform: translateY(0); } 12% { transform: translateY(-2.5px); } 14% { transform: translateY(0); } }
@keyframes pi-needle { 0%, 22%, 100% { transform: rotate(0); } 3% { transform: rotate(-38deg); } 7% { transform: rotate(26deg); } 11% { transform: rotate(-15deg); } 15% { transform: rotate(8deg); } 19% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .pi, .pi * { animation: none !important; } }
@media (max-width: 480px) { .mission__list { grid-template-columns: 1fr; } }

/* 4а. НАПРЯМИ НАШОГО ПІКЛУВАННЯ — банери 4 в ряд (2 до 1100px, 1 на телефоні) */
.dirs { padding: var(--sec) 0 0; }
.dirs__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 40px; }
.dir { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1 / 1; background: #26302A; color: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 22px; isolation: isolate; }
.dir__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.dir::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 28, 24, .58); transition: background-color .4s; }
.dir__code { font-size: 1rem; font-weight: 600; letter-spacing: .12em; color: var(--yellow); margin-bottom: 10px; }
.dir__name { font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.12; letter-spacing: -.01em; text-shadow: 0 1px 16px rgba(0,0,0,.3); max-width: 13em; }
.dir::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 4px; width: 0; transform: translateX(-50%); background: var(--line-accent); transition: width .5s ease; }
.dir:hover .dir__img { transform: scale(1.04); }
.dir:hover::after { width: calc(100% - 44px); }
.dir:hover::before { background: rgba(20, 28, 24, .5); }
.dir__img[src*="protection"] { object-position: 50% 25%; }
@media (max-width: 1100px) { .dirs__list { grid-template-columns: repeat(2, 1fr); gap: 5px; } .dir { aspect-ratio: 4 / 3; } .dir__name { font-size: clamp(1.625rem, 3.4vw, 2.125rem); } }
@media (max-width: 600px) { .dirs__list { grid-template-columns: 1fr; gap: 4px; margin-top: 28px; } .dir { padding: 22px; aspect-ratio: 16 / 10; } }
@media (prefers-reduced-motion: reduce) { .dir__img, .dir::after { transition: none; } }

/* 5. ПАРТНЕРИ — безперервна каруселька в один ряд (main.js → setupMarquee дублює список) */
.partners { padding: var(--sec) 0 0; }
.marquee { 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); }
.logos { display: flex; width: max-content; gap: 56px; align-items: center; }
.logos li { flex: none; display: grid; place-items: center; width: 195px; height: 109px; }  /* +30% */
.logos img { width: 100%; height: 100%; max-height: 107px; object-fit: contain; pointer-events: none; }
.marquee.is-running .logos { animation: marquee var(--marquee-dur, 80s) linear infinite; }
.marquee + .marquee { margin-top: 48px; }
.marquee:hover .logos, .marquee:focus-within .logos { animation-play-state: paused; }  /* зупинка при наведенні */
.logos a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--r); transition: opacity .2s; }
.marquee:hover .logos a { opacity: .55; }
.marquee:hover .logos a:hover, .logos a:focus-visible { opacity: 1; }
.marquee--rev.is-running .logos { animation-direction: reverse; }  /* другий ряд — у протилежний бік */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 28px)); } }
@media (max-width: 640px) { .logos { gap: 36px; } .logos li { width: 143px; height: 81px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .logos { flex-wrap: wrap; width: auto; justify-content: center; gap: 24px 40px; }
}

/* 6. НОВИНИ */
.news { padding: var(--sec) 0; }
.more { font-weight: 600; text-decoration: none; }
.more:hover, .more:focus-visible { text-decoration: underline; }
/* вкладки категорій новин */
.news__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.news__tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.news__tab:hover { border-color: var(--brand); }
.news__tab[aria-selected="true"] { background: #3D4349; border-color: #3D4349; color: #fff; }  /* темно-сірий, як шапка й підвал */
.card[hidden] { display: none; }
.news__list.is-switching .card { animation: card-in .35s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .news__list.is-switching .card { animation: none; } }
.news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card a { display: block; color: var(--ink); text-decoration: none; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: var(--r) var(--r) 0 0; margin-bottom: 14px; border-bottom: 5px solid; border-image: var(--line-accent) 1; }  /* акцентна лінія під фото */
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
/* ховер: фото плавно наближається в межах рамки */
.card img { transition: transform .6s ease; }
.card a:hover img, .card a:focus-visible img { transform: scale(1.05); }
@media (hover: none) { .card a:hover img { transform: none; } }  /* на дотикових екранах без ефекту */
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } .card a:hover img { transform: none; } }
.card time { display: block; font-size: .9375rem; color: var(--muted); margin-bottom: 6px; }
.card h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 600; }
.card a:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 960px) { .news__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .news__list { grid-template-columns: 1fr; } }

/* 7. ПИТАННЯ І ЗВОРОТНИЙ ЗВ'ЯЗОК — дві колонки: питання (акордеон) і форма */
.ask { padding: 0 0 var(--sec); }
.ask__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 18px 48px 18px 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 48px 20px 0; color: var(--muted); }
.contact { position: relative; overflow: hidden; background: var(--sky); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); border-top: 5px solid; border-image: var(--line-accent) 1; }
/* пташка з логотипа з листом у дзьобі — на тлі картки форми (img/bird-letter.svg) */
.contact::before { content: ""; position: absolute; left: 0; top: 14px; width: 230px; height: 165px; background: #fff; opacity: 1; pointer-events: none; z-index: 0;
  animation: bird-walk 20.4s linear infinite;
  -webkit-mask: url(../img/bird-letter.svg?v=5) center / contain no-repeat; mask: url(../img/bird-letter.svg?v=5) center / contain no-repeat; }
.contact > * { position: relative; z-index: 1; }  /* пташка — на тлі, під текстом і формою */
/* пташка з листом ходить туди-назад у межах картки, посередині зупиняється на 2 с, біля краю розвертається (scale) */
/* згенеровано tools/bird_keyframes.py: цикл 20.4 с */
@keyframes bird-walk {
  0.000% { left: 0; scale: 1 1; transform: translateY(0) rotate(0); }
  1.348% { transform: translateY(-7px) rotate(2deg); }
  2.696% { transform: translateY(0) rotate(-2deg); }
  4.044% { transform: translateY(-7px) rotate(2deg); }
  5.392% { transform: translateY(0) rotate(-2deg); }
  6.740% { transform: translateY(-7px) rotate(2deg); }
  8.088% { transform: translateY(0) rotate(-2deg); }
  9.436% { transform: translateY(-7px) rotate(2deg); }
  10.784% { transform: translateY(0) rotate(-2deg); }
  12.132% { transform: translateY(-7px) rotate(2deg); }
  13.480% { transform: translateY(0) rotate(-2deg); }
  14.828% { transform: translateY(-7px) rotate(2deg); }
  16.176% { transform: translateY(0) rotate(-2deg); }
  17.525% { transform: translateY(-7px) rotate(2deg); }
  18.873% { left: calc(50% - 115px); scale: 1 1; transform: translateY(0) rotate(0); }
  28.676% { left: calc(50% - 115px); scale: 1 1; transform: translateY(0) rotate(0); }
  30.025% { transform: translateY(-7px) rotate(2deg); }
  31.373% { transform: translateY(0) rotate(-2deg); }
  32.721% { transform: translateY(-7px) rotate(2deg); }
  34.069% { transform: translateY(0) rotate(-2deg); }
  35.417% { transform: translateY(-7px) rotate(2deg); }
  36.765% { transform: translateY(0) rotate(-2deg); }
  38.113% { transform: translateY(-7px) rotate(2deg); }
  39.461% { transform: translateY(0) rotate(-2deg); }
  40.809% { transform: translateY(-7px) rotate(2deg); }
  42.157% { transform: translateY(0) rotate(-2deg); }
  43.505% { transform: translateY(-7px) rotate(2deg); }
  44.853% { transform: translateY(0) rotate(-2deg); }
  46.201% { transform: translateY(-7px) rotate(2deg); }
  47.549% { left: calc(100% - 230px); scale: 1 1; transform: translateY(0) rotate(0); }
  50.000% { left: calc(100% - 230px); scale: -1 1; transform: translateY(0) rotate(0); }
  51.348% { transform: translateY(-7px) rotate(2deg); }
  52.696% { transform: translateY(0) rotate(-2deg); }
  54.044% { transform: translateY(-7px) rotate(2deg); }
  55.392% { transform: translateY(0) rotate(-2deg); }
  56.740% { transform: translateY(-7px) rotate(2deg); }
  58.088% { transform: translateY(0) rotate(-2deg); }
  59.436% { transform: translateY(-7px) rotate(2deg); }
  60.784% { transform: translateY(0) rotate(-2deg); }
  62.132% { transform: translateY(-7px) rotate(2deg); }
  63.480% { transform: translateY(0) rotate(-2deg); }
  64.828% { transform: translateY(-7px) rotate(2deg); }
  66.176% { transform: translateY(0) rotate(-2deg); }
  67.525% { transform: translateY(-7px) rotate(2deg); }
  68.873% { left: calc(50% - 115px); scale: -1 1; transform: translateY(0) rotate(0); }
  78.676% { left: calc(50% - 115px); scale: -1 1; transform: translateY(0) rotate(0); }
  80.025% { transform: translateY(-7px) rotate(2deg); }
  81.373% { transform: translateY(0) rotate(-2deg); }
  82.721% { transform: translateY(-7px) rotate(2deg); }
  84.069% { transform: translateY(0) rotate(-2deg); }
  85.417% { transform: translateY(-7px) rotate(2deg); }
  86.765% { transform: translateY(0) rotate(-2deg); }
  88.113% { transform: translateY(-7px) rotate(2deg); }
  89.461% { transform: translateY(0) rotate(-2deg); }
  90.809% { transform: translateY(-7px) rotate(2deg); }
  92.157% { transform: translateY(0) rotate(-2deg); }
  93.505% { transform: translateY(-7px) rotate(2deg); }
  94.853% { transform: translateY(0) rotate(-2deg); }
  96.201% { transform: translateY(-7px) rotate(2deg); }
  97.549% { left: 0; scale: -1 1; transform: translateY(0) rotate(0); }
  100.000% { left: 0; scale: 1 1; transform: translateY(0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .contact::before { animation: none; left: auto; right: 10px; } }
.contact h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 10px; }
.contact__lead { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #B9C7D2; border-radius: var(--r); padding: 11px 12px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231D1D1B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }  /* email і телефон — в один рядок і на телефоні */
.field-row input { min-width: 0; }
.field-row .field { margin-bottom: 6px; }
.field-hint { font-size: .875rem; color: var(--muted); margin: 0 0 14px; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.consent[hidden] { display: none; }
.field-opt { font-weight: 400; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.contact__btn { min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--r); background: #3D4349; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.contact__btn:hover { background: var(--ink); }
.contact__status { margin-top: 12px; font-size: .9375rem; }
.contact__status.is-error { color: #B42318; }
.contact__status.is-ok { color: var(--accent); }
/* Вікно «Дякуємо» після надсилання форми */
.thanks { border: 0; padding: 0; border-radius: 16px; width: min(540px, calc(100vw - 32px)); max-width: none; box-shadow: 0 24px 60px rgba(20, 66, 95, .28); color: var(--ink); }
.thanks::backdrop { background: rgba(12, 28, 40, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.thanks__in { padding: 48px 40px 40px; text-align: center; border-top: 10px solid var(--yellow); }
@media (max-width: 480px) { .thanks__in { padding: 36px 22px 28px; } }
.thanks__ico { width: 96px; height: 96px; margin: 0 auto 16px; display: block; }
.thanks__ico circle { fill: var(--accent); stroke: none; }
.thanks__ico path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks h2 { font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; }
.thanks p { margin: 0 0 28px; font-size: 1.1875rem; color: #3D4349; }
.thanks__btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; min-width: 180px; justify-content: center; }
.thanks[open] { animation: thanks-in .25s ease both; }
@keyframes thanks-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .thanks[open] { animation: none; } }
@media (max-width: 900px) { .ask__in { grid-template-columns: 1fr; } }

/* 8. ВІДГУКИ БЕНЕФІЦІАРІВ */
.reviews { padding: var(--sec) 0 0; }
.reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.review { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 28px 26px; background: var(--sky); border-radius: var(--r); }
/* велика напівпрозора лапка на тлі тексту — як іконки в блоці «Місія» */
.review::before { content: "\201C"; position: absolute; right: 14px; top: -34px; font-size: 260px; line-height: 1; font-weight: 700; color: var(--brand); opacity: .14; pointer-events: none; }
.review > * { position: relative; }
.review__text { margin: 0 0 16px; font-size: 1.0625rem; line-height: 1.6; }
.review__text p { margin: 0 0 .8em; }
/* згорнутий відгук — однакова кількість рядків у всіх картках */
.review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.review__text.is-clamped p { margin: 0; }
.review__more { align-self: flex-end; margin: -8px 0 20px;  /* одразу під текстом */ padding: 4px 0; border: 0; background: none; font: inherit; font-weight: 600; font-size: 1rem; color: var(--accent); cursor: pointer; text-decoration: none; }
.review__more:hover, .review__more:focus-visible { text-decoration: underline; text-underline-offset: .18em; }
.review__who { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.review__name { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.review__name::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 21h-6a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h6z'/%3E%3Cpath d='M14 21l8.5-14c1.2-2 4.3-1.8 5.2.4.4 1 .4 2.1.1 3.1L25.6 18H38a4 4 0 0 1 3.9 4.8l-3 14A4 4 0 0 1 35 40H14z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23000' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 21h-6a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h6z'/%3E%3Cpath d='M14 21l8.5-14c1.2-2 4.3-1.8 5.2.4.4 1 .4 2.1.1 3.1L25.6 18H38a4 4 0 0 1 3.9 4.8l-3 14A4 4 0 0 1 35 40H14z'/%3E%3C/svg%3E") center / contain no-repeat; }  /* «вподобайка» біля імені */
.review__meta { font-size: .875rem; line-height: 1.45; color: var(--muted); }  /* висоту вирівнює main.js → equalizeReviewMeta */
@media (max-width: 960px) { .reviews__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews__list { grid-template-columns: 1fr; } }

/* 9. ПІДВАЛ — темно-сірий, як верхня смуга шапки */
.footer { background: #3D4349; color: #E3E7EA; padding: clamp(40px, 5vw, 56px) 0 0; font-size: 1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px 40px; }

.footer__brand p { color: #C3CAD0; }
.footer h2 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid; border-image: var(--line-accent) 1; }
.footer__col li { padding: 3px 0; }
.footer__hot { font-size: 1.25rem; font-weight: 700; }
.note { display: block; color: #B7C0C7; font-size: .9375rem; }
.offices div { padding: 4px 0 10px; }
.offices dt { font-weight: 600; color: #fff; }
.offices dd { color: #C3CAD0; }
.todo { font-style: italic; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid rgba(255, 255, 255, .16); color: #B7C0C7; font-size: .9375rem; }
.footer__legal p + p { margin-top: 4px; }
.footer__dev { font-size: .8125rem; color: #8E99A3; }
.footer__dev a { color: #B7C0C7; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(183, 192, 199, .5); }
.footer__dev a:hover { color: #fff; text-decoration-color: currentColor; }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; }
.social svg { width: 24px; height: 24px; fill: #B7C0C7; transition: fill .2s; }
.social a:hover svg { fill: #fff; }
.footer :focus-visible { outline-color: var(--yellow); }
/* соцмережі у верхній смужці шапки */
.social--top { gap: 2px; }
.social--top a { width: 32px; height: 32px; border-radius: var(--r); }
.social--top svg { width: 18px; height: 18px; fill: #C9D0D6; }
.social--top a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 0; }
@media (max-width: 960px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__in { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .topbar .topbar__label { display: none; } }  /* на мобільному лише номер — щоб умістилися соцмережі */
@media (max-width: 380px) {  /* вузькі телефони: номер, 4 соцмережі й мови в один рядок */
  .topbar { font-size: .875rem; } .topbar__in { gap: 6px; } .topbar__end { gap: 2px; } .social--top { gap: 0; } .social--top a { width: 27px; } .topbar .lang a { padding: 9px 5px; } }
@media (max-width: 1200px) { .geo__legend { flex-wrap: wrap; white-space: normal; } }
.review__more + .review__who { margin-top: auto; }
/* вужчі екрани: сектори вже не вміщаються на карті — повертаємо їх у ліву колонку під цифри */
@media (max-width: 1180px) and (min-width: 901px) {
  .geo__stage { grid-template-areas: "facts map" "sectors map"; }
  .geo__sectors { position: static; grid-area: sectors; width: auto; max-width: none; height: auto; }
}
/* коли сектори під картою (≤1180px): спершу легенда, потім сектори; без рамки; усе по лівому краю */
@media (max-width: 1180px) {
  .geo__map { display: flex; flex-direction: column; align-items: stretch; }
  .geo__map .map__svg { order: 0; }
  .geo__legend { order: 1; justify-content: flex-start; align-items: flex-start; flex-direction: column; margin: 12px 0 0; }
  .geo__sectors { order: 2; position: static; width: auto; max-width: none; height: auto !important; min-height: 0 !important; margin-top: 24px; padding: 0; background: none; border: 0; border-radius: 0; }
}
/* відгуки на телефоні: показуємо один, по колу кожні 7 с (main.js → setupReviewsCarousel) */
.reviews__dots { display: none; }
@media (max-width: 600px) {
  .reviews__list.is-carousel { display: grid; grid-template-columns: 1fr; gap: 0; }
  .reviews__list.is-carousel .review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
  .reviews__list.is-carousel .review.is-current { opacity: 1; visibility: visible; }
  .reviews__dots { display: flex; gap: 10px; margin-top: 14px; }
  .reviews__dot { width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .reviews__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
  .reviews__dot[aria-current="true"]::before { background: var(--line-accent); }
}
@media (prefers-reduced-motion: reduce) { .reviews__list.is-carousel .review { transition: none; } }

/* ===== ПІДСТОРІНКИ (tools/build_pages.py) ===== */
.page-head { background: var(--sky); padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); border-bottom: 5px solid; border-image: var(--line-accent) 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .9375rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.015em; }
.page-head__lead { margin-top: 14px; max-width: 44em; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.page > section:not(.page-head):not(.mission) { padding: var(--sec) 0 0; }
.page > section:not(.page-head):not(.mission):last-of-type { padding-bottom: var(--sec); }
.menu__toggle.is-current { box-shadow: inset 0 -3px 0 var(--brand); }
.menu a[aria-current="page"] { color: var(--accent); }

/* документи: відзнаки, політики, звіти */
.docs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.docs__grid--reports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.doc a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.doc__media { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); aspect-ratio: 3 / 4; margin-bottom: 12px; }
.docs__grid--reports .doc__media { aspect-ratio: 16 / 9; }
.doc__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .5s ease; }
.doc a:hover .doc__media img, .doc a:focus-visible .doc__media img { transform: scale(1.04); }
.doc__title { font-weight: 600; line-height: 1.35; font-size: 1.0625rem; }
.doc a:hover .doc__title { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.doc__type { margin-top: 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.docs__grid--reports .doc__title { font-size: 1.25rem; }
@media (max-width: 1000px) { .docs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .docs__grid, .docs__grid--reports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
@media (max-width: 420px) { .docs__grid--reports { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .doc__media img { transition: none; } }

/* про фонд */
.about__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.about__text h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 16px; }
.about__text p { font-size: 1.125rem; }
.about__facts { border-top: 5px solid; border-image: var(--line-accent) 1; }
.about__facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { color: var(--muted); font-size: .9375rem; }
.about__facts dd { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.page .mission { margin-top: var(--sec); }
.sectors--page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; }
.sectors--page li { padding: 14px 0; }
@media (max-width: 860px) { .about__in { grid-template-columns: 1fr; } .sectors--page { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sectors--page { grid-template-columns: 1fr; } }

/* команда */
.team__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; text-align: center; }
.team__list img { width: min(200px, 70%); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.team__list b { display: block; font-size: 1.25rem; }
.team__list span { color: var(--muted); }
@media (max-width: 640px) { .team__list { grid-template-columns: 1fr; } }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: var(--r); background: #3D4349; color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.btn:hover { background: var(--accent); }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px #3D4349; }
.btn--ghost:hover { background: var(--sky); }

/* офіси */
.office-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.office-cards li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--sky); border-radius: var(--r); border-top: 4px solid var(--brand); }
.office-cards b { font-size: 1.25rem; margin-bottom: 4px; }
.office-cards span { color: var(--muted); }
.office-cards--stack { grid-template-columns: 1fr; margin-top: 16px; }
@media (max-width: 760px) { .office-cards { grid-template-columns: 1fr; } }

/* вакансії */
.jobs__list { border-top: 5px solid; border-image: var(--line-accent) 1; }
.jobs__list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.1875rem; font-weight: 600; }
.jobs__list a:hover { background: var(--sky); }
.jobs__go { font-size: .9375rem; font-weight: 600; color: var(--accent); }
.jobs__note { margin-top: 28px; color: var(--muted); }

/* новини й контакти */
.news--page .news__list { row-gap: 40px; }
.news__archive { margin-top: 36px; }
.contacts-page { padding-top: var(--sec) !important; }
.contacts-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts-list dt { color: var(--muted); font-size: .9375rem; }
.contacts-list dd { font-size: 1.375rem; font-weight: 700; }
.contacts-list dd a { color: var(--ink); text-decoration: none; }
.contacts-list dd a:hover { color: var(--accent); text-decoration: underline; }
.contacts-list dd span { display: block; font-size: .9375rem; font-weight: 400; color: var(--muted); }
.contacts-sub { font-size: 1.375rem; margin-top: 32px; }

/* архів новин (news.js) */
.archive__bar { display: grid; gap: 16px; margin-bottom: 20px; }
.archive__q { width: 100%; max-width: 560px; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.0625rem; border: 1px solid #B9C7D2; border-radius: var(--r); background: var(--white); color: var(--ink); -webkit-appearance: none; appearance: none; }
.archive__q:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.archive__filters { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: #3D4349; border-color: #3D4349; color: #fff; }
.chip__n { font-weight: 400; color: var(--muted); margin-left: 2px; }
.chip[aria-pressed="true"] .chip__n { color: #C9D0D6; }
.archive__count { color: var(--muted); margin-bottom: 24px; font-size: .9375rem; }
.archive__list { row-gap: 40px; }
.card__media--empty { aspect-ratio: 4 / 3; background: var(--sky) url(../img/logo-bird.svg) center / 30% no-repeat; }
.card__excerpt { margin: 8px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__tags { display: block; margin-top: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.archive__more { margin-top: 36px; text-align: center; }
.archive__more .btn { cursor: pointer; font: inherit; font-weight: 700; }

/* звіти: акцент на році й описі, мініатюра обкладинки збоку */
.reports__list { border-top: 5px solid; border-image: var(--line-accent) 1; }
.report { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.report__cover { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.report__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.report:hover .report__cover img { transform: scale(1.04); }
.report__year { display: block; font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--accent); }
.report__title { font-size: 1.25rem; margin: 8px 0 10px; }
.report__title a { color: var(--ink); text-decoration: none; }
.report__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.report__title a::after { content: " ↗"; font-weight: 400; color: var(--muted); }
.report__text { color: var(--muted); max-width: 52em; font-size: 1.0625rem; line-height: 1.55; }
.report__meta { display: block; margin-top: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 640px) { .report { grid-template-columns: 1fr; } .report__cover { max-width: 260px; } }
@media (prefers-reduced-motion: reduce) { .report__cover img { transition: none; } }
/* найновіший звіт — крупніше: велика обкладинка й розгорнутий опис */
.report--latest { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 40px; padding: 36px 0 40px; }
.report--latest .report__cover { box-shadow: 0 18px 40px -24px rgba(20, 40, 60, .45); }
.report--latest .report__year { font-size: clamp(3rem, 6vw, 4.5rem); }
.report--latest .report__title { font-size: 1.5rem; }
.report--latest .report__text { font-size: 1.125rem; color: var(--ink); }
.report__badge { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: var(--r); background: var(--yellow); color: var(--ink); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 860px) { .report--latest { grid-template-columns: 1fr; } .report--latest .report__cover { max-width: none; } }
/* архів новин: список ліворуч, пошук і фільтри — у правій колонці, що «прилипає» під час прокручування */
.archive__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px clamp(32px, 4vw, 56px); align-items: start; }
.archive__main .archive__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive__side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 22px; background: var(--sky); border-radius: var(--r); border-top: 5px solid; border-image: var(--line-accent) 1; }
.archive__side .archive__bar { margin: 0; gap: 0; }
.archive__label { margin: 18px 0 8px; font-size: .9375rem; font-weight: 700; }
.archive__side .archive__label:first-child { margin-top: 0; }
.archive__side .archive__q { max-width: none; min-height: 46px; }
.archive__side .chips { gap: 6px; }
.archive__side .chip { min-height: 36px; padding: 0 11px; }
@media (max-width: 960px) {
  .archive__layout { grid-template-columns: 1fr; }
  .archive__side { position: static; max-height: none; order: -1; }
}
@media (max-width: 560px) { .archive__main .archive__list { grid-template-columns: 1fr; } }
/* архів: обкладинки в пропорціях самої новини (без обрізання) */
.archive__list { align-items: start; }
.archive__list .card__media img { aspect-ratio: auto; height: auto; }
.archive__list .card__media--empty { aspect-ratio: 3 / 2; }
/* архів: масонрі в 3 колонки (news.js → layout рахує висоту кожної картки) */
.archive__main .archive__list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 4px; row-gap: 0; column-gap: 20px; --masonry-gap: 28px; }
.archive__list .card h3 { font-size: 1rem; }
.archive__list .card time { font-size: .875rem; }
.archive__list .card__excerpt { -webkit-line-clamp: 2; font-size: .875rem; }
@media (max-width: 1100px) { .archive__main .archive__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .archive__main .archive__list { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 32px; } }

/* оргструктура (structure.html) */
.org__chart { margin-top: 32px; }
.org__row { position: relative; display: flex; justify-content: center; gap: 16px; padding-bottom: 28px; }
.org__row::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 28px; background: #9FB0BD; }
.org__box { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 18px; border: 1px solid #9FB0BD; border-radius: var(--r); background: var(--white); text-align: center; min-width: 220px; }
.org__box b { line-height: 1.3; }
.org__box span { font-size: .9375rem; color: var(--muted); }
.org__box--gov { background: var(--soft); }
.org__box--main { background: #3D4349; border-color: #3D4349; color: #fff; min-width: 260px; }
.org__box--main span { color: #C9D0D6; }
.org__box--main b { font-size: 1.25rem; }
.org__box--side { max-width: 300px; font-size: .9375rem; }
.org__box--dir { background: var(--sky); border-color: var(--brand); }
.org__deps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 28px; border-top: 2px solid #9FB0BD; }
.org__dep { position: relative; padding: 16px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r); }
.org__dep::before { content: ""; position: absolute; left: 50%; top: -30px; width: 2px; height: 26px; background: #9FB0BD; }
.org__dep--admin { border-top-color: #3FA36B; }
.org__dep--dev { border-top-color: #C64BC4; }
.org__dep--ctrl { border-top-color: #D9534F; }
.org__dep--proj, .org__dep--bg { border-top-color: var(--brand); }
.org__dep h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 10px; }
.org__dep ul { display: grid; gap: 6px; }
.org__dep li li, .org__dep ul li { position: relative; padding-left: 14px; font-size: .9375rem; color: var(--muted); line-height: 1.4; }
.org__dep ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: #9FB0BD; }
.org__note { margin-top: 20px; color: var(--muted); font-size: .9375rem; max-width: 60em; }
@media (max-width: 1100px) { .org__deps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .org__row--top { flex-direction: column; align-items: center; }
  .org__row--gov { flex-direction: column; align-items: center; }
  .org__box, .org__box--side { min-width: 0; width: 100%; max-width: 420px; }
  .org__deps { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .org__dep::before { display: none; }
}
/* лічильник — у правій колонці, щоб верх карток і колонки був на одному рівні */
.archive__side .archive__count { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #C9DCE8; }
/* структура — посилання на PDF (стиль найновішого звіту) */
.org-doc { color: var(--ink); text-decoration: none; border-top: 5px solid; border-bottom: 1px solid var(--line); border-image: var(--line-accent) 1; }
.org-doc .report__cover img { aspect-ratio: auto; object-fit: contain; background: var(--white); }
.org-doc__title { display: block; font-size: 1.5rem; font-weight: 600; margin: 4px 0 12px; }
.org-doc:hover .org-doc__title { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.org-doc .org-doc__title::after { content: " ↗"; font-weight: 400; color: var(--muted); }
.org-doc .report__body, .org-doc .report__text, .org-doc .report__meta { display: block; }
/* відзнаки: фірмова рамка градієнтом, документ на білому полі; при наведенні рамка товщає */
.docs__grid--awards .doc__media { border: 6px solid; border-image: linear-gradient(135deg, var(--brand), var(--yellow)) 1; padding: 8px; background: var(--white); border-radius: 0; transition: border-width .25s, padding .25s; }
.docs__grid--awards .doc a:hover .doc__media, .docs__grid--awards .doc a:focus-visible .doc__media { border-width: 10px; padding: 4px; }
.docs__grid--awards .doc a:hover .doc__media img, .docs__grid--awards .doc a:focus-visible .doc__media img { transform: none; }
@media (prefers-reduced-motion: reduce) { .docs__grid--awards .doc__media { transition: none; } }

/* десктоп: шапка з меню «прилипає» вгорі під час прокручування (темна смужка зверху відходить) */
@media (min-width: 961px) {
  .header { position: sticky; top: -40px; z-index: 50; transition: box-shadow .25s; }  /* 40px — висота темної смужки */
  .header.is-stuck { box-shadow: 0 8px 24px -16px rgba(20, 40, 60, .45); }
  html { scroll-padding-top: 104px; }
  .archive__side { top: 108px; max-height: calc(100vh - 132px); }
}
/* під шапкою сторінки вже є градієнтна лінія — другу над списками прибираємо */
.jobs__list, .reports__list { border-top: 0; border-image: none; }
.jobs__list li:first-child a { padding-top: 0; }
.report:first-child { padding-top: 0; }
/* гаряча лінія в «прилиплій» шапці (десктоп): з’являється, коли темна смужка з телефоном пішла вгору */
.header__hotline { display: none; }
@media (min-width: 961px) {
  .header__hotline { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; padding-left: 24px; border-left: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; line-height: 1.15;
    max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .25s, max-width .3s, visibility .25s; }
  .header__hotline svg { width: 34px; height: 34px; padding: 8px; flex: none; border-radius: 50%; background: var(--brand); fill: #fff; }
  .header__hotline small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
  .header__hotline:hover { color: var(--accent); }
  .header.is-stuck .header__hotline { max-width: 260px; opacity: 1; visibility: visible; }
}
@media (min-width: 961px) and (max-width: 1080px) { .header__hotline small { display: none; } .header__hotline { padding-left: 16px; } }
@media (prefers-reduced-motion: reduce) { .header__hotline { transition: none; } }
/* вакансії: місто під назвою позиції */
.jobs__pos { display: flex; flex-direction: column; gap: 4px; }
.jobs__city { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 400; color: var(--muted); }
.jobs__city::before { content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid var(--brand); box-sizing: border-box; }
/* юридична інформація: картка з реєстраційними даними */
.legal__card { max-width: 760px; padding: clamp(24px, 3vw, 36px); background: var(--soft); border-radius: 18px; }
.legal__card h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: 18px; }
.legal__card p { margin: 0 0 14px; font-size: 1.125rem; }
.legal__card p:last-child { margin-bottom: 0; }
.docs__grid--policies { margin-top: 32px; }
/* юридична інформація: реєстраційні дані + установчі документи поруч */
.legal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.legal__grid .legal__card { max-width: none; }
.legal__docs h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: 18px; }
.legal__doc { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.legal__doc:hover, .legal__doc:focus-visible { border-color: var(--brand); background: var(--sky); }
.legal__doc img { width: 88px; height: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 6px 14px -10px rgba(20, 40, 60, .5); }
.legal__doc-title { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.legal__doc-title::after { content: " ↗"; font-weight: 400; color: var(--muted); }
.legal__doc:hover .legal__doc-title { color: var(--accent); }
.legal__doc-meta { display: block; margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 860px) { .legal__grid { grid-template-columns: 1fr; } }

/* кнопка «Нагору» */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid transparent; background: linear-gradient(#3D4349, #3D4349) padding-box, var(--line-accent) border-box;  /* тонке фірмове кільце */
  color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(20, 40, 60, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: linear-gradient(var(--accent), var(--accent)) padding-box, var(--line-accent) border-box; }
.to-top:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.legal__muted { font-size: .9375rem; color: var(--muted); }
.legal__facts { margin: 6px 0 14px; border-top: 1px solid #DCE2E7; }
.legal__facts div { padding: 10px 0; border-bottom: 1px solid #DCE2E7; }
.legal__facts dt { font-size: .875rem; color: var(--muted); }
.legal__facts dd { font-size: 1rem; font-weight: 600; }
.legal__src { font-size: .875rem; color: var(--muted); }

/* контакти: іконки в колах ліворуч */
.ci-wrap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--accent); flex: none; }
.ci-wrap--hot { background: var(--brand); color: #fff; }
.ci { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contacts-list div { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.contacts-list .ci-wrap { grid-row: 1 / span 4; margin-top: 2px; }
.contacts-list dt, .contacts-list dd { grid-column: 2; }
.office-cards--stack li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; }
.office-cards--stack .ci-wrap { grid-row: 1 / span 3; background: var(--white); }
.office-cards--stack b, .office-cards--stack span:not(.ci-wrap) { grid-column: 2; }

/* карта офісів (contacts.html, map.js) */
.office-map__box { height: clamp(320px, 50vw, 480px); margin-top: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sky); z-index: 0; }
.office-map__note { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.office-map__all { border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; padding: 0; }
.office-pin span { position: absolute; left: 2px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(20, 40, 60, .45); }
.office-pin span::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.office-show { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.office-show button { border: 0; background: none; padding: 0; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.office-show button:hover { color: var(--ink); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { font-size: .9375rem; line-height: 1.45; }

/* сектори у вигляді кола кластерів ООН (about.html, tools/clusters.py) */
.cw { margin-top: 24px; }
.cw__svg { display: block; width: 100%; max-width: 1010px; height: auto; margin: 0 auto; }
.cw__seg path { fill: #1F6FB2; transition: fill .2s; }
.cw__seg:nth-child(odd) path { fill: #2477BD; }
.cw__seg:hover path { fill: #155A93; }
.cw__hub { fill: var(--white); stroke: #E3ECF4; stroke-width: 2; }
.cw__en { font-size: 19px; font-weight: 700; fill: #1F6FB2; }
.cw__ua { font-size: 15px; font-weight: 400; fill: var(--muted); }
.cw__list { display: none; }
@media (max-width: 700px) {
  .cw { overflow: hidden; }
  .cw__svg text { display: none; }
  .cw__svg { width: 197%; max-width: none; margin: -27% 0 -50% -48%; }  /* без підписів і дуги етапів — лише коло на всю ширину */
  .cw__stages { display: none; }
  .cw__list { display: grid; gap: 10px; margin-top: 20px; }
  .cw__list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
  .cw__list img { width: 40px; height: 40px; padding: 6px; border-radius: 6px; background: #1F6FB2; }
  .cw__list b { color: #1F6FB2; }
}
.cw__family { fill: #D9AFC0; }
.cw__child { fill: #C995A9; stroke: #fff; stroke-width: 3; paint-order: stroke; }
.cw__st--grey { fill: #CFCFCF; }
.cw__st--pink { fill: #DDB3C3; }
.cw__st-t { font-size: 21px; font-weight: 700; fill: #fff; letter-spacing: .01em; }
.cw__st-t--long { font-size: 17px; }
/* відзнаки: документ видно повністю (альбомні — з полями), без обрізання */
.docs__grid--awards .doc__media img { object-fit: contain; object-position: 50% 50%; background: var(--white); }

/* політики списком, згруповано за темами */
.pol { columns: 2; column-gap: clamp(32px, 4vw, 64px); margin-top: 28px; }
.pol__group { break-inside: avoid; margin-bottom: 32px; }
.pol__group h3 { display: flex; align-items: baseline; gap: 8px; font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2px solid var(--brand); }
.pol__group h3 span { font-size: .875rem; font-weight: 600; color: var(--muted); }
.pol__list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4; }
.pol__list a:hover, .pol__list a:focus-visible { background: var(--sky); }
.pol__list a:hover .pol__t { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.pol__ico { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pol__m { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); white-space: nowrap; padding-top: 2px; }
@media (max-width: 860px) { .pol { columns: 1; } }
/* «на карті» — в одному рядку з адресою */
.office-addr button { margin-left: 8px; border: 0; background: none; padding: 0; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; white-space: nowrap; }
.office-addr button:hover { color: var(--ink); }

/* матеріально-технічна база (about.html) */
.mtb__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; margin-top: 28px; }
.mtb__total { padding: 24px; background: #3D4349; color: #fff; border-radius: var(--r); border-top: 5px solid; border-image: var(--line-accent) 1; }
.mtb__sum { display: block; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; }
.mtb__sum-t { display: block; margin-top: 10px; font-size: .9375rem; color: #C9D0D6; line-height: 1.45; }
.mtb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mtb__card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.mtb__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 50%; background: var(--sky); color: var(--accent); }
.mtb__i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mtb__card h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.mtb__card p { font-size: .9375rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .mtb__in { grid-template-columns: 1fr; } .mtb__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mtb__grid { grid-template-columns: 1fr; } }
/* матеріально-технічна база — списком (замість карток) */
.mtb__grid { display: block; border-top: 1px solid var(--line); }
.mtb__card { display: grid; grid-template-columns: 46px minmax(180px, 3fr) minmax(0, 7fr); gap: 4px 20px; align-items: center; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.mtb__ic { margin: 0; }
.mtb__card h3 { margin: 0; }
.mtb__card p { margin: 0; }
@media (max-width: 760px) { .mtb__card { grid-template-columns: 46px minmax(0, 1fr); align-items: start; } .mtb__ic { grid-row: span 2; } .mtb__card h3 { padding-top: 2px; } .mtb__card p { grid-column: 2; } }
/* юридична інформація: реєстраційні дані на всю ширину, установчі документи — під ними у два стовпці */
.legal__grid { grid-template-columns: 1fr; gap: 40px; }
.legal__grid .legal__card { padding: clamp(24px, 3vw, 40px); }
.legal__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid #DCE2E7; }
.legal__facts div { border-bottom: 0; }
.legal__docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.legal__docs h2 { grid-column: 1 / -1; margin-bottom: 0; }
.legal__doc { margin-bottom: 0; }
@media (max-width: 960px) { .legal__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .legal__docs { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .legal__facts { grid-template-columns: 1fr; } .legal__facts div { border-bottom: 1px solid #DCE2E7; } }

/* сторінка статті (tools/build_articles.py) */
.page-head--article h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 30em; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.article__tag { padding: 2px 10px; border-radius: var(--r); background: var(--white); color: var(--accent); font-weight: 600; font-size: .8125rem; }
.article { padding: clamp(32px, 5vw, 56px) 0 var(--sec); }
.article__in { max-width: 860px; }
.article__cover { margin: 0 0 28px; }
.article__cover img { width: 100%; height: auto; border-radius: var(--r); }
.prose { font-size: 1.125rem; line-height: 1.7; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.125rem; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: var(--r); }
.prose figure { margin: 1.4em 0; } .prose figcaption { font-size: .9375rem; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink); font-style: italic; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.4em 0; border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 1rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose a { word-break: break-word; }
.article__back { margin-top: 40px; }
