*{
  box-sizing: border-box;
}
body{
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background: #e6e6e6;
  color: #1d2029;
}
h1,h2,h3,p{
  margin: 0;
  padding: 0;
  cursor: default;
}
.container{
  position: relative;
  max-width: 1220px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 7vh;
}
h1{
  font-size: 22px;
}
h2{
  font-size: 20px;
}
/*Module*/
.module{
  width: 720px;
  position: relative;
  margin-bottom: 7vh;
}
.module>input{
	display: none;
}
.module>section{
  display: none;
  border-top: 2px solid #ff8201;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 4px 4px;
  background: white;
  margin: 15px 0 7vh 0;
  padding: 20px 0 40px;
  flex-direction: column;
  align-items: center;
}
.module>label{
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
}
.module>input:checked+label {
	color: white;
  opacity: 1;
	background: #ff8201;
  pointer-events: none;
}
.module>label:hover{
  opacity: 0.6;
}
#tab1:checked~#content-tab1, #tab2:checked~#content-tab2{
	display: flex;
}
/*Top Buttons*/
.btns_top{
  width: 90%;
  margin-bottom: 3vh;
  display: flex;
  justify-content: flex-end;
}
.btns_top svg, #btn_up svg{
  fill: #ff9a31;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}
.btns_top svg:hover, #btn_up svg:hover{
  fill: #ff8201;
}
#reset_btn svg{
  width: 25px;
  height: 25px;
}
#reset_btn svg:hover{
  animation-duration: 2s;
  animation-name: rotate;
  animation-iteration-count:1;
}
@keyframes rotate{
  from{
    transform: rotate(0);
  }
  to{
    transform: rotate(-360deg);
  }
}
/*Buttons*/
.btn_main{
  cursor: pointer;
  border: 2px solid #ff8201;
  border-radius: 30px;
  padding: 15px 20px;
  transition: all 0.3s ease;
}
.btn_main:hover{
  background: #ff8201;
  color: white;
}
.btn_main span{
  text-transform: uppercase;
  font-weight: bold;
}
#btn_submit{
  margin-top: 6vh;
}
/*Input*/
.mainInp_container{
  margin-top: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}
.main_input{
  background: none;
  border: none;
  outline: none;
  border-bottom: 2px solid #1d2029;
  font-size: 18px;
  text-align: center;
  padding-bottom: 4px;
  width: 50%;
  min-width: 320px;
  transition: all 0.3s ease;
}
.main_input:focus{
  width: 70%;
  border-bottom: 2px solid #ff8201;
}
.main_input::-webkit-input-placeholder{
  opacity: 0.5;
  transition: all 0.3s ease;
}
.main_input:-ms-input-placeholder{
  opacity: 0.5;
  transition: all 0.3s ease;
}
.main_input:focus::-webkit-input-placeholder{color: transparent;}
.main_input:focus::-moz-placeholder{color: transparent;}
.main_input:focus:-moz-placeholder{color: transparent;}
.main_input:focus:-ms-input-placeholder{color: transparent;}

/*Autocomplete*/
.autocomplete-items{
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  top: 100%;
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  right: 0;
}

.autocomplete-items div{
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover{
  background-color: #e9e9e9;
}
.autocomplete-active{
  background-color: #ff8201 !important;
  color: white;
}
/*Specification*/
.specification{
  display: flex;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 35px;
}
.spec_item{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
}

@media (min-width:350px) and (max-width:540px){
  .spec_item:last-child{
    margin-top: 20px;
  }
  .spec_item{
    margin: 0 5px;
  }
}
@media (max-width:350px){
  .spec_item{
    margin: 30px 5px 0;
  }
  .spec_item:first-child{
    margin-top: 0;
  }
}
.spec_item>select{
  cursor: pointer;
  color: white;
  padding: 15px 40px 15px 20px;
  margin-top: 15px;
  background: #ff8201 url('../img/sort-down.svg') no-repeat;
  outline: none;
  border: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-position-y: 12px;
  background-position-x: 110px;
  background-size: 10px;
  transition: all 0.3s ease;
}
select::-ms-expand{  /* для IE */
    display: none;
}
.spec_item>select option{
  cursor: pointer;
  background: white;
  color:black;
  height: 20px;

}
.module>h1{
  text-align: center;
  border-bottom: 2px solid #ff8201;
  padding-bottom: 6px;
}

.result{
  min-height: 200px;
  background: white;
  border-radius: 0 0 4px 4px;
  box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
}
.result>span{
  text-align: center;
}
.result a{
  display: block;
  text-decoration: none;
  outline: none;
  color: #1d2029;
  padding: 10px;
  transition: opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}
.result a:before{
  content: "";
  display: block;
  position: absolute;
  background: #f7f7f7;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;

}
.result a:hover{
  background: #f7f7f7;
}
.result span{
  display: block;
  transition: all 0.2s ease;
  white-space: normal;
}
.result span:first-child{
  font-size: 18px;
  font-weight: bold;
}
.result span:nth-child(2){
  font-size: 14px;
  opacity: 0.8;
  padding-top: 5px;
}
.result span:last-child{
  font-size: 16px;
}
.result a:hover span:first-child{
  color: #ff8201;
  text-decoration: underline;
}
.result a:last-child::before{
  display: none;
}

#btn_up{
  position: fixed;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  right: 40px;
  bottom: 30px;
}
