/* ===========================
   Hero
   Архитектура: column-flex.
   .hero__center (flex:1) — растягивается на свободное пространство,
                            главный контент центрируется внутри.
   .hero__bottom — trust-полоса, всегда прижата к низу.
   =========================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var(--color-white);
	padding-top: calc(var(--header-height) + 24px);
	padding-bottom: 24px;
}

/*
 * Фон. CSS-градиент: тёмная хвоя + красный glow в правом верхнем углу,
 * рифмуется с УАЗом справа.
 * Чтобы заменить на фото:
 *   background: url('../img/hero.jpg') center/cover no-repeat;
 */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.20) 0%, transparent 50%),
		radial-gradient(ellipse at 20% 80%, rgba(45, 90, 61, 0.4) 0%, transparent 60%),
		linear-gradient(135deg, #1B2A20 0%, #0F1814 100%);
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(15, 24, 20, 0.3) 0%, rgba(15, 24, 20, 0.55) 100%);
	pointer-events: none;
}

/* SVG-горы на фоне (слои для глубины) */
.hero__mountains {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: auto;
	z-index: 1;
	pointer-events: none;
}

/* ===========================
   Центральная зона — главный контент идеально по центру
   =========================== */
.hero__center {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: center;
	width: 100%;
}

/* ===========================
   Сетка: текст слева, УАЗ справа на всю высоту
   =========================== */
.hero__content {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	grid-template-areas:
		"eyebrow visual"
		"title   visual"
		"lead    visual"
		"cta     visual";
	column-gap: 60px;
	width: 100%;
}

.hero__eyebrow { grid-area: eyebrow; }
.hero__title   { grid-area: title; }
.hero__lead    { grid-area: lead; }
.hero__cta     { grid-area: cta; }
.hero__visual  { grid-area: visual; align-self: center; }

/* ===========================
   Eyebrow
   =========================== */
.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-full);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 24px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero__eyebrow::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-accent);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25);
}

/* ===========================
   Заголовок
   =========================== */
.hero__title {
	font-size: clamp(36px, 5.5vw, 80px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.025em;
	margin-bottom: 24px;
	color: var(--color-white);
}

.hero__title-accent {
	display: block;
	color: var(--color-accent);
	font-style: italic;
	font-weight: 800;
}

/* ===========================
   Лид
   =========================== */
.hero__lead {
	font-size: clamp(16px, 1.6vw, 20px);
	line-height: 1.55;
	max-width: 640px;
	color: rgba(250, 247, 240, 0.88);
	margin-bottom: 40px;
}

/* ===========================
   CTA-кнопки
   =========================== */
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ===========================
   УАЗ (visual)
   =========================== */
.hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
	position: relative;
}

.hero__visual-img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
	animation: heroJeepIn 1.1s 0.4s ease-out backwards;
}

@keyframes heroJeepIn {
	from { opacity: 0; transform: translateX(60px) scale(0.95); }
	to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroJeepInMobile {
	from { opacity: 0; transform: translateY(30px) scale(0.95); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===========================
   Появление контента при загрузке
   =========================== */
.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__cta {
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeIn 0.7s ease-out forwards;
}
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title   { animation-delay: 0.15s; }
.hero__lead    { animation-delay: 0.25s; }
.hero__cta     { animation-delay: 0.35s; }

@keyframes heroFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__eyebrow,
	.hero__title,
	.hero__lead,
	.hero__cta,
	.hero__visual-img {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* ===========================
   Планшеты (≤1024px) — асимметрия сохраняется, колонки уже
   =========================== */
@media (max-width: 1024px) {
	.hero__content {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		column-gap: 32px;
	}
	.hero__visual {
		min-height: 280px;
	}
	.hero__visual-img {
		max-height: 420px;
	}
}

/* ===========================
   Мобильные (≤768px) — одна колонка, УАЗ между H1 и лидом
   =========================== */
@media (max-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height-mobile) + 24px);
		padding-bottom: 32px;
	}

	.hero__center {
		align-items: flex-start; /* контент стартует сверху, не обрезается при overflow */
	}

	.hero__content {
		grid-template-columns: 1fr;
		grid-template-areas:
			"eyebrow"
			"title"
			"visual"
			"lead"
			"cta";
	}

	.hero__title {
		margin-bottom: 16px;
	}

	.hero__lead {
		margin-bottom: 32px;
	}

	.hero__visual {
		min-height: 0;
		margin: 8px 0 24px;
	}

	.hero__visual-img {
		max-height: 280px;
		animation-name: heroJeepInMobile;
		animation-duration: 0.8s;
		animation-delay: 0.3s;
		filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
	}

	.hero__cta .btn {
		flex: 1 1 100%;
	}
}

/* Совсем маленькие экраны (≤380px) — ещё компактнее */
@media (max-width: 380px) {
	.hero__visual-img {
		max-height: 220px;
	}
	.hero__eyebrow {
		font-size: 11px;
	}
}
