/*
Theme Name: My Hero
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-hero
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}
/* На оформлених сторінках секції на всю ширину стикуються впритул — ритм задають їхні власні відступи. */
.is-flush .wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

:root {
	--hero-navy: var(--wp--preset--color--navy);
	--hero-radius-pill: var(--wp--custom--rounded--pill);
	--hero-shadow-soft: var(--wp--preset--shadow--soft);
}

/* === buttons === */
/* Основа кнопки (градієнт, обводка, тіні, стани) — у theme.json styles.elements.button.
   Тут лише те, чого theme.json не вміє: рух, стрілка, неактивний стан, кольорові варіанти. */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	white-space: nowrap;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}
.wp-block-button__link::after {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: url("assets/img/arrow-right.svg") center / contain no-repeat;
	transition: transform 180ms ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button__link:active { transform: translateY(3px); }
.wp-block-button__link[aria-disabled="true"] {
	background: linear-gradient(180deg, #D9E1EA 0%, #CBD5E1 52%, #B8C4D3 100%);
	border-color: #9CAFC5;
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), 0 3px 0 #A4B0C0;
	cursor: not-allowed;
	opacity: 0.8;
	transform: none;
}

/* Синя кнопка: та сама конструкція, інші кольори; іконка людини замість стрілки. */
.is-style-blue .wp-block-button__link {
	background: var(--wp--preset--gradient--sky);
	border-color: #9CC5FF;
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.45), inset 0 -2px 0 rgba(0,30,90,0.18), 0 4px 0 #003FA8, 0 9px 18px rgba(0,96,240,0.22);
}
.is-style-blue .wp-block-button__link:hover {
	background: var(--wp--preset--gradient--sky-hover);
	border-color: #C2DCFF;
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.6), 0 6px 0 #0050C8, 0 12px 23px rgba(0,96,240,0.28);
}
.is-style-blue .wp-block-button__link:active {
	background: linear-gradient(180deg, #0055D6 0%, #0047B8 100%);
	box-shadow: inset 0 2px 5px rgba(0,20,70,0.3), 0 1px 0 #00307E;
}
/* Іконка людини — лише для «Мій герой» у хедері; інші сині кнопки зі стрілкою. */
.site-header__hero-btn .wp-block-button__link::after {
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21c.6-4.4 4-7 8.5-7s7.9 2.6 8.5 7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21c.6-4.4 4-7 8.5-7s7.9 2.6 8.5 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-header__hero-btn .wp-block-button__link:hover::after { transform: none; }

/* === header === */
.site-header {
	padding-block: 6px;
	position: relative;
	z-index: 20;
}
.site-header__bar { gap: 24px; }

/* Логотип дизайнера (блок «Логотип сайту»): трохи «виходить» за смугу хедера, як наліпка. */
.site-header__logo { margin: 0; flex-shrink: 0; line-height: 0; }
.site-header__logo img {
	width: 190px;
	height: auto;
	filter: drop-shadow(0 4px 8px rgba(10, 32, 96, 0.16));
	transition: transform 200ms ease;
}
.site-header__logo a:hover img { transform: rotate(-2deg) scale(1.03); }

.site-nav-pill {
	gap: 4px;
	padding: 6px 8px;
	background: var(--wp--preset--color--white);
	border-radius: var(--hero-radius-pill);
	box-shadow: var(--hero-shadow-soft);
}
.site-nav .wp-block-navigation-item__content {
	display: block;
	padding: 8px 14px;
	border-radius: var(--hero-radius-pill);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--hero-navy);
	text-decoration: none;
	transition: background-color 150ms ease;
}
.site-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--cream); }
.site-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--sun-soft); }
.site-nav .wp-block-navigation__container { gap: 2px; flex-wrap: nowrap; }
.site-nav .wp-block-navigation-item__label { white-space: nowrap; }

/* Кнопка пошуку — проста іконка, без «пригодницького» оформлення кнопок. */
.site-search .wp-block-search__button {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--hero-navy);
	padding: 8px;
	min-height: 0;
	margin: 0;
}
.site-search .wp-block-search__button:hover { background: var(--wp--preset--color--cream); border-radius: var(--hero-radius-pill); }
.site-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.site-search .wp-block-search__input {
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--hero-radius-pill);
	padding: 6px 14px;
	font-family: inherit;
}

.site-header__hero-btn .wp-block-button__link { min-height: 44px; padding: 9px 20px; }

/* === covers === */
/* Блок «Обкладинка» сам фарбує текст у #000 / #fff і перебиває кольори теми — повертаємо палітру. */
.wp-block-cover.is-light .wp-block-cover__inner-container { color: var(--wp--preset--color--ink); }
.wp-block-cover.is-light .wp-block-heading { color: var(--hero-navy); }

/* === hero === */
/* На головній хедер лежить поверх ілюстрації hero, як у макеті. */
.home .site-header,
.single-post .site-header,
.blog .site-header,
.archive .site-header,
.post-type-archive-product .site-header,
.page-template-page-no-title .site-header {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
}
.site-hero.wp-block-cover {
	padding-top: 150px;
	padding-bottom: 28px;
	align-items: flex-end;
}
.site-hero .wp-block-cover__image-background { object-position: center bottom; }
.site-hero__cols { gap: 24px; margin: 0; }
.site-hero__title {
	margin: 0;
	font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--hero-navy);
	transform: rotate(-3deg);
	transform-origin: left center;
	/* Біла «наліпкова» обводка літер, як на макеті. */
	text-shadow:
		3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff,
		2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff,
		0 10px 22px rgba(10, 32, 96, 0.18);
}
.site-hero__title strong {
	display: block;
	color: var(--wp--preset--color--primary);
	font-weight: 800;
}
.site-hero__lead {
	max-width: 34ch;
	margin-top: 22px;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--hero-navy);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.site-hero__actions { margin-top: 26px; }
.site-hero__actions .wp-block-button__link { font-size: 1.125rem; padding: 14px 30px; min-height: 54px; }
.site-hero__kids { margin: 0; }
/* Сцени героїв лежать одна на одній; без JS видно лише першу. */
.hero-slides { display: grid; align-items: end; justify-items: center; }
.hero-slides > .site-hero__kids { grid-area: 1 / 1; margin: 0; }
.hero-slides > .site-hero__kids + .site-hero__kids { display: none; }
.hero-slides.is-slideshow > .site-hero__kids {
	display: block;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.hero-slides.is-slideshow > .site-hero__kids.is-active { opacity: 1; }
.site-hero__kids img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 500px;
	margin-inline: auto;
	filter: drop-shadow(0 14px 18px rgba(10, 32, 96, 0.18));
}
@media (min-width: 782px) {
	/* Текст першим у DOM (для читачів екрана й SEO), а на десктопі — праворуч, як у макеті. */
	.site-hero__cols { flex-direction: row-reverse; }
	/* Текст зсунуто правіше, на чисте жовте тло (відгук дизайнера: текст наїжджав на картинку). */
	.site-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
	.site-hero__text { padding-left: clamp(24px, 6vw, 120px); }
	.site-hero__art { flex-basis: 44% !important; }
	/* Більше жовтого під текстом: м'яка жовта смуга поверх краю села, хмарки внизу лишаються. */
	.site-hero.wp-block-cover::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(255, 235, 145, 0) 36%, rgba(255, 235, 145, 0.92) 50%, rgba(255, 235, 145, 0.92) 64%, rgba(255, 235, 145, 0) 76%);
		-webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 86%);
		mask-image: linear-gradient(180deg, #000 68%, transparent 86%);
	}
}
@media (max-width: 781px) {
	.site-hero.wp-block-cover { padding-top: 104px; padding-bottom: 12px; min-height: 0 !important; }
	.site-hero .wp-block-cover__image-background { object-position: 72% bottom; }
	.site-hero__text { text-align: center; }
	.site-hero__title { transform: rotate(-2deg); transform-origin: center; }
	.site-hero__lead { margin-inline: auto; font-size: 1.0625rem; }
	.site-hero__actions { justify-content: center; }
	.site-hero__kids img { max-height: 340px; }
}

/* === menu icons === */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.site-menu-icons { padding-block: 4px 44px; }
.site-menu-icons__grid.wp-block-group { gap: 12px; }

.is-style-menu-tile {
	position: relative;
	gap: 4px;
	padding: 6px 4px 8px;
	border-radius: var(--wp--custom--rounded--md);
	text-align: center;
	transition: background-color 160ms ease;
}
.is-style-menu-tile:hover { background: var(--wp--preset--color--background); }
.is-style-menu-tile:focus-within { outline: 3px solid #0757C6; outline-offset: 2px; }
.is-style-menu-tile .wp-block-image { margin: 0 0 4px; }
.is-style-menu-tile .wp-block-image img {
	display: block;
	filter: drop-shadow(0 6px 10px rgba(10, 32, 96, 0.12));
	transition: transform 200ms ease;
}
.is-style-menu-tile:hover .wp-block-image img { transform: translateY(-4px) rotate(-3deg); }
.menu-tile__title {
	margin: 0;
	font-weight: 800;
	font-size: 0.96875rem;
	line-height: 1.2;
}
.menu-tile__title a { color: var(--hero-navy); text-decoration: none; }
.menu-tile__title a:focus { outline: none; }
/* Уся плитка — одне посилання (посилання в назві розтягнуте на плитку). */
.menu-tile__title a::after { content: ""; position: absolute; inset: 0; }
.menu-tile__sub {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--muted);
}

/* Зірочки між плитками, кольори чергуються як на макеті. */
.is-style-menu-tile + .is-style-menu-tile::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 34px;
	width: 14px;
	height: 14px;
	transform: translateX(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23FFC72C' stroke-width='2.2' stroke-linejoin='round' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}
.is-style-menu-tile:nth-child(3n)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23FF4734' stroke-width='2.2' stroke-linejoin='round' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E"); }
.is-style-menu-tile:nth-child(3n+1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232E9E3E' stroke-width='2.2' stroke-linejoin='round' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E"); }

@media (max-width: 1000px) {
	.site-menu-icons__grid.wp-block-group { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; row-gap: 20px; }
	.is-style-menu-tile:nth-child(4n+1)::before { display: none; }
}
@media (max-width: 600px) {
	.site-menu-icons { padding-block: 16px 32px; }
	.site-menu-icons__grid.wp-block-group { gap: 14px 4px; }
	.is-style-menu-tile .wp-block-image img { width: 60px !important; }
	.menu-tile__title { font-size: 0.8125rem; }
	.menu-tile__sub { font-size: 0.6875rem; }
	.is-style-menu-tile + .is-style-menu-tile::before { display: none; }
}

/* === meet the heroes === */
/* Надзаголовок секції (червоний, над h2) — спільний для всіх секцій. */
.section-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--rubik);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--primary);
}
.site-meet.wp-block-cover { padding-block: 64px 56px; }
.site-meet .wp-block-cover__image-background { object-position: right center; }
.site-meet__text { padding-left: clamp(24px, 7vw, 110px); }
.site-meet__title {
	margin: 4px 0 0;
	font-size: clamp(1.875rem, 0.9rem + 2.4vw, 2.875rem);
	line-height: 1.05;
}
.site-meet__lead {
	max-width: 40ch;
	margin-top: 14px;
	font-weight: 600;
	line-height: 1.55;
}
.site-meet__actions { margin-top: 22px; }
/* Фрагмент з дітьми потрібен лише на телефоні: на десктопі діти вже є на фоні секції. */
.site-meet__kids { display: none; margin: 0; }
@media (max-width: 1000px) {
	.site-meet__cols { flex-direction: column !important; }
	.site-meet__text, .site-meet__art { flex-basis: 100% !important; width: 100%; }
	.site-meet.wp-block-cover {
		min-height: 0 !important;
		padding-block: 44px 36px;
		background-color: var(--wp--preset--color--cream);
		border-radius: 48px 48px 0 0 / 28px 28px 0 0;
	}
	.site-meet .wp-block-cover__image-background { display: none; }
	.site-meet__text { padding-left: 0; text-align: center; }
	.site-meet__lead { margin-inline: auto; }
	.site-meet__actions { justify-content: center; }
	.site-meet__kids { display: block; }
	.site-meet__kids { max-width: 640px; margin-inline: auto; }
	.site-meet__kids img { display: block; width: 100%; border-radius: 28px; }
}

/* === atlas === */
.site-atlas { padding-block: 56px 32px; }
.site-atlas__head { margin-bottom: 24px; gap: 12px 24px; flex-wrap: nowrap !important; }
.site-atlas__head > .site-atlas__heading { flex: 1 1 auto; min-width: 0; }
.site-atlas__heading { gap: 6px 14px; }
.site-atlas__icon { margin: 0; }
.site-atlas__title { margin: 0; font-size: var(--wp--preset--font-size--headline); }
.site-atlas__sub { margin: 0; font-weight: 700; color: var(--wp--preset--color--muted); }

/* «Усі …  →» — посилання праворуч від заголовка секції. */
.section-more { margin: 0; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.section-more a { color: var(--wp--preset--color--blue); text-decoration: none; }
.section-more a::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 6px;
	vertical-align: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 160ms ease;
}
.section-more a:hover::after { transform: translateX(3px); }

/* Стрілки слайдера (додає site.js) */
.atlas-controls { display: flex; gap: 8px; margin-left: auto; }
.atlas-controls__btn {
	width: 42px;
	height: 42px;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: var(--hero-shadow-soft);
	cursor: pointer;
	position: relative;
	transition: transform 160ms ease, background-color 160ms ease;
}
.atlas-controls__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	background: var(--hero-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.atlas-controls__btn.is-prev::before { transform: scaleX(-1); }
.atlas-controls__btn:hover { background: var(--wp--preset--color--cream); transform: translateY(-2px); }
.atlas-controls__btn:focus-visible { outline: 3px solid #0757C6; outline-offset: 3px; }

/* Стрічка карток: на головній — слайдер (4 видно), на сторінці атласу — сітка. */
.atlas-track { position: relative; }
.site-atlas .atlas-track,
.atlas-page .atlas-track { max-width: var(--wp--style--global--wide-size); }
@media (min-width: 782px) {
	.site-atlas .atlas-track {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		padding: 4px 4px 18px;
		margin-inline: -4px;
	}
	.site-atlas .atlas-track::-webkit-scrollbar { display: none; }
	.site-atlas .atlas-track > * { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	.site-atlas .atlas-track > * { flex-basis: calc((100% - 40px) / 3); }
}
@media (min-width: 782px) {
	.atlas-page .atlas-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
.atlas-track > * { margin-block-start: 0 !important; }

/* Картка світу */
[class*="is-style-world-"] {
	--w-soft: #FFF1EC;
	container-type: inline-size;
	gap: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--w-soft);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
[class*="is-style-world-"]:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 32, 96, 0.14); }
.is-style-world-green { --w-soft: #EEF9EC; }
.is-style-world-orange { --w-soft: #FFF5E4; }
.is-style-world-purple { --w-soft: #F4EDFF; }
.is-style-world-blue { --w-soft: #EAF3FF; }
.is-style-world-teal { --w-soft: #E4F7F7; }

.world-card__art.wp-block-cover {
	/* Явна ширина: інакше у flex-колонці Chrome рахує пропорцію від ширини заголовка. */
	width: 100%;
	aspect-ratio: 1 / 1;
	min-height: 0;
	flex-shrink: 0;
	padding: 10.5% 15% 0;
	align-items: flex-start;
}
.world-card__art .wp-block-cover__image-background { object-position: center top; }
/* Назва — точно в центрі сувою: внутрішній контейнер накрито на «полотно» сувою (однакове на всіх 6 ілюстраціях). */
.world-card__art.wp-block-cover { position: relative; }
.world-card__art .wp-block-cover__inner-container {
	position: absolute;
	top: 9.5%;
	height: 22%;
	left: 15%;
	right: 15%;
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}
.world-card__art .world-card__title { width: 100%; margin: 0 !important; }
.world-card__title {
	margin: 0;
	/* Розмір від ширини картки: назва завжди вміщається в сувій. */
	font-size: clamp(0.8125rem, 7.4cqi, 1.375rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.world-card__body { gap: 6px; padding: 16px 18px 18px; flex-grow: 1; }
.world-card__body > p {
	margin: 0;
	padding-left: 26px;
	position: relative;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
}
.world-card__body > p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	background: var(--w, var(--wp--preset--color--primary));
	-webkit-mask: var(--w-icon) center / contain no-repeat;
	mask: var(--w-icon) center / contain no-repeat;
}
.world-card__topic { --w-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E"); }
.world-card__age { --w-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21c.6-4.4 4-7 8.5-7s7.9 2.6 8.5 7z'/%3E%3C/svg%3E"); }
.world-card__stats { --w-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4 3 6.2v14L9 18l6 2 6-2.2v-14L15 6 9 4zm1 2.3 4 1.3v11.1l-4-1.3V6.3z'/%3E%3C/svg%3E"); }
/* WordPress обнуляє margin дітей flex-розкладки — тому !important, щоб кнопка трималась низу картки. */
.world-card__body > .world-card__actions { margin-top: auto !important; padding-top: 10px; }
.world-card__actions .wp-block-button__link { font-size: 0.9375rem; min-height: 44px; padding: 10px 16px; }

/* Кнопка кольору світу: та сама «пригодницька» конструкція, інші кольори. */
.is-style-world-red { --w: #FF4734; }
.is-style-world-green { --w: #2E9E3E; --b-top: #5BCB67; --b-mid: #2E9E3E; --b-bot: #23852F; --b-line: #B6EBAE; --b-sole: #1C6E27; }
.is-style-world-orange { --w: #F08A00; --b-top: #FFC14D; --b-mid: #FF9A1F; --b-bot: #F07F00; --b-line: #FFE3A6; --b-sole: #B95C00; }
.is-style-world-purple { --w: #8A4FD8; --b-top: #BE92F2; --b-mid: #9B5DE5; --b-bot: #8044D0; --b-line: #DCC8FA; --b-sole: #5E2CA3; }
.is-style-world-blue { --w: #0060F0; --b-top: #3D8BFF; --b-mid: #0060F0; --b-bot: #004FD0; --b-line: #9CC5FF; --b-sole: #003FA8; }
.is-style-world-teal { --w: #0E9C9C; --b-top: #3FCACA; --b-mid: #12A8A8; --b-bot: #0A8A8A; --b-line: #A6EAEA; --b-sole: #066464; }
[class*="is-style-world-"]:not(.is-style-world-red) .wp-block-button__link {
	background: linear-gradient(180deg, var(--b-top) 0%, var(--b-mid) 52%, var(--b-bot) 100%);
	border-color: var(--b-line);
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.12), 0 4px 0 var(--b-sole), 0 9px 18px rgba(10,32,96,0.16);
}
[class*="is-style-world-"]:not(.is-style-world-red) .wp-block-button__link:hover {
	filter: brightness(1.08) saturate(1.05);
	box-shadow: inset 0 2px 0 rgba(255,255,255,0.65), 0 6px 0 var(--b-sole), 0 12px 23px rgba(10,32,96,0.2);
}
[class*="is-style-world-"]:not(.is-style-world-red) .wp-block-button__link:active {
	filter: brightness(0.94);
	box-shadow: inset 0 2px 5px rgba(0,0,0,0.25), 0 1px 0 var(--b-sole);
}

/* Сторінка «Атлас пригод» */
.atlas-page { padding-block: 132px 72px; }
@media (min-width: 600px) and (max-width: 960px) { .atlas-page { padding-top: 196px; } }
.atlas-page__title { margin: 4px 0 0; font-size: var(--wp--preset--font-size--display); }
.atlas-page__lead { max-width: 56ch; margin: 14px auto 36px; font-weight: 600; }
.atlas-page .section-eyebrow { margin: 0; }

/* Телефон: без слайдера, усі 6 світів сіткою 2 × 3, спрощений текст. */
@media (max-width: 781px) {
	.site-atlas { padding-block: 40px 48px; }
	.site-atlas__sub { flex-basis: 100%; font-size: 0.9375rem; }
	.atlas-controls { display: none; }
	.atlas-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.atlas-page .atlas-track { gap: 14px 12px; }
	.world-card__art.wp-block-cover { padding: 10% 12% 0; }
	.world-card__topic { display: none; }
	.world-card__body { padding: 10px 10px 12px; gap: 4px; }
	.world-card__body > p { font-size: 0.75rem; padding-left: 20px; }
	.world-card__body > p::before { width: 14px; height: 14px; }
	.world-card__actions .wp-block-button__link { font-size: 0.8125rem; min-height: 38px; padding: 7px 8px; gap: 6px; white-space: normal; }
	.world-card__actions .wp-block-button__link::after { width: 16px; height: 16px; flex-basis: 16px; }
	.atlas-page { padding-block: 100px 48px; }
}

/* === how it works === */
.site-how { padding-block: 0 28px; }
.site-how__panel {
	/* Компактно (відгук дизайнера): вужча панель, менші відступи. */
	max-width: 1080px;
	margin-inline: auto !important;
	padding: 16px clamp(18px, 3vw, 36px) 18px;
	border-radius: var(--wp--custom--rounded--lg);
}
.site-how__heading { gap: 10px; margin-bottom: 10px; }
.site-how__gear { margin: 0; }
.site-how__title { margin: 0; font-size: clamp(1.375rem, 1rem + 0.8vw, 1.75rem); }
.site-how__gear img { width: 32px !important; }
.site-how__steps.wp-block-group { gap: 24px 48px; }
.is-style-how-step { position: relative; gap: 6px; text-align: center; justify-content: flex-start !important; }
.how-step__media { gap: 8px; height: 58px; }
.how-step__icon img { max-height: 54px; width: auto !important; }
.how-step__num img { width: 42px !important; }
.how-step__media .wp-block-image { margin: 0; }
.how-step__media img { display: block; filter: drop-shadow(0 4px 8px rgba(10, 32, 96, 0.14)); }
.how-step__label {
	margin: 0;
	max-width: 18ch;
	font-weight: 800;
	font-size: 0.9375rem;
	line-height: 1.25;
	color: var(--hero-navy);
}
/* Пунктирна стрілка між кроками — декор теми. */
.is-style-how-step + .is-style-how-step::before {
	content: "";
	position: absolute;
	left: -69px;
	top: 18px;
	width: 90px;
	height: 22px;
	background: url("assets/img/how-arrow.webp") center / contain no-repeat;
	pointer-events: none;
}
@media (max-width: 1000px) {
	.site-how__steps.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.is-style-how-step:nth-child(odd)::before { display: none; }
}
@media (max-width: 600px) {
	.site-how__steps.wp-block-group { gap: 22px 12px; }
	.is-style-how-step::before { display: none; }
	.how-step__num img { width: 40px !important; }
	.how-step__icon img { max-height: 54px; }
	.how-step__media { height: 58px; }
	.how-step__label { font-size: 0.875rem; }
}

/* === new map banner === */
.site-newmap { padding-block: 0 40px; }
.map-banner.wp-block-cover {
	min-height: 0;
	aspect-ratio: 1882 / 511;
	padding: 2% 3% 1.5% 8.5%;
	align-items: stretch;
}
.map-banner .wp-block-cover__image-background { object-fit: fill; }
.map-banner .wp-block-cover__inner-container { display: flex; align-items: stretch; }
.map-banner__cols { width: 100%; gap: 12px; margin: 0; }
.map-banner__title {
	margin: 0;
	font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem);
	line-height: 1;
	color: var(--wp--preset--color--primary) !important;
	transform: rotate(-3deg);
	transform-origin: left center;
	text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
}
.map-banner__subtitle {
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--rubik);
	font-weight: 800;
	font-size: clamp(1.125rem, 0.85rem + 0.8vw, 1.5rem);
	line-height: 1.2;
	color: var(--wp--preset--color--primary-dark);
	transform: rotate(-2deg);
	transform-origin: left center;
}
/* Більший і жирніший опис (відгук дизайнера: погано видно). */
.map-banner__lead { margin: 12px 0 0; max-width: 32ch; font-size: clamp(1rem, 0.85rem + 0.35vw, 1.1875rem); font-weight: 700; line-height: 1.4; color: var(--hero-navy); }
.map-banner__actions { margin-top: 14px; }
.map-banner__img { margin: 0; }
.map-banner__img img { display: block; width: 100%; height: auto; }
/* Середні екрани: тексту не вистачає місця в жорсткій пропорції — банер росте у висоту,
   пергамент тягнеться під нього (object-fit: fill), ілюстрація лишається пропорційною. */
@media (min-width: 782px) and (max-width: 1199px) {
	.map-banner.wp-block-cover { aspect-ratio: auto; padding: 44px 3% 28px 10%; }
	.map-banner__cols { align-items: center !important; }
}
@media (max-width: 781px) {
	.map-banner.wp-block-cover {
		aspect-ratio: auto;
		padding: 28px 20px 16px;
		background: var(--wp--preset--color--cream);
		border-radius: var(--wp--custom--rounded--lg);
	}
	.map-banner .wp-block-cover__image-background { display: none; }
	.map-banner__text { text-align: center; }
	.map-banner__title, .map-banner__subtitle { transform-origin: center; }
	.map-banner__lead { margin-inline: auto; }
	.map-banner__actions { justify-content: center; }
}

/* === YouTube button (youtube-button-spec.md) === */
.is-style-youtube { position: relative; margin-inline: 52px; }
.is-style-youtube::before,
.is-style-youtube::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 50px;
	height: 70px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 84'%3E%3Cg stroke-linecap='round'%3E%3Cg stroke='%23FFF7CC' stroke-width='16'%3E%3Cpath d='M44 22 22 9M40 42H14M44 62 22 75'/%3E%3C/g%3E%3Cg stroke='%23FFCF21' stroke-width='8'%3E%3Cpath d='M44 22 22 9M40 42H14M44 62 22 75'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}
.is-style-youtube::before { left: -56px; }
.is-style-youtube::after { right: -56px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 84'%3E%3Cg stroke-linecap='round'%3E%3Cg stroke='%23FFF7CC' stroke-width='16'%3E%3Cpath d='M16 22 38 9M20 42h26M16 62l22 13'/%3E%3C/g%3E%3Cg stroke='%23FFCF21' stroke-width='8'%3E%3Cpath d='M16 22 38 9M20 42h26M16 62l22 13'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.is-style-youtube .wp-block-button__link {
	position: relative;
	gap: 12px;
	min-height: 66px;
	padding: 0 36px;
	border: 0;
	background: linear-gradient(180deg, #FF6A3D 0%, #FF2F16 45%, #E90F0F 100%);
	font-size: 1.4375rem;
	text-shadow: 0 2px 0 rgba(180, 20, 20, 0.24);
	box-shadow:
		0 0 0 6px #fff,
		0 8px 0 10px #D8C9C9,
		0 16px 26px rgba(160, 120, 120, 0.28),
		inset 0 3px 0 rgba(255, 255, 255, 0.35),
		inset 0 -5px 0 rgba(164, 0, 0, 0.18);
}
/* Глянець зверху */
.is-style-youtube .wp-block-button__link::before {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	top: 6px;
	height: 38%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.25) 60%, rgba(255,255,255,0) 100%);
	pointer-events: none;
}
/* Біла стрілка-шеврон замість звичайної */
.is-style-youtube .wp-block-button__link::after {
	flex-basis: 22px;
	width: 22px;
	height: 22px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-youtube .wp-block-button__link:hover {
	background: linear-gradient(180deg, #FF7A4D 0%, #FF3A20 45%, #F01515 100%);
	transform: translateY(-1px) scale(1.01);
	filter: saturate(1.03) brightness(1.02);
	box-shadow:
		0 0 0 6px #fff,
		0 9px 0 10px #DDD0D0,
		0 18px 30px rgba(160, 120, 120, 0.32),
		inset 0 3px 0 rgba(255, 255, 255, 0.4),
		inset 0 -5px 0 rgba(164, 0, 0, 0.2);
}
.is-style-youtube .wp-block-button__link:active {
	transform: translateY(2px) scale(0.995);
	box-shadow:
		0 0 0 6px #fff,
		0 5px 0 8px #D7C8C8,
		0 10px 18px rgba(160, 120, 120, 0.24),
		inset 0 2px 0 rgba(255, 255, 255, 0.25),
		inset 0 -3px 0 rgba(164, 0, 0, 0.22);
}
.is-style-youtube .wp-block-button__link:focus-visible { outline: 4px solid rgba(255, 208, 0, 0.95); outline-offset: 10px; }

/* === YouTube banner === */
.site-youtube { padding-block: 0 40px; }
.yt-banner.wp-block-cover {
	min-height: 0;
	aspect-ratio: 1920 / 615;
	padding: 2% 2.5% 0 4.5%;
	align-items: stretch;
	overflow: visible;
}
.yt-banner .wp-block-cover__image-background { object-fit: fill; }
.yt-banner .wp-block-cover__inner-container { display: flex; align-items: stretch; }
.yt-banner__cols { width: 100%; gap: 8px; margin: 0; }
.yt-banner__text { padding-bottom: 3%; }
.yt-banner__title {
	margin: 0;
	font-size: clamp(2rem, 0.9rem + 2.6vw, 3.375rem);
	line-height: 0.98;
	letter-spacing: -0.01em;
	color: #FFC21A !important;
	text-shadow:
		3px 0 0 var(--hero-navy), -3px 0 0 var(--hero-navy), 0 3px 0 var(--hero-navy), 0 -3px 0 var(--hero-navy),
		2px 2px 0 var(--hero-navy), -2px -2px 0 var(--hero-navy), 2px -2px 0 var(--hero-navy), -2px 2px 0 var(--hero-navy),
		0 7px 0 #fff, 0 9px 16px rgba(10, 32, 96, 0.25);
	transform: rotate(-2deg);
	transform-origin: left center;
}
.yt-banner__title strong { display: block; font-weight: 800; color: var(--wp--preset--color--primary); }
.yt-banner__lead {
	max-width: 24ch;
	margin: 18px 0 0;
	padding: 8px 14px;
	border-radius: var(--wp--custom--rounded--md);
	background: rgba(255, 255, 255, 0.85);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.3;
	color: var(--hero-navy);
}
.yt-banner__actions { margin-top: 26px; }
.yt-banner__kids-img, .yt-banner__videos-img, .yt-banner__mobile-img { margin: 0; }
.yt-banner__kids-img img, .yt-banner__videos-img img, .yt-banner__mobile-img img { display: block; width: 100%; height: auto; }
.yt-banner__mobile-img { display: none; }
@media (min-width: 782px) and (max-width: 1199px) {
	.yt-banner.wp-block-cover { aspect-ratio: auto; padding: 32px 2.5% 0 4.5%; }
	.yt-banner__text { flex-basis: 40% !important; }
	.yt-banner__kids { flex-basis: 28% !important; }
	.yt-banner__videos { flex-basis: 32% !important; }
	.is-style-youtube { margin-inline: 40px 0; }
	.is-style-youtube .wp-block-button__link { font-size: 1.125rem; min-height: 54px; padding: 0 24px; }
}
@media (max-width: 781px) {
	.yt-banner.wp-block-cover {
		aspect-ratio: auto;
		padding: 30px 18px 0;
		border-radius: var(--wp--custom--rounded--lg);
		overflow: hidden;
	}
	.yt-banner .wp-block-cover__image-background { object-fit: cover; }
	.yt-banner__text { text-align: center; padding-bottom: 0; }
	.yt-banner__title { transform-origin: center; }
	.yt-banner__lead { margin-inline: auto; }
	.yt-banner__actions { justify-content: center; }
	.yt-banner__kids, .yt-banner__videos-img { display: none; }
	.yt-banner__mobile-img { display: block; max-width: 380px; margin: 8px auto 0; }
	.is-style-youtube { margin-inline: 40px; }
	.is-style-youtube::before, .is-style-youtube::after { width: 36px; height: 52px; }
	.is-style-youtube::before { left: -42px; }
	.is-style-youtube::after { right: -42px; }
	.is-style-youtube .wp-block-button__link {
		font-size: 1.125rem;
		min-height: 54px;
		padding: 0 22px;
		box-shadow: 0 0 0 5px #fff, 0 6px 0 8px #D8C9C9, 0 12px 20px rgba(160, 120, 120, 0.28), inset 0 2px 0 rgba(255,255,255,0.35), inset 0 -4px 0 rgba(164,0,0,0.18);
	}
}

/* === shop banner (шари дизайнера з папки «магазин») === */
.site-shop { padding-block: 0 48px; }
/* Висота — від вмісту (тексту й категорій), пастельне тло тягнеться під нього. */
.shop-banner.wp-block-cover {
	min-height: 440px;
	padding: 40px 28px 28px 5%;
	align-items: stretch;
}
.shop-banner .wp-block-cover__image-background { object-fit: fill; }
.shop-banner .wp-block-cover__inner-container { display: flex; align-items: stretch; }
.shop-banner__cols { width: 100%; gap: 16px; margin: 0; }
.shop-banner__title {
	margin: 0;
	font-size: clamp(2.25rem, 0.8rem + 3.2vw, 4rem);
	line-height: 0.95;
	letter-spacing: -0.015em;
	text-shadow: 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 0 8px 18px rgba(10, 32, 96, 0.15);
	transform: rotate(-2deg);
	transform-origin: left center;
}
.shop-banner__title strong { display: block; font-weight: 800; color: var(--wp--preset--color--primary); }
.shop-banner__lead { max-width: 30ch; margin: 16px 0 0; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--hero-navy); }
.shop-banner__lead strong { color: var(--wp--preset--color--primary); }
.shop-banner__actions { margin-top: 18px; }
.shop-cats.wp-block-group {
	gap: 2px;
	margin-top: 22px;
	padding: 10px 6px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 6px 18px rgba(155, 93, 229, 0.12);
}
.shop-cats .is-style-menu-tile::before { display: none; }
.shop-cats .is-style-menu-tile:hover { background: transparent; }
.shop-cats .menu-tile__title { font-size: 0.78125rem; font-weight: 700; }

/* Праворуч: сцена бібліотеки-саду, поверх — товари. */
.shop-banner__art { display: grid; align-self: stretch !important; }
.shop-banner__art > figure { grid-area: 1 / 1; margin: 0; }
.shop-banner__scene { height: 100%; }
.shop-banner__scene img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	border-radius: 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.shop-banner__products { align-self: end; justify-self: center; width: 94%; position: relative; }
.shop-banner__products img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(10, 32, 96, 0.18)); }

@media (min-width: 782px) and (max-width: 1199px) {
	.shop-banner.wp-block-cover { padding: 32px 2.5% 24px 4%; }
	.shop-banner__text { flex-basis: 46% !important; }
	.shop-banner__art { flex-basis: 54% !important; }
}
@media (max-width: 781px) {
	.shop-banner.wp-block-cover {
		min-height: 0;
		padding: 28px 14px 14px;
		border-radius: var(--wp--custom--rounded--lg);
		overflow: hidden;
	}
	.shop-banner .wp-block-cover__image-background { object-fit: cover; }
	.shop-banner__text { text-align: center; }
	.shop-banner__title { transform-origin: center; }
	.shop-banner__lead { margin-inline: auto; }
	.shop-banner__actions { justify-content: center; }
	.shop-cats.wp-block-group { padding: 8px 2px; }
	.shop-cats .is-style-menu-tile .wp-block-image img { width: 44px !important; }
	.shop-cats .menu-tile__title { font-size: 0.6875rem; }
	.shop-banner__scene, .shop-banner__scene img { height: auto; }
	.shop-banner__scene img { -webkit-mask-image: none; mask-image: none; }
}

/* === promo cards (video, shop) === */
.site-promos { padding-block: 0 48px; }
.site-promos__cols { gap: 24px; margin: 0; }
.is-style-promo-card {
	height: 100%;
	gap: 12px;
	padding: 24px 20px 0 28px;
	border-radius: var(--wp--custom--rounded--lg);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
}
.promo-card__text { gap: 8px; flex: 1 1 52%; padding-bottom: 24px; }
.promo-card__title { margin: 0; font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); line-height: 1.05; }
.has-pink-soft-background-color .promo-card__title { color: var(--wp--preset--color--primary); }
.promo-card__lead { margin: 0 0 6px; font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.promo-card__img { margin: 0; flex: 0 1 46%; align-self: flex-end; }
.promo-card__img img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; object-position: bottom; }

/* === news + gallery === */
.site-updates { padding-block: 0 64px; }
.site-updates__cols { gap: 40px; margin: 0; }
@media (max-width: 1100px) {
	.site-updates__cols { flex-wrap: wrap !important; }
	.site-updates__cols > .wp-block-column { flex-basis: 100% !important; }
}
.section-head { gap: 16px; margin-bottom: 16px; }
.section-head__title { margin: 0; font-size: clamp(1.375rem, 0.9rem + 0.9vw, 1.75rem); line-height: 1.15; }
.section-head__title::before {
	content: "";
	display: inline-block;
	width: 30px;
	height: 30px;
	margin-right: 10px;
	vertical-align: -5px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--head-icon) center / contain no-repeat;
	mask: var(--head-icon) center / contain no-repeat;
}
.section-head { --head-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E"); }
.section-head.is-news { --head-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h3l5 4V6L6 10H3zm13.5 2a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E"); }
.section-head.is-gallery { --head-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4 7.2 6H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.2L15 4H9zm3 4.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E"); }
.section-head.is-gallery .section-head__title::before { background: var(--wp--preset--color--blue); }

.news-list .wp-block-post-template { gap: 16px; }
.news-list .wp-block-post {
	overflow: hidden;
	border-radius: var(--wp--custom--rounded--md);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 200ms ease;
}
.news-list .wp-block-post:hover { transform: translateY(-3px); }
.news-card__img { margin: 0; }
/* Кадрування від верху: голови героїв (і людей на фото) лишаються в кадрі. */
.news-card__img img { display: block; object-fit: cover; object-position: 50% 8%; }
.news-card__date { text-transform: lowercase; margin: 10px 12px 0; font-size: 0.75rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.news-card__title { margin: 2px 12px 14px; font-size: 0.9375rem; line-height: 1.25; }
.news-card__title a { color: var(--hero-navy); text-decoration: none; }
.news-card__title a:hover { color: var(--wp--preset--color--primary); }

/* Галерея: перше фото велике ліворуч, решта — 2 × 2 праворуч. */
.events-gallery.wp-block-gallery.has-nested-images {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	grid-auto-rows: 104px;
	gap: 10px;
}
.events-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	border-radius: var(--wp--custom--rounded--md);
	overflow: hidden;
}
.events-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:first-child { grid-row: span 2; }
.events-gallery.wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

@media (max-width: 781px) {
	.site-promos { padding-block: 0 32px; }
	.is-style-promo-card { flex-direction: column; align-items: stretch; padding: 22px 20px 0; text-align: center; }
	.promo-card__text { align-items: center; padding-bottom: 8px; }
	.promo-card__text .wp-block-buttons { justify-content: center; }
	.promo-card__img { align-self: center; }
	.promo-card__img img { max-height: 180px; }
	.news-list .wp-block-post-template { grid-template-columns: 1fr !important; }
	.news-list .wp-block-post { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
	.news-card__img { grid-row: span 2; height: 100%; }
	.news-card__img img { height: 100% !important; }
	.news-card__title { margin-bottom: 10px; }
	.events-gallery.wp-block-gallery.has-nested-images { grid-auto-rows: 84px; }
}

/* === single post (новина) === */
.post-hero { padding-block: 132px 0; border-radius: 0 0 48px 48px / 0 0 28px 28px; }
.post-back { margin: 0 0 14px; font-weight: 800; font-size: 0.9375rem; }
.post-back a { color: var(--wp--preset--color--blue); text-decoration: none; }
.post-back a::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("assets/img/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/img/arrow-right.svg") center / contain no-repeat;
	transform: scaleX(-1);
}
.post-meta { gap: 8px; margin-bottom: 10px; }
.post-meta__date, .post-meta__cats {
	margin: 0;
	padding: 4px 12px;
	border-radius: var(--wp--custom--rounded--pill);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
}
.post-meta__date { text-transform: lowercase; background: var(--wp--preset--color--white); color: var(--wp--preset--color--primary); }
.post-meta__cats { background: var(--wp--preset--color--sun-soft); color: var(--hero-navy); }
.post-meta__cats a { color: inherit; text-decoration: none; }
.post-hero__title { margin: 0; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.08; }
/* Фото новини: картка, що «виходить» за межу кремової смуги. */
.post-hero__image {
	margin-top: 28px !important;
	margin-bottom: -64px !important;
	position: relative;
	overflow: hidden;
	border: 6px solid #fff;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--wp--preset--color--sky-soft);
	box-shadow: 0 16px 36px rgba(10, 32, 96, 0.16);
}
.post-hero__image img { display: block; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 25%; }
.post-body { padding-block: 104px 72px; }
.post-body .wp-block-post-content { font-size: 1.1875rem; line-height: 1.7; }
.post-body .wp-block-post-content > p:first-child { font-size: 1.3125rem; font-weight: 700; color: var(--hero-navy); }
.post-body .wp-block-post-content :where(h2, h3) { margin-top: 1.6em; }
.post-body .wp-block-post-content img { border-radius: var(--wp--custom--rounded--md); }
.post-nav {
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 2px dashed rgba(10, 32, 96, 0.12);
}
.post-nav__link { flex: 1 1 260px; margin: 0; }
.post-nav__link.is-next { text-align: right; }
.post-nav__link a {
	display: block;
	padding: 14px 18px;
	border-radius: var(--wp--custom--rounded--md);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
	font-weight: 800;
	color: var(--hero-navy);
	text-decoration: none;
	transition: transform 180ms ease;
}
.post-nav__link a:hover { transform: translateY(-2px); color: var(--wp--preset--color--primary); }
.post-nav__link .post-navigation-link__label {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}
.post-actions { margin-top: 32px; }
@media (min-width: 600px) and (max-width: 960px) { .post-hero { padding-top: 200px; } }
@media (max-width: 599px) {
	.post-hero { padding-top: 100px; }
	.post-hero__image { margin-bottom: -40px !important; border-width: 4px; }
	.post-body .wp-block-post-content > p:first-child { margin-top: 0; }
	.post-body { padding-block: 68px 48px; }
	.post-body .wp-block-post-content { font-size: 1.0625rem; }
	.post-body .wp-block-post-content > p:first-child { font-size: 1.1875rem; }
	.post-nav__link.is-next { text-align: left; }
}

/* Оформлення тексту новини: підзаголовки, списки-зірочки, цитата, примітка, фото з підписом. */
.post-body .wp-block-post-content h2 {
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	padding-left: 16px;
	border-left: 6px solid var(--wp--preset--color--sun);
	line-height: 1.2;
}
.post-body .wp-block-post-content ul.wp-block-list { list-style: none; padding-left: 0; }
.post-body .wp-block-post-content ul.wp-block-list li { position: relative; padding-left: 32px; margin-block: 8px; }
.post-body .wp-block-post-content ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--sun);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.post-body .wp-block-post-content ol.wp-block-list { list-style: none; counter-reset: step; padding-left: 0; }
.post-body .wp-block-post-content ol.wp-block-list li { counter-increment: step; position: relative; padding-left: 46px; margin-block: 12px; min-height: 32px; }
.post-body .wp-block-post-content ol.wp-block-list li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -1px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--gradient--adventure);
	color: #fff;
	font-family: var(--wp--preset--font-family--rubik);
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 3px 0 #CA251E;
}
.post-body .wp-block-quote {
	margin: 32px 0;
	padding: 22px 26px 20px 64px;
	position: relative;
	border: 0;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--wp--preset--color--sky-soft);
}
.post-body .wp-block-quote::before {
	content: "«";
	position: absolute;
	left: 18px;
	top: 4px;
	font-family: var(--wp--preset--font-family--rubik);
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--blue);
}
.post-body .wp-block-quote p { margin: 0; font-family: var(--wp--preset--font-family--rubik); font-size: 1.3125rem; font-weight: 700; line-height: 1.35; color: var(--hero-navy); }
.post-body .wp-block-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 0.9375rem; color: var(--wp--preset--color--blue); }
.post-body .wp-block-quote cite::before { content: "— "; }
.post-body .wp-block-image { margin-block: 32px; }
.post-body .wp-block-image img { width: 100%; max-height: 460px; object-fit: contain; background: var(--wp--preset--color--sky-soft); }
.post-body .wp-block-image figcaption { margin-top: 10px; text-align: center; font-size: 0.9375rem; font-weight: 700; color: var(--wp--preset--color--muted); }
.is-style-note {
	position: relative;
	margin-block: 32px !important;
	padding: 18px 22px 18px 62px;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--wp--preset--color--cream);
	border: 2px dashed var(--wp--preset--color--sun);
}
.is-style-note::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 18px;
	width: 28px;
	height: 28px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-note p { margin: 0; font-weight: 800; color: var(--hero-navy); }
.post-body .wp-block-post-content > .wp-block-buttons { margin-top: 28px; }

/* === news archive (сторінка «Новини» = сторінка записів) === */
.news-hero { padding-block: 140px 56px; border-radius: 0 0 48px 48px / 0 0 28px 28px; }
.news-hero .section-eyebrow { margin: 0; }
.news-hero__title { margin: 4px 0 0; font-size: var(--wp--preset--font-size--display); }
.news-hero__lead { max-width: 46ch; margin: 12px auto 0; font-weight: 700; font-size: 1.0625rem; }
.news-archive { padding-block: 48px 72px; }
.news-list--archive .wp-block-post-template { gap: 28px; }
.news-list.news-list--archive .wp-block-post { display: flex; flex-direction: column; text-align: left; }
.news-list.news-list--archive .news-card__img { grid-row: auto; height: auto; }
.news-list.news-list--archive .news-card__img img { height: auto !important; }
.news-list--archive .news-card__date { margin: 14px 18px 0; font-size: 0.8125rem; }
.news-list--archive .news-card__title { margin: 4px 18px 0; font-size: 1.25rem; line-height: 1.2; }
.news-card__excerpt { margin: 8px 18px 20px; font-size: 0.9375rem; line-height: 1.5; color: var(--wp--preset--color--ink); }
.news-card__excerpt p { margin: 0; }
.news-pagination { margin-top: 40px; gap: 8px; font-weight: 800; }
.news-pagination a, .news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--wp--custom--rounded--pill);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--hero-navy);
	text-decoration: none;
}
.news-pagination .page-numbers.current { background: var(--wp--preset--color--sun-soft); }
.news-pagination a:hover { color: var(--wp--preset--color--primary); }
@media (max-width: 1000px) { .news-list--archive .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 600px) and (max-width: 960px) { .news-hero { padding-top: 200px; } }
@media (max-width: 599px) {
	.news-hero { padding-block: 104px 36px; }
	.news-archive { padding-block: 32px 48px; }
	.news-list--archive .wp-block-post-template { grid-template-columns: 1fr !important; gap: 18px; }
	.news-list--archive .wp-block-post { display: flex; }
	.news-list--archive .news-card__img { height: auto; }
}

/* === shop catalog (WooCommerce) === */
.shop-hero { padding-block: 132px 36px; border-radius: 0 0 48px 48px / 0 0 28px 28px; }
.shop-hero__crumbs { font-size: 0.8125rem; font-weight: 700; color: var(--wp--preset--color--muted); text-align: center; }
.shop-hero__crumbs a { color: var(--wp--preset--color--blue); text-decoration: none; }
.shop-hero__title { margin: 6px 0 0; font-size: var(--wp--preset--font-size--display); color: var(--wp--preset--color--primary); }
.shop-hero__lead { max-width: 52ch; margin: 10px auto 0; font-weight: 700; }
.shop-hero__lead p { margin: 0; }
.shop-cats--page.wp-block-group { max-width: 560px; margin: 22px auto 0 !important; }
.shop-catalog { padding-block: 32px 72px; }
.shop-toolbar { margin-bottom: 18px; gap: 12px; align-items: center; font-weight: 700; color: var(--wp--preset--color--muted); }
.shop-toolbar p { margin: 0; }
.shop-toolbar select {
	padding: 8px 36px 8px 14px;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--rounded--pill);
	background-color: var(--wp--preset--color--white);
	font: inherit;
	font-weight: 700;
	color: var(--hero-navy);
}
/* Картка товару */
.shop-grid .wc-block-product-template { gap: 24px !important; }
.shop-grid .wc-block-product {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 16px;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.shop-grid .wc-block-product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 32, 96, 0.14); }
.shop-grid .wc-block-components-product-image { margin: 0 0 10px; border-radius: var(--wp--custom--rounded--md); overflow: hidden; background: #FFF7FB; }
.shop-grid .wc-block-components-product-image img { transition: transform 300ms ease; }
.shop-grid .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.product-card__title { margin: 0 0 4px !important; font-size: 1.0625rem !important; line-height: 1.25 !important; }
.product-card__title a { color: var(--hero-navy); text-decoration: none; }
.product-card__title a:hover { color: var(--wp--preset--color--primary); }
.product-card__price { margin: 0 0 12px !important; font-family: var(--wp--preset--font-family--rubik); font-size: 1.25rem !important; font-weight: 800; color: var(--wp--preset--color--primary); }
.product-card__button { margin: auto 0 0 !important; }
.product-card__button .wp-block-button__link { font-size: 0.9375rem !important; min-height: 44px; padding: 10px 18px; }
.product-card__button .added_to_cart { display: block; margin-top: 8px; font-weight: 800; font-size: 0.875rem; color: var(--wp--preset--color--blue); text-decoration: none; }
@media (min-width: 600px) and (max-width: 960px) { .shop-hero { padding-top: 200px; } }
@media (max-width: 599px) {
	.shop-hero { padding-block: 100px 28px; }
	.shop-catalog { padding-block: 24px 48px; }
	.shop-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
	.shop-grid .wc-block-product { padding: 8px 8px 12px; }
	.product-card__title { font-size: 0.875rem !important; }
	.product-card__price { font-size: 1.0625rem !important; }
	.product-card__button .wp-block-button__link { font-size: 0.75rem !important; padding: 8px 10px; gap: 4px; white-space: normal; }
	.product-card__button .wp-block-button__link::after { display: none; }
}

/* Доставку Новою Поштою оплачує отримувач, тож WooCommerce-ове «Безкоштовно» біля способів доставки
   й у підсумку вводить в оману — ховаємо вартість доставки (самовивіз і так безкоштовний). */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.wc-block-components-totals-shipping .wc-block-components-totals-item__value { display: none; }

/* Сторінка товару */
.single-product .wp-block-post-title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.single-product .wp-block-woocommerce-product-price { font-family: var(--wp--preset--font-family--rubik); font-size: 1.75rem !important; font-weight: 800; color: var(--wp--preset--color--primary); }
.single-product .woocommerce-product-gallery__image img,
.single-product .wc-block-components-product-image img { border-radius: var(--wp--custom--rounded--lg); background: #FFF7FB; }
.single-product .quantity .qty {
	min-height: 44px;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--rounded--pill);
	text-align: center;
	font-weight: 800;
}
.single-product .wp-block-post-terms a { color: var(--wp--preset--color--blue); font-weight: 700; text-decoration: none; }

/* Шапка сторінки оформлення замовлення */
.site-header--checkout { padding-block: 10px; border-bottom: 2px dashed rgba(10, 32, 96, 0.08); }
.site-header--checkout .site-header__logo img { width: 150px; }
.checkout-back { margin: 0; font-weight: 800; }
.checkout-back a { color: var(--wp--preset--color--blue); text-decoration: none; }
.checkout-back a::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("assets/img/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/img/arrow-right.svg") center / contain no-repeat;
	transform: scaleX(-1);
}
@media (max-width: 599px) { .site-header--checkout .site-header__logo img { width: 104px; } }

/* Кошик у хедері */
.site-header__end { gap: 10px; }
.site-cart .wc-block-mini-cart__button {
	width: 46px;
	height: 46px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: var(--hero-shadow-soft);
	color: var(--hero-navy);
}
.site-cart .wc-block-mini-cart__button:hover { background: var(--wp--preset--color--cream); }
.site-cart .wc-block-mini-cart__amount { display: none; }
.site-cart .wc-block-mini-cart__badge { background: var(--wp--preset--color--primary); color: #fff; font-weight: 800; }

/* === inner pages: шапка сторінки === */
.page-hero { padding-block: 148px 0; border-radius: 0 0 48px 48px / 0 0 28px 28px; overflow: hidden; }
.page-hero--text { padding-bottom: 48px; }
.page-hero__cols { gap: 24px; margin: 0; }
.page-hero__text { padding-bottom: 40px; }
.page-hero .section-eyebrow { margin: 0; }
.page-hero__title { margin: 6px 0 0; font-size: clamp(2.125rem, 1.2rem + 3vw, 3.75rem); line-height: 1.02; letter-spacing: -0.015em; }
.page-hero__lead { max-width: 46ch; margin: 14px 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: var(--hero-navy); }
.page-hero__actions { margin-top: 22px; }
.page-hero__img { margin: 0; }
.page-hero__img img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 16px rgba(10, 32, 96, 0.15)); }
.page-hero--icon .page-hero__img img { max-height: 200px; margin-bottom: 40px; }
/* Сторінка світу: картинка-картка світу і колір світу */
.world-hero .page-hero__img img { max-height: 400px; margin-bottom: 36px; border-radius: var(--wp--custom--rounded--lg); box-shadow: 0 16px 32px rgba(10, 32, 96, 0.18); object-fit: cover; aspect-ratio: 4 / 5; width: auto; margin-inline: auto; }
.world-hero--red { --w: #FF4734; }
.world-hero--green { --w: #2E9E3E; }
.world-hero--orange { --w: #F08A00; }
.world-hero--purple { --w: #8A4FD8; }
.world-hero--blue { --w: #0060F0; }
.world-hero--teal { --w: #0E9C9C; }
.world-hero .page-hero__title { color: var(--w); }
.fact-chips { gap: 8px; margin-top: 18px; }
.fact-chip {
	margin: 0;
	padding: 6px 14px;
	border-radius: var(--wp--custom--rounded--pill);
	background: var(--wp--preset--color--white);
	box-shadow: var(--hero-shadow-soft);
	font-weight: 800;
	font-size: 0.875rem;
	color: var(--hero-navy);
}
.badge-soon {
	align-self: flex-start;
	margin: 0;
	padding: 4px 12px;
	border-radius: var(--wp--custom--rounded--pill);
	background: var(--wp--preset--color--sun-soft);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hero-navy);
}
.page-hero .badge-soon { display: inline-block; margin-top: 16px; }

/* === inner pages: секції === */
.page-section { padding-block: 56px 32px; }
.page-section--soft { padding-block: 48px; }
.section-sub { margin: -6px 0 22px; font-weight: 700; color: var(--wp--preset--color--muted); }
.cards-grid.wp-block-group { gap: 22px; }
.is-style-info-card {
	position: relative;
	gap: 8px;
	padding: 22px 22px 24px;
	border-radius: var(--wp--custom--rounded--lg);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
	border-top: 6px solid var(--w, var(--wp--preset--color--sun));
	transition: transform 200ms ease;
}
.is-style-info-card:hover { transform: translateY(-3px); }
.info-card--red { --w: #FF4734; } .info-card--green { --w: #2E9E3E; } .info-card--orange { --w: #F08A00; }
.info-card--purple { --w: #8A4FD8; } .info-card--blue { --w: #0060F0; } .info-card--teal { --w: #0E9C9C; }
.info-card__icon { margin: 0 0 4px; }
.info-card__icon img { display: block; filter: drop-shadow(0 6px 10px rgba(10, 32, 96, 0.12)); }
.info-card__title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.info-card__text { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.is-style-info-card .section-more { margin-top: auto; padding-top: 6px; }
.is-style-info-card .badge-soon { position: absolute; top: 18px; right: 18px; }

/* Картки героїв */
.is-style-hero-profile {
	gap: 4px;
	padding: 20px 20px 26px;
	border-radius: var(--wp--custom--rounded--lg);
	background: linear-gradient(180deg, var(--wp--preset--color--cream) 0%, var(--wp--preset--color--white) 55%);
	box-shadow: var(--wp--preset--shadow--card);
	text-align: center;
}
.hero-profile__img { margin: 0 0 10px; }
.hero-profile__img img { display: block; height: 240px; width: auto; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(10, 32, 96, 0.16)); }
.hero-profile__name { margin: 0; font-size: 1.75rem; color: var(--wp--preset--color--primary); }
.hero-profile__role { margin: 0; font-weight: 800; color: var(--hero-navy); }
.hero-profile__text { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.5; }
.values-grid.wp-block-group { gap: 12px; }
.values-grid .is-style-menu-tile::before { display: none; }
.values-grid .menu-tile__title { font-size: 1rem; }
.cta-box { padding: 36px 24px; border-radius: var(--wp--custom--rounded--lg); background: var(--wp--preset--color--cream); }
.cta-box h2 { margin: 0 0 18px; }

@media (max-width: 1000px) {
	.cards-grid.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.values-grid.wp-block-group { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 600px) and (max-width: 960px) { .page-hero { padding-top: 196px; } }
@media (max-width: 781px) {
	.page-hero__cols { flex-direction: column; }
	.page-hero__text { text-align: center; padding-bottom: 8px; }
	.page-hero__lead { margin-inline: auto; }
	.page-hero__actions, .fact-chips { justify-content: center; }
	.page-hero__img img { max-height: 280px; margin-inline: auto; }
	.world-hero .page-hero__img img { max-height: 300px; }
}
@media (max-width: 599px) {
	.page-hero { padding-top: 100px; }
	.page-section { padding-block: 40px 20px; }
	.cards-grid.wp-block-group { grid-template-columns: 1fr !important; }
	.heroes-grid.wp-block-group { grid-template-columns: 1fr !important; }
	.values-grid.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* === footer === */
.site-footer {
	padding-block: 36px 20px;
	border-top: 3px dashed rgba(255, 71, 52, 0.18);
}
.site-footer__social { gap: 24px; }
.site-footer__intro { gap: 4px; }
.site-footer__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--headline);
	padding-left: 44px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF4734' d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.2 0 3.6 1.3 5.3 3.2 1.7-1.9 3.1-3.2 5.3-3.2 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") left center / 32px no-repeat;
}
.site-footer__lead { margin: 0; padding-left: 44px; }

.site-footer__links.wp-block-social-links { gap: 12px 20px; }
.site-footer__links .wp-block-social-link-anchor {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0;
	text-decoration: none;
}
.site-footer__links .wp-block-social-link-anchor svg {
	box-sizing: content-box;
	width: 26px;
	height: 26px;
	padding: 13px;
	background: var(--wp--preset--color--white);
	border-radius: 50%;
	box-shadow: var(--hero-shadow-soft);
	transition: transform 180ms ease;
}
.site-footer__links .wp-block-social-link-anchor:hover svg { transform: translateY(-3px) rotate(-4deg); }
.site-footer__links .wp-block-social-link-label {
	font-size: 0.8125rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--hero-navy);
	white-space: nowrap;
}

/* Профілі ще не підключені (Facebook, TikTok): іконка лишається, але неактивна — без вигаданих адрес. */
.site-footer__links .wp-social-link a[href="#"] { pointer-events: none; cursor: default; }
.site-footer__links .wp-social-link a[href="#"] svg { opacity: 0.45; filter: grayscale(0.6); box-shadow: none; }
.site-footer__links .wp-social-link a[href="#"] .wp-block-social-link-label { opacity: 0.55; }

.site-footer__bottom {
	margin-top: 28px;
	padding-top: 14px;
	border-top: 1px solid rgba(10, 32, 96, 0.08);
	gap: 8px 24px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal a { color: inherit; }
.site-footer__legal a:hover { color: var(--wp--preset--color--primary); }

/* === responsive === */
@media (max-width: 1100px) {
	.site-nav .wp-block-navigation-item__content { padding: 8px 9px; font-size: 0.875rem; }
	.site-header__bar { gap: 16px; }
	.site-header__logo img { width: 160px; }
}
@media (max-width: 960px) {
	.site-header__bar { flex-wrap: wrap !important; }
	.site-nav-pill { order: 3; flex-basis: 100%; }
}
/* Хедер у два рядки (лого+кнопка, під ними меню) — hero відступає нижче. */
@media (min-width: 600px) and (max-width: 960px) {
	.site-hero.wp-block-cover { padding-top: 200px; }
}
@media (max-width: 599px) {
	.site-header__bar { flex-wrap: nowrap !important; gap: 10px; }
	.site-header__logo img { width: 104px; }
	.site-nav-pill { order: 0; flex-basis: auto; padding: 4px; }
	.site-header__hero-btn .wp-block-button__link { padding: 8px 12px; font-size: 0; gap: 0; }
	.site-header__hero-btn .wp-block-button__link::after { width: 22px; height: 22px; flex-basis: 22px; }
	.site-nav .wp-block-navigation__responsive-container-open { padding: 8px; color: var(--hero-navy); }
	.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
	.site-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }
	.site-footer__links.wp-block-social-links { justify-content: center; gap: 18px 8px; }
	.site-footer__links .wp-social-link { flex: 0 0 calc(33.333% - 8px); }
	.site-footer__links .wp-block-social-link-label { font-size: 0.75rem; white-space: normal; text-align: center; }
	.site-footer__social { justify-content: center !important; }
	.site-footer__title { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-block-button__link::after,
	.site-footer__links .wp-block-social-link-anchor svg,
	.site-header__logo img,
	.site-nav .wp-block-navigation-item__content { transition: none; }
	.wp-block-button__link:hover,
	.wp-block-button__link:active,
	.site-footer__links .wp-block-social-link-anchor:hover svg,
	.is-style-menu-tile:hover .wp-block-image img { transform: none; }
	.is-style-menu-tile .wp-block-image img { transition: none; }
	[class*="is-style-world-"], .atlas-controls__btn, .section-more a::after { transition: none; }
	[class*="is-style-world-"]:hover, .atlas-controls__btn:hover { transform: none; }
	.news-list .wp-block-post { transition: none; }
	.is-style-youtube .wp-block-button__link:hover, .is-style-youtube .wp-block-button__link:active { transform: none; }
	.news-list .wp-block-post:hover { transform: none; }
	.site-atlas .atlas-track { scroll-behavior: auto; }
}

/* === polish: tablets / large phones === */
@media (min-width: 600px) and (max-width: 781px) {
	.atlas-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.atlas-page .atlas-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 600–700px: повне меню (ще без «бургера») ледь не вміщається — щільніші пункти. */
@media (min-width: 600px) and (max-width: 700px) {
	.site-nav .wp-block-navigation-item__content { padding: 7px 6px; font-size: 0.8125rem; }
	.site-nav-pill { padding: 5px 6px; }
}
/* Найвужчі телефони (≤420px): заголовок атласу на всю ширину, кнопки карток в один рядок. */
@media (max-width: 420px) {
	.site-atlas__head { flex-wrap: wrap !important; }
	.site-atlas__head > .site-atlas__heading { flex-basis: 100%; }
	.world-card__actions .wp-block-button__link { white-space: nowrap; font-size: 0.75rem; padding-inline: 6px; }
	.world-card__actions .wp-block-button__link::after { display: none; }
}
/* Телефон: заголовок секції і «Усі …» — у два рядки, зірочка не відривається від заголовка. */
@media (max-width: 599px) {
	.section-head { flex-wrap: wrap !important; row-gap: 4px; }
	.section-head__title { white-space: normal; }
	.section-head__title::before { width: 24px; height: 24px; margin-right: 8px; vertical-align: -3px; }
}

/* === polish pass: дизайн-рев'ю головної (13.10) ===
   Єдиний ритм секцій, однакові заголовки секцій, повітря в картках, без «висячих» слів. */
h1, h2, h3, .wp-block-heading { text-wrap: balance; }

/* Ритм: 40px між секціями, 56px перед футером; без «дірки» під іконками-меню. */
.site-menu-icons { padding-block: 4px 12px; }
.site-atlas { padding-block: 44px 40px; }
.site-how, .site-newmap, .site-youtube, .site-shop { padding-block: 0 40px; }
.site-updates { padding-block: 8px 56px; }

/* Заголовки секцій — один розмір. */
.site-atlas__title, .site-how__title, .section-head__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.site-how__gear img { width: 36px !important; }
/* Підзаголовок атласу — під заголовком, а не губиться в рядку. */
.site-atlas__heading { flex-wrap: wrap !important; row-gap: 2px; }
.site-atlas__sub { flex-basis: 100%; padding-left: 58px; }

/* «Як це працює?» — на загальну ширину й з тією ж тінню, що й картки. */
.site-how__panel { max-width: none; box-shadow: var(--wp--preset--shadow--card); }

/* Банер нової карти: заголовок не впирається у верх пергаменту, текст не лізе на картинку. */
.map-banner.wp-block-cover { padding-top: 3.4%; }
.map-banner__text { padding-right: 12px; }
.map-banner__subtitle { font-size: clamp(1.0625rem, 0.8rem + 0.6vw, 1.3125rem); }

/* «Познайомся» на 1001–1199px: вужча колонка тексту, щоб не заходити на дерево. */
@media (min-width: 1001px) and (max-width: 1199px) {
	.site-meet__text { flex-basis: 40% !important; }
	.site-meet__lead { max-width: 34ch; }
}

/* Картки новин: більше повітря, однакова висота. */
@media (min-width: 600px) { .news-list .wp-block-post-template > li { display: flex; flex-direction: column; } }
.news-card__date { margin: 14px 16px 0; }
.news-card__title { margin: 4px 16px 16px; font-size: 1rem; }

/* Категорії магазину: більше поля від краю. */
.shop-cats.wp-block-group { padding: 12px 10px; gap: 6px; }

@media (max-width: 599px) {
	.site-menu-icons { padding-block: 12px 16px; }
	.site-atlas { padding-block: 36px 32px; }
	.site-how, .site-newmap, .site-youtube, .site-shop { padding-block: 0 32px; }
	.site-atlas__sub { padding-left: 0; }
	.menu-tile__sub { font-size: 0.75rem; color: #5E6782; }
	/* Картки атласу: 14px від краю, кнопка на всю ширину без стрілки. */
	.world-card__body { padding: 12px 14px 14px; }
	.world-card__actions .wp-block-button { width: 100%; }
	.world-card__actions .wp-block-button__link { width: 100%; padding-inline: 6px; }
	.world-card__actions .wp-block-button__link::after { display: none; }
	/* Категорії магазину: 2 × 2 замість 4 в ряд — підписи не ламаються на три рядки. */
	.shop-cats.wp-block-group { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 12px; row-gap: 10px; }
	.shop-cats .menu-tile__title { font-size: 0.8125rem; }
	.news-card__title { margin-bottom: 12px; }
}
@media (max-width: 781px) { .shop-banner.wp-block-cover, .yt-banner.wp-block-cover { padding-inline: 20px; } }
/* Кнопка «Відкрити карту» на всю ширину картки (як у макеті): тіло картки — flex-колонка, що стискає дітей. */
.world-card__body > .world-card__actions { align-self: stretch; }
.world-card__actions .wp-block-button { width: 100%; }
.world-card__actions .wp-block-button__link { width: 100%; }

/* Банери: кнопки й плашки не впритул до хвилястого краю (відгук 13.10). */
.map-banner.wp-block-cover { padding-bottom: 3.6%; }
.map-banner__actions { margin-top: 12px; }
.shop-banner.wp-block-cover { padding: 56px 32px 56px 7%; }
.shop-banner__art { padding-block: 8px; }
@media (min-width: 782px) and (max-width: 1199px) {
	.map-banner.wp-block-cover { padding-bottom: 40px; }
	.shop-banner.wp-block-cover { padding: 48px 4% 48px 6%; }
}
@media (max-width: 781px) {
	.map-banner.wp-block-cover { padding-bottom: 24px; }
	.shop-banner.wp-block-cover { padding: 40px 20px 28px; }
}
/* Картки світів: без сірої тіні й без кольорового тла за кутами ілюстрації (відгук 13.10). */
[class*="is-style-world-"] { background: transparent; box-shadow: none; }
[class*="is-style-world-"]:hover { box-shadow: none; }
.world-card__body { background: var(--w-soft); border-radius: 0 0 var(--wp--custom--rounded--lg) var(--wp--custom--rounded--lg); }
/* Ілюстрація світу має прозорі поля ~2.3% з боків — нижня частина картки вирівнюється по рамці ілюстрації. */
.world-card__body { margin-inline: 2.3% !important; }
/* Хмарки внизу hero — прозорі місця картинки: під ними чисто біле (як наступна секція), а не кремове тло сторінки.
   Тінь героїв прибрано — вона лягала сірою плямою на хмарки. */
.site-hero.wp-block-cover { background-color: #fff; }
.site-hero__kids img { filter: none; }
