/**
 * ATB Block: Home CTA
 *
 * Назначение:
 * - тёмный CTA-блок на главной странице;
 * - ширина задаётся через .atb-container / .atb-container--wide;
 * - файл отвечает только за визуал блока.
 */

.atb-home-cta {
	padding: 0 0 72px;
	background: #f4f7fb;
	color: #ffffff;
}

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

.atb-home-cta__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	overflow: hidden;
	min-height: 178px;
	padding: 34px 34px 34px 40px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: #05070b;
	box-shadow: 0 22px 60px rgba(15, 23, 42, 0.20);
}

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

.atb-home-cta__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.82) 38%, rgba(5, 7, 11, 0.46) 66%, rgba(5, 7, 11, 0.78) 100%),
		linear-gradient(180deg, rgba(5, 7, 11, 0.10), rgba(5, 7, 11, 0.28));
}

.atb-home-cta__content {
	position: relative;
	z-index: 2;
	max-width: 680px;
}

.atb-home-cta__title {
	margin: 0;
	color: #ffffff;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.atb-home-cta__text {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.atb-home-cta__button,
.atb-home-cta__button:visited {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 56px;
	padding: 0 26px;
	border: 1px solid rgba(15, 23, 42, 0.10);
	border-radius: 8px;
	background: #ffffff;
	color: #0f172a;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.atb-home-cta__button:hover,
.atb-home-cta__button:focus {
	background: #f8fafc;
	color: #2563eb;
	text-decoration: none;
}

.atb-home-cta__button span {
	font-size: 19px;
	line-height: 1;
}

@media (max-width: 768px) {
	.atb-home-cta {
		padding-bottom: 52px;
	}

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

	.atb-home-cta__panel {
		grid-template-columns: 1fr;
		gap: 22px;
		min-height: 260px;
		padding: 28px 24px;
	}

	.atb-home-cta__overlay {
		background: linear-gradient(180deg, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.70));
	}

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

/* === ATB Home CTA button system color: start === */
/*
 * Назначение:
 * - CTA-кнопка использует системный синий цвет сайта;
 * - текст кнопки всегда белый;
 * - правка только внутри блока .atb-home-cta.
 */
.atb-home-cta__button,
.atb-home-cta__button:visited {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

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

.atb-home-cta__button svg,
.atb-home-cta__button span {
	color: inherit;
}
/* === ATB Home CTA button system color: end === */
