.apx-contact-page {
  margin: 0;
  background: #f5f2fa;
  color: var(--apx-ink);
  font-family: var(--apx-font);
}

.apx-contact-page *,
.apx-contact-page *::before,
.apx-contact-page *::after { box-sizing: border-box; }

.apx-contact {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 0 clamp(72px, 9vw, 112px);
}

.apx-contact__intro { text-align: center; }
.apx-contact__eyebrow {
  margin: 0 0 14px;
  color: var(--apx-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.apx-contact__intro h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.apx-contact__intro > p:not(.apx-contact__eyebrow) {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--apx-muted);
  font-size: 16px;
  line-height: 1.7;
}
.apx-contact__card {
  margin-top: 38px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--apx-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--apx-shadow);
}
.apx-contact__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.apx-contact__field { display: grid; align-content: start; gap: 9px; min-width: 0; }
.apx-contact__field--wide { grid-column: 1 / -1; }
.apx-contact__field label { font-size: 14px; font-weight: 700; color: #27202f; }
.apx-contact__field label span { color: var(--apx-purple); }
.apx-contact__field :is(input, select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #d9d2e3;
  border-radius: 12px;
  background: #fff;
  color: var(--apx-ink);
  font: 400 16px/1.5 var(--apx-font);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.apx-contact__field :is(input, select, textarea):focus {
  border-color: var(--apx-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(117, 52, 237, .12);
}
.apx-contact__field select { cursor: pointer; }
.apx-contact__field textarea { min-height: 150px; resize: vertical; }
.apx-contact__field textarea::placeholder { color: #8a8393; }
.apx-contact__hint { margin: 24px 0 15px; color: var(--apx-muted); font-size: 13px; line-height: 1.6; }
.apx-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--apx-purple);
  color: #fff;
  font: 700 15px/1.3 var(--apx-font);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.apx-contact__submit:hover { background: var(--apx-purple-hover); transform: translateY(-2px); }

@media (max-width: 640px) {
  .apx-contact { width: min(100% - 32px, 780px); }
  .apx-contact__card { margin-top: 30px; }
  .apx-contact__fields { grid-template-columns: 1fr; gap: 20px; }
}
