/* 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 #c4c9d1;
	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: #2f62ad;
	background-color: #2f62ad;
	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 #2f62ad;
	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: #292929;
}

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

.consent__text a {
	color: #2f62ad;
	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-кнопка не получает событий и не попадает в фокус. */
.btn[aria-disabled="true"] {
	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 {
		min-height: 44px;
		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 #e3e6ea;
	box-shadow: 0 -4px 16px rgba(41, 41, 41, 0.08);
	font-size: 13px;
	line-height: 18px;
	color: #292929;
}

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

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

.cookie-notice__btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 28px;
	border-radius: 8px;
	background: #2f62ad;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

/* Пока уведомление висит, добавляем отступ внизу страницы, чтобы полоса
   не перекрывала кнопку формы на телефоне (п. 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;
	}
}

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

.legal-footer {
	padding: 24px 16px 28px;
	background: #f7f8fa;
	border-top: 1px solid #e3e6ea;
	font-size: 12px;
	line-height: 18px;
	color: #6b7280;
}

.legal-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.legal-footer__requisites {
	margin-bottom: 10px;
}

.legal-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.legal-footer__links a {
	color: #2f62ad;
	text-decoration: underline;
}
