@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700&subset=cyrillic,cyrillic-ext');

html {
  height: 100%;
}

body {
  font-family: 'PT Sans';
  background: #f3f3f3;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  display: flex; 
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media(max-width: 768px){
  body {
    display: block;
  }
}

input, a {
  outline: none !important;
}

.container {
  position: relative;
  background-color: #fff;
  border-radius: 30px;
  border: 1px #E7E7E7 solid;
  max-width: 855px;
  width: 100%;
  height: 550px;
}

@media(min-width: 769px){
  .container {
    overflow: hidden;
  } 
}
.quest-item .quest-top,
.quest-item .quest-top-end{
  width: 90%;
  margin: 40px auto;
}
.quest-item .quest-top p{
  font-size: 1.2em;
}
.quest-item .quest-top-end{
  margin: 10px auto;
  font-size: 2.2em;
  text-align: center;
}
.quest-item .quest-top-end p{
  margin: 10px;
}

.quest-item{
  margin-top: 38px;
  text-align: center;
  display: none;

}
.quest-item.quest{
  margin-left: 43.859649122%;
  text-align: left;
} 
.quest-item.show{
  display: block;
  background-color: #fff;
}

.quest-item .quest-top input{
  font-size: 1em;
  text-align: left;
  padding: 10px;
  border-radius: 7px;
  border: 1px #D8D8D8 solid;
}
.quest-text {
  margin: 15px 0 10px;
  font-size: 1.1em;
  line-height: 1.1;
  width: 450px;
}
.quest-proc{
  /* position: sticky; */
  /* z-index: 110; */
  position: relative;
  width: 370px;
  text-align: left;
}

@media(max-width: 768px) {
  .quest-proc {
    margin: 0 auto;
    width: 80%;
  }
}
@media(max-width: 567px) {
  .quest-proc {
    width: 100%;
  }

  .range::before {
    display: none;
  }

  .range::after {
    display: none;
  }
}

.quest-item .range .quest-label {
  height: auto;
  font-size: 16px;
  color: black;
  font-weight: normal;
  position: absolute;
  width: 100%;
  display: block;
}
.range {
  color: #93989e;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}

.range::before {
  content: '0%';
  position: absolute;
  left: -30px;
  bottom: 22px;
}

.range::after {
  content: '100%';
  position: absolute;
  bottom: 22px;
  right: -50px;
}

.quest-item .range > *{
  display: inline-block;
  height: 3.25em;
  vertical-align: top;
}
.quest-item .range > span{
  padding-top: 15px;
  width: 49px;
}
.quest-item .range > span.proc-0{
  text-align: right;
}
.quest-item .range > span,
.quest-item .top-value{
  font-weight: bold;
  color: #93989e;
  text-align: left;
  margin-left: 15px;
  
}
.quest-item .quest-num,
.quest-item span, 
.quest-item .top-value{
  font-size: 1.2em;
  display: inline-block;
}

.quest-item .quest-next .quest-button{
  position: absolute;
  bottom: 31px;
  right: 35px;
}

@media (max-width: 768px ){
  .quest-item .quest-next .quest-button{
    position: static;
    margin-top:50px;
    margin-bottom: 30px;
  }  
}

.quest-item .quest-next .quest-button.disabled{
  opacity: .4;
}
.quest-item .quest-bg{
  display: block;
  width: 350px;
  height: 350px;
  z-index: 0;
  position: absolute;
  left: -34px;
  bottom: -97px;
  transform: rotate(-45deg);
  pointer-events: none;
}


.button {
  border: 0;
  border-radius: 3em;
  display: inline-block;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1.2em 4em;
  margin: auto;
  outline: none;
  cursor: pointer;
}
.glow-button {
  background: linear-gradient(45deg, #22ceb3, #85d430);
  color: #fff;
  box-shadow: 0 6px 25px rgba(34,206,179,0.4);
  transition: box-shadow 0.5s ease;
}
.glow-button:hover,
.glow-button:focus {
  box-shadow: 0 12px 45px rgba(34,206,179,0.5);
}

input.required{
  border: 1px #FA2950 solid !important;
}
small.required{
  color:#FA2950;
  display: none;
}

[class*='-ms-']:before {
  opacity: .15;
}
input[type='range'] {
  box-sizing: border-box;
  overflow: visible;
  -webkit-appearance: none;
  padding: 0.5em;
  width: 100%;
  height: 3.25em;
  border-radius: .25em;
  background: transparent;
  /* Firefox & Chrome/ Opera need this, 
     otherwise font-size is smaller */
  font-size: 1em;
  cursor: pointer;
  /* wish I could style this asshole */
  z-index: 100;
}
input[type='range']::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-sizing: border-box;
  border: solid 1px #d1d1d1;
  width: 370px;
  height: 0.75em;
  border-radius: 0.375em;
  box-shadow: inset 0 .125em .125em #aaa;
  background: #e9e9e9;
  z-index: 110;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -.5em;
  /* weird shit, Chrome */
  box-sizing: border-box;
  border: none;
  border: solid 0.3125em #fefefe;
  border-right-width: .5em;
  border-left-width: .5em;
  width: 2em;
  height: 1.5em;
  border-radius: .25em;
  box-shadow: 0 .25em .125em #d2d2d2;
  background: #fefefe linear-gradient(90deg, #cfcfcf 50%, rgba(0, 0, 0, 0) 50%) 1px 50% content-box;
  /* wtf is wrong with you, Chrome? */
  background-size: .25em 100%;
  background-size: 55% 55%;
  /* this too :| */
  z-index: 111;
}
input[type='range']::-moz-range-track {
  z-index: -1;
  /* fix Firefox WTF */
  box-sizing: border-box;
  border: solid 1px #d1d1d1;
  height: 0.75em;
  border-radius: 0.375em;
  box-shadow: inset 0 .125em .125em #aaa;
  background: #e9e9e9;
  z-index: 110;
}
input[type='range']::-moz-range-thumb {
  box-sizing: border-box;
  border: none;
  border: solid 0.3125em #fefefe;
  border-right-width: .5em;
  border-left-width: .5em;
  height: 1.5em;
  border-radius: .25em;
  box-shadow: 0 .25em .125em #d2d2d2;
  background: #fefefe linear-gradient(90deg, #cfcfcf 50%, rgba(0, 0, 0, 0) 50%) 1px 50% content-box;
  /* wtf is wrong with you, Chrome? */
  background-size: .25em 100%;
  /* Firefox-only, it won't work in IE 
     and it's messed up in Chrome */
  cursor: ew-resize;
  z-index: 111;
}
input[type='range']::-ms-track {
  overflow: hidden;
  box-sizing: border-box;
  border: solid 1px #d1d1d1;
  width: 20em;
  height: 0.75em;
  border-radius: 0.375em;
  box-shadow: inset 0 .125em .125em #aaa;
  background: #e9e9e9;
  color: transparent;
  z-index: 110;
}
input[type='range']::-ms-thumb {
  box-sizing: border-box;
  border: none;
  border: solid 0.3125em #fefefe;
  border-right-width: .5em;
  border-left-width: .5em;
  height: 1.5em;
  border-radius: .25em;
  box-shadow: 0 .25em .125em #d2d2d2;
  background: #fefefe linear-gradient(90deg, #cfcfcf 50%, rgba(0, 0, 0, 0) 50%) 1px 50% content-box;
  /* wtf is wrong with you, Chrome? */
  background-size: .25em 100%;
  z-index: 111;
}
input[type='range']::-ms-fill-lower {
  border-radius: 0.375em;
  background: #88b1d7;
}
input[type='range']::-ms-fill-upper {
  background: transparent;
}
input[type='range']:focus {
  outline: none;
}


@-moz-document url-prefix(){
  .quest-item .quest-text{
    font-size: 1.7em;
  }

  input[type='range'] {
    padding: 0;
  }
  .quest-item .range > span {
    padding-top: 13px;
  }
  .quest-item .top-value {
    position: absolute;
    top:0;
    display: inline;
  }
  .quest-item .quest-top p {
    font-size: 1.4em;
  }
}
@media (max-width:768px){
  html, body{
    background-color: #fff;
    font-size: 1em;
  }
  .container{
    width: 100%;
    /*overflow: auto;*/
    border: none;
    border-radius: 0;
    margin: 0;
  }

  .quest-item{
    margin-top: 20px;
  }
  .quest-item .quest-top{
    margin: 40px auto;
  }
  .quest-item .quest-top-end {
    margin: 20px auto;
  }
  .quest-text {
    margin: 35px auto 20px;
    width: 90%;
  }
  .quest-item .quest-top p {
    font-size: 1.2em;
  }
  .quest-item .quest-bg{
    opacity: .1;
    position: fixed;
  }
  .quest-item .range,
  .quest-item.quest {
    margin-left: 0;
    text-align: center;
  }
  .button{
    padding: 1em 2em;
  }

  .quest-item .quest-next .quest-button {
    bottom: 25px;
    right: 25px;
  }

  .quest-item .quest-top-end p {
    margin: 12px;
  }
}
@media (max-width:568px){
  .quest-item .quest-top-end {
    width: 98%;
  }
}
@media (max-width:465px){
  .quest-item .range > span{
    display: none !important;
  }
  .quest-top-t{
    margin-bottom: 50px;
  }
  .quest-text {
    margin: 20px auto 50px;
  }
  .quest-next{
    /* position: fixed; */
    left: 0;
    right: 0;
    bottom: 45px;
    width: 100%;
  }
  .quest-item .quest-next .quest-button {
    display: block;
    position: unset;
    width: 70%;
  }
}
@media (max-width:375px){
  .hidden-small{
    display: none;
  }
}
@media (max-width:320px){
  .quest-item .quest-top {
    margin: 30px auto;
  }
  .quest-text {
    margin-top: 20px;
    font-size: 1.8em;
  }
  .quest-item .quest-top-end {
    margin: 0 auto;
    font-size: 2em;
  }
  .quest-item .quest-top-end p {
    margin: 8px;
  }

}
@media (max-height:320px){
  .quest-item .quest-top {
    margin: 30px auto;
  }
  .quest-item .quest-top p {
    margin: .3em;
  }
  .quest-text {
    margin-top: 20px;
    font-size: 1.8em;
  }
  .quest-item .quest-top-end {
    margin: 0 auto;
    font-size: 2em;
  }
  .quest-item .quest-top-end p {
    margin: 8px;
  }
}


#policy, a{
  color: #b0b4b8;
  font-size: 1em;
}