/**
 * Блок «Главный экран» (acf/home-hero).
 * Секция Hero главной страницы макета.
 */

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow: hidden;
	background: var(--t-dark);
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .95;
}

/* Затемнение слева направо, чтобы читался текст. */
.hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(34, 28, 24, .8) 0%, rgba(34, 28, 24, .48) 44%, rgba(34, 28, 24, .08) 100%);
}

/* Сетка-подложка поверх фото. */
.hero__grid {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 64px 64px;
}

.hero__inner {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 96px var(--t-pad-x) 48px;
}

.hero__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 56px;
	width: 100%;
	flex-wrap: wrap;
}

.hero__content {
	flex: 1 1 520px;
	max-width: 680px;
}

.hero__eyebrow {
	margin-bottom: 26px;
}

.hero__title {
	margin: 0;
	font-family: var(--t-font-display);
	font-weight: 800;
	font-size: clamp(42px, 5.2vw, 78px);
	line-height: .97;
	letter-spacing: -.03em;
	color: #fff;
}

/* Первая часть заголовка — светлая и тонкая, вторая — акцентная. */
.hero__title-main {
	font-weight: 300;
	color: rgba(255, 255, 255, .84);
}

.hero__title-accent {
	color: var(--t-accent-light);
}

.hero__lead {
	max-width: 50ch;
	margin: 28px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .84);
}

.hero__lead p {
	margin: 0;
}

.hero__lead p + p {
	margin-top: 12px;
}

.hero__lead b,
.hero__lead strong {
	font-family: var(--t-font-display);
	font-weight: 700;
	color: #fff;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

/* ───────────────  Форма заявки  ─────────────── */

.hero__form {
	flex: 0 0 400px;
	width: 400px;
	max-width: 100%;
	padding: 32px 32px 28px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: var(--t-radius-lg);
	background: var(--t-paper);
	box-shadow: var(--t-shadow-card);
	color: var(--t-ink);
}

.hero__form-title {
	font-family: var(--t-font-display);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.hero__form-subtitle {
	margin: 9px 0 22px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--t-muted);
}

.hero__form-field {
	margin-bottom: 12px;
}

/* ───────────────  Форма от Contact Form 7  ─────────────── */

.hero__form .wpcf7 {
	margin: 0;
}

.hero__form .wpcf7-form-control-wrap {
	display: block;
}

/* Кнопка CF7 — это input[type=submit], ширину задаём тут же. */
.hero__form input.wpcf7-submit {
	width: 100%;
}

.hero__form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #B3261E;
}

.hero__form .wpcf7-not-valid {
	border-color: #B3261E;
}

.hero__form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1.5px solid var(--t-border);
	border-radius: var(--t-radius-md);
	font-size: 13.5px;
	line-height: 1.45;
}

.hero__form form.sent .wpcf7-response-output {
	border-color: var(--t-accent);
	background: rgba(188, 106, 56, .08);
	color: var(--t-accent-dark);
}

.hero__form form.invalid .wpcf7-response-output,
.hero__form form.failed .wpcf7-response-output {
	border-color: #B3261E;
	background: rgba(179, 38, 30, .07);
	color: #B3261E;
}

.hero__form .wpcf7-spinner {
	margin: 10px auto 0;
	display: block;
}

/* ───────────────  Полоса фактов  ─────────────── */

.hero__facts {
	position: relative;
	z-index: 2;
	background: var(--t-accent);
	color: #fff;
}

.hero__facts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	width: 100%;
}

.hero__fact {
	padding: 26px clamp(20px, 3vw, 40px);
	border-left: 1px solid rgba(255, 255, 255, .22);
	min-width: 0;
}

.hero__fact:first-child {
	padding-left: var(--t-pad-x);
	padding-right: var(--t-pad-x);
	border-left: none;
}

.hero__fact-value {
	display: block;
	font-family: var(--t-font-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -.01em;
}

.hero__fact-label {
	display: block;
	margin-top: 8px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .88);
}

/* ───────────────  Адаптив  ─────────────── */

@media (max-width: 980px) {
	.hero__facts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero__fact:nth-child(2n+1) {
		border-left: none;
	}

	.hero__fact:nth-child(n+3) {
		border-top: 1px solid rgba(255, 255, 255, .22);
	}
}

@media (max-width: 640px) {
	.hero__inner {
		padding-top: 64px;
	}

	.hero__form {
		flex-basis: 100%;
		width: 100%;
		padding: 24px 20px 22px;
	}
}

@media (max-width: 460px) {
	.hero__facts-grid {
		grid-template-columns: 1fr;
	}

	.hero__fact {
		padding-left: var(--t-pad-x);
		padding-right: var(--t-pad-x);
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, .22);
	}

	.hero__fact:first-child {
		border-top: none;
	}
}
