/* 152-ФЗ: галочки согласия, уведомление о cookie, реквизиты в подвале.
   Отдельный файл, а не правка style.css: style.min.css пересобирается из
   исходников лендинга, и при следующей сборке эти стили бы пропали. */

/* ---- Галочки согласия в формах ---------------------------------------- */

.consent {
	margin-top: 16px;
	text-align: left;
}

.consent__row {
	display: flex;
	align-items: flex-start;
	/* Подпись кликабельна целиком — это <label>. */
	cursor: pointer;
	/* Область нажатия не меньше 44px по вертикали (п. 2.4 ТЗ). */
	min-height: 44px;
	padding: 4px 0;
}

/* Нативный чекбокс прячем, но оставляем в потоке фокуса и доступным
   скринридерам: видимый квадрат рисует .consent__box. */
.consent__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.consent__box {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-right: 10px;
	border: 1.5px solid #c9cbd0;
	border-radius: 5px;
	background: #fff no-repeat center;
	transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.consent__input:checked + .consent__box {
	border-color: #e84b37;
	background-color: #e84b37;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.3 4.3 6.2 11.4 2.7 7.9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent__input:focus-visible + .consent__box {
	outline: 2px solid #e84b37;
	outline-offset: 2px;
}

.consent_invalid {
	padding: 10px 12px;
	border: 1.5px solid #d64545;
	border-radius: 8px;
	background: #fff5f4;
}

.consent_invalid .consent__box {
	border-width: 2px;
	border-color: #d64545;
}

.consent_invalid .consent__text {
	color: #282828;
}

.consent__text {
	font-size: 13px;
	line-height: 18px;
	color: #929498;
}

.consent__text a {
	color: #e84b37;
	text-decoration: underline;
}

.consent__error {
	margin: 4px 0 0 32px;
	font-size: 12px;
	line-height: 16px;
	color: #d64545;
}

.consent__error[hidden] {
	display: none;
}

/* Кнопки «неактивны», пока не отмечено обязательное согласие (п. 2.2 ТЗ).
   Именно вид, а не атрибут disabled: по клику нужно показать подсказку,
   а disabled-элемент не получает событий и не попадает в фокус. */
[aria-disabled="true"].btn {
	opacity: 0.45;
	cursor: not-allowed;
}

@media (max-width: 479.98px) {
	.consent {
		margin-top: 10px;
	}

	.consent__text {
		font-size: 12px;
		line-height: 16px;
	}

	.consent__row {
		padding: 2px 0;
	}
}

/* ---- Уведомление о cookie --------------------------------------------- */

.cookie-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: #ffffff;
	border-top: 1px solid #e6e7ea;
	box-shadow: 0 -4px 16px rgba(40, 40, 40, 0.10);
	font-size: 13px;
	line-height: 18px;
	color: #282828;
}

.cookie-notice__text {
	max-width: 720px;
}

.cookie-notice__text a {
	color: #e84b37;
	text-decoration: underline;
}

.cookie-notice__btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 28px;
	border: 0;
	border-radius: 8px;
	background: #e84b37;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.cookie-notice__btn:hover {
	background: #ff533d;
}

/* Пока уведомление висит, добавляем отступ внизу страницы, чтобы полоса
   не перекрывала кнопку формы на телефоне (п. 4.1 ТЗ). */
.has-cookie-notice body {
	padding-bottom: 104px;
}

@media (max-width: 479.98px) {
	.cookie-notice {
		gap: 10px;
		padding: 12px 14px;
		font-size: 12px;
		line-height: 16px;
	}

	.cookie-notice__btn {
		width: 100%;
	}

	.has-cookie-notice body {
		padding-bottom: 148px;
	}
}

/* ---- Реквизиты в подвале ----------------------------------------------- */

.footer__requisites {
	margin-top: 12px;
	font-size: 12px;
	line-height: 18px;
	color: #929498;
}

.footer__requisites a {
	color: inherit;
}
