.contacts-wrapper > .wp-block-group__inner-container {
  width: 100%;
  max-width: 87.5rem;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-inline: 2rem;
}

.contacts-hero {
  position: relative;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contacts-hero__image {
  flex: 0 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacts-hero__image img {
  display: block;
  width: 100%;
  max-width: 25rem;
  height: auto;
}

.contacts-hero__title {
  display: flex;
  align-items: center;
}

.contacts-hero__title h1 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
}

@media (max-width: 1024px) {
  .contacts-wrapper > .wp-block-group__inner-container {
    gap: 2.5rem;
  }
  .contacts-hero {
    padding: 0;
  }

  .contacts-hero__image {
    display: none;
  }
}

@media (max-width: 667px) {
  .contacts-wrapper > .wp-block-group__inner-container {
    gap: 2rem;
    padding: 0;
  }

  .contacts-hero__title {
    padding-left: 2rem;
  }

  .contacts-hero__title h1 {
    font-size: 32px;
    line-height: 41px;
  }
}

.contacts-info {
  display: flex;
  flex-direction: row;
  color: black;
  justify-content: space-between;
  align-items: stretch;
  background: linear-gradient(180deg, #e6e6e6 0%, #ffffff 100%);
  border-radius: 25px;
  padding: 24px;
}

.contacts-info__card > .wp-block-group {
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.contacts-info__title {
  display: none;
}

.contacts-field-address {
  white-space: pre-line;
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;
  text-transform: capitalize;
}

.contacts-info__tel a {
  font-weight: 500;
  font-size: 40px;
  line-height: 51px;
  color: black;

  text-transform: uppercase;
}

.contacts-info__email {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.contacts-info__email a {
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;

  text-transform: lowercase;
  color: black;

  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contacts-info__email a::after {
  content: "";
  margin-right: 0.5rem;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: url("../icons/mail.svg") center / contain no-repeat;
}

@media (max-width: 1024px) {
  .contacts-info__card > .wp-block-group {
    justify-content: flex-start;
  }

  .contacts-info__title {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;

    display: flex;
    align-items: center;
  }

  .contacts-info__email a::after {
    display: none;
  }

  .contacts-info__title::before {
    content: "";
    margin-right: 0.5rem;
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .contacts-info__title-address::before {
    background: url("../icons/address.svg") center / contain no-repeat;
  }
  .contacts-info__title-tel::before {
    background: url("../icons/tel.svg") center / contain no-repeat;
  }
  .contacts-info__title-mail::before {
    background: url("../icons/mail.svg") center / contain no-repeat;
  }
  .contacts-field-address,
  .contacts-info__email a,
  .contacts-info__tel a {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 667px) {
  .contacts-info {
    flex-direction: column;
    gap: 2rem;
  }

  .contacts-info__card > .wp-block-group {
    flex-direction: row;
    gap: 1.6rem;
    width: 100%;
  }

  .contacts-info__title {
    display: none;
  }

  .contacts-field-address {
    white-space: normal;
  }

  .contacts-field-address,
  .contacts-info__email a,
  .contacts-info__tel a {
    display: flex;
    align-items: center;
  }

  .contacts-field-address::before,
  .contacts-info__email a::before,
  .contacts-info__tel a::before {
    content: "";
    margin-right: 0.5rem;
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }
  .contacts-field-address::before {
    background: url("../icons/address.svg") center / contain no-repeat;
  }
  .contacts-info__email a::before {
    background: url("../icons/tel.svg") center / contain no-repeat;
  }
  .contacts-info__tel a::before {
    background: url("../icons/mail.svg") center / contain no-repeat;
  }
}

.contacts-leadership__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  text-transform: capitalize;
  padding-bottom: 4.5rem;
}

.contacts-leadership__card {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  margin-bottom: 3rem;
  border-radius: 50px;
  overflow: hidden;
}

.contacts-leadership__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contacts-leadership__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
}

.contacts-leadership__qr {
  position: absolute;
  z-index: 10;
  width: 19%;
  left: 2.5rem;
  bottom: 2.5rem;
}

.contacts-leadership__content {
  position: absolute;
  z-index: 11;
  height: 100%;
  width: 27.5rem;
  right: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.125rem;
}

.contacts-leadership__name {
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  text-transform: capitalize;

  color: #ffffff;
}

.contacts-leadership__position {
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  text-transform: capitalize;

  color: #ffffff;
}

.contacts-leadership__phone a,
.contacts-leadership__emails a {
  font-weight: 400;
  font-size: 32px;
  line-height: 41px;

  color: #ffffff;
}

@media (max-width: 1024px) {
  .contacts-leadership__title {
    padding-bottom: 2.5rem;
  }

  .contacts-leadership__qr {
    width: 15%;
    left: auto;
    right: 2rem;
    bottom: 2rem;
  }

  .contacts-leadership__content {
    position: absolute;
    width: auto;
    height: auto;
    z-index: 11;
    right: 2rem;
    top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.125rem;
  }

  .contacts-leadership__name {
    font-size: 32px;
    line-height: 41px;
  }

  .contacts-leadership__position,
  .contacts-leadership__phone a,
  .contacts-leadership__emails a {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 667px) {
  .contacts-leadership__content {
    max-width: 50%;
  }

  .contacts-leadership__title {
    display: flex;
    padding-left: 1.5rem;
    font-size: 32px;
    line-height: 31px;
  }

  .contacts-leadership__card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.03 / 1;
    margin-bottom: 3rem;
    border-radius: 50px;
    overflow: hidden;
  }

  .contacts-leadership__qr {
    width: 30%;
  }

  .contacts-leadership__content {
    gap: 0.8rem;
  }
}

@media (max-width: 500px) {
  .contacts-leadership__title {
    display: flex;
    padding-left: 1.5rem;
    font-size: 24px;
    line-height: 31px;
  }

  .contacts-leadership__position,
  .contacts-leadership__phone a,
  .contacts-leadership__emails a {
    font-size: 14px;
    line-height: 18px;
  }

  .contacts-leadership__name {
    font-size: 20px;
    line-height: 26px;
  }

  .contacts-leadership__qr {
    display: none;
  }
}

.contacts-form > .wp-block-group__inner-container {
  margin-top: 3rem;
}