main {
  overflow-x: hidden;
}

.contact {
  margin-top: 142px;
  position: relative;
  padding-bottom: 90px;
  width: 100%;
}

.contact .contact__image {
  position: absolute;
  right: -70px;
  top: 0;
  bottom: 20px;
  z-index: -2;
  overflow: hidden;
}

.contact span {
  color: #364954;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact .primary {
  margin-bottom: 72px;
}

.contact__form {
  position: relative;
  max-width: 720px;
  padding-top: 60px;
}

.contact__form .accent__button {
  border: none;
  outline: none;
  width: 420px;
  -webkit-appearance: none;
}

input[type="text"] {
  font-size: 24px;
  line-height: 36px;
  width: 420px;
  color: #364954;
  padding: 12px 32px;
  background: #ffffff;
  border: 1px solid #99aebb;
  border-radius: 60px;
  margin-bottom: 32px;
  font-family: Montserrat;
  box-sizing: border-box;
  outline: none;
}

input[type="text"]:nth-last-child(3) {
  margin-bottom: 0;
}

input[type="text"]::-webkit-input-placeholder {
  color: #99aebb;
}

input[type="text"]::-moz-placeholder {
  color: #99aebb;
}

input[type="text"]:-ms-input-placeholder {
  color: #99aebb;
}

input[type="text"]::-ms-input-placeholder {
  color: #99aebb;
}

input[type="text"]::placeholder {
  color: #99aebb;
}

.image__sub {
  position: absolute;
  bottom: 30px;
  right: 42px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}

.image__sub img {
  display: block;
  margin-left: 20px;
}

#error {
  position: absolute;
  bottom: 125px;
  left: 32px;
  font-size: 20px;
  color: #f35151;
}

.mob {
  display: none;
}

@media screen and (max-width: 1439px) {
  .contact .contact__image {
    right: auto;
    left: 40%;
  }

  .contact__form h2,
  .contact__form .primary {
    width: 80%;
  }

  input[type="text"] {
    width: 300px;
    height: 50px;
    font-size: 18px;
    line-height: 25px;
  }

  .contact__form .accent__button {
    width: 300px;
    font-size: 18px;
    height: 50px;
  }

  #error {
    bottom: 97px;
    left: 32px;
    font-size: 18px;
  }

  .image__sub {
    font-size: 18px;
  }
}

@media screen and (max-width: 800px) {
  .image__sub.deskt {
    display: none;
  }

  .image__sub.mob {
    display: -webkit-box;
    display: flex;
  }

  .image__sub {
    bottom: -60px;
    right: -20px;
    left: -20px;
    width: auto !important;
    -webkit-box-pack: center;
    justify-content: center;
    font-size: 15px !important;
    margin-bottom: 0 !important;
  }

  .image__sub img {
    margin-left: 10px;
    width: 25px;
    height: 25px;
  }
}

@media screen and (max-width: 480px) {
  .contact {
    margin-top: 100px;
  }

  .contact__form h2,
  .contact__form .primary {
    width: 100%;
  }

  .contact .contact__image {
    top: 40px;
    left: 120px;
    right: -90px;
  }

  .contact .contact__image img {
    width: 100%;
  }

  .contact__form {
    padding-top: 10px;
    width: 100%;
  }

  .contact__form .primary {
    width: 60%;
  }

  input[type="text"] {
    width: 100%;
    height: 50px;
    font-size: 18px;
    line-height: 25px;
  }

  .contact__form .accent__button {
    margin-top: 35px;
    width: 100%;
  }

  #error {
    bottom: 72px;
    left: 0;
    right: 0;
    text-align: center;
  }
}

@media screen and (max-width: 380px) {
  .contact .contact__image img {
    width: 110%;
    margin-top: 40px;
  }
}
