.footer.site-footer {
  --footer-border: #48608d;
  --footer-muted: #cbd6ec;
  color: #fff;
  background: #081c47;
  border: 0;
  padding: clamp(32px, 4vw, 58px) 0 24px;
}
.site-footer .footer-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.footer-identity {
  min-width: 0;
  align-self: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: min(195px, 100%);
}
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-identity h2 {
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.25;
  letter-spacing: -.035em;
  text-wrap: wrap;
  margin: 12px 0 16px;
}
.footer-phone-label {
  margin: 0 0 3px;
  color: var(--footer-muted);
  font-size: 15px;
}
.footer-main-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
}
.footer-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
  white-space: nowrap;
}
.footer-call svg,
.footer-contact-actions svg,
.footer-top-button svg { flex: none; width: 19px; height: 19px; }
.footer-call svg { color: #ffda78; }
.footer-book {
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 7px;
  background: #fff;
  color: #081c47;
  font-size: 15px;
  font-weight: 700;
}
.footer-book:hover { background: #e6edfb; }
.footer-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #122b5a;
  border: 1px solid var(--footer-border);
  border-radius: 14px;
  padding: clamp(17px, 2vw, 28px);
}
.footer-center h3 {
  margin: 0;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.25;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: wrap;
}
.footer-center h3 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}
.footer-center h3 svg { flex: none; color: #ffda78; }
.footer-center address {
  margin: 3px 0 16px;
  color: var(--footer-muted);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}
.footer-contact-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.footer-map-link,
.footer-social-link,
.footer-top-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--footer-border);
  border-radius: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
}
.footer-social-link { min-width: 44px; padding-inline: 8px; }
.footer-map-link:hover,
.footer-social-link:hover,
.footer-top-button:hover { background: #203d73; border-color: #8194b9; }
.footer-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  margin-top: 28px;
  padding-top: 13px;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.5;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
}
.footer-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-medical { margin: 0; }
.footer-legal-links p { margin: 0; }
.footer-call:hover span,
.footer-center h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :is(a, button):focus-visible { outline: 2px solid #ffda78; outline-offset: 3px; }
body.footer-in-view .floating-actions { visibility: hidden; }

@media (max-width: 1000px) {
  .site-footer .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-identity { grid-column: 1 / -1; }
  .footer-legal { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-medical { grid-row: 2; }
  .footer-top-button { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 600px) {
  .site-footer .footer-layout,
  .footer-legal { grid-template-columns: 1fr; }
  .footer-identity { margin-bottom: 4px; }
  .footer-legal-links p { flex-basis: 100%; }
  .footer-legal { gap: 5px; margin-top: 22px; padding-top: 17px; }
  .footer-top-button { grid-area: auto; justify-self: start; margin-top: 9px; }
}
