/**
 * ATB Block: Vehicle Bottom CTA
 *
 * Назначение:
 * - компактный широкий CTA перед footer;
 * - CSS не влияет на global CTA и соседние блоки.
 *
 * Уникальные классы:
 * - .atb-vehicle-cta
 */

.atb-vehicle-cta {
	padding: 22px 0 34px;
	background: #ffffff;
}

.atb-vehicle-cta__container {
	width: min(calc(100% - 40px), 1320px);
		max-width: 1320px;
		margin-right: auto;
		margin-left: auto;
}

.atb-vehicle-cta__panel {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 220px;
	border-radius: 0;
	background:
		linear-gradient(135deg, #020617 0%, #07111f 48%, #0f2554 100%);
	color: #ffffff;
}

.atb-vehicle-cta__panel::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(2, 6, 23, .92) 0%, rgba(2, 6, 23, .70) 38%, rgba(2, 6, 23, .18) 70%, rgba(2, 6, 23, .06) 100%),
		linear-gradient(180deg, rgba(2, 6, 23, .15) 0%, rgba(2, 6, 23, .48) 100%);
	content: "";
	pointer-events: none;
}

.atb-vehicle-cta__background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.atb-vehicle-cta__background-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.atb-vehicle-cta__content {
	position: relative;
	z-index: 2;
	width: min(100%, 680px);
	padding: 34px 42px;
}

.atb-vehicle-cta__title {
	max-width: 620px;
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.05;
	font-weight: 850;
	letter-spacing: -0.045em;
	color: #ffffff;
}

.atb-vehicle-cta__text {
	max-width: 560px;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.55;
	font-weight: 550;
	color: rgba(255, 255, 255, .86);
}

.atb-vehicle-cta__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.atb-vehicle-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1;
	font-weight: 850;
	text-decoration: none;
}

.atb-vehicle-cta__button--primary {
	border: 1px solid #2563eb;
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 14px 34px rgba(37, 99, 235, .28);
}

.atb-vehicle-cta__button--primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.atb-vehicle-cta__button--secondary {
	border: 1px solid rgba(255, 255, 255, .36);
	background: rgba(15, 23, 42, .46);
	color: #ffffff;
	backdrop-filter: blur(10px);
}

.atb-vehicle-cta__button--secondary:hover {
	border-color: rgba(255, 255, 255, .58);
	background: rgba(255, 255, 255, .14);
	color: #ffffff;
}

@media (max-width: 980px) {
	.atb-vehicle-cta__panel {
		min-height: 260px;
	}

	.atb-vehicle-cta__panel::before {
		background:
			linear-gradient(90deg, rgba(2, 6, 23, .94) 0%, rgba(2, 6, 23, .78) 52%, rgba(2, 6, 23, .42) 100%),
			linear-gradient(180deg, rgba(2, 6, 23, .18) 0%, rgba(2, 6, 23, .58) 100%);
	}

	.atb-vehicle-cta__content {
		padding: 32px;
	}
}

@media (max-width: 760px) {
	.atb-vehicle-cta {
		padding: 18px 0 28px;
	}

	.atb-vehicle-cta__container {
		width: min(calc(100% - 32px), 100%);
	}

	.atb-vehicle-cta__panel {
		min-height: 360px;
	}

	.atb-vehicle-cta__background-image {
		object-position: 65% center;
	}

	.atb-vehicle-cta__content {
		padding: 26px 22px;
	}

	.atb-vehicle-cta__title {
		font-size: clamp(28px, 10vw, 38px);
	}

	.atb-vehicle-cta__text {
		font-size: 14px;
	}

	.atb-vehicle-cta__button {
		width: 100%;
	}
}

/* ATB vehicle revision spacing */
.atb-vehicle-cta {
	padding-top: 22px;
	padding-bottom: 34px;
}
