*, :before, :after {
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  margin: 0;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  width: 460px;
}
.header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 15px;
}
.header-logo {
  margin-right: 15px;
  width: 200px;
}
.header-language {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.header-language a {
  text-decoration: none;
}
.header-language a.active {
  text-decoration: underline;
}
.header-language a:link {
  color: #AD3449;
}
.header-language a:visited {
  color: #AD3449;
}
.text-thanks {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}
.text-answer {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
}
.text-rating {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  line-height: 20px;
  margin: 40px 0 0 0;
}
.rating-stars {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  margin: 15px auto;
  width: 210px;
  height: 30px;
}
.star {
  fill: #d8d8d8;
  cursor: pointer;
}
.star:hover,
.star:hover~.star {
  fill: #fdd835;
}
.star.selected,
.star.selected:before,
.star.selected:after {
  fill: #fdd835;
}
.star-small {
  display: block;
}
.star-big {
  display: none;
}
.field__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin: 30px 0 5px;
}
.field__input {
  margin-top: 5px;
  padding: 10px;
  width: 100%;
  border-color: #c9c8c8;
  border-radius: 3px;
  font-family: 'Open sans', sans-serif;
  font-size: 14px;
  resize: none;
  outline: none;
}
.submit {
  display: block;
  margin: 15px auto 0;
  padding: 10px 0;
  width: 190px;
  border: 1px solid #306ca2;
  border-radius: 3px;
  font-size: 14px;
  background-color: #3579b5;
  color: #fff;
  transition: all .15s ease;
  touch-action: manipulation;
  user-select: none;
  cursor: pointer;
}
.submit[disabled] {
  border-color: #306ca2;
  background-color: #3579b5;
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}
.feedback {
  display: flex;
  justify-content: center;
  width: 100%;
}
.social-link {
  margin: 10px;
  cursor: pointer;
}
.social-link-big {
  display: none;
}
.icon:hover {
  fill: #A93649;
}
.form {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  width: 100%;
  height: auto;
  transition: opacity .2s ease-out;
}
.social-links {
  margin-top: 20px;
  width: 100%;
  transition: opacity .2s ease-out;
}
.social-title {
  font-size: 18px;
  text-align: center;
}
.social-list {
  display: flex;
  justify-content: center;
}

@media screen and (orientation: portrait) {
  .container {
    width: 85%;
    margin-top: 50px;
  }
  .header-language {
    font-size: 60px;
  }
  .header {
    margin-bottom: 30px;
  }
  .header-logo {
    width: 500px;
  }
  .text-thanks {
    font-size: 60px;
    line-height: 52px;
  }
  .text-answer {
    font-size: 40px;
    line-height: 52px;
  }
  .text-rating {
    margin: 80px 0 0 0;
    font-size: 40px;
    line-height: 1.2;
  }
  .rating-stars {
    margin: 100px auto;
    width: 90%;
    height: 100px;
  }
  .form {
    width: 90%;
  }
  .field__label {
    margin: 30px 0 30px;
    font-size: 36px;
  }
  .field__input {
    padding: 15px;
    border-radius: 9px;
    font-size: 28px;
  }
  .submit {
    margin: 30px auto 0;
    padding: 20px 0;
    width: 425px;
    font-size: 36px;
  }
  .social-link {
    margin: 10px 40px 0 40px;
  }
  .social-link-big {
    display: block;
  }
  .social-link-small {
    display: none;
  }
  .star {
    cursor: auto;
  }
  .star.star-small {
    display: none;
  }
  .star-big {
    display: block;
  }
  .social-title {
    font-size: 50px;
  }
}

@media screen and (orientation: landscape) and (max-height: 560px) {
  .header-logo {
    display: none;
  }
  .text-rating {
    margin: 15px 0 0 0;
  }
  .field__label {
    margin: 0px 0 5px;
  }
}

@media screen and (max-height: 410px) {
  .text-thanks {
    display: none;
  }
  .text-rating {
    margin: 10px 0 0 0;
  }
  .rating-stars {
    margin: 10px auto;
  }
}
