/* Дополнительные правки для автономной версии страницы. */
html {
	scroll-behavior: smooth;
	overflow-y: scroll;
}

button,
a.btn {
	-webkit-tap-highlight-color: transparent;
}

/* Показываем фон родной Creatium-модалки при ручном открытии из автономной сборки. */
.modal.active > .modal-back {
	display: block;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}

/* Honeypot-поле для защиты обработчика от простого спама. */
.lead-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Статус отправки остаётся под кнопкой и используется для ошибок/процесса отправки. */
.lead-form__status {
	min-height: 22px;
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.lead-form__status.is-success {
	color: rgb(0, 130, 66);
}

/* Ошибку обязательного поля делаем заметнее, чтобы её не пропускали под кнопкой. */
.lead-form__status.is-error {
	margin-top: 16px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: #b00020;
}

/* После успешной отправки поля формы скрываются, а на их месте появляется крупное сообщение. */
.cr-form.lead-form--sent > :not(.lead-form__success-panel) {
	display: none !important;
}

.lead-form__success-panel {
	box-sizing: border-box;
	width: 100%;
	min-height: 190px;
	padding: 42px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal .lead-form__success-panel {
	min-height: 230px;
}

.lead-form__success-title {
	margin-bottom: 12px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	color: rgb(0, 130, 66);
}

.lead-form__success-text {
	max-width: 520px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.4;
	color: #222;
}

button[disabled] {
	cursor: default;
	opacity: 0.7;
}

@media (max-width: 640px) {
	.modal[data-type="modal"] > .modal-dialog {
		margin-top: 25px;
		margin-bottom: 25px;
	}

	.lead-form__status.is-error {
		font-size: 24px;
	}

	.lead-form__success-panel {
		min-height: 170px;
		padding: 34px 18px;
	}

	.modal .lead-form__success-panel {
		min-height: 210px;
	}

	.lead-form__success-title {
		font-size: 30px;
	}

	.lead-form__success-text {
		font-size: 20px;
	}
}

/* Общий якорь перед адаптивными версиями блока: одна точка скролла для ПК и мобильной версии. */
.site-anchor {
	display: block;
	height: 0;
	scroll-margin-top: 8px;
}

