.psy-contact {
  position: relative;
  padding: 0 0 20px;
  background: #f4f5ef;
  overflow: hidden;
  border-radius: 30px;
  margin: clamp(2.5rem, 2.0833rem + 1.8519vw, 3.75rem) 0;
}

.psy-contact__container {
  position: relative;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 30px;
}

.psy-contact__top {
  position: relative;
  min-height: 330px;
  padding: 20px;
  overflow: hidden;
  background: #f4f5ef;
  background-image: url("/wp-content/uploads/2026/10/fon-2.png");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position-x: 100%;
}

.psy-contact__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.psy-contact__label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: #4b5553;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.psy-contact__label-line {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #157a52;
}

.psy-contact__title {
  margin: 0 0 12px;
  color: #173d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.psy-contact__description {
  max-width: 610px;
  width: 60%;
  margin-bottom: 24px;
  color: #68716f;
  font-size: 18px;
  line-height: 1.55;
}

.psy-contact__contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}

.psy-contact__social,
.psy-contact__phone {
  display: flex;
  align-items: center;
  gap: 16px;
}

.psy-contact__icon {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9eee4;
}

.psy-contact__icon svg {
  width: 27px;
  height: 27px;
  fill: #087c53;
}

.psy-contact__social-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.psy-contact__social-links a {
  color: #283431;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.psy-contact__social-links a:hover {
  color: #087c53;
}

.psy-contact__divider {
  width: 1px;
  height: 68px;
  background: #d5d9d2;
}

.psy-contact__phone-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.psy-contact__phone-number {
  color: #263330;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.psy-contact__phone-caption {
  color: #929995;
  font-size: 18px;
}

.psy-contact__email {
  color: #087c53;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.psy-contact__form {
  position: relative;
  z-index: 5;
  margin-top: -8px;
  padding: 28px 34px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(35, 48, 43, 0.08);
}

.psy-contact-form {
  width: 100%;
}

.psy-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.psy-contact-form__field {
  min-width: 0;
}

.psy-contact-form__field--full {
  grid-column: 1 / -1;
}

.psy-contact-form__label {
  display: block;
  margin-bottom: 9px;
  color: #5f6865;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.psy-contact-form__input,
.psy-contact-form__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce0dd;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #27312e;
  font-family: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.psy-contact-form__input {
  height: 50px;
  padding: 0 16px;
}

.psy-contact-form__textarea {
  min-height: 80px;
  padding: 14px 16px;
  resize: vertical;
}

.psy-contact-form__input::placeholder,
.psy-contact-form__textarea::placeholder {
  color: #b5bbb8;
}

.psy-contact-form__input:focus,
.psy-contact-form__textarea:focus {
  border-color: #2b8a63;
  box-shadow: 0 0 0 3px rgba(43, 138, 99, 0.08);
}

.psy-contact-form__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 22px;
}
.psy-contact-form__acceptance {
  margin-left: 2px;
}
.psy-contact-form__acceptance input {
  margin-left: 6px;
  width: 30px;
  height: 19px;
}

.psy-contact-form__acceptance .wpcf7-list-item {
  flex-direction: unset;
}

.psy-contact-form__acceptance .wpcf7-list-item {
  margin: 0;
}

.psy-contact-form__acceptance input {
  margin-right: -1px;
}

.psy-contact-form__privacy {
  color: #087c53;
  text-decoration: underline;
}

.psy-contact-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* height: 54px; */
  padding: 0 28px;
  border: 0;
  border-radius: 28px;
  background: #087c53;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.psy-contact-form__button:hover {
  background: #066b47;
  transform: translateY(-1px);
}

.psy-contact-form .wpcf7-spinner {
  position: absolute;
  margin: 0 0 0 10px;
}

.psy-contact-form .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 14px;
}

.psy-contact-form .wpcf7-response-output {
  margin: 15px 0 0;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
}
.wpcf7-acceptance span {
  font-size: 16px;
  color: #000;
}

.psy-contact-form .wpcf7-mailpoetsignup .wpcf7-list-label {
    font-size: 16px !important;
}

@media (max-width: 900px) {
  .psy-contact__top {
    padding: 40px 30px 30px;
  }

  .psy-contact__image {
    right: -150px;
    opacity: 0.35;
  }

  .psy-contact__form {
    padding: 25px;
  }

  .psy-contact-form__grid {
    gap: 20px;
  }
}

@media (max-width: 700px) {


  .psy-contact__container {
    padding: 0 15px;
  }

  .psy-contact__top {
    min-height: auto;
    padding: 30px 10px;
    border-radius: 0 0 20px 20px;
    background-position-y: 100%;
    background-size: 70vh;
  }

  .psy-contact__title {
    font-size: 34px;
  }

  .psy-contact__description {
    font-size: 16px;
  }

  .psy-contact__contacts {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .psy-contact__divider {
    display: none;
  }

  .psy-contact__image {
    top: -30px;
    right: -180px;
    width: 350px;
    height: 300px;
    opacity: 0.3;
  }

  .psy-contact__form {
    margin-top: -15px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .psy-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .psy-contact-form__field--full {
    grid-column: auto;
  }

  .psy-contact-form__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .psy-contact-form__button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .psy-contact__description {
    width: 100%;
  }
}
