.re-hero {
	--re-accent: #c88b3a;
	--re-accent-hover: #a96f24;
	--re-pad-x: clamp(20px, 5vw, 48px);
	--re-pad-y: clamp(48px, 12vh, 120px);
	--re-gap: clamp(10px, 2vw, 16px);
	--re-title: clamp(2.15rem, 5.6vw, 4.6rem);
	--re-lead: clamp(0.9375rem, 2.4vw, 1.25rem);

	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: clamp(460px, 82vh, 750px);
	overflow: hidden;
	isolation: isolate;
	margin: 0 0 clamp(24px, 4vw, 48px);
	padding: 0;
}

.re-hero__picture,
.re-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.re-hero__img {
	object-fit: cover;
	object-position: center 35%;
	z-index: 0;
}

.re-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(circle at 50% 18%, rgba(200, 139, 58, 0.16), transparent 32%),
		linear-gradient(
			180deg,
			rgba(10, 12, 20, 0.34) 0%,
			rgba(10, 12, 20, 0.58) 50%,
			rgba(10, 12, 20, 0.88) 100%
		);
	pointer-events: none;
}

.re-hero__content {
	position: relative;
	z-index: 2;
	width: min(100%, 820px);
	padding: var(--re-pad-y) var(--re-pad-x);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.re-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 18px;
	padding: 7px 18px 8px;
	font-size: clamp(0.75rem, 2vw, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 107, 0, 0.18);
	border: 1px solid rgba(255, 107, 0, 0.45);
	border-radius: 999px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: re-hero-badge-in 0.6s 0.1s ease-out both;
}

.re-hero__badge-icon {
	font-size: 1.15em;
	line-height: 1;
}

.re-hero__title {
	margin: 0 0 14px;
	font-size: var(--re-title);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
	animation: re-hero-fade-slide 0.6s 0.2s ease-out both;
}

.re-hero__lead {
	margin: 0 0 30px;
	max-width: 38rem;
	font-size: var(--re-lead);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	text-wrap: balance;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
	animation: re-hero-fade-slide 0.6s 0.3s ease-out both;
}

.re-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--re-gap);
	width: 100%;
	max-width: 34rem;
	animation: re-hero-fade-slide 0.6s 0.4s ease-out both;
}

.re-hero__agency {
	margin: 18px 0 0;
	font-size: clamp(0.8125rem, 2vw, 0.9375rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.78);
	animation: re-hero-fade-slide 0.6s 0.5s ease-out both;
}

.re-hero__agency a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.re-hero__agency a:hover,
.re-hero__agency a:focus-visible {
	color: #ffd7a8;
}

.re-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 30px;
	font-family: inherit;
	font-size: clamp(0.9375rem, 2.2vw, 1rem);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	border-radius: 14px;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.re-hero__btn svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.re-hero__btn--primary {
	background: var(--re-accent) !important;
	color: #fff !important;
	border-color: var(--re-accent) !important;
}

.re-hero__btn--primary:hover,
.re-hero__btn--primary:focus-visible {
	background: var(--re-accent-hover) !important;
	border-color: var(--re-accent-hover) !important;
	color: #fff !important;
	box-shadow: 0 8px 28px rgba(255, 107, 0, 0.45);
	transform: translateY(-2px);
}

.re-hero__btn--ghost {
	background: rgba(255, 255, 255, 0.10) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.30) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.re-hero__btn--ghost:hover,
.re-hero__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.18) !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

.re-hero__btn:focus-visible {
	outline: 3px solid rgba(255, 107, 0, 0.55);
	outline-offset: 3px;
}

@media (min-width: 769px) {
	.re-hero__actions {
		flex-direction: row;
		max-width: none;
	}

	.re-hero__btn {
		min-width: 180px;
	}
}

@media (max-width: 768px) {
	.re-hero {
		min-height: clamp(420px, 75vh, 560px);
		margin-bottom: 20px;
	}

	.re-hero__img {
		object-position: center 30%;
	}

	.re-hero__content {
		padding: clamp(40px, 10vh, 64px) clamp(18px, 5vw, 24px);
	}

	.re-hero__badge {
		margin-bottom: 14px;
		padding: 6px 14px 7px;
		font-size: clamp(0.6875rem, 3.2vw, 0.75rem);
	}

	.re-hero__title {
		font-size: clamp(1.75rem, 8vw, 2.55rem);
		margin-bottom: 10px;
	}

	.re-hero__lead {
		font-size: clamp(0.875rem, 4vw, 0.9375rem);
		line-height: 1.55;
		margin-bottom: 22px;
		max-width: 100%;
	}

	.re-hero__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 100%;
		gap: 10px;
	}

	.re-hero__btn {
		width: 100%;
		min-height: 50px;
		padding: 11px 20px;
		font-size: clamp(0.875rem, 4vw, 1rem);
		border-radius: 12px;
		white-space: normal;
		word-break: break-word;
	}

	.re-hero__btn svg {
		width: 18px;
		height: 18px;
	}

	.re-hero__btn--ghost {
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
	}
}

@media (max-width: 380px) {
	.re-hero {
		min-height: clamp(360px, 68vh, 460px);
	}

	.re-hero__badge {
		margin-bottom: 10px;
		padding: 5px 10px;
		font-size: 0.625rem;
	}

	.re-hero__title {
		font-size: clamp(1.25rem, 6.5vw, 1.5rem);
	}

	.re-hero__lead {
		font-size: clamp(0.8125rem, 3.8vw, 0.875rem);
		margin-bottom: 16px;
	}

	.re-hero__btn {
		min-height: 46px;
		padding: 10px 16px;
		font-size: 0.8125rem;
		border-radius: 10px;
	}

	.re-hero__actions {
		gap: 8px;
	}
}

@keyframes re-hero-badge-in {
	from { opacity: 0; transform: scale(0.92) translateY(-6px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes re-hero-fade-slide {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.re-hero__badge,
	.re-hero__title,
	.re-hero__lead,
	.re-hero__actions,
	.re-hero__agency {
		animation: none;
	}

	.re-hero__badge {
		opacity: 1;
		transform: none;
	}

	.re-hero__title {
		opacity: 1;
		transform: none;
	}

	.re-hero__lead {
		opacity: 1;
		transform: none;
	}

	.re-hero__actions {
		opacity: 1;
		transform: none;
	}

	.re-hero__btn {
		transition: none;
	}
}

/* Gutenberg Cover блок для hero */
.wp-block-cover.alignfull.re-hero-cover {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box;
}

.re-hero-cover .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center !important;
}

.re-hero-cover .wp-block-cover__inner-container > .entry-content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	text-align: center !important;
}

.re-hero-cover .wp-block-cover__inner-container > * {
	margin-left: auto !important;
	margin-right: auto !important;
}

.re-hero-cover .re-hero {
	margin: 0 auto !important;
}

/* fallback если короткий код сам */
.entry-content > .alignfull.re-hero-cover,
.entry-content > .re-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
