.home main h2,
.home main h3 { text-wrap: balance; }
.home main p { text-wrap: pretty; }
.home main [id] { scroll-margin-top: 100px; }

@media (max-width: 1180px) {
  .home .header.menu-open .nav {
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 767px) {
  html:has(body.home) { scroll-padding-top: 90px; scroll-padding-bottom: 80px; }
  .bsvu-site.home { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .home .header.menu-open .nav {
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
  }
  .bsvu-site.home .bsvu-floating-contact {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 12px;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #d9edf6;
    background: #fff;
  }
  .bsvu-site.home .bsvu-contact-button {
    width: auto;
    flex: 1;
    height: 44px;
    border-radius: 6px;
    box-shadow: none;
  }
  .home:has(.header.menu-open) .bsvu-floating-contact { visibility: hidden; }
  .bsvu-site.home .site-footer-bottom { padding-bottom: 20px; }
  .home .site-footer-contact a,
  .home .site-footer-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .home .service-links a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
  .home .site-footer-details summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; pointer-events: auto; }
  .home .site-footer-details summary::after { content: '+'; display: block; font-size: 20px; }
  .home .site-footer-details[open] summary::after { content: '\2212'; display: block; }
  .home .site-footer-details:not([open]) > .site-footer-list { display: none; }
}

@media (max-width: 640px) {
  .home .hero { padding-top: 28px; }
  .home .hero-grid { gap: 24px; }
  .home .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .home .hero-actions .button { min-height: 44px; font-size: 14px; padding-inline: 10px; }
  .home .hero-actions .button:last-child { grid-column: 1 / -1; }
  .home .quick-facts { gap: 0; border-top: 1px solid #d9edf6; }
  .home .quick-facts .fact {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #d9edf6;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .home .quick-facts .fact strong,
  .home .quick-facts .fact span { margin: 0; font-size: 14px; line-height: 1.55; }
  .home .specialty-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home .specialty { display: flex; flex-direction: column; }
  .home .specialty-image { margin: 12px 12px 0; aspect-ratio: 16 / 9; height: auto; max-height: 190px; border-radius: 6px; background: #fff; }
  .home .specialty-image img { width: 100%; height: 100%; object-fit: contain; }
  .home .specialty-body { min-width: 0; padding: 16px; }
  .home .specialty h3 { font-size: 18px; line-height: 1.4; text-wrap: pretty; }
  .home .specialty p { font-size: 15px; line-height: 1.65; }
  .home .specialty-link { min-height: 44px; font-size: 14px; }
}

@media (max-width: 359px) {
  .home .quick-facts .fact { grid-template-columns: 86px minmax(0, 1fr); }
}
