.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(210px, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 900px;
  padding-bottom: clamp(28px, 6vw, 64px);
}

.contact-form-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-form-heading {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 23px;
}

.contact-mark {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--peach);
  color: #9f3c1d;
}

.contact-mark .icon { width: 21px; height: 21px; }
.contact-form-heading h2 { font-size: clamp(22px, 3vw, 29px); line-height: 1.14; }
.contact-form-heading p { margin-top: 8px; font-size: 14px; line-height: 1.65; }

.contact-form {
  display: grid;
  gap: 17px;
  scroll-margin-top: 110px;
}

.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { display: grid; min-width: 0; gap: 6px; align-content: start; }
.contact-field label { font-size: 13px; font-weight: 650; color: var(--ink); }
.contact-required { color: #963b20; }
.contact-required-note { font-size: 12px; color: #56614f; }

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bfc7b6;
  border-radius: 9px;
  background: #fbfcf9;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  scroll-margin-top: 110px;
}

.contact-field textarea { min-height: 122px; resize: vertical; }
.contact-field textarea::placeholder { color: #677061; opacity: 1; }
.contact-field [aria-invalid=true] { border-color: #a3472f; background: #fff8f4; }
.contact-field-error { color: #922f20; font-size: 12px; line-height: 1.5; }

.contact-form-actions {
  display: grid;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#contact-challenge { display: grid; gap: 7px; min-width: 0; max-width: 410px; }
#contact-challenge-widget { width: 100%; }
#contact-challenge-status, #contact-challenge noscript { font-size: 13px; line-height: 1.5; }
#contact-challenge-retry { justify-self: start; min-height: 44px; font-size: 13px; text-align: left; }
#contact-challenge [hidden] { display: none; }
.contact-send { display: grid; gap: 9px; justify-items: start; }
.contact-send .button:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.contact-privacy { font-size: 12px; color: #56614f; }

.contact-feedback {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 10px;
  scroll-margin-top: 110px;
}

.contact-feedback p { color: inherit; font-size: 14px; line-height: 1.55; }
.contact-feedback .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.contact-feedback ul { margin: 8px 0 0; padding-inline-start: 19px; font-size: 13px; }
.contact-feedback a { text-decoration: underline; text-underline-offset: 2px; }
.contact-feedback.is-success { background: #eef5e8; border-color: #d0dfc3; color: #324d2b; }
.contact-feedback.is-error { background: #fff0e8; border-color: #edcdbd; color: #8a3020; }

.contact-aside { display: grid; gap: 12px; min-width: 0; }
.contact-address, .contact-resource {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.contact-address { display: grid; gap: 3px; background: #f2f4ea; }
.contact-address span, .contact-resource small { color: #56614f; font-size: 12px; line-height: 1.55; }
.contact-address strong { color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }

.contact-resource {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.contact-resource:hover { background: #f6f7f1; border-color: #a9b59d; }
.contact-resource span { display: grid; gap: 5px; }
.contact-resource strong { color: var(--ink); font-size: 14px; line-height: 1.4; }
.contact-resource .icon { width: 17px; height: 17px; color: #963b20; }

@media (max-width: 760px) {
  .contact-section { grid-template-columns: 1fr; max-width: calc(100% - 32px); gap: 14px; }
  .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-address { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .contact-fields, .contact-aside { grid-template-columns: 1fr; gap: 12px; }
  .contact-form-card { padding: 18px; border-radius: 14px; }
  .contact-form-heading { gap: 10px; }
  .contact-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .contact-send .button { width: 100%; }
}
