/*
 * Main v1.0.0 (https://weebex.ru)
 * main.css - набор дополнительных стилей.
 * Copyright 2017.
 */

 /* Cетка */
 .container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
.row {
  margin-right: -15px;
  margin-left: -15px;
}
.grid-1, .grid-tablet-1, .grid-laptop-1, .grid-2, .grid-tablet-2, .grid-laptop-2, .grid-3, .grid-tablet-3, .grid-laptop-3, .grid-4, .grid-tablet-4, .grid-laptop-4, .grid-5, .grid-tablet-5, .grid-laptop-5, .grid-6, .grid-tablet-6, .grid-laptop-6, .grid-7, .grid-tablet-7, .grid-laptop-7, .grid-8, .grid-tablet-8, .grid-laptop-8, .grid-9, .grid-tablet-9, .grid-laptop-9, .grid-10, .grid-tablet-10, .grid-laptop-10, .grid-11, .grid-tablet-11, .grid-laptop-11, .grid-12, .grid-tablet-12, .grid-laptop-12, .grid-12-5, .grid-tablet-12-5, .grid-laptop-12-5 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}
.grid-1, .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10, .grid-11, .grid-12, .grid-12-5 {
  float: left;
  box-sizing: border-box;
}
/*Cпециальный класс для размещения 5-ти элементов в 1-ну строку*/
.grid-12-5 {
  width: 20%;
}
.grid-12 {
  width: 100%;
}
.grid-11 {
  width: 91.66666667%;
}
.grid-10 {
  width: 83.33333333%;
}
.grid-9 {
  width: 75%;
}
.grid-8 {
  width: 66.66666667%;
}
.grid-7 {
  width: 58.33333333%;
}
.grid-6 {
  width: 50%;
}
.grid-5 {
  width: 41.66666667%;
}
.grid-4 {
  width: 33.33333333%;
}
.grid-3 {
  width: 25%;
}
.grid-2 {
  width: 16.66666667%;
}
.grid-1 {
  width: 8.33333333%;
}

@media (min-width: 768px) {
  .grid-tablet-1, .grid-tablet-2, .grid-tablet-3, .grid-tablet-4, .grid-tablet-5, .grid-tablet-6, .grid-tablet-7, .grid-tablet-8, .grid-tablet-9, .grid-tablet-10, .grid-tablet-11, .grid-tablet-12, .grid-tablet-12-5 {
    float: left;
    box-sizing: border-box;
  }
  /*Cпециальный класс для размещения 5-ти элементов в 1-ну строку*/
  .grid-tablet-12-5 {
    width: 20%;
  }
  .grid-tablet-12 {
    width: 100%;
  }
  .grid-tablet-11 {
    width: 91.66666667%;
  }
  .grid-tablet-10 {
    width: 83.33333333%;
  }
  .grid-tablet-9 {
    width: 75%;
  }
  .grid-tablet-8 {
    width: 66.66666667%;
  }
  .grid-tablet-7 {
    width: 58.33333333%;
  }
  .grid-tablet-6 {
    width: 50%;
  }
  .grid-tablet-5 {
    width: 41.66666667%;
  }
  .grid-tablet-4 {
    width: 33.33333333%;
  }
  .grid-tablet-3 {
    width: 25%;
  }
  .grid-tablet-2 {
    width: 16.66666667%;
  }
  .grid-tablet-1 {
    width: 8.33333333%;
  }
}
@media (min-width: 992px) {
  .grid-laptop-1, .grid-laptop-2, .grid-laptop-3, .grid-laptop-4, .grid-laptop-5, .grid-laptop-6, .grid-laptop-7, .grid-laptop-8, .grid-laptop-9, .grid-laptop-10, .grid-laptop-11, .grid-laptop-12, .grid-laptop-12-5 {
    float: left;
    box-sizing: border-box;
  }
  /*Cпециальный класс для размещения 5-ти элементов в 1-ну строку*/
  .grid-laptop-12-5 {
    width: 20%;
  }
  .grid-laptop-12 {
    width: 100%;
  }
  .grid-laptop-11 {
    width: 91.66666667%;
  }
  .grid-laptop-10 {
    width: 83.33333333%;
  }
  .grid-laptop-9 {
    width: 75%;
  }
  .grid-laptop-8 {
    width: 66.66666667%;
  }
  .grid-laptop-7 {
    width: 58.33333333%;
  }
  .grid-laptop-6 {
    width: 50%;
  }
  .grid-laptop-5 {
    width: 41.66666667%;
  }
  .grid-laptop-4 {
    width: 33.33333333%;
  }
  .grid-laptop-3 {
    width: 25%;
  }
  .grid-laptop-2 {
    width: 16.66666667%;
  }
  .grid-laptop-1 {
    width: 8.33333333%;
  }
}
.hidden {
  display: none !important;
}

/* Модальное окно */
.modal .btn-close {
  color: #343434;
  cursor: pointer;
  font-size: 36px;
  line-height: 37px;
  text-decoration: none;
  position: absolute;
  right: 20px;
  margin: 0;
  top: 5px;
  font-weight: 600;
  transition: 0.3s;
}
.modal .btn-close:hover {
  color: #ff5b58;
  transition: 0.3s;
}
.modal-wrap:before {
  content: "";
  visibility: hidden;
  opacity: 0;
  display: block;
  background: rgba(0, 0, 0, .3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  transition: 0.3s;
}
.modal-open ~ .modal-wrap .modal-dialog { 
  top: 20%;
  opacity: 0;
  transition: 0.5s;
  visibility: hidden;
  animation-name: fadeOut;
  -webkit-animation-name: fadeOut; 
  animation-duration: 0.5s; 
  -webkit-animation-duration: 0.5s;
  animation-timing-function: ease-in-out; 
  -webkit-animation-timing-function: ease-in-out;    
}
@keyframes fadeOut {
  0% {
    transform: scale(1);
    opacity: 1;       
  }
  20% {
    transform: scale(0.96);  
  }
  40% {
    transform: scale(1.04);
  }   
  100% {
    transform: scale(0.5);
    opacity: 0; 
  }       
}

@-webkit-keyframes fadeOut {
  0% {
    -webkit-transform: scale(1);
    opacity: 1;       
  }
  20% {
    -webkit-transform: scale(0.96);
  }
  40% {
    -webkit-transform: scale(1.04);
  }   
  100% {
    -webkit-transform: scale(0.5);
    opacity: 0; 
  }       
}
.modal-overlay {
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9;
  transition: 0.3s;
}
.modal-open:checked ~ .modal-wrap:before,
.modal-open:checked ~ .modal-wrap .modal-overlay {
  visibility: visible;
  opacity: 1;
  transition: 0.3s;
}
.modal-open:checked ~ .modal-wrap .modal-dialog { 
  top: 20%;
  visibility: visible;
  opacity: 1;
  animation-name: fadeIn;
  -webkit-animation-name: fadeIn; 
  animation-duration: 0.5s; 
  -webkit-animation-duration: 0.5s;
  animation-timing-function: ease-in-out; 
  -webkit-animation-timing-function: ease-in-out;    
}
@keyframes fadeIn {
  0% {
    transform: scale(0.5);
    opacity: 0;       
  }
  60% {
    transform: scale(1.04);  
  }
  80% {
    transform: scale(0.96);
  }   
  100% {
    transform: scale(1);
    opacity: 1; 
  }       
}

@-webkit-keyframes fadeIn {
  0% {
    -webkit-transform: scale(0.5);
    opacity: 0;       
  }
  60% {
    -webkit-transform: scale(1.04);
  }
  80% {
    -webkit-transform: scale(0.96); 
  }   
  100% {
    -webkit-transform: scale(1);
    opacity: 1; 
  }       
}
.modal-dialog {
  border: none;
  background: #fff;
  border-radius: 20px;
  position: fixed;
  width: 550px;
  font-size: 13px;
  max-width: 100%;
  left: 50%;
  margin-left: -275px;
  -webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
  -moz-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
  box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3); 
  z-index: 10;
}
.modal-body p {
  margin: 0;
}
.modal-footer {
  padding: 20px 20px;
}
.modal-header {
  border-bottom: #d6a538 solid 1px;
  background: #fdcc5e;
  padding: 15px 20px 10px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.modal-header h2 {
  color: #343434;
  font-size: 16px;
  font-weight: normal;
  line-height: 1;    
  margin: 0;
}
.modal-footer {
  border-top: #eaeaea solid 1px;
  text-align: right;
}
.modal-body img { 
  max-width: 100%;
  height: auto;
}
.modal-body form {
  padding: 10px;
  display: table;
}
.modal-body input {
  border-radius: 5px;
  border: none;
  padding: 10px 10px 10px 30px;
  background: #e4e4e4;
  display: block;
  margin: 10px auto;
  width: 100%;
  box-sizing: border-box;
}
.modal-body input[name=name] + label {
  content: "";
  background: url(../img/svg/opti2-23-blue.svg) no-repeat 0 0;
  background-size: cover;
  width: 13px;
  height: 13px;
  opacity: 0.7;
  display: block;
  position: absolute;
  margin-top: -35px;
  margin-left: 10px;
}
.modal-body input[name=email] + label {
  content: "";
  background: url(../img/svg/opti2-02-blue.svg) no-repeat 0 0;
  background-size: cover;
  width: 13px;
  height: 13px;
  opacity: 0.7;
  display: block;
  position: absolute;
  margin-top: -35px;
  margin-left: 10px;
}
.modal-body input[name=phone] + label {
  content: "";
  background: url(../img/svg/opti1-43-blue.svg) no-repeat 0 0;
  background-size: cover;
  width: 13px;
  height: 13px;
  opacity: 0.7;
  display: block;
  position: absolute;
  margin-top: -35px;
  margin-left: 10px;
}
.modal-body textarea[name=message] + label {
  content: "";
  background: url(../img/svg/opti1-35-blue.svg) no-repeat 0 0;
  background-size: cover;
  width: 13px;
  height: 13px;
  opacity: 0.7;
  display: block;
  position: absolute;
  margin-top: -35px;
  margin-left: 10px;
}
.modal-body input[name=name]:focus + label,
.modal-body input[name=email]:focus + label,
.modal-body input[name=phone]:focus + label {
  opacity: 1;
  transition: 0.2s;
}
.modal-body .mainform {
  padding: 0;
}
.modal-body .inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
  display: none;
}
.modal-body .addfile {
  border-radius: 5px;
  padding: 7px 7px 7px 35px;
  border: #578458 solid 1px;
  vertical-align: middle;
  background: #5aa95b;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  color: #fff;
  line-height: 1.3;
  display: inline-block;
  margin: 13px auto;
  box-sizing: border-box;
}
.modal-body .addfile:hover {
  background: #539454;
  transition: 0.3s;
}
.modal-body .inputfile + label span {
  box-sizing: content-box;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.modal-body .inputfile + label::before {
  content: "";
  background: url(../img/svg/opti4-28-blue.svg);
  background-size: cover;
  width: 25px;
  height: 25px;
  top: 50%;
  cursor: pointer;
  margin-top: -12.5px;
  left: 5px;
  position: absolute;
  display: inline-block;
}
.modal-body textarea {
  border-radius: 5px;
  border: none;
  padding: 10px 10px 10px 20px;
  background: #e4e4e4;
  display: block;
  margin: 10px auto;
  min-height: 80px;
  width: 100%;
  box-sizing: border-box;
}
.modal-body .placeholderfile {
  padding-bottom: 3px;
  display: block;
  color: #375a37;
  cursor: pointer;
}
.modal-body button {
  background: #f3cd28;
  border: none;
  font-family: "LatoBold";
  padding: 10px 80px;
  border-radius: 5px;
  color: #8a7829;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
  display: block;
  margin: 20px auto 10px;
}
.modal-body button:hover,
.modal-body button:focus  {
  background: #ffc521;
  transition: 0.3s;
}
.modal-body button:disabled {
  color: #808080;
  background: #dcdcdc;
  cursor: help;
}
.modal-body button:disabled::before {
  content: "Для активации введите имя";
  display: block;
  position: absolute;
  font-family: "LatoLight";
  font-size: 12px;
  margin-top: -28px;
  margin-left: -53px;
  background: #dcdcdc;
  color: #808080;
  padding: 5px 10px;
  border-radius: 5px;
}
.sendsOrder {
  display: none;
  text-align: center;
  background: #49bf4b;
  color: #fff;
  border-radius: 5px;
  padding: 5px 0;
  margin: 0 auto 10px;
}
.loadingOrder {
  display: block;
  text-align: center;
  background: #e6a42b;
  color: #fff;
  border-radius: 5px;
  padding: 5px 0;
  margin: 0 auto 10px;
}
@media (max-width: 991px) {
  .modal-open ~ .modal-wrap .modal-dialog {
    top: 10px;
  }
  .modal-open:checked ~ .modal-wrap .modal-dialog {
    top: 10px;
  }
}
@media (max-width: 550px) {
  .modal-dialog {
    margin-left: 0;
    left: 0;
  }
}
@media (max-width: 385px) {
  .modal-body form {
    padding: 0;
  }
}
@media (max-width: 355px) {
  .device-min {
    padding: 2px;
  }
}
.order {
  text-align: center;
}
.order label {
  color: #715e0f;
  background: #f5c918;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 300;
  border-radius: 3px;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
  font-family: "LatoBold";
}
.order label:hover {
  color: #715e0f;
  background: #dcb61c;
  transition: 0.3s;
}