/**
 * MeEsoterics: блоки темы, страница спикера, правки отзывов.
 *
 * @package meesoterics-theme
 */

/*
 * Глобальная длительность и кривая переходов (в main.min.css используются var(--transition-*)).
 */
:root {
	--transition-duration: 0.3s;
	--transition-timing-function: ease-in-out;
	/* Базовая типографика (основной текст, h1/h2 по умолчанию) */
	--mees-text: #013b47;
	--mees-accent-letter: #bfdaa0;
	--mees-ff-heading: Forum, Georgia, serif;
	--mees-ff-body: Circe, sans-serif;
}

/*
 * Flashgrid (.grid в main.min): repeat(12, 1fr) = minmax(auto, 1fr) и блокирует сжатие
 * уже около ~330px. minmax(0, 1fr) + min-width: 0 у ячеек — базовое правило темы.
 */
.grid {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid > [class*="col-"] {
	min-width: 0;
}

/* Включаем только по условию в JS для узких/переполненных блоков. */
.mees-hyphenate-narrow {
	word-break: normal;
	overflow-wrap: normal;
	word-wrap: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/*
 * Submit: «рука» при наведении (у нативного <button> по умолчанию часто стрелка; disabled без изменений).
 */
button[type="submit"]:enabled,
input[type="submit"]:enabled {
	cursor: pointer;
}

/*
 * Градиентные кнопки отправки: как .btn-subscribe в main.min.css (в попапе «Заказать звонок» нет класса btn-subscribe).
 */
button[type="submit"].but.bg-gradient {
	font-size: 17px;
	min-height: 65px;
}

/*
 * Шапка: на главной и при опции «поверх hero» — прозрачная до скролла (как в main.min.css).
 * Режим header-bar-solid: заливка сразу, контент смещён вниз (отступ задаётся в mees-front.js).
 */
body.header-bar-solid #fixmenu.navigation.navigation-header--bar-solid {
	background-color: var(--temno-zelenyy);
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	width: 100%;
}

body.header-bar-solid #fixmenu.navigation.navigation-header--bar-solid {
	z-index: 20;
}

body.header-bar-solid #fixmenu-sticky.navigation.navigation-header--bar-solid {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	transform: translateY(calc(-100% - 20px));
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
	will-change: transform, opacity;
	pointer-events: none;
}

body.header-bar-solid #fixmenu-sticky.navigation.navigation-header--bar-solid.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

body.admin-bar.header-bar-solid #fixmenu-sticky.navigation.navigation-header--bar-solid {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.header-bar-solid #fixmenu-sticky.navigation.navigation-header--bar-solid {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.header-bar-solid #fixmenu-sticky.navigation.navigation-header--bar-solid {
		transition: none;
	}
}

/* Шапка: корзина слева от личного кабинета */
.header-icons {
	flex-shrink: 0;
}

.header-cart,
.personal-account {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.header-cart {
	display: block;
	background: url(../img/i/cart-header.svg) 50% / contain no-repeat;
	height: 50px;
	width: 50px;
	transition: all var(--transition-duration) var(--transition-timing-function);
}

.header-cart:hover {
	filter: opacity(50%);
}

.header-cart__badge {
	position: absolute;
	top: 2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 100px;
	background-color: var(--zelenyy, #8bc34a);
	color: var(--temno-zelenyy, #013b47);
	font-family: var(--font-family, Circe, sans-serif);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	pointer-events: none;
	box-sizing: border-box;
}

.header-cart__count {
	display: block;
}

.navigation-header:has(.menu-1.active) .header-cart {
	background-image: url(../img/i/cart-header-blue.svg);
}

@media (max-width: 64rem) {
    .header-cart,
	.personal-account {
		height: 30px;
		width: 30px;
	}

	.header-cart__badge {
		top: -2px;
		right: -6px;
		min-width: 16px;
		height: 16px;
		font-size: 10px;
		line-height: 16px;
	}
}

.box-contact-header,
.burder-menu-css,
.logo-header,
.personal-account,
.header-cart {
	position: relative;
	z-index: 1;
}

/*
 * Панель WordPress (#wpadminbar): fixed-шапка иначе оказывается под ней.
 * Высоты как в wp-includes/css/admin-bar.min.css (32px / 46px до 782px).
 */
.admin-bar:not(.header-bar-solid) #fixmenu {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar:not(.header-bar-solid) #fixmenu {
		top: 46px;
	}
}

/*
 * Мобильное меню: в main.min.css оверлей скрыт через #menu-1 — у клона #fixmenu-sticky id сняты,
 * без этого правила список в фиксированной шапке выглядит «всегда раскрытым».
 * Ровно 768px: в main.min совпадают min-width и max-width 48rem — бургер скрыт .d-none@sm; возвращаем его.
 */
@media (max-width: 48rem) {
	#fixmenu-sticky ul.menu-1 {
		opacity: 0;
		pointer-events: none;
		transition: all var(--transition-duration) var(--transition-timing-function);
		visibility: hidden;
	}

	#fixmenu-sticky ul.menu-1.active {
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
	}
}

@media (min-width: 48rem) and (max-width: 48rem) {
	.navigation-header .order-2[class*="d-none@sm"] {
		display: inline-flex !important;
	}
}

/* Кнопка «Заказать звонок» (текст): вертикальное выравнивание — без d-inline-block, чтобы не бить display у .but */
#fixmenu .header-cta--full.but,
#fixmenu-sticky .header-cta--full.but {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-sizing: border-box;
}

/* Подвал: телефон и «Заказать звонок» — зазор 20px при любом переносе */
.a-footer .box-contact-footer {
	column-gap: 20px;
	row-gap: 20px;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.a-footer .footer-callback-btn.but {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 0;
	padding: 10px 20px 9px;
	border-radius: 100px;
	border: 1px solid #fff;
	background: transparent;
	box-shadow: none !important;
	line-height: 1.5;
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function);
}

.a-footer .footer-callback-btn.but:hover {
	border-color: var(--zelenyy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3) !important;
}

.a-footer .box-payment-systems img {
	width: auto;
	max-height: 34px;
}

.a-footer .a-email-link {
	color: var(--white);
	text-align: left;
}

.a-footer .a-email-link img {
	transition: filter 0.2s ease-out;
}

.a-footer .a-email-link:hover img,
.a-footer .a-email-link:focus-visible img {
	filter: brightness(0) saturate(100%) invert(84%) sepia(23%) saturate(364%) hue-rotate(45deg) brightness(96%) contrast(91%);
}

.a-footer,
.a-footer p,
.a-footer li,
.a-footer span,
.a-footer a {
	text-align: left;
}

.a-footer .lists-contact {
	width: auto;
	max-width: 100%;
}

.a-footer .lists-contact .a-item,
.a-footer .lists-contact .a-item span,
.a-footer .lists-contact .a-item a {
	font-size: 17px;
}
.a-footer .lists-footer a {
	font-size: 17px;
}
.a-footer .lists-contact a {
	font-size: 17px;
}
.a-footer .lists-politics a {
	font-size: 15px;
}
.a-footer .protection-rights {
	font-size: 14px;
}
.protection-rights p {
	margin: 0;
}

.protection-rights a,
.protection-rights a:visited,
.protection-rights a:focus,
.protection-rights a:active {
	color: var(--temno-zelenyy) !important;
	text-decoration: underline !important;
}

.protection-rights a:hover {
	color: #000000 !important;
}

.a-footer .lists-contact .a-item > .box-social {
	font-size: 17px;
}

.a-footer .box-payment-systems p {
	font-size: 15px;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
}


.a-footer .a-phone-mobile-footer svg,
.a-footer .a-phone-mobile-footer svg path {
	fill: currentColor !important;
}

.a-footer .a-phone:hover .a-phone-mobile-footer,
.a-footer .a-phone:focus-visible .a-phone-mobile-footer {
	color: var(--zelenyy);
}

.a-footer .a-phone,
.a-footer .a-phone span:last-child {
	white-space: nowrap;
}

.a-footer .footer-callback-btn.but {
	white-space: nowrap;
	flex-shrink: 0;
}


@media (max-width: 512px) {
	.a-footer .footer-callback-btn.but {
		display: none;
	}

	.a-footer .box-contact-footer {
		flex-wrap: wrap;
	}
}


/* Three-column footer layout: brand | contacts | payment */
.a-footer .footer-layout-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	column-gap: 30px;
}

.a-footer .footer-col {
	min-width: 0;
}

.a-footer .footer-col-brand {
	flex: 1 1 260px;
	min-width: 0;
}

.a-footer .footer-brand-grid {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	column-gap: 30px;
}

.a-footer .footer-brand-logo,
.a-footer .footer-brand-menu {
	flex: 1 1 auto;
	min-width: 0;
}

.a-footer .footer-brand-logo {
	min-width: 106px;
	max-width: 160px;
}

.a-footer .footer-col-contacts {
	flex: 1.35 1 380px;
	min-width: 370px;
}

.a-footer .footer-col-payment {
	flex: 1.1 1 300px;
	min-width: 280px;
}

@media (min-width: 1025px) and (max-width: 1140px) {
	.a-footer .box-contact-footer {
		flex-wrap: wrap;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.a-footer .footer-layout-main {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 30px;
	}

	.a-footer .footer-col-brand { grid-column: span 5; }
	.a-footer .footer-col-contacts { grid-column: span 7; }
	.a-footer .footer-col-payment { grid-column: 1 / -1; }

	.a-footer .box-payment {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}

@media (max-width: 768px) {
	.a-footer .footer-layout-main {
		display: block;
	}

	.a-footer .footer-brand-grid {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		column-gap: 20px;
		row-gap: 40px;
		flex-wrap: wrap;
	}

	.a-footer .footer-col-contacts {
		min-width: 0;
		width: 100%;
	}

	.a-footer .footer-col-payment {
		min-width: 0;
		width: 100%;
		flex: 1 1 auto;
	}

	.a-footer .footer-brand-menu {
		width: auto;
		max-width: 100%;
		margin-left: 0;
	}

	.a-footer .footer-brand-menu .lists-footer {
		display: grid;
		justify-items: start;
	}

	.a-footer .lists-contact,
	.a-footer .box-payment,
	.a-footer .box-payment-systems {
		display: block;
	}

	.a-footer .lists-contact > li + li {
		margin-top: 20px;
	}

	.a-footer .box-payment > * + * {
		margin-top: 30px;
	}

	.a-footer .box-payment-systems > * + * {
		margin-top: 15px;
	}

	.a-footer .box-social {
		display: flex;
		flex-wrap: wrap;
		gap: 5px;
	}

	.a-footer .footer-col + .footer-col,
	.a-footer .box-payment > * + * {
		margin-top: 30px;
	}
}

/* Кнопка «Заказать звонок»: иконка как у телефона на адаптиве; зазор 1024–1279 */
.header-cta-icon {
	align-items: center;
	border: 1px solid #fff;
	border-radius: 100px;
	box-shadow: 0 5px 20px 0 rgba(113, 178, 222, 0.2);
	display: inline-flex;
	flex: none;
	height: 50px;
	justify-content: center;
	width: 50px;
}

.header-cta-icon .header-cta-icon__svg {
	line-height: 0;
}

.navigation-header .a-phone-header {
	transition: color var(--transition-duration) var(--transition-timing-function);
}

.navigation-header .a-phone-header:hover,
.navigation-header .a-phone-header:focus-visible {
	color: #BFDAA0;
}

/*
 * До 1024px основной .a-phone-header уже свёрнут в ту же круглую иконку — второй блок
 * «Заказать звонок» (иконка) дублировал визуал; скрываем только CTA-иконку.
 */
@media (max-width: 64rem) {
	#fixmenu .header-cta--icon-wrap,
	#fixmenu-sticky .header-cta--icon-wrap {
		display: none !important;
	}
}

@media (min-width: 64.0625rem) and (max-width: 79.9375rem) {
	.navigation-header .box-contact-header {
		flex-shrink: 0;
		min-width: 0;
	}

	.navigation-header .box-contact-header .a-phone-header {
		flex-shrink: 0;
	}
}

/*
 * Кнопка «Подписаться»: не использовать .bg-gradient:hover (линейный градиент) — оставляем как у обычного .bg-gradient.
 * Рамка только на :hover; без transition по border (нет белой вспышки от currentColor).
 */
.but.bg-gradient.btn-subscribe {
	outline: none;
	transition-property: box-shadow, filter, opacity, transform;
}

.but.bg-gradient.btn-subscribe:hover {
	box-shadow: 0 5px 20px 0 hsla(88, 44%, 74%, 0.3);
	border: 1px solid var(--zelenyy);
	outline: none;
}

/* Отзывы: слайдер + сетка (дополнение к main.min.css) */
.swiper-reviews-css {
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.swiper-reviews-css .swiper-wrapper {
	align-items: stretch;
}

.swiper-reviews-css .swiper-slide {
	max-width: 100%;
	box-sizing: border-box;
	height: auto;
	display: flex;
	flex-direction: column;
}

.swiper-reviews-css .swiper-slide .card-reviews {
	max-width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Карточка отзыва: адаптивный блок фото + имя.
   ВАЖНО: flex-wrap: nowrap — обязательно. С wrap браузер переносит .card-reviews__details
   на новую строку вместо того, чтобы сжимать фото; фото остаётся 180px.
   С nowrap flex-shrink работает корректно: фото уменьшается, details держит min 160px.
   Стек (фото над деталями) происходит при ширине карточки < 270px через @container. */
.card-reviews .icon-container {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
}

/* flex: grow=0, shrink=1, basis=180px; уменьшается до 100px при нехватке места */
.card-reviews .icon-container img {
	flex: 0 1 180px;
	min-width: 100px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* flex: grow=1, shrink=0, basis=160px; никогда не уже 160px */
.card-reviews .icon-container .card-reviews__details {
	flex: 1 0 160px;
	min-width: 160px;
	overflow-wrap: normal;
	word-break: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
	align-self: center;
}

/* Стек: фото + текст в столбец, когда карточка < 270px (100+10gap+160) */
.card-reviews {
	container-type: inline-size;
}

@container (max-width: 269px) {
	.card-reviews .icon-container {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.card-reviews .icon-container img {
		flex-basis: 100%;
		max-width: 180px;
		min-width: 0;
	}

	.card-reviews .icon-container .card-reviews__details {
		flex-basis: 100%;
	}
}

/* Fallback для браузеров без container queries: при очень узком экране
   повторяем логику блока отзывов (фото и текст переходят в столбец). */
@supports not (container-type: inline-size) {
	@media (max-width: 360px) {
		.card-reviews .icon-container {
			flex-wrap: wrap;
			row-gap: 10px;
		}

		.card-reviews .icon-container img {
			flex-basis: 100%;
			max-width: 180px;
			min-width: 0;
		}

		.card-reviews .icon-container .card-reviews__details {
			flex-basis: 100%;
		}
	}
}

/* На очень узких экранах форсируем перенос даже при поддержке container queries:
   это обходит случаи, когда min-content ограничения мешают карточке сжаться. */
@media (max-width: 360px) {
	.card-reviews .icon-container {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.card-reviews .icon-container img {
		flex-basis: 100%;
		max-width: 180px;
		min-width: 0;
	}

	.card-reviews .icon-container .card-reviews__details {
		flex: 1 1 100%;
		min-width: 0;
	}
}

/* Цвет имени и текстов карточки отзыва */
.card-reviews__title {
	color: #525252;
	margin-bottom: 20px;
}

.card-reviews__details p {
	color: #525252;
}

/* Ограничение строк с кнопкой «Читать далее» */
.card-reviews__body.is-clamped {
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--rv-lines, 3);
}

/* Убираем margin <p>, иначе нижний отступ попадает в scrollHeight и кнопка
   показывается даже когда текст полностью умещается в N строк */
.card-reviews__body p {
	margin: 0;
}

/* Кнопка «Читать далее» / «Скрыть» в стиле .a-more */
.a-review-toggle {
	display: inline;
	background: none;
	border: none;
	padding: 0;
	margin-top: 10px;
	cursor: pointer;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	text-align: start;
	color: var(--temno-zelenyy);
	text-decoration: underline;
	-webkit-text-decoration-skip-ink: none;
	text-decoration-skip-ink: none;
	transition: color var(--transition-duration) var(--transition-timing-function);
}

.a-review-toggle:hover {
	color: var(--goluboy);
}

/* display:inline выше перекрывает UA-стиль [hidden]{display:none} — восстанавливаем явно */
.a-review-toggle[hidden] {
	display: none;
}

/* Двухколоночная сетка: убираем лишний горизонтальный зазор у grid-gap (Swiper даёт spaceBetween) */
.reviews .box-reviews {
	column-gap: 0;
}

@media (min-width: 576px) {
	.reviews .box-reviews {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.reviews .box-reviews__left {
	min-width: 0;
	background: #f8f8f8;
}

/* Мобилка (≤ 575px, до grid-cols-2@sm): правый блок (заголовок) выводится над слайдером */
@media (max-width: 575px) {
	.reviews .box-reviews__right {
		order: -1;
		padding-bottom:162px;
		padding-left:30px;
		padding-right:30px
	}

	.reviews .box-reviews__left {
		padding-left: 10px;
		padding-right: 10px;
	}

	.cristal-reviews-right {
		bottom: -160px;
		height: 122px;
		margin-top: 0;
		width: 122px;
		left:50vw;
	}
}

.reviews-intro p {
	margin: 0 0 1em;
}

.reviews-intro p:last-child {
	margin-bottom: 0;
}

.reviews .box-reviews__right .reviews-all-btn {
	display: inline-block;
	margin-top: 60px;
}

/* Блок «О компании»: интервалы между абзацами текста из WYSIWYG */
.box-text-about p {
	margin: 0 0 20px;
}

.box-text-about p:last-child {
	margin-bottom: 0;
}

/*
 * О компании: не использовать класс .grid (в main.min — 12 колонок без col-* ломают ряд).
 * ≥1024: текст | логотип справа; <1024: одна колонка, логотип по центру.
 */
.about .about__grid {
	display: grid;
	align-items: start;
	gap: clamp(1.25rem, 4vw, 2.5rem);
}

.about .about__content {
	position: relative;
	z-index: 2;
	min-width: 0;
}

/*
 * Декор «О компании»: в <picture> при max-width:1024px подключается foto-about-left-table.webp.
 * Десктоп (≥1025px): основное фото слева на всю высоту блока.
 * Планшет и мобилка (≤1024px): версия table — верхний правый угол, натуральные пропорции, без растяжения.
 */
@media (min-width: 1025px) {
	.about .abot-img-left {
		top: 0;
		bottom: 0;
		left: 0;
		right: auto;
		height: 100%;
		width: min(46vw, 610px);
		max-width: 55%;
		transform: none;
	}

	.about .abot-img-left picture {
		display: block;
		height: 100%;
		width: 100%;
	}

	.about .abot-img-left img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: left;
	}
}

@media (max-width: 1024px) {
	.about .abot-img-left {
		top: 0;
		right: 0;
		bottom: auto;
		left: auto;
		height: auto;
		width: auto;
		max-width: min(100vw, 629px);
		transform: none;
	}

	.about .abot-img-left picture {
		display: block;
		height: auto;
		width: auto;
		max-width: 100%;
	}

	.about .abot-img-left img {
		display: block;
		width: auto;
		height: auto;
		max-width: min(100vw, 629px);
		object-fit: contain;
	}
}

/*
 * Логотип строго в потоке внутри .about__media-col.
 * В main.min задано .about-logo { right; top; width } — без явного position смещение
 * может наследоваться; сбрасываем inset и отступы.
 */
.about .about__media-col {
	position: relative;
	z-index: 0;
	min-width: 0;
	display: flex;
	overflow: visible;
	height: min(444px, calc(100vw - var(--container-padding-x)));
	align-items: center;
	justify-content: center;
}

.about .about__media-col .about-logo {
	--about-logo-width: 500px;
	position: relative;
	z-index: 0;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	inset: auto;
	transform: none;
	box-sizing: border-box;
	display: block;
	width: min(var(--about-logo-width), 100vw);
	max-width: 100vw;
	margin: 0;
	padding: 0;
	animation: none;
	will-change: auto;
}

.about .about__media-col .about-logo img {
	display: block;
	width: min(var(--about-logo-width), 100vw);
	max-width: 100vw;
	height: auto;
	margin: 0;
}

@media (max-width: 1023px) {
	.about .about__grid {
		grid-template-columns: 1fr;
		gap: clamp(1.25rem, 4vw, 2rem);
	}

	.about .about__media-col {
		order: 3;
		align-self: stretch;
		padding-top: 0.25rem;
	}
}

@media (min-width: 1024px) {
	.about .about__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, min(444px, calc(100vw - var(--container-padding-x))));
		column-gap: 0;
		row-gap: 0;
	}

	.about .about__media-col {
		justify-self: stretch;
		width: 100%;
	}
}

/*
 * Слайдеры: скрыть стрелки и точки пагинации, когда всё помещается (класс вешает JS).
 */
.mees-swiper-nav--hidden .swiper-button-next,
.mees-swiper-nav--hidden .swiper-button-prev,
.mees-swiper-nav--hidden .swiper-pagination {
	display: none !important;
}

/* Мобильная подсказка «листайте» для слайдеров без стрелок. */
.mees-swipe-hint--gradient {
	position: relative;
}

.mees-swipe-hint-label {
	display: none;
}

.mees-swipe-hint--label .mees-swipe-hint-label {
	display: inline-flex;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	padding: 6px 12px;
	border-radius: 100px;
	background: rgba(1, 59, 71, 0.85);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
	z-index: 4;
}

@keyframes mees-swipe-label-pulse {
	0%,
	100% {
		transform: translateY(-50%) translateX(0);
	}
	30% {
		transform: translateY(-50%) translateX(5px);
	}
	60% {
		transform: translateY(-50%) translateX(-3px);
	}
}

.mees-swipe-hint--label .mees-swipe-hint-label {
	animation: mees-swipe-label-pulse 1400ms ease-in-out infinite;
}

@keyframes mees-swipe-nudge {
	0%,
	100% {
		transform: translateX(0);
	}
	30% {
		transform: translateX(-14px);
	}
	60% {
		transform: translateX(-6px);
	}
}

.mees-swipe-hint--nudge.mees-swipe-hint--nudge-run .swiper {
	animation: mees-swipe-nudge 1200ms ease-in-out 2;
}

.swiper .swiper-slide a:focus-visible {
	outline: none;
	outline-offset: 0;
	box-shadow: none;
}

/* Слайдер курсов: пагинация поверх, кликабельные точки (Swiper с clickable: false) */
.section-courses .wrap-slider .swiper-pagination-1.swiper-pagination-bullets {
	position: relative;
	z-index: 4;
}
.section-courses .wrap-slider .swiper-pagination-1 .swiper-pagination-bullet {
	cursor: pointer;
	position: relative;
	z-index: 1;
}

/* ── Слайдер курсов: адаптивная система (5 зон) ──────────────────────────── */

/* wrap-slider: overflow visible, чтобы стрелки могли выходить за края;
   зона 5 (≤1329px) — ширина контейнера + боковые отступы --container-padding-x */
.section-courses .wrap-slider {
	overflow: visible;
	width: 100%;
	max-width: var(--container-width, 100%);
	box-sizing: border-box;
	padding-inline: var(--container-padding-x, 0);
}

/* Зона 4 (1330-1529px): обёртка = ширина активного слайда, padding не нужен */
@media (min-width: 1330px) {
	.section-courses .wrap-slider {
		width: 1110px;
		max-width: 1110px;
		padding-inline: 0;
	}
}

/* Зона 3 (1530-1689px): обёртка плавно сжимается с экраном; offsets — в JS */
@media (min-width: 1530px) {
	.section-courses .wrap-slider {
		width: calc(100vw - 220px);
		max-width: none;
	}
}

/* Зоны 2-1 (≥1690px): фиксированная обёртка 1470px */
@media (min-width: 1690px) {
	.section-courses .wrap-slider {
		width: 1470px;
		max-width: 1470px;
	}
}

/* Ширина слайда: 1110px на зонах 1-4; на зоне 5 — fluid (slidesPerView:1) */
@media (min-width: 1330px) {
	.section-courses .wrap-slider .swiper-one-css .swiper-slide {
		width: 1110px;
		max-width: 1110px;
		height: auto;
		box-sizing: border-box;
	}
}

/* Зона 5 узкая (≤576px): вертикальные изображения 258×500.
   Высота контейнера управляется autoHeight Swiper — он сам подтягивается под слайд.
   Высота слайда задаётся через aspect-ratio 258:500 с ограничением max-height,
   чтобы вся секция (заголовок + слайдер + точки) помещалась на экране. */
@media (max-width: 576px) {
	.section-courses .swiper-one-css {
		/* autoHeight (JS) устанавливает высоту контейнера = высоте активного слайда */
		overflow: hidden;
	}
	/* Высота слайда = ширина × (500/258), но не более 60% высоты экрана */
	.section-courses .swiper-one-css .swiper-slide {
		aspect-ratio: 258 / 500;
		max-height: min(60vh, 750px);   /* fallback для браузеров без svh */
		max-height: min(60svh, 750px);
	}
	/* Пробрасываем высоту через slide → a → picture */
	.section-courses .swiper-one-css .swiper-slide > a,
	.section-courses .swiper-one-css .swiper-slide > a > picture {
		display: block;
		height: 100%;
	}
	/* object-fit: contain — показываем изображение целиком без обрезки;
	   cover (из main.min.css) кадрирует портретный кадр под другое соотношение сторон */
	.section-courses .swiper-one-css .swiper-slide img {
		object-fit: contain;
	}
}

/* Scale-эффект: неактивные слайды меньше (зона 5, ≤1329px) */
.section-courses .swiper-one-css .swiper-slide {
	transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 1329px) {
	.section-courses .swiper-one-css .swiper-slide:not(.swiper-slide-active) {
		transform: scale(0.8);
	}
}

/* ── Стрелки навигации ────────────────────────────────────────────────────── */

.section-courses .wrap-slider .btn-swiper-curs {
	position: absolute;
	top: 50%;
	margin-top: 0;
}

/* Зона 5 (≤1329px): только точки, стрелки скрыты */
@media (max-width: 1329px) {
	.section-courses .wrap-slider .btn-swiper-curs {
		display: none !important;
	}
}

/* Зоны 4-2 (1330-1729px): стрелки снаружи обёртки, зазор 30px */
@media (min-width: 1330px) {
	.section-courses .wrap-slider .btnl-speakers.btn-swiper-curs {
		left: -30px;
		right: auto;
		transform: translateX(-100%) translateY(-50%);
	}
	.section-courses .wrap-slider .btnr-speakers.btn-swiper-curs {
		right: -30px;
		left: auto;
		transform: translateX(100%) translateY(-50%);
	}
}

/* Зона 1 (≥1730px): зазор 50px */
@media (min-width: 1730px) {
	.section-courses .wrap-slider .btnl-speakers.btn-swiper-curs {
		left: -50px;
	}
	.section-courses .wrap-slider .btnr-speakers.btn-swiper-curs {
		right: -50px;
	}
}

/* Hero: фон из ACF */
.a-header--has-bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/*
 * Подчёркивание активного пункта (main.min.css: .current-menu-item a:after).
 * width:100% во flex-шапке даёт сбой — не возвращаем его.
 * Линия: left+right на всю ширину ссылки + inline-block у <a> (иначе ::after может иметь нулевую ширину).
 * На мобилке (max-width:48rem) в main.min линия скрыта — только десктоп.
 */
@media (min-width: 48.0625rem) {
	#fixmenu.navigation-header #menu-1.menu-1 > li > a,
	#fixmenu-sticky.navigation-header .menu-1 > li > a {
		display: inline-block;
		vertical-align: middle;
	}

	#fixmenu.navigation-header #menu-1.menu-1 > li.current-menu-item > a::after,
	#fixmenu.navigation-header #menu-1.menu-1 > li.current-menu-item > a:after,
	#fixmenu-sticky.navigation-header .menu-1 > li.current-menu-item > a::after,
	#fixmenu-sticky.navigation-header .menu-1 > li.current-menu-item > a:after {
		left: 0;
		right: 0;
		width: auto;
		box-sizing: border-box;
	}
}

/* Фон секций */
.bg-f8 {
	background-color: #f8f8f8;
}

/* Слайдер спикеров: равная высота карточек */
.swiper-speaker-css .swiper-wrapper {
	align-items: stretch;
}

.swiper-speaker-css .swiper-slide {
	display: flex;
	flex-direction: column;
}

.swiper-speaker-css .swiper-slide .card-speaker {
	flex: 1;
}

/* Архив спикеров: одинаковая высота карточек в ряду (включая CTA) */
.speakers-archive .grid > [class*="col-"] {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.speakers-archive .grid > [class*="col-"] .card-speaker {
	width: 100%;
	max-width: 100%;
	flex: 1;
	min-width: 0;
}

/* CTA «Станьте спикером» */
.card-speaker--cta .card-speaker__img--cta {
	aspect-ratio: 350 / 274;
	background: rgba(117, 180, 220, 0.4);
}

.speaker-cta-icon {
	display: block;
	width: 234px;
	height: 234px;
	margin: 0 auto;
	background: url("../img/i/user-plus.svg") center / contain no-repeat;
	opacity: 0.9;
}

/* CTA-карточка: заголовок в стиле карточек спикеров */
.card-speaker--cta .card-speaker__title b {
	font-size: 20px;
	text-transform: uppercase;
	color: var(--temno-zelenyy);
	line-height: 140%;
}

/* CTA-карточка: фраза-призыв перед кнопкой */
.card-speaker__cta-phrase {
	color: var(--temno-zelenyy);
	font-size: 17px;
	font-weight: 700;
	line-height: 140%;
	text-decoration: none;
}

/* Карточка спикера: фото всегда заполняет область изображения */
.card-speaker__img {
	overflow: hidden;
}

.card-speaker__img a {
	overflow: hidden;
}

.card-speaker__img a img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Обложка спикера */
.speaker-cover {
	overflow: hidden;
	padding-top: 50px;
	padding-bottom: 70px;
}

@media (min-width: 48rem) {
	.speaker-cover {
		padding-bottom: 120px;
	}
}

.speaker-cover nav.speaker-breadcrumbs {
	margin-bottom: 70px !important;
}

.speaker-cover__title {
	font-family: Forum, Georgia, serif;
	color: #013b47;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	letter-spacing: 3.5px;
	text-transform: uppercase;
}

@media (min-width: 541px) {
	.speaker-cover__title {
		font-size: 70px;
	}
}

@media (max-width: 540px) {
	.speaker-cover__title {
		font-size: 30px;
		letter-spacing: 1.5px;
	}
}

.speaker-cover__title-first {
	color: #bfdaa0;
}

.speaker-cover h1.speaker-cover__title {
	margin-bottom: 50px !important;
}

@media (max-width: 1024px) {
	.speaker-cover h1.speaker-cover__title {
		margin-bottom: 30px !important;
	}
}

@media (max-width: 540px) {
	.speaker-cover h1.speaker-cover__title {
		margin-bottom: 20px !important;
	}
}

.speaker-cover blockquote.speaker-cover__quote {
	position: relative;
	margin-left: 72px;
	margin-bottom: 50px !important;
	max-width: 482px;
	padding: 28px 72px;
	color: #71b2de;
	font-family: Circe, sans-serif;
	font-size: 25px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
}

@media (max-width: 1024px) {
	.speaker-cover blockquote.speaker-cover__quote {
		margin-bottom: 30px !important;
	}
}

.speaker-cover blockquote.speaker-cover__quote::before,
.speaker-cover blockquote.speaker-cover__quote::after {
	content: "";
	position: absolute;
	width: 60px;
	height: 60px;
	background: url("../img/i/quote.svg") center / contain no-repeat;
}

.speaker-cover blockquote.speaker-cover__quote::before {
	left: 0;
	top: 0;
}

.speaker-cover blockquote.speaker-cover__quote::after {
	right: 0;
	bottom: 0;
	transform: rotate(180deg);
}

.speaker-cover__layout::after {
	content: "";
	display: table;
	clear: both;
}

.speaker-cover__media {
	margin: 0 0 1.5rem;
	position: relative;
	z-index: 2;
}

.speaker-cover__img-wrap {
	position: relative;
	overflow: hidden;
}

.speaker-cover__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - var(--mees-header-height, 120px));
	object-fit: contain;
	object-position: center top;
}

@media (min-width: 541px) {
	.speaker-cover .speaker-breadcrumbs {
		position: relative;
		z-index: 3;
	}

	.speaker-cover__media {
		float: right;
		width: min(44.3vw, 850px);
		margin: -148px calc(50% - 50vw) 1.75rem 2rem;
	}
}

/* Адаптив планшетов: без наезда на цитату */
@media (min-width: 768px) and (max-width: 1199px) {
	.speaker-cover__media {
		width: min(42vw, 520px);
		margin-right: calc(50% - 50vw);
		margin-left: 1.5rem;
	}

	.speaker-cover blockquote.speaker-cover__quote {
		max-width: none;
		margin-right: calc(min(42vw, 520px) + 2rem);
		position: relative;
		z-index: 3;
	}

	.speaker-cover blockquote.speaker-cover__quote {
		font-size: 20px;
        padding: 22px 44px 22px 44px;
	}

	.speaker-cover blockquote.speaker-cover__quote::before, .speaker-cover blockquote.speaker-cover__quote::after {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 1024px) {
	.speaker-cover blockquote.speaker-cover__quote {
		margin-left: 0;
	}
}

.speaker-cover__decor {
	pointer-events: none;
}

.speaker-cover__decor img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Десктоп (макет Frame 1920): absolute-1 слева сверху, absolute-2 у левого нижнего края, absolute-3 справа внизу. */
.speaker-cover__decor--1 {
	left: 6%;
	top: min(359px, 35%);
	width: min(192px, 18vw);
	animation: mees-float-tilt-speaker-1 4.2s ease-in-out infinite;
	animation-delay: -0.5s;
	will-change: translate, rotate;
}

.speaker-cover__decor--2 {
	left: 0;
	bottom: min(193px, 15%);
	width: min(143px, 12vw);
	animation: mees-float-rock-speaker-2 4.8s ease-in-out infinite;
	animation-delay: -1.8s;
	will-change: translate, rotate;
}

.speaker-cover__decor--3 {
	right: clamp(12px, 1.8vw, 35px);
	bottom: 50px;
	width: min(368px, 22vw);
	animation: mees-float-sway-speaker-3 5.2s ease-in-out infinite;
	animation-delay: -2.4s;
	will-change: translate, rotate;
}

/* Планшет (макет узкой колонки в Figma): absolute-1 / absolute-2 справа; absolute-3 скрыт. */
@media (max-width: 1199px) {
	.speaker-cover__decor--3 {
		display: none;
	}

	.speaker-cover__decor--1 {
		left: 42%;
		right: auto;
		top: 30px;
		width: min(109px, 16vw);
	}
    .speaker-cover__decor--1 picture img {
        rotate: -70deg;
    }

	.speaker-cover__decor--2 {
		left: auto;
		right: 40px;
		bottom: max(120px, 10%);
		top: auto;
		width: min(107px, 22vw);
	}
}

@media (max-width: 767px) {
	/* Мобильный макет Figma: absolute-1 справа сверху, absolute-2 ниже по секции. */
	.speaker-cover__decor--1 {
		left: auto;
		right: 40px;
		top: min(300px, 35%);
		width: min(149px, 32vw);
	}

	.speaker-cover__decor--2 {
		left: auto;
		right: 40px;
		bottom: max(120px, 10%);
		top: auto;
		width: min(107px, 28vw);
	}

	.speaker-cover__layout {
		display: flex;
		flex-direction: column;
	}

	.speaker-cover__title {
		order: 1;
	}

	.speaker-cover blockquote.speaker-cover__quote {
		order: 2;
		margin-left: 72px;
		max-width: 482px;
		font-size: 25px;
		line-height: 140%;
		padding: 28px 72px;
	}

	.speaker-cover blockquote.speaker-cover__quote::before, .speaker-cover blockquote.speaker-cover__quote::after {
		width: 60px;
		height: 60px;
	}

	.speaker-cover__media {
		order: 3;
		float: none;
		width: 100%;
		margin: 0 0 1.25rem;
	}

	.speaker-cover .speaker-bio {
		order: 4;
		color: #013b47;
		font-family: Circe, sans-serif;
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

@media (max-width: 620px) {
	.speaker-cover__layout {
		display: flex;
		flex-direction: column;
	}

	.speaker-cover__title {
		order: 1;
	}

	.speaker-cover blockquote.speaker-cover__quote {
		order: 2;
		margin-left: 0;
		max-width: 482px;
		font-size: 25px;
		line-height: 140%;
		padding: 28px 72px;
	}

	.speaker-cover blockquote.speaker-cover__quote::before, .speaker-cover blockquote.speaker-cover__quote::after {
		width: 60px;
		height: 60px;
	}

	.speaker-cover__media {
		order: 3;
		float: none;
		width: 100%;
		margin: 0 0 1.25rem;
	}

	.speaker-cover .speaker-bio {
		order: 4;
		color: #013b47;
		font-family: Circe, sans-serif;
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

@media (max-width: 540px) {
	/* Мобильный макет Figma: absolute-1 справа сверху, absolute-2 ниже по секции. */
	.speaker-cover__decor--1 {
		left: auto;
		right: 10px;
		top: 120px;
		width: min(90px, 32vw);
	}

	.speaker-cover__decor--2 {
		left: auto;
		right: 10px;
		bottom: max(120px, 10%);
		top: auto;
		width: min(57px, 18vw);
	}

	.speaker-cover__layout {
		display: flex;
		flex-direction: column;
	}

	.speaker-cover__title {
		order: 1;
	}

	.speaker-cover blockquote.speaker-cover__quote {
		order: 2;
		margin-left: 0;
		max-width: none;
		font-size: 17px;
		line-height: 140%;
        padding: 22px 44px 22px 44px;
	}

	.speaker-cover blockquote.speaker-cover__quote::before, .speaker-cover blockquote.speaker-cover__quote::after {
		width: 40px;
		height: 40px;
	}

	.speaker-cover__media {
		order: 3;
		float: none;
		width: 100%;
		margin: 0 0 1.25rem;
	}

	.speaker-cover .speaker-bio {
		order: 4;
		color: #013b47;
		font-family: Circe, sans-serif;
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

@media (min-width: 541px) {
	.speaker-cover .speaker-bio {
		color: #013b47;
		font-family: Circe, sans-serif;
		font-size: 20px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

.speaker-bio .alignleft,
.speaker-bio .alignright {
	margin-bottom: 1rem;
}

.speaker-bio .alignleft {
	float: left;
	margin-right: 1.5rem;
}

.speaker-bio .alignright {
	float: right;
	margin-left: 1.5rem;
}

/* Достижения: заголовок и текст (макет), две колонки */
.main-page main .speaker-achievements h2,
.speaker-achievements h2 {
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading);
	font-size: 50px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	text-transform: uppercase;
}

.main-page main .speaker-achievements h2::first-letter,
.speaker-achievements h2::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

@media (max-width: 540px) {
	.main-page main .speaker-achievements h2,
	.speaker-achievements h2 {
		font-size: 25px;
	}
}

.speaker-achievements__list {
	column-count: 1;
	column-gap: 2.5rem;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
}

/* Две колонки только шире 768px; при 768px и ниже — одна колонка (базовое column-count: 1) */
@media (min-width: 769px) {
	.speaker-achievements__list {
		column-count: 2;
	}
}

@media (max-width: 540px) {
	.speaker-achievements__list {
		font-size: 15px;
	}
}

.speaker-achievements__list li {
	break-inside: avoid;
	margin-bottom: 15px;
}

.speaker-achievements__list li:last-child {
	margin-bottom: 0;
}

/* Аккордеон курсов */
.speaker-courses .container {
	position: relative;
	z-index: 1;
}

.speaker-courses__crystal {
	top: 102px;
	right: 121px;
	transform: rotate(21deg);
	animation: mees-float-simple 3.8s ease-in-out infinite;
	animation-delay: -2.1s;
	will-change: translate;
}

.speaker-courses__crystal picture,
.speaker-courses__crystal img {
	display: block;
}

@media (min-width: 1025px) {
	.speaker-courses__crystal img {
		width: 147px;
		height: auto;
	}

	.speaker-courses__bg {
		top: auto;
		bottom: 0;
		right: auto;
		left: 0;
		height: 100%;
		width: auto;
		max-height: 959px;
		transform: none;
	}

	.speaker-courses__bg picture {
		display: block;
		height: 100%;
		width: auto;
	}

	.speaker-courses__bg img {
		display: block;
		width: auto;
		height: 100%;
		max-height: 959px;
		object-fit: contain;
		object-position: left bottom;
	}
}

@media (max-width: 1024px) {
	.speaker-courses__bg {
		top: auto;
		right: 0;
		bottom: 0;
		left: auto;
		height: auto;
		width: auto;
		max-width: min(100vw, 629px);
		transform: none;
	}

	.speaker-courses__bg picture {
		display: block;
		height: auto;
		width: auto;
		max-width: 100%;
	}

	.speaker-courses__bg img {
		display: block;
		width: auto;
		height: auto;
		max-width: min(100vw, 629px);
		object-fit: contain;
	}

	.speaker-courses__crystal {
		top: 120px;
		right: 285px;
	}

	.speaker-courses__crystal img {
		width: 118px;
		height: auto;
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.speaker-courses__crystal {
		top: 70px;
		right: 285px;
	}
}

@media (max-width: 575px) {
	.speaker-courses__crystal {
		top: 38px;
		right: 43px;
	}

	.speaker-courses__crystal img {
		width: 60px;
		height: auto;
	}
}

.speaker-courses__title {
	margin-bottom: 0;
	color: #013b47;
}

.speaker-courses__title::first-letter {
	color: #fff;
}

.main-page main .speaker-courses .speaker-courses__title::first-letter {
	color: #fff;
}

.speaker-courses__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 50px;
}

.speaker-courses__header .speaker-courses__title {
	flex: 1 1 auto;
	min-width: 0;
}

.speaker-courses__header .speaker-courses__toggle-all {
	flex: 0 0 auto;
	margin-left: auto;
}

.speaker-courses__toggle-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	gap: 10px;
	padding: 15px 35px;
	border-radius: 100px;
	border: 1px solid #fff;
	background: #fff;
	color: var(--goluboy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);
}

.speaker-courses__toggle-all:hover {
	border-color: var(--zelenyy);
	color: var(--goluboy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

.speaker-courses__toggle-all-icon {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.speaker-courses__toggle-all-icon::before,
.speaker-courses__toggle-all-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: opacity var(--transition-duration) var(--transition-timing-function);
}

.speaker-courses__toggle-all-icon::before {
	width: 16px;
	height: 2px;
}

.speaker-courses__toggle-all-icon::after {
	width: 2px;
	height: 16px;
}

.speaker-courses__toggle-all.is-collapsing .speaker-courses__toggle-all-icon::after {
	opacity: 0;
}

.speaker-courses__list {
	margin-top: 0;
	border-top: 1px solid #d9d8d8;
	overflow-anchor: none;
}

.speaker-course-panel {
	border-bottom: 1px solid #d9d8d8;
	margin-bottom: 0;
	padding: 30px 0;
}

.speaker-course-panel:not([open]) {
	cursor: pointer;
}

.speaker-course-panel__summary {
	cursor: pointer;
	list-style: none;
	color: #fff;
	padding: 0;
	transition: color var(--transition-duration) var(--transition-timing-function);
}

.speaker-course-panel:not([open]):hover .speaker-course-panel__summary,
.speaker-course-panel__summary:hover {
	color: #bfdaa0;
}

.speaker-course-panel__title {
	margin: 0;
	font-family: "Circe", sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 140%;
	text-transform: uppercase;
	color: inherit;
	transition: color var(--transition-duration) var(--transition-timing-function);
}

.speaker-course-panel__summary::-webkit-details-marker {
	display: none;
}

.speaker-course-panel__icon {
	width: 25px;
	height: 25px;
	flex-shrink: 0;
	position: relative;
	margin-right: 40px;
}

.speaker-course-panel__icon::before,
.speaker-course-panel__icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.speaker-course-panel__icon::before {
	width: 25px;
	height: 2px;
}

.speaker-course-panel__icon::after {
	width: 2px;
	height: 25px;
	transition: opacity var(--transition-duration) var(--transition-timing-function);
}

details[open] .speaker-course-panel__icon::after {
	opacity: 0;
}

.speaker-course-panel__body {
	padding-top: 20px;
	padding-bottom: 0;
	font-family: "Circe", sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 140%;
	color: #fff;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	will-change: max-height, opacity;
	transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.speaker-course-panel[open] .speaker-course-panel__body {
	opacity: 1;
}

.speaker-course-panel__body > :first-child {
	margin-top: 0;
}

.speaker-course-panel__body p {
	margin: 0;
}

.speaker-course-panel__body p + p {
	margin-top: 15px;
}

.speaker-course-panel__actions {
	margin-top: 20px;
	padding-bottom: 0;
}

.speaker-course-panel__actions .but {
	font-size: 17px;
	padding: 8px 21px 7px;
	border-radius: 100px;
	line-height: normal;
}

.speaker-course-panel__actions .bg-white {
	border: 1px solid #fff;
	color: var(--goluboy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	transition-property: box-shadow, filter, opacity, transform, color, border-color;
}

.speaker-course-panel__actions .bg-white:hover {
	border-color: var(--zelenyy);
	color: var(--goluboy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

.speaker-course-panel__actions .bg-gradient {
	border: 1px solid #fff;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
	transition-property: box-shadow, filter, opacity, transform, border-color;
}

.speaker-course-panel__actions .bg-gradient:hover {
	border-color: var(--zelenyy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
	outline: none;
}

.speaker-courses__contact {
	margin-top: 50px;
}

.speaker-courses__contact-btn {
	border: 1px solid #fff;
	box-shadow: 0 5px 30px rgba(113, 178, 222, 0.3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	min-height: 65px;
	line-height: normal;
	padding: 0 40px;
	outline: none;
	transition-property: box-shadow, filter, opacity, transform, border-color;
}

.speaker-courses__contact-btn:hover {
	box-shadow: 0 5px 20px 0 hsla(88, 44%, 74%, 0.3);
	border-color: var(--zelenyy);
	outline: none;
}

/* Хлебные крошки (страница спикера): типографика из макета */
nav.speaker-breadcrumbs.text-md,
.speaker-breadcrumbs {
	font-family: Circe, sans-serif;
	font-size: 20px;
	font-style: normal;
	line-height: 140%;
}

.speaker-breadcrumbs .sep {
	margin: 0 0.35em;
	color: #013b47;
	font-weight: 700;
}

.speaker-breadcrumbs a {
	color: #013b47;
	font-weight: 700;
	text-decoration: none;
}

.speaker-breadcrumbs a:hover {
	color: #71b2de;
	text-decoration: none;
}

.speaker-breadcrumbs .current {
	color: #013b47;
	font-weight: 400;
}


.btn-new, .btn-popular {
	border: 1px solid #fff;
}

/* Продукция: режим «только отмеченные» — активная вкладка без повторного клика */
.products--filter-badges .tab-button.active,
.products--filter-badges .tab-button.activ {
	pointer-events: none;
	cursor: default;
	border: 1px solid #BFDAA0;
}

/* Продукция: режим «все товары» — кнопки как фильтры (не вкладки) */
.products--filter-category .tab-button {
	pointer-events: auto;
	cursor: pointer;
}

.products--filter-category .tab-button.tab-button--filter-off {
	border: 1px solid #fff;
}

.products--filter-category .tab-button.tab-button--filter-on {
	border: 1px solid #BFDAA0;
}

/* Слайдер продукции: скрытые карточки при фильтре (не трогаем DOM — галереи внутри карточек целы) */
.products-swiper-slide--hidden {
	display: none !important;
}

.products--filter-category .swiper-product-css .swiper-wrapper {
	align-items: stretch;
}

.catalog-archive.catalog-block-ajax--loading .catalog-block-ajax-body,
.catalog-archive.catalog-block-ajax--loading .catalog-archive-ajax-body {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.catalog-archive--block .grid > [class*="col-"] {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.catalog-archive--block .grid > [class*="col-"] .card-product {
	width: 100%;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Архив каталога: одинаковая высота карточек в каждом ряду */
.catalog-archive .grid > [class*="col-"] {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.catalog-archive .grid > [class*="col-"] .card-product {
	width: 100%;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/*
 * Архивные сетки карточек: явное число колонок вместо 12-col Flashgrid.
 * Иначе column-gap × 11 даёт min-width ~330px, даже с minmax(0, 1fr).
 */
.catalog-archive .catalog-grid {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
}

.catalog-archive .catalog-grid > [class*="col-"] {
	grid-column: 1 / -1;
}

@media (min-width: 576px) {
	.catalog-archive .catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.catalog-archive .catalog-grid > [class*="col-"] {
		grid-column: auto;
	}
}

@media (min-width: 768px) {
	.catalog-archive .catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.catalog-archive .catalog-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Блок «Продукция: сетка» — те же брейкпоинты, что у слайдера (512 / 768 / 1280) */
.catalog-archive--block .catalog-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 512px) {
	.catalog-archive--block .catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.catalog-archive--block .catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.catalog-archive--block .catalog-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.reviews-archive .reviews-archive__grid {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
}

.reviews-archive .reviews-archive__grid > [class*="col-"] {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.reviews-archive .reviews-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.reviews-archive .reviews-archive__grid > [class*="col-"] {
		grid-column: auto;
	}
}

.speakers-archive .grid {
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
}

.speakers-archive .grid > [class*="col-"] {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.speakers-archive .grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.speakers-archive .grid > [class*="col-"] {
		grid-column: auto;
	}
}

@media (min-width: 992px) {
	.speakers-archive .grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.catalog-archive .catalog-filters .catalog-filter-button--tax {
	padding: 15px 35px;
	border: 1px solid #fff;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.catalog-archive .catalog-filters .catalog-filter-button--tax:hover {
	border: 1px solid var(--goluboy);
}

.catalog-archive .catalog-filters .catalog-filter-button--tax.active {
	pointer-events: none;
	cursor: default;
	border-color: transparent;
}

.catalog-archive .catalog-filters .catalog-filter-button--tax.active:hover {
	border-color: transparent;
}

.reviews-archive .catalog-filters .catalog-filter-button {
	padding: 15px 35px;
	border: 1px solid #fff;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.reviews-archive .catalog-filters .catalog-filter-button:hover {
	border: 1px solid var(--goluboy);
}

.reviews-archive .catalog-filters .catalog-filter-button.active {
	pointer-events: none;
	cursor: default;
	border-color: transparent;
}

.reviews-archive .catalog-filters .catalog-filter-button.active:hover {
	border-color: transparent;
}

/* Навигация архива: выпадающий список и компактный планшет */
.archive-tax-nav__select-wrap {
	display: none;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.archive-tax-nav__select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--goluboy);
	transform: translateY(-25%);
	pointer-events: none;
}

.archive-tax-nav__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 15px 45px 15px 35px;
	border: 1px solid #fff;
	border-radius: 100px;
	background: #fff;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	color: var(--goluboy);
	font-family: var(--font-family, inherit);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color var(--transition-duration, 200ms) var(--transition-timing-function, ease), box-shadow var(--transition-duration, 200ms) var(--transition-timing-function, ease);
}

.archive-tax-nav__select:hover,
.archive-tax-nav__select:focus {
	outline: none;
	border-color: var(--goluboy);
}

.archive-tax-nav__select option {
	color: #000;
	text-transform: none;
	font-size: 16px;
}

@media (max-width: 575px) {
	.archive-tax-nav[data-select-mobile="1"] .archive-tax-nav__select-wrap {
		display: block;
	}

	.archive-tax-nav[data-select-mobile="1"] .archive-tax-nav__buttons {
		display: none;
	}

	.archive-tax-nav__select {
		padding: 10px 40px 10px 20px;
		font-size: 13px;
	}

	.archive-tax-nav__select-wrap::after {
		right: 18px;
	}
}

@media (min-width: 576px) and (max-width: 767px) {
	.archive-tax-nav[data-select-tablet="1"] .archive-tax-nav__select-wrap {
		display: block;
	}

	.archive-tax-nav[data-select-tablet="1"] .archive-tax-nav__buttons {
		display: none;
	}

	.archive-tax-nav--compact-tablet:not([data-select-tablet="1"]) .catalog-filter-button--tax {
		padding: 10px 22px;
		font-size: 13px;
		line-height: 1.2;
	}

	.archive-tax-nav--compact-tablet:not([data-select-tablet="1"]) .archive-tax-nav__buttons {
		gap: 10px;
	}
}

/* Мета-фильтры каталога: новинки, популярные, избранное */
.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.but {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 18px;
	min-height: 0;
	border: 1px solid #fff;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
}

.catalog-archive .catalog-filters--meta .catalog-filter-button__label {
	display: block;
	line-height: 1;
	padding: 0;
	margin: 0;
}

.catalog-archive .catalog-filters--meta .catalog-filter-button__icon {
	display: block;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.catalog-archive .catalog-filters--meta img.catalog-filter-button__icon {
	object-fit: contain;
}

.catalog-archive .catalog-filters--meta .catalog-filter-button__icon--favorites {
	background-color: var(--goluboy);
	-webkit-mask: url("../img/i/heart.svg") center / contain no-repeat;
	mask: url("../img/i/heart.svg") center / contain no-repeat;
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta:hover {
	border-color: var(--goluboy);
	color: var(--goluboy);
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta:hover .catalog-filter-button__icon--favorites {
	background-color: var(--goluboy);
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.active,
.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.active.col-zelenyy {
	pointer-events: auto;
	cursor: pointer;
	background: #fff;
	color: var(--zelenyy);
	border-color: var(--zelenyy);
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.active .catalog-filter-button__icon--favorites {
	background-color: var(--zelenyy);
	-webkit-mask-image: url("../img/i/heart-fill.svg");
	mask-image: url("../img/i/heart-fill.svg");
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.active:hover {
	border-color: var(--goluboy);
	color: var(--goluboy);
}

.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.active:hover .catalog-filter-button__icon--favorites {
	background-color: var(--goluboy);
}

@media (max-width: 575px) {
	.catalog-archive .catalog-filters--meta {
		gap: 6px;
	}

	.catalog-archive .catalog-filters--meta .catalog-filter-button--meta.but {
		padding: 5px 12px;
		font-size: 11px;
		gap: 4px;
	}

	.catalog-archive .catalog-filters--meta .catalog-filter-button__icon {
		width: 16px;
		height: 16px;
	}
}

.reviews-archive .grid > [class*="col-"] {
	display: flex;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.reviews-archive .reviews-archive__grid {
	row-gap: var(--size-30);
	column-gap: 0;
}

@media (min-width: 576px) {
	.reviews-archive .reviews-archive__grid {
		column-gap: var(--size-30);
	}
}

.reviews-archive .grid > [class*="col-"] .card-reviews {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
}

/* На мобильных в архиве отзывов принудительно включаем тот же стек,
   чтобы карточка никогда не фиксировалась на ~330px и не выходила за экран. */
@media (max-width: 575px) {
	.reviews-archive .card-reviews .icon-container {
		flex-wrap: wrap !important;
		row-gap: 10px;
	}

	.reviews-archive .card-reviews .icon-container img {
		flex: 0 1 100%;
		max-width: 180px;
		min-width: 0;
	}

	.reviews-archive .card-reviews .icon-container .card-reviews__details {
		flex: 1 1 100%;
		min-width: 0 !important;
	}
}

.catalog-archive .catalog-empty-message {
	margin: 24px 0 0;
	color: var(--temno-zelenyy);
	font-size: 17px;
	line-height: 140%;
}

.catalog-archive .btn-catalog.btn-lessons-cabinet,
.reviews-archive .btn-catalog.btn-lessons-cabinet {
	width: auto;
	max-width: 100%;
	height: auto;
	min-height: 0;
	padding: 20px 42px;
	line-height: 1.35;
	white-space: normal;
	text-align: center;
	word-break: break-word;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.reviews-archive .reviews-archive__cta-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.reviews-archive .btn-lessons-cabinet--secondary {
	border: 1px solid var(--goluboy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
}

.reviews-archive .btn-lessons-cabinet--secondary:hover {
	border-color: var(--zelenyy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

.catalog-archive .catalog-archive__cta-wrap,
.catalog-archive .reviews-archive__cta-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.catalog-archive .btn-lessons-cabinet--secondary {
	border: 1px solid var(--goluboy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
}

.catalog-archive .btn-lessons-cabinet--secondary:hover {
	border-color: var(--zelenyy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

@media (max-width: 575px) {
	.catalog-archive__cta-wrap,
	.reviews-archive__cta-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.catalog-archive .catalog-archive__cta-wrap .btn-catalog.btn-lessons-cabinet,
	.reviews-archive .reviews-archive__cta-wrap .btn-catalog.btn-lessons-cabinet {
		width: 100%;
	}
}

/* Продукция: единая высота карточек и выравнивание контента */
.swiper-product-css .swiper-slide {
	height: auto;
}

.swiper-product-css .swiper-slide .card-product {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card-product .box-icon-card-product {
	margin-bottom: 10px;
}

.card-product .card-product__badges {
	gap: 4px;
}

.card-product .i-badge {
	display: inline-flex;
	line-height: 0;
	flex-shrink: 0;
}

/* ── Страница и галерея товара ── */
.product-single .mees-default-content-wrap,
.product-single__wrap {
	padding: 0;
	width: 100%;
}

.product-single__article {
	width: 100%;
	max-width: none;
}

.product-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	width: 100%;
}

@media (min-width: 992px) {
	.product-single__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 40px;
	}
}

.product-single__media {
	min-width: 0;
	width: 100%;
	overflow: visible;
}

.product-single__media-inner {
	position: relative;
	margin-top: 14px;
	overflow: visible;
}

/* Избранное: правый верх слайдера, белый круг и тень, с выступом над галереей */
.product-single__favorite {
	position: absolute;
	top: -14px;
	right: 12px;
	z-index: 30;
	pointer-events: none;
}

.product-single__favorite .i-heart {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid transparent;
	padding: 0;
	line-height: 0;
	cursor: pointer;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
	transition-property: box-shadow, border-color;
}

.product-single__favorite .i-heart:hover {
	border-color: #bfdaa0;
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
	outline: none;
}

.product-single__favorite .i-heart img {
	display: block;
	width: 30px;
	height: 30px;
}

.product-single__media .product-gallery--single,
.product-single__media .product-gallery__main-box {
	overflow: visible;
}

.product-single--wc .product-single__media {
	position: relative;
}

.product-single__info {
	min-width: 0;
	width: 100%;
}

.product-single__info.mees-default-content {
	display: block;
	width: 100% !important;
	max-width: none;
}

.product-single__excerpt {
	margin: 0 0 20px;
	color: var(--mees-text, #013b47);
	font-size: 17px;
	line-height: 1.4;
}

.product-single__excerpt p {
	margin: 0 0 0.75em;
	font-size: inherit;
	line-height: inherit;
}

.product-single__excerpt p:last-child {
	margin-bottom: 0;
}

.product-single__below {
	margin-top: 48px;
	width: 100%;
}

.product-single__description.entry-content {
	width: 100%;
	max-width: none;
}

.product-single__related,
.product-related {
	width: 100%;
	max-width: 100%;
	margin-top: 48px;
}

.product-related__title {
	font-size: clamp(28px, 3.8vw, 50px);
	line-height: 1.25;
	color: var(--mees-text, #013b47);
}

.product-related__title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

.product-related__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	max-width: 100%;
}

.product-related__grid > [class*="col-"] {
	display: flex;
	grid-column: 1 / -1;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.product-related__grid > [class*="col-"] .card-product {
	width: 100%;
	max-width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

@media (min-width: 576px) {
	.product-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.product-related__grid > [class*="col-"] {
		grid-column: auto;
	}
}

@media (min-width: 768px) {
	.product-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.product-related__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.product-single__price {
	margin: 0 0 24px;
	font-size: 22px;
	line-height: 1.4;
	color: var(--temno-zelenyy);
}

.product-single .product-single__badge-out.card-product__badge-out:not(.card-product__badge-out--button) {
	display: block;
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 140%;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: var(--goluboy, #71b2de);
	border: 0;
	border-radius: 0;
	background: none;
	white-space: normal;
	word-break: break-word;
}

.product-single__actions {
	margin-bottom: 30px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Форма WC «В корзину» — единая на WC- и me_product-страницах */
.product-single .summary form.cart,
.product-single form.cart.product-single__cart-form,
.product-single .product-single__cart-form form.cart {
	--mees-wc-cart-control-h: 52px;
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
	width: auto;
	max-width: 100%;
}

.product-single .summary form.cart::before,
.product-single .summary form.cart::after,
.product-single form.cart.product-single__cart-form::before,
.product-single form.cart.product-single__cart-form::after,
.product-single .product-single__cart-form form.cart::before,
.product-single .product-single__cart-form form.cart::after {
	display: none !important;
	content: none !important;
}

.product-single .summary form.cart .quantity,
.product-single form.cart.product-single__cart-form .quantity,
.product-single .product-single__cart-form form.cart .quantity,
.woocommerce div.product form.cart div.quantity {
	margin: 0;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.product-single .summary form.cart .quantity .qty.form-inp,
.product-single .summary form.cart .quantity .qty,
.product-single form.cart.product-single__cart-form .quantity .qty.form-inp,
.product-single form.cart.product-single__cart-form .quantity .qty,
.product-single .product-single__cart-form form.cart .quantity .qty.form-inp,
.product-single .product-single__cart-form form.cart .quantity .qty {
	box-sizing: border-box;
	width: 5rem !important;
	min-width: 5rem !important;
	max-width: 5rem !important;
	height: var(--mees-wc-cart-control-h) !important;
	min-height: var(--mees-wc-cart-control-h) !important;
	max-height: var(--mees-wc-cart-control-h) !important;
	padding: 0 8px 0 12px !important;
	border: 1px solid #929292;
	border-radius: 100px;
	text-align: center;
	font-size: 17px;
	line-height: 1;
	font-family: var(--font-family, Circe, sans-serif);
	color: #000;
	box-shadow: none;
	background: #fff;
}

.product-single .summary form.cart .single_add_to_cart_button.btn-product-action,
.product-single form.cart.product-single__cart-form .single_add_to_cart_button.btn-product-action,
.product-single .product-single__cart-form form.cart .single_add_to_cart_button.btn-product-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: var(--mees-wc-cart-control-h);
	min-height: var(--mees-wc-cart-control-h);
	padding: 0 35px;
	margin: 0;
	line-height: 1.2;
	white-space: nowrap;
	flex: 0 0 auto;
}

.product-single .product-single__cart-form--no-qty .quantity {
	display: none !important;
}

.product-single .summary form.cart {
	margin-bottom: 24px;
}

/* Кнопки страницы товара — ширина по содержимому, перенос длинного текста (как CTA каталога) */
.product-single__actions:has(> .btn-product-action + .btn-product-action) {
	flex-wrap: wrap;
}

.card-product .btn-product-action,
.product-single__actions .btn-product-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: auto;
	align-self: center;
	max-width: 100%;
}

.card-product .btn-product-action {
	flex: 0 0 auto;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	min-height: 40px;
	padding: 8px 21px 7px;
	font-size: 17px;
	line-height: 1.2;
}

.product-single__actions .btn-product-action {
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	padding: 15px 35px;
	min-height: 48px;
	font-size: 17px;
	line-height: 1.35;
	white-space: normal;
	text-align: center;
	word-break: break-word;
	overflow-wrap: break-word;
}

@media (max-width: 575px) {
	.product-single__actions:not(:has(.product-single__cart-form)) {
		flex-direction: column;
		align-items: stretch;
	}

	.product-single__actions:not(:has(.product-single__cart-form)) .btn-product-action {
		width: 100%;
		flex: 1 1 auto;
	}

	.product-single__actions:has(.product-single__cart-form) {
		align-items: center;
	}

	.product-single__actions .product-single__cart-form.cart {
		align-self: flex-start;
		flex: 0 1 auto;
		width: auto;
		max-width: 100%;
	}
}

.card-product .btn-product-secondary.btn-product-action,
.product-single__actions .btn-product-secondary.btn-product-action {
	border: 1px solid var(--goluboy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
}

.card-product .btn-product-secondary.btn-product-action:hover,
.product-single__actions .btn-product-secondary.btn-product-action:hover {
	border-color: var(--zelenyy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

.card-product .btn-basket.btn-product-action,
.product-single__actions .btn-basket.btn-product-action {
	border: 1px solid transparent;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
	transition-property: box-shadow, filter, opacity, transform, border-color;
}

.card-product .btn-basket.btn-product-action:hover,
.product-single__actions .btn-basket.btn-product-action:hover {
	border-color: #bfdaa0;
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
	outline: none;
}

.product-gallery {
	position: relative;
	width: 100%;
}

.product-gallery--single {
	position: relative;
}

.product-gallery__main.swiper {
	width: 100%;
	overflow: hidden;
}

.product-gallery__main .swiper-slide {
	width: 100% !important;
	height: auto;
	flex-shrink: 0;
	box-sizing: border-box;
}

.product-gallery__link {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-in;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
}

.product-gallery__link img,
.product-gallery__link .wp-post-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	flex-shrink: 0;
}

/* Вписывание: маленькие фото не увеличиваются, только центрируются */
.product-gallery--single .product-gallery__main .swiper-wrapper,
.product-gallery--card.product-gallery--fit-contain .product-gallery__main .swiper-wrapper {
	align-items: center;
}

.product-gallery--single .product-gallery__main .swiper-slide,
.product-gallery--card.product-gallery--fit-contain .product-gallery__main .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-gallery--single .product-gallery__link {
	min-height: 200px;
	max-width: 100%;
	width: 100%;
}

.product-gallery--single .product-gallery__link img,
.product-gallery--single .product-gallery__link .wp-post-image {
	max-height: min(70vh, 640px);
	object-fit: contain;
	object-position: center center;
}

.product-gallery--card.product-gallery--fit-contain .product-gallery__link {
	min-height: 140px;
	max-width: 100%;
	width: 100%;
	aspect-ratio: unset;
}

.product-gallery--card.product-gallery--fit-contain .product-gallery__link img,
.product-gallery--card.product-gallery--fit-contain .product-gallery__link .wp-post-image {
	max-height: 280px;
	object-fit: contain;
	object-position: center center;
}

.product-gallery--card.product-gallery--fit-cover .product-gallery__main .swiper-wrapper {
	align-items: stretch;
}

.product-gallery--card.product-gallery--fit-cover .product-gallery__main .swiper-slide {
	display: block;
}

.product-gallery--card.product-gallery--fit-cover .product-gallery__link {
	width: 100%;
	aspect-ratio: 1;
}

.product-gallery--card.product-gallery--fit-cover .product-gallery__link img,
.product-gallery--card.product-gallery--fit-cover .product-gallery__link .wp-post-image {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

.product-gallery--single .product-gallery__main-box {
	position: relative;
	margin-bottom: 12px;
	overflow: visible;
}

.product-single__media {
	overflow: visible;
}

.product-gallery--single .product-gallery__main .swiper-slide {
	height: auto;
}

/* Стрелки как у слайдера спикеров (btn-swiper-blue), позиция под колонку товара */
.product-gallery--single .product-gallery__main-box .swiper-button-next.btn-swiper-left,
.product-gallery--single .product-gallery__main-box .swiper-button-prev.btn-swiper-right {
	top: 50%;
	margin-top: -25px;
	z-index: 3;
}

.product-gallery--single .product-gallery__main-box .swiper-button-next.btn-swiper-left {
	right: -20px;
}

.product-gallery--single .product-gallery__main-box .swiper-button-prev.btn-swiper-right {
	left: -20px;
}

.product-gallery--single .product-gallery__main-box .swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.product-gallery__fraction {
	position: absolute;
	right: 16px;
	bottom: 14px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 100px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 600;
	pointer-events: none;
}

.product-gallery__thumbs-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.product-gallery__thumbs-box .product-gallery__thumbs {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.product-gallery__thumbs-box .btn-swiper-blue {
	position: static;
	flex-shrink: 0;
	left: auto;
	right: auto;
	margin: 0;
}

.product-gallery__thumbs-box .swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.product-gallery__thumbs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	margin-top: 8px;
	max-height: 240px;
	overflow-y: auto;
	padding: 2px;
}

.product-gallery__thumbs-grid .product-gallery__thumb {
	width: 100%;
	height: 72px;
	opacity: 0.6;
}

.product-gallery__thumbs-grid .product-gallery__thumb.is-active {
	border-color: var(--goluboy);
	opacity: 1;
}

/* На узком экране стрелки основного слайда скрыты (свайп / переключение по превью). */
@media (max-width: 1329px) {
	.product-gallery--single .product-gallery__main-box .swiper-button-next,
	.product-gallery--single .product-gallery__main-box .swiper-button-prev,
	.product-gallery--single .product-gallery__thumbs-box .swiper-button-next,
	.product-gallery--single .product-gallery__thumbs-box .swiper-button-prev {
		display: none !important;
	}
}

@media (max-width: 575px) {
	.product-gallery__thumbs-grid {
		grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
		max-height: 200px;
	}
}

.product-gallery__thumbs .swiper-slide {
	width: auto;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.product-gallery__thumbs .swiper-slide-thumb-active {
	opacity: 1;
}

.product-gallery__thumb {
	display: block;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.product-gallery__thumbs .swiper-slide-thumb-active .product-gallery__thumb {
	border-color: var(--goluboy);
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.product-gallery--card .product-gallery__main {
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
}

.product-gallery--card .product-gallery__link {
	cursor: pointer;
	border-radius: 0;
	background: transparent;
}

/* Лайтбокс: белый фон у PNG/WebP на самом img (масштабируется вместе с зумом) */
.fancybox__container.fancybox--white-bg {
	--f-carousel-slide-bg: transparent;
	--f-thumb-img-fit: cover;
}

.fancybox__container.fancybox--white-bg .fancybox__backdrop {
	background: rgba(0, 0, 0, 0.82);
}

.fancybox__container.fancybox--white-bg .fancybox__slide,
.fancybox__container.fancybox--white-bg .fancybox__slide .f-panzoom,
.fancybox__container.fancybox--white-bg .fancybox__slide .f-panzoom__wrapper,
.fancybox__container.fancybox--white-bg .fancybox__slide .f-panzoom__viewport {
	background: transparent !important;
}

.fancybox__container.fancybox--white-bg .f-panzoom__viewport {
	position: absolute;
}

.fancybox__container.fancybox--white-bg .f-panzoom__viewport > img.f-panzoom__content {
	position: relative;
	z-index: 1;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
	background-color: transparent !important;
}

.fancybox__container.fancybox--white-bg .f-panzoom__viewport > img.f-panzoom__content[data-mees-white-bg='1'] {
	background-color: #fff !important;
}

/* Миниатюры: cover как на странице; белый только у img (прозрачные края) */
.fancybox__container.fancybox--white-bg .f-thumbs.is-modern .f-thumbs__slide button {
	overflow: hidden;
}

.fancybox__container.fancybox--white-bg .f-thumbs.is-modern .f-thumbs__slide button img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center;
}

.entry-content a[data-mees-content-lightbox],
.product-single__description a[data-mees-content-lightbox],
.product-single__below a[data-mees-content-lightbox] {
	cursor: zoom-in;
}

/* Лайтбокс на мобильных: стрелки не мешают свайпу */
@media (max-width: 1329px) {
	.fancybox__container.fancybox--product > .f-button.is-prev,
	.fancybox__container.fancybox--product > .f-button.is-next,
	.fancybox__container.fancybox--content > .f-button.is-prev,
	.fancybox__container.fancybox--content > .f-button.is-next {
		display: none !important;
	}
}

@media (min-width: 1330px) {
	.fancybox__container.fancybox--product > .f-button.is-prev,
	.fancybox__container.fancybox--product > .f-button.is-next,
	.fancybox__container.fancybox--content > .f-button.is-prev,
	.fancybox__container.fancybox--content > .f-button.is-next {
		opacity: 0.55;
		transition: opacity 0.2s ease;
	}

	.fancybox__container.fancybox--product > .f-button.is-prev:hover,
	.fancybox__container.fancybox--product > .f-button.is-next:hover,
	.fancybox__container.fancybox--content > .f-button.is-prev:hover,
	.fancybox__container.fancybox--content > .f-button.is-next:hover {
		opacity: 0.9;
	}
}

.mees-product-price {
	display: inline;
	white-space: normal;
	font-size: inherit;
	line-height: inherit;
}

.mees-product-price__amount,
.mees-product-price__currency,
.mees-product-price__suffix,
.mees-product-price__sep {
	display: inline;
	margin: 0;
	padding: 0;
}

.mees-product-price__currency {
	vertical-align: baseline;
}

.mees-product-price__currency-icon {
	display: inline-block;
	height: 1em;
	width: auto;
	vertical-align: -0.1em;
	margin: 0;
}

.mees-product-price__currency-text {
	display: inline;
}

.product-single__header {
	margin-bottom: 24px;
}

.product-single__info.mees-default-content .entry-title.product-single__title,
.product-single__header .product-single__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading, Forum, Georgia, serif);
	font-size: clamp(28px, 3.8vw, 50px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: uppercase;
}

.product-single__info.mees-default-content .entry-title.product-single__title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

@media (max-width: 1024px) and (min-width: 541px) {
	.product-single__info.mees-default-content .entry-title.product-single__title,
	.product-single__header .product-single__title {
		font-size: clamp(28px, 3.8vw, 50px);
	}
}

@media (max-width: 540px) {
	.product-single__info.mees-default-content .entry-title.product-single__title,
	.product-single__header .product-single__title {
		font-size: 25px;
		letter-spacing: normal;
	}
}

.card-product .card-product__box-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: auto;
	min-width: 0;
}

.card-product .card-product__price {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
}

del {
    font-size: 16px;
    color: #CC376D;
    font-weight: 600;
}

.card-product__price del {
    font-size: 14px;
}

.mees-product-price ins {
    background: none;
    color: var(--temno-zelenyy);
}

/* Бейдж статуса: по умолчанию — текст как в описании карточки */
.card-product .card-product__badge-out {
	display: inline;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 140%;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: var(--goluboy, #71b2de);
	border: 0;
	border-radius: 0;
	background: none;
	white-space: normal;
	word-break: break-word;
}

.card-product .card-product__badge-out--button,
.product-single .product-single__badge-out.card-product__badge-out--button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	padding: 8px 18px;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: 1px solid currentColor;
	border-radius: 100px;
	background: color-mix(in srgb, currentColor 12%, transparent);
	white-space: normal;
	word-break: break-word;
}

.product-single .product-single__badge-out.card-product__badge-out--button {
	margin: 0 0 24px;
}

/* Кнопки: в одном ряду с ценой/бейджем — на свободное место; не помещается — вся кнопка на новую строку */
.card-product .card-product__actions {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	flex: 1 1 0;
	width: auto;
	min-width: max-content;
	max-width: 100%;
	box-sizing: border-box;
}

.card-product .card-product__actions:has(> .btn-product-action:only-child) {
	flex: 1 1 0;
	min-width: max-content;
}

.card-product .card-product__actions:has(> .btn-product-action:only-child) .btn-product-action {
	flex: 1 1 auto;
	width: 100%;
	min-width: max-content;
	max-width: 100%;
}

.card-product .card-product__actions:has(> .btn-product-action + .btn-product-action) {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	flex-wrap: wrap;
}

.card-product .card-product__actions:has(> .btn-product-action + .btn-product-action) .btn-product-action {
	flex: 1 1 auto;
	width: auto;
	min-width: max-content;
	max-width: 100%;
}

.card-product .card-product__actions .btn-product-action {
	max-width: 100%;
}

.card-product .card-product_des.is-clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: var(--card-excerpt-lines, 4);
}

.card-product .card-product__img {
	min-height: 140px;
	display: block;
}

.card-product .card-product__img .product-gallery {
	width: 100%;
}

.card-product .card-product__img > img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.card-product .card-product__details {
	flex: 1 1 auto;
	align-content: start;
}

.card-product .i-heart {
	background: transparent;
	border: 0;
	padding: 0;
	line-height: 0;
	cursor: pointer;
}

@media (max-width: 575px) {
	.card-product .card-product__box-price {
		align-items: flex-start;
	}
}

/* ── Декоративные анимации ───────────────────────────────────────────────── */

/*
 * Логотип секции «О нас»: плавное движение по восьмёрке (лемниската).
 * Используем translate-свойство (CSS Individual Transforms), чтобы не
 * перекрывать transform из main.min.css. linear + симметричные точки кривой
 * дают равномерный ход вдоль траектории.
 */
@keyframes mees-float-eight {
	0%    { translate:    0px   0px; }
	12.5% { translate:   32px  20px; }
	25%   { translate:   44px   0px; }
	37.5% { translate:   32px -20px; }
	50%   { translate:    0px   0px; }
	62.5% { translate:  -32px  20px; }
	75%   { translate:  -44px   0px; }
	87.5% { translate:  -32px -20px; }
	100%  { translate:    0px   0px; }
}

.about-logo {
	animation: mees-float-eight 9s linear infinite;
	will-change: translate;
}

/*
 * Кристаллы и декоративные фигуры: лёгкое «парение».
 * translate + rotate как отдельные свойства — не влияют на transform-правила
 * адаптивных брейкпоинтов (translateX/-Y) в main.min.css.
 */
@keyframes mees-float-simple {
	0%, 100% { translate: 0 0;     }
	50%      { translate: 0 -30px; }
}

@keyframes mees-float-tilt {
	0%, 100% { translate: 0 0;      rotate:  0deg;  }
	50%      { translate: 0 -28px; rotate:  8deg;  }
}

@keyframes mees-float-rock {
	0%, 100% { translate: 0 0;      rotate: -7deg; }
	50%      { translate: 0 -24px; rotate:  7deg; }
}

@keyframes mees-float-sway {
	0%, 100% { translate:   0     0;     rotate:  0deg;   }
	33%      { translate: -20px -20px; rotate: -7deg;   }
	66%      { translate:  20px -20px; rotate:  7deg;   }
}

/* Обложка спикера: анимации с учётом базового поворота из макета Figma (не сбрасывать в 0deg). */
@keyframes mees-float-tilt-speaker-1 {
	0%, 100% { translate: 0 0;      rotate: -14deg; }
	50%      { translate: 0 -28px; rotate: -6deg;  }
}

@keyframes mees-float-rock-speaker-2 {
	0%, 100% { translate: 0 0;      rotate: 11deg; }
	50%      { translate: 0 -24px; rotate: -3deg; }
}

@keyframes mees-float-sway-speaker-3 {
	0%, 100% { translate: 0 0;       rotate: -9deg;  }
	33%      { translate: -20px -20px; rotate: -16deg; }
	66%      { translate: 20px -20px;  rotate: -2deg;  }
}

.figure-cristal {
	animation: mees-float-tilt 3.5s ease-in-out infinite;
	will-change: translate, rotate;
}

.figure-parallelepiped {
	animation: mees-float-rock 4.5s ease-in-out infinite;
	animation-delay: -1.5s;
	will-change: translate, rotate;
}

/*
 * Кристаллы hero/thankyou позиционируем от краев самой секции .a-header.
 * База взята из текущего hero при 1920px:
 * - crystal: left -165, top -95
 * - parallelepiped: right -260, top -225
 * => перевод в vw: -8.59375vw, -4.94792vw, -13.54167vw, -11.71875vw.
 */
.a-header > .figure-cristal,
.a-header > .figure-parallelepiped {
	position: absolute;
	pointer-events: none;
	z-index: 2;
}

.a-header > .figure-cristal {
	left: clamp(16px, 11.6146vw, 223px);
	top: clamp(24px, 23.9815vh, 259px);
}

.a-header > .figure-parallelepiped {
	right: clamp(16px, 6.7708vw, 130px);
	top: clamp(16px, 11.5741vh, 125px);
}

.figure-rhombus {
	animation: mees-float-sway 4.8s ease-in-out infinite;
	animation-delay: -0.7s;
	will-change: translate, rotate;
}

.abot-img-left2 {
	animation: mees-float-simple 3.8s ease-in-out infinite;
	animation-delay: -2.1s;
	will-change: translate;
}

.cristal-reviews-right {
	animation: mees-float-tilt 4s ease-in-out infinite;
	animation-delay: -1.2s;
	will-change: translate, rotate;
}

.figure-rhombus-subscribe {
	animation: mees-float-rock 3.6s ease-in-out infinite;
	animation-delay: -2.7s;
	will-change: translate, rotate;
}

/* Блоки спикеров / «другие спикеры» */
.speakers-foto-left {
	animation: mees-float-rock 4.2s ease-in-out infinite;
	animation-delay: -0.9s;
	will-change: translate, rotate;
}

.speakers-foto-right {
	animation: mees-float-tilt 3.6s ease-in-out infinite;
	animation-delay: -2.4s;
	will-change: translate, rotate;
}

.speakers-foto-right2 {
	animation: mees-float-sway 4.4s ease-in-out infinite;
	animation-delay: -3.1s;
	will-change: translate, rotate;
}

/* Уважаем системный параметр «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
	.about-logo,
	.figure-cristal,
	.figure-parallelepiped,
	.figure-rhombus,
	.abot-img-left2,
	.speaker-courses__crystal,
	.cristal-reviews-right,
	.figure-rhombus-subscribe,
	.speakers-foto-left,
	.speakers-foto-right,
	.speakers-foto-right2,
	.speaker-cover__decor--1,
	.speaker-cover__decor--2,
	.speaker-cover__decor--3,
	.thankyou-page__bg-logo {
		animation: none;
		will-change: auto;
	}
}

/*
 * Базовая типографика сайта: основной текст и h2 в контенте main
 * (h1 по умолчанию = обложка спикера: см. .speaker-cover__title; остальные h1 — ниже).
 */
@media (min-width: 541px) {
	.main-page main .entry-content {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-body);
		font-size: 20px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}

	.main-page main h2:not(.col-white) {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-heading);
		font-size: 50px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
		text-transform: uppercase;
	}

	.main-page main h2:not(.col-white)::first-letter {
		color: var(--mees-accent-letter, #bfdaa0);
	}

	/* Первая буква белая (выше специфичность, чем h2:not(.col-white)::first-letter в main.min). */
	.main-page main section.about h2::first-letter,
	.main-page main section.reviews h2::first-letter {
		color: #fff;
	}

	/* h1 в main, кроме заголовка обложки спикера (там своя разметка) */
	.main-page main h1:not(.speaker-cover__title) {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-heading);
		font-size: 70px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
		letter-spacing: 3.5px;
		text-transform: uppercase;
	}

	.main-page main h1:not(.speaker-cover__title)::first-letter {
		color: var(--mees-accent-letter, #bfdaa0);
	}
}

@media (min-width: 541px) and (max-width: 1024px) {
	.main-page main h1:not(.speaker-cover__title) {
		font-size: 50px;
		letter-spacing: 2.5px;
	}
}

@media (max-width: 540px) {
	.main-page main .entry-content {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-body);
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}

	.main-page main h2:not(.col-white) {
		font-family: var(--mees-ff-heading);
		font-size: 25px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
		text-transform: uppercase;
	}

	.main-page main h1:not(.speaker-cover__title) {
		font-family: var(--mees-ff-heading);
		font-size: 30px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
		letter-spacing: 1.5px;
		text-transform: uppercase;
	}
}

/* То же на всех ширинах (в т.ч. <541px, если в сборке есть ::first-letter у h2). */
.main-page main section.about h2::first-letter,
.main-page main section.reviews h2::first-letter {
	color: #fff;
}

.main-page main .entry-content p {
	margin-bottom: 20px;
}

.main-page main .entry-content p:last-child {
	margin-bottom: 0;
}

/* Главная: hero h1 со своими исходными стилями (не подчиняется унификации заголовков). */
.home .a-header .box-title-header h1 {
	color: #fff;
	font-family: Forum, Georgia, serif;
	font-size: 170px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%;
	text-transform: uppercase;
}

.home .a-header .box-title-header h1::first-letter {
	color: #fff;
}

@media (max-width: 1199px) {
	.home .a-header .box-title-header h1 {
		font-size: 119px;
	}
}

@media (max-width: 48rem) {
	.home .a-header .box-title-header h1 {
		font-size: 80px;
	}
}

@media (max-width: 36rem) {
	.home .a-header .box-title-header h1 {
		font-size: 44px;
	}
}

/* Текст о спикере: абзацы и пункты списка (маркеры как у «Достижений» через классы a-lists) */
.speaker-cover .speaker-bio p {
	margin-bottom: 20px;
}

.speaker-cover .speaker-bio p:last-child {
	margin-bottom: 0;
}

/*
 * Списки в био: тот же кегль, что у .speaker-achievements__list
 * (перебиваем .text-md и правила .a-lists из main.min.css).
 */
@media (min-width: 541px) {
	.speaker-cover .speaker-bio ul.a-lists,
	.speaker-cover .speaker-bio ul.a-lists li {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-body);
		font-size: 20px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

@media (max-width: 540px) {
	.speaker-cover .speaker-bio ul.a-lists,
	.speaker-cover .speaker-bio ul.a-lists li {
		color: var(--mees-text, #013b47);
		font-family: var(--mees-ff-body);
		font-size: 15px;
		font-style: normal;
		font-weight: 400;
		line-height: 140%;
	}
}

/* В обычном тексте био — без дополнительного зазора между строками списка (в «Достижениях» — 15px) */
.speaker-cover .speaker-bio ul.a-lists li {
	margin-bottom: 0;
}

.speaker-cover .speaker-bio ul.a-lists {
	margin-bottom: 20px;
}

.speaker-cover .speaker-bio ul.a-lists:last-child {
	margin-bottom: 0;
}

/* Высота обложки на главной */
@media (max-width: 48rem) {
	.a-header {
		height: min(100dvh, 1024px);
	}
}

@media (max-width: 36rem) {
	.a-header {
		height: min(100dvh, 700px);
	}
}

/* Масштабирование страницы уже 320px */
@media (max-width: 319px) {
	html {
		width: 320px;
		transform: scale(calc(100vw / 320));
		transform-origin: 0 0;
	}

	body {
		width: 320px;
		overflow-x: hidden;
	}
}

/* Архивы и блок каталога на лендинге: пагинация в фирменном стиле темы */
.site-main .navigation.pagination,
.catalog-archive--block .navigation.pagination {
	margin-top: 40px;
}

.site-main .navigation.pagination .nav-links,
.catalog-archive--block .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.site-main .navigation.pagination .page-numbers,
.catalog-archive--block .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border-radius: 100px;
	border: 1px solid #fff;
	background: #fff;
	color: var(--temno-zelenyy);
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function), background-color var(--transition-duration) var(--transition-timing-function);
}

.site-main .navigation.pagination a.page-numbers:hover,
.catalog-archive--block .navigation.pagination a.page-numbers:hover {
	border-color: var(--goluboy);
	color: var(--goluboy);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

.site-main .navigation.pagination .page-numbers.current,
.catalog-archive--block .navigation.pagination .page-numbers.current {
	background: linear-gradient(93deg, #72b5dd 0%, #71b2de 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
}

@media (max-width: 540px) {
	.site-main .navigation.pagination,
	.catalog-archive--block .navigation.pagination {
		margin-top: 30px;
	}

	.site-main .navigation.pagination .page-numbers,
	.catalog-archive--block .navigation.pagination .page-numbers {
		min-width: 40px;
		height: 40px;
		padding: 0 14px;
		font-size: 15px;
	}
}

/* ===================================
   Страница благодарности (thankyou_page)
   =================================== */

/*
 * Основная секция — аналог .a-header главной:
 * использует те же классы .figure-cristal / .figure-parallelepiped
 * с готовыми анимациями mees-float-tilt / mees-float-rock из main.min.css.
 */
.thankyou-page {
	overflow: hidden;
	height: auto;
	min-height: 100dvh;
}

/* Логотип на заднем плане: плавает как .about-logo, но полупрозрачный. */
.thankyou-page__bg-logo {
	left: 50%;
	top: 60px;
	transform: translateX(-50%);
	width: min(566px, 90vw);
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}

.thankyou-page__bg-logo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Весь контент центрирован. */
.thankyou-page__inner {
	max-width: 1110px;
	margin-inline: auto;
	padding-top: clamp(120px, 16vh, 240px);
	padding-bottom: clamp(70px, 10vh, 120px);
	position: relative;
	z-index: 1;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* ── Заголовок h1 ── */
.thankyou-page__heading h1 {
	font-size: 70px;
	font-family: var(--font-family-title, Forum, Georgia, serif);
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff !important;
}

.thankyou-page__heading h1::first-letter {
	color: #fff !important;
}

/* Опция "крупный заголовок" — как у hero на главной. */
.thankyou-page__heading h1.thankyou-page__title--xl {
	font-size: 170px !important;
	line-height: 1.4 !important;
}

/* ── Основной текст ── */
.thankyou-page__text {
	font-size: 25px;
	line-height: 1.5;
	max-width: 910px;
	margin-inline: auto;
	margin-top: 40px;
}

/* Для крупного H1 уменьшаем отступ под заголовком. */
.thankyou-page__heading.thankyou-page__heading--xl + .thankyou-page__text {
	margin-top: 20px;
}

.thankyou-page__text p:last-child {
	margin-bottom: 0;
}

/* ── Кнопки ── */
.thankyou-page__actions {
	gap: 20px 20px;
}

/* Основная кнопка: hover-эффект как у брендовых CTA. */
.thankyou-page__actions .but.bg-gradient {
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function), filter var(--transition-duration) var(--transition-timing-function);
}

.thankyou-page__actions .but.bg-gradient:hover {
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.35);
	filter: brightness(1.05);
	transform: translateY(-2px);
}

/* Кнопка 2 — белый контур, прозрачный фон. */
.thankyou-btn-outline {
	background: transparent;
	border: 2px solid #fff;
	color: #fff !important;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.thankyou-btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	box-shadow: 0 5px 20px 0 rgba(255, 255, 255, 0.15);
}

/* ── Блок подсказки ── */
.thankyou-page__hint-text {
	font-size: 25px;
	line-height: 1.5;
	font-weight: 700;
	margin-top: 120px;
}

.thankyou-page__hint-text p:last-child {
	margin-bottom: 0;
}

/* ── Строка иконок ── */
.thankyou-page__icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-top: 60px;
}

.thankyou-page__icons--distribute {
	justify-content: center;
	width: 100%;
}

.thankyou-page__icons--distribute .thankyou-page__icon-link {
	flex: 1 1 180px;
	max-width: 260px;
}

.thankyou-page__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.thankyou-page__icon-link:hover {
	opacity: 0.75;
	transform: translateY(-3px);
}

.thankyou-page__icon-img {
	display: block;
	height: 80px;
	width: auto;
	object-fit: contain;
}

/* ── Tablet ≤ 1023px ── */
@media (max-width: 1023px) {
	.thankyou-page__inner {
		padding-top: clamp(100px, 14vh, 180px);
		padding-bottom: clamp(70px, 9vh, 110px);
	}

	.thankyou-page__heading h1 {
		font-size: 50px !important;
	}

	.thankyou-page__heading h1.thankyou-page__title--xl {
		font-size: 119px !important;
	}

	.thankyou-page__icons {
		gap: 30px;
		margin-top: 40px;
	}

	.thankyou-page__icon-img {
		height: 50px;
	}

	.thankyou-page__bg-logo {
		width: min(430px, 90vw);
	}

}

/* ── Mobile ≤ 540px ── */
@media (max-width: 540px) {
	.thankyou-page {
		height: auto;
		min-height: 100dvh;
	}

	.thankyou-page__inner {
		padding-top: clamp(80px, 10vh, 120px);
		padding-bottom: 70px;
		min-height: 100dvh;
	}

	.thankyou-page__heading h1 {
		font-size: 38px !important;
	}

	.thankyou-page__heading h1.thankyou-page__title--xl {
		font-size: 80px !important;
	}

	.thankyou-page__text,
	.thankyou-page__hint-text {
		font-size: 20px;
	}

	.thankyou-page__text {
		margin-top: 30px;
	}

	.thankyou-page__hint-text {
		margin-top: 70px;
	}

	.thankyou-page__icons {
		gap: 20px;
		margin-top: 30px;
	}

	.thankyou-page__icons--distribute .thankyou-page__icon-link {
		flex: 0 1 auto;
		max-width: none;
	}

	.thankyou-page__icon-img {
		height: 40px;
	}

	.thankyou-page__bg-logo {
		width: min(300px, 88vw);
		opacity: 0.35;
	}

}

@media (max-width: 36rem) {
	.thankyou-page__heading h1.thankyou-page__title--xl {
		font-size: 44px !important;
	}
}

/* prefers-reduced-motion: отключаем анимацию логотипа. */

/* Конструктор: произвольный редакторный контент между блоками. */
.a-main .mees-editor-content .entry-content > * {
	margin-top: 0;
	margin-bottom: 20px;
}

.a-main .mees-editor-content .entry-content > *:last-child {
	margin-bottom: 0;
}

/* ===================================
   Базовый контент WordPress (fallback)
   Для страниц/записей без ACF-конструктора.
   =================================== */
.mees-content-layout {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 30px;
	align-items: start;
	padding-top: 70px;
	padding-bottom: 70px;
}

.mees-content-layout.is-builder {
	display: block;
	padding-top: 0;
	padding-bottom: 0;
}

.mees-content-layout > .site-main {
	grid-column: 1 / -1;
}

.mees-content-layout.has-sidebar > .site-main {
	grid-column: 1 / span 8;
}

.mees-content-layout.has-sidebar > #secondary.widget-area {
	grid-column: 9 / -1;
}

.mees-default-content-wrap {
	padding: 0;
}

body.error404 .mees-404-content {
	padding-top: 70px;
	padding-bottom: 70px;
	padding-left: 15px;
	padding-right: 15px;
}

.mees-search-form {
	margin-top: 24px;
	max-width: 760px;
}

.mees-search-form__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mees-search-form__input.form-inp {
	flex: 1 1 320px;
	min-height: 58px;
	border: 1px solid #929292;
	box-shadow: none;
}

.mees-search-form__input.form-inp:focus,
.mees-search-form__input.form-inp:focus-visible,
.mees-search-form__input.form-inp:active {
	outline: none;
	border-color: #929292;
	box-shadow: none;
}

.mees-search-form__input.form-inp:valid,
.mees-search-form__input.form-inp:invalid {
	outline: none;
	box-shadow: none;
	border-color: #929292;
}

.mees-search-form__submit {
	min-height: 58px;
	padding: 0 28px;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function);
}

.mees-search-form__submit:hover {
	box-shadow: 0 5px 20px 0 hsla(88, 44%, 74%, 0.3);
	border: 1px solid var(--zelenyy);
	outline: none;
}

.widget_search .mees-search-form {
	margin-top: 0;
	max-width: none;
}

.widget_search .mees-search-form__inner {
	gap: 10px;
}

.widget_search .mees-search-form__input.form-inp {
	flex: 1 1 100%;
	width: 100%;
}

.widget_search form.wp-block-search {
	margin-top: 0;
}

.widget_search .wp-block-search__inside-wrapper {
	gap: 8px;
}

.widget_search .wp-block-search__input {
	min-height: 50px;
	border-radius: 29px;
	padding: 0 14px;
	border: 1px solid #929292;
	outline: none;
	box-shadow: none;
}

.widget_search .wp-block-search__input:focus,
.widget_search .wp-block-search__input:focus-visible,
.widget_search .wp-block-search__input:active {
	outline: none;
	border-color: #929292;
	box-shadow: none;
}

.widget_search .wp-block-search__input:valid,
.widget_search .wp-block-search__input:invalid {
	outline: none;
	box-shadow: none;
	border-color: #929292;
}

.widget_search .wp-block-search__button.wp-element-button {
	min-height: 50px;
	padding: 0 18px;
	margin-left: 0;
	border-radius: 29px;
	border: 1px solid transparent;
	background-color: transparent !important;
	background-image: linear-gradient(90deg, #71B2DE 0%, #BFDAA0 100%) !important;
	color: #fff;
	text-transform: uppercase;
	font-size: 14px;
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function);
}

.widget_search .wp-block-search__button.wp-element-button:hover {
	box-shadow: 0 5px 20px 0 hsla(88, 44%, 74%, 0.3);
	border: 1px solid var(--zelenyy);
	outline: none;
}

.widget_search .wp-block-search__button.wp-element-button:focus,
.widget_search .wp-block-search__button.wp-element-button:focus-visible {
	outline: none;
}

.widget_search .wp-block-search__label {
	display: inline-block;
	margin-bottom: 8px;
}

.thankyou-page__search .mees-search-form {
	margin: 0 auto;
}

.thankyou-page__search .mees-search-form__inner {
	justify-content: center;
}

@media (min-width: 768px) {
	body.error404 .mees-404-content {
		padding-top: 120px;
		padding-bottom: 120px;
		padding-left: 30px;
		padding-right: 30px;
	}
}

.mees-default-content {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 30px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 20px;
	line-height: 1.4;
}

.mees-default-content article {
	grid-column: 1 / -1;
	max-width: 1110px;
	width: 100%;
}

/* Страница товара: .mees-default-content — только типографика, не 12-колоночная сетка */
.product-single .mees-default-content {
	display: block;
	width: 100%;
	max-width: none;
}

.product-single .mees-default-content .entry-content,
.product-single .mees-default-content .product-single__description {
	width: 100%;
	max-width: none;
}

.mees-default-content .entry-title {
	margin: 0 0 30px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading, Forum, Georgia, serif);
	font-size: clamp(36px, 5vw, 70px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

@media (max-width: 1024px) and (min-width: 541px) {
	.mees-default-content .entry-title {
		font-size: 50px;
	}
}

.mees-default-content .entry-title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

/* Заголовок товара — не типографика записей (.mees-default-content .entry-title) */
.product-single .mees-default-content .entry-title,
.product-single .mees-default-content .product_title {
	margin: 0;
	letter-spacing: normal;
	font-size: clamp(28px, 3.8vw, 50px);
	line-height: 1.25;
	font-weight: 400;
	text-transform: uppercase;
}

.product-single .mees-default-content .entry-title::first-letter,
.product-single .mees-default-content .product_title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

.product-single .product-single__header {
	margin-bottom: 24px;
}

/* WC: заголовок без обёртки .product-single__header */
.product-single .summary > .product_title.entry-title,
.product-single .summary > .product_title {
	margin: 0 0 24px;
}

.mees-default-content .entry-meta,
.mees-default-content .entry-footer {
	margin-top: 20px;
	font-size: 16px;
	color: #5f6e73;
}

/* Единые отступы внутри meta-блоков (страница поста + карточки архивов) */
.site-main .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 12px;
}

.site-main .entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.site-main .entry-meta > span,
.site-main .entry-meta .byline,
.site-main .entry-meta .posted-on,
.site-main .entry-meta .cat-links,
.site-main .entry-meta .tags-links,
.site-main .entry-meta .comments-link {
	margin: 0;
}

.site-main .entry-footer > span,
.site-main .entry-footer .cat-links,
.site-main .entry-footer .tags-links,
.site-main .entry-footer .comments-link,
.site-main .entry-footer .edit-link {
	margin: 0;
}

.site-main .entry-meta .updated-label {
	font-weight: 400;
}

.mees-default-content .entry-content > * {
	margin-top: 0;
	margin-bottom: 20px;
}

.mees-default-content .entry-content {
	margin-top: 20px;
	margin-bottom: 20px;
}

.mees-default-content .entry-content > *:last-child {
	margin-bottom: 0;
}

.mees-default-content .entry-content h2,
.mees-default-content .entry-content h3,
.mees-default-content .entry-content h4 {
	margin-top: 35px;
	margin-bottom: 20px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading, Forum, Georgia, serif);
	font-weight: 400;
	line-height: 1.25;
	text-transform: uppercase;
}

.mees-default-content .entry-content h2 {
	font-size: clamp(28px, 3.8vw, 50px);
}

.mees-default-content .entry-content h2::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

.mees-default-content .entry-content h3 {
	font-size: clamp(24px, 3vw, 36px);
}

.mees-default-content .entry-content h4 {
	font-size: clamp(20px, 2.5vw, 28px);
}

.mees-default-content .entry-content ul,
.mees-default-content .entry-content ol {
	padding-left: 1.4em;
}

.mees-default-content .entry-content li + li {
	margin-top: 10px;
}

.mees-default-content .entry-content .myaccount-menu li + li {
	margin-top: 0px;
}

.mees-default-content .entry-content blockquote {
	margin: 30px 0;
	padding: 25px 30px;
	border-left: 4px solid var(--mees-accent-letter, #bfdaa0);
	background: #f8f8f8;
	color: #2c5660;
}

.mees-default-content .entry-content a {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

.mees-default-content .entry-content a:hover {
	color: var(--mees-accent-letter, #bfdaa0);
	text-decoration: none;
}

/* Meta/footer-ссылки (страницы/записи): темно-зеленые -> голубые */
.mees-default-content .entry-meta a,
.mees-default-content .entry-footer a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

.mees-default-content .entry-meta a:hover,
.mees-default-content .entry-footer a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

.mees-default-content .entry-content img {
	max-width: 100%;
	height: auto;
}

/* Галереи в контенте: shortcode [gallery] (классический редактор). Блок Gutenberg — стили ядра wp-block-library. */
.mees-default-content .entry-content .gallery,
.woocommerce-tabs .panel .gallery,
.product-single__description .gallery {
	display: grid;
	gap: 1.5em;
	margin-bottom: 1.5em;
}

.mees-default-content .entry-content .gallery .gallery-item,
.woocommerce-tabs .panel .gallery .gallery-item,
.product-single__description .gallery .gallery-item {
	margin: 0;
	width: 100%;
}

.mees-default-content .entry-content .gallery .gallery-item img,
.woocommerce-tabs .panel .gallery .gallery-item img,
.product-single__description .gallery .gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

.mees-default-content .entry-content .gallery-columns-2,
.woocommerce-tabs .panel .gallery-columns-2,
.product-single__description .gallery-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-3,
.woocommerce-tabs .panel .gallery-columns-3,
.product-single__description .gallery-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-4,
.woocommerce-tabs .panel .gallery-columns-4,
.product-single__description .gallery-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-5,
.woocommerce-tabs .panel .gallery-columns-5,
.product-single__description .gallery-columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-6,
.woocommerce-tabs .panel .gallery-columns-6,
.product-single__description .gallery-columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-7,
.woocommerce-tabs .panel .gallery-columns-7,
.product-single__description .gallery-columns-7 {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-8,
.woocommerce-tabs .panel .gallery-columns-8,
.product-single__description .gallery-columns-8 {
	grid-template-columns: repeat(8, minmax(0, 1fr));
}

.mees-default-content .entry-content .gallery-columns-9,
.woocommerce-tabs .panel .gallery-columns-9,
.product-single__description .gallery-columns-9 {
	grid-template-columns: repeat(9, minmax(0, 1fr));
}

.mees-default-content .entry-content .wp-block-gallery,
.woocommerce-tabs .panel .wp-block-gallery,
.product-single__description .wp-block-gallery {
	margin-bottom: 1.5em;
}

.mees-default-content .entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.mees-default-content .entry-content table th,
.mees-default-content .entry-content table td {
	padding: 10px 12px;
	border: 1px solid #d9d8d8;
}

.mees-default-content .entry-content .wp-block-group,
.mees-default-content .entry-content .wp-block-columns,
.mees-default-content .entry-content .wp-block-media-text {
	margin-bottom: 24px;
}

@media (max-width: 540px) {
	.mees-default-content {
		font-size: 15px;
	}

	.mees-default-content .entry-title {
		margin-bottom: 20px;
		font-size: 30px;
		letter-spacing: 0.03em;
	}

	.product-single .mees-default-content .entry-title,
	.product-single .mees-default-content .product_title {
		margin: 0;
		font-size: 25px;
		letter-spacing: normal;
	}

	.product-single .summary > .product_title {
		margin-bottom: 24px;
	}

	.mees-default-content .entry-content h2 {
		font-size: 25px;
	}

	.mees-default-content .entry-content h3 {
		font-size: 22px;
	}

	.mees-default-content .entry-content h4 {
		font-size: 18px;
	}

	.mees-default-content .entry-content blockquote {
		padding: 18px 20px;
	}
}

/* ===================================
   Комментарии и виджеты (fallback-страницы)
   =================================== */
.site-main > .comments-area {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 30px;
	margin: 0;
	padding: 30px;
	border-radius: 24px;
	background: #f8f8f8;
}

.site-main > .comments-area > * {
	grid-column: 1 / -1;
}

.site-main > .comments-area .comments-title,
.site-main > .comments-area .comment-reply-title {
	margin: 0 0 20px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading, Forum, Georgia, serif);
	font-size: clamp(24px, 2.5vw, 36px);
	font-weight: 400;
	line-height: 1.25;
	text-transform: uppercase;
}

.site-main > .comments-area .comments-title::first-letter,
.site-main > .comments-area .comment-reply-title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

.site-main > .comments-area .comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.site-main > .comments-area .comment-body {
	padding: 18px 20px;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: #fff;
}

.site-main > .comments-area .comment-list .comment {
	margin-bottom: 15px;
}

.site-main > .comments-area .comment-list .comment:last-child {
	margin-bottom: 0;
}

.site-main > .comments-area .comment-metadata {
	font-size: 14px;
}

.site-main > .comments-area .comment-metadata a,
.site-main > .comments-area .reply a {
	color: var(--goluboy, #71b2de);
}

.site-main > .comments-area .comment-form p {
	margin-bottom: 14px;
}

.site-main > .comments-area .comment-form input[type="text"],
.site-main > .comments-area .comment-form input[type="email"],
.site-main > .comments-area .comment-form input[type="url"],
.site-main > .comments-area .comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d9d8d8;
	border-radius: 12px;
	background: #fff;
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 16px;
	line-height: 1.4;
	color: var(--mees-text, #013b47);
}

.site-main > .comments-area .comment-form input:focus,
.site-main > .comments-area .comment-form textarea:focus {
	outline: none;
	border-color: var(--goluboy, #71b2de);
	box-shadow: 0 0 0 2px rgba(113, 178, 222, 0.2);
}

.site-main > .comments-area .comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 100px;
	border: 1px solid transparent;
	background: linear-gradient(93deg, #72b5dd 0%, #71b2de 100%);
	color: #fff;
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function);
}

.site-main > .comments-area .comment-form .submit:hover {
	border-color: var(--mees-accent-letter, #bfdaa0);
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

#secondary.widget-area {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 30px;
	margin: 0;
	padding: 0;
}

#secondary.widget-area .widget {
	grid-column: 1 / -1;
	margin-bottom: 20px;
	padding: 24px;
	border-radius: 24px;
	background: #f8f8f8;
}

#secondary.widget-area .widget:last-child {
	margin-bottom: 0;
}

#secondary.widget-area .widget-title {
	margin: 0 0 14px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: clamp(18px, 1.6vw, 20px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

#secondary.widget-area h2.wp-block-heading,
#secondary.widget-area .wp-block-group h2,
#secondary.widget-area .wp-block-latest-posts__list + h2 {
	margin: 0 0 14px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: clamp(18px, 1.6vw, 20px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

#secondary.widget-area .widget ul {
	margin: 0;
	padding-left: 1.1em;
}

#secondary.widget-area .wp-block-latest-posts {
	list-style: disc;
	padding-left: 1.1em;
}

#secondary.widget-area .wp-block-latest-posts li {
	list-style: inherit;
}

#secondary.widget-area .widget li + li {
	margin-top: 8px;
}

/* Виджеты: ссылки без подчеркивания, фирменные цвета */
#secondary.widget-area a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

#secondary.widget-area a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

/* Комментарии: обычные ссылки как в тексте (голубые -> зеленые) */
.site-main > .comments-area .comment-content a,
.site-main > .comments-area .comment-body > p a {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

.site-main > .comments-area .comment-content a:hover,
.site-main > .comments-area .comment-body > p a:hover {
	color: var(--mees-accent-letter, #bfdaa0);
	text-decoration: none;
}

/* Комментарии: мета-ссылки (дата/автор и т.п.) */
.site-main > .comments-area .comment-metadata a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

.site-main > .comments-area .comment-metadata a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

.site-main > .comments-area .comment-content {
	padding: 10px 0;
}

/* Комментарии: автор и блок "logged-in-as" */
.site-main > .comments-area .comment-author a,
.site-main > .comments-area .logged-in-as a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

.site-main > .comments-area .comment-author a:hover,
.site-main > .comments-area .logged-in-as a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

/* Reply link: кнопка второстепенного стиля (голубой контур) */
.site-main > .comments-area .reply .comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: 100px;
	border: 1px solid var(--goluboy, #71b2de);
	background: #fff;
	color: var(--goluboy, #71b2de);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.08);
	transition: box-shadow var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);
}

.site-main > .comments-area .reply .comment-reply-link:hover {
	border-color: var(--mees-accent-letter, #bfdaa0);
	color: var(--mees-accent-letter, #bfdaa0);
	text-decoration: none;
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

/* ===================================
   Архивы записей (рубрики/даты/авторы/поиск)
   =================================== */
body.archive .site-main,
body.blog .site-main,
body.search .site-main {
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body, Circe, sans-serif);
}

body.archive .site-main .page-header,
body.blog .site-main .page-header,
body.search .site-main .page-header {
	margin: 0 0 30px;
}

body.archive .site-main .page-title,
body.blog .site-main .page-title,
body.search .site-main .page-title {
	margin: 0 0 20px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-heading, Forum, Georgia, serif);
	font-size: clamp(36px, 5vw, 70px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

body.archive .site-main .page-title::first-letter,
body.blog .site-main .page-title::first-letter,
body.search .site-main .page-title::first-letter {
	color: var(--mees-accent-letter, #bfdaa0);
}

body.search .site-main .page-title {
	font-size: clamp(28px, 3.2vw, 42px);
	letter-spacing: 0.02em;
	text-transform: none;
	line-height: 1.25;
	word-break: break-word;
	overflow-wrap: anywhere;
}

body.archive .site-main .archive-description,
body.blog .site-main .archive-description,
body.search .site-main .archive-description {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 0;
}

/* Карточки постов в архиве */
.mees-posts-archive-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.mees-posts-archive-grid > article {
	grid-column: span 12;
	margin: 0;
	padding: 0;
	border-radius: 24px;
	background: #f8f8f8;
	border: 1px solid #e6e6e6;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mees-posts-archive-grid > article .post-thumbnail {
	order: -1;
	display: block;
	margin: 0;
	line-height: 0;
}

.mees-posts-archive-grid > article .post-thumbnail img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.mees-posts-archive-grid .entry-header {
	margin: 0;
	padding: 20px 24px 0;
}

/* 2 карточки в строке, когда есть сайдбар */
.archive-content-layout.has-sidebar .mees-posts-archive-grid > article {
	grid-column: span 6;
}

/* 3 карточки в строке при скрытом сайдбаре */
.archive-content-layout.no-sidebar .mees-posts-archive-grid > article {
	grid-column: span 4;
}

.mees-posts-archive-grid .entry-content {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0 24px 24px;
	font-size: 15px;
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.mees-posts-archive-grid .entry-content p:last-child {
	margin-bottom: 0;
}

.mees-posts-archive-grid .entry-excerpt {
	margin: 0;
}

.mees-posts-archive-grid .entry-excerpt--clamped {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--mees-post-lines, 4);
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
}

.mees-posts-archive-grid .entry-content .archive-post-read-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	align-self: flex-start;
	padding: 8px 21px 7px;
	border-radius: 100px;
	border: 1px solid transparent !important;
	background: linear-gradient(90deg, #71B2DE 0%, #BFDAA0 100%) !important;
	color: #fff !important;
	font-size: 17px;
	line-height: normal;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.4);
	transition-property: box-shadow, filter, opacity, transform, border-color;
}

.mees-posts-archive-grid .entry-content .archive-post-read-more:hover {
	border-color: #bfdaa0 !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 5px 20px 0 rgba(191, 218, 160, 0.3);
}

/* Навигация между постами (single) */
.site-main .post-navigation {
	margin-top: 35px;
	margin-bottom: 35px;
}

.site-main .post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
}

.site-main .post-navigation .nav-previous,
.site-main .post-navigation .nav-next {
	grid-column: span 6;
}

.site-main .post-navigation .nav-previous a,
.site-main .post-navigation .nav-next a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid #d9d8d8;
	border-radius: 16px;
	background: #f8f8f8;
	color: var(--mees-text, #013b47);
	text-decoration: none;
	transition: border-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function);
}

.site-main .post-navigation .nav-previous a:hover,
.site-main .post-navigation .nav-next a:hover {
	border-color: var(--goluboy, #71b2de);
	color: var(--goluboy, #71b2de);
	text-decoration: none;
	box-shadow: 0 5px 20px 0 rgba(117, 180, 220, 0.2);
}

.site-main .post-navigation .nav-subtitle {
	font-size: 14px;
	line-height: 1.3;
	color: #5f6e73;
}

.site-main .post-navigation .nav-title {
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.site-main .post-navigation .nav-previous,
	.site-main .post-navigation .nav-next {
		grid-column: 1 / -1;
	}
}

.mees-posts-archive-grid .entry-footer {
	margin-top: auto;
	padding: 0px 24px 24px;
}

.mees-posts-archive-grid .entry-footer:empty {
	display: none;
}

body.archive .site-main .entry-title,
body.blog .site-main .entry-title,
body.search .site-main .entry-title {
	margin: 0 0 16px;
	color: var(--mees-text, #013b47);
	font-family: var(--mees-ff-body, Circe, sans-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
}

body.archive .site-main .entry-title a,
body.blog .site-main .entry-title a,
body.search .site-main .entry-title a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

body.archive .site-main .entry-title a:hover,
body.blog .site-main .entry-title a:hover,
body.search .site-main .entry-title a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

body.archive .site-main .entry-title::first-letter,
body.blog .site-main .entry-title::first-letter,
body.search .site-main .entry-title::first-letter {
	color: inherit;
}

body.archive .site-main .entry-meta,
body.archive .site-main .entry-footer,
body.blog .site-main .entry-meta,
body.blog .site-main .entry-footer,
body.search .site-main .entry-meta,
body.search .site-main .entry-footer {
	font-size: 14px;
	color: #525252;
}

/* Ссылки в архивах: текстовые — голубые, служебные — темно-зеленые */
body.archive .site-main .entry-content a,
body.blog .site-main .entry-content a,
body.search .site-main .entry-content a {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

body.archive .site-main .entry-content a:hover,
body.blog .site-main .entry-content a:hover,
body.search .site-main .entry-content a:hover {
	color: var(--mees-accent-letter, #bfdaa0);
	text-decoration: none;
}

body.archive .site-main .entry-meta a,
body.archive .site-main .entry-footer a,
body.blog .site-main .entry-meta a,
body.blog .site-main .entry-footer a,
body.search .site-main .entry-meta a,
body.search .site-main .entry-footer a {
	color: var(--mees-text, #013b47);
	text-decoration: none;
}

body.archive .site-main .entry-meta a:hover,
body.archive .site-main .entry-footer a:hover,
body.blog .site-main .entry-meta a:hover,
body.blog .site-main .entry-footer a:hover,
body.search .site-main .entry-meta a:hover,
body.search .site-main .entry-footer a:hover {
	color: var(--goluboy, #71b2de);
	text-decoration: none;
}

@media (max-width: 540px) {
	body.archive .site-main .page-title,
	body.blog .site-main .page-title {
		font-size: 30px;
		letter-spacing: 0.03em;
	}

	body.search .site-main .page-title {
		font-size: 26px;
		letter-spacing: 0.01em;
		text-transform: none;
	}

	body.archive .site-main .entry-title,
	body.blog .site-main .entry-title,
	body.search .site-main .entry-title {
		font-size: 15px;
	}

	body.archive .site-main .archive-description,
	body.blog .site-main .archive-description,
	body.search .site-main .archive-description {
		font-size: 15px;
	}
}

/* Страница поста: уменьшаем h1 для длинных заголовков */
body.single-post .mees-default-content .entry-title {
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.2;
	letter-spacing: 0.03em;
}

@media (max-width: 540px) {
	body.single-post .mees-default-content .entry-title {
		font-size: 26px;
		line-height: 1.25;
		letter-spacing: 0.02em;
	}
}

@media (max-width: 1279px) {
	.archive-content-layout.no-sidebar .mees-posts-archive-grid > article {
		grid-column: span 6;
	}
}

@media (max-width: 767px) {
	.mees-posts-archive-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 30px;
	}

	.archive-content-layout.has-sidebar .mees-posts-archive-grid > article,
	.archive-content-layout.no-sidebar .mees-posts-archive-grid > article {
		grid-column: 1 / -1;
	}

	.mees-posts-archive-grid > article {
		border-radius: 16px;
	}

	.mees-posts-archive-grid > article .post-thumbnail img {
		height: 190px;
	}

	.mees-posts-archive-grid .entry-header {
		padding: 16px 18px 0;
	}

	.mees-posts-archive-grid .entry-content {
		padding: 0 18px 18px;
	}

	.mees-posts-archive-grid .entry-footer {
		padding: 0px 18px 18px;
	}
}

@media (max-width: 540px) {
	.mees-content-layout {
		display: block;
		row-gap: 20px;
		padding-top: 70px;
		padding-bottom: 70px;
	}

	.mees-default-content {
		display: block;
	}

	.archive-content-layout {
		display: block;
	}

	#secondary.widget-area {
		display: block;
	}

	#secondary.widget-area .widget {
		grid-column: auto;
	}

	/* На мобильных убираем 12-колоночный grid у стандартных секций */
	.site-main > .comments-area {
		display: block;
	}

	.site-main > .comments-area {
		margin-bottom: 35px;
		padding: 20px;
		border-radius: 16px;
	}

	#secondary.widget-area {
		margin-bottom: 50px;
	}

	#secondary.widget-area .widget {
		padding: 18px;
		border-radius: 16px;
	}

	.site-main > .comments-area .comment-form .submit {
		white-space: normal;
		word-break: break-word;
		max-width: 100%;
		text-align: center;
	}
}

@media (min-width: 48rem) {
	.mees-content-layout {
		padding-top: 120px;
		padding-bottom: 120px;
	}
}

@media (max-width: 1023px) {
	.mees-content-layout > .site-main,
	.mees-content-layout > #secondary.widget-area {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1365px) {
	.mees-content-layout.has-sidebar > .site-main,
	.mees-content-layout.has-sidebar > #secondary.widget-area {
		grid-column: 1 / -1;
	}

	#secondary.widget-area {
		margin-top: 20px;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 20px;
	}

	#secondary.widget-area .widget {
		grid-column: span 6;
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
	#secondary.widget-area .widget {
		grid-column: 1 / -1;
	}
}

/* Формы (тема): ссылка в согласии всегда темно-зеленая с подчеркиванием,
 * на hover/focus меняется только сама ссылка (без реакции на hover чекбокса/лейбла). */
.a-checkbox__label a,
.wpcf7-acceptance .wpcf7-list-item-label a,
.wpcf7-acceptance .wpcf7-list-item > label a {
	color: var(--temno-zelenyy, #013b47) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.a-checkbox__label a:visited,
.wpcf7-acceptance .wpcf7-list-item-label a:visited,
.wpcf7-acceptance .wpcf7-list-item > label a:visited {
	color: var(--temno-zelenyy, #013b47) !important;
	text-decoration: underline !important;
}

.wpcf7-acceptance .wpcf7-list-item-label:hover a,
.wpcf7-acceptance .wpcf7-list-item > label:hover a {
	color: var(--temno-zelenyy, #013b47) !important;
	text-decoration: underline !important;
}

.a-checkbox__label a:hover,
.a-checkbox__label a:focus-visible,
.wpcf7-acceptance .wpcf7-list-item-label a:hover,
.wpcf7-acceptance .wpcf7-list-item-label a:focus-visible,
.wpcf7-acceptance .wpcf7-list-item > label a:hover,
.wpcf7-acceptance .wpcf7-list-item > label a:focus-visible {
	color: var(--goluboy, #71b2de) !important;
	text-decoration: underline !important;
}
