.overlay {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	visibility: hidden;
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	position: fixed;
	cursor: default;
	-webkit-transition: all 0.6s;
	transition: all 0.6s;
}
.overlay:target {
	visibility: visible;
	opacity: 1;
}
.popup {
	top: 0;
	right: 0;
	left: 50%;
	width: 100%;
	min-width: 160px;
	z-index: 9999;
	position: fixed;
	background-color: #ffffff;
	-webkit-transform: translate(-50%, -150%);
	transform: translate(-50%, -150%);
	-webkit-transition: transform 0.6s ease-out;
	-webkit-transition: -webkit-transform 0.6s ease-out;
	transition: -webkit-transform 0.6s ease-out;
	transition: transform 0.6s ease-out;
	transition: transform 0.6s ease-out, -webkit-transform 0.6s ease-out;
	border-radius: 2px;
}
.wig1 {
	max-width: 400px;
	padding: 40px;
}
.wig {
	max-width: 300px;
	padding: 30px 40px 40px 40px;
}
.popup h2 {
	text-align: center;
	font-size: 18px;
	line-height: 20px;
	font-weight: 600;
	color: #464a4e;
	border-bottom: 1px solid #f6f6f6;
	padding-bottom: 20px;
	margin-bottom: 20px;
}
.popup a {
	cursor: pointer;
}
.popup img {
	width: 100%;
}
.popup label {
	padding-bottom: 5px;
	display: block;
}
.popup label b {
	color: #ff2525;
	font-size: 16px;
}

.popup input {
	border: 1px solid #e5ecee;
	-webkit-box-shadow: inset 0px 0px 12px 0px rgba(50, 50, 50, 0.06);
	box-shadow: inset 0px 0px 12px 0px rgba(50, 50, 50, 0.06);
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0 20px 0 20px;
	height: 50px;
	line-height: 50px;
	cursor: text;
	width: 100%;
	margin-bottom: 20px;
	-webkit-box-shadow: inset 1px 1px 10px -1px rgba(0, 0, 0, 0.1);
	box-shadow: inset 1px 1px 10px -1px rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}
.popup input:hover,
.popup input:focus {
	border: 1px solid #3371cd;
}
.btnn {
	width: 100%;
	height: 52px;
	line-height: 52px;
	text-align: center;
	font-weight: 600;
	color: #fff;
	background: #3371cd;
	text-transform: uppercase;
	border: 0;
	margin-top: 20px;
	border-radius: 2px;
}
.btnn:hover {
	background: #3e82e7;
}

/* активируем модальный блок */
.overlay:target + .popup {
	-webkit-transform: translate(-50%, 0);
	transform: translate(-50%, 0);
	top: 10%;
}
.overlay:target + .popup1 {
	-webkit-transform: translate(-50%, 0);
	transform: translate(-50%, 0);
	top: 10%;
}
.closee {
	display: flex;
	justify-content: center;
	align-items: center;

	top: -12px;
	right: -12px;
	width: 28px;
	height: 28px;
	position: absolute;
	border-radius: 90px;
	background-color: #ff2525;
	-webkit-box-shadow: 0px 0px 15px #000;
	box-shadow: 0px 0px 15px #000;
	text-align: center;
	-webkit-transition: all ease 0.8s;
	transition: all ease 0.8s;
	font-size: 10px;
	color: #fff;
}
.closee:hover {
	background-color: #000;
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
}

@media only screen and (max-width: 600px) {
	.wig1 {
		max-width: 80%;
		padding: 20px;
	}
}
@media only screen and (min-width: 220px) and (max-width: 400px) {
	.wig {
		max-width: 80%;
	}
	.popup h4 {
		padding-bottom: 20px;
		margin-bottom: 20px;
		font-size: 16px;
		line-height: 18px;
	}
	.popup {
		padding: 20px 20px 20px 20px;
	}
	.closee {
		top: -5px;
		right: -5px;
	}
	.overlay:target + .popup {
		top: 5%;
	}
	.overlay:target + .popup1 {
		top: 5%;
	}
}
