html[data-theme] body.contact-page {
  background: var(--paper);
}

.contact-page main {
  padding-top: var(--header-height);
}

.contact-hero {
  padding: 24px 0 0;
}

.contact-hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.contact-hero-frame > img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 10%;
}

.contact-hero-frame::after {
  position: absolute;
  inset: 48% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.82));
}

.contact-hero-copy {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 26px;
  left: 32px;
}

.contact-hero-copy .eyebrow {
  margin: 0 0 10px;
  color: #f5d38b;
}

.contact-hero-copy h1 {
  margin: 0;
  color: #fff8eb;
  font-size: 48px;
  line-height: 1.12;
}

html[data-theme] .contact-page .contact-hero-copy h1 {
  color: #fff8eb;
}

html[data-theme] .contact-page .contact-hero-copy .eyebrow {
  color: #f5d38b;
}

.contact-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}

.contact-intro > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.contact-service-section {
  border-top: 1px solid var(--line);
  padding-block: 56px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.contact-section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.contact-section-heading h2 {
  margin: 12px 0 16px;
  font-size: 32px;
  line-height: 1.25;
}

.contact-section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.contact-provider {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--surface-strong);
  color: var(--ink);
}

.contact-provider-role {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}

.contact-provider h3 {
  min-height: 2.5em;
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
}

.contact-provider-data {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.contact-provider-data > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.contact-provider-data dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.contact-provider-data > div:first-child {
  min-height: 48px;
}

.contact-provider-data dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-register-link {
  align-self: start;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 4px;
}

.contact-provider-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-provider-phone {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-provider-actions .btn {
  min-height: 48px;
  margin: 0;
  padding: 12px 20px;
  font-size: 15px;
}

.contact-page main a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.contact-shortcuts a:hover,
.contact-register-link:hover,
.contact-provider-phone:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 960px) {
  .contact-intro {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .contact-provider {
    padding: 24px;
  }

  .contact-provider-data > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .contact-hero {
    padding-top: 16px;
  }

  .contact-hero-frame > img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  .contact-hero-copy {
    right: 20px;
    bottom: 18px;
    left: 20px;
  }

  .contact-hero-copy .eyebrow {
    font-size: 11px;
  }

  .contact-hero-copy h1 {
    font-size: 34px;
  }

  .contact-service-section {
    padding-block: 36px;
  }

  .contact-section-heading h2 {
    font-size: 27px;
  }

  .contact-provider-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-provider h3 {
    min-height: 0;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .contact-provider-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
}
