.overlay {
	background-color:rgba(0,0,0,.5);
	bottom: 0;
	cursor: default;
	left: 0;
	opacity: 0;
	position: fixed;
	right: 0;
	top: 0;
	visibility: hidden;
	z-index: 798;

	-webkit-transition: opacity .5s;
	-moz-transition: opacity .5s;
	-ms-transition: opacity .5s;
	-o-transition: opacity .5s;
	transition: opacity .5s;
}

.overlay:target {
    visibility: visible;
    opacity: 0.8;
}

.popup {
	width:480px;
	display:inline-block;
	left: 50%;
	opacity: 0;
	position: fixed;
	top: 50%;
	visibility: hidden;
	z-index: 799;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 100px #000;
	text-align:center;

	-webkit-transition: opacity .5s, top .5s;
	-moz-transition: opacity .5s, top .5s;
	-ms-transition: opacity .5s, top .5s;
	-o-transition: opacity .5s, top .5s;
	transition: opacity .5s, top .5s;
	background:#eee;
	padding:30px 40px;
	border-radius: 40px;
}



.overlay:target+.popup {
	top: 50%;
	opacity: 1;
	visibility: visible;
}

.close {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 48px;
	height: 48px;
	opacity: 0.6;
	display: block;
}

.close:hover {
	opacity: 1;
}

.close:before, .close:after {
	position: absolute;
	left: 15px;
	content: ' ';
	height: 33px;
	width: 2px;
	background-color: #666;
}

.close:before {
	transform: rotate(45deg);
}

.close:after {
	transform: rotate(-45deg);
}

.close:hover {
	cursor: pointer;
	opacity: 1;
}
.popup input,
.popup tel,
.popup textarea
 {
	padding:15px;
	font-size:18px;
	margin:10px 0;
	width:100%;
	box-sizing:border-box;
	outline:none;
	border-bottom:2px solid #999;
	border-left: none;
	border-right: none;
	border-top: none;
	background: #eee;
	color: #333;
  font-family: inherit;
  border-radius: 5px;
}

.popup input:focus {
	border-bottom:2px solid var(--brown);
  background-color: #f6f6f6;
}

.popup button {
	margin-top: 10px;
}

.popup textarea,
.reviews_form textarea {
	height:200px;
}


.title_popup{
	font-size:36px;
	margin:20px 0;
	font-weight: 700;
}

.popup .btn {
	background:var(--btn_hover);
	transition: 0.3s;
}

.popup .btn:hover{
	color:#fff;
	background:#000;
	cursor:pointer;
}

.error_input {
	border-bottom:2px solid #ff0000!important;
	border-top:none!important;
	border-left:none!important;
	border-right:none!important;
	color: #ff0000;
}

/* Современные браузеры
   ----------------------------  */
   .error_input::placeholder {color: #ff0000;}

   /* WebKit, Edge
	  ----------------------------  */
   .error_input::-webkit-input-placeholder {color: #ff0000;}

   /* Edge
	  ----------------------------  */
   .error_input::-ms-input-placeholder {color: #ff0000;}

   /* Firefox 4-18
	  ----------------------------  */
   .error_input:-moz-placeholder {color: #ff0000;opacity: 1;}

   /* Firefox 19+
	  ----------------------------  */
   .error_input::-moz-placeholder {color: #ff0000;opacity: 1;}

   /* IE 10-11
	  ----------------------------  */
   .error_input:-ms-input-placeholder {color: #ff0000;}

.err {
	display:none!important;
}

.rc-anchor-alert {
	margin-bottom:10px;
}

.privacy {
	font-size:12px;
}
/*
	::-webkit-input-placeholder {color:#ccc; opacity:1;}
	::-moz-placeholder          {color:#ccc; opacity:1;}
	:-moz-placeholder           {color:#ccc; opacity:1;}
	:-ms-input-placeholder      {color:#ccc; opacity:1;} */


.required_field {
	color: #555;
}

.popup h4 {
	color:#339900;
	font-size:24px;
	margin:20px 0;
}

.send_done i {
	font-size:60px;
	color:#339900;
}

/*========================================================================== MOBILE =================================================================*/

/* ---------------------------------Mobile Version max 1200px-------------------------------*/


@media (max-width: 500px) {

	.popup {
		width: 98%;
	}

	}
