
.tplbutton3 {
    float: right;
	margin-top: 1px;
	padding: 15px 15px;
    text-decoration: none;
    color: #000000;
	animation: radial-pulse 1s infinite;
   background: #1c264a
    border-color: #1c264a;
    font-size: 12px;
    
    line-height: 1.3;
    
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
	-webkit-animation: pulse2 5s linear infinite;
    
    -moz-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
    border: none;
		
	border-radius: 8px;
	
	
}
.tplbutton3:hover{
    background: #d6bb73;
    border-color: #d6bb73;
    color: #ffffff;
}
@media only screen and (max-width: 768px) {
.tplbutton3{
	font-size: 12px;
    height: 35px;
	
	
	margin-top:10px;
	margin-left:10px;
	padding: 10px 10px 10px;
	margin-bottom: 10px;
	float:right;
	display: none;
}
}




.modalDialog {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	display: none;
	pointer-events: none;
}
.modalDialog:target {
	display: block;
	pointer-events: auto;
}

.modalDialog > div {
	width: 400px;
	position: relative;
	margin: 5% auto;
	padding: 5px 20px 13px 20px;
	background: #fff;

}
.modalDialog .close {
	background: #ff6f00;
	color: #FFFFFF;
	line-height: 25px;
	position: absolute;
	right: 0px;
	text-align: center;
	top: 0px;
	width: 24px;
    padding: 10px;
	text-decoration: none;
	font-weight: bold;

}
.modalDialog .close:hover {
    color: #fff;
}
.modalDialog .wpcf7-form input[type="text"],
.modalDialog .wpcf7-form input[type="email"],
.modalDialog .wpcf7-form input[type="tel"],
.modalDialog .wpcf7-form textarea[name="your-message"]{
    margin-bottom: 0px;
}

.close {
  float: right;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=20);
  opacity: .2;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  filter: alpha(opacity=50);
  opacity: .5;
}
button.close {
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}


.close2 {
  float: right;
  font-size: 30px;
  
  
  color: #381474;
 
  
}
.close2:hover,
.close2:focus {
  color: #ff6a00;
  text-decoration: none;
  cursor: pointer;
  
}
button.close2 {
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}



.modal-open {
  overflow: hidden;
}
.modal2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: auto;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
     -moz-transition:    -moz-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
          transform: translate(0, -25%);
}
.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
          transform: translate(0, 0);
}
.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: none;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}
.modal-header {
  min-height: 16.42857143px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal-header .close {
  margin-top: -2px;
}
.modal-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal-body {
  position: relative;
  padding: 20px;
}
.modal-footer {
  padding: 19px 20px 20px;
  margin-top: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
  margin-left: 0;
}
@media (min-width: 768px) {
  .modal-dialog {
    width: 500px;
    margin: 10px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
  .modal-sm {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal-lg {
    width: 900px;
  }
} 



.modal2-open {
  overflow: hidden;
}
.modal2 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: auto;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
.modal2.fade .modal2-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
     -moz-transition:    -moz-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
          transform: translate(0, -25%);
}
.modal2.in .modal2-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
          transform: translate(0, 0);
}
.modal2-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}
.modal2-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: none;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.modal2-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}
.modal2-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}
.modal2-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}
.modal2-header {
  min-height: 16.42857143px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}
.modal2-header .close {
  margin-top: -2px;
}
.modal2-title {
  margin: 0;
  line-height: 1.42857143;
}
.modal2-body {
  position: relative;
  padding: 20px;
}
.modal2-footer {
  padding: 19px 20px 20px;
  margin-top: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}
.modal2-footer .btn + .btn {
  margin-bottom: 0;
  margin-left: 5px;
}
.modal2-footer .btn-group .btn + .btn {
  margin-left: -1px;
}
.modal2-footer .btn-block + .btn-block {
  margin-left: 0;
}
@media (min-width: 768px) {
  .modal2-dialog {
    width: 500px;
    margin: 10px auto;
  }
  .modal2-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
  .modal2-sm {
    width: 300px;
  }
}
@media (min-width: 992px) {
  .modal2-lg {
    width: 900px;
  }
}

.form-group{
    position: relative;
}
.modal {
    display: none;
    width: 460px;
    
    background: #fff;
    padding: 55px 25px 35px;
}

@media only screen and (max-width: 767px) {
.modal {width: 300px;}}

.box{
    display: none;
}
.box.visible{
    display: block;
}
.close{
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 300;
    width: 26px;
    height: 26px;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.close:before{
    content:"";
    display: block;
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -1px;
    background: #fd4443;
}
.close:after{
    content:"";
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: #fd4443;
}
.alert2 {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert2 h4 {
  margin-top: 0;
  color: inherit;
}
.alert .alert-link {
  font-weight: bold;
}
.alert > p,
.alert > ul {
  margin-bottom: 0;
}
.alert > p + p {
  margin-top: 5px;
}
.alert-dismissable {
  padding-right: 35px;
}
.alert-dismissable .close {
  position: relative;
  top: -2px;
  right: -21px;
  color: inherit;
}
.alert-success2 {
  color: #233859;
  background-color: #233859;
  border-color: #233859;
}
.alert-success2 hr {
  border-top-color: #233859;
}
.alert-success2 .alert-link {
  color: #233859;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-info hr {
  border-top-color: #a6e1ec;
}
.alert-info .alert-link {
  color: #245269;
}
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.alert-warning hr {
  border-top-color: #f7e1b5;
}
.alert-warning .alert-link {
  color: #66512c;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert-danger hr {
  border-top-color: #e4b9c0;
}
.alert-danger .alert-link {
  color: #843534;
}


/*Модальное окно*/
.modal_form{width:100%;
max-width: 390px;
border-radius: 5px;
padding:19px 20px;
background-color:#ffffff;
height:541px; 
background-image: url(img/modal_bg1.jpg);
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
position:fixed; margin-top:-165px;margin-left:-225px;top:45%;left:50%;display:none;opacity:0;z-index:5;}


#overlay{z-index:3;position:fixed;background-color:#000;opacity:0.8;-moz-opacity:0.8;filter:alpha(opacity=80);width:100%;height:100%;top:0;left:0;cursor:pointer;display:none;}
.modal_form input[type="text"]{background-color:#fff;border:1px solid #DFDFDF;border-radius:6px;color:#555;display:block;font-size:1em;height:35px;padding:5px;margin-bottom:17px;width:95%;float:left;}
.modal_form input[type="text"].error{border:1px solid red;}
.modal_form h3{text-align:center;font-size:2em;text-transform:uppercase;color:#000; margin: 0;}
.modal_form .comment{color:#272727;padding-bottom:10px;font-size:13px;text-align:center;padding-top:5px;}
.exit{display:block !important;position:absolute;

right: 16px;
top: 5px;
width: 16px;
height: 16px;
opacity: 0.3;
}
.exit:before, .exit:after{display:block;font-size:18px;content: ' ';cursor:pointer;text-decoration:none;
position: absolute;
left: 15px;

height: 16px;
width: 2px;
background-color: #333;

}

.exit:before {
transform: rotate(45deg);
}
.exit:after {
transform: rotate(-45deg);
}

.exit:hover{opacity: 1; text-decoration:none;}
.modal_form .button{display:block;
background-color:#1c264a;border:1px solid #1c264a;border-radius:3px;color:#ffffff;cursor:pointer;font-size:14px;font-weight:bold;height:40px;margin:10px 0;padding:2px 16px;width:230px;margin:0 auto;-webkit-transition:all 0.12s ease-in;-o-transition:all 0.12s ease-in;-moz-transition:all 0.12s ease-in;transition:all 0.12s ease-in;}
.modal_form .button:hover{background-color:#d6bb73;border:1px solid #d6bb73;color:#000000;}
.modal_form .error{border:1px solid red;}

@media only screen and (max-width: 767px) {
  .modal_form {
    width: 320px;
	height:100%;
   margin-top:-230px;margin-left:-160px;top:45%;left:50%;
	
  }

