.popup {
top: 0;
right: 0;
left: 0;
display: block;
visibility: hidden;
margin: 0 auto;
min-width: 320px;
max-width: 320px;
/* фиксированное позиционирование, окно стабильно при прокрутке */
position: fixed;
padding: 75px 140px;
opacity: 0;
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: 7777777777;
text-align: center;
background: #F2F2F2;
font-family: open-sans, sans-serif;
}

.heading-z-z {
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	margin: 0;
	padding-bottom: 45px;
	line-height: 1.3;
}
.popup input {
background: none;
width: 100%;
height: 40px;
display: block;
margin: 10px auto 10px;
text-align: center;
outline: 0;
font-size: 15px;
border: 2px solid #ccc;
}
.popup input:hover {
background: #fff;
border: 2px solid #7F7F7F;
}
.popup input:focus {
background: #fff;
border: 2px solid #7F7F7F;
}
.popup button {
width: 100%;
border: 0;
outline: 0;
font-size: 17px;
}

.overlay {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 777777777;
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: 10%;
visibility: visible;
opacity: 1;
}
/* формируем кнопку закрытия */
.close {
position: absolute;
top: 0px;
right: 0px;
padding: 0;
width: 30px;
height: 30px;
color: #fff;
background: rgba(0,0,0, 0.7);
text-align: center;
text-decoration: none;
font-weight: bold;
line-height: 30px;
-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 {
content: "X";
font-size: 22px;

}
.close:hover {
background: rgba(0,0,0, 0.4);
color: #fff;
}

#nameproduct { display: none; }
@media only screen and (max-width: 1000px){
.popup {
min-width: 80%;
max-width: 80%;
padding: 25px 30px;
}
.heading-z-z {
font-size: 22px;
padding-bottom: 25px;
}
.p-bottom {
font-size: 14px;
}

}