/* ==========================================================================
   Афон — Духовна реабілітація ветеранів. Дизайн-система теми, v2.
   ========================================================================== */

:root {
	--navy: #0f1d38;
	--navy-2: #16294c;
	--navy-3: #2b4373;
	--ink: #101c33;
	--muted: #67748c;
	--gold: #c6a15b;
	--gold-2: #e0c288;
	--gold-3: #8a6a2b;
	--paper: #ffffff;
	--panel: #f2f0ea;
	--panel-2: #f7f5f0;
	--line: rgba(16, 28, 51, .10);
	--ua-blue: #2a5caa;
	--ua-yellow: #f2c94c;

	--gold-rgb: 198, 161, 91;
	--navy-rgb: 15, 29, 56;
	--hero-overlay: .55;

	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--r-sm: clamp(12px, .8vw, 16px);
	--r: clamp(16px, 1.2vw, 24px);
	--r-lg: clamp(22px, 1.8vw, 34px);
	--r-xl: clamp(28px, 2.4vw, 44px);

	--container: 1980px;
	--gutter: clamp(16px, 3.2vw, 72px);
	--sy: clamp(60px, 6.4vw, 128px);

	--sh-sm: 0 2px 12px rgba(15, 29, 56, .06);
	--sh: 0 20px 46px -26px rgba(15, 29, 56, .32);
	--sh-lg: 0 40px 80px -34px rgba(15, 29, 56, .45);

	--header-h: clamp(66px, 5vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
	/* Гумова типографіка: розмір бази плавно росте від 375px до 1980px. */
	font-size: clamp(15px, 0.26vw + 13.3px, 19px);
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.62;
	letter-spacing: -.002em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(var(--gold-rgb), .55); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

h1, h2, h3, h4 {
	font-family: var(--font-body);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.024em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--gold-rgb), .28); }

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

/* --- смужка прапора --- */
.afon-flag { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; height: 3px; }
.afon-flag span { flex: 1; }
.afon-flag span:first-child { background: var(--ua-blue); }
.afon-flag span:last-child { background: var(--ua-yellow); }
body:has(.afon-flag) { --flag-h: 3px; }

/* --- кнопки --- */
.afon-btn {
	--bg: var(--navy);
	--fg: #fff;
	--bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 13px 24px;
	border: 1.5px solid var(--bd);
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background-color .22s, color .22s, border-color .22s;
}
.afon-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(var(--navy-rgb), .7); }
.afon-btn:active { transform: none; }
.afon-btn .afon-icon { transition: transform .22s; }
.afon-btn:hover .afon-icon { transform: translateX(3px); }
.afon-btn--primary { --bg: var(--navy); --fg: #fff; }
.afon-btn--gold { --bg: var(--gold); --fg: #16223c; }
.afon-btn--gold:hover { box-shadow: 0 14px 28px -14px rgba(var(--gold-rgb), .85); }
.afon-btn--light { --bg: #fff; --fg: var(--navy); }
.afon-btn--outline { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.afon-btn--outline:hover { --bg: rgba(255,255,255,.14); box-shadow: none; }
.afon-btn--outline-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(16,28,51,.22); }
.afon-btn--outline-dark:hover { --bg: var(--navy); --fg: #fff; box-shadow: none; }
.afon-btn--sm { padding: 10px 18px; font-size: .83rem; }
.afon-btn--block { display: flex; width: 100%; }

.afon-link {
	display: inline-flex; align-items: center; gap: .4em;
	font-weight: 700; font-size: .9rem; color: var(--gold-3);
	text-decoration: none; border-bottom: 1px solid rgba(var(--gold-rgb), .45);
	padding-bottom: 2px; transition: gap .22s, border-color .22s;
}
.afon-link:hover { gap: .7em; border-color: var(--gold); }

.afon-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; white-space: nowrap;
	font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-3);
}
.afon-eyebrow__rule { display: inline-block; width: 26px; height: 1.5px; background: var(--gold); }

/* --- шапка --- */
.afon-header {
	position: sticky;
	top: var(--flag-h, 0px);
	z-index: 50;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(1.5) blur(16px);
	-webkit-backdrop-filter: saturate(1.5) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.afon-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,29,56,.5); }
.afon-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: clamp(10px, 1.6vw, 22px);
	min-height: var(--header-h);
}

.afon-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.afon-brand__mark { display: flex; width: 40px; height: 40px; }
.afon-brand__mark img, .afon-brand__mark svg { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.afon-brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.afon-brand__name { font-weight: 800; font-size: 1rem; letter-spacing: .17em; text-transform: uppercase; }
.afon-brand__sub { font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.afon-nav { display: flex; justify-content: center; }
.afon-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 26px); }
.afon-nav__list a {
	display: inline-block; padding: 8px 2px; white-space: nowrap;
	color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none;
	position: relative; transition: color .2s;
}
.afon-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
	background: var(--gold); transform: scaleX(0); transform-origin: left;
	transition: transform .28s cubic-bezier(.2,.8,.3,1);
}
.afon-nav__list a:hover { color: var(--navy); }
.afon-nav__list a:hover::after,
.afon-nav__list .is-active > a::after { transform: scaleX(1); }
.afon-nav__list .sub-menu { display: none; }

.afon-header__tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.afon-searchbar {
	display: flex; align-items: center; gap: 6px;
	width: clamp(170px, 16vw, 320px);
	padding: 6px 6px 6px 16px;
	border-radius: 999px;
	background: var(--panel);
	border: 1px solid transparent;
	transition: border-color .2s, background-color .2s;
}
.afon-searchbar:focus-within { border-color: rgba(var(--gold-rgb), .55); background: #fff; }
.afon-searchbar input {
	flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .82rem; color: var(--ink);
	padding: 6px 0;
}
.afon-searchbar input:focus { outline: none; }
.afon-searchbar input::placeholder { color: var(--muted); }
.afon-searchbar button {
	display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px;
	border: 0; border-radius: 50%; background: transparent; color: var(--navy); cursor: pointer;
	transition: background-color .2s, color .2s;
}
.afon-searchbar button:hover { background: var(--navy); color: #fff; }

.afon-burger {
	display: none; width: 42px; height: 42px; flex: 0 0 42px;
	border: 1px solid transparent; border-radius: 12px; background: var(--panel); padding: 0; cursor: pointer; position: relative;
	transition: border-color .2s, background-color .2s;
}
.afon-burger:hover { border-color: var(--navy); background: #fff; }
.afon-burger span { position: absolute; left: 11px; width: 20px; height: 1.8px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .2s; }
.afon-burger span:nth-child(1) { top: 14px; }
.afon-burger span:nth-child(2) { top: 20px; }
.afon-burger span:nth-child(3) { top: 26px; }
.afon-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.afon-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.afon-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- мобільне меню --- */
.afon-mobile {
	position: fixed; inset: 0; z-index: 49;
	background: linear-gradient(180deg, #0c1830, #14264a);
	padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
	overflow-y: auto; opacity: 0; transition: opacity .28s;
}
.afon-mobile.is-open { opacity: 1; }
.afon-mobile__list { display: flex; flex-direction: column; }
.afon-mobile__list a {
	display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12);
	color: #fff; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none;
}
.afon-mobile__foot { margin-top: 28px; display: grid; gap: 18px; }
.afon-socials--mobile a { border-color: rgba(255,255,255,.28); color: #fff; }

/* --- HERO як картка в контейнері --- */
.afon-hero { padding: clamp(12px, 2vw, 20px) 0 0; }
.afon-hero__card {
	position: relative;
	border-radius: var(--r-xl);
	overflow: hidden;
	min-height: clamp(520px, 62vh, 860px);
	display: flex;
	align-items: flex-end;
	background: var(--navy);
	box-shadow: var(--sh);
	isolation: isolate;
}
.afon-hero__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
	animation: afon-drift 40s ease-in-out infinite alternate;
}
@keyframes afon-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.afon-hero__veil {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(8,16,34,.55) 0%, rgba(8,16,34,.05) 34%, rgba(8,16,34,calc(var(--hero-overlay) + .30)) 100%),
		radial-gradient(90% 70% at 50% 100%, rgba(8,16,34,.62) 0%, rgba(8,16,34,0) 70%);
}

.afon-hero__body {
	position: relative;
	width: 100%;
	padding: clamp(28px, 5vw, 60px);
	text-align: center;
	color: #fff;
}
.afon-hero__eyebrow {
	margin: 0 0 clamp(10px, 2vw, 18px);
	font-size: .7rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
	color: rgba(255,255,255,.78);
}
.afon-hero__word {
	display: flex; align-items: flex-end; justify-content: center; gap: .4em;
	margin: 0 0 clamp(14px, 2.2vw, 24px);
	line-height: .84;
}
.afon-hero__word span {
	font-weight: 800;
	font-size: clamp(3.4rem, 12.5vw, 12rem);
	letter-spacing: -.035em;
	color: #fff;
	text-shadow: 0 8px 40px rgba(0,0,0,.28);
}
.afon-hero__word em {
	font-style: normal;
	font-size: clamp(.6rem, 1.1vw, .86rem);
	font-weight: 800;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: rgba(255,255,255,.82);
	padding-bottom: clamp(6px, 1.4vw, 20px);
}
.afon-hero__title {
	font-size: clamp(1.1rem, 1.9vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -.015em;
	max-width: 26ch;
	margin: 0 auto clamp(8px, 1.4vw, 14px);
	color: #fff;
	text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.afon-hero__lead {
	font-size: clamp(.92rem, 1.05vw, 1.15rem);
	color: rgba(255,255,255,.84);
	max-width: 62ch;
	margin: 0 auto clamp(20px, 3vw, 30px);
}
.afon-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.afon-socials { display: flex; gap: 9px; align-items: center; }
.afon-socials a {
	display: grid; place-items: center; width: 38px; height: 38px;
	border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: rgba(255,255,255,.9);
	transition: background-color .22s, color .22s, border-color .22s, transform .22s;
}
.afon-socials a:hover { background: #fff; border-color: #fff; color: var(--navy); transform: translateY(-2px); }
.afon-socials--hero { position: absolute; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px); }
.afon-socials--ink a { border-color: transparent; background: var(--panel); color: var(--navy); }
.afon-socials--ink a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.afon-socials--footer a { border-color: rgba(255,255,255,.24); }

/* --- секції --- */
.afon-section { position: relative; padding-block: var(--sy); }
.afon-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(54% 40% at 10% 16%, rgba(var(--gold-rgb), .075) 0%, transparent 64%),
		radial-gradient(50% 38% at 94% 88%, rgba(43, 67, 115, .065) 0%, transparent 68%);
	/* Підсвітка згасає біля країв, щоб не було видимої межі між секціями. */
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
	opacity: 0;
	transition: opacity 1.2s ease;
}
.afon-section.is-lit::before { opacity: 1; }
.afon-section > .afon-container { position: relative; z-index: 1; }

/* декоративний розділювач між великими блоками */
.afon-divider { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: clamp(28px, 4vw, 52px); }
.afon-divider span { flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .55)); }
.afon-divider span:last-child { background: linear-gradient(90deg, rgba(var(--gold-rgb), .55), transparent); }
.afon-divider i { display: block; color: var(--gold); }
.afon-section + .afon-section { padding-top: clamp(26px, 3vw, 56px); }

.afon-head { margin-bottom: clamp(28px, 4vw, 48px); }
.afon-head__main { max-width: 100%; }
.afon-head__title { font-size: clamp(1.55rem, 2.6vw, 3rem); margin: 0; max-width: 24ch; }
.afon-head__text { color: var(--muted); font-size: 1rem; max-width: 54ch; }

.afon-head--left .afon-head__text { margin-top: 16px; }
.afon-head--center { text-align: center; }
.afon-head--center .afon-head__main { margin-inline: auto; }
.afon-head--center .afon-head__title { margin-inline: auto; }
.afon-head--center .afon-head__text { margin: 16px auto 0; }
.afon-head--center .afon-eyebrow { justify-content: center; }
.afon-head--split {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(20px, 4vw, 56px); align-items: end;
}


.afon-prose { color: var(--muted); }
.afon-prose p { max-width: 72ch; }
.afon-prose p { margin-bottom: 1.05em; }

.afon-note {
	display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
	padding: 15px 17px; border-radius: var(--r-sm);
	background: rgba(var(--gold-rgb), .11); border: 1px solid rgba(var(--gold-rgb), .28);
	font-size: .88rem; line-height: 1.5;
}
.afon-note .afon-icon { flex: 0 0 auto; color: var(--gold-3); margin-top: 2px; }

/* світла панель-контейнер (як «Top Destinations») */
.afon-panel {
	background: var(--panel);
	border-radius: var(--r-xl);
	padding: clamp(24px, 3.6vw, 48px);
}
.afon-panel__head {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(16px, 4vw, 56px); align-items: start; margin-bottom: clamp(22px, 3vw, 34px);
}
.afon-panel__title { font-size: clamp(1.4rem, 2.1vw, 2.4rem); margin: 0; max-width: 18ch; }
.afon-panel__text { color: var(--muted); font-size: .95rem; margin: 0; max-width: 56ch; }
.afon-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(20px, 3vw, 30px); }

/* --- смуга цифр під першим екраном --- */
.afon-figbar {
	position: relative;
	padding-block: clamp(28px, 3.4vw, 52px);
}
.afon-figbar__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 40px);
	padding-bottom: clamp(24px, 3vw, 42px);
	border-bottom: 1px solid var(--line);
}
.afon-figbar__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}
.afon-figbar__value {
	display: flex;
	align-items: baseline;
	gap: .38em;
	margin: 0;
	white-space: nowrap;
	color: var(--navy);
	line-height: 1;
}
.afon-figbar__num {
	font-weight: 800;
	font-size: clamp(1.9rem, 3.2vw, 3.1rem);
	letter-spacing: -.04em;
}
.afon-figbar__unit {
	font-size: clamp(.68rem, .72vw, .82rem);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.15;
	color: var(--navy);
}
.afon-figbar__label {
	font-size: clamp(.68rem, .64vw, .76rem);
	line-height: 1.35;
	font-weight: 600;
	color: var(--muted);
	max-width: 24ch;
}

/* --- текстовий інтро-блок з міткою --- */
.afon-chip {
	display: inline-flex;
	align-items: center;
	align-self: start;
	justify-self: start;
	width: fit-content;
	margin: 0;
	padding: 9px 17px;
	border-radius: 999px;
	background: rgba(var(--gold-rgb), .16);
	color: var(--gold-3);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	white-space: nowrap;
}
.afon-lead {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	grid-template-areas:
		"chip chip"
		"head body";
	column-gap: clamp(22px, 3.4vw, 72px);
	row-gap: clamp(16px, 1.8vw, 26px);
	align-items: start;
}
.afon-lead > .afon-chip { grid-area: chip; }
.afon-lead__head { grid-area: head; display: grid; justify-items: start; gap: clamp(16px, 1.8vw, 26px); }
.afon-lead__body { grid-area: body; padding-top: .28em; }
.afon-lead + .afon-perks { margin-top: clamp(34px, 4vw, 60px); }
.afon-lead--story { margin-top: clamp(56px, 6.5vw, 104px); }
.afon-lead__body { max-width: 68ch; }
.afon-lead__title {
	font-size: clamp(1.5rem, 2.6vw, 2.9rem);
	margin: 0;
	max-width: 20ch;
}
.afon-lead__text { font-size: clamp(1.02rem, 1.2vw, 1.28rem); color: var(--muted); margin: 0; line-height: 1.6; }
.afon-lead__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(14px, 1.6vw, 24px);
	margin-top: clamp(18px, 2vw, 28px);
}
.afon-lead__head .afon-lead__actions { margin-top: clamp(6px, 1vw, 14px); }

/* абзаци, що м'яко світлішають — як у референсі */
.afon-prose--fade p { color: var(--ink); font-size: clamp(1rem, 1.1vw, 1.16rem); }
.afon-prose--fade p + p { color: var(--muted); }
.afon-prose--fade p + p + p { color: #8d98a9; }

/* --- широкий банер --- */
.afon-banner {
	position: relative;
	margin: clamp(28px, 3.4vw, 52px) 0 0;
	border-radius: var(--r-xl);
	overflow: hidden;
	box-shadow: var(--sh);
}
.afon-banner img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	object-position: center 62%;
}
.afon-banner figcaption {
	position: absolute;
	left: clamp(16px, 1.6vw, 26px);
	bottom: clamp(16px, 1.6vw, 26px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(10, 20, 40, .62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: .78rem;
	font-weight: 600;
}
.afon-banner figcaption .afon-icon { color: var(--gold-2); }

/* --- плитки ключових фактів --- */
.afon-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(10px, 1vw, 18px);
	margin-top: clamp(14px, 1.4vw, 22px);
}
.afon-facts__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icon label" "value value";
	align-items: center;
	gap: 6px 10px;
	padding: clamp(16px, 1.5vw, 22px);
	border-radius: var(--r);
	background: var(--panel-2);
	border: 1px solid transparent;
	transition: border-color .25s, background-color .25s, transform .25s;
}
.afon-facts__item:hover { border-color: rgba(var(--gold-rgb), .45); background: #fff; transform: translateY(-3px); }
.afon-facts__icon {
	grid-area: icon;
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border-radius: 10px;
	background: #fff;
	color: var(--gold-3);
}
.afon-facts__label {
	grid-area: label;
	font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
	font-weight: 800; color: var(--muted);
}
.afon-facts__value { grid-area: value; font-size: clamp(.95rem, 1vw, 1.1rem); font-weight: 700; line-height: 1.3; }
.afon-facts__note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

/* --- картки переваг --- */
.afon-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.1vw, 22px); }
.afon-perks__item {
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.2vw, 32px);
	border-radius: var(--r-lg);
	background: var(--navy-3);
	color: #fff;
	transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s;
}
.afon-perks__item:nth-child(2) { background: #35507f; }
.afon-perks__item:nth-child(3) { background: #3d5a8b; }
.afon-perks__item:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.afon-perks__icon {
	display: grid; place-items: center;
	width: 52px; height: 52px; margin-bottom: 18px;
	border-radius: 15px; background: rgba(255,255,255,.16); color: #fff;
}
.afon-perks__item h3 { font-size: clamp(1.02rem, 1.1vw, 1.2rem); margin: 0 0 8px; }
.afon-perks__item p { font-size: .89rem; color: rgba(255,255,255,.82); line-height: 1.55; margin: 0; max-width: 40ch; }

/* --- місія --- */
.afon-mission {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(22px, 3.4vw, 72px);
	align-items: start;
	margin-top: clamp(48px, 5.5vw, 92px);
}
.afon-mission__text { max-width: 62ch; }
.afon-mission__title { font-size: clamp(1.35rem, 1.9vw, 2rem); margin-bottom: 16px; }

.afon-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1vw, 20px); }
.afon-values__item {
	padding: 24px; border-radius: var(--r); background: var(--panel-2);
	border: 1px solid transparent;
	transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s, background-color .28s, border-color .28s;
}
.afon-values__item:hover { transform: translateY(-4px); box-shadow: var(--sh); background: #fff; border-color: rgba(var(--gold-rgb), .45); }
.afon-values__icon {
	display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px;
	border-radius: 12px; background: rgba(var(--gold-rgb), .16); color: var(--gold-3);
}
.afon-values__item h4 { font-size: 1rem; margin-bottom: 6px; }
.afon-values__item p { font-size: .86rem; color: var(--muted); line-height: 1.5; margin: 0; }

.afon-founder { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(12px, 1.1vw, 22px); margin-top: clamp(32px, 3.6vw, 56px); }
.afon-founder__card {
	display: flex; gap: 24px; padding: clamp(22px, 3vw, 34px);
	border-radius: var(--r-lg); background: linear-gradient(135deg, #0f1d38 0%, #233c68 100%);
	color: #fff; box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.afon-founder__card::after {
	content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--gold-rgb), .26), transparent 68%);
}
.afon-founder__photo {
	position: relative; flex: 0 0 168px; width: 168px; height: 210px; border-radius: 22px; overflow: hidden;
	background: rgba(255,255,255,.08); border: 2px solid rgba(var(--gold-rgb), .6); display: grid; place-items: center;
}
.afon-founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.afon-founder__initial { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-2); }
.afon-founder__body { position: relative; z-index: 1; }
.afon-founder__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; font-weight: 800; }
.afon-founder__name { font-size: 1.5rem; margin-bottom: 3px; }
.afon-founder__role { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.afon-founder__text { font-size: .92rem; color: rgba(255,255,255,.82); margin-bottom: 14px; }

.afon-team { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--panel); }
.afon-team__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--gold-3); margin-bottom: 14px; }
.afon-team__title { font-size: 1.15rem; }
.afon-team p { font-size: .9rem; color: var(--muted); }

/* --- паломництва: кроки --- */
.afon-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1vw, 20px); margin-bottom: clamp(36px, 4.4vw, 68px); }
.afon-steps__item {
	padding: 26px 24px; border-radius: var(--r); background: var(--panel-2); border: 1px solid transparent;
	transition: transform .28s, border-color .28s, background-color .28s, box-shadow .28s;
}
.afon-steps__item:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .5); background: #fff; box-shadow: var(--sh); }
.afon-steps__num { display: block; font-family: var(--font-display); font-size: 1.85rem; color: var(--gold); margin-bottom: 12px; line-height: 1; }
.afon-steps__title { font-size: 1.02rem; margin-bottom: 6px; }
.afon-steps__text { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* --- коротко про поїздку --- */
.afon-facts-block { margin-bottom: clamp(36px, 4.4vw, 68px); }
.afon-facts-block__title { font-size: clamp(1.15rem, 1.5vw, 1.5rem); margin: 0 0 16px; }
.afon-facts-block .afon-facts { margin-top: 0; }

/* --- святині: рейл із картками --- */
.afon-rail { position: relative; margin-inline: calc(clamp(24px, 3.6vw, 48px) * -1); padding-inline: clamp(24px, 3.6vw, 48px); overflow: hidden; }
.afon-rail__track {
	display: flex; gap: clamp(12px, 1.1vw, 22px); overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
	padding-bottom: 4px; scrollbar-width: none;
}
.afon-rail__track::-webkit-scrollbar { display: none; }
.afon-rail__nav { display: flex; gap: 8px; }
.afon-rail__btn {
	width: 42px; height: 42px; display: grid; place-items: center;
	border: 1.5px solid transparent; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--sh-sm);
	font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color .22s, color .22s, border-color .22s;
}
.afon-rail__btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.afon-place {
	flex: 0 0 calc((100% - 3 * clamp(12px, 1.1vw, 22px)) / 3.35);
	position: relative; scroll-snap-align: start;
	border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5;
	background: var(--navy); box-shadow: var(--sh-sm);
}
.afon-place__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.3,1); }
.afon-place:hover .afon-place__img { transform: scale(1.07); }
.afon-place__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,36,.10) 22%, rgba(9,18,36,.62) 58%, rgba(9,18,36,.94) 100%); }
.afon-place__badge {
	position: absolute; top: 14px; left: 14px;
	padding: 7px 13px; border-radius: 999px;
	background: rgba(255,255,255,.92); color: var(--navy);
	font-size: .7rem; font-weight: 800; letter-spacing: .02em;
}
.afon-place__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.afon-place__name { font-size: 1.12rem; margin: 0 0 6px; }
.afon-place__desc { font-size: .8rem; color: rgba(255,255,255,.8); line-height: 1.45; margin: 0 0 8px; }
.afon-place__meta { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: rgba(255,255,255,.72); margin: 0; }
.afon-place__meta .afon-icon { color: var(--gold-2); flex: 0 0 auto; }

/* --- картки паломництва --- */
.afon-pil__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(12px, 1.1vw, 22px); margin-top: clamp(28px, 3.4vw, 52px); }
.afon-card { padding: clamp(26px, 3vw, 38px); border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid transparent; transition: border-color .28s, box-shadow .28s; }
.afon-card:hover { border-color: rgba(var(--gold-rgb), .35); }
.afon-card--spirit { background: var(--navy); color: rgba(255,255,255,.84); border-color: transparent; }
.afon-card--spirit .afon-card__title { color: #fff; }
.afon-card--spirit .afon-card__title .afon-icon { color: var(--gold-2); }
.afon-card__title { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; margin-bottom: 18px; }
.afon-card__title .afon-icon { color: var(--gold-3); flex: 0 0 auto; }
.afon-card--spirit p { font-size: .95rem; margin: 0; max-width: 62ch; }

.afon-checklist { display: grid; gap: 11px; }
.afon-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.afon-checklist .afon-icon { flex: 0 0 auto; color: var(--gold-3); margin-top: 4px; }

/* --- 1-2-3 --- */
.afon-join { margin-top: clamp(32px, 4vw, 52px); padding: clamp(26px, 3.6vw, 44px); border-radius: var(--r-xl); background: var(--panel); }
.afon-join__title { font-size: clamp(1.25rem, 1.9vw, 2.1rem); margin: 0 0 30px; }
.afon-join__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.afon-join__list::before {
	content: ""; position: absolute; top: 20px; left: 12%; right: 12%; height: 1.5px;
	background: repeating-linear-gradient(90deg, rgba(var(--gold-rgb), .5) 0 8px, transparent 8px 16px);
}
.afon-join__item { position: relative; display: grid; gap: 14px; }
.afon-join__num {
	position: relative; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: .9rem;
	box-shadow: 0 0 0 6px var(--panel);
}
.afon-join__item h4 { font-size: 1rem; margin: 0 0 5px; }
.afon-join__item p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.5; }
.afon-join__cta { margin-top: 30px; display: flex; justify-content: center; }

 /* --- синя повноширинна смуга --- */
.afon-band {
	position: relative;
	background: linear-gradient(158deg, #0d1a33 0%, #14264a 45%, #1d3159 100%);
	color: rgba(255, 255, 255, .82);
	overflow: hidden;
	margin-top: 0;
	padding-block: clamp(56px, 6vw, 112px);
}
.afon-band + .afon-section { padding-top: clamp(48px, 5vw, 88px); }
/* Секція перед синьою смугою не має «провалюватись» зайвим відступом. */
.afon-section:has(+ .afon-band) { padding-bottom: clamp(18px, 2vw, 34px); }
.afon-band::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .5;
	-webkit-mask-image: radial-gradient(72% 62% at 50% 46%, #000 0%, transparent 78%);
	mask-image: radial-gradient(72% 62% at 50% 46%, #000 0%, transparent 78%);
}
.afon-band__glow {
	position: absolute;
	top: -28%;
	right: -12%;
	width: min(880px, 72vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--gold-rgb), .28) 0%, rgba(var(--gold-rgb), .08) 42%, transparent 70%);
	pointer-events: none;
}
.afon-band > .afon-container { position: relative; z-index: 1; }
.afon-band .afon-chip { background: rgba(var(--gold-rgb), .22); color: var(--gold-2); }
.afon-band h2, .afon-band h3, .afon-band h4 { color: #fff; }
.afon-band::before { display: none; }

/* --- формати участі --- */
.afon-fmt__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.1vw, 22px); }
.afon-fmt__intro {
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(24px, 3vw, 38px); border-radius: var(--r-lg);
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
}
.afon-fmt__intro .afon-eyebrow { color: var(--gold-2); }
.afon-fmt__intro .afon-eyebrow__rule { background: var(--gold-2); }
.afon-fmt__title { font-size: clamp(1.3rem, 1.9vw, 2.05rem); margin: 0 0 12px; max-width: 16ch; }
.afon-fmt__text { font-size: .9rem; color: rgba(255,255,255,.8); margin: 0 0 22px; max-width: 34ch; }
.afon-fmt__intro .afon-btn { align-self: flex-start; }

.afon-fmt__card {
	position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5;
	background: var(--navy); box-shadow: var(--sh-sm);
}
.afon-fmt__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.3,1); }
.afon-fmt__card:hover img { transform: scale(1.07); }
.afon-fmt__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,36,.16) 22%, rgba(9,18,36,.60) 56%, rgba(9,18,36,.95) 100%); }
.afon-fmt__icon {
	position: absolute; top: 18px; left: 18px; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255,255,255,.2); color: #fff;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.34);
}
.afon-fmt__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; }
.afon-fmt__body h3 { font-size: 1.12rem; margin: 0 0 6px; }
.afon-fmt__body p { font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.45; margin: 0; }

/* --- комʼюніті --- */
.afon-com__intro { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.afon-com__intro .afon-head { margin-bottom: 0; }
.afon-quote {
	position: relative; margin: 0; padding: clamp(24px, 3vw, 34px);
	border-radius: var(--r-lg); background: linear-gradient(135deg, #0f1d38, #233c68); color: #fff; box-shadow: var(--sh-lg);
}
.afon-quote .afon-icon { color: var(--gold-2); margin-bottom: 12px; }
.afon-quote p { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.75rem); line-height: 1.38; margin: 0; font-style: italic; }

.afon-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.2vw, 26px); margin-top: clamp(38px, 5vw, 64px); position: relative; }
.afon-flow::before { content: ""; position: absolute; top: 18px; left: 6%; right: 6%; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.afon-flow__item { position: relative; padding-top: 52px; }
.afon-flow__dot {
	position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--navy); color: var(--gold-2); font-size: .82rem; font-weight: 800;
	box-shadow: 0 0 0 6px #fff;
}
.afon-flow__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.afon-flow__item p { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }

.afon-stories { margin-top: clamp(36px, 4vw, 64px); }
.afon-gal__people {
	margin-top: 0; padding: 0; background: transparent;
}
.afon-gal__people.is-hidden,
.afon-gal__videos.is-hidden { display: none; }
.afon-stories__head { max-width: 58ch; margin: 0 auto 18px; text-align: center; }
.afon-stories__ig { margin-top: 10px; }
.afon-stories__ig .afon-link { display: inline-flex; align-items: center; gap: 8px; }
.afon-stories__title { font-size: clamp(1.2rem, 1.7vw, 1.7rem); margin-bottom: 6px; }
.afon-stories__text { color: var(--muted); font-size: .88rem; margin: 0 auto; max-width: 58ch; }
.afon-stories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.afon-story {
	display: flex; flex-direction: column; padding: 0 0 14px;
	border-radius: 16px; background: var(--panel-2); border: 1px solid transparent;
	overflow: hidden; min-width: 0;
	transition: box-shadow .22s, background-color .22s, border-color .22s;
}
.afon-story.is-hidden { display: none; }
.afon-story:hover { box-shadow: var(--sh-sm); background: #fff; border-color: rgba(var(--gold-rgb), .35); }
.afon-story__cover {
	width: 100%; aspect-ratio: 1; margin: 0; border-radius: 0;
	overflow: hidden; background: var(--navy);
}
.afon-story__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.afon-story__cover--ph {
	display: grid; place-items: center;
	background:
		radial-gradient(circle at 50% 28%, rgba(224,184,105,.32), transparent 56%),
		linear-gradient(165deg, #1c3156 0%, #0f1d38 70%);
	color: var(--gold-2);
}
.afon-story__cover--ph .afon-icon { opacity: .9; }
.afon-story__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 0; }
.afon-story__tag { align-self: flex-start; padding: 3px 9px; margin: 0; border-radius: 999px; background: rgba(var(--gold-rgb), .16); color: var(--gold-3); font-size: .62rem; font-weight: 800; }
.afon-story__name { font-size: .98rem; margin: 0; line-height: 1.25; }
.afon-story__role { font-size: .75rem; color: var(--muted); margin: 0; }
.afon-story__quote { font-family: var(--font-display); font-size: .95rem; line-height: 1.35; margin: 0; }
.afon-story__body { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.afon-story__body p { margin: 0 0 .35em; }
.afon-story__body p:last-child { margin-bottom: 0; }
.afon-story:not(.is-open) .afon-story__body {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.afon-story__more {
	align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none;
	color: var(--gold-3); font-size: .72rem; font-weight: 700; cursor: pointer;
}
.afon-story__more:hover { text-decoration: underline; }
.afon-story__social { margin: 8px 0 0; padding: 0; border: 0; }
.afon-story__social .afon-link { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; }

.afon-com .afon-stories { margin-top: clamp(48px, 6vw, 84px); }
.afon-com .afon-stories__head { max-width: 58ch; margin: 0 0 22px; text-align: left; }
.afon-com .afon-stories__title { font-size: clamp(1.3rem, 1.9vw, 2.05rem); margin-bottom: 8px; }
.afon-com .afon-stories__text { margin: 0; font-size: .95rem; }
.afon-com .afon-stories__ig { margin-top: 14px; }
.afon-com .afon-stories__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.1vw, 22px); }
.afon-com .afon-story {
	padding: 22px 22px 20px; border-radius: var(--r-lg);
	background: var(--panel-2);
}
.afon-com .afon-story__cover { display: none; }
.afon-com .afon-story__tag { margin-bottom: 16px; padding: 5px 12px; font-size: .7rem; }
.afon-com .afon-story__quote {
	font-family: var(--font-display); font-size: clamp(1.15rem, 1.3vw, 1.32rem);
	line-height: 1.35; color: var(--ink); margin: 0 0 14px;
}
.afon-com .afon-story__body { font-size: .88rem; line-height: 1.55; flex: 1; }
.afon-com .afon-story:not(.is-open) .afon-story__body {
	display: block; -webkit-line-clamp: unset; overflow: visible;
}
.afon-com .afon-story__person {
	display: flex; align-items: center; gap: 12px;
	margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.afon-com .afon-story__avatar {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center;
	background: #fff; color: var(--muted); border: 1px solid var(--line);
}
.afon-com .afon-story__who { min-width: 0; flex: 1; }
.afon-com .afon-story__name {
	display: block; font-size: .95rem; font-weight: 800; margin: 0 0 2px;
}
.afon-com .afon-story__role { font-size: .78rem; line-height: 1.35; margin: 0; }
.afon-com .afon-story__ig {
	flex: 0 0 auto; color: var(--gold-3); display: grid; place-items: center;
}
.afon-com .afon-story__ig:hover { color: var(--navy); }

/* --- галерея --- */
.afon-gal__panel { background: var(--panel); }
.afon-filters-wrap { position: relative; min-width: 0; }
.afon-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.afon-filters-cue { display: none; }
.afon-filters__btn {
	display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border-radius: 999px;
	border: 1.5px solid transparent; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 700;
	cursor: pointer; box-shadow: var(--sh-sm); white-space: nowrap;
	transition: background-color .22s, color .22s, border-color .22s, transform .22s;
}
.afon-filters__btn span { font-size: .72rem; opacity: .55; font-weight: 600; }
.afon-filters__btn:hover { border-color: var(--navy); transform: translateY(-1px); }
.afon-filters__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.afon-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 13vw, 280px); grid-auto-flow: dense; gap: clamp(8px, .8vw, 16px); }
.afon-grid__item { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; background: var(--navy); }
.afon-grid__item--wide { grid-column: span 2; }
.afon-grid__item--tall { grid-row: span 2; }
.afon-grid__item.is-hidden, .afon-grid__item.is-folded { display: none; }
.afon-gal__more { display: flex; justify-content: center; margin-top: 24px; }
.afon-grid__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.afon-grid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.3,1); }
.afon-grid__item:hover img { transform: scale(1.06); }
.afon-grid__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,18,36,0) 42%, rgba(9,18,36,.8) 100%); }
.afon-grid__caption { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; flex-direction: column; gap: 1px; text-align: left; color: #fff; }
.afon-grid__caption strong { font-size: .9rem; font-weight: 800; }
.afon-grid__caption span { font-size: .74rem; color: rgba(255,255,255,.72); }
.afon-grid__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); transition: transform .28s;
}
.afon-grid__item:hover .afon-grid__play { transform: translate(-50%, -50%) scale(1.08); }
.afon-gal__hint {
	display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 17px;
	border-radius: var(--r-sm); border: 1px dashed rgba(var(--gold-rgb), .5); color: var(--muted); font-size: .84rem;
}
.afon-gal__hint .afon-icon { color: var(--gold-3); flex: 0 0 auto; }
.afon-gal__hint a { color: var(--gold-3); font-weight: 800; }

/* --- підтримати --- */
.afon-sup__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.afon-goal {
	position: relative;
	margin-bottom: 22px;
	padding: clamp(18px, 2.2vw, 24px);
	border-radius: var(--r);
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
}
.afon-goal__head { display: flex; gap: 15px; align-items: center; }
.afon-goal__icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: rgba(var(--gold-rgb), .22); color: var(--gold-2); }
.afon-goal__label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); margin: 0 0 3px; font-weight: 800; }
.afon-goal__title { font-size: 1.08rem; margin: 0; color: #fff; }
.afon-goal__bar { margin-top: 18px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.afon-goal__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.4s cubic-bezier(.2,.8,.3,1); }
.afon-goal.is-visible .afon-goal__fill { width: var(--target); }
.afon-goal__numbers { display: flex; align-items: baseline; gap: 8px; margin: 13px 0 0; font-size: .92rem; }
.afon-goal__numbers strong { font-size: 1.25rem; font-family: var(--font-display); }
.afon-goal__numbers span { color: rgba(255,255,255,.6); }

.afon-donate { position: sticky; top: calc(var(--header-h) + 20px); }
.afon-donate__inner {
	padding: clamp(24px, 3vw, 34px); border-radius: var(--r-xl);
	background: linear-gradient(160deg, #0f1d38 0%, #233c68 100%); color: #fff; box-shadow: var(--sh-lg);
	position: relative; overflow: hidden;
}
.afon-donate__inner::before {
	content: ""; position: absolute; inset: -40% -40% auto auto; width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--gold-rgb), .26), transparent 68%);
}
.afon-donate__title { position: relative; font-size: 1.32rem; margin-bottom: 20px; }
.afon-donate .afon-btn { position: relative; }
.afon-donate__hint { position: relative; margin-top: 16px; font-size: .82rem; color: rgba(255,255,255,.62); }
.afon-donate__more { position: relative; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.afon-donate__more-title { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 800; margin-bottom: 10px; }
.afon-donate__more ul { display: grid; gap: 2px; }
.afon-donate__more a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: rgba(255,255,255,.85); text-decoration: none; font-size: .86rem; transition: color .2s, gap .2s; }
.afon-donate__more a:hover { color: var(--gold-2); gap: 13px; }
.afon-donate__more .afon-icon { color: var(--gold-2); flex: 0 0 auto; }

.afon-req { position: relative; display: grid; gap: 10px; margin-top: 20px; }
.afon-req li { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.afon-req__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 800; }
.afon-req__value { font-size: 1rem; font-weight: 800; letter-spacing: .03em; cursor: pointer; word-break: break-all; }
.afon-req__value::after { content: attr(data-copied); margin-left: 8px; font-size: .7rem; color: var(--gold-2); font-weight: 700; letter-spacing: 0; }
.afon-qr { position: relative; margin: 20px 0 0; text-align: center; }
.afon-qr img { width: 160px; margin: 0 auto 8px; border-radius: var(--r-sm); background: #fff; padding: 10px; }
.afon-qr figcaption { font-size: .78rem; color: rgba(255,255,255,.6); }

.afon-partner {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
	gap: clamp(22px, 3vw, 52px); align-items: center;
}
.afon-band--partner .afon-partner__label { color: var(--gold-2); }
.afon-band--partner .afon-partner__text p { color: rgba(255, 255, 255, .78); }
.afon-band--partner .afon-partner__price { background: #fff; box-shadow: var(--sh-lg); }
.afon-band--partner .afon-btn--outline-dark { --fg: #fff; --bd: rgba(255,255,255,.45); }
.afon-band--partner .afon-btn--outline-dark:hover { --bg: #fff; --fg: var(--navy); }
.afon-partner__label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 800; margin-bottom: 8px; }
.afon-partner__title { font-size: clamp(1.3rem, 1.9vw, 2.15rem); margin-bottom: 10px; max-width: 20ch; }
.afon-partner__text p { color: var(--muted); margin-bottom: 20px; max-width: 62ch; }
.afon-partner__price { padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r-lg); background: #fff; text-align: center; }
.afon-partner__amount { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3.4rem); color: var(--navy); line-height: 1; margin-bottom: 16px; }
.afon-partner__split { display: grid; gap: 10px; text-align: left; }
.afon-partner__split li { display: grid; gap: 2px; padding: 13px 15px; border-radius: var(--r-sm); background: var(--panel-2); }
.afon-partner__split strong { color: var(--gold-3); font-size: .95rem; }
.afon-partner__split span { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* --- секція питань --- */
.afon-faq-sec__grid {
	display: grid;
	grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
	gap: clamp(24px, 3.4vw, 68px);
	align-items: start;
}
.afon-faq-sec__aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; justify-items: start; gap: 14px; }
.afon-faq-sec__title { font-size: clamp(1.5rem, 2.3vw, 2.4rem); margin: 0; max-width: 14ch; }
.afon-faq-sec__text { color: var(--muted); margin: 0; max-width: 40ch; }

/* --- питання та відповіді --- */
.afon-faq { display: grid; gap: 10px; }
.afon-faq__item {
	border-radius: var(--r);
	background: var(--panel-2);
	border: 1px solid transparent;
	transition: border-color .25s, background-color .25s;
}
.afon-faq__item:hover { border-color: rgba(var(--gold-rgb), .4); }
.afon-faq__item[open] { background: #fff; border-color: rgba(var(--gold-rgb), .4); box-shadow: var(--sh-sm); }
.afon-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: clamp(16px, 1.5vw, 22px) clamp(18px, 1.7vw, 26px); cursor: pointer; list-style: none;
	font-weight: 700; font-size: .95rem; line-height: 1.4;
}
.afon-faq__item summary::-webkit-details-marker { display: none; }
.afon-faq__item summary i {
	position: relative; flex: 0 0 26px; width: 26px; height: 26px;
	border-radius: 50%; background: rgba(var(--gold-rgb), .16);
	transition: background-color .25s, transform .3s;
}
.afon-faq__item summary i::before,
.afon-faq__item summary i::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.8px;
	background: var(--gold-3); border-radius: 2px; transform: translate(-50%, -50%);
	transition: transform .3s, opacity .25s;
}
.afon-faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.afon-faq__item[open] summary i { background: var(--navy); }
.afon-faq__item[open] summary i::before,
.afon-faq__item[open] summary i::after { background: var(--gold-2); }
.afon-faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.afon-faq__body { padding: 0 clamp(18px, 1.7vw, 26px) clamp(16px, 1.5vw, 22px); font-size: .89rem; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.afon-faq__item[open] .afon-faq__body { animation: afon-fade .35s ease both; }
@keyframes afon-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --- контакти --- */
.afon-con__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 3.4vw, 64px); align-items: stretch; }
.afon-con__info { display: flex; flex-direction: column; }
.afon-con__info .afon-head { margin-bottom: clamp(22px, 2.4vw, 34px); }
.afon-forms { flex: 1; }
.afon-form-wrap { display: flex; }
.afon-form { width: 100%; height: 100%; }
.afon-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); margin-bottom: clamp(18px, 2vw, 28px); }
.afon-contacts li { display: flex; gap: 13px; align-items: center; padding: 16px 18px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid transparent; transition: border-color .22s, background-color .22s, transform .22s; }
.afon-contacts li:hover { border-color: rgba(var(--gold-rgb), .45); background: #fff; transform: translateX(3px); }
.afon-contacts__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--gold-rgb), .16); color: var(--gold-3); }
.afon-contacts__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.afon-contacts__body em { font-style: normal; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.afon-contacts__body a { font-weight: 700; text-decoration: none; word-break: break-word; }
.afon-contacts__body a:hover { color: var(--gold-3); }

.afon-forms { display: flex; flex-direction: column; gap: clamp(10px, 1vw, 14px); }
.afon-forms__card { flex: 1 1 auto; min-height: 76px; }
.afon-forms__card {
	display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: var(--r-sm);
	background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .32);
	text-decoration: none; transition: background-color .22s, transform .22s, border-color .22s;
}
.afon-forms__card:hover { background: rgba(var(--gold-rgb), .2); border-color: var(--gold); transform: translateX(4px); }
.afon-forms__icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--gold-3); }
.afon-forms__body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.afon-forms__body strong { font-size: .95rem; }
.afon-forms__body span { font-size: .82rem; color: var(--muted); }
.afon-forms__arrow { color: var(--gold-3); flex: 0 0 auto; }

.afon-form {
	padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl);
	background: linear-gradient(160deg, #0f1d38 0%, #233c68 100%); color: #fff; box-shadow: var(--sh-lg);
}
.afon-form__title { font-size: 1.32rem; margin-bottom: 6px; }
.afon-form__intro { font-size: .88rem; color: rgba(255,255,255,.68); margin-bottom: 22px; max-width: 52ch; }
.afon-field { display: grid; gap: 6px; margin-bottom: 14px; }
.afon-field label { font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.8); }
.afon-field label span { color: var(--gold-2); }
.afon-field input, .afon-field select, .afon-field textarea {
	width: 100%; padding: 12px 15px; border-radius: var(--r-sm);
	border: 1px solid rgba(255,255,255,.18); background: rgba(8,16,34,.42); color: #fff;
	font: inherit; font-size: .92rem; transition: border-color .22s, background-color .22s;
}
.afon-field textarea { resize: vertical; min-height: 92px; }
.afon-field input::placeholder, .afon-field textarea::placeholder { color: rgba(255,255,255,.34); }
.afon-field input:focus, .afon-field select:focus, .afon-field textarea:focus { outline: none; border-color: var(--gold); background: rgba(8,16,34,.7); }
.afon-field select option { background: #12244a; color: #fff; }
.afon-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.45; cursor: pointer; }
.afon-check input { margin-top: 3px; accent-color: var(--gold); width: 17px; height: 17px; flex: 0 0 auto; }
.afon-check a { color: var(--gold-2); }
.afon-hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }
.afon-form__status { margin: 14px 0 0; font-size: .88rem; min-height: 1.2em; }
.afon-form__status.is-error { color: #ffb4a2; }
.afon-form__status.is-success { color: var(--gold-2); }
.afon-form.is-sent .afon-field, .afon-form.is-sent .afon-check, .afon-form.is-sent button[type="submit"] { display: none; }

/* --- підвал --- */
.afon-footer { background: #0c1830; color: rgba(255,255,255,.7); padding-block: clamp(48px, 6vw, 78px) 28px; }
.afon-footer .afon-brand { color: #fff; }
.afon-footer .afon-brand__sub { color: rgba(255,255,255,.5); }
.afon-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.afon-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 68px); padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.afon-footer__text { font-size: .9rem; margin: 18px 0 20px; max-width: 46ch; }
.afon-footer__ig {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
	padding: 10px 14px 10px 10px; max-width: 100%;
	border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
	background: rgba(255,255,255,.05); color: #fff; text-decoration: none;
	transition: background-color .22s, border-color .22s, transform .22s;
}
.afon-footer__ig:hover { background: rgba(255,255,255,.1); border-color: rgba(var(--gold-rgb), .55); transform: translateY(-1px); }
.afon-footer__ig-icon {
	display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
	border-radius: 12px; background: rgba(var(--gold-rgb), .16); color: var(--gold-2);
}
.afon-footer__ig-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.afon-footer__ig-body em { font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.48); font-weight: 700; }
.afon-footer__ig-body strong { font-size: .95rem; font-weight: 700; color: #fff; }
.afon-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.afon-footer__title { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; font-weight: 800; }
.afon-footer__list { display: grid; gap: 9px; }
.afon-footer__list a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .89rem; transition: color .2s; }
.afon-footer__list a:hover { color: var(--gold-2); }
.afon-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .8rem; color: rgba(255,255,255,.45); }
.afon-footer__bottom p { margin: 0; }
.afon-footer__note { color: rgba(var(--gold-rgb), .9); }

/* --- нагору + лайтбокс --- */
.afon-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 46px; height: 46px;
	display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff;
	cursor: pointer; box-shadow: 0 12px 28px -12px rgba(0,0,0,.6); opacity: 0; transform: translateY(12px);
	transition: opacity .3s, transform .3s;
}
.afon-top .afon-icon { transform: rotate(180deg); }
.afon-top.is-visible { opacity: 1; transform: translateY(0); }

.afon-lightbox {
	position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
	padding: clamp(16px, 4vw, 52px); background: rgba(6, 12, 24, .94);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.afon-lightbox.is-open { opacity: 1; }
.afon-lightbox__figure { margin: 0; max-width: min(1180px, 100%); width: 100%; }
.afon-lightbox__stage { display: grid; place-items: center; max-height: 80vh; }
.afon-lightbox__stage img { max-height: 80vh; width: auto; border-radius: var(--r); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.afon-lightbox__stage iframe { width: min(1100px, 100%); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.afon-lightbox__caption { margin-top: 14px; text-align: center; color: rgba(255,255,255,.72); font-size: .88rem; }
.afon-lightbox__close, .afon-lightbox__nav {
	position: absolute; display: grid; place-items: center; width: 46px; height: 46px;
	border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08);
	color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .22s;
}
.afon-lightbox__close:hover, .afon-lightbox__nav:hover { background: rgba(255,255,255,.2); }
.afon-lightbox__close { top: 20px; right: 20px; font-size: 1.8rem; }
.afon-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.afon-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- внутрішні сторінки --- */
.afon-page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); text-align: center; }
.afon-page-hero__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0; }
.afon-page-hero__meta, .afon-page-hero__desc { color: var(--muted); font-size: .9rem; }
.afon-single__media { margin-bottom: 36px; }
.afon-single__media img { border-radius: var(--r-xl); box-shadow: var(--sh); width: 100%; }
.afon-single__content { max-width: 740px; margin-inline: auto; }
.afon-single__content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.afon-single__content h3 { font-size: 1.28rem; margin-top: 1.4em; }
.afon-single__content ul, .afon-single__content ol { list-style: revert; padding-left: 1.3em; margin-bottom: 1.2em; }
.afon-single__content li { margin-bottom: .35em; }
.afon-single__content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--panel);
	border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-display); font-size: 1.12rem;
}
.afon-single__content img { border-radius: var(--r); }
.afon-single__content a { color: var(--gold-3); }

.afon-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.afon-post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--panel-2); border: 1px solid transparent; transition: transform .28s, box-shadow .28s, border-color .28s; }
.afon-post-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: rgba(var(--gold-rgb), .4); }
.afon-post-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.afon-post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.afon-post-card__meta { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.afon-post-card__title { font-size: 1.15rem; margin: 0; }
.afon-post-card__title a { text-decoration: none; }
.afon-post-card__excerpt { font-size: .89rem; color: var(--muted); flex: 1; }

.afon-404 { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.afon-404__inner { max-width: 600px; }
.afon-404 .afon-eyebrow { justify-content: center; }
.afon-404__title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.afon-404__text { color: var(--muted); margin-bottom: 26px; }
.afon-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.afon-404 .afon-btn--outline { --fg: var(--ink); --bd: rgba(16,28,51,.22); }
.afon-404 .afon-btn--outline:hover { --bg: var(--navy); --fg: #fff; }

.afon-search { display: flex; gap: 10px; margin-top: 18px; }
.afon-search input { flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--panel); font: inherit; }
.afon-search input:focus { outline: none; border-color: var(--gold); background: #fff; }
.afon-empty { color: var(--muted); text-align: center; }

.afon-comments { max-width: 740px; margin: 56px auto 0; padding-top: 36px; border-top: 1px solid var(--line); }
.afon-comments__list { display: grid; gap: 20px; margin-bottom: 32px; }
.afon-comments .comment-body { padding: 18px; border-radius: var(--r-sm); background: var(--panel); }
.afon-comments input[type="text"], .afon-comments input[type="email"], .afon-comments input[type="url"], .afon-comments textarea {
	width: 100%; padding: 12px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); font: inherit;
}

.pagination, .navigation.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: var(--panel); text-decoration: none; font-size: .88rem; font-weight: 700; transition: border-color .2s; }
.pagination .page-numbers:hover { border-color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* --- анімації появи --- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* --- адаптив --- */
@media (max-width: 1180px) {
	.afon-searchbar { display: none; }
}

@media (max-width: 1024px) {
	.afon-nav { display: none; }
	.afon-figbar__list { grid-template-columns: repeat(2, 1fr); row-gap: clamp(18px, 3vw, 28px); }
	.afon-facts { grid-template-columns: repeat(2, 1fr); }
	.afon-perks { grid-template-columns: 1fr; }
	.afon-lead, .afon-mission { grid-template-columns: 1fr; }
	.afon-lead { grid-template-areas: "chip" "head" "body"; }
	.afon-lead__head { gap: 14px; }
	.afon-lead__body { padding-top: 0; }
	.afon-faq-sec__grid { grid-template-columns: 1fr; }
	.afon-faq-sec__aside { position: static; }
	.afon-banner img { aspect-ratio: 16 / 9; }
	.afon-header__inner { grid-template-columns: auto 1fr; }
	.afon-header__tools { grid-column: 2; }
	.afon-burger { display: block; }
	.afon-place { flex-basis: 46%; }
	.afon-fmt__grid { grid-template-columns: repeat(2, 1fr); }
	.afon-fmt__intro { grid-column: span 2; }
	.afon-values { grid-template-columns: repeat(2, 1fr); }
	.afon-steps { grid-template-columns: repeat(2, 1fr); }
	.afon-flow { grid-template-columns: repeat(2, 1fr); gap: 26px; }
	.afon-flow::before { display: none; }
	.afon-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
	.afon-stories__grid { grid-template-columns: repeat(3, 1fr); }
	.afon-com .afon-stories__grid { grid-template-columns: repeat(2, 1fr); }
	.afon-pil__grid, .afon-com__intro, .afon-sup__grid, .afon-con__grid,
	.afon-founder, .afon-partner, .afon-footer__top, .afon-head--split,
	.afon-panel__head { grid-template-columns: 1fr; }
	.afon-head--split { align-items: start; }
	.afon-donate { position: static; }
}

@media (max-width: 860px) {
	.afon-filters-wrap {
		margin-inline: -8px;
	}
	.afon-gal__panel > .afon-filters-wrap {
		margin-inline: calc(clamp(24px, 3.6vw, 48px) * -1);
	}
	.afon-gal__people .afon-filters-wrap {
		margin-inline: calc(clamp(18px, 2.2vw, 28px) * -1);
	}
	.afon-filters {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		gap: 8px;
		margin-bottom: 18px;
		padding: 4px 20px 10px;
	}
	.afon-filters::-webkit-scrollbar { display: none; }
	.afon-filters__btn {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
	.afon-filters-wrap.is-scrollable:not(.is-end)::before {
		content: "";
		position: absolute;
		top: 0; right: 0; bottom: 8px; width: 56px;
		background: linear-gradient(90deg, transparent, var(--panel));
		pointer-events: none;
		z-index: 1;
	}
	.afon-filters-wrap.is-scrollable:not(.is-end) .afon-filters-cue {
		display: grid;
		place-items: center;
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(calc(-50% - 2px));
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: var(--navy);
		color: #fff;
		box-shadow: 0 6px 16px -8px rgba(15, 29, 56, .7);
		pointer-events: none;
		z-index: 2;
		animation: afon-cue-pulse 1.6s ease-in-out infinite;
	}
	.afon-filters-wrap.is-scrollable:not(.is-start)::after {
		content: "";
		position: absolute;
		top: 0; left: 0; bottom: 8px; width: 28px;
		background: linear-gradient(270deg, transparent, var(--panel));
		pointer-events: none;
		z-index: 1;
	}
}

@keyframes afon-cue-pulse {
	0%, 100% { transform: translateY(calc(-50% - 2px)) translateX(0); }
	50% { transform: translateY(calc(-50% - 2px)) translateX(4px); }
}

@media (max-width: 760px) {
	:root { --header-h: 64px; }
	.afon-figbar__list { grid-template-columns: 1fr; row-gap: 14px; }
	.afon-figbar__item { gap: 12px; }
	.afon-figbar__label { max-width: none; }
	.afon-facts { grid-template-columns: 1fr; }
	.afon-contacts { grid-template-columns: 1fr; }
	.afon-banner img { aspect-ratio: 4 / 3; }
	.afon-lead__actions { gap: 16px; }
	body { font-size: 16px; }
	.afon-hero__card { min-height: 78vh; }
	.afon-hero__word span { font-size: clamp(3rem, 18vw, 5.4rem); }
	.afon-socials--hero { display: none; }
	.afon-figures { grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.afon-figures__icon { width: 44px; height: 44px; }
	.afon-join__list { grid-template-columns: 1fr; gap: 22px; }
	.afon-join__list::before { display: none; }
	.afon-rail { margin-inline: calc(clamp(24px, 3.6vw, 48px) * -1); }
	.afon-place { flex-basis: 76%; }
	.afon-rail__nav { display: none; }
	.afon-panel__foot { justify-content: center; }
	.afon-fmt__grid { grid-template-columns: 1fr; }
	.afon-fmt__intro { grid-column: span 1; }
	.afon-fmt__card { aspect-ratio: 4 / 3; }
	.afon-steps { grid-template-columns: 1fr; }
	.afon-values { grid-template-columns: 1fr; }
	.afon-flow { grid-template-columns: 1fr; }
	.afon-stories__grid { grid-template-columns: repeat(2, 1fr); }
	.afon-com .afon-stories__grid { grid-template-columns: 1fr; }
	.afon-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
	.afon-grid__item--tall { grid-row: span 1; }
	.afon-grid__caption strong { font-size: .8rem; }
	.afon-grid__caption span { font-size: .7rem; }
	.afon-founder__card { flex-direction: column; }
	.afon-founder__photo { flex: none; width: min(100%, 220px); height: 270px; }
	.afon-hero__actions .afon-btn { flex: 1 1 auto; }
	.afon-lightbox__nav { width: 40px; height: 40px; }
	.afon-lightbox__nav--prev { left: 6px; }
	.afon-lightbox__nav--next { right: 6px; }
	.afon-header__cta span { display: none; }
	.afon-header__cta { padding: 10px; }
}

@media (max-width: 460px) {
	.afon-brand__sub { display: none; }
	.afon-figures { grid-template-columns: 1fr; }
	.afon-figures__item { flex-direction: row; align-items: center; text-align: left; gap: 12px; }
	.afon-figures__icon { margin-bottom: 0; flex: 0 0 44px; }
	.afon-figures__label { max-width: none; }
}

@media print {
	.afon-header, .afon-mobile, .afon-top, .afon-lightbox, .afon-flag { display: none !important; }
	body { background: #fff; color: #000; }
	.afon-section { padding-block: 20px; }
}
