.contact-page {
  --contact-paper: #faf9f6;
  --contact-ink: #191714;
  --contact-muted: #625d57;
  --contact-card: #fffdf8;
  --contact-line: #e4e0d8;
  --contact-control-line: #938c82;
  --contact-focus: #3157e7;
  --contact-safety: #f5ede2;
  --text: var(--contact-ink);
  margin: 0;
  padding: 0;
  background: var(--contact-paper);
}

:is(:root[data-theme="dark"], html.dark) .contact-page {
  --contact-paper: #25212a;
  --contact-ink: #f8f2ea;
  --contact-muted: #d6cdd4;
  --contact-card: #302a35;
  --contact-line: #504958;
  --contact-control-line: #827689;
  --contact-focus: #a9b8ff;
  --contact-safety: #3d3037;
}

.contact-page #__next {
  top: 8px;
  left: 10px;
  width: calc(100% - 20px);
  border-radius: 16px;
}

.contact-page .ws-nav { min-height: 72px; box-sizing: border-box; }
.contact-page .ws-left { min-width: 0; }
.contact-page .ws-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  min-width: 0;
  font: 700 clamp(15px, 2vw, 27px)/1.1 "Avenir Next", Inter, system-ui, sans-serif;
  text-decoration: none;
}
.contact-page .ws-logo img { flex: none; width: clamp(40px, 4.5vw, 58px); height: auto; margin: 0; }
.contact-page .progress-container { overflow: hidden; border-radius: 0 0 16px 16px; background: transparent; }

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 62px);
  width: min(87.5%, 1300px);
  margin: 0 auto;
  padding: calc(var(--header-offset) + clamp(32px, 4vw, 64px)) 0 clamp(52px, 6vw, 88px);
  color: var(--contact-ink);
  font: 500 18px/1.5 "Avenir Next", Inter, system-ui, sans-serif;
}

.contact-shell :is(h1, h2, p) {
  margin: 0;
  color: inherit;
  font-family: inherit;
  hyphens: none;
}

.contact-shell :is(h1, h2) {
  text-align: left;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.contact-shell h1 { font-size: clamp(42px, 5.1vw, 75px); text-wrap: balance; }
.contact-shell h2 { font-size: clamp(26px, 2.5vw, 36px); }
.contact-hero { padding-top: clamp(8px, 2.5vw, 36px); }

.contact-hero .contact-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 1.6vw, 23px);
  font-size: clamp(20px, 2.1vw, 31px);
  font-weight: 700;
  line-height: 1.25;
}

.contact-brand img { flex: none; width: clamp(41px, 3.9vw, 57px); height: auto; margin: 0; }

.contact-hero .contact-lede {
  max-width: 36ch;
  margin-top: clamp(18px, 1.8vw, 25px);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.4;
}

.contact-hero .contact-followup {
  --text: var(--contact-muted);
  max-width: 40ch;
  margin-top: 16px;
}

.contact-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: clamp(20px, 2.1vw, 30px);
  color: var(--contact-muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.contact-shell .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--contact-ink);
  font: 700 16px/1.5 "Avenir Next", Inter, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-shell .contact-link:hover { text-decoration-thickness: 2px; }
.contact-actions .contact-link { --link: var(--contact-ink); }
.contact-actions > span { --text: var(--contact-muted); }

.contact-form {
  box-sizing: border-box;
  padding: clamp(20px, 2.4vw, 35px);
  border: 1px solid var(--contact-line);
  border-radius: 26px;
  background: var(--contact-card);
}

.contact-form-head { margin-bottom: 23px; }
.contact-form-head p { --text: var(--contact-muted); margin-top: 9px; font-size: 16px; }

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

.contact-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label { color: var(--contact-ink); font-size: 15px; font-weight: 700; }

.contact-field :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--contact-control-line);
  border-radius: 10px;
  background: var(--contact-paper);
  color: var(--contact-ink);
  font: 500 16px/1.4 "Avenir Next", Inter, system-ui, sans-serif;
}

.contact-field :is(input, textarea)::placeholder { color: var(--contact-muted); opacity: 1; }
.contact-field textarea { min-height: 110px; resize: vertical; }

:is(:root[data-theme="dark"], html.dark) .contact-field :is(input, select, textarea) { color-scheme: dark; }

.contact-shell :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--contact-focus);
  outline-offset: 3px;
}

.contact-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 22px;
}
.contact-form-foot p { --text: var(--contact-muted); flex: 1 1 200px; font-size: 14px; }

.contact-button {
  --text: var(--contact-paper);
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--contact-ink);
  border-radius: 10px;
  background: var(--contact-ink);
  color: var(--contact-paper);
  font: 800 16px/1.35 "Avenir Next", Inter, system-ui, sans-serif;
  cursor: pointer;
}
.contact-button:is(:hover, :focus) { background: var(--contact-ink); }
.contact-button:hover { opacity: .86; }

.contact-emergency {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(17px, 2vw, 25px);
  border: 1px solid var(--contact-line);
  border-radius: 20px;
  background: var(--contact-safety);
}
.contact-emergency > svg { flex: none; width: 24px; height: 24px; }
.contact-emergency > div { flex: 1; min-width: 0; }
.contact-emergency h2 { font-size: 19px; letter-spacing: -.02em; }
.contact-emergency p { --text: var(--contact-muted); max-width: 76ch; margin-top: 6px; font-size: 15px; }
.contact-emergency .contact-link { flex: none; align-self: center; }

@media (max-width: 880px) {
  .contact-shell {
    width: min(calc(100% - 40px), 680px);
    grid-template-columns: minmax(0, 1fr);
    padding-top: calc(var(--header-offset) + 28px);
  }
  .contact-hero { padding-top: 0; }
  .contact-shell h1 { text-wrap: wrap; }
}

@media (max-width: 768px) {
  .contact-page .ws-nav { min-height: 64px; }
  .contact-page .header.menu-open .ws-center.header__links { top: 100%; border-radius: 0 0 16px 16px; }
}

@media (max-width: 540px) {
  .contact-shell { width: calc(100% - 32px); }
  .contact-form { border-radius: 20px; }
  .contact-form-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form-foot { flex-direction: column; align-items: stretch; }
  .contact-form-foot p { flex: auto; }
  .contact-emergency { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .contact-emergency .contact-link { grid-column: 2; justify-self: start; }
}

.contact-privacy {
  margin-top: 17px;
  font-size: 14px;
  --text: var(--contact-muted);
}

.contact-privacy p + p { margin-top: 8px; }
.contact-privacy a { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

.partnership-illustration {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0;
  border-radius: 22px;
}

:is(:root[data-theme="dark"], html.dark) .partnership-illustration {
  background: #faf9f6;
}
