/* Основной поп-ап */
.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99888;
	overflow-y: hidden;
	overflow-x: hidden;
	visibility: hidden;
	opacity: 0;
	transition: all 0.8s ease 0s;
}

.popup.open {
	visibility: visible;
	opacity: 1;
}

.popup.open .popup__content {
	transform: scale(1);
}

.popup__area {
	position: absolute;
	background-color: #000;
	opacity: 0.5;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.popup_body {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.highlight {
	color: #0a5bff;
	font-weight: 500;
}

.popup__content {
	display: flex;
	flex-direction: row;
	box-sizing: border-box;
	padding: 20px;
	font-family: 'Geometria', sans-serif;
	background-color: #fff;
	color: #212121;
	width: 818px;
	height: 729px;
	border-radius: 16px;
	position: relative;
	transform: scale(0);
	transition: transform 0.8s;
}

.popup__image {
	display: block;
}

.popup__image-container {
	position: relative;
	display: inline-block;
}

.popup__close {
	z-index: 9999;
	width: 32px;
	height: 32px;
	background-color: #ffffff80;
	border-radius: 100%;
	text-align: center;
	position: absolute;
	top: 39px;
	right: 36px;
	color: #131313;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
}

.popup__close:hover {
	background-color: #ffffffe9;
}

.popup__title {
	text-align: left;
	font-size: 29px;
	font-weight: 700;
	line-height: 110%;
}

.popup__subtitle {
	text-align: left;
	font-size: 18px;
	font-weight: 400;
	line-height: 110%;
	margin: 12px 0 28px;
}

.popup__container {
	background-color: #f9f0e7;
	align-items: center;
	box-sizing: border-box;
	padding: 32px;
	border-radius: 20px;
}

#popup__form {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	/* row-gap: 10px; */
}

/* Контейнер с чекбоксами */
.popup__directions {
	display: grid;
	grid-template-columns: 1fr 1fr; /* две колонки */
	row-gap: 10px;
	column-gap: 10px;
	margin-bottom: 28px;
}

/* Обертка для каждого чекбокса */
.direction__item {
	position: relative;
	/* width: 214px;
	height: 64px; */
}

.direction_item--mobile {
	display: none;
}

.consent_text {
	padding-left: 30px;
}

/* Прячем стандартный чекбокс */
.direction__item input[type='checkbox'] {
	display: none;
}

/* Стилизация под кнопку */
.direction__item label {
	display: block;
	box-sizing: border-box;
	/* padding: 16px; */
	padding-left: 16px;
	width: 214px;
	height: 64px;
	border: 1px solid #2121214d;
	gap: 12px; /* отступ между кружком и текстом */
	border-radius: 12px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 400;
	line-height: 18px;
	color: #2121214d;
	background-color: #f9f0e7;
	text-align: left;
	transition: all 0.2s ease;
	user-select: none;
	/* margin-right: 15px; */
}

/* При наведении */
.direction__item label:hover {
	background-color: #f3f3f3;
}

.direction__item__height label {
	height: 81px;
}

/* Кружок слева */
.direction__item label::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	top: 15px;
	margin-right: 10px;
	border-radius: 50%;
	border: 2px solid rgba(33, 33, 33, 0.3);
	background-color: #f9f0e7;
	flex-shrink: 0;
	position: relative;
}

.direction__item__label::before {
	top: 27px !important;
}

.direction_text {
	padding-left: 38px;
}

.direction_text__absolute {
	position: absolute;
	top: 20px;
}

.direction_text__absolute__up {
	position: absolute;
	top: 10px;
}

.direction_text__absolute__down {
	position: absolute;
	top: 24px;
	left: 54px;
}

.direction_text__absolute__middle {
	position: absolute;
	top: 16px;
}

.content__mobile {
	height: 200px;
	width: 200px;
}

/* Галочка внутри кружка */
.direction__item input[type='checkbox']:checked + label::before {
	border-color: #fff;
	background-color: #fff;
	background-image: url('/assets/images/direction__vector.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 10px;
}

/* При выборе */
.direction__item input[type='checkbox']:checked + label {
	background-color: #7eadba;
	color: #fff;
	border-color: #7eadba;
}

.popup__email {
	width: 100%;
}

.popup__input {
	font-family: 'Geometria', sans-serif;
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	font-size: 18px;
	color: #212121;
	font-weight: 400;
	border-radius: 8px;
	border: 1px solid #212121;
	padding: 10px 0px 10px 20px;
}

.popup__checkbox {
	text-align: start;
	margin-top: 18px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 400;
	line-height: 100%;
}

.popup__checkbox input[type='checkbox'] {
	display: none;
}

.popup__checkbox label {
	position: relative;
	padding-left: 30px;
	cursor: pointer;
	user-select: none;
}

.popup__checkbox label:before {
	content: '';
	position: absolute;
	left: 0;
	top: 41%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border: 1px solid #212121;
	border-radius: 3px;
	background-color: #f9f0e7;
	box-sizing: border-box;
	background-image: none;
}

.popup__checkbox .error-text {
	color: red;
	font-size: 10px;
	margin-top: 5px;
	display: none;
}

.popup__checkbox input[type='checkbox']:checked + label:before {
	border-color: #212121;
}

.popup__checkbox input[type='checkbox']:checked + label:after {
	content: '';
	position: absolute;
	left: 4px;
	top: 41%;
	transform: translateY(-50%);
	width: 11px;
	height: 8px;
	background-image: url('/assets/images/Vector\ 1.svg');
	background-size: contain;
	background-repeat: no-repeat;
}

.inline__text {
	color: #131313;
	text-decoration: underline;
}

.consent_text {
	padding-left: 30px;
}

.popup__btn {
	margin-top: 10px;
	font-family: 'Geometria', sans-serif;
	background-color: #e35800;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	border: 0px;
	border-radius: 8px;
	width: 100%;
	height: 54px;
	line-height: 45px;
	transition: 0.2s ease;
	transition-property: color, background;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.popup__btn span {
	position: relative;
	z-index: 1;
	transition: 0.2s ease-out;
	transform: translateX(0);
}

.popup__btn:hover span {
	transform: translateX(5px);
}

.btn_image {
	fill: white;
	margin-left: 20px;
	transition: 0.2s ease;
	transform: translateX(0);
}

.popup__btn:hover .btn_image {
	transform: translateX(-5px);
}

.privacy__policy {
	text-decoration: none;
	color: #212121;
}

.popup_footer {
	font-size: 12px;
	line-height: 12px;
	font-weight: 400;
	color: #979797;
}

/*---------------поп-ап с подпиской---------------*/
.popup__subscribe {
	position: fixed;
	z-index: 99888;
	font-family: 'Geometria', sans-serif;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	transition: all 0.8s ease 0s;
	opacity: 0;
}

.popup__subscribe.open {
	visibility: visible;
	opacity: 1;
}

.popup__subscribe.open .popup__sub__content {
	transform: scale(1);
}

#popup__sub__close {
	background-color: #ffffff83;
	top: 22px;
	right: 21px;
}

.popup__sub__content {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	box-sizing: border-box;
	font-family: 'Geometria', sans-serif;
	background-color: #f9f0e7;
	color: #212121;
	width: 540px;
	height: 388px;
	border-radius: 20px;
	position: relative;
	transition: all 0.8s ease 0s;
	transform: scale(1);
}

.popup__sub__image {
	width: 200px;
}

.popup__sub__container {
	margin: 28px 32px 59px 32px;
}

.popup__sub__title {
	font-family: 'Geometria', sans-serif;
	text-align: center;
	font-weight: 700;
	font-size: 32px;
	line-height: 35px;
}

/* Адаптив */

@media (max-width: 816px) {
	.popup_body {
		align-items: flex-end;
	}
	.popup__close {
		top: 14px;
		right: 16px;
	}
	.popup__content {
		margin-bottom: 64px;
		width: 393px;
		height: 515px;
		justify-content: center;
		background-color: #ffffff00;
		padding: 0;
	}

	.popup__container {
		padding: 20px;
	}
	.popup__image {
		display: none;
	}

	.popup__title {
		font-size: 20px;
	}

	.popup__subtitle {
		font-size: 14px;
		margin: 8px 0 20px;
	}

	.direction__item label {
		width: 172px;
		font-size: 11px;
		height: 48px;
	}

	.direction__item__height label {
		height: 48px;
	}

	.direction_text {
		padding-left: 37px;
	}

	.direction_text--desktop {
		display: none;
	}

	.direction__item label::before {
		top: 10px !important;
	}

	.direction_item--desktop {
		display: none;
	}

	.direction_item--mobile {
		display: block;
	}

	.popup__input,
	.popup__btn {
		font-size: 12px;
		height: 46px;
	}

	.popup__checkbox {
		font-size: 10px;
	}

	.popup__checkbox label:before {
		top: 49%;
	}

	.popup__checkbox input[type='checkbox']:checked + label:after {
		top: 49%;
		left: 3px;
	}

	.popup__checkbox label {
		padding-left: 26px;
	}

	.consent_text {
		padding-left: 26px;
	}

	.popup__sub__content {
		margin-bottom: 200px;
	}

	.popup__sub__title {
		font-size: 25px;
		line-height: 100%;
	}
}

@media (max-width: 816px) {
	.popup__sub__title {
		font-size: 20px;
	}
}
