.contact-main {
  display: grid;
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 80px;
  gap: 24px;
}

html[data-variant-theme="017"] main.contact-main {
  width: min(760px, calc(100% - 32px));
}

.contact-intro {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.contact-intro h1,
.contact-intro p,
.contact-card h2,
.contact-card p {
  margin: 0;
}

.contact-intro h1 {
  max-width: 16ch;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.02;
}

.contact-intro p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.contact-card {
  display: grid;
  min-width: 0;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-card-heading {
  display: grid;
  gap: 7px;
}

.contact-card-heading h2 {
  font-size: 23px;
  line-height: 1.2;
}

.contact-card-heading p,
.contact-helper,
.contact-counter {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

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

.contact-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-field input,
.contact-field select {
  min-height: 46px;
}

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

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--shadow-focus);
}

.contact-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.contact-field-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.contact-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.contact-counter {
  margin-left: auto;
  white-space: nowrap;
}

.contact-status[hidden],
.contact-turnstile[hidden] {
  display: none;
}

.contact-privacy-link {
  color: var(--brand);
  font-weight: 700;
}

.contact-status {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.contact-status.is-success {
  border-color: rgba(22, 138, 85, .45);
  background: rgba(22, 138, 85, .10);
}

.contact-status.is-error {
  border-color: rgba(232, 8, 8, .45);
  background: rgba(232, 8, 8, .08);
}

.contact-turnstile {
  min-height: 65px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-actions .button {
  cursor: pointer;
}

.contact-actions .button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none;
}

.contact-website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .contact-main {
    width: min(100% - 24px, 760px);
    padding: 38px 0 56px;
    gap: 18px;
  }

  html[data-variant-theme="017"] main.contact-main {
    width: min(100% - 24px, 760px);
  }

  .contact-intro h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .contact-card {
    gap: 19px;
    border-radius: 13px;
    padding: 21px;
  }

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

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .contact-message-meta {
    align-items: flex-start;
  }
}
