:root {
  --contact-ink: #000000;
  --contact-warm: #f6f2ee;
  --contact-border: #d8d3ce;
  --contact-width: 1200px;
}

.contact-page main {
  color: var(--contact-ink);
  font-family: 'Montserrat', sans-serif;
}

.contact-container {
  width: min(var(--contact-width), calc(100% - 112px));
  margin-inline: auto;
}

.contact-main {
  padding: 72px 0 54px;
  background: var(--contact-warm);
}

.contact-main__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(60px, 8vw, 112px);
}

.contact-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.contact-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 20px;
  background: currentColor;
}

.contact-intro h1 {
  margin: 14px 0 48px;
  font-family: 'Forum', serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
}

.contact-list {
  display: grid;
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e5dfd9;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item > img {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  object-fit: contain;
}

.contact-item h2 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.contact-item p,
.contact-item a,
.contact-item strong {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  text-decoration: none;
}

.contact-item strong {
  display: block;
  font-weight: 600;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 13px;
}

.contact-status:empty {
  display: none;
}

.contact-status p {
  margin: 0 0 5px;
  padding: 13px 15px;
  border: 1px solid #bdb6ae;
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.contact-status a {
  color: inherit;
  font-weight: 600;
}

.contact-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 500;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  display: block;
  border: 1px solid var(--contact-border);
  border-radius: 0;
  color: var(--contact-ink);
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: 14px;
}

.contact-field input {
  min-height: 50px;
  padding: 11px 18px;
}

.contact-field textarea {
  min-height: 125px;
  padding: 14px 18px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid #383838;
  outline-offset: 2px;
}

.contact-field [aria-invalid="true"] {
  border-color: #8d2323;
}

.contact-field__help {
  margin: 0;
  padding: 13px 18px;
  border: 1px solid var(--contact-border);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 1.6;
}

.contact-field__help + textarea {
  border-top-color: #e8e3de;
}

.field-error {
  margin: 5px 0 0;
  color: #7e1f1f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  justify-self: center;
  min-width: 240px;
  min-height: 56px;
  margin-top: 0;
}

.service-area {
  min-height: 375px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
}

.service-area__image {
  width: 100%;
  height: 100%;
  min-height: 375px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.service-area__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 55px clamp(45px, 8vw, 110px);
}

.service-area__content .contact-rule {
  margin-top: 20px;
}

.service-area__content h2 {
  margin: 15px 0 30px;
  font-family: 'Forum', serif;
  font-size: clamp(33px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.18;
}

.service-area__content > p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .contact-container {
    width: min(100% - 48px, var(--contact-width));
  }

  .contact-main__layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-intro {
    max-width: 560px;
  }

  .service-area {
    grid-template-columns: 1fr;
  }

  .service-area__image {
    min-height: 360px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .contact-container {
    width: min(100% - 32px, var(--contact-width));
  }

  .contact-main {
    padding: 54px 0 50px;
  }

  .contact-intro h1 {
    font-size: 34px;
    margin-bottom: 34px;
  }

  .contact-item--experience br,
  .service-area__content br {
    display: none;
  }

  .contact-form__submit {
    width: 100%;
    min-width: 0;
  }

  .service-area__image {
    min-height: 240px;
  }

  .service-area__content {
    padding: 50px 24px 58px;
  }

  .service-area__content h2 {
    font-size: 34px;
  }
}
