.popup {
	top: 0;
	right: 0;
	left: 0;
	background: #2B2530;
	display: block;
	visibility: hidden;
	margin: 0 auto;
	min-width: 500px;
	max-width: 500px;
	/* фиксированное позиционирование, окно стабильно при прокрутке */
	position: fixed;
	/* полная прозрачность окна, появление при клике */
	opacity: 0;
	/* эффект перехода (появление) */
	-webkit-transition: all ease .5s;
	-moz-transition: all ease .5s;
	-ms-transition: all ease .5s;
	-o-transition: all ease .5s;
	transition: all ease .5s;
	z-index:999999999999999;
}
.popup-center {
	padding: 35px 70px;
}
.heading-z-z {
	width: 100%;
	padding: 30px 0;
	background: #fff;
	color: #000;
	margin: 0;
	font-weight: 400;
	font-size: 39px;
	text-align: center;
}

.text-input {
	font-size: 22px;
	color: #fff;
	margin: 0 0 -5px 0;
}
.popup input {
width: 100%;
height: 59px;
background: white;
display: block;
margin: 10px auto 10px;
text-align: center;
border: none;
outline: 0;
text-transform: uppercase;
font-size: 15px;
letter-spacing: 3px; 
background-repeat: no-repeat;
background-position: 95% 50%;
}
.popup input:hover {
	box-shadow: 0px 0px 5px #47be9d;
}
.popup input:focus {
	border-color: #47be9d;
	box-shadow: 0px 0px 12px 0px #47be9d;
}
.popup button {
	padding:  25px 0;
	width: 100%;
	background: #F1E623;
	margin-top: 10px;
	font-weight: 700;
	font-size: 32px;
	border-radius: 7px;
}

/* Базовые стили слоя затемнения и модального окна  */
.overlay {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index:11111111;
	visibility: hidden;
	/* фон затемнения */
	background-color: rgba(0, 0, 0, 0.7);
	opacity: 0;
	position: fixed; /* фиксированное поцизионирование */
	cursor: default; /* тип курсара */
	-webkit-transition: opacity .5s;
	-moz-transition: opacity .5s;
	-ms-transition: opacity .5s;
	-o-transition: opacity .5s;
	transition: opacity .5s;
}
.overlay:target {
	visibility: visible;
	opacity: 1;
}

.overlay:target+.popup {
	top: 5%;
	visibility: visible;
	opacity: 1;
}
/* формируем кнопку закрытия */
.close {
position: absolute;
top: 5px;
right: 5px;
padding: 0;
width: 50px;
height: 50px;
color: #000;
-webkit-border-radius: 55px;
-moz-border-radius: 55px;
-ms-border-radius: 55px;
-o-border-radius: 55px;
text-align: center;
text-decoration: none;
font-weight: bold;
line-height: 50px;
-webkit-transition: all ease .8s;
-moz-transition: all ease .8s;
-ms-transition: all ease .8s;
-o-transition: all ease .8s;
transition: all ease .8s;
}
.close:before {
font-size: 25px;
content: "X";
text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
}
.close:hover {
color: #ccc;
}

@media only screen and (max-width: 1000px){
.popup {
min-width: 100%;
max-width: 100%;
height: 100%;
}
.popup-center {
	padding: 35px 25px;
}
.heading-z-z {
	padding: 50px 0;
	font-size: 30px;
}

.overlay:target+.popup {
top: 0;
}
}