.cta {
	--vk-cta-width: 960px;
	--vk-cta-descr-width: 600px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	padding: 60px 20px;
	background: #29221c;
	font-family: var(--vk-font);
	color: #ffffff;
}

.cta__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--vk-cta-shade, rgba(41, 34, 28, 0.7));
}

.cta__inner {
	position: relative;
	z-index: 2;
	max-width: var(--vk-cta-width);
	width: 100%;
	text-align: center;
}

.cta__title {
	margin: 0 0 24px;
	font-size: 48px;
	font-weight: 600;
	line-height: 1.23;
	color: inherit;
	overflow-wrap: anywhere;
}

.cta__descr {
	max-width: var(--vk-cta-descr-width);
	margin: 0 auto 74px;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.5;
	color: inherit;
	overflow-wrap: anywhere;
}

/* Компактный вариант: узкая колонка и более мелкая шкала */

.cta--compact {
	--vk-cta-width: 720px;
}

.cta--compact .cta__title {
	margin-bottom: 40px;
	font-size: 42px;
}

.cta--compact .cta__descr {
	margin-bottom: 50px;
	font-size: 20px;
	line-height: 1.55;
}

/* Светлый вариант: без фотографии, на однотонной подложке */

.cta--light {
	--vk-cta-width: 1160px;
	--vk-cta-descr-width: 700px;
	min-height: 0;
	padding: 135px 20px 60px;
	background: #f8f8f8;
	color: #111111;
}

.cta--light::after {
	content: none;
}

.cta__note {
	margin: 30px 0 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
	color: inherit;
}

.cta__note a {
	color: #ff8562;
	text-decoration: none;
}

/* Форма */

.cta__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Плагины форм заворачивают поля в абзац и служебные обёртки. Они убираются
   из раскладки, чтобы поля оставались прямыми элементами формы и между ними
   работал общий вертикальный зазор. */
.cta__form > p,
.cta__form .wpcf7-form-control-wrap,
.cta__form .wpcf7-acceptance,
.cta__form .wpcf7-list-item {
	display: contents;
}

.cta__form br {
	display: none;
}

/* Индикатор отправки плагина не участвует в раскладке: о ходе отправки
   говорит сама кнопка. */
.cta__form .wpcf7-spinner {
	display: none;
}

.cta__form.submitting .cta__submit {
	opacity: 0.6;
}

.cta__form .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	color: #d0d0d0;
	cursor: pointer;
}

.cta__form .wpcf7-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vk-accent);
}

/* Поля оформляются по тегу, а не только по классу: форму сюда вставляют из
   админки, и проставлять класс каждому полю в её настройках не нужно. Тот же
   приём, что у окна заявки (modal.css). */
.cta__field,
.cta__form input[type="text"],
.cta__form input[type="tel"],
.cta__form input[type="email"],
.cta__form textarea {
	width: 100%;
	min-width: 0;
	min-height: 54px;
	padding: 16px 18px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #000000;
	background: #ffffff;
}

.cta__field::placeholder,
.cta__form input::placeholder,
.cta__form textarea::placeholder {
	color: #6a6a6a;
	opacity: 1;
}

.cta__field--area {
	height: 256px;
	resize: vertical;
}

.cta__consent {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	color: #d0d0d0;
	cursor: pointer;
}

.cta__checkbox {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: var(--vk-accent);
}

.cta__submit {
	align-self: center;
	min-height: 52px;
	margin-top: 10px;
	padding: 16px 32px;
	border-radius: 0;
	font-size: 16px;
}

/* Кнопка формы, вставленной без своих классов: повторяет вид золотой кнопки
   темы, чтобы такая форма выглядела так же, как настроенная вручную. */
.cta__form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 52px;
	margin-top: 10px;
	padding: 16px 32px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: #ffffff;
	background: var(--vk-accent);
	cursor: pointer;
	transition: background-color var(--vk-transition);
}

.cta__form input[type="submit"]:hover {
	background: var(--vk-accent-hover);
}

.cta :focus-visible {
	outline: 2px solid var(--vk-accent);
	outline-offset: 3px;
}

.cta__field:focus-visible {
	outline-offset: 0;
}

/* Media */

@media (max-width: 1200px) {
	.cta {
		--vk-cta-width: 780px;
	}

	.cta__title {
		font-size: 44px;
	}

	.cta__descr {
		font-size: 22px;
	}
}

@media (max-width: 960px) {
	.cta {
		--vk-cta-width: 600px;
		padding: 50px 20px;
	}

	.cta__descr {
		margin-bottom: 50px;
	}

	.cta__field--area {
		height: 180px;
	}
}

@media (max-width: 640px) {
	.cta__title {
		font-size: 30px;
	}

	.cta__descr {
		font-size: 20px;
		line-height: 1.4;
	}

	.cta__form {
		gap: 12px;
	}
}
