/* ==========================================================================
   АМЗ — стилі теми. Кольори й шрифти задані в theme.json,
   тут — компоненти: шапка, картки, кружечки фахівців, кроки, підвал.
   ========================================================================== */

:root {
	--amz-radius: 24px;
	--amz-radius-sm: 16px;
	--amz-yellow: var(--wp--preset--color--accent);
	--amz-black: var(--wp--preset--color--contrast);
	--amz-cream: var(--wp--preset--color--accent-soft);
	--amz-grey: var(--wp--preset--color--surface-2);
	--amz-line: var(--wp--preset--color--line);
	--amz-muted: var(--wp--preset--color--muted);
	--amz-topbar-h: 38px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--amz-yellow);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--amz-yellow);
	color: var(--amz-black);
}

[id] {
	scroll-margin-top: 110px;
}

p:empty {
	display: none;
}

.amz-muted {
	color: var(--amz-muted);
}

.amz-topbar .amz-muted,
.amz-footer .amz-muted,
.amz-help .amz-muted {
	color: var(--wp--preset--color--muted-dark);
}

/* --------------------------------------------------------------------------
   Верхній рядок (кризова допомога)
   -------------------------------------------------------------------------- */

.amz-topbar {
	padding-top: 9px;
	padding-bottom: 9px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.amz-topbar p {
	margin: 0;
	max-width: var(--wp--style--global--wide-size) !important;
}

.amz-topbar a {
	color: var(--amz-yellow);
	text-decoration: none;
	white-space: nowrap;
}

.amz-topbar a:hover {
	text-decoration: underline;
}

.amz-topbar__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 0.6em;
	border-radius: 50%;
	background: var(--amz-yellow);
	vertical-align: middle;
	position: relative;
	top: -1px;
}

.amz-sep {
	margin: 0 0.35em;
	color: var(--wp--preset--color--muted-dark);
}

.amz-only-mobile {
	display: none;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

header.wp-block-template-part {
	position: relative;
	z-index: 100;
	background: var(--wp--preset--color--base);
}

.amz-header {
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--amz-line);
}

.amz-header__row {
	gap: 1.5rem;
}

.amz-logo {
	flex-shrink: 0;
	margin: 0 !important;
}

.amz-logo img {
	display: block;
	width: 150px;
	height: auto;
}

.amz-nav .wp-block-navigation__container {
	gap: 2.25rem;
}

.amz-nav .wp-block-navigation-item__content {
	padding: 0.35em 0;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}

.amz-nav .wp-block-navigation-item__content:hover,
.amz-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--amz-yellow);
}

.amz-header__cta {
	flex-shrink: 0;
}

.amz-header__cta .wp-block-button__link {
	padding: 0.7em 1.5em;
}

/* Кнопка мобільного меню — сірий кружечок, як у макеті */
.amz-nav .wp-block-navigation__responsive-container-open {
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--amz-grey);
}

.amz-nav .wp-block-navigation__responsive-container-open svg {
	width: 26px;
	height: 26px;
}

.amz-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem 1.5rem 2rem;
	background: var(--wp--preset--color--base);
	color: var(--amz-black);
}

.amz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem;
}

.amz-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
	font-size: 1.75rem;
	font-weight: 700;
}

.amz-nav .wp-block-navigation__responsive-container-close {
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--amz-grey);
}

@media (min-width: 782px) {
	/* Шапка «прилипає» до верху, а кризовий рядок прокручується */
	header.wp-block-template-part {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--amz-topbar-h));
	}

	.amz-topbar {
		height: var(--amz-topbar-h);
		box-sizing: border-box;
	}

	.amz-topbar p {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

@media (max-width: 781px) {
	.amz-topbar {
		padding-top: 12px;
		padding-bottom: 12px;
		font-size: 0.95rem;
	}

	.amz-topbar__dot {
		display: none;
	}

	.amz-header {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.amz-header__cta {
		display: none !important;
	}

	.amz-logo img {
		width: 132px;
	}
}

/* --------------------------------------------------------------------------
   Загальні елементи
   -------------------------------------------------------------------------- */

.amz-pill {
	display: inline-block;
	padding: 0.45em 1.05em;
	border-radius: 999px;
	background: var(--amz-cream);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
}

.amz-eyebrow {
	margin-bottom: 0;
	color: var(--amz-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.amz-eyebrow + .wp-block-heading {
	margin-block-start: 0.4rem;
}

.amz-lead {
	color: var(--amz-muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.amz-more {
	margin: 0;
	font-weight: 700;
	white-space: nowrap;
}

.amz-more a {
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.amz-section-head {
	gap: 0.75rem 2rem;
	margin-bottom: 2.25rem;
}

.amz-section-head .wp-block-heading,
.amz-section-head > .wp-block-group > * {
	margin-block: 0;
}

.amz-section-head > .wp-block-group > .amz-eyebrow + .wp-block-heading {
	margin-block-start: 0.4rem;
}

.amz-empty {
	padding: 1.5rem;
	border-radius: var(--amz-radius);
	background: var(--amz-grey);
	color: var(--amz-muted);
}

.amz-card {
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--amz-radius);
	background: var(--amz-grey);
}

.amz-card--cream {
	background: var(--amz-cream);
}

.amz-card--white {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--amz-line);
}

.amz-card > :first-child {
	margin-block-start: 0;
}

.amz-card .wp-block-buttons {
	margin-block-start: 1.5rem;
}

.amz-note {
	padding: 1.25rem 1.5rem;
	border-left: 6px solid var(--amz-yellow);
	border-radius: var(--amz-radius-sm);
	background: var(--amz-cream);
}

.amz-note > * {
	margin-block: 0;
}

.amz-note > * + * {
	margin-block-start: 0.5rem;
}

/* Список з жовтими кружечками */
.amz-checks {
	display: grid;
	gap: 0.55rem;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	list-style: none;
}

.amz-checks > li {
	position: relative;
	padding-left: 1.6rem;
}

.amz-checks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.75rem;
	height: 0.75rem;
	box-sizing: border-box;
	border: 2px solid var(--amz-black);
	border-radius: 50%;
	background: var(--amz-yellow);
}

/* Іконки біля адреси, годин, телефону */
.amz-icon {
	position: relative;
	padding-left: 2rem;
}

.amz-icon::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: var(--amz-icon) center / contain no-repeat;
	mask: var(--amz-icon) center / contain no-repeat;
}

.amz-icon--pin { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.amz-icon--clock { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.amz-icon--phone { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.amz-icon--mail { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5 12 13l8.5-6.5'/%3E%3C/svg%3E"); }
.amz-icon--telegram { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 3.5 2.5 11l7 2.5 2.5 7 3.5-5 5 3.5z'/%3E%3Cpath d='M9.5 13.5 21.5 3.5'/%3E%3C/svg%3E"); }
.amz-icon--instagram { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='0.6'/%3E%3C/svg%3E"); }
.amz-icon--facebook { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2.5A4.5 4.5 0 0 0 8 7.5V10H5.5v4H8v7h4v-7h3l1-4h-4V7.5a.5.5 0 0 1 .5-.5H15z'/%3E%3C/svg%3E"); }
.amz-icon--bot { --amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='12' rx='3'/%3E%3Cpath d='M12 4v4'/%3E%3Ccircle cx='12' cy='3.5' r='0.8'/%3E%3Cpath d='M9 13v1M15 13v1M9.5 17h5'/%3E%3C/svg%3E"); }

.amz-find .amz-icon {
	margin-block: 0 0.9rem;
}

.amz-contacts-list .amz-icon {
	margin-block: 0.7rem 0;
}

.amz-contacts-list .wp-block-heading + .amz-icon {
	margin-block-start: 1rem;
}

.amz-find .wp-block-heading {
	margin-block-end: 1.75rem;
}

.amz-find .wp-block-buttons {
	margin-block-start: 1.75rem;
}

/* Деталі (часті запитання) */
.wp-block-details {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--amz-line);
}

.wp-block-details summary {
	position: relative;
	padding-right: 2.5rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	display: flex;
	width: 1.9rem;
	height: 1.9rem;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--amz-grey);
	font-size: 1.25rem;
	line-height: 1;
}

.wp-block-details[open] summary::after {
	content: "–";
	background: var(--amz-yellow);
}

.wp-block-details > :not(summary) {
	margin-block-start: 0.75rem;
	color: var(--amz-muted);
}

/* --------------------------------------------------------------------------
   Перший екран
   -------------------------------------------------------------------------- */

.amz-hero h1 {
	margin-block-start: 1.25rem;
}

.amz-hero .amz-lead {
	max-width: 30em;
}

.amz-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-block-start: 2rem;
}

.amz-hero__media {
	position: relative;
}

.amz-hero__media > * {
	margin: 0;
}

.amz-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--amz-radius);
}

.amz-badge {
	position: absolute;
	left: -36px;
	bottom: -36px;
	display: flex;
	width: 172px;
	height: 172px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 10px;
	hyphens: none;
	word-break: keep-all;
	align-items: center;
	justify-content: center;
	border: 16px solid var(--amz-black);
	border-radius: 50%;
	background: var(--amz-yellow);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

@media (max-width: 781px) {
	.amz-hero__media {
		margin-block-end: 28px;
	}

	.amz-badge {
		left: 16px;
		bottom: -28px;
		width: 136px;
		height: 136px;
		padding: 8px;
		border-width: 12px;
		font-size: 0.78rem;
	}
}

/* Заголовок внутрішніх сторінок */
.amz-page-hero h1 {
	margin-block-start: 1rem;
	max-width: 16em;
}

.amz-page-hero .amz-lead {
	max-width: 36em;
}

.amz-page-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-block-start: 1.75rem;
}

/* --------------------------------------------------------------------------
   Кружечки фахівців
   -------------------------------------------------------------------------- */

.amz-spec-list {
	gap: 1rem;
	align-items: flex-start;
}

.amz-spec {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	gap: 0 !important;
	text-align: center;
}

.amz-spec > * {
	margin: 0;
}

.amz-spec .wp-block-image,
.amz-spec .wp-block-video {
	margin: 0 auto;
}

.amz-spec img,
.amz-spec video {
	display: block;
	width: 104px;
	height: 104px;
	max-width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	background: var(--amz-grey);
	outline: 3px solid transparent;
	outline-offset: 5px;
	transition: outline-color 0.2s ease, background-color 0.2s ease;
}

.amz-spec:hover img,
.amz-spec:focus-within img,
.amz-spec:hover video,
.amz-spec:focus-within video {
	outline-color: var(--amz-yellow);
	background-color: var(--amz-cream);
}

.amz-spec__label {
	display: flex;
	min-height: 2.7em;
	margin-top: 1rem !important;
	align-items: flex-end;
	justify-content: center;
	color: var(--amz-muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.amz-spec__name {
	margin-top: 0.2rem !important;
	font-weight: 700;
	line-height: 1.25;
}

.amz-spec__name a {
	color: inherit;
	text-decoration: none;
}

/* Уся плитка клікабельна */
.amz-spec__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.amz-swipe-hint {
	display: none;
}

@media (max-width: 781px) {
	.amz-spec-list {
		justify-content: flex-start !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 20px)) !important;
		padding: 8px var(--wp--style--root--padding-right, 20px) 8px 8px;
		margin-left: -8px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.amz-spec-list::-webkit-scrollbar {
		display: none;
	}

	.amz-spec {
		flex: 0 0 31%;
		scroll-snap-align: start;
	}

	.amz-spec img,
	.amz-spec video {
		width: 92px;
		height: 92px;
	}

	.amz-swipe-hint {
		display: block;
		margin-block-start: 1rem;
		color: var(--amz-muted);
		font-size: 0.95rem;
	}
}

/* Картки фахівців на сторінці «Фахівці» */
.amz-spec-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.amz-spec-card > * {
	margin: 0 !important;
}

.amz-spec-card__head {
	gap: 1rem !important;
	align-items: center;
}

.amz-spec-card__head > * {
	margin: 0;
}

.amz-spec-card__icon img {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	object-fit: cover;
}

.amz-spec-card__title {
	font-size: 1.75rem;
}

.amz-spec-card__sub {
	font-weight: 700;
}

.amz-spec-card .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 0.5rem;
}

.amz-who {
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--amz-muted);
	font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Темний блок «Безкоштовно.» і кроки
   -------------------------------------------------------------------------- */

.amz-free .amz-free__title {
	margin: 0 0 1.25rem;
	color: var(--amz-yellow);
	font-size: clamp(2.5rem, 6.4vw, 5.25rem);
	letter-spacing: -0.03em;
	line-height: 1;
	word-break: keep-all;
	overflow-wrap: normal;
	hyphens: none;
}

.amz-free .amz-lead {
	max-width: 24em;
	color: #e8e8e8;
}

.amz-steps {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: amz-step;
}

.amz-steps > li {
	position: relative;
	display: flex;
	min-height: 44px;
	padding-left: 64px;
	align-items: center;
	counter-increment: amz-step;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.amz-steps > li::before {
	content: counter(amz-step);
	position: absolute;
	left: 0;
	top: 50%;
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--amz-yellow);
	color: var(--amz-black);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Картки подій і статей
   -------------------------------------------------------------------------- */

.amz-cards {
	gap: 1.5rem !important;
}

.amz-event-card {
	display: flex;
	height: 100%;
	box-sizing: border-box;
	padding: 1.5rem;
	flex-direction: column;
	gap: 1rem;
	border-radius: var(--amz-radius);
	background: var(--amz-grey);
}

.amz-cards > li:first-child .amz-event-card {
	background: var(--amz-cream);
}

.amz-event-card > * {
	margin: 0 !important;
}

.amz-event-card__top {
	gap: 0.9rem !important;
	align-items: center;
}

.amz-date {
	display: flex;
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--amz-black);
	color: var(--wp--preset--color--base);
	line-height: 1;
}

.amz-date > * {
	margin: 0 !important;
}

.amz-date__day {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

.amz-date__month {
	margin-top: 2px !important;
	font-size: 0.72rem;
	line-height: 1.1;
}

.amz-event-card__meta {
	color: var(--amz-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.amz-event-card .wp-block-post-title,
.amz-post-card .wp-block-post-title {
	font-size: 1.375rem;
	line-height: 1.28;
}

.amz-event-card .wp-block-post-title a,
.amz-post-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.amz-event-card .wp-block-post-title a:hover,
.amz-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

.amz-event-card .wp-block-read-more,
.amz-btn-outline {
	display: inline-flex;
	margin-top: auto !important;
	padding: 0.6em 1.15em;
	align-self: flex-start;
	align-items: center;
	border: 2px solid var(--amz-black);
	border-radius: 999px;
	color: var(--amz-black);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.amz-event-card .wp-block-read-more:hover,
.amz-event-card .wp-block-read-more:focus-visible {
	background: var(--amz-black);
	color: var(--amz-yellow);
}

.amz-post-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.amz-post-card > * {
	margin: 0 !important;
}

.amz-post-card .wp-block-post-featured-image {
	margin-bottom: 0.75rem !important;
}

.amz-post-card .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--amz-radius);
}

.amz-post-card .wp-block-post-terms {
	color: var(--amz-muted);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.amz-post-card .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.amz-post-card .wp-block-post-excerpt {
	color: var(--amz-muted);
	font-size: 0.95rem;
}

.amz-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* На головній на телефоні — по одній картці, як у макеті */
@media (max-width: 781px) {
	.amz-home-teaser .amz-cards > li:nth-child(n + 2) {
		display: none;
	}
}

/* Рубрики-«таблетки» */
.amz-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.amz-cat-pills li a {
	display: inline-block;
	padding: 0.45em 1em;
	border-radius: 999px;
	background: var(--amz-grey);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.amz-cat-pills li.current-cat a,
.amz-cat-pills li a:hover {
	background: var(--amz-yellow);
}

/* Пагінація */
.wp-block-query-pagination {
	gap: 0.5rem;
	margin-top: 2.5rem;
	font-weight: 500;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--amz-grey);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--amz-yellow);
}

/* --------------------------------------------------------------------------
   «Як нас знайти»
   -------------------------------------------------------------------------- */

.amz-find__media {
	display: grid;
	height: 100%;
	min-height: 320px;
	grid-template-columns: 5fr 3fr;
	gap: 1rem;
}

.amz-find__media > * {
	margin: 0 !important;
}

.amz-map,
.amz-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	border-radius: var(--amz-radius);
	background: var(--amz-grey);
}

.amz-find__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--amz-radius);
}

@media (max-width: 781px) {
	.amz-find__media {
		grid-template-columns: 1fr;
	}

	.amz-find__photo {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Стаття
   -------------------------------------------------------------------------- */

.amz-article-head .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.amz-article-head .wp-block-post-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
}

.amz-article-head .wp-block-post-date {
	color: var(--amz-muted);
	font-size: 0.9375rem;
}

.amz-article-cover img {
	border-radius: var(--amz-radius);
}

.amz-article-body {
	font-size: 1.125rem;
	line-height: 1.7;
}

.amz-article-body h2 {
	margin-block-start: 2.5rem;
	font-size: 1.75rem;
}

.amz-article-body li + li {
	margin-top: 0.4rem;
}

.amz-article-body ul:not(.amz-checks) li::marker {
	color: var(--amz-black);
}

/* Блок «Потрібна підтримка?» */
.amz-help {
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--amz-radius);
	background: var(--amz-black);
	color: var(--wp--preset--color--base);
}

.amz-help > :first-child {
	margin-block-start: 0;
}

.amz-help .wp-block-heading {
	color: var(--amz-yellow);
}

.amz-help a:not(.wp-element-button) {
	color: var(--amz-yellow);
}

.amz-help .wp-block-buttons {
	gap: 0.75rem;
}

.amz-help .is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}

.amz-help .is-style-outline .wp-block-button__link:hover {
	border-color: var(--amz-yellow);
	background: var(--amz-yellow);
	color: var(--amz-black);
}

.amz-help .amz-small {
	color: var(--wp--preset--color--muted-dark);
	font-size: 0.9375rem;
}

/* Кнопки: обведена — заливається чорним при наведенні */
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	border-color: var(--amz-black);
	background: var(--amz-black);
	color: var(--amz-yellow);
}

.amz-free .is-style-outline .wp-block-button__link,
.amz-dark .is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}

/* --------------------------------------------------------------------------
   Підвал
   -------------------------------------------------------------------------- */

.amz-footer {
	font-size: 0.9375rem;
}

.amz-footer a {
	color: inherit;
	text-decoration: none;
}

.amz-footer a:hover {
	text-decoration: underline;
}

.amz-footer p {
	margin-block: 0 0.45rem;
}

.amz-footer .amz-footer__title {
	margin-block: 0 0.9rem;
	color: var(--wp--preset--color--muted-dark);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0;
}

.amz-footer__list {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amz-footer__about {
	max-width: 22em;
	margin-top: 1.25rem !important;
	color: #d0d0d0;
}

.amz-footer__bottom {
	gap: 0.5rem 2rem;
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--muted-dark);
	font-size: 0.875rem;
}

.amz-footer__bottom p {
	margin: 0;
}

/* Кнопки внизу екрана на телефоні */
.amz-mobile-cta {
	display: none !important;
}

.amz-btn-icon {
	--amz-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
}

.amz-btn-icon .wp-block-button__link {
	position: relative;
	display: inline-flex;
	width: 52px;
	height: 52px;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 0;
}

.amz-btn-icon .wp-block-button__link::before {
	content: "";
	width: 22px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask: var(--amz-icon) center / contain no-repeat;
	mask: var(--amz-icon) center / contain no-repeat;
}

@media (max-width: 781px) {
	.amz-mobile-cta {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: flex !important;
		box-sizing: border-box;
		margin: 0 !important;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		gap: 12px !important;
		border-top: 1px solid var(--amz-line);
		background: rgba(255, 255, 255, 0.97);
	}

	.amz-mobile-cta > * {
		margin: 0 !important;
	}

	.amz-mobile-cta__main {
		flex: 1 1 auto;
	}

	.amz-mobile-cta__main .wp-block-button,
	.amz-mobile-cta__main .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
	}

	.amz-mobile-cta__main .wp-block-button__link {
		padding-top: 0.95em;
		padding-bottom: 0.95em;
	}

	.amz-footer {
		padding-bottom: calc(var(--wp--preset--spacing--50) + 84px) !important;
	}
}

/* Редактор: панель кнопок унизу не потрібна */
.editor-styles-wrapper .amz-mobile-cta {
	display: none !important;
}

/* Звичайна сторінка (з заголовком) */
.amz-page-title .wp-block-post-title {
	margin: 0;
}

.amz-page-body {
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Принципи на «Про нас» */
.amz-principle {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.amz-principle > * {
	margin: 0 !important;
}

.amz-num {
	display: flex;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--amz-yellow);
	font-weight: 700;
}

.amz-group-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.amz-group-card > * {
	margin: 0 !important;
}

.amz-group-card .amz-who {
	margin-top: auto !important;
}

.amz-phone-big {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.amz-phone-big a {
	text-decoration: none;
}

.amz-back {
	margin: 0;
	font-weight: 500;
}

.amz-back a {
	text-decoration: none;
}

.amz-event-when {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.amz-event-hero .wp-block-post-title {
	margin-block: 1rem 1.25rem;
}

.amz-event-hero .amz-icon {
	margin-block: 0 0.6rem;
}

.amz-event-hero .wp-block-buttons {
	margin-block-start: 1.5rem;
}

.amz-search-item {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--amz-line);
}

.amz-search-item > * {
	margin: 0;
}

.amz-search-item .wp-block-post-excerpt {
	margin-top: 0.5rem;
	color: var(--amz-muted);
}

.amz-search .wp-block-search__input {
	padding: 0.8em 1.1em;
	border: 2px solid var(--amz-line);
	border-radius: 999px;
}

.amz-search .wp-block-search__button {
	margin-left: 0.5rem;
}

/* Шапка: на планшетах і телефонах меню ховається за «бургер» (WordPress сам робить це лише до 600px) */
.amz-nav .amz-nav-cta {
	display: none;
}

@media (min-width: 1100px) and (max-width: 1240px) {
	.amz-nav .wp-block-navigation__container {
		gap: 1.5rem;
	}
}

@media (max-width: 1099px) {
	.amz-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.amz-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.amz-header__row > .amz-header__cta {
		order: 2;
		margin-left: auto;
	}

	.amz-header__row > .amz-nav {
		order: 3;
	}

	/* У відкритому меню — кнопка «Записатися» */
	.amz-nav .is-menu-open .amz-nav-cta {
		display: block;
		margin-top: 1rem;
	}

	.amz-nav .is-menu-open .amz-nav-cta .wp-block-navigation-item__content {
		padding: 0.7em 1.6em;
		border: 0;
		border-radius: 999px;
		background: var(--amz-yellow);
		font-size: 1.25rem;
	}
}

/* Верхній рядок: на вужчих екранах — коротка версія тексту */
@media (max-width: 1199px) {
	.amz-topbar .amz-only-desktop {
		display: none;
	}

	.amz-topbar .amz-only-mobile {
		display: inline;
	}
}

/* --------------------------------------------------------------------------
   Версія 1.1: групи щотижня, фестиваль, команда, цифра «6 000+»
   -------------------------------------------------------------------------- */

.amz-week-list {
	gap: 1.5rem !important;
}

.amz-week-card {
	display: flex;
	box-sizing: border-box;
	padding-bottom: 1.5rem;
	flex-direction: column;
	gap: 0.55rem;
	overflow: hidden;
	border: 1px solid var(--amz-line);
	border-radius: var(--amz-radius);
	background: var(--wp--preset--color--base);
}

.has-surface-background-color .amz-week-card {
	border-color: transparent;
}

.amz-week-card > * {
	margin: 0 !important;
	padding-inline: 1.25rem;
}

.amz-week-card > .amz-week-card__img {
	margin-bottom: 0.6rem !important;
	padding: 0;
}

.amz-week-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.amz-week-card__when {
	color: var(--amz-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.amz-week-card__when strong {
	color: var(--amz-black);
}

.amz-week-card__title {
	font-size: 1.375rem;
	line-height: 1.25;
}

.amz-week-card .amz-eyebrow {
	font-size: 0.72rem;
}

.amz-week-card .amz-who {
	padding-top: 0.75rem;
}

.amz-week-card .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 0.75rem;
}

.amz-week-note {
	margin-block-start: 1.75rem !important;
	color: var(--amz-muted);
}

.amz-week-note > * {
	margin: 0;
}

@media (max-width: 781px) {
	.amz-week-list {
		display: flex !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right, 20px)) !important;
		padding: 4px var(--wp--style--root--padding-right, 20px) 8px 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.amz-week-list::-webkit-scrollbar {
		display: none;
	}

	.amz-week-card {
		flex: 0 0 80%;
		scroll-snap-align: start;
	}
}

/* Фестиваль: анонс на головній і перший екран сторінки */
.amz-fest-promo__title {
	margin-block: 0.5rem 1rem;
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	line-height: 1.08;
}

.amz-fest-promo__org {
	color: var(--amz-muted);
	font-size: 0.9375rem;
}

.amz-fest-promo .wp-block-buttons,
.amz-fest-hero .wp-block-buttons,
.amz-fest-banner .wp-block-buttons {
	gap: 0.75rem;
	margin-block-start: 1.5rem;
}

.amz-fest-promo__logo {
	margin: 0;
}

.amz-fest-promo__logo img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	padding: clamp(1rem, 3vw, 2.25rem);
	border-radius: var(--amz-radius);
	background: var(--wp--preset--color--base);
}

.amz-fest-promo__logo a {
	display: block;
}

.amz-fest-hero h1 {
	margin-block: 1rem 1.25rem;
}

.amz-fest-fact p {
	margin: 0;
}

.amz-fest-fact .amz-eyebrow {
	margin-bottom: 0.5rem;
}

/* Програма фестивалю */
.amz-programme__list {
	display: grid;
	gap: 1rem;
}

.amz-programme__list > * {
	margin: 0 !important;
}

.amz-slot {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: var(--amz-radius);
	background: var(--wp--preset--color--base);
}

.amz-slot > * {
	margin: 0 !important;
}

.amz-slot__time {
	margin-bottom: 0.75rem !important;
	font-size: 1.5rem;
}

.amz-slot__list {
	padding: 0;
	list-style: none;
}

.amz-slot__list li {
	margin: 0;
	padding: 0.65rem 0;
	border-top: 1px solid var(--amz-line);
	line-height: 1.45;
}

.amz-slot__list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.amz-hall,
.amz-format {
	display: inline-block;
	margin-right: 0.45em;
	padding: 0.2em 0.65em;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	vertical-align: 0.12em;
	white-space: nowrap;
}

.amz-hall {
	background: var(--amz-black);
	color: var(--wp--preset--color--base);
}

.amz-format {
	background: var(--amz-yellow);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.amz-slot__break {
	margin-top: 0.75rem !important;
	color: var(--amz-muted);
	font-size: 0.9375rem;
}

/* Команда */
.amz-person {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.amz-person > * {
	margin: 0 !important;
}

.amz-person__photo img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.amz-person__initials {
	display: flex;
	width: 96px;
	height: 96px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--amz-yellow);
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.amz-person__name {
	margin-top: 0.75rem !important;
	font-size: 1.25rem;
	line-height: 1.25;
}

/* «6 000+» на сторінці «Про нас» */
.amz-stat__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2.5rem;
}

.amz-stat__card > * {
	margin: 0 !important;
}

.amz-stat__num {
	font-size: clamp(3.5rem, 9vw, 6rem);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.amz-stat__text {
	max-width: 30em;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.amz-find__how {
	margin-block: 0.25rem 1rem !important;
	padding-left: 1.75rem;
	color: var(--amz-muted);
	font-size: 0.95rem;
}
