/* ==========================================================================
   UkropSoft — main styles
   Макет: 1440px. Токени — з Figma variables.
   ========================================================================== */

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

:root {
	/* Colors */
	--grey-50: #f5f5f5;
	--grey-100: #e0e0e0;
	--grey-300: #7a7a7a;
	--grey-700: #5a5a5a;
	--grey-900: #3a3a3a;
	--grey-950: #121212;
	--card: #181818;
	--green-300: #d2dc7a;
	--green-500: #9fb032;
	--green-700: #5f6b21;
	--green-900: #3c431a;
	--green-950: #22280b;
	--yellow-300: #ffd846;
	--error: #ba1a1a;

	/* Layout */
	--w-content: 1120px;
	--w-header: 1200px;
	--w-wide: 1280px;
	--gutter: 20px;
	--header-h: 96px;
	--section-py: 120px;

	/* Motion */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-in-out: cubic-bezier(.65, 0, .35, 1);

	--font: "Tektur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 26px;
	color: var(--grey-100);
	background: var(--grey-950);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
body.header-light { background: var(--grey-50); color: var(--grey-900); }
body.menu-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, p, ol, ul, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; color: var(--grey-50); }
/* Єдині розміри заголовків на весь сайт. */
h1 { font-size: 56px; line-height: 64px; font-weight: 600; }
h2 { font-size: 42px; line-height: 52px; font-weight: 500; }
/* Виняток: сторінки на весь екран (член команди, «Контакти») — H1 розміром з макета. */
.no-footer .page-intro__title { font-size: 42px; line-height: 52px; }
.no-footer .member-page__name { font-size: 28px; line-height: 38px; font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
hr { border: 0; }

/* A11y ------------------------------------------------------------------- */
.screen-reader-text {
	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:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 8px 16px;
	background: var(--yellow-300);
	color: var(--grey-950);
}
:focus-visible { outline: 2px solid var(--yellow-300); outline-offset: 3px; }

/* Layout ----------------------------------------------------------------- */
.container {
	width: min(var(--w-content), 100% - var(--gutter) * 2);
	margin-inline: auto;
}
.container--narrow { width: min(800px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--section-py); }
.section--dark { background: var(--grey-950); color: var(--grey-100); }
.section--light { background: var(--grey-50); color: var(--grey-900); }
.section--light h1, .section--light h2, .section--light h3 { color: var(--grey-950); }

/* Сторінка без hero — відступ під фіксовану шапку. */
.site-main > :first-child:not(.hero) { padding-top: calc(var(--header-h) + 80px); }

/* Сторінки без футера — на весь екран. */
.no-footer .site-main { min-height: 100svh; }

/* Typography ------------------------------------------------------------- */
.eyebrow {
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: var(--green-300);
	text-transform: uppercase;
}
.section--light .eyebrow { color: var(--green-950); }
.process .eyebrow,
.media-rows.section--light .eyebrow { color: var(--green-900); }

.section-heading {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-block: 40px;
}
.section-heading .eyebrow { margin-bottom: -8px; }
.section-heading__title { max-width: 800px; }
.section-heading__text { max-width: 800px; }
.section--light .section-heading__text { color: var(--grey-900); }

/* Buttons ---------------------------------------------------------------- */
.btn {
	--h: 48px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: var(--h);
	padding-inline: 24px;
	font-size: 16px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .2px;
	white-space: nowrap;
	isolation: isolate;
	transition: color .25s, background-color .25s, transform .25s var(--ease);
}
.btn--lg { --h: 56px; }
.btn__icon { flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:hover .btn__icon[src*="arrow-right-up"] { transform: translate(3px, -3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
	color: var(--grey-950);
	background: var(--yellow-300);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	overflow: hidden;
}
/* «Відблиск» при наведенні. */
.btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .7s var(--ease);
}
.btn--primary:hover { background: #ffe06b; }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--outline,
.btn--outline-light {
	color: var(--grey-50);
	background:
		url("../img/btn-out-l.svg") left center / 16px 100% no-repeat,
		url("../img/btn-out-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/btn-out-m.svg") center / calc(100% - 30px) 100% no-repeat;
}
.btn--outline-light {
	color: var(--grey-950);
	background:
		url("../img/btn-out-light-l.svg") left center / 16px 100% no-repeat,
		url("../img/btn-out-light-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/btn-out-light-m.svg") center / calc(100% - 30px) 100% no-repeat;
}
.btn--outline::before,
.btn--outline-light::before {
	content: "";
	position: absolute;
	inset: 1px;
	z-index: -1;
	background: var(--grey-50);
	opacity: 0;
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
	transition: opacity .25s;
}
.btn--outline-light::before { background: var(--grey-950); }
.btn--outline:hover::before { opacity: .08; }
.btn--outline-light:hover::before { opacity: .06; }

/* Chip ------------------------------------------------------------------- */
.chip {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 40px;
	padding-inline: 24px;
	font-size: 13px;
	line-height: 20px;
	color: var(--grey-50);
	text-transform: uppercase;
	white-space: nowrap;
	background:
		url("../img/chip-l.svg") left center / 16px 100% no-repeat,
		url("../img/chip-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/chip-m.svg") center / calc(100% - 30px) 100% no-repeat;
}
.chip--light {
	color: var(--grey-950);
	text-transform: none;
	background:
		url("../img/chip-light-l.svg") left center / 16px 100% no-repeat,
		url("../img/chip-light-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/chip-light-m.svg") center / calc(100% - 30px) 100% no-repeat;
}
.chips { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	background: rgba(18, 18, 18, .6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: transform .4s var(--ease), background-color .3s;
}
.site-header.is-scrolled { background: rgba(18, 18, 18, .88); }
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.header-light .site-header { background: rgba(245, 245, 245, .7); }
.header-light .site-header.is-scrolled { background: rgba(245, 245, 245, .92); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(var(--w-header), 100% - var(--gutter) * 2);
	min-height: var(--header-h);
	margin-inline: auto;
	padding-block: 24px 16px;
}
.site-logo img { width: 229px; height: 56px; }
.site-nav { display: flex; align-items: center; gap: 8px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 8px; }
.main-nav li { position: relative; }
.main-nav a {
	position: relative;
	display: block;
	padding: 11px 24px;
	color: var(--grey-100);
	transition: color .2s;
}
.header-light .main-nav a { color: var(--grey-900); }
.main-nav a::after {
	content: "";
	position: absolute;
	left: 20px; right: 20px; bottom: 8px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--ease);
}
.main-nav a:hover { color: var(--green-300); }
.header-light .main-nav a:hover { color: var(--grey-950); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a:not([href*="#"])::after,
.main-nav .current-menu-ancestor > a::after,
.main-nav .current-page-ancestor > a::after { transform: scaleX(1); transform-origin: left; }

.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 220px; padding: 8px 0;
	background: var(--card);
	border: 1px solid var(--grey-900);
	opacity: 0; visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.header-light .main-nav .sub-menu { background: var(--grey-50); border-color: var(--grey-100); }
.main-nav .sub-menu a { padding: 10px 24px; white-space: nowrap; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu .current-menu-item > a { color: var(--green-300); }
.header-light .main-nav .sub-menu .current-menu-item > a { color: var(--grey-950); font-weight: 600; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
/* Стрілочка біля пункту з підменю. */
.main-nav > ul > .menu-item-has-children > a { padding-right: 40px; }
.main-nav > ul > .menu-item-has-children::before {
	content: "";
	position: absolute;
	right: 22px; top: 50%;
	width: 7px; height: 7px;
	margin-top: -6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	color: var(--grey-100);
	transform: rotate(45deg);
	transition: transform .25s var(--ease), color .2s;
	pointer-events: none;
}
.header-light .main-nav > ul > .menu-item-has-children::before { color: var(--grey-900); }
.main-nav > ul > .menu-item-has-children:hover::before,
.main-nav > ul > .menu-item-has-children:focus-within::before { transform: translateY(3px) rotate(225deg); color: var(--green-300); }
.header-light .main-nav > ul > .menu-item-has-children:hover::before { color: var(--grey-950); }

/* PNG з макета вже містить відступи 8px по боках. */
.lang-switcher { flex: none; }
/* Перемикач мов зі шорткоду [ukropsoft_lang_switcher] (Polylang). */
.custom-switcher { flex: none; display: flex; align-items: center; padding-inline: 8px; }
.site-footer .custom-switcher { padding-inline: 20px; }
.lang-toggle { display: flex; margin: 0; padding: 0; list-style: none; }
.lang-toggle a {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--grey-100);
	transition: color .2s;
}
.lang-toggle a:hover { color: var(--green-300); }
.lang-toggle .is-current a { background: url("../img/lang-line.svg") center / 100% 100% no-repeat; }
.header-light .site-header .lang-toggle a { color: var(--grey-900); }
.header-light .site-header .lang-toggle a:hover { color: var(--grey-950); }
.header-light .site-header .lang-toggle .is-current a { background-image: url("../img/lang-line-light.svg"); }
.lang-switcher img { width: 112px; height: 48px; }

.menu-toggle {
	display: none;
	position: relative;
	width: 48px; height: 48px;
	color: var(--grey-50);
}
.header-light .menu-toggle { color: var(--grey-950); }
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	position: absolute; left: 12px;
	width: 24px; height: 2px;
	background: currentColor;
	transition: transform .3s var(--ease), top .3s var(--ease), background-color .2s;
}
.menu-toggle__bar { top: 23px; }
.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; left: 0; }
.menu-toggle__bar::before { top: -8px; }
.menu-toggle__bar::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Page intro (шаблони «Рішення», «Контакти»): H1 сторінки ------------------ */
.page-intro { padding-bottom: 0; }
.page-intro--dark { background: var(--grey-950); }
.site-main > .page-intro--dark:first-child { padding-top: calc(var(--header-h) + 120px); }
.page-intro--dark .page-intro__title { max-width: 800px; color: var(--grey-50); }
.page-intro--dark + .products { padding-top: 0; }
.page-intro--light { background: var(--grey-50); padding-bottom: 40px; }
.page-intro--light .page-intro__title { color: var(--grey-900); }
.page-intro--light + .contact-section { padding-top: 0; }

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(720px, 100svh, 1000px);
	background: var(--grey-950);
	overflow: hidden;
}
/* Картинка прив'язана до «кадру» 1440px з макета: на широких екранах не збільшується. */
.hero__media {
	position: absolute;
	top: 0; bottom: 0;
	left: calc(50% + 42px);
	width: 678px; /* видима в макеті частина (до краю 1440) */
}
/* «Про нас»: зображення заходить під текст (від 526px макета до краю). */
.hero--simple .hero__media { left: calc(50% - 194px); width: 914px; }
.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	will-change: transform;
}
.hero::before {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: calc(50% - 720px);
	width: 1440px;
	z-index: 1;
	background: linear-gradient(90deg, var(--grey-950) 48.874%, rgba(18, 18, 18, 0));
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: min(var(--w-header), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: calc(var(--header-h) + 100px) 80px;
}
.hero__content { display: flex; flex-direction: column; max-width: 736px; }
.hero__content .eyebrow { margin-bottom: 8px; }
.hero__text { margin-top: 16px; }
.hero__stats { display: flex; gap: 80px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 16px; min-width: 172px; }
.stat__value {
	font-size: 38px;
	line-height: 48px;
	font-weight: 500;
	color: var(--green-300);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* Products --------------------------------------------------------------- */
/* У макеті між Hero і «Рішеннями» 12px (картинка Hero вища за секцію). */
.hero + .products,
.hero + .media-rows { padding-top: calc(var(--section-py) + 12px); }
.products__list { display: flex; flex-direction: column; }
.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	min-height: 540px;
	overflow: hidden;
}
.product + .product { margin-top: 32px; padding-top: 31px; border-top: 1px solid var(--grey-900); }
.product__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 32px 48px 0;
}
.product--reverse .product__content { order: 2; padding: 0 0 48px 32px; }
.product__title { font-size: 28px; line-height: 38px; margin-bottom: 8px; }
.product__text { max-width: 528px; }
.product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
	margin-top: 24px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 500;
	color: var(--green-300);
}
.product__content .btn { margin-top: 32px; }
.product__media { position: relative; height: 540px; }
.product__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.product:hover .product__image { transform: scale(1.03); }

/* Cards (факти / виклики / результати) ----------------------------------- */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fact-card {
	position: relative;
	display: flex;
	min-height: 544px;
	padding: 32px;
	background: var(--card);
	border: 1px solid var(--grey-900);
	overflow: hidden;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cards--short .fact-card { min-height: 320px; }
.fact-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(18, 18, 18, .5); }
.fact-card__bg {
	position: absolute;
	inset: -1px;
	background-size: cover;
	background-position: center;
	transition: transform 1.2s var(--ease);
}
.fact-card:hover .fact-card__bg { transform: scale(1.06); }
.fact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(18, 18, 18, .9);
}
.fact-card--accent { background: var(--green-950); border-color: transparent; }
.fact-card--accent::before {
	opacity: .9;
	background: radial-gradient(circle 770px at 0 100%, #121212 0, #1b1d14 48%, #2a2f17 75%, #3b431b 100%);
}
.fact-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 16px;
	width: 100%;
}
.cards--middle .fact-card__body { justify-content: center; }
.cards--center .fact-card__body { justify-content: center; align-items: center; text-align: center; padding-inline: 48px; }
/* Дві колонки: текст вужчий, як у макеті (320px). */
.cards--cols-2.cards--center .fact-card__body { padding-inline: max(48px, calc(50% - 160px)); }
.fact-card__item { display: flex; flex-direction: column; gap: 16px; }
.fact-card__title { font-size: 28px; line-height: 38px; font-weight: 500; color: var(--green-300); }
.cards--bottom .fact-card--accent .fact-card__title { color: var(--grey-50); }
.fact-card__text { color: var(--grey-100); }
.fact-card__item + .fact-card__divider + .fact-card__item .fact-card__text { color: var(--grey-50); }
.fact-card__divider { height: 1px; background: var(--grey-700); margin: -1px 0 0; }
.cards-section__note { padding-top: 32px; font-size: 13px; line-height: 20px; }

/* Steps row -------------------------------------------------------------- */
.steps-row__heading { padding-block: 0; }
.steps-row__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 32px;
	padding: 80px 0 0;
	list-style: none;
}
.steps-row__item { display: flex; align-items: center; gap: 32px; }
.steps-row .step__num { border-color: var(--green-500); color: var(--grey-50); }
.steps-row .step__title { color: var(--grey-50); }
.steps-row .step__text { color: var(--grey-100); }
.section--light.steps-row .step__num,
.section--light.steps-row .step__title { color: var(--grey-950); }
.section--light.steps-row .step__text { color: var(--grey-900); }

/* Кроки + зображення (MyGun) -------------------------------------------- */
.steps-media__body { display: flex; align-items: center; gap: 32px; margin-top: 32px; }
.steps-media__list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 80px 0;
	list-style: none;
}
.steps-media .section-heading__title,
.steps-media .section-heading__text { max-width: 1024px; }
.steps-media__media { flex: none; width: 55.56%; max-width: 622px; }
.steps-media__image { width: 100%; height: auto; }

/* Image banner ----------------------------------------------------------- */
.image-banner { background: var(--grey-950); overflow: hidden; }
.image-banner__inner { max-width: 1440px; margin-inline: auto; }
.image-banner__image {
	width: 100%;
	height: clamp(320px, 55.5vw, 800px);
	object-fit: cover;
}
/* Ширше за 1440px картинка не розтягується — розчиняємо її краї у фоні, щоб не було видно меж. */
@media (min-width: 1441px) {
	.image-banner__image {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	}
}

/* Features --------------------------------------------------------------- */
.features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 320px;
	padding: 32px;
	text-align: center;
	background: url("../img/feature-light.svg") center / 100% 100% no-repeat;
	transition: transform .5s var(--ease), filter .5s var(--ease);
}
.feature:hover { transform: translateY(-6px); }
.feature--dark { background-image: url("../img/feature-dark.svg"); }
.feature__title { font-size: 20px; line-height: 30px; font-weight: 600; color: var(--grey-950); }
.feature__accent { font-weight: 500; color: var(--green-300); margin-bottom: 8px; }
.feature__text { color: var(--grey-900); }
.feature--dark .feature__title { color: var(--grey-50); }
.feature--dark .feature__text { color: var(--grey-100); }
.section--dark .feature:not(.feature--dark) .feature__title { color: var(--grey-50); }
.section--dark .feature:not(.feature--dark) .feature__text { color: var(--grey-100); }

/* Media rows ------------------------------------------------------------- */
.media-rows__list { display: flex; flex-direction: column; gap: 64px; }
.media-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 32px;
}
/* Пропорції з макета: зображення 525, текст 563. */
.media-row { grid-template-columns: 525fr 563fr; }
.media-row--reverse { grid-template-columns: 563fr 525fr; }
.media-row--reverse .media-row__media { order: 2; }
.media-row__media {
	height: 540px;
	overflow: hidden;
	border: 1px solid var(--grey-900);
	border-radius: 4px;
}
.media-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.media-row:hover .media-row__media img { transform: scale(1.04); }
.media-row__content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.media-row__body { color: var(--grey-100); }
.media-row__content .btn { margin-top: 24px; }

.section--light .media-row__title { color: var(--grey-950); }
.section--light .media-row__body { color: var(--grey-900); }
.media-row__body > * + * { margin-top: 0; }
.media-row__body p + p { margin-top: 0; }
.media-row__body ul { margin: 8px 0; padding-left: 24px; }
.media-row__body p > strong:only-child {
	display: block;
	margin-top: 16px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
	color: var(--grey-950);
}
.section--dark .media-row__body p > strong:only-child { color: var(--grey-50); }
.media-row__body small { font-size: 13px; line-height: 20px; }

/* Ecosystem -------------------------------------------------------------- */
.eco__scheme {
	position: relative;
	width: 763px;
	max-width: 100%;
	height: 492px;
	margin: 32px auto 0;
}
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco__path {
	fill: none;
	stroke: var(--green-500);
	stroke-width: 2;
	stroke-dasharray: 6 6;
	animation: eco-flow 1.2s linear infinite;
}
@keyframes eco-flow { to { stroke-dashoffset: -24; } }
.eco__node {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	text-align: center;
	border: 1px solid var(--yellow-300);
	background: var(--grey-950);
	transition: box-shadow .3s, transform .3s var(--ease);
}
.eco__node:hover { box-shadow: 0 0 24px rgba(255, 216, 70, .25); transform: translateY(-2px); }
.eco__node--left { left: 0; top: 0; width: 174px; }
.eco__node--right { left: 487px; top: 0; width: 276px; }
.eco__node--center { left: 208px; top: 188px; width: 348px; }
.eco__node-title { font-size: 20px; line-height: 30px; font-weight: 600; color: var(--grey-50); }
.eco__result {
	position: absolute;
	left: 50%;
	top: 420px;
	width: 348px;
	transform: translateX(-50%);
	font-size: 28px;
	line-height: 38px;
	font-weight: 500;
	text-align: center;
}

/* CTA -------------------------------------------------------------------- */
.cta { padding: 120px var(--gutter); background: var(--grey-950); }
.cta__box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(var(--w-wide), 100%);
	min-height: 680px;
	margin-inline: auto;
	padding: 120px;
	background: url("../img/cta-shape.svg") center / 100% 100% no-repeat;
}
.cta__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: center;
}

/* Team slider ------------------------------------------------------------ */
.team__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}
.team__head .section-heading { padding-right: 40px; }
.slider-nav { display: flex; gap: 24px; flex: none; }
.slider-nav[hidden] { display: none; }
.slider-nav__btn {
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	padding: 0;
	border: 1px solid var(--grey-300);
	border-radius: 50%;
	transition: border-color .25s, background-color .25s, opacity .25s, transform .25s var(--ease);
}
.slider-nav__btn:hover:not(:disabled) { border-color: var(--green-300); background: rgba(210, 220, 122, .06); }
.slider-nav__btn:disabled { border-color: var(--grey-700); cursor: default; }
.slider-nav__btn:disabled img { opacity: .45; }
.slider-nav__btn img { transition: transform .3s var(--ease); }
[data-slider-prev]:hover:not(:disabled) img { transform: translateX(-3px); }
[data-slider-next]:hover:not(:disabled) img { transform: translateX(3px); }
[data-slider-prev] img { filter: brightness(2.5); }

.team__track {
	display: flex;
	gap: 32px;
	/* Виходимо за праву межу контейнера до краю вікна. */
	margin-right: calc((100vw - min(var(--w-content), 100vw - var(--gutter) * 2)) / -2);
	padding-right: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.team__track::-webkit-scrollbar { display: none; }
.member {
	flex: 0 0 360px;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
	color: var(--grey-100);
}
.member__photo {
	height: 456px;
	margin-bottom: 16px;
	overflow: hidden;
	background: var(--card);
}
.member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter .6s var(--ease), transform 1s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member__name { font-size: 28px; line-height: 38px; font-weight: 500; margin-bottom: 8px; transition: color .2s; }
.member:hover .member__name { color: var(--green-300); }

/* Team list -------------------------------------------------------------- */
.team-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}
.team-row + .team-row { margin-top: 32px; padding-top: 31px; border-top: 1px solid rgba(18, 18, 18, .1); }
.section--dark .team-row + .team-row { border-top-color: var(--grey-900); }
.team-row--reverse .team-row__photo { order: 2; }
.team-row__photo { display: block; aspect-ratio: 1; overflow: hidden; background: var(--grey-100); }
.team-row__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter .6s var(--ease), transform 1s var(--ease);
}
.team-row:hover .team-row__photo img { filter: grayscale(0); transform: scale(1.03); }
.team-row__content {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 16px 0 32px;
}
.team-row__name { font-size: 28px; line-height: 38px; font-weight: 500; color: var(--grey-900) !important; }
.section--dark .team-row__name { color: var(--grey-100) !important; }
.team-row__role { margin-top: 8px; margin-bottom: 24px; }

/* Trust ------------------------------------------------------------------ */
.trust__title {
	padding-block: 40px;
	margin-bottom: 24px;
	text-align: center;
}
.trust__groups { display: flex; flex-direction: column; gap: 64px; }
.trust-group { display: flex; flex-direction: column; gap: 24px; }
.trust-group__label {
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
}
.trust-group--list .trust-group__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.trust-group--logos .trust-group__items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 64px;
}
.trust-item { display: flex; align-items: flex-start; gap: 24px; }
.trust-group--logos .trust-item { align-items: center; }
.trust-group--logos .trust-item { height: 80px; }
.trust-item__logo { flex: none; width: 64px; height: 64px; transition: transform .4s var(--ease); }
.trust-item__logo img { width: 100%; height: 100%; object-fit: contain; }
a.trust-item:hover .trust-item__logo { transform: scale(1.08); }
.trust-item__text { display: flex; flex-direction: column; gap: 4px; }
.trust-item__title { font-size: 20px; line-height: 30px; font-weight: 500; color: var(--grey-50); }
a.trust-item:hover .trust-item__title { color: var(--green-300); }

/* Process ---------------------------------------------------------------- */
.process__inner { display: flex; gap: 32px; align-items: flex-start; }
.process__intro {
	flex: 0 0 calc(50% - 16px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	padding-right: 96px;
}
.process__intro .section-heading { padding-block: 0; }
.steps { flex: 1 1 0; list-style: none; padding: 0; }
.step { position: relative; display: flex; gap: 32px; }
.step:not(:last-child) { padding-bottom: 120px; }
.step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 31px;
	top: 64px;
	bottom: 0;
	width: 2px;
	background: var(--green-700);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 1s var(--ease-in-out) .3s;
}
.step.is-revealed::before { transform: scaleY(1); }
.step__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 2px solid var(--green-700);
	border-radius: 50%;
	font-size: 28px;
	line-height: 38px;
	font-weight: 500;
	color: var(--grey-950);
	transition: background-color .3s, color .3s;
}
.step:hover .step__num,
.steps-row__item:hover .step__num { background: var(--green-700); color: var(--grey-50); }
.step__title { font-size: 28px; line-height: 38px; font-weight: 500; color: var(--grey-950); }
.step__text { font-size: 13px; line-height: 20px; color: var(--grey-900); }

/* Contact section -------------------------------------------------------- */
.contact-section__title {
	margin-bottom: 40px;
	color: var(--grey-900) !important;
}
.contact-section__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}
.contact-section__subtitle { margin-bottom: 32px; font-size: 28px; line-height: 38px; color: var(--grey-900) !important; }
.contact-section__after { margin-top: 48px; color: var(--grey-900); }
.contact-section__after p + p { margin-top: 16px; }
.contact-section__after a { text-decoration: underline; text-underline-offset: 3px; }
.contact-section__after a:hover { color: var(--green-700); }

.call-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 549px;
	background: url("../img/call-card.svg") center / 100% 100% no-repeat;
}
.call-card__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	padding: 48px;
}
.call-card__title { font-size: 28px; line-height: 38px; color: var(--grey-50) !important; text-align: center; }
.call-card__text { color: var(--grey-100); }
.call-card__text ul { margin-top: 26px; padding-left: 24px; }

/* Member page ------------------------------------------------------------ */
.member-page { padding: calc(var(--header-h) + 80px) 0 80px; }
.member-page__grid {
	display: grid;
	grid-template-columns: 352px 1fr;
	gap: 40px 128px;
}
.member-page__photo { aspect-ratio: 352 / 470; overflow: hidden; background: var(--grey-100); }
.member-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.member-page__name { margin-top: 16px; color: var(--grey-900); }
.member-page__role { margin-top: 8px; }
.member-page__about { padding-top: 63px; }
.member-page__quote { position: relative; padding: 40px 0 0 41px; }
.member-page__quote::before {
	content: "";
	position: absolute;
	left: 0; top: 0;
	width: 205px; height: 138px;
	background: url("../img/quote.svg") center / contain no-repeat;
}
.member-page__quote p {
	position: relative;
	font-size: 38px;
	line-height: 48px;
	font-weight: 600;
	letter-spacing: .76px;
	color: var(--grey-900);
}
.member-page__bio { margin-top: 104px; }
.member-page__bio p + p { margin-top: 26px; }
.member-page__subtitle { margin-bottom: 24px; font-size: 20px; line-height: 30px; color: var(--grey-700); }

.contact-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list a:hover { color: var(--green-700); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.socials a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 0;
	font-size: 13px;
	line-height: 20px;
	font-weight: 500;
	color: #000;
	transition: opacity .2s;
}
.socials a:hover { opacity: .65; }

/* Content / default page -------------------------------------------------- */
.page-default__title { margin-bottom: 32px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 28px; line-height: 38px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; line-height: 30px; margin-top: 1.4em; }
.content-block .entry-content a,
.page-default .entry-content a { color: var(--green-300); text-decoration: underline; text-underline-offset: 3px; }
.section--light.content-block .entry-content a { color: var(--green-700); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: min(var(--w-wide), 100% - var(--gutter) * 2);
	margin-inline: auto;
	padding-block: 80px 24px;
}
.site-footer__top { display: flex; align-items: center; gap: 32px; }
.site-footer__heading { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.site-footer__actions { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.site-footer__bottom { display: flex; align-items: flex-start; gap: 80px; padding-block: 16px 24px; margin-bottom: -56px; }
.site-footer__logo img { width: 229px; height: 56px; }
.site-footer__cols { display: contents; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col__title { color: var(--green-300); text-transform: uppercase; white-space: nowrap; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
	display: block;
	padding: 11px 4px;
	color: var(--grey-100);
	white-space: nowrap;
	transition: color .2s, transform .3s var(--ease);
}
.footer-col a:hover { color: var(--green-300); transform: translateX(4px); }
.site-footer .lang-switcher { padding-inline: 12px; }
.site-footer__copy { font-size: 12px; line-height: 18px; color: var(--grey-50); }

/* CF7 form (світла форма «Написати нам») -------------------------------- */
.us-form { display: flex; flex-direction: column; gap: 48px; }
.us-form__fields { display: flex; flex-direction: column; gap: 8px; }
.us-field {
	display: flex;
	align-items: center;
	gap: 24px;
	border-bottom: 1px solid var(--grey-300);
	transition: border-color .25s;
}
.us-field:focus-within { border-color: var(--grey-950); }
.us-field .wpcf7-form-control-wrap { display: block; flex: 1; }
.us-field input,
.us-field textarea {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	color: var(--grey-950);
	outline: none;
	resize: none;
}
.us-field textarea { height: 50px; min-height: 50px; field-sizing: content; max-height: 200px; }
.us-field ::placeholder { color: var(--grey-900); opacity: 1; }
.us-field__label { flex: none; padding: 12px 0 12px 16px; color: var(--grey-900); }
.us-field--chips { padding-block: 12px; }
.us-field--chips .us-field__label { padding-block: 0; }
.us-field .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.us-field .wpcf7-list-item { margin: 0; }
.us-field .wpcf7-list-item label { position: relative; display: block; cursor: pointer; }
.us-field .wpcf7-list-item input { position: absolute; opacity: 0; pointer-events: none; }
.us-field .wpcf7-list-item-label {
	display: flex;
	align-items: center;
	height: 40px;
	padding-inline: 24px;
	font-size: 13px;
	line-height: 20px;
	color: var(--grey-950);
	background:
		url("../img/chip-light-l.svg") left center / 16px 100% no-repeat,
		url("../img/chip-light-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/chip-light-m.svg") center / calc(100% - 30px) 100% no-repeat;
	transition: color .2s, background-color .2s;
}
.us-field .wpcf7-list-item-label:hover { background-color: rgba(18, 18, 18, .05); }
.us-field input:checked + .wpcf7-list-item-label {
	color: var(--grey-50);
	background-color: var(--grey-950);
	clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.us-field input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--yellow-300); }

.us-form__submit { position: relative; display: flex; align-items: center; }
.us-form .wpcf7-submit {
	height: 56px;
	padding-inline: 24px;
	border: 0;
	font-weight: 600;
	letter-spacing: .2px;
	color: var(--grey-950);
	cursor: pointer;
	background:
		url("../img/btn-out-light-l.svg") left center / 16px 100% no-repeat,
		url("../img/btn-out-light-r.svg") right center / 14.4px 100% no-repeat,
		url("../img/btn-out-light-m.svg") center / calc(100% - 30px) 100% no-repeat;
	transition: background-color .25s, color .25s;
}
.us-form .wpcf7-submit:hover { background-color: var(--grey-950); color: var(--grey-50); }
.us-form .hidden-fields-container { display: none; }
.us-form .wpcf7-spinner {
	display: inline-block;
	visibility: hidden;
	width: 20px; height: 20px;
	margin: 0 0 0 16px;
	border: 2px solid var(--grey-100);
	border-top-color: var(--grey-950);
	border-radius: 50%;
	animation: spin .8s linear infinite;
}
.us-form.submitting .wpcf7-spinner { visibility: visible; }
@keyframes spin { to { transform: rotate(360deg); } }
.us-form .wpcf7-not-valid-tip { display: block; padding: 0 16px 8px; font-size: 12px; line-height: 18px; color: var(--error); }
.us-field:has(.wpcf7-not-valid) { border-color: var(--error); }
.us-form .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; font-size: 13px; line-height: 20px; border: 1px solid var(--grey-300) !important; }
.us-form.sent .wpcf7-response-output { border-color: var(--green-700) !important; color: var(--green-700); }
.us-form.invalid .wpcf7-response-output,
.us-form.failed .wpcf7-response-output { border-color: var(--error) !important; color: var(--error); }
.us-form.init .wpcf7-response-output,
.us-form.resetting .wpcf7-response-output,
.us-form.submitting .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; margin: -1px; overflow: hidden; }

/* Поля дати й часу, два в ряд */
.us-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.us-form__row .us-field { display: block; }
.us-form__row .us-field__label { display: block; padding: 8px 16px 0; font-size: 13px; line-height: 20px; }
.us-field select,
.us-field input[type="date"] {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	color: var(--grey-950);
	outline: none;
	cursor: pointer;
	appearance: none;
}
.us-field select {
	padding-right: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.6 5.6 9.2l1.4-1.4 5 5 5-5 1.4 1.4z' fill='%237a7a7a'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}

/* Modal ------------------------------------------------------------------ */
.modal {
	width: min(600px, 100% - 32px);
	max-height: calc(100svh - 32px);
	padding: 0;
	margin: auto;
	border: 0;
	background: transparent;
	color: var(--grey-100);
	overflow: visible;
}
.modal::backdrop {
	background: rgba(12, 15, 10, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in .45s var(--ease); }
.modal[open]::backdrop { animation: fade-in .3s ease; }
.modal.is-closing { animation: modal-out .25s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out .25s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal__box {
	position: relative;
	max-height: calc(100svh - 32px);
	overflow-y: auto;
	padding: 48px;
	background: url("../img/call-card.svg") center / 100% 100% no-repeat;
}
.modal__title { margin-bottom: 8px; padding-right: 40px; font-size: 28px; line-height: 38px; }
.modal__text { margin-bottom: 24px; }
.modal__close {
	position: absolute;
	top: 20px; right: 20px;
	width: 40px; height: 40px;
	color: var(--grey-100);
	transition: color .2s, transform .3s var(--ease);
}
.modal__close:hover { color: var(--yellow-300); transform: rotate(90deg); }
.modal__close span, .modal__close span::before {
	position: absolute; left: 10px; top: 19px;
	width: 20px; height: 2px;
	background: currentColor;
	transform: rotate(45deg);
}
.modal__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }

/* Форма в попапі — на темному фоні */
.modal .us-form { gap: 32px; }
.modal .us-field { border-bottom-color: var(--grey-700); }
.modal .us-field:focus-within { border-color: var(--green-300); }
.modal .us-field input,
.modal .us-field textarea,
.modal .us-field select { color: var(--grey-50); }
.modal .us-field ::placeholder,
.modal .us-field__label { color: var(--grey-100); }
.modal .us-field select option { color: var(--grey-950); }
.modal .us-field input[type="date"] { color-scheme: dark; }
.modal .us-form .wpcf7-submit {
	color: var(--grey-950);
	background: var(--yellow-300);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.modal .us-form .wpcf7-submit:hover { background-color: #ffe06b; color: var(--grey-950); }
.modal .us-form .wpcf7-spinner { border-color: var(--grey-700); border-top-color: var(--yellow-300); }
.modal .us-form .wpcf7-response-output { border-color: var(--grey-700) !important; }
.modal .us-form.sent .wpcf7-response-output { border-color: var(--green-300) !important; color: var(--green-300); }
.modal .us-form .wpcf7-not-valid-tip,
.modal .us-form.invalid .wpcf7-response-output,
.modal .us-form.failed .wpcf7-response-output { color: #ff8a80; border-color: #ff8a80 !important; }

@media (max-width: 600px) {
	.us-form__row { grid-template-columns: 1fr; }
	.modal__box { padding: 40px 24px 32px; }
}

/* 404 / archive ---------------------------------------------------------- */
.error-404 { text-align: center; }
.error-404 h1 { font-size: 120px; line-height: 1; color: var(--green-300); margin-bottom: 16px; }
.error-404 .btn { margin-top: 32px; }
.posts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.card { border: 1px solid var(--grey-900); background: var(--card); }
.card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 24px; }
.card__title { font-size: 20px; line-height: 30px; margin-bottom: 8px; }
.card__title a:hover { color: var(--green-300); }
.card__meta { font-size: 13px; color: var(--grey-300); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fade-up {
	from { opacity: 0; transform: translateY(32px); }
	to { opacity: 1; transform: none; }
}
@keyframes hero-media {
	from { opacity: 0; transform: scale(1.08); }
	to { opacity: 1; transform: scale(1); }
}

/* Hero: поява при завантаженні. */
.hero__anim { animation: fade-up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
.hero__media { animation: hero-media 1.6s var(--ease) both; }

/* Ширше за картинку — плавно гасимо її правий край. */
@media (min-width: 1441px) {
	.hero__media {
		-webkit-mask-image: linear-gradient(to left, transparent, #000 120px);
		mask-image: linear-gradient(to left, transparent, #000 120px);
	}
}

/* Поява блоків при скролі (лише коли працює JS). */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* Після появи повертаємо звичайні transition для hover-ефектів. */
.js .fact-card[data-reveal].is-revealed,
.js .feature[data-reveal].is-revealed { transition: opacity .9s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--reveal-delay, 0ms), 0ms, 0ms; }
.js .fact-card[data-reveal].is-revealed:hover,
.js .feature[data-reveal].is-revealed:hover { transform: translateY(-6px); }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
	:root { --section-py: 96px; }
	.site-footer__bottom { flex-wrap: wrap; gap: 48px; margin-bottom: 0; }
	.site-footer__logo { flex-basis: 100%; }
	.site-footer .lang-switcher { padding-inline: 0; }
	.cta__box { padding: 80px 48px; min-height: 560px; }
	.process__intro { padding-right: 32px; }
	.member-page__grid { column-gap: 64px; }
	.call-card__content { padding: 40px 32px; }
}

@media (max-width: 1100px) {
	:root { --header-h: 80px; }
	/* backdrop-filter створює containing block для fixed-панелі меню — вимикаємо. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 18, 18, .94); }
	.header-light .site-header { background: rgba(245, 245, 245, .96); }
	.site-header__inner { padding-block: 12px; }
	.site-logo img { width: 180px; height: 44px; }
	.menu-toggle { display: block; z-index: 2; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
		padding: 32px var(--gutter) 48px;
		background: var(--grey-950);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity .3s, transform .4s var(--ease), visibility .3s;
	}
	.header-light .site-nav { background: var(--grey-50); }
	.admin-bar .site-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.main-nav { width: 100%; }
	.main-nav > ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 14px 0; font-size: 22px; line-height: 30px; border-bottom: 1px solid var(--grey-900); }
	.header-light .main-nav a { border-bottom-color: var(--grey-100); }
	.main-nav a::after { display: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 16px; }
	.header-light .main-nav .sub-menu { background: none; }
	.main-nav .sub-menu a { padding: 12px 0; font-size: 18px; line-height: 26px; white-space: normal; }
	.main-nav > ul > .menu-item-has-children > a { padding-right: 0; }
	.main-nav > ul > .menu-item-has-children::before { display: none; }
	.lang-switcher, .custom-switcher { padding: 0; }

	.hero__media, .hero--simple .hero__media { left: 40%; width: 60%; }
	.hero::before { left: 0; width: 100%; background: linear-gradient(90deg, var(--grey-950) 35%, rgba(18, 18, 18, .2)); }

	.features__grid { grid-template-columns: repeat(2, 1fr); }
	.eco__scheme { transform: scale(.85); transform-origin: top center; margin-bottom: -74px; }
}

@media (max-width: 900px) {
	:root { --section-py: 72px; }
	h1 { font-size: 40px; line-height: 46px; }
	h2 { font-size: 32px; line-height: 40px; }
	.no-footer .page-intro__title { font-size: 32px; line-height: 40px; }

	.hero { align-items: flex-end; min-height: 100svh; }
	.hero__media, .hero--simple .hero__media { left: 0; width: 100%; height: 70%; }
	.hero::before { background: linear-gradient(0deg, var(--grey-950) 42%, rgba(18, 18, 18, .35) 100%); }
	.hero__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, max-content)); gap: 24px 40px; }
	.stat { min-width: 0; text-align: left; }

	.product, .product--reverse { grid-template-columns: 1fr; min-height: 0; }
	.product__media { order: -1; justify-self: center; width: 70%; height: auto; aspect-ratio: 560 / 540; }
	.product__content, .product--reverse .product__content { order: 2; padding: 24px 0 8px; }

	.cards, .cards--cols-2 { grid-template-columns: 1fr; }
	.fact-card { min-height: 420px; }
	.cards--short .fact-card { min-height: 240px; }
	.cards--center .fact-card__body,
	.cards--cols-2.cards--center .fact-card__body { padding-inline: 0; }

	.steps-row__list { grid-template-columns: 1fr; padding-top: 32px; }
	.steps-media__body { flex-direction: column; align-items: stretch; }
	.steps-media__list { padding-block: 0; }
	.steps-media__media { width: 100%; margin-inline: auto; }
	.steps-row__item { gap: 20px; }

	.features__grid { grid-template-columns: 1fr; }
	.feature { min-height: 260px; }

	.media-row, .media-row--reverse { grid-template-columns: 1fr; gap: 24px; }
	.media-row--reverse .media-row__media { order: 0; }
	.media-row__media { height: auto; aspect-ratio: 4 / 3; }
	.media-rows__list { gap: 56px; }

	/* Схема екосистеми на мобільних — вертикально. */
	.eco__scheme { transform: none; margin: 16px 0 0; width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 32px; }
	.eco__lines { display: none; }
	.eco__node, .eco__result { position: relative; left: auto; top: auto; transform: none; width: min(348px, 100%); }
	/* Порядок: My Gun ↓ UkropSync ↓ TacticMap ↓ результат. */
	.eco__node--left { order: 1; }
	.eco__node--center { order: 2; }
	.eco__node--right { order: 3; }
	.eco__result { order: 4; font-size: 22px; line-height: 30px; }
	/* Пунктирні зʼєднання зі стрілкою вниз між блоками. */
	.eco__node--center::before,
	.eco__node--right::before,
	.eco__result::before {
		content: "";
		position: absolute;
		left: 50%;
		top: -32px;
		width: 12px;
		height: 32px;
		transform: translateX(-50%);
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 32'%3E%3Cpath d='M6 0v25' stroke='%239FB032' stroke-width='2' stroke-dasharray='4 3'/%3E%3Cpath d='M1 25l5 6 5-6z' fill='%239FB032'/%3E%3C/svg%3E") center / 12px 32px no-repeat;
	}

	.cta { padding-block: 72px; }
	.cta__box { min-height: 420px; padding: 64px 24px; }

	.team__head { flex-direction: column; align-items: flex-start; gap: 0; }
	.team__head .section-heading { padding-right: 0; }
	.slider-nav { margin-bottom: 32px; }
	.slider-nav__btn { width: 56px; height: 56px; }
	.slider-nav__btn img { width: 40px; height: 40px; }
	.member { flex-basis: 280px; }
	.member__photo { height: 360px; }
	.member__name { font-size: 22px; line-height: 30px; }

	.team-row { grid-template-columns: 1fr; gap: 0; }
	.team-row--reverse .team-row__photo { order: 0; }
	.team-row__content { padding-bottom: 8px; }

	.trust-group--list .trust-group__items { grid-template-columns: 1fr; gap: 24px; }
	.trust-group--logos .trust-group__items { gap: 32px; }

	.process__inner { flex-direction: column; gap: 48px; }
	.process__intro { flex: none; width: 100%; padding-right: 0; }
	.step:not(:last-child) { padding-bottom: 56px; }
	.step { gap: 20px; }
	.step__title { font-size: 22px; line-height: 30px; }

	.contact-section__grid { grid-template-columns: 1fr; gap: 48px; }
	.call-card { min-height: 0; }

	.member-page__grid { grid-template-columns: 1fr; }
	.member-page__photo { max-width: 400px; }
	.member-page__about { padding-top: 0; }
	.member-page__quote::before { width: 140px; height: 94px; }
	.member-page__quote { padding: 28px 0 0 28px; }
	.member-page__quote p { font-size: 26px; line-height: 34px; }
	.member-page__bio { margin-top: 40px; }
	/* Відступ від шапки до контенту — 24px («Рішення», член команди). */
	.site-main > .page-intro--dark:first-child,
	.site-main > .member-page:first-child { padding-top: calc(var(--header-h) + 24px); }

	.site-footer { gap: 48px; padding-top: 64px; }
	.site-footer__top { flex-direction: column; align-items: flex-start; }
	.site-footer__actions { justify-content: flex-start; }
	.site-footer__bottom { gap: 32px; }

	.us-field { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
	h1 { font-size: 32px; line-height: 38px; }
	.no-footer .page-intro__title { font-size: 28px; line-height: 36px; }
	.stat__value { font-size: 30px; line-height: 38px; }
	.hero__buttons .btn { flex: 1 1 100%; }
	.site-footer__actions .btn { width: 100%; }
	.footer-col { min-width: calc(50% - 16px); }
	.call-card__content { padding: 48px 24px; }
}
