/**
 * Стили шапки header-gp и главной GenPower.
 * Подключаются на главной, в каталоге и на обычных страницах (body.gp-has-gp-header) — см. functions.php.
 */

/* --- База: главная и каталог с header-gp --- */
body.gp-front-page,
body.home.gp-front-page,
body.gp-has-gp-header {
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Скроллбар не сдвигает контент при смене категорий с разной высотой таблицы */
html:has(body.gp-has-gp-header) {
	scrollbar-gutter: stable;
}

body.gp-has-gp-header .gp-site-header {
	position: sticky;
	top: 0;
	z-index: 10050;
	background: #fff;
	box-shadow: 0 1px 0 rgba(11, 26, 72, 0.08);
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	transition: box-shadow 0.2s ease;
}

body.admin-bar.gp-has-gp-header .gp-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar.gp-has-gp-header .gp-site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

body.gp-has-gp-header .gp-site-header.is-scrolled {
	box-shadow: 0 4px 20px rgba(11, 26, 72, 0.12);
}

/* Sticky: скрываем области 1 и 2 по классам из genpower_get_header_config(). */
body.gp-has-gp-header .gp-site-header.gp-sticky-hide-main.is-scrolled .gp-header-main {
	display: none;
}

/* Каталог (.gp-nav-row) вынесен из sticky-шапки — уезжает при скролле; липкий вариант: .gp-nav-row--pinned */
body.gp-has-gp-header .gp-nav-row.gp-nav-row--pinned {
	position: sticky;
	top: var(--gp-sticky-utility-height, 0);
	z-index: 10040;
	background: #fff;
	box-shadow: 0 1px 0 rgba(11, 26, 72, 0.08);
}

body.admin-bar.gp-has-gp-header .gp-nav-row.gp-nav-row--pinned {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--gp-sticky-utility-height, 0px));
}

@media screen and (max-width: 782px) {
	body.admin-bar.gp-has-gp-header .gp-nav-row.gp-nav-row--pinned {
		top: calc(var(--wp-admin--admin-bar--height, 46px) + var(--gp-sticky-utility-height, 0px));
	}
}

/* Жёлтый баннер вне sticky; верхняя строка — внутри .gp-site-header (sticky). */
body.gp-has-gp-header .gp-utility-bar {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
}

body.gp-has-gp-header .gp-main-header {
	position: relative;
	padding-top: 20px;
	padding-bottom: 20px;
}

/* Внутренние страницы: без лишнего margin-top у main (как .gp-catalog-archive) */
body.gp-has-gp-header:not(.gp-front-page) main.wp-block-group {
	margin-top: 0 !important;
}

.gp-main-header__row {
	display: flex;
	align-items: center;
	position: relative;
	gap: 0;
	padding-left: 5.4%;
	padding-right: 5.4%;
	min-height: 48px;
}

.gp-main-header__logo {
	flex: 0 0 13%;
	max-width: 13%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.gp-main-header__logo-link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.gp-main-header__logo-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 48px;
	object-fit: contain;
	object-position: left center;
}

.gp-main-header__link {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-width: 0;
	overflow: visible;
}

.gp-main-header__link .gp-nav-head {
	display: flex;
	justify-content: flex-end;
	width: auto;
	max-width: 100%;
	margin-left: auto;
}

.gp-nav-menu--head {
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
}

.gp-nav-menu--head > li {
	display: inline-block;
	margin: 0 clamp(0.5rem, 1.4vw, 1.25rem);
}

.gp-main-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin-left: clamp(0.75rem, 2vw, 1.5rem);
}

.gp-main-header__tools--desktop {
	width: auto;
	min-width: 0;
}

.gp-main-header__search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.gp-main-header__search-toggle img {
	width: 20px;
	height: 20px;
	display: block;
}

.gp-main-header__mobile {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	margin-left: auto;
}

.gp-main-header__hamburger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.gp-main-header__hamburger img {
	width: 28px;
	height: auto;
	display: block;
}

.gp-main-header__search-panel,
.gp-main-header__mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10055;
	background: #fff;
	border-top: 1px solid #e8e8e8;
	box-shadow: 0 8px 24px rgba(11, 26, 72, 0.12);
	padding: 1rem 5.4%;
}

.gp-main-header__search-panel[hidden],
.gp-main-header__mobile-menu[hidden] {
	display: none !important;
}

.gp-main-header__search-close,
.gp-main-header__mobile-menu-close {
	position: absolute;
	top: 0.75rem;
	right: 5.4%;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: #090909;
	cursor: pointer;
	padding: 0;
}

.gp-main-header__search-form {
	max-width: 640px;
	margin: 0.5rem auto 0;
}

.gp-main-header__search-form input[type="search"] {
	width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 16px;
}

.gp-main-header__mobile-menu .gp-nav-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.gp-main-header__mobile-menu .gp-nav-menu > li {
	margin: 0;
	display: block;
	width: 100%;
}

.gp-main-header__mobile-menu .gp-nav-menu a {
	font-size: 18px;
	color: #090909;
}

@media (max-width: 1199px) {
	.gp-nav-menu--head > li {
		margin: 0 0.65rem;
	}

	body.gp-has-gp-header .gp-nav-menu--head a {
		font-size: 16px;
	}
}

@media (max-width: 991px) {
	.gp-main-header__link,
	.gp-main-header__tools--desktop {
		display: none;
	}

	.gp-main-header__mobile {
		display: flex;
	}

	.gp-main-header__logo {
		flex: 0 0 auto;
		max-width: 42%;
	}
}

body.gp-has-gp-header .gp-nav-row {
	background: #fff;
	overflow: visible;
	/* Треугольник активного пункта (::before bottom: -6px) — без отступа обрезается и даёт скачок */
	padding-bottom: 6px;
	box-sizing: border-box;
}

.gp-header-announce {
	background: #ffb800;
	min-height: 44px;
	padding: 0 5.4%;
	display: flex;
	align-items: center;
	box-sizing: border-box;
}

.gp-header-announce p {
	margin: 0;
	width: 100%;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
}

.gp-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-left: 5.4%;
	padding-right: 5.4%;
}

.gp-header-row--utility {
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

.gp-header-row--main {
	min-height: 113px;
	padding-top: 0;
	padding-bottom: 0;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(5rem, 18vw, 15rem);
}

/* При прокрутке меняем только тень (JS: .is-scrolled) — без смены padding, иначе шапка «прыгает». */

.gp-nav-row .alignwide {
	padding: 0.65rem 5.4%;
}

.gp-nav-menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.gp-nav-menu li {
	margin: 0;
}

.gp-nav-menu a {
	text-decoration: none;
}

.gp-nav-menu--utility {
	justify-content: flex-end;
}

.gp-nav-menu--catalog {
	justify-content: space-between;
	align-items: stretch;
	width: 100%;
	gap: 0.5rem 1rem;
}

.gp-nav-menu--catalog > li {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	overflow: visible;
}

.gp-nav-menu--catalog a {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 100%;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	/* Место под жёлтую полоску — у всех пунктов, не только у .current (иначе ряд «прыгает») */
	padding-bottom: 0.4rem;
	box-sizing: border-box;
}

.gp-nav-menu--catalog .gp-nav-menu__label {
	display: block;
	max-width: 11rem;
	/* Резерв под 2 строки — иначе высота ряда меняется при смене активной категории */
	min-height: calc(2 * 1.35 * 1em);
}

.gp-nav-menu--catalog .gp-nav-menu__label--short {
	display: none;
}

@media (max-width: 767px) {
	.gp-nav-row .alignwide {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.gp-nav-menu--catalog {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.65rem 0.4rem;
		justify-content: stretch;
	}

	.gp-nav-menu--catalog > li {
		flex: unset;
		min-width: 0;
	}

	.gp-nav-menu--catalog a {
		font-size: 11px;
		line-height: 1.25;
		padding-bottom: 0.3rem;
	}

	.gp-nav-menu--catalog .gp-nav-menu__label {
		max-width: none;
		min-height: calc(2 * 1.25 * 1em);
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.gp-nav-menu--catalog .gp-nav-menu__label--full {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.gp-nav-menu--catalog .gp-nav-menu__label--short {
		display: block;
	}

	.gp-nav-menu--catalog .gp-nav-menu__icon {
		width: 40px;
		height: 40px;
		padding-top: 0.35rem;
	}
}

.gp-nav-menu--catalog .gp-nav-menu__icon {
	width: 56px;
	height: 56px;
	margin-top: auto;
	padding-top: 0.45rem;
	object-fit: contain;
	display: block;
	flex: 0 0 auto;
}

.gp-nav-catalog .wp-block-navigation__container {
	align-items: stretch;
}

.gp-nav-catalog .wp-block-navigation-item {
	display: flex;
	flex: 1 1 0;
}

.gp-nav-catalog .wp-block-navigation-item a {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	width: 100%;
	min-height: 100%;
	text-align: center;
}

/* Навигация — цвета как у референса */
body.gp-has-gp-header .gp-nav-head .wp-block-navigation-item a {
	color: #686868;
	font-weight: 400;
	font-size: 13px;
	text-decoration: none;
}

body.gp-has-gp-header .gp-nav-utility .wp-block-navigation-item a {
	color: #686868;
	font-weight: 500;
	text-decoration: none;
}

body.gp-has-gp-header .gp-nav-catalog .wp-block-navigation-item a {
	color: #0b1a48;
	text-decoration: none;
}

body.gp-has-gp-header .gp-nav-head .gp-nav-menu a,
body.gp-has-gp-header .gp-nav-menu--head a {
	color: #090909;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.4;
	white-space: nowrap;
}

body.gp-has-gp-header .gp-nav-utility .gp-nav-menu a {
	color: #686868;
	font-weight: 500;
	font-size: 0.8rem;
}

body.gp-has-gp-header .gp-nav-catalog .gp-nav-menu a {
	color: #0b1a48;
}

/* Hover красным (донор) — все меню в шапке */
body.gp-has-gp-header .gp-site-header .gp-nav-menu a:hover,
body.gp-has-gp-header .gp-site-header .gp-nav-menu a:focus-visible,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu a:hover,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu a:focus-visible,
body.gp-has-gp-header .gp-site-header .wp-block-navigation-item a:hover,
body.gp-has-gp-header .gp-site-header .wp-block-navigation-item a:focus-visible,
body.gp-has-gp-header .gp-nav-row .wp-block-navigation-item a:hover,
body.gp-has-gp-header .gp-nav-row .wp-block-navigation-item a:focus-visible {
	color: #c02828;
}

/* Активный пункт: нижняя жёлтая полоска + «уголок» по центру (как Kaeser .colorBar) */
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li {
	position: relative;
	overflow: visible;
}

body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.gp-nav-item--current > a,
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.current-menu-item > a,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.gp-nav-item--current > a,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.current-menu-item > a {
	position: relative;
}

/* Полоска снизу */
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.gp-nav-item--current > a::after,
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.current-menu-item > a::after,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.gp-nav-item--current > a::after,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.current-menu-item > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 4px;
	background: #ffb800;
	z-index: 2;
	pointer-events: none;
}

/* Треугольник по центру полоски */
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.gp-nav-item--current > a::before,
body.gp-has-gp-header .gp-site-header .gp-nav-menu > li.current-menu-item > a::before,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.gp-nav-item--current > a::before,
body.gp-has-gp-header .gp-nav-row .gp-nav-menu > li.current-menu-item > a::before {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 6px solid #ffb800;
	z-index: 3;
	pointer-events: none;
}

.gp-nav-menu--head > li.gp-nav-item--current > a,
.gp-nav-menu--head > li.current-menu-item > a {
	display: inline-block;
	padding-bottom: 0.5rem;
}

/* Каталог: hover — увеличение иконки; активный — «дыхание» (без transition, иначе animation не работает) */
.gp-nav-menu--catalog .gp-nav-menu__icon {
	transform-origin: center center;
}

.gp-nav-menu--catalog > li:not(.gp-nav-item--current):not(.current-menu-item) > a:hover .gp-nav-menu__icon,
.gp-nav-menu--catalog > li:not(.gp-nav-item--current):not(.current-menu-item) > a:focus-visible .gp-nav-menu__icon {
	transform: scale(1.12);
	transition: transform 0.6s ease;
}

@keyframes gp-nav-catalog-icon-breathe {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.12);
	}
}

.gp-nav-menu--catalog > li.gp-nav-item--current .gp-nav-menu__icon,
.gp-nav-menu--catalog > li.current-menu-item .gp-nav-menu__icon {
	animation: gp-nav-catalog-icon-breathe 3s ease-in-out infinite;
}

/* Анимация scale внутри sticky даёт дёргание на слабых GPU при скролле. */
html.gp-is-scrolling .gp-nav-menu--catalog .gp-nav-menu__icon {
	animation-play-state: paused;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.gp-nav-menu--catalog > li.gp-nav-item--current .gp-nav-menu__icon,
	.gp-nav-menu--catalog > li.current-menu-item .gp-nav-menu__icon {
		animation: none;
	}

	.gp-nav-menu--catalog > li > a:hover .gp-nav-menu__icon,
	.gp-nav-menu--catalog > li > a:focus-visible .gp-nav-menu__icon {
		transform: none;
	}
}

.gp-header-main {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
}

.gp-brand .custom-logo {
	max-width: 190px;
	height: auto;
}

.gp-brand__logo-link {
	display: block;
	line-height: 0;
}

.gp-brand__logo {
	width: 190px;
	height: auto;
	display: block;
}

.gp-brand__title {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #2f38bf;
	text-decoration: none;
}

/* Контакты в шапке */
.gp-contact-grid {
	display: grid;
	grid-template-columns: max-content max-content;
	gap: 1rem clamp(1.25rem, 3vw, 2.25rem);
	max-width: none;
	font-size: 12px;
	line-height: 1.25;
	color: #0b1a48;
}

.gp-contact-card {
	display: grid;
	grid-template-columns: 24px max-content;
	gap: 10px;
	align-items: center;
}

.gp-contact-card__iconwrap {
	width: 24px;
	height: 29px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
}

.gp-contact-card__bigicon {
	width: 24px;
	height: 29px;
	object-fit: contain;
	display: block;
}

.gp-contact-card__body {
	min-width: max-content;
}

.gp-contact-card__rows {
	margin-top: 0.1rem;
}

.gp-contact-card__row {
	margin: 0;
	display: block;
	font-size: 12px;
	line-height: 1.35;
	color: #0b1a48;
	white-space: nowrap;
}

.gp-contact-card br {
	display: none !important;
}

.gp-contact-card__meta {
	color: #000;
	white-space: nowrap;
}

.gp-contact-card__messengers {
	display: inline-flex !important;
	align-items: center;
	gap: 3px;
	margin-left: 0.2rem;
	white-space: nowrap;
}

.gp-messenger-ico {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.gp-mini-ico {
	width: 15px;
	height: 15px;
	display: inline-block;
	object-fit: contain;
	vertical-align: -2px;
	margin-right: 0.15rem;
}

@media (max-width: 781px) {
	.gp-header-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.gp-nav-menu--utility {
		justify-content: flex-start;
	}

	.gp-contact-grid {
		grid-template-columns: 1fr;
		max-width: none;
		margin-top: 1rem;
		width: 100%;
	}

	.gp-contact-card {
		grid-template-columns: 26px 1fr;
	}

	.gp-contact-card__body {
		min-width: 0;
	}

	.gp-contact-card__row {
		white-space: normal;
	}
}

.gp-contact-card__label {
	margin: 0;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0;
	color: #0b1a48;
}

.gp-contact-card__row a {
	color: #797979;
	font-weight: 400;
	text-decoration: none;
}

.gp-contact-card__row a:hover {
	color: #2f38bf;
}

.gp-contact-card__phones {
	margin: 0 0 0.35rem;
}

.gp-contact-card__phones a {
	color: #0b1a48;
	font-weight: 600;
	text-decoration: none;
}

.gp-contact-card__phones a:hover {
	color: #2f38bf;
}

.gp-contact-card__hours {
	margin: 0 0 0.35rem;
	color: #686868;
	font-size: 0.78rem;
}

.gp-contact-card__messengers {
	margin: 0 0 0 0.2rem;
	font-size: inherit;
}

.gp-messenger {
	color: #2f38bf;
	font-weight: 500;
	text-decoration: none;
}

.gp-messenger:hover {
	text-decoration: underline;
}

/* --- Hero слайдер --- */
.gp-hero-outer {
	margin-top: 0 !important;
}

.gp-hero {
	position: relative;
	min-height: min(70vh, 560px);
	overflow: hidden;
	background: #1e1b4b;
}

.gp-hero__layout {
	display: grid;
	grid-template-columns: 1fr min(320px, 34%);
	min-height: min(70vh, 560px);
	max-width: 1340px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) var(--wp--preset--spacing--50, 1.25rem);
	gap: 1.5rem;
	align-items: center;
}

@media (max-width: 960px) {
	.gp-hero__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}
}

.gp-hero__slides {
	position: relative;
	min-height: 280px;
}

.gp-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 1rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.55s ease;
}

.gp-hero__slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.gp-hero__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.9);
}

.gp-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	max-width: 34ch;
}

.gp-hero__btn {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	border-radius: 6px;
	background: #2f38bf;
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.gp-hero__btn:hover {
	background: #5071d5;
	transform: translateY(-1px);
}

.gp-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 2;
}

@media (max-width: 960px) {
	.gp-hero__dots {
		position: static;
		transform: none;
		justify-content: center;
		margin-top: 1rem;
		padding-bottom: 1rem;
	}
}

.gp-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: 0.7;
}

.gp-hero__dot[aria-selected="true"] {
	background: #fff;
	opacity: 1;
}

.gp-hero__aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: 1rem 0;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	padding-left: 1.5rem;
}

@media (max-width: 960px) {
	.gp-hero__aside {
		border-left: none;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		padding-top: 1.25rem;
	}
}

.gp-hero__aside p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
}

/* Фоны слайдов (градиенты вместо Revolution Slider) */
.gp-hero[data-active-slide="0"] {
	background: linear-gradient(110deg, #7dd3fc 0%, #6366f1 45%, #7c3aed 100%);
}

.gp-hero[data-active-slide="1"] {
	background: linear-gradient(110deg, #38bdf8 0%, #4f46e5 50%, #6d28d9 100%);
}

.gp-hero[data-active-slide="2"] {
	background: linear-gradient(110deg, #0ea5e9 0%, #4338ca 55%, #5b21b6 100%);
}

.gp-hero[data-active-slide="3"] {
	background: linear-gradient(110deg, #0284c7 0%, #3730a3 50%, #4c1d95 100%);
}

/* Секции контента */
.gp-section-heading {
	color: #0b1a48;
}

.gp-stats-row .wp-block-column {
	text-align: center;
}

.gp-stat-num {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: #2f38bf;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.gp-stat-label {
	font-size: 0.85rem;
	color: #686868;
	margin: 0;
}

.gp-dark-panel {
	border-radius: 12px;
	overflow: hidden;
}

/* Форма в CTA */
.gp-cta-section .wpcf7,
.gp-cta-section form {
	max-width: 480px;
}

.gp-cta-section input[type="text"],
.gp-cta-section input[type="email"],
.gp-cta-section input[type="tel"],
.gp-cta-section textarea {
	width: 100%;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	padding: 0.65rem 0.85rem;
	margin-bottom: 0.75rem;
	box-sizing: border-box;
}

.gp-cta-section input::placeholder,
.gp-cta-section textarea::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.gp-cta-section .wpcf7-submit,
.gp-cta-section input[type="submit"] {
	background: #ffb800 !important;
	color: #0b1a48 !important;
	border: none !important;
	font-weight: 700;
	padding: 0.75rem 1.5rem !important;
	border-radius: 6px;
	cursor: pointer;
}

.wp-block-group.gp-adv-card {
	border-radius: 10px !important;
	background: #fff !important;
	border: 1px solid #e8e8e8 !important;
	box-sizing: border-box;
	min-height: 100%;
}

.gp-adv-num {
	font-size: 1.5rem;
	font-weight: 800;
	color: #2f38bf;
	margin-bottom: 0.35rem !important;
	margin-top: 0 !important;
}

.wp-block-group.gp-news-card {
	border-radius: 10px !important;
	box-sizing: border-box;
	min-height: 100%;
}

.wp-block-group.gp-news-card a {
	color: #2f38bf;
	font-weight: 600;
	text-decoration: none;
}

.wp-block-group.gp-news-card a:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.gp-hero__slide {
		transition: none;
	}
}

/* Красная кнопка gp-buton-link (Подробнее, Показать и т.д.) */
.gp-buton-link .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: auto;
	min-height: 50px;
	padding: 0.65rem 1.5rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #be0000 !important;
	color: #fff !important;
	font-family: inherit;
	font-weight: 400;
	font-size: 18px !important;
	line-height: 1.5 !important;
	text-decoration: none;
	cursor: pointer;
	transition: background 1s ease;
}

.gp-buton-link .wp-block-button__link:hover,
.gp-buton-link .wp-block-button__link:focus-visible {
	background: #880505 !important;
	color: #fff !important;
	border-color: transparent !important;
}
