.footer-links button {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--brand);
}

.hs-contact-dialog {
  width: min(610px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border, #dfe6ef);
  border-radius: 20px;
  color: var(--navy, #152a49);
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 28px 90px rgba(21, 42, 73, .2);
}

.hs-contact-dialog::backdrop {
  background: rgba(15, 28, 48, .38);
  backdrop-filter: blur(7px);
}

.hs-contact-shell {
  max-height: min(820px, calc(100dvh - 32px));
  overflow: auto;
}

.hs-contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 29px 23px;
  border-bottom: 1px solid var(--border, #dfe6ef);
  background: radial-gradient(circle at 92% 0, rgba(81,56,245,.09), transparent 38%), #fff;
}

.hs-contact-kicker {
  margin: 0 0 7px;
  color: var(--brand, #5138f5);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hs-contact-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.hs-contact-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border, #dfe6ef);
  border-radius: 50%;
  color: var(--navy, #152a49);
  background: #fff;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.hs-contact-close:hover { transform: rotate(5deg); border-color: rgba(81,56,245,.35); color: var(--brand, #5138f5); }
.hs-contact-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hs-contact-form { padding: 25px 29px 29px; }
.hs-field { display: grid; gap: 8px; margin-bottom: 17px; }
.hs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hs-field label { color: var(--navy, #152a49); font-size: .76rem; font-weight: 760; }
.hs-required { color: var(--brand, #5138f5); }

.hs-field input,
.hs-field select,
.hs-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong, #cbd6e4);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
  color: var(--navy, #152a49);
  background: #fff;
  font: inherit;
  font-size: .9rem;
  line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hs-field textarea { min-height: 132px; resize: vertical; }
.hs-field input:focus,
.hs-field select:focus,
.hs-field textarea:focus { border-color: var(--brand, #5138f5); box-shadow: 0 0 0 4px rgba(81,56,245,.1); }
.hs-field-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hs-privacy-note {
  margin: 2px 0 19px;
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--muted, #7890b2);
  background: var(--surface, #f7f9fc);
  font-size: .73rem;
  line-height: 1.5;
}

.hs-contact-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.hs-contact-status { min-height: 21px; margin: 0; color: var(--muted, #7890b2); font-size: .77rem; line-height: 1.4; }
.hs-contact-status[data-state="success"] { color: #07866d; }
.hs-contact-status[data-state="error"] { color: #b33a55; }

.hs-contact-send {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 12px 18px;
  border: 1px solid var(--brand, #5138f5);
  border-radius: 9px;
  color: #fff;
  background: var(--brand, #5138f5);
  font: inherit;
  font-size: .82rem;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(81,56,245,.2);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.hs-contact-send:hover { transform: translateY(-1px); background: var(--brand-strong, #4428ed); box-shadow: 0 11px 26px rgba(81,56,245,.25); }
.hs-contact-send:disabled { cursor: wait; opacity: .62; transform: none; }
body.hs-dialog-open { overflow: hidden; }

@media (max-width: 560px) {
  .hs-contact-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .hs-contact-shell { max-height: calc(100dvh - 20px); }
  .hs-contact-head { padding: 22px 20px 19px; }
  .hs-contact-form { padding: 21px 20px 24px; }
  .hs-field-row { grid-template-columns: 1fr; gap: 0; }
  .hs-contact-actions { align-items: stretch; flex-direction: column; }
  .hs-contact-send { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-contact-close,
  .hs-contact-send { transition: none; }
}
