.contact-dialog {
  width: min(900px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  border-top: 6px solid var(--acid);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 100px #0006;
  overflow: auto;
}
.contact-dialog::backdrop { background: #11160de6; backdrop-filter: blur(8px); }
.contact-dialog * { box-sizing: border-box; }
.contact-dialog__shell { padding: clamp(24px, 4vw, 52px); }
.contact-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.contact-dialog__eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-dialog h2 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.contact-dialog h2 span { color: var(--acid); }
.contact-dialog__close { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 29px; font-weight: 300; line-height: 1; }
.contact-dialog__context { display: flex; align-items: center; gap: 12px; margin: 34px 0 30px; padding: 12px 0; border-block: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.contact-dialog__context span { color: var(--muted); }
.contact-dialog__context strong { font-weight: 550; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.contact-form label { display: grid; gap: 9px; font-size: 13px; }
.contact-form label:nth-of-type(3) { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea { width: 100%; border: 1px solid #9da194; border-radius: 0; background: #fff; color: var(--ink); padding: 14px 15px; font: inherit; font-size: 16px; line-height: 1.45; }
.contact-form textarea { resize: vertical; min-height: 145px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid var(--acid); outline-offset: 1px; border-color: var(--ink); }
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form__footer { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.contact-form__footer p { max-width: 470px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.contact-form__footer a { text-decoration: underline; text-underline-offset: 2px; }
.contact-form__submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 220px; min-height: 56px; padding: 15px 20px; background: var(--ink); color: var(--acid); font-size: 15px; }
.contact-form__submit:disabled { opacity: .55; cursor: wait; }
.contact-form__status { grid-column: 1 / -1; min-height: 1.5em; color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-form__status.is-success { color: #355500; }
.contact-form__status.is-error { color: #8b2635; }
.contact-dialog :focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@media (hover: hover) {
  .contact-dialog__close:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
  .contact-form__submit:hover { background: var(--violet); color: #fff; }
}
@media (max-width: 700px) {
  .contact-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .contact-dialog__shell { padding: 23px 17px 19px; }
  .contact-dialog h2 { font-size: clamp(38px, 11vw, 56px); }
  .contact-dialog__close { width: 44px; height: 44px; }
  .contact-dialog__context { margin: 25px 0 22px; align-items: flex-start; }
  .contact-form { grid-template-columns: 1fr; gap: 19px; }
  .contact-form label:nth-of-type(3), .contact-form__footer, .contact-form__status { grid-column: 1; }
  .contact-form__footer { align-items: stretch; flex-direction: column; }
  .contact-form__submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog::backdrop { backdrop-filter: none; }
}
