/* ==========================================================================
   IPS — Інститут політичних студій · редизайн 2026
   Шрифти: Unbounded (заголовки), Onest (текст).
   ========================================================================== */

:root {
	--navy: #04122b;
	--navy-2: #0b2550;
	--navy-line: #273348;
	--blue: #02519c;
	--blue-card: #06306b;
	--blue-100: #e6eef7;
	--yellow: #fab90a;
	--yellow-600: #e5a600;
	--yellow-100: #fff4d1;
	--beige: #f4f2ec;
	--ink: #0b1a33;
	--text: #333d50;
	--muted: #5b6678;
	--line: #d7d7d5;
	--line-soft: #e6e6e3;
	--white: #fff;
	--radius: 8px;
	--radius-sm: 6px;
	--radius-lg: 14px;
	--shadow: 0 12px 32px -16px rgba(4, 18, 43, .28);
	--shadow-lg: 0 28px 64px -24px rgba(4, 18, 43, .45);
	--header-h: 96px;
	--font-head: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
	--font-body: "Onest", "Segoe UI", Arial, sans-serif;
	--container: 1160px;
	--gutter: 24px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis (плавна прокрутка колесом миші). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon.flip { transform: scaleX(-1); }

/* ---------- Typography helpers ---------- */
.h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.accent { color: var(--yellow); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
	color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); flex: none; }
.eyebrow--light { color: #fff; }

.kicker { display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--blue); }
.kicker--yellow { color: var(--yellow); }

.tag {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 600; line-height: 1.4;
	color: var(--blue); background: var(--blue-100); padding: 4px 10px; border-radius: 999px;
}
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--muted { background: #eef0f4; color: var(--muted); }

.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 0; }
.meta .icon { color: var(--blue); }

/* ---------- Buttons (pills) ---------- */
.btn {
	--b: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 12px 28px; border-radius: 999px;
	font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
	border: 1px solid var(--b); text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--yellow); --b: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--yellow-600); --b: var(--yellow-600); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(229, 166, 0, .8); }
.btn--dark, .btn--blue { background: var(--navy); --b: var(--navy); color: #fff; }
.btn--dark:hover, .btn--blue:hover { background: var(--blue); --b: var(--blue); color: #fff; }
.btn--outline { background: transparent; --b: var(--line); color: var(--ink); }
.btn--outline:hover { --b: var(--ink); color: var(--ink); background: rgba(4, 18, 43, .03); }
.btn--outline-light { background: transparent; --b: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: #fff; --b: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--blue); --b: transparent; }
.btn--ghost:hover { background: var(--blue-100); color: var(--blue); }
.btn--ghost-light { background: transparent; color: #fff; --b: transparent; justify-content: flex-start; padding-left: 0; }
.btn--ghost-light:hover { color: var(--yellow); }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 16px; color: var(--blue);
	background: none; border: 0; padding: 0;
}
.link-arrow .icon { width: 17px; height: 17px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--yellow { color: var(--yellow); }
.link-arrow--yellow:hover { color: #ffd257; }

.pill-btn {
	display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 15px;
	border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85);
	font-size: 13px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.pill-btn .icon { width: 13px; height: 13px; }
.pill-btn:hover { background: #fff; color: var(--navy); border-color: #fff; }

.circle-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; padding: 0;
	transition: background-color .2s, color .2s, border-color .2s;
}
.circle-btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.circle-btn .icon { width: 18px; height: 18px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: transparent; color: inherit; transition: background-color .2s;
}
.icon-btn:hover { background: var(--beige); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Chips (filters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--left { margin-bottom: 40px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 20px; min-height: 42px; border-radius: 999px; border: 1px solid var(--line);
	background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.2;
	transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: 12px; opacity: .6; }
.chips--dark .chip { border-color: rgba(255, 255, 255, .2); color: #fff; }
.chips--dark .chip:hover { border-color: rgba(255, 255, 255, .7); }
.chips--dark .chip.is-active { background: #fff; border-color: #fff; color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--navy); color: #fff;
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; color: #fff; }
.brand__logo { height: 56px; width: auto; }

.nav { margin-left: auto; margin-right: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
	display: inline-flex; align-items: center; padding: 10px 14px; color: #fff;
	font-size: 16px; font-weight: 500; border-radius: 999px; position: relative;
}
.nav__link:hover { color: var(--yellow); }
.nav__item.has-sub .nav__link { padding-right: 2px; }
.nav__toggle {
	display: inline-grid; place-items: center; width: 26px; height: 32px; padding: 0;
	background: none; border: 0; color: #fff; border-radius: 4px;
}
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__toggle:hover { color: var(--yellow); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
	list-style: none; background: #fff; border-radius: var(--radius); padding: 8px;
	box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s; z-index: 10;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px;
	color: var(--ink); font-size: 15px; font-weight: 500;
}
.nav__sublink .icon { width: 18px; height: 18px; color: var(--blue); }
.nav__sublink:hover { background: var(--beige); color: var(--blue); }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.burger { display: none; }
.burger__close { display: none; }

@media (hover: hover) and (min-width: 1081px) {
	.nav__item.has-sub:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; }
}

/* ==========================================================================
   Hero — завжди цілком у вікні: текст зверху, фото заповнює решту висоти
   ========================================================================== */
.hero {
	position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column;
	min-height: calc(100vh - var(--header-h));
}
@supports (height: 100svh) {
	.hero { min-height: calc(100svh - var(--header-h)); }
}
.hero__inner { position: relative; z-index: 2; padding-top: clamp(28px, 6.5vh, 64px); width: 100%; }
.hero__title {
	color: #fff; font-weight: 600;
	font-size: clamp(36px, min(4.3vw, 7.6vh), 62px); line-height: 1.0; letter-spacing: -.035em;
	max-width: 1100px; margin: 0 0 clamp(18px, 3.4vh, 34px);
}
.hero__title .accent { color: var(--yellow); }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; }
.hero__text { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 540px; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }
.hero__photo {
	position: relative; flex: 1 1 auto; min-height: 220px; margin-top: clamp(-120px, -9vh, -40px); z-index: 1;
}
.hero__photo::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, var(--navy) 0%, rgba(4, 18, 43, .7) 14%, rgba(4, 18, 43, .15) 34%, rgba(4, 18, 43, 0) 48%);
}
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 9vw, 140px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 100px); }
.section--beige { background: var(--beige); }
.section--blue { background: var(--blue); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--blue .h2, .section--navy .h2 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head > div:first-child .eyebrow { display: flex; }
.section-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.block-head .h3 { margin: 0; }
.block-head--spaced { margin-top: 64px; }
.counter {
	display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px;
	border-radius: 20px; background: var(--blue-100); color: var(--blue); font-weight: 700; font-size: 13px;
}
.empty { color: var(--muted); padding: 28px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: transparent; }
.empty--light { color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .25); }
.filter-empty { color: var(--muted); padding: 24px 0; }
.filter-empty--light { color: rgba(255, 255, 255, .7); grid-column: 1 / -1; }
.card-grid, .pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- About ---------- */
.about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; }
.h2--xl { font-size: clamp(36px, 4.4vw, 64px); }
.about__head .h2 { max-width: 520px; }
.about__text p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 1.1em; }
.about__text p:last-child { margin-bottom: 0; }
.about__photo { margin: clamp(48px, 5vw, 72px) 0 0; }
.about__photo img { width: 100%; aspect-ratio: 1160 / 560; object-fit: cover; border-radius: var(--radius); }
.directions {
	list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
	margin-top: 64px; border-top: 1px solid var(--line-soft);
}
.directions li { padding: 28px 28px 0; border-left: 1px solid var(--line-soft); }
.directions li:first-child { padding-left: 0; border-left: 0; }
.directions strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; margin-bottom: 10px; }
.directions span { display: block; font-size: 15px; color: var(--muted); line-height: 1.6; }
.about__foot { margin-top: 64px; border-top: 1px solid var(--line-soft); padding-top: 32px; }
.values { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.values strong { color: var(--ink); font-weight: 600; }
.values__dot { color: var(--yellow); font-size: 14px; }
.about__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }

/* ---------- Team ---------- */
.team { margin-top: clamp(72px, 8vw, 110px); }
.team__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.member { margin: 0; }
.member__photo { aspect-ratio: 4 / 5; background: var(--beige); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__placeholder .icon { width: 56px; height: 56px; color: #c9c7bf; }
.member figcaption { padding-top: 12px; line-height: 1.35; }
.member strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.member span { font-size: 14px; color: var(--muted); }

/* ---------- Events ---------- */
.event-list { border-bottom: 1px solid var(--line); }
.event-row {
	display: grid; grid-template-columns: 150px 280px 1fr 168px; align-items: center; gap: 40px;
	padding: 32px 0; border-top: 1px solid var(--line);
}
.event-row__date { font-family: var(--font-head); color: var(--ink); line-height: 1; padding-left: 2px; }
.event-row__day { display: block; font-size: 64px; font-weight: 600; letter-spacing: -.04em; }
.event-row__month { display: block; font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 14px; }
.event-row__media { padding: 0; border: 0; background: none; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 280 / 170; }
.event-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-row:hover .event-row__media img { transform: scale(1.04); }
.event-row__body { min-width: 0; }
.event-row__title { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -.03em; margin: 10px 0 14px; }
.event-row__title button { background: none; border: 0; padding: 0; color: var(--ink); text-align: left; font: inherit; letter-spacing: inherit; }
.event-row__title button:hover { color: var(--blue); }
.event-row__meta { margin: 0; color: var(--muted); font-size: 15px; }
.event-row__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.event-row__actions .btn { min-height: 44px; padding: 8px 18px; font-size: 14px; }
.event-row.is-past .event-row__day { color: #8a919c; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.section--beige .event-card { background: #fff; }
.section:not(.section--beige) .event-card { background: var(--beige); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-card__media { position: relative; padding: 0; border: 0; background: none; aspect-ratio: 3 / 2; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .event-card__media img { transform: scale(1.04); }
.event-card__count { position: absolute; right: 12px; bottom: 12px; background: rgba(4, 18, 43, .75); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.event-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.event-card__date { font-size: 14px; color: var(--muted); }
.event-card__title { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.event-card .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- News ---------- */
.news-card {
	position: relative; display: flex; flex-direction: column; background: var(--beige);
	border-radius: var(--radius); overflow: hidden; min-height: 480px; transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card__media { position: relative; display: block; aspect-ratio: 370 / 230; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(244, 242, 236, 0) 0%, var(--beige) 100%); }
.news-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 32px 32px; margin-top: -26px; }
.news-card__title { font-size: 20px; line-height: 1.22; letter-spacing: -.02em; margin: 8px 0 18px; }
.news-card__title a { color: var(--ink); }
.news-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card:hover .news-card__title a { color: var(--blue); }
.news-card__date { color: var(--muted); font-size: 15px; margin: 0; }
.news-card__more { margin-top: auto; padding-top: 32px; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card {
	position: relative; display: flex; flex-direction: column; background: var(--blue-card);
	border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.project-card__media { position: relative; display: block; padding: 0; border: 0; background: none; aspect-ratio: 568 / 360; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__media::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, rgba(6, 48, 107, 0) 0%, rgba(6, 48, 107, .85) 70%, var(--blue-card) 100%); }
.project-card__body { position: relative; display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 0 32px 34px; margin-top: -64px; }
.project-card__title { color: #fff; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -.03em; margin: 0; }
.project-card p { color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.7; margin: 0; }
.project-card .link-arrow { margin-top: auto; padding-top: 10px; font-size: 16px; }
.project-card .link-arrow::after { content: ""; position: absolute; inset: 0; }

/* ---------- Publications ---------- */
.pub-card {
	position: relative; display: flex; flex-direction: column; background: var(--navy-2);
	border-radius: var(--radius); overflow: hidden; min-height: 480px; transition: transform .25s, box-shadow .25s; color: #fff;
}
.pub-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6); }
.pub-card__media { position: relative; display: block; aspect-ratio: 370 / 225; overflow: hidden; }
.pub-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pub-card:hover .pub-card__media img { transform: scale(1.04); }
.pub-card__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(11, 37, 80, 0) 0%, var(--navy-2) 100%); }
.pub-card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 32px 32px; margin-top: -22px; }
.pub-card--noimg .pub-card__body { margin-top: 0; padding-top: 32px; }
.pub-card__title { font-size: 20px; line-height: 1.24; letter-spacing: -.02em; margin: 8px 0 18px; }
.pub-card__title a { color: #fff; }
.pub-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pub-card:hover .pub-card__title a { color: #ffe08a; }
.pub-card__date { color: rgba(255, 255, 255, .6); font-size: 15px; margin: 0; }
.pub-card__excerpt { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 14px 0 0; }
.pub-card__foot { position: relative; z-index: 2; margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Media ---------- */
.media-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 24px; height: clamp(460px, 43vw, 620px); }
.media-grid--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.media-grid--2 { grid-template-rows: 1fr; }
.media-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); min-height: 0; }
.media-card--big { grid-row: 1 / -1; }
.media-card__link { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.media-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.media-card:hover .media-card__img { transform: scale(1.04); }
.media-card__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 43, 0) 35%, rgba(4, 18, 43, .55) 65%, rgba(4, 18, 43, .92) 100%); }
.media-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 28px; }
.media-card__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.18; letter-spacing: -.03em; color: #fff; }
.media-card--big .media-card__title { font-size: clamp(22px, 2.4vw, 34px); max-width: 640px; }
.media-card__play {
	position: absolute; left: 50%; top: 45%; z-index: 2; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
	background: var(--yellow); color: var(--navy); transition: transform .25s, background-color .25s;
}
.media-card__play .icon { width: 22px; height: 22px; margin-left: 3px; }
.media-card:hover .media-card__play { transform: translate(-50%, -50%) scale(1.08); background: #ffc933; }
.media-card:not(.media-card--big) .media-card__play { width: 64px; height: 64px; }
.media-archive .media-grid { height: auto; grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
.media-archive .media-card { aspect-ratio: 4 / 3; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame--file { aspect-ratio: auto; display: flex; justify-content: center; }
.video-frame--file video { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 72vh; max-height: 72dvh; object-fit: contain; background: #000; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--blue); isolation: isolate; }
.cta__photo { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; z-index: -1; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--blue) 0%, rgba(2, 81, 156, .6) 18%, rgba(2, 81, 156, 0) 42%); }
.cta__inner { padding-top: clamp(80px, 9vw, 128px); padding-bottom: clamp(80px, 9vw, 128px); }
.cta__inner > * { max-width: 520px; }
.cta__title { color: #fff; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; margin-bottom: 30px; }
.cta__title .accent { display: block; }
.cta p { color: rgba(255, 255, 255, .9); font-size: 19px; line-height: 1.6; margin-bottom: 40px; }

/* ---------- Partners ---------- */
.partners { background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-line); }
.partners__inner { display: flex; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 48px; }
.partners__label { font-family: var(--font-body); font-size: 15px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .7); margin: 0; flex: none; }
.partners__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; flex: 1; }
.partner { display: flex; align-items: center; }
.partner__link { display: flex; align-items: center; justify-content: center; color: #fff; transition: opacity .2s, transform .2s; }
.partner img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; }
/* Білим силуетом — для прозорих PNG/SVG. */
.partner--white img { filter: brightness(0) invert(1); opacity: .85; }
.partner--white a:hover img { opacity: 1; }
/* У власних кольорах на білій плашці — працює з будь-яким логотипом. */
.partner--color .partner__link { background: #fff; border-radius: var(--radius); padding: 10px 18px; height: 64px; }
.partner--color img { height: 44px; max-width: 150px; }
.partner--color a:hover { transform: translateY(-2px); }
/* Як є — світлий логотип для темного фону (напр. NOG). */
.partner--asis img { height: 40px; }
.partner--asis a:hover, .partner--white a:hover { opacity: .85; }
.partners__name { font-family: var(--font-head); font-weight: 600; font-size: 15px; opacity: .85; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1.1fr 1.1fr; gap: 48px; padding-top: 80px; padding-bottom: 72px; }
.footer__title { color: #fff; font-size: 16px; letter-spacing: -.02em; margin: 10px 0 26px; }
.footer__about p { margin: 28px 0 30px; max-width: 300px; line-height: 1.65; }
.brand--footer .brand__logo { height: 64px; }
.footer__links { list-style: none; display: grid; gap: 14px; }
.footer__links a, .footer__contacts a { color: rgba(255, 255, 255, .85); }
.footer__links a:hover, .footer__contacts a:hover { color: var(--yellow); }
.footer__contacts { list-style: none; display: grid; gap: 14px; color: rgba(255, 255, 255, .85); }
.footer__contacts li { word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff;
	border: 1px solid rgba(255, 255, 255, .22); transition: background-color .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.socials .icon { width: 15px; height: 15px; }
.subscribe { display: grid; gap: 12px; }
.subscribe input[type="email"] {
	width: 100%; min-height: 54px; padding: 12px 24px; border-radius: 999px; font: inherit; font-size: 15px;
	border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .5); }
.subscribe input:focus { outline: none; border-color: var(--yellow); }
.subscribe__msg { margin: 0; font-size: 13px; min-height: 1.2em; }
.subscribe__msg.is-ok { color: #8be0a4; }
.subscribe__msg.is-error { color: #ffb4a8; }
.footer__subscribe p { margin-bottom: 26px; line-height: 1.65; }
.footer__bottom {
	display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px;
	border-top: 1px solid var(--navy-line); padding-top: 30px; padding-bottom: 36px; font-size: 14px; color: rgba(255, 255, 255, .55);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.footer__bottom a { color: rgba(255, 255, 255, .6); }
.footer__bottom a:hover { color: #fff; }
/* «Created by NOG» — біла дуга під футером; уся дуга є посиланням. */
.nog-arc { position: relative; height: 112px; overflow: hidden; background: var(--navy); }
.nog-arc__link {
	position: absolute; left: -3%; right: -3%; top: 22px; height: 320px; border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 22px;
	background: #fff; color: var(--navy);
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), background-color .35s;
}
.nog-arc__link img { width: 104px; height: auto; transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
.nog-arc__link span { font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; color: var(--navy); }
.nog-arc__link:hover, .nog-arc__link:focus-visible { transform: translateY(-10px); background: #eef4ff; color: var(--navy); }
.nog-arc__link:hover img, .nog-arc__link:focus-visible img { transform: scale(1.06); }
.nog-arc__link:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.page-hero::after {
	content: ""; position: absolute; right: -140px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
	border: 2px solid rgba(250, 185, 10, .25); pointer-events: none;
}
.page-hero__title { color: #fff; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 4px 0 18px; max-width: 960px; }
.page-hero__title--article { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; margin-top: 14px; }
.page-hero__text { color: rgba(255, 255, 255, .82); max-width: 680px; font-size: 18px; margin: 0; }
.page-hero--404 { padding: 120px 0; }
.page-hero--404 .hero__actions { margin-top: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .55); margin-bottom: 26px; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); }
.breadcrumbs a:hover { color: var(--yellow); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: rgba(255, 255, 255, .85); font-size: 15px; margin: 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { color: var(--yellow); }

.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose--article { font-size: 18px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--yellow); font-size: 1.1em; color: var(--ink); }
.prose img { border-radius: var(--radius); }
.lead { font-size: 20px; color: var(--ink); font-weight: 500; }
.article-image { margin: 0 0 32px; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.share a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.share .icon { width: 16px; height: 16px; }

.doc-cta {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
	background: var(--beige); padding: 20px 24px; border-radius: var(--radius); margin-bottom: 36px;
}
.doc-cta strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; }

.event-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 28px; font-weight: 500; color: var(--ink); }
.event-facts > div { display: inline-flex; align-items: center; gap: 8px; }
.event-facts .icon { color: var(--blue); }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--beige); border-radius: var(--radius); padding: 22px; }
.legal__toc-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 14px; letter-spacing: -.01em; margin-bottom: 12px; }
.legal__toc ul { list-style: none; display: grid; gap: 4px; }
.legal__toc a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: 15px; }
.legal__toc a:hover, .legal__toc a.is-active { background: #fff; color: var(--blue); }
.doc-group + .doc-group { margin-top: 56px; }
.doc-group__desc { color: var(--muted); }
.doc-year { margin-top: 20px; }
.doc-year__title { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.doc-year__title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.doc:hover { box-shadow: var(--shadow); border-color: transparent; }
.doc__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--beige); color: var(--blue); }
.doc__icon .icon { width: 22px; height: 22px; }
.doc__title { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.doc__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.doc .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; }

/* ---------- Toolbar, search, pagination ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .chips--left { margin-bottom: 24px; }
.mini-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; margin-bottom: 24px; padding-left: 8px; }
.mini-search input { border: 0; padding: 10px 12px; font: inherit; font-size: 15px; min-width: 220px; outline: none; background: transparent; }
.mini-search button { border: 0; background: transparent; width: 46px; height: 44px; display: grid; place-items: center; color: var(--blue); }
.mini-search:focus-within { border-color: var(--ink); }
.mini-search--wide { margin-bottom: 36px; }
.mini-search--wide input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 17px; }
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.result-list { list-style: none; display: grid; gap: 14px; }
.result { padding: 22px 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.result__title { font-size: 20px; margin: 12px 0 8px; letter-spacing: -.02em; }
.result__title a { color: var(--ink); }
.result p { margin: 0; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 18, 43, .78); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__dialog {
	position: relative; width: 100%; max-width: 900px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
	overflow-x: hidden; overflow-y: scroll; scrollbar-gutter: stable; scrollbar-width: thin;
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .25s ease; outline: none;
	overscroll-behavior: contain;
}
.modal__close {
	position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3;
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.modal__close:hover { background: var(--yellow); }
.modal__title { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.03em; margin: 14px 0 16px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.detail__body { padding: 30px clamp(20px, 4vw, 44px) 40px; }
.detail__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; color: var(--ink); font-weight: 500; font-size: 15px; }
.detail__meta li { display: inline-flex; align-items: center; gap: 8px; }
.detail__meta .icon { color: var(--blue); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* Gallery */
.gallery { background: var(--navy); }
.gallery__main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.gallery__img.is-active { opacity: 1; }
.gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); z-index: 2;
}
.gallery__nav:hover { background: var(--yellow); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--prev .icon { transform: scaleX(-1); }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery__thumb { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .6; background: none; transition: opacity .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--yellow); }
.section .gallery, .container--narrow > .gallery { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }

/* Support modal */
.support { padding: 40px clamp(20px, 4vw, 44px); }
.support__head { display: flex; align-items: center; gap: 16px; }
.support__head .modal__title { margin: 0; }
.support__head .eyebrow { margin-bottom: 6px; }
.support__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-100); color: var(--yellow-600); flex: none; }
.support__icon .icon { width: 28px; height: 28px; }
.support__lead { margin: 18px 0 22px; color: var(--muted); }
.support__note { margin: 20px 0 0; color: var(--ink); font-weight: 500; }
.requisites { margin: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.requisites__row { display: grid; grid-template-columns: 190px 1fr; border-top: 1px solid var(--line-soft); }
.requisites__row:first-child { border-top: 0; }
.requisites dt { padding: 14px 16px; background: var(--beige); font-size: 14px; font-weight: 600; color: var(--muted); }
.requisites dd { margin: 0; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-weight: 600; word-break: break-word; }
.copy-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--blue); }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn .icon { width: 17px; height: 17px; }
.copy-btn .icon-check { display: none; color: #1a7f37; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }
.notice { background: var(--yellow-100); border-left: 3px solid var(--yellow); padding: 16px 18px; border-radius: var(--radius); color: var(--ink); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(4, 18, 43, .75); backdrop-filter: blur(3px); animation: fade .2s; }
.search-overlay__inner { display: flex; align-items: center; gap: 12px; background: #fff; padding-top: 22px; padding-bottom: 22px; max-width: none; box-shadow: var(--shadow-lg); }
.search-form { flex: 1; display: flex; align-items: center; gap: 12px; max-width: var(--container); margin: 0 auto; }
.search-form > .icon { color: var(--blue); width: 24px; height: 24px; }
.search-form input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 20px; padding: 10px 0; outline: none; color: var(--ink); }
.search-overlay__close { color: var(--ink); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .7, .3, 1); }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
	.header__inner { gap: 20px; }
	.nav__link { padding: 10px 10px; font-size: 15px; }
	.event-row { grid-template-columns: 120px 240px 1fr 160px; gap: 28px; }
	.event-row__day { font-size: 54px; }
}

@media (max-width: 1080px) {
	:root { --header-h: 76px; }
	.brand__logo { height: 44px; }
	.burger { display: inline-grid; }
	.header__search, .header__support { display: none; }
	.header__actions { margin-left: auto; }
	.site-header.nav-open .burger__open { display: none; }
	.site-header.nav-open .burger__close { display: block; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
		background: var(--navy); overflow-y: auto; padding: 12px var(--gutter) 32px;
		transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s;
		border-top: 1px solid var(--navy-line);
	}
	.site-header.nav-open .nav { transform: none; visibility: visible; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--navy-line); }
	.nav__link { flex: 1; padding: 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.02em; border-radius: 0; }
	.nav__toggle { width: 48px; height: 48px; }
	.nav__sub {
		position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		background: rgba(255, 255, 255, .05); box-shadow: none; display: none; margin-bottom: 12px; padding: 6px;
	}
	.nav__item.is-open > .nav__sub { display: block; }
	.nav__sublink { color: #fff; }
	.nav__sublink:hover { background: rgba(255, 255, 255, .08); color: #fff; }
	.nav__mobile-extra { display: grid; gap: 12px; margin-top: 32px; }
	.nav__mobile-extra .socials { margin-top: 8px; }
	body.nav-locked { overflow: hidden; }

	.hero__row { flex-direction: column; align-items: flex-start; }
	.about__intro { grid-template-columns: 1fr; gap: 28px; }
	.directions { grid-template-columns: repeat(2, 1fr); }
	.directions li:nth-child(3) { padding-left: 0; border-left: 0; }
	.directions li:nth-child(n+3) { border-top: 1px solid var(--line-soft); margin-top: 28px; }
	.card-grid, .pub-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
	.media-grid { grid-template-columns: 1fr 1fr; height: auto; grid-template-rows: none; }
	.media-card--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
	.media-card { aspect-ratio: 4 / 3; }
	.media-archive .media-grid { grid-template-columns: repeat(2, 1fr); }
	.team__grid { grid-template-columns: repeat(3, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.legal { grid-template-columns: 1fr; gap: 24px; }
	.legal__toc { position: static; }
	.legal__toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 900px) {
	.event-row {
		grid-template-columns: 90px 1fr; grid-template-areas: "date media" "date body" "actions actions";
		gap: 20px 16px; align-items: start; padding: 28px 0;
	}
	.event-row__date { grid-area: date; }
	.event-row__day { font-size: 46px; }
	.event-row__month { margin-top: 10px; font-size: 14px; }
	.event-row__media { grid-area: media; }
	.event-row__body { grid-area: body; }
	.event-row__title { margin: 8px 0 12px; }
	.event-row__actions { grid-area: actions; flex-direction: row; }
	.event-row__actions .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; }
	.project-grid { grid-template-columns: 1fr; }
	.cta__photo { position: relative; width: 100%; height: clamp(300px, 70vw, 460px); }
	.cta__photo::before { background: linear-gradient(0deg, var(--blue) 0%, rgba(2, 81, 156, .55) 30%, rgba(2, 81, 156, 0) 60%); }
	.cta__inner { margin-top: -140px; padding-top: 0; position: relative; }
	.partners__inner { gap: 40px; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; }
	body { font-size: 15.5px; }
	.btn { min-height: 52px; }
	.hero__inner { padding-top: clamp(24px, 4vh, 40px); }
	.hero__title { font-size: clamp(30px, min(9vw, 6.2vh), 40px); line-height: 1.02; }
	.hero__text { font-size: 16px; }
	.hero__actions { width: 100%; flex-direction: column; gap: 12px; }
	.hero__actions .btn { width: 100%; }
	.hero__row { gap: 22px; }
	.hero { min-height: 0; }
	.hero__photo { flex: none; height: clamp(190px, 64vw, 300px); min-height: 0; margin-top: 8px; }
	.hero__photo::before { background: linear-gradient(180deg, var(--navy) 0%, rgba(4, 18, 43, .3) 30%, rgba(4, 18, 43, 0) 60%); }
	.section { padding: 80px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 36px; }
	.h2, .h2--xl { font-size: clamp(30px, 9vw, 38px); }
	.about__text p { font-size: 16px; }
	.about__photo img { aspect-ratio: 350 / 170; }
	.directions { margin-top: 36px; }
	.directions li { padding: 22px 16px 0; }
	.directions li:nth-child(n+3) { margin-top: 22px; }
	.directions strong { font-size: 17px; }
	.directions span { font-size: 14px; }
	.values { font-size: 16px; }
	.about__links { flex-direction: column; }
	.card-grid, .pub-grid, .event-grid { grid-template-columns: 1fr; }
	.news-card, .pub-card { min-height: 0; }
	.news-card__body, .pub-card__body { padding: 0 22px 26px; }
	.news-card__title, .pub-card__title { font-size: 19px; }
	.news-card__more, .pub-card__foot { padding-top: 26px; }
	.project-card__body { padding: 0 22px 26px; margin-top: -48px; }
	.project-card__title { font-size: 20px; }
	.media-grid { grid-template-columns: 1fr; }
	.media-card, .media-card--big { aspect-ratio: 350 / 300; grid-column: auto; }
	.media-archive .media-grid { grid-template-columns: 1fr; }
	.media-archive .media-card { aspect-ratio: 350 / 300; }
	.media-archive .section-foot .btn { flex: 1 1 100%; }
	.page-hero::after { display: none; }
	.page-hero__title { font-size: clamp(26px, 8.2vw, 40px); }
	.page-hero__title--article { font-size: clamp(22px, 6.6vw, 30px); }
	.media-card__body { padding: 22px; }
	.media-card__play { width: 64px; height: 64px; }
	.media-card--big .media-card__title { font-size: 22px; }
	.cta__title { font-size: clamp(40px, 13vw, 54px); }
	.cta p { font-size: 17px; margin-bottom: 32px; }
	.cta .hero__actions .btn { width: 100%; }
	.partners__inner { padding-top: 36px; padding-bottom: 36px; gap: 36px; }
	.team__grid { grid-template-columns: repeat(2, 1fr); }
	.event-row { grid-template-columns: 70px 1fr; }
	.event-row__day { font-size: 40px; }
	.footer__grid { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 56px; }
	.footer__title { margin-bottom: 20px; }
	.footer__bottom { flex-direction: column; align-items: flex-start; }
	.footer__bottom-links { flex-direction: column; align-items: flex-start; gap: 12px; }
	.nog-arc { height: 104px; }
	.nog-arc__link { left: -14%; right: -14%; top: 22px; height: 260px; padding-top: 20px; }
	.modal { padding: 0; align-items: end; }
	.modal__dialog { max-height: 94vh; max-height: 94dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
	.requisites__row { grid-template-columns: 1fr; }
	.requisites dt { padding: 8px 14px; }
	.doc { grid-template-columns: auto 1fr; }
	.doc .btn { grid-column: 1 / -1; }
	.doc-cta { grid-template-columns: auto 1fr; }
	.doc-cta .btn { grid-column: 1 / -1; }
	.mini-search { width: 100%; }
	.mini-search input { min-width: 0; flex: 1; }
	.search-form input { font-size: 17px; }
	.search-form .btn { display: none; }
}
