.popup-form-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(102, 102, 102, 0.64);
	z-index: 100;
}

.popup-form-overlay_visible {
	display: flex;
}

.popup-form-overlay__section {
	background-color: #EAEBEB;
	border-radius: 24px 24px 0px 0px;
	padding: 32px 24px;
	position: absolute;
	width: 100%;
	bottom: 0;
	box-sizing: border-box;
	max-height: 90%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.popup-form-overlay__header {
	display: flex;
	align-items: center;
	margin-bottom: 32px;
}

.popup-form-overlay__back {
	background: url(i/popup-form-overlay-back.svg) no-repeat center center;
	width: 32px;
	height: 32px;
	border: 2px solid #C7AC23;
	box-sizing: border-box;
	border-radius: 100%;
	margin-right: 16px;
	cursor: pointer;
	display: none;
}

.popup-form-overlay__back_visible {
	display: block;
}

.popup-form-overlay__heading {
	font-family: 'Halvar Breitschrift';
	font-size: 24px;
	line-height: 1.33;
	color: #000;
	margin: 0 16px 0 0;
	flex-grow: 1;
}

.popup-form-overlay__heading_transparent {
	opacity: 0;
}

.popup-form-overlay__close {
	flex-shrink: 0;
	background: transparent url(i/popup-form-close.svg) no-repeat center center;
	width: 24px;
	height: 24px;
	display: block;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.popup-form {
	flex-grow: 1;
}

.popup-form__help {
	background-color: #EFF0F0;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: flex-start;
	margin-bottom: 32px;
	cursor: pointer;
}

.popup-form__help-text {
	font-size: 15px;
	line-height: 1.33;
	color: rgba(0, 0, 0, 0.7);
	margin-right: 20px;
}

.popup-form__help-heading {
	font-weight: 500;
	font-size: 17px;
	line-height: 1.06;
	color: #000;
	margin: 0 0 8px;
}

.popup-form__help-checkbox {
	display: none;
}

.popup-form__help-visual {
	flex-shrink: 0;
	width: 34px;
	height: 14px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 7px;
	position: relative;
}

.popup-form__help-checkbox:checked + .popup-form__help-visual {	
	background-color: rgb(199 172 35 / 40%);

}

.popup-form__help-visual::before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;	
	left: 0;
	background-color: #CECECE;
	border-radius: 100%;
	position: absolute;
	top: -3px;
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2);
}

.popup-form__help-checkbox:checked + .popup-form__help-visual::before {
	right: 0;
	left: unset;
	background-color: #C7AC23;
}

.popup-form__inputs {
	display: grid;
	row-gap: 16px;
	margin-bottom: 32px;
}

.popup-form .popup-form__agree {
	font-size: 15px;
	line-height: 1.33;
	color: rgba(0, 0, 0, 0.7);
	align-items: center;
	margin-bottom: 32px;
}

.popup-form .popup-form__agree-check {
	margin: -4px 12px 0 0;
}

.popup-form__submit {
	width: 100%;
}

.popup-form__spec-button {
	text-align: left;
	cursor: pointer;
	background: url(i/popup-form-spec-button.svg) no-repeat right 16px center;
	display: none;
}

.popup-form__spec-button_visible {
	display: block;
}

.popup-form__step {
	display: none;
}

.popup-form__step_visible {
	display: block;
}

.popup-form__step_visible.popup-form__step_type_done {
	display: flex;
}

.popup-form__spec-text {
	font-size: 15px;
	line-height: 1.33;
	color: rgba(0, 0, 0, 0.7);
	margin: 0 0 24px;
}

.popup-form__spec-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.popup-form__spec-item {
	padding: 12px 0;
	font-size: 17px;
	line-height: 1.41;
	color: #000;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.popup-form__step_type_done {
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	text-align: center;
	padding-top: 40px;
}

.popup-form__done-body {
	flex-grow: 1;
}

.popup-form__done-heading {
	margin: 16px 0;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.06;
	color: #000;
}

.popup-form__done-text {
	font-size: 15px;
	line-height: 1.33;
	color: rgba(0, 0, 0, 0.7);
	margin: 0;
}

.popup-form__done-contacts {
	font-size: 15px;
	line-height: 1.33;
	color: rgba(0, 0, 0, 0.7);
	margin: 24px 0 0;
}


@media screen and (min-width: 768px) {

	.popup-form-overlay__section {
		max-width: 496px;
		position: static;
		margin: auto;
		border-radius: 24px;
	}

}

@media screen and (min-width: 992px) {
	.popup-form-overlay__section {
		padding: 40px 32px 40px;
		height: 600px;
	}
}