.popup__success-message {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 25px;
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
	overflow: auto;
	z-index: 1000;
}

.popup__body {
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 15px;
}

.popup__content {
	/*background: #fff;*/
	max-width: 770px;
	padding: 60px 100px 80px;
	transition: all 0.3s ease 0s;
	opacity: 0;
	transform: translate(0px, -100%);
	position: relative;
	background: #fff;
}

#callback .popup__content {
	background: #fff url('/bitrix/templates/kriptomed/images/popup-callback-bg.png') no-repeat center bottom / contain;
	width: 100%;
}


@media (max-width: 1024px) {
	.popup__content {
		max-width: 630px;
		padding: 60px 80px 80px;
	}
}

@media (max-width: 500px) {
	.popup__content {
		max-width: 630px;
		padding: 60px 40px 80px;
	}
}

@media (max-width: 380px) {
	.popup__content {
		max-width: 630px;
		padding: 60px 20px 80px;
	}
}



.popup.open {
	opacity: 1;
	visibility: visible;
}

.popup.open .popup__content {
	transform: translate(0px, 0px);
	opacity: 1;
}

body.lock, html.lock {
	overflow-x: auto!important;
	overflow: hidden;
}

.popup__content form,
.popup__content input,
.popup__content textarea {
	display: block;
	width: 100%;
}

.popup__content input,
.popup__content textarea {
	border: 1px solid #C5C5C5;
	background: #FAFAFA;
	padding: 12px 24px;
	border-radius: 3px;
	outline: none;
	font-family: 'FuturaMediumC';
}

.popup__content input:focus,
.popup__content textarea:focus {
	border-color: #4C70AA;
	background: #EEF3FB;
}

.popup__content input:focus::placeholder,
.popup__content textarea:focus::placeholder {
	color: #4C70AA;
}

.popup__content input {
	margin-bottom: 20px;
}

.popup__content textarea {
	height: 130px;
	resize: none;
}

.popup__title {
	font-family: 'FuturaMediumC';
	font-size: 44px;
	color: #252525;
	margin-bottom: 30px;
	text-align: center;
}
.popup__title--little {
	font-size: 40px;
	line-height: 1.2;
}
@media (max-width: 500px) {
	.popup__title {
		font-size: 35px;
	}
}

@media (max-width: 380px) {
	.popup__title {
		font-size: 30px;
	}
}

/* Customize the label (the container) */
.popup__agreement {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 20px;
	cursor: pointer;
	font-size: 22px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-family: 'Lato';
	font-size: 16px;
	margin-top: 25px;
}

/* Hide the browser's default checkbox */
.popup__agreement input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Create a custom checkbox */
.checkmark {
	position: absolute;
	top: 7px;
	left: 0;
	height: 18px;
	width: 18px;
	background-color: #DFE8F5;
	border-radius: 3px;
}

/* On mouse-over, add a grey background color */
/*.popup__agreement:hover input ~ .checkmark {*/
/*	background-color: #DFE8F5;*/
/*}*/

/* When the checkbox is checked, add a blue background */
/*.popup__agreement input:checked ~ .checkmark {*/
/*	background-color: #2196F3;*/
/*}*/

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.popup__agreement input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */
.popup__agreement .checkmark:after {
	left: 5px;
	top: 1px;
	width: 8px;
	height: 12px;
	border: solid #4C70AA;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.popup .button_red {
	border: none;
	cursor: pointer;
}

.popup__captcha {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.captcha__input-wrapper {
	flex: 1;
}

.captcha__input-wrapper input {
	margin-bottom: 0;
	padding: 7px 10px;
}

.popup__captcha img {
	margin-right: 10px;
}

@media (max-width: 400px) {
	.popup__captcha {
		flex-direction: column;
	}
	.popup__captcha img {
		margin-right: 0;
		margin-bottom: 10px;
	}
	.captcha__input-wrapper input {
		width: 180px;
	}
}