.popup {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
	opacity: 1;
	visibility: visible;
}

.popup__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--overlay-bg);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.popup.active .popup__overlay {
	opacity: 1;
}

.popup__content {
	position: relative;
	margin: auto;
	background-color: var(--white);
	border-radius: 8px;
	max-width: 90%;
	width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	box-shadow: 0 5px 15px var(--shadow-color);
	transform: translateY(30px) scale(0.95);
	opacity: 0;
	transition: transform 0.4s ease, opacity 0.3s ease;
	z-index: 1001;
}

.popup.active .popup__content {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.popup__close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	outline: none;
	transition: var(--transition);
	padding: 0;

}

.popup__close:hover {
	opacity: 0.8;
}


.popup__close span {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #333;
}

.popup__close span:first-child {
	transform: translateY(-50%) rotate(45deg);
}

.popup__close span:last-child {
	transform: translateY(-50%) rotate(-45deg);
}

.popup__title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 20px;
	padding-right: 25px;
}

.popup__body {
	font-size: 1rem;
	line-height: 1.5;
	max-width: 100%;
}

/* Предотвращение прокрутки страницы при открытом попапе */
body.popup-active {
	overflow: hidden;
}

@media (max-width: 767px) {
	.popup__content {
		padding: 20px;
		width: 95%;
	}

	.popup__title {
		font-size: 1.25rem;
	}
}