/* Contact, privacy, 404 and shared footer. Loaded after the base theme. */
.site-footer {
  background: #071e35;
  color: #f5f9fc;
}

.site-footer .footer-contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(120deg, #123e68 0%, #082946 60%, #071e35 100%);
}

.site-footer .footer-eyebrow,
.utility-page .utility-kicker {
  margin: 0 0 1.5rem;
  color: #6cc8f0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer .footer-eyebrow span,
.utility-page .utility-kicker span { color: #e07a59; padding-inline: 0.35em; }

.site-footer .footer-contact-cta h2 {
  max-width: 14ch;
  margin: 0 0 1.3rem;
  color: #fff;
  font-size: clamp(2.8rem, 5.1vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.site-footer .footer-contact-cta p:not(.footer-eyebrow) {
  max-width: 38rem;
  margin: 0;
  color: #d2e1ed;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.site-footer .footer-contact-actions {
  display: grid;
  gap: 1.1rem;
  min-width: min(100%, 15rem);
}

.site-footer .footer-contact-actions .button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  margin: 0;
  border-radius: 0;
  background: var(--accent, #b14a32);
  color: #fff;
  font-weight: 700;
}

.site-footer .footer-contact-actions .button:hover { background: var(--accent-hover, #9d3f2a); }
.site-footer .footer-contact-actions .footer-email {
  margin: 0;
  color: #f5f9fc;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  overflow-wrap: anywhere;
}

.site-footer .top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 6rem);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
}

.site-footer .top .main,
.site-footer .top nav,
.site-footer .top .contact { width: auto; padding: 0; margin: 0; }
.site-footer .top nav::before,
.site-footer .top nav::after { display: none; }
.site-footer .top h2 { margin: 0 0 1.4rem; font-size: 1.15rem; }
.site-footer .top .main h2 { font-size: clamp(1.75rem, 2vw, 2.4rem); }
.site-footer .top .main p:first-of-type { max-width: 22rem; }
.site-footer .top p,
.site-footer .top a { line-height: 1.55; }
.site-footer .top nav ul { gap: 0.7rem; }
.site-footer .top nav li { height: auto; }
.site-footer .top .contact h3 {
  margin: 2rem 0 0.8rem;
  color: #f5f9fc;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer .top .contact p { overflow-wrap: anywhere; }
.site-footer a { transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.site-footer a:hover { color: #91d6f3; }
.site-footer .bottom {
  max-width: 1440px;
  margin-inline: auto;
  padding: 1.4rem clamp(1.5rem, 4vw, 4rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.site-footer .bottom .copyright { flex-wrap: wrap; row-gap: 0.55rem; }
.site-footer .bottom .copyright,
.site-footer .bottom .additional { text-align: left; justify-content: flex-start; }
.site-footer .bottom .copyright p::before { display: none; }
.site-footer .bottom .additional p { color: #aabfce; }

.utility-page .page_hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 53svh, 650px);
  padding: 10rem clamp(1.5rem, 4vw, 4rem) clamp(3.5rem, 6vw, 6rem);
  background: radial-gradient(circle at 85% 25%, #174d7d 0%, transparent 35%), linear-gradient(130deg, #061a2c 0%, #0e385f 100%);
}
.utility-page .page_hero .breadcrumbs { margin-bottom: auto; }
.utility-page .page_hero .section-label { margin-top: 4rem; color: #78d1f4; }
.utility-page .page_hero h1 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 6vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.utility-page .page_hero .utility-hero-lead {
  max-width: 35rem;
  margin: 1.4rem 0 1.8rem;
  color: #d3e4ef;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}
.utility-page .page_hero .accent-rule { margin: 0; width: 5rem; height: 4px; }

#contacts .contact_body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}
#contacts .contact_info h2,
#contacts .map-card h2 {
  max-width: 16ch;
  margin: 0 0 1.1rem;
  color: #0b2b49;
  font-size: clamp(2.15rem, 3.3vw, 3.8rem);
  line-height: 1.08;
}
#contacts .contact_info .intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
}
#contacts .contact_lines { gap: 0; margin-bottom: 2.5rem; }
#contacts .contact_line {
  min-height: 5rem;
  padding: 1.1rem 0;
  border-top: 1px solid #dce5eb;
  line-height: 1.5;
}
#contacts .contact_line:last-child { border-bottom: 1px solid #dce5eb; }
#contacts .contact_line > span:last-child { min-width: 0; }
#contacts .contact_line .icon {
  width: 2.6rem;
  height: 2.6rem;
  background: #e6f3f9;
}
#contacts .contact_line a { color: #0d5693; overflow-wrap: anywhere; }
#contacts .buttons .button { min-height: 3.2rem; display: inline-flex; align-items: center; }
#contacts .buttons .button:not(:first-child) {
  background: transparent;
  border: 1px solid #0e385f;
  color: #0e385f;
}
#contacts .buttons .button:not(:first-child):hover { background: #e6f3f9; }
#contacts .map-card { background: #eff5f8; padding: clamp(1rem, 2vw, 2rem); }
#contacts .map-card-copy { padding: clamp(0.6rem, 1.5vw, 1.25rem) clamp(0.6rem, 1.5vw, 1.25rem) 2rem; }
#contacts .map-card-copy p:last-child { color: #51636f; font-size: 1.05rem; line-height: 1.55; }
#contacts .map { min-height: 340px; border: 0; border-radius: 0; background: #d8e5eb; }
#contacts .map iframe { min-height: 340px; }
#contacts .map-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  color: #0d5693;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

#page.privacy-page { min-height: 0; padding: 0; }
#page.privacy-page .page_hero { margin: 0; }
.privacy-page .privacy-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 7vw, 8rem);
  max-width: 1440px;
  margin: auto;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}
.privacy-page .privacy-intro { max-width: 36rem; }
#page.privacy-page .privacy-intro h2 {
  margin: 0 0 1.5rem;
  color: #0b2b49;
  font-size: clamp(2.1rem, 3.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
}
.privacy-page .privacy-intro p:not(.utility-kicker),
.privacy-page .privacy-sections p {
  color: #4e5c66;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}
.privacy-page .privacy-intro a,
.privacy-page .privacy-sections a {
  display: inline-block;
  min-height: 44px;
  margin-top: 1.5rem;
  color: #0d5693;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}
.privacy-page .privacy-sections section {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid #dce5eb;
}
.privacy-page .privacy-sections section:last-child { border-bottom: 1px solid #dce5eb; }
#page.privacy-page .privacy-sections h2 {
  margin: 0 0 0.75rem;
  color: #0b2b49;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  font-weight: 700;
}
.privacy-page .privacy-number { color: #0d82b7; font-family: var(--font-heading); font-weight: 700; }

#not_found.utility-page {
  min-height: 100svh;
  align-items: stretch;
  padding: 9rem clamp(1.5rem, 4vw, 4rem) 5rem;
  background: radial-gradient(circle at 85% 25%, #174d7d 0%, transparent 38%), #071e35;
  text-align: left;
}
#not_found .not-found-content { width: 100%; max-width: 1440px; margin: auto; }
#not_found .breadcrumbs { justify-content: flex-start; margin-bottom: clamp(3rem, 7vw, 7rem); }
#not_found .code { color: #71c7e9; font-size: clamp(8rem, 23vw, 24rem); line-height: 0.75; letter-spacing: -0.08em; }
#not_found .accent-rule { margin: 2.5rem 0 1.5rem; }
#not_found h1 { font-size: clamp(2.4rem, 4.6vw, 5rem); line-height: 1.05; }
#not_found .text_content p { max-width: 34rem; font-size: 1.15rem; line-height: 1.6; }
#not_found .text_content .button { min-height: 3.2rem; display: inline-flex; align-items: center; }

.site-footer a:focus-visible,
.utility-page a:focus-visible {
  outline: 3px solid #78d1f4;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-footer .footer-contact-cta { grid-template-columns: 1fr; }
  .site-footer .footer-contact-actions { max-width: 22rem; }
  #contacts .contact_body { grid-template-columns: 1fr; }
  .privacy-page .privacy-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-footer .footer-contact-cta { padding: 4rem 1.25rem; }
  .site-footer .footer-contact-cta h2 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; padding: 3rem 1.25rem; border-bottom: 0; }
  .site-footer .top .main { grid-column: 1 / -1; border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding-bottom: 2rem; }
  .site-footer .top nav { padding: 0; }
  .site-footer .top .contact { display: block; padding: 0; }
  .site-footer .top .contact p { margin-bottom: 0.7rem; }
  .site-footer .bottom { padding: 1.5rem 1.25rem 2rem; }
  .site-footer .bottom .copyright { display: grid; gap: 0.45rem; }
  .utility-page .page_hero { min-height: 430px; padding: 8rem 1.25rem 3rem; }
  .utility-page .page_hero h1 { font-size: clamp(2.65rem, 11vw, 4.3rem); }
  #contacts .contact_body,
  .privacy-page .privacy-body { padding: 4rem 1.25rem; }
  #contacts .contact_line { font-size: 1rem; }
  #contacts .buttons { display: grid; }
  #contacts .buttons .button { justify-content: center; }
  .privacy-page .privacy-sections section { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; }
  #not_found.utility-page { padding: 8rem 1.25rem 4rem; }
}
