/* Форимируем слой затемнения фона */
.overlay {
    background-color:rgba(0,0,0,0.7);
    bottom:0;
    left:0;
	right:0;
    top:0;
    opacity:0;
    position:fixed;
	cursor:default;
    visibility:hidden;
    z-index:2;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}

/* Формируем и позиционируем всплывающее окно */
.popup { 
    width: 300px;
	height:300px;
	position:fixed;
    background:rgb(60,112,160);
    display:block;
    visibility:hidden;
	box-shadow:0px -2px 1px rgba(0,0,0,0.5) inset;
    z-index:10;
    border-radius:4px;
	text-align:center;
}
.popup:last-child{
	height:150px;
}
.popup h2{
	margin-bottom:50px;
	color:#fff;
	font-size:20px;
	font-weight:700;
}
.popup span{
	color:#fff;
}
.popup input[type='text']{
	width:268px;
	height:43px;
	margin-bottom:5px;
	text-align:center;
	border:0;
	
	font-family:'Helios Cond';
	font-size:18px;
	color:#000;
}
.popup button{
	margin-top:20px;
	width:264px;
	height:40px;
	background:url('../res/images/button-2.png');
	border:none;
	border-radius:5px;
	cursor:pointer;
	
	font-family:'Helios Cond';
	font-size:24px;
	font-weight:700;
	color:#000;
}
/* Устанавливаем позицию появления окна */ 
.overlay:target+.popup {
    top:25%;
	left:50%;
	margin-left:-190px;
    opacity:1;
    visibility:visible;
}
/* Оформляем и позицонируем кнопку закрытия */
.close {
    background-color:#f52a2a;
    height:25px;
	width:25px;
    line-height:24px;
    position:absolute;
    top:-12px;
	right:-12px;
	font-family:'Arial';
    font-weight:bold;
    text-align:center;
    text-decoration:none;
	padding:0;
    border-radius:13px;
}
.close:before {
    color:rgba(255, 255, 255, 0.9);
    content:"X";
    font-size:16px;
}
.close:hover {
    background-color:#e50000;
	text-decoration:none;
}
.popup p, .popup div {
    margin-bottom:10px;
}