/**
 * ATB Block: Home Hero
 *
 * Назначение:
 * - главный hero-блок главной страницы;
 * - фон BER / black van;
 * - заголовок, текст, CTA-кнопки и форма поиска трансфера;
 * - ширина hero-контента задаётся глобальным .atb-container;
 * - CSS блока отвечает только за визуал блока;
 * - без page-id/body-костылей, без !important, без глобальных селекторов.
 *
 * Уникальные классы:
 * - .atb-home-hero
 */

.atb-home-hero {
	position: relative;
	isolation: isolate;
	min-height: 660px;
	overflow: hidden;
	background: #05080d;
	color: #ffffff;
}

.atb-home-hero__image {
	position: absolute;
	inset: 0;
	z-index: -3;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0.74;
}

.atb-home-hero::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	content: "";
	background:
		linear-gradient(90deg, rgba(3, 7, 18, 0.93) 0%, rgba(3, 7, 18, 0.78) 38%, rgba(3, 7, 18, 0.36) 68%, rgba(3, 7, 18, 0.54) 100%),
		linear-gradient(180deg, rgba(3, 7, 18, 0.14) 0%, rgba(3, 7, 18, 0.24) 50%, rgba(3, 7, 18, 0.76) 100%);
	pointer-events: none;
}

.atb-home-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.atb-home-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 660px;
	padding-top: 76px;
	padding-bottom: 28px;
}

.atb-home-hero__content {
	max-width: 640px;
	margin-bottom: 34px;
}

.atb-home-hero__title {
	max-width: 640px;
	margin: 0 0 22px;
	color: #ffffff;
	font-size: clamp(48px, 5.1vw, 74px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.065em;
}

.atb-home-hero__text {
	max-width: 610px;
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.55;
}

.atb-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.atb-home-hero__button,
.atb-home-hero__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.atb-home-hero__button:hover,
.atb-home-hero__button:focus {
	text-decoration: none;
	transform: translateY(-1px);
}

.atb-home-hero__button--primary,
.atb-home-hero__button--primary:visited {
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 12px 30px rgba(37, 99, 235, 0.30);
}

.atb-home-hero__button--primary:hover,
.atb-home-hero__button--primary:focus {
	background: #1d4ed8;
	color: #ffffff;
}

.atb-home-hero__button--secondary,
.atb-home-hero__button--secondary:visited {
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.atb-home-hero__button--secondary:hover,
.atb-home-hero__button--secondary:focus {
	border-color: rgba(255, 255, 255, 0.74);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.atb-home-hero__button span {
	margin-left: 8px;
}


@media (max-width: 1180px) {
	.atb-home-hero {
		min-height: auto;
	}

	.atb-home-hero__inner {
		min-height: auto;
		padding-top: 64px;
		padding-bottom: 36px;
	}

}

@media (max-width: 768px) {
	.atb-home-hero__inner {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	.atb-home-hero__content {
		margin-bottom: 26px;
	}

	.atb-home-hero__title {
		font-size: 42px;
		line-height: 1.02;
		letter-spacing: -0.05em;
	}

	.atb-home-hero__text {
		font-size: 16px;
	}

	.atb-home-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.atb-home-hero__button {
		width: 100%;
		justify-content: center;
	}


}

/* === ATB hero frontend edit button: start === */
/*
 * Назначение:
 * - оформляет ссылку frontend-редактирования hero;
 * - кнопка видна только авторизованному пользователю, если ссылка есть в PHP;
 * - не влияет на обычных посетителей.
 */
.atb-home-hero__admin-edit,
.atb-home-hero__admin-edit:visited {
	position: absolute;
	top: 76px;
	right: 0;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.atb-home-hero__admin-edit:hover,
.atb-home-hero__admin-edit:focus {
	background: #f8fafc;
	color: #0f172a;
	text-decoration: none;
}

@media (max-width: 768px) {
	.atb-home-hero__admin-edit {
		position: static;
		align-self: flex-start;
		margin-bottom: 18px;
	}
}
/* === ATB hero frontend edit button: end === */
