/**
 * Стили компонента «Всплывающая форма» (timer.popup).
 *
 * Всё изолировано префиксом .timer-popup, чтобы не задевать остальную вёрстку
 * сайта. Слева — фото, справа — форма (Имя + Телефон). На мобильных блоки
 * складываются в колонку.
 */

/* Блокируем прокрутку страницы, пока окно открыто */
body.timer-popup-open {
	overflow: hidden;
}

.timer-popup {
	position: fixed;
	inset: 0;
	z-index: 5000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	z-index: 999;
}

.timer-popup.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;

}

.timer-popup__overlay {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 99;
	background: rgb(0 0 0 / 43%);
	backdrop-filter: blur(4px);
	opacity: 1;
}

.timer-popup__dialog {
	position: relative;
	z-index: 99;
	display: flex;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 40px);
	background: #FFFFFF;
	overflow: hidden;
	transform: translateY(18px) scale(0.98);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-popup.is-open .timer-popup__dialog {
	transform: translateY(0) scale(1);
}

/* --- Кнопка закрытия --- */

.timer-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #b9b4b4;
	cursor: pointer;
}

.timer-popup__media {
	position: relative;
	flex: 0 0 44%;
	min-height: 420px;
}

.timer-popup__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* --- Правая колонка: форма --- */

.timer-popup__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 44px 25px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
	box-sizing: border-box;
}
.politika-line-timer{
	position:relative;
}
.timer-popup__body p{
	font-size:18px;
	margin-bottom: 12px;
	text-align: center;
}
.timer-popup__body p:last-child{
	margin-bottom: 0;
}
.timer-popup__title {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 400;
	text-align: center;
}

.timer-popup__form{
	margin-top: 30px;
	margin-bottom: 0;
}
.timer-popup__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.timer-popup__label {
	font-size: 13px;
	font-weight: 600;
	color: #5F6B67;
	letter-spacing: 0.01em;
}
.politika-line-timer #politika-timer{
	position: absolute;
    left: 0;
    width: 8px;
    opacity: 0;
}
.politika-line-timer #politika-timer:checked + label:before {
	content: '';
	background: url("images/pol-active.png") no-repeat;
}
.politika-line-timer label{
	font-size: 14px;
	margin-top: 21px;
}

.politika-line-timer label:before {
	content: '';
	background: url("images/pol.png") no-repeat;
	width: 17px;
	height: 17px;
	display: block;
	float: left;
	margin-right: 9px;
}
.politika-line-timer label a{
	color: #000;
	text-decoration: underline;
}
.timer-popup__input {
	width: 100%;
	margin-bottom: 10px;
	border: 1px solid #E6E6E6;
	padding: 15px 17px;
	font-size: 16px;
}

.timer-popup__submit {
	background: transparent;
	border: 1px solid #000000;
	width: 100%;
	color: #000;
	text-align: center;
	font-family: var(--fonts-global);
	font-size: 16px;
	cursor: pointer;
	padding: 17px;
	line-height: 1;
	margin-top: 26px;
	transition: all .3s;
}

.timer-popup__submit:hover {
	background: #000000;
	color:#ffffff;
}

.timer-popup__submit:disabled {
	opacity: 0.65;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.timer-popup__note {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #8B968F;
}

/* Сообщение об ошибке / успехе под формой */
.timer-popup__message {
	margin: 0;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.45;
	border-radius: 10px;
}

.timer-popup__message.is-error {
	color: #A32020;
	background: #FDECEC;
}

.timer-popup__message.is-success {
	color: #1E5B39;
	background: #E8F5EE;
}

/* --- Адаптив --- */

@media (max-width: 767px) {
	.timer-popup {
		padding: 12px;
	}

	.timer-popup__dialog {
		flex-direction: column;
		max-height: calc(100vh - 24px);

	}

	.timer-popup__media {
		display: none;
	}

	.timer-popup__body {
		padding: 10px;
		justify-content: flex-start;
	}

	.timer-popup__title {
		font-size: 22px;
	}

	.timer-popup__subtitle {
		margin-bottom: 18px;
	}
}

@media (max-width: 480px) {
	.timer-popup__media {
		flex-basis: 140px;
		min-height: 140px;
	}
}
@media (max-width: 440px) {
	.politika-line-timer label{
		font-size:11px;
	}
	.timer-popup__close{
		background: transparent;
	}
	.timer-popup__body{
		padding-top: 30px;
	}
	.timer-popup__close{
		top: 0;
		right: 0;
	}
}
@media (max-width: 390px) {
	.timer-popup__body p{
		font-size: 16px;
	}
	.politika-line-timer label:before{
		float:none;
		position: absolute;
		left: 0;
	}
	.politika-line-timer{
		padding-left: 20px;
	}
}

@media (max-width: 340px) {
	.timer-popup__title {
		font-size: 20px;
	}
}
