.overlay {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9999;
visibility: hidden;
background-color: rgba(0, 0, 0, 0.7);
opacity: 0;
position: fixed;
cursor: default;
-webkit-transition: all 0.6s;
transition: all 0.6s;
}
.overlay:target {
visibility: visible;
opacity: 1;
}
.popup {
top: 0;
right: 0;
left: 50%;
  width: 100%;
  min-width: 160px;
z-index: 9999;
position: fixed;
padding: 30px 40px 40px 40px;
background-color: #FFFFFF;
-webkit-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
-ms-box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
-o-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);
-webkit-transform: translate(-50%, -150%);
transform: translate(-50%, -150%);
-webkit-transition: transform 0.6s ease-out;
-webkit-transition: -webkit-transform 0.6s ease-out;
transition: -webkit-transform 0.6s ease-out;
transition: transform 0.6s ease-out;
transition: transform 0.6s ease-out, -webkit-transform 0.6s ease-out;
}
.wig {
  max-width: 300px;
}
.wig p{
  text-align: center;
padding: 0 20px 20px 20px;
}
.sssl {
display: block;
height: 45px;
line-height: 45px;
background: #38B5FC;
color: #fff;
text-align: center;
margin-bottom:10px;
border-radius: 90px;
font-weight: 600;
}
.sssll:last-child{
  margin-bottom: -20px;
}
.sssl:hover{
  background: #343338;
}

.wig1 {
  max-width: 400px;
}
.popup h2{
  text-align: center;
  border-bottom: 1px solid #d5e0eb;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 600;
  color: #343338;
}
.scll{
  overflow-y: scroll;
  height: 400px;
  padding-right: 20px;
}
.sclll{
  overflow-y: scroll;
  height: 220px;
  padding-right: 20px;
}
.popup a {
  cursor: pointer;
}
.popup label b{
  color: #FF2525;
  font-size: 16px;
}
.inp1,
.textar {
  font-size: 16px;
  background: #fff;
  border: 1px solid #F0F0F0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0 20px 0 20px;
  height: 50px;
  line-height: 50px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
  -webkit-box-shadow: inset 1px 1px 10px -1px rgba(0, 0, 0, 0.1);
  box-shadow: inset 1px 1px 10px -1px rgba(0, 0, 0, 0.1);
}
.textar{
    height: 100px;
  line-height: 18px;
  padding: 15px 20px 15px 20px;
}
.inp0{
  margin-bottom: 0;
}
.inp1 option{
  max-width: 200px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.inp1:hover, .inp1:focus{
  border: 1px solid #83796F;
  background: #fff;
}

.btnn {
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: #83796F;
text-transform: uppercase;
  border: 0;
  margin-top: 10px;
}
.btnn:hover {
  background: #CC9B01;
}


/* активируем модальный блок */
.overlay:target+.popup {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  top: 10%;
}
.overlay:target+.popup1 {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  top: 10%;
}

.close {
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  position: absolute;
  border-radius: 90px;
  background-color: #FF2525;
  -webkit-box-shadow: 0px 0px 15px #000;
  box-shadow: 0px 0px 15px #000;
  -webkit-transition: all ease .8s;
  transition: all ease .8s;
  color: #fff;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
}
.close:hover {
  background-color: #000;
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}


@media only screen and (min-width: 220px) and (max-width: 400px) {
  .wig {
    max-width: 80%;
  }
  .wig1 {
    max-width: 80%;
  }
  .popup h2{
    padding-bottom:20px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 18px;
  }
  .popup {
    padding: 20px 20px 20px 20px;
  }
  .close {
    top: -5px;
    right: -5px;
  }

  .sclll{
    height: 200px;
  }

  .inp1, .kyy{
    font-size: 14px;
    height: 40px;
    line-height: 40px;
    margin-bottom: 10px;
  }

  .h40{
    margin-top: 20px;
    height: 40px;
    line-height: 40px;
  }

  .overlay:target+.popup {
    top: 5%;
  }
  .overlay:target+.popup1 {
    top: 5%;
  }
}
