/* ==========================================================================
   Block: CTA
   1920: форма 821, p 60, gap 40 (высота по контенту → 938)
   1440: форма 576, p 24, растянута по высоте секции 685
   1024: форма 442, p 24, секция 597
   375:  форма на всю ширину, p 12, секция 870, верхние углы скруглены
   ========================================================================== */

.cta {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--container-pad);
	overflow: hidden;
	background-color: var(--c-dark-3);
}

.cta__bg {
	position: absolute;
	inset: 0;
}

.cta__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 821px;
	max-width: 100%;
	padding: 60px;
	border-radius: 12px;
	color: var(--c-white);
	background-color: #1f2126;
}

.cta__text {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.cta__title {
	font-size: 64px;
	font-weight: 500;
	line-height: 1;
}

.cta__accent {
	color: var(--c-orange);
}

.cta__lead {
	font-size: 24px;
	line-height: 1.2;
	color: var(--c-grey);
}

.cta__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cta__submit {
	align-self: flex-start;
}

@media (max-width: 1919.98px) {
	.cta {
		min-height: 685px;
	}

	.cta__form {
		flex: 1 1 auto;
		justify-content: space-between;
		gap: 20px;
		width: 576px;
		padding: 24px;
	}

	.cta__text {
		gap: 20px;
	}

	.cta__title {
		font-size: 48px;
		line-height: 1.1;
	}

	.cta__lead {
		font-size: 18px;
	}

	.cta__fields {
		gap: 12px;
	}
}

@media (max-width: 1439.98px) {
	.cta {
		min-height: 597px;
	}

	.cta__form {
		width: 442px;
	}

	.cta__text {
		gap: 12px;
	}

	.cta__title {
		font-size: 36px;
	}

	.cta__lead {
		font-size: 16px;
	}
}

@media (max-width: 1023.98px) {
	.cta {
		min-height: 870px;
		border-radius: 12px 12px 0 0;
	}

	.cta__form {
		flex: 0 0 auto;
		justify-content: flex-end;
		gap: 20px;
		width: 100%;
		padding: 12px;
	}

	.cta__title {
		font-size: 24px;
	}

	.cta__lead {
		font-size: 14px;
	}

	.cta__submit {
		align-self: stretch;
	}
}
