body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 100vh;
  margin: 0;

  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #000000;

  background-color: #ffffff;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
::after,
::before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden:not(:focus):not(:active),
input[type="checkbox"].visually-hidden,
input[type="radio"].visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  border: 0;

  clip: rect(0 0 0 0);
}

.header {
  margin-bottom: 100px;
  padding-top: 35px;
}

@media screen and (max-width: 1000px) {
  .header {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding-top: 16px;
  }
}

.header .logo {
  display: block;
  width: 175px;
  margin: 0 auto;
}

.book-block .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 65px;
}

@media screen and (max-width: 1000px) {
  .book-block .container {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 32px 20px;
  }
}

.thankyou .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  max-width: 695px;
  margin: 0 auto;
  padding: 0 20px;
}

.thankyou__header {
  margin-top: 0;
  margin-bottom: 100px;

  font-weight: 800;
  font-size: 60px;
  line-height: 60px;
  text-align: center;
  color: #0971d8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
  .thankyou__header {
    margin-bottom: 80px;

    font-size: 40px;
    line-height: 40px;
  }
}

@media screen and (max-width: 374px) {
  .thankyou__header {
    margin-bottom: 60px;
  }
}

.thankyou__wrapper-text {
  margin-top: 0;
  margin-bottom: 48px;

  text-align: center;
  color: #000000;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
  .thankyou__wrapper-text {
    margin-bottom: 32px;

    text-align: left;
  }
}

.thankyou__text {
  margin: 0;
}

@media screen and (max-width: 768px) {
  .thankyou__text {
    margin-bottom: 20px;
  }
}

.book-block__header,
.book-block__small {
  margin-bottom: 20px;

  text-transform: uppercase;
}

.book-block__small {
  display: block;

  font-size: 14px;

  opacity: 0.3;
}

.book-block__header {
  margin-top: 0;

  font-weight: 800;
  font-size: 29px;
  line-height: 36px;
  color: #0971d8;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
  .book-block__header {
    margin-bottom: 27px;

    font-size: 23px;
    line-height: 30px;
  }
}

@media screen and (max-width: 374px) {
  .book-block__header {
    margin-bottom: 14px;

    font-size: 20px;
    line-height: 28px;
  }
}

.book-block__wrapper {
  margin-bottom: 68px;
}

@media screen and (max-width: 1000px) {
  .book-block__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .book-block__wrapper {
    margin-bottom: 28px;
  }
}

@media screen and (max-width: 374px) {
  .book-block__wrapper {
    margin-bottom: 14px;
  }
}

.book-block__wrapper-img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.book-block__wrapper-img.__mobile {
  margin-right: -20px;
  margin-left: auto;
}

.book-block__text {
  margin: 0;

  font-size: 15px;
  line-height: 1.3;
  color: #444444;
}

@media screen and (max-width: 1000px) {
  .book-block__text {
    -ms-flex-preferred-size: 60%;
    flex-basis: 60%;
  }
}

.book-block__form {
  max-width: 520px;
  margin-left: 40px;
}

@media screen and (max-width: 1000px) {
  .book-block__form {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    margin-left: 0;
  }
}

.alert-text {
  display: block;
  height: 15px;
  padding-top: 10px;

  color: red;
}

.book-block__input {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin-bottom: 24px;
  padding: 16px 24px;

  font-size: 18px;

  border: 1px solid rgba(0, 0, 0, 0.302);
  border-radius: 4px;
}

.book-block__input:active,
.book-block__input:focus,
.book-block__input:hover {
  border: 1px solid #0971d84d;
  outline: 0;
}

.book-block__input:active::-webkit-input-placeholder,
.book-block__input:focus::-webkit-input-placeholder,
.book-block__input:hover::-webkit-input-placeholder {
  color: #0971d84d;
}

.book-block__input:active::-moz-placeholder,
.book-block__input:focus::-moz-placeholder,
.book-block__input:hover::-moz-placeholder {
  color: #0971d84d;
}

.book-block__input:active:-ms-input-placeholder,
.book-block__input:active::-ms-input-placeholder,
.book-block__input:focus:-ms-input-placeholder,
.book-block__input:focus::-ms-input-placeholder,
.book-block__input:hover:-ms-input-placeholder,
.book-block__input:hover::-ms-input-placeholder {
  color: #0971d84d;
}

.book-block__input:active::placeholder,
.book-block__input:focus::placeholder,
.book-block__input:hover::placeholder {
  color: #0971d84d;
}

.book-block__input::-webkit-input-placeholder {
  font-size: 18px;
  line-height: 22px;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #000000;
  letter-spacing: 0.02em;
}

.book-block__input::-moz-placeholder {
  font-size: 18px;
  line-height: 22px;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #000000;
  letter-spacing: 0.02em;
}

.book-block__input:-ms-input-placeholder,
.book-block__input::-ms-input-placeholder {
  font-size: 18px;
  line-height: 22px;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #000000;
  letter-spacing: 0.02em;
}

.book-block__input::placeholder {
  font-size: 18px;
  line-height: 22px;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #000000;
  letter-spacing: 0.02em;
}

.form-checkbox {
  position: relative;

  margin-bottom: 48px;
  padding-left: 40px;

  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.form-checkbox__text {
  font-size: 14px;
  line-height: 130%;
  color: #000000;
  letter-spacing: 0.02em;
}

.form-checkbox__label {
  position: absolute;
  top: 0;
  left: 0;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 24px;
  height: 24px;
  margin-right: 16px;

  cursor: pointer;
}

.form-checkbox__label::before {
  content: "";

  display: block;
  width: 24px;
  height: 24px;

  border: 2px solid rgba(9, 113, 216, 0.3);
  border-radius: 4px;
}

@media screen and (max-width: 374px) {
  .form-checkbox {
    margin-bottom: 28px;
  }
}

.form-checkbox__label:focus::before {
  background: red;
}

.form-checkbox__input:checked + .form-checkbox__label::before {
  background-image: url(../img/check.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 13px;
}

.base__btn {
  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;
  min-width: 300px;
  padding: 18px;

  font-weight: 600;
  font-size: 18px;
  line-height: 18px;
  font-family: "Montserrat", "Arial", sans-serif;
  color: #ffffff;

  background-color: #0971d8;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.base__btn.__link {
  text-decoration: none;
}

.base__btn:hover {
  opacity: 0.7;
}

.base__btn:focus {
  outline: 0;
  opacity: 0.7;
}

.base__btn:active {
  opacity: 1;
}

.base__btn:disabled {
  background-color: gray;
}

@media screen and (max-width: 768px) {
  .base__btn {
    width: 100%;
  }
}

.book-block__img {
  -ms-flex-preferred-size: 40%;
  flex-basis: 40%;
}

@media screen and (max-width: 1000px) {
  .book-block__img {
    margin-bottom: 40px;
  }
}

.book-block__img.__desctop {
  display: none;
}

@media screen and (min-width: 768px) {
  .book-block__img.__desctop {
    display: block;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    width: 630px;
  }
}

.book-block__img.__mobile {
  display: block;
  -ms-flex-preferred-size: auto;
  flex-basis: auto;
  width: 171px;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .book-block__img.__mobile {
    display: none;
  }
}

.footer {
  margin-top: 58px;
  padding-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .footer {
    padding-bottom: 24px;
  }
}

@media screen and (max-width: 374px) {
  .footer {
    margin-top: 28px;
  }
}

.footer__icon {
  display: block;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
}

.footer__text {
  display: block;
  margin: 0;

  text-align: center;
}

.iti {
  width: 100%;
  margin-bottom: 24px;
}
.iti__flag {
  background-image: url("../img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("../img/flags@2x.png");
  }
}
