.p-contact-page {
  background-color: #ece8df;
  padding: 170px 20px 60px;
}

.p-contact-page__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.p-contact-page__heading {
  text-align: center;
  margin-bottom: 60px;
}

.p-contact-page__en {
  margin: 0 0 20px;
  font-family: "Oldenburg", serif;
  font-size: 36px;
  line-height: 1.2;
}

.p-contact-page__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.p-contact-page__form {
  max-width: 1000px;
  margin: 0 auto;
}

.wpcf7 {
  width: 100%;
}

.contact-form__item {
  display: grid;
  grid-template-columns: 300px 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.contact-form__label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
  font-size: 20px;
}

.contact-form__required,
.contact-form__optional {
  display: inline-block;
  min-width: 44px;
  padding: 5px 6px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
}

.contact-form__required {
  border: 1px solid #e98074;
  color: #e98074;
}

.contact-form__optional {
  border: 1px solid #333333;
  color: #333333;
}

.contact-form__field {
  width: 100%;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #d0cdc5;
  border-radius: 4px;
  background-color: #ffffff;
  font-size: 16px;
}

.contact-form__item--message {
  display: block;
  margin-top: 50px;
}

.contact-form__item--message .contact-form__label {
  margin-bottom: 18px;
}

.contact-form textarea {
  min-height: 210px;
  resize: vertical;
}

.contact-form__note {
  margin: 90px 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.contact-form__note span {
  display: block;
}

.contact-form__submit {
  text-align: center;
}

.wpcf7 input[type=submit] {
  width: 270px;
  padding: 20px 60px 20px 20px;
  border: none;
  border-radius: 10px;
  background-color: #2a4c5c;
  background-image: url("../img/pages/contact/paw.png");
  background-repeat: no-repeat;
  background-position: right 25px center;
  background-size: 50px auto;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: background-color 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.wpcf7 input[type=submit]:hover {
  background-color: #e98074;
  opacity: 0.85;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 5px 6px 8px rgba(0, 0, 0, 0.2);
          box-shadow: 5px 6px 8px rgba(0, 0, 0, 0.2);
}

.p-contact-page__form {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.p-contact-page__bottom {
  position: relative;
  width: 270px;
  margin: 20px auto 0;
}

.p-contact-page__dog {
  position: absolute;
  right: calc(100% + 30px);
  bottom: 0;
  width: 200px;
  height: auto;
}

@media screen and (max-width: 767px) {
  .p-contact-page {
    padding: 110px 18px 50px;
  }
  .p-contact-page__inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  .p-contact-page__heading {
    margin-bottom: 40px;
    text-align: center;
  }
  .p-contact-page__en {
    margin-bottom: 15px;
    font-size: 24px;
  }
  .p-contact-page__lead {
    font-size: 13px;
    line-height: 1.8;
  }
  .p-contact-page__lead br {
    display: none;
  }
  .p-contact-page__form {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  .contact-form__item {
    display: block;
    margin-bottom: 28px;
  }
  .contact-form__label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
  }
  .contact-form__required,
  .contact-form__optional {
    min-width: 40px;
    padding: 4px 5px;
    font-size: 11px;
  }
  .contact-form__field {
    width: 100%;
  }
  .contact-form input[type=text],
  .contact-form input[type=email],
  .contact-form textarea {
    width: 100%;
    padding: 11px 12px;
    font-size: 16px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  .contact-form__item--message {
    display: block;
    margin-top: 35px;
    margin-bottom: 30px;
  }
  .contact-form__item--message .contact-form__label {
    margin-bottom: 10px;
  }
  .contact-form textarea {
    min-height: 170px;
  }
  .contact-form__note {
    margin: 50px 0 20px;
    font-size: 12px;
    line-height: 1.7;
  }
  .contact-form__submit {
    text-align: center;
  }
  .wpcf7 input[type=submit] {
    display: block;
    width: min(100%, 250px);
    margin: 0 auto;
    padding: 16px 55px;
    background-position: right 20px center;
    background-size: 38px auto;
    font-size: 14px;
  }
  .p-contact-page__bottom {
    position: relative;
    width: 100%;
    margin: 30px auto 0;
    text-align: center;
  }
  .p-contact-page__dog {
    position: static;
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto;
    right: auto;
    bottom: 10px;
  }
}
.contact-form__submit {
  position: relative;
}
.contact-form__submit::before {
  content: "";
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background-image: url("../img/pages/contact/contact-dog.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  position: relative;
  top: 20px;
  z-index: 2;
}

.wpcf7 input[type=submit] {
  position: relative;
  z-index: 1;
}

.p-contact-page__bottom {
  display: none;
}