@charset "UTF-8";
/* CSS Document */

.modal-window {
-webkit-transform: translate(0, 100%);
-moz-transform: translate(0, 100%);
-o-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
transform: translate(0, 100%);
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
opacity: 0;
line-height: 1.8;
display: none\9;
}
.modal-window:target {
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
-o-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
opacity: 1;
}
.is-active.modal-window {
display: block\9;
text-align: center;
}
.modal-window:target {
display: block\9;
}

.modal-window .modal-inner {
position: absolute;
top: 50%;
left: 0;
right: 0;
z-index: 9999;
margin: -265px auto 0;
width: 828px;
height: 530px;
background: #fff;
text-align: center;
-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
overflow: auto;
}

.modal-window .modal-close {
display: block;
text-indent: -10000px;
overflow: hidden;
}
.modal-window .modal-close:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: rgba(255, 255, 255, 0.9);
}
.modal-window .modal-close:after {
content: '✕';
position: absolute;
top: 50%;
right: 50%;
margin-right: -414px;
margin-top: -265px;
z-index: 100000;
box-sizing: border-box;
border-radius: 15px;
padding: 0px;
width: 36px;
height: 36px;
font-size: 24px;
font-weight: bold;
line-height: 36px;
color: #50a449;
text-align: center;
text-decoration: none;
text-indent: 0;
}

@media screen and (max-width: 767px){
	.modal-window {
	-webkit-transform: translate(0, 100%);
	-moz-transform: translate(0, 100%);
	-o-transform: translate(0, 100%);
	-ms-transform: translate(0, 100%);
	transform: translate(0, 100%);
	-webkit-transform: translate3d(0, 100%, 0);
	transform: translate3d(0, 100%, 0);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	opacity: 0;
	line-height: 1.8;
	display: none\9;
	}
	.modal-window:target {
	-webkit-transform: translate(0, 0);
	-moz-transform: translate(0, 0);
	-o-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	transform: translate(0, 0);
	opacity: 1;
	}
	.is-active.modal-window {
	display: block\9;
	}
	.modal-window:target {
	display: block\9;
	}
	.modal-window .modal-inner {
	position: absolute;
	top: 16px;
	left: 0px;
	bottom: 0px;
	z-index: 20;
	margin-left: 0;
	width: 100%;
	height: 100%;
	margin-top: 0;
	background-size:cover;
	
	-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
	
	padding-top: 30px;
	padding-bottom: 50px;
	overflow: scroll;
	}
	
	.modal-window .modal-close {
	display: block;
	text-indent: -100px;
	overflow: hidden;
	}
	.modal-window .modal-close:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	background: #f2f2f2;
	}
	.modal-window .modal-close:after {
	content: '✕ close';
	position: absolute;
	top: inherit;
	bottom: 0;
	left: 0;
	margin-left: 0;
	margin-top: auto;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	z-index: 20;
	line-height: 40px;
	background: #d2d2d2;
	padding: 0px 8px;
	font-size: 18px;
	text-decoration: none;
	border-bottom: 1px solid #c2c2c2;
	text-indent: 0;
	border-radius: 0;
	}
	.modal-window {
	-webkit-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
	}
	
}