/*
Theme Name: Еталон
Theme URI: https://mgcetalon.org.ua
Author: ГЦ «Еталон»
Description: Легка класична тема для сайту Громадського центру «Еталон». Без конструкторів сторінок, без вебшрифтів і jQuery: один файл стилів і кілька рядків JS.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: etalon
*/

/* ---------- Токени ---------- */
:root {
	--paper: #ffffff;
	--ink: #2f2e2b;
	--grey: #3f3e3a;
	--muted: #66655f;
	--mist: #f0f0ec;
	--yellow: #f2c200;
	--lime: #9bc31c;
	--rule: 2px solid var(--grey);
	--wrap: 1320px;
	--text: 720px;
	--tilt: -8deg;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Текст: одна гарнітура для кирилиці й латиниці. Цифри: контрастна антиква, як у логотипі. */
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--numeral: Didot, "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--grey) var(--mist); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	overflow-wrap: break-word;
	caret-color: var(--grey);
}
::selection { background: var(--yellow); color: var(--ink); }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); text-transform: lowercase; }
h3 { font-size: 1.6rem; line-height: 1.15; }
p { margin: 0 0 1.1em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
time, .years, .tiles b, .prow-when, .hero-num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--yellow); padding: 12px 16px; font-weight: 700; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; transition: transform .25s var(--ease); }
a:hover .ico { transform: translateX(4px); }
.doc-list a:hover .ico-down, .tiles a:hover .ico-down { transform: translateY(3px); }
.empty { color: var(--muted); }

/* ---------- Шапка ---------- */
.site-header { background: var(--paper); position: relative; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }
.brand { display: block; flex: none; }
.brand:hover { background: none; }
.brand img { height: 72px; width: auto; }
.nav-toggle { display: none; background: var(--paper); border: var(--rule); padding: 10px 16px; font: 700 .85rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.main-nav a:hover { background: none; box-shadow: inset 0 -5px 0 var(--yellow); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-category-ancestor > a { box-shadow: inset 0 -5px 0 var(--lime); }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--paper); border: var(--rule); padding: 6px; flex-direction: column; align-items: stretch; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- Кнопки й посилання-дії ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; background: var(--grey); color: #fff; font: 700 1.05rem/1.2 var(--sans); text-decoration: none; border: 0; }
.btn:hover { background: var(--ink); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: var(--rule); }

/* ---------- Перший екран: два квадрати логотипа ---------- */
.hero { overflow: clip; padding: 28px 0 clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.hero-squares { --dx: -5%; --dy: 4%; position: relative; aspect-ratio: 1; max-width: 660px; margin: 2% 0 6%; container-type: inline-size; }
.sq-lime { position: absolute; inset: 0; background: var(--lime); transform: translate(var(--dx), var(--dy)) rotate(var(--tilt)); }
.sq-yellow { position: relative; min-height: 100%; background: var(--yellow); padding: clamp(28px, 8.5cqi, 56px); display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(2.1rem, 11.4cqi, 5rem); line-height: 1; margin: 0 0 .35em; }
.hero-lead { font-size: clamp(1rem, 2.9cqi, 1.2rem); line-height: 1.45; max-width: 34ch; margin: 0 0 28px; }
.hero .btn { margin-top: auto; align-self: flex-start; }
.hero-proof { padding-top: 2%; }
.hero-num { margin: 0 0 clamp(24px, 3vw, 44px); }
.hero-num a { display: inline-block; text-decoration: none; }
.hero-num a:hover { background: none; }
.hero-num a:hover span, .hero-num a:focus-visible span { background: var(--yellow); }
.hero-num b { display: block; font: 400 clamp(7rem, 17vw, 15rem)/.8 var(--numeral); letter-spacing: -.03em; color: var(--grey); }
.hero-num span { display: inline-block; margin-top: 22px; font-weight: 700; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.doc-list { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.doc-list a, .doc-list .doc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: var(--rule); padding: 14px 0; text-decoration: none; font: 400 clamp(1.35rem, 2.2vw, 2rem)/1.15 var(--serif); }
.doc-list span::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .5em; background: var(--yellow); }
.doc-list li:nth-child(even) span::before { background: var(--lime); }
.doc-list a:hover, .doc-list a:focus-visible { background: var(--yellow); }
.doc-list li:nth-child(even) a:hover, .doc-list li:nth-child(even) a:focus-visible { background: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
	.sq-lime { animation: tilt 1s var(--ease) .15s backwards; }
	@keyframes tilt { from { transform: translate(var(--dx), var(--dy)) rotate(-2deg); } }
}

/* ---------- Секції ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section:not([class*="band-"]) + .section:not([class*="band-"]) { padding-top: 0; }
.band-lime { background: var(--lime); }
.band-mist { background: var(--mist); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.split > h2 { margin: 0; }

/* Проєкти */
.prows { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.prow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; border-top: var(--rule); padding: 22px 0; align-items: baseline; }
.prow-when { font-weight: 700; font-size: .95rem; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.live { display: inline-block; background: var(--lime); color: var(--ink); padding: 3px 9px; font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.prow-title { font: 400 clamp(1.3rem, 2.1vw, 1.8rem)/1.15 var(--serif); text-decoration: none; }
.prow-donors { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.prow-donors a { color: var(--muted); }
.prow-donors a:hover, .crumbs a:hover, .facts .ext:hover { color: var(--ink); }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 40px); }
.years a { width: 68px; height: 68px; display: grid; place-items: center; border: var(--rule); font-weight: 700; text-decoration: none; transition: background .2s var(--ease); }
.years a:hover, .years a:focus-visible { background: var(--yellow); }
.years a:nth-child(even):hover, .years a:nth-child(even):focus-visible { background: var(--lime); }
.section-year { scroll-margin-top: 24px; }
.section-year h2 { font-family: var(--numeral); }

/* Звіти */
.reports { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.reports-head h2 { margin-bottom: .4em; }
.reports-head p { max-width: 32ch; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tiles a { aspect-ratio: 1; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; text-decoration: none; transition: background .2s var(--ease); }
.tiles b { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--numeral); }
.tiles span { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.tiles a:hover, .tiles a:focus-visible { background: var(--yellow); }

/* Напрями */
.dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 56px); }
.dirs li { position: relative; padding-left: 46px; }
.dirs li::before { content: ""; position: absolute; left: 0; top: 5px; width: 24px; height: 24px; background: var(--yellow); }
.dirs li:nth-child(even)::before { background: var(--lime); transform: rotate(var(--tilt)); }
.dirs h3 { margin-bottom: .3em; }
.dirs h3 a { text-decoration: none; }
.dirs p { margin: 0; color: var(--muted); }
.dirs .dir-count { margin-top: 10px; font-weight: 700; font-size: .85rem; color: var(--ink); }

/* Новини */
.news { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.news-solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; background: var(--paper); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-lead time, .rows time { font-weight: 700; font-size: .85rem; }
.news-lead h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 8px 0 .4em; }
.news-lead h3 a { text-decoration: none; }
.news-lead p { margin: 0; max-width: 60ch; }
.news-lead.no-img { border-top: var(--rule); padding-top: 20px; }

/* Список записів */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.rows li { border-top: var(--rule); padding: 18px 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 20px; align-items: baseline; }
.rows a { font: 400 1.3rem/1.3 var(--serif); text-decoration: none; }
.rows p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }

/* Донори */
.donors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.donors li { border-top: var(--rule); padding: 16px 0 18px; font: 400 1.35rem/1.3 var(--serif); }
.donors a { text-decoration: none; }
.donors-more { margin: clamp(24px, 3vw, 40px) 0 0; }
.donors span { display: block; margin-top: 6px; font: 700 .82rem/1.3 var(--sans); color: var(--muted); }

/* Місія */
.mission-band h2 { margin-bottom: .6em; }
.mission { font: 400 clamp(1.5rem, 2.7vw, 2.4rem)/1.25 var(--serif); max-width: 30em; margin-bottom: .8em; text-wrap: pretty; }
.history { max-width: 60ch; margin-bottom: 2em; }

/* ---------- Заголовок сторінки / архіву ---------- */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 3.5vw, 48px); border-bottom: var(--rule); }
.page-head h1 { margin: 0; text-transform: lowercase; }
.page-head .title-plain { text-transform: none; font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: 24em; }
.page-head p { max-width: 70ch; margin: 1em 0 0; }
.page-head .years { margin-top: 28px; }
.crumbs { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pills a { padding: 7px 13px; border: var(--rule); text-decoration: none; font-size: .88rem; font-weight: 700; }
.pills a.is-active { background: var(--yellow); }
.meta { font-size: .88rem; font-weight: 700; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 16px 0 0; }
.badge { display: inline-block; padding: 3px 9px; border: var(--rule); font-size: .78rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* Записи в архівах: рядки з датою, назвою, уривком і мініатюрою */
.afilter { display: grid; gap: 16px; align-content: start; }
.afilter-label { margin: 8px 0 -4px; font: 700 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.found { margin: 0; font: 400 1.6rem/1.15 var(--serif); }
.fl { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.fl li { display: flex; justify-content: space-between; gap: 16px; border-top: var(--rule); padding: 12px 0; font: 400 1.25rem/1.3 var(--serif); }
.fl a { text-decoration: none; }
.fl span { font: 700 .85rem/1.6 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.years a.is-active { background: var(--yellow); }
.years a.is-open { box-shadow: inset 0 -6px 0 var(--yellow); }
.years span.is-empty { width: 68px; height: 68px; display: grid; place-items: center; background: var(--mist); color: var(--muted); font-weight: 700; }
.afilter .years { margin-top: 0; }
.fl-date { font: 700 .95rem/1.6 var(--sans); font-variant-numeric: tabular-nums; }
.fl li:has(.fl-date) { padding: 8px 0; }
.tagcloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.tagcloud a { font-family: var(--serif); line-height: 1.35; }
.tagcloud .tc-0 { font-size: 1rem; }
.tagcloud .tc-1 { font-size: 1.15rem; }
.tagcloud .tc-2 { font-size: 1.3rem; }
.tagcloud .tc-3 { font-size: 1.5rem; }
.tagcloud .tc-4 { font-size: 1.75rem; }
.tagcloud a.is-current { background: var(--yellow); }
.arows { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.arow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 24px; border-top: var(--rule); padding: 22px 0; align-items: start; }
.arow.has-thumb { grid-template-columns: 112px minmax(0, 1fr) 200px; }
.arow time { font-weight: 700; font-size: .85rem; padding-top: .5em; }
.arow-title { font: 400 clamp(1.35rem, 2.2vw, 1.9rem)/1.25 var(--serif); text-decoration: none; }
.arow p { margin: 8px 0 0; max-width: 62ch; font-size: .95rem; color: var(--muted); }
.arow-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.arow-thumb:hover { background: var(--mist); }
.arow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.alist-solo { grid-column: 1 / -1; }

/* ---------- Запис ---------- */
.entry-content { font-size: 1.06rem; }
.entry-content > * { margin-bottom: 1.15em; }
.entry-content h2 { font-size: 2rem; text-transform: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; margin-bottom: .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--mist); font: 400 1.35rem/1.35 var(--serif); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content iframe { width: 100%; border: 0; }
.entry-content video { width: 100%; height: auto; background: var(--grey); }
.entry-content .video { margin-inline: 0; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content .table-scroll { overflow-x: auto; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { border: 1px solid var(--grey); padding: 8px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--mist); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 4px 22px 14px 0; }
.alignright { float: right; margin: 4px 0 14px 22px; }
.aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery br { display: none; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.post-nav a { display: block; padding: 16px 0; border-top: var(--rule); text-decoration: none; font: 400 1.25rem/1.3 var(--serif); }
.post-nav small { display: block; font: 700 .8rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-nav .next { text-align: right; grid-column: 2; }

/* Проєкт */
.project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.facts { margin: 0; border-bottom: var(--rule); }
.facts > div { border-top: var(--rule); padding: 14px 0 16px; }
.facts dt { font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 1.02rem; }
.facts li + li { margin-top: 6px; }
.facts .ext { font-size: .82rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.project-cover, .cover { margin-bottom: 28px; }
.cover img { width: 100%; }
.cover-side { margin-bottom: 0; }
.project-side .cover-side { margin-bottom: 28px; }
.project-side .cover-side:has(+ .cover-desc) { margin-bottom: 0; }
.project-side .cover-desc { margin-bottom: 28px; }
.cover-side img { display: block; height: auto; }
.cover-desc { margin-top: 14px; padding-top: 12px; border-top: var(--rule); font: 400 1.05rem/1.4 var(--serif); color: var(--ink); }
.cover-desc p { margin: 0 0 .6em; }
.cover-desc p:last-child { margin-bottom: 0; }
.project-body .entry-content { max-width: var(--text); }
.project-body .entry-content > :first-child { margin-top: 0; }
.project-posts { margin-top: clamp(40px, 6vw, 72px); }
.project-posts h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }

/* Звіти: перелік за роками */
.rrows { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.rrow a { display: grid; grid-template-columns: clamp(120px, 16vw, 220px) minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; border-top: var(--rule); padding: 22px 16px; margin-inline: -16px; text-decoration: none; }
.rrow-year { font: 400 clamp(2.6rem, 5.4vw, 4.6rem)/1 var(--numeral); letter-spacing: -.02em; }
.rrow-title { display: block; font: 400 clamp(1.3rem, 2.1vw, 1.8rem)/1.25 var(--serif); }
.rrow-meta { display: block; margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.rrow a:hover, .rrow a:focus-visible { background: var(--yellow); }
.rrow:nth-child(even) a:hover, .rrow:nth-child(even) a:focus-visible { background: var(--lime); }
.rrow a:hover .rrow-meta, .rrow a:focus-visible .rrow-meta { color: var(--ink); }

/* Сторінка звіту */
.report-sq { max-width: 400px; margin: 2% 0 40px 3%; --dx: -6%; --dy: 5%; }
.report-sq .sq-yellow { padding: 28px; justify-content: space-between; }
.year-num { margin: 0; font: 400 clamp(4rem, 34cqi, 7.5rem)/.85 var(--numeral); letter-spacing: -.03em; }
.year-cap { margin: 0; font: 700 .85rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.facts .size { font-size: .85rem; font-weight: 700; color: var(--muted); margin-left: 6px; }

/* Запис і сторінка: ліворуч факти, праворуч текст */
.article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.article-body { grid-column: 2; min-width: 0; }
.article-body .entry-content { max-width: var(--text); }
.article-body .entry-content > :first-child { margin-top: 0; }
.article-body .post-nav { max-width: var(--text); }
.facts .badge { margin: 0 6px 6px 0; }
.lead-text { max-width: var(--text); margin-bottom: clamp(32px, 4vw, 56px); }

/* Контакти */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.contact-sq { max-width: 620px; margin: 2% 0 6% 3%; }
.contact-sq .sq-yellow { padding: clamp(24px, 8.5cqi, 52px); }
.contact-label { margin: 0 0 12px; font: 700 .85rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.contact-address { margin: 0 0 28px; font: 400 clamp(1.7rem, 8.4cqi, 3.2rem)/1.1 var(--serif); max-width: 14em; }
.contact-sq .btn { margin-top: auto; align-self: flex-start; }
.contact-info .facts dd { font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1.3 var(--serif); }
.contact-info .entry-content { margin-top: 32px; max-width: var(--text); }

/* ---------- Пагінація, пошук ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 12px; display: grid; place-items: center; border: var(--rule); text-decoration: none; font-weight: 700; }
.pagination .dots { border-color: transparent; }
.pagination .current { background: var(--yellow); }
.search-form { display: flex; gap: 8px; max-width: 560px; width: 100%; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: var(--rule); border-radius: 0; font: inherit; background: var(--paper); color: var(--ink); }
.search-field::placeholder { color: var(--muted); opacity: 1; }
.search-submit { padding: 12px 20px; border: 0; background: var(--grey); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--ink); }

/* ---------- Підвал ---------- */
.site-footer { background: var(--grey); color: #fff; font-size: .95rem; padding-top: clamp(40px, 5vw, 72px); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ink); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h2 { font: 700 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo:hover { background: none; }
.footer-logo img { display: block; height: 56px; width: auto; max-width: 100%; }
.footer-brand { font: 400 1.7rem/1.1 var(--serif); margin-bottom: 10px; }
.footer-bottom .wrap { border-top: 2px solid rgba(255, 255, 255, .35); padding-top: 18px; padding-bottom: 28px; font-size: .85rem; color: #d9d8d2; }
.footer-bottom .wrap { max-width: calc(var(--wrap) - 56px); padding-inline: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1380px) {
	.footer-bottom .wrap { max-width: none; margin-inline: 28px; }
}
@media (max-width: 960px) {
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.site-header .wrap { min-height: 88px; }
	.brand img { height: 56px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.hero-squares { margin: 3% 0 8% 4%; }
	.hero-proof { padding-top: 0; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-block: var(--rule); padding: 8px 14px 16px; max-height: calc(100dvh - 88px); overflow-y: auto; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; }
	.main-nav a { padding: 14px; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.split, .reports, .project, .news, .contact, .article { grid-template-columns: minmax(0, 1fr); }
	.article-body, .alist-solo { grid-column: auto; }
	.afilter { order: 2; }
	.afilter-top { order: 0; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.hero { padding-top: 12px; }
	.hero-squares { --dx: -4%; --dy: 5%; --tilt: -6deg; aspect-ratio: auto; margin: 5% 3% 12% 6%; }
	.sq-yellow { min-height: 78vw; }
	.report-sq .sq-yellow { min-height: 52vw; }
	.rrow a { grid-template-columns: minmax(0, 1fr) auto; }
	.rrow-year { grid-column: 1 / -1; }
	.grid-2, .grid-3, .footer-grid, .post-nav, .dirs { grid-template-columns: minmax(0, 1fr); }
	.post-nav .next { grid-column: 1; text-align: left; }
	.prow, .rows li, .arow, .arow.has-thumb { grid-template-columns: minmax(0, 1fr); }
	.arow-thumb { order: 3; }
	.prow-when { flex-direction: row; align-items: center; }
	.years a { width: 60px; height: 60px; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alignleft, .alignright { float: none; margin: 0 0 14px; }
	.footer-bottom .wrap { margin-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
/* Кнопка прокручування: жовтий квадрат справа внизу; шеврон вниз веде до «Місії», вгору — на початок */
.scroll-btn { position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 60; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; background: var(--yellow); color: var(--ink); border: var(--rule); border-radius: 0; cursor: pointer; }
.scroll-btn[hidden] { display: none; }
.scroll-btn:hover { background: var(--ink); color: var(--yellow); }
.scroll-btn .ico { width: 26px; height: 26px; transition: transform .25s; }
.scroll-btn.is-up .ico { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .scroll-btn .ico { transition: none; } }

@media print {
	.site-header, .site-footer, .post-nav, .nav-toggle, .hero .btn, .years, .scroll-btn { display: none; }
}
