/* Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

html,
body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
}

.container {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
/* Header */

.header {
  width: 100%;
  background: url(images/bg.png) center repeat rgba(40, 97, 154, 1);
  background-size: contain;
}
.header__inner {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.logo {
  width: 250px;
  max-width: 80%;
  display: block;
}

/* Main */

.main {
  flex: 1 1 auto;
  padding: 0 0 40px;
}
.main__image-wrapper {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}
.main__image {
  width: 100%;
  max-width: 100%;
}
.main__inner {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15px;
  margin: 0 auto;
}
.title {
  font-family: 'Open Sans', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.text {
  font-size: 18px;
}
.--desktop {
  display: block;
}
.--mobile {
  display: none;
}
.content {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}
.form {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}
.form__input {
  width: 100%;
  padding: 20px;
  border: 3px solid #3699ff;
  border-radius: 8px;
  margin-bottom: 6px;
}
.form__input::placeholder {
  color: #b5b5c3;
  font-size: 16px;
}
.form__button {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%;
  background: #3699ff;
  transition: all linear .1s;
  color: #ffffff;
  font-weight: 700;
  border-radius: 8px;
  padding: 20px;
}
.form__button:hover{
  background: #126cc5;
}
.reviews {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  margin-top: 10px;
}
.reviews__text {
  font-size: 18px;
  color: #8a8a8a;
  margin-left: 10px;
}
.reviews__image {
  max-width: 130px;
  margin: auto 0;
}
/* Footer */

.footer {
  width: 100%;
  background: url(images/bg.png) center repeat rgba(40, 97, 154, 1);
  background-size: contain;
}
.footer__inner {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.footer__text {
  font-size: 8px;
  line-height: 1.05;
  color: #fff;
  margin-top: 10px;
}
.footer__links {
  display: flex;
  flex-direction: column;
}
.footer__links-item {
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;
  text-align: end;
  margin-bottom: 5px;
}
.footer__links-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .logo {
    width: 200px;
  }
  .main {
    flex: 1 1 auto;
    padding-top: 0;
    padding-bottom: 50px;
  }

  .main__inner {
    max-width: 400px;
    margin: 0 auto;
  }
  .title {
    text-align: center;
    font-size: 40px;
  }
  .text {
    text-align: center;
    font-size: 18px;
    margin-top: 15px;
  }
  .content {
    width: 100%;
    font-size: 17px;
    padding: 0;
  }
  .form {
    margin: 0 auto;
    width: 100%;
  }
  .reviews{
    margin: 0 0 10px !important;
  }
  .footer__links-item {
    font-size: 14px;
  }
  .footer__text {
    margin-top: 15px;
  }
}
@media (max-width: 450px) {
  .header__inner{
    padding: 10px 0;
  }
  .main__inner {
    max-width: 350px;
  }
  .logo{
    width: 170px;
  }
  .title {
    font-size: 30px;
  }
  .reviews {
    margin-bottom: 15px;
  }
  .reviews__text {
    font-size: 16px;
    color: #8a8a8a;
    margin-left: 10px;
  }
  .reviews__image {
    width: 100px;
    margin: auto 0;
  }
  .text {
    font-size: 14px;
  }
  .form__input {
    padding: 16px;
  }
  .form__button {
    padding: 16px;
  }
  .main__image-wrapper {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
  }
  .main__image {
    width: auto;
    object-fit: cover;
    height: 120px;
    max-width: auto;
  }
}
@media (max-width: 340px) {
  .title{
    font-size: 28px;
  }

}