/**********************************************************************/
/**********************************************************************/
.popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	width: 1260px;
	max-width: calc(100vw - 80px);
	max-height: calc(100vh - 80px);
	padding: 90px 30px 90px 60px;
	background-color: #FFFFFF;
	opacity: 0;
	pointer-events: none;
	z-index: 1250;
	transition: opacity 0.3s;
}
body.admin-bar .popup {
	top: calc(50% + 16px);
	max-height: calc(100vh - 112px);
}
.popup.active {
	opacity: 1;
	pointer-events: initial;
}

/**********************************************************************/
.popup__close {
	position: absolute;
	top: 40px;
	right: 40px;
	width: 24px;
	transition: opacity 0.3s;
	cursor: pointer;
}
.popup__close:hover {
	opacity: 0.6;
}

/**********************************************************************/
.popup__content {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-right: 30px;
	overflow-x: hidden;
	overflow-y: auto;
}


/**********************************************************************/
/**********************************************************************/
.popup-contact .popup__content {
	width: 620px;
}
.popup-contact__title {
	margin-bottom: 30px;
	font-family: "Montserrat", sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 40px;
	color: #424A5F;
}


/**********************************************************************/
/**********************************************************************/
.popup-thanks {
	padding-top: 120px;
	padding-bottom: 0 !important;
}
.popup-thanks .popup__content {
	overflow: initial;
}
.popup-thanks__body {
	display: flex;
	flex-direction: column;
	width: 940px;
	max-width: 100%;
	margin: 0 auto 60px;
}
.popup-thanks__title {
	margin-bottom: 50px;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 54px;
	line-height: 65px;
	color: #424A5F;
}
.popup-thanks__txt {
	display: flex;
	margin-right: auto;
	font-family: "Montserrat", sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 40px;
	color: #424A5F;
	transition: opacity 0.3s;
}
.popup-thanks__txt:hover {
	opacity: 0.6;
}
.popup-thanks__txt p {
	margin-right: 30px;
}
.popup-thanks__txt img {
	height: 40px;
	margin: auto 0;
}
.popup-thanks__banner {
	display: flex;
	flex-direction: column;
	width: calc(100% + 120px);
	height: 550px;
	margin: 0 -60px;
	background-image: url(../../img/images/thanks.jpg);
	background-position: center;
	background-size: cover;	
}
.popup-thanks__banner p {
	width: 940px;
	max-width: calc(100% - 120px);
	margin: auto;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 54px;
	line-height: 65px;
	color: #FFFFFF;
	text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
	text-transform: uppercase;
}




/**********************************************************************/
/*********************         RESPONSIVE         *********************/
/**********************************************************************/
@media screen and (max-width: 1440px) {
	/******************************************************************/
	/******************************************************************/
	.popup {
		width: 700px;
		max-width: calc(100vw - 40px);
		max-height: calc(100vh - 40px);
		padding: 50px 15px 50px 30px;
	}
	body.admin-bar .popup {
		max-height: calc(100vh - 72px);
	}
	
	/******************************************************************/
	.popup__close {
		top: 20px;
		right: 20px;
	}
	
	/******************************************************************/
	.popup__content {
		padding-right: 15px;
	}


	/******************************************************************/
	/******************************************************************/
	.popup-contact .popup__content {
		width: 500px;
	}
	.popup-contact__title {
		margin-bottom: 20px;
		font-size: 25px;
		line-height: 30px;
	}


	/******************************************************************/
	/******************************************************************/
	.popup-thanks {
		padding-top: 60px;
	}
	.popup-thanks__body {
		width: 600px;
		margin-bottom: 40px;
	}
	.popup-thanks__title {
		margin-bottom: 30px;
		font-size: 35px;
		line-height: 40px;
	}
	.popup-thanks__txt {
		font-size: 20px;
		line-height: 30px;
	}
	.popup-thanks__txt p {
		margin-right: 20px;
	}
	.popup-thanks__txt img {
		height: 30px;
	}
	.popup-thanks__banner {
		width: calc(100% + 60px);
		height: 250px;
		margin: 0 -30px;
	}
	.popup-thanks__banner p {
		width: 600px;
		max-width: calc(100% - 60px);
		font-size: 35px;
		line-height: 40px;
	}
}


@media screen and (max-width: 782px) {
	/******************************************************************/
	/******************************************************************/
	body.admin-bar .popup {
		top: calc(50% + 23px);
		max-height: calc(100vh - 86px);
	}
}


@media screen and (max-width: 767px) {
	/******************************************************************/
	/******************************************************************/
	.popup {
		padding: 40px 10px 40px 20px;
	}

	/******************************************************************/
	.popup__close {
		top: 5px;
		right: 5px;
		width: 20px;
	}

	/******************************************************************/
	.popup__content {
		padding-right: 10px;
	}


	/******************************************************************/
	/******************************************************************/
	.popup-contact__title {
		font-size: 20px;
		line-height: 24px;
	}


	/******************************************************************/
	/******************************************************************/
	.popup-thanks {
		padding-top: 40px;
	}
	.popup-thanks__body {
		margin-bottom: 20px;
	}
	.popup-thanks__title {
		margin-bottom: 15px;
		font-size: 25px;
		line-height: 30px;
	}
	.popup-thanks__txt {
		margin: auto 0;
		font-size: 16px;
		line-height: 20px;
	}
	.popup-thanks__txt p {
		margin: auto 20px auto 0;
	}
	.popup-thanks__txt img {
		height: 25px;
	}
	.popup-thanks__banner {
		width: calc(100% + 40px);
		height: 220px;
		margin: 0 -20px;
	}
	.popup-thanks__banner p {
		width: 300px;
		max-width: calc(100% - 40px);
		font-size: 30px;
		line-height: 35px;
	}
}