.contact-page {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  padding: 32px 0 52px;
  color: #0d3566;
  box-sizing: border-box;
}

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

.contact-page__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.contact-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #b97200;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.contact-page__eyebrow::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: #e99912;
}

.contact-page h1 {
  margin: 0;
  color: #0d3566;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.contact-page__lead {
  max-width: 690px;
  margin: 10px 0 0;
  color: #52657a;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-page__primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 30px;
  border-block: 1px solid #dbe5f0;
  background: #dbe5f0;
}

.contact-primary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
}

.contact-primary-item__icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f7fb;
  color: #0d3566;
  font-size: .9rem;
}

.contact-primary-item__label,
.contact-detail__label {
  display: block;
  margin-bottom: 2px;
  color: #52657a;
  font-size: .74rem;
  line-height: 1.3;
}

.contact-primary-item__value {
  display: block;
  min-width: 0;
  color: #0d3566;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #dbe5f0;
  border-bottom: 1px solid #dbe5f0;
}

.contact-location {
  min-width: 0;
  padding: 24px 26px 22px;
}

.contact-location + .contact-location {
  border-left: 1px solid #dbe5f0;
}

.contact-location__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-location__marker {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border: 1px solid #e99912;
  border-radius: 50%;
  color: #b97200;
  font-size: .78rem;
  font-weight: 800;
}

.contact-location h2 {
  margin: 0;
  color: #0d3566;
  font-size: 1.03rem;
  line-height: 1.35;
}

.contact-location__head p {
  margin: 4px 0 0;
  color: #52657a;
  font-size: .88rem;
  line-height: 1.4;
}

.contact-location__details {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, .75fr);
  gap: 20px;
  margin-bottom: 20px;
}

.contact-detail {
  min-width: 0;
  color: #0d3566;
  line-height: 1.5;
}

.contact-detail strong,
.contact-phone {
  display: block;
  color: #0d3566;
  font-weight: 700;
  text-decoration: none;
}

.contact-hours {
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.contact-hours h3 {
  margin: 0 0 8px;
  color: #0d3566;
  font-size: .88rem;
}

.contact-hours dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.contact-hours dl > div {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr;
  gap: 12px;
  color: #5f7187;
  font-size: .84rem;
  line-height: 1.4;
}

.contact-hours dt,
.contact-hours dd {
  margin: 0;
}

.contact-hours dd {
  color: #0d3566;
  font-weight: 600;
}

.contact-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #0d3566;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 3px;
}

.contact-route:hover,
.contact-route:focus-visible {
  color: #b97200;
  text-decoration: underline;
}

.contact-route:focus-visible {
  outline: 2px solid #e99912;
  outline-offset: 4px;
  border-radius: 2px;
}

.contact-page__map-note {
  margin: 14px 0 0;
  color: #7b8b9d;
  font-size: .78rem;
  line-height: 1.45;
}

.contact-data-mobile {
  display: none;
}

@media (max-width: 980px) {
  .contact-page {
    width: min(100% - 32px, 1160px);
    padding-top: 26px;
  }

  .contact-location {
    padding-inline: 20px;
  }

  .contact-location__details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .contact-page {
    width: calc(100% - 28px);
    padding: 22px 0 40px;
  }

  .contact-page__header {
    margin-bottom: 20px;
  }

  .contact-page__primary,
  .contact-locations {
    grid-template-columns: 1fr;
  }

  .contact-primary-item + .contact-primary-item {
    border-top: 1px solid #dbe5f0;
  }

  .contact-location {
    padding: 22px 4px;
  }

  .contact-location + .contact-location {
    border-left: 0;
    border-top: 1px solid #dbe5f0;
  }

  .contact-location__head {
    margin-bottom: 16px;
  }

  .contact-route {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .contact-page {
    width: calc(100% - 24px);
  }

  .contact-primary-item {
    padding-inline: 8px;
  }

  .contact-data-desktop {
    display: none;
  }

  .contact-data-mobile {
    display: block;
    color: #0d3566;
    text-decoration: none;
  }

  .contact-data-mobile:hover,
  .contact-data-mobile:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .contact-hours dl > div {
    grid-template-columns: 96px 1fr;
  }
}
