.site-footer { color: #222222; background: #f7f9fd; }
.footer-sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px 0; width: min(1160px, calc(100% - 56px)); margin: auto; padding: 80px 0 52px; }
.footer-sitemap section { min-height: 180px; padding: 0 40px; border-left: 1px solid rgba(34, 34, 34, .3); }
.footer-sitemap section:nth-child(4n + 1) { border-left: 0; }
.footer-sitemap h2 { margin: 0 0 20px; color: #222222; font-size: 16px; }
.footer-sitemap p { display: grid; gap: 9px; margin: 0; font-size: 14px; line-height: 19px; }
.footer-sitemap a { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: #222222; }
.footer-sitemap a:hover { color: #0d386b; text-decoration: underline; text-underline-offset: 3px; }
.footer-sitemap .external-icon { width: 12px; height: 12px; filter: none; }
.personal-links p { gap: 18px; font-size: 16px; font-weight: 700; }
.social-links { display: flex; align-items: flex-start; gap: 18px; }
.social-links > a img { align-self: end; width: auto; height: 24px; }
.social-links > a img[src*="/x.svg"] { height: 20px; }
.social-links > a img[src*="/facebook.svg"] { height: 20px; }
.social-links > a { display: grid; grid-template-rows: 28px auto; align-content: start; align-items: start; justify-items: center; gap: 8px; min-width: 32px; min-height: 48px; }
.social-links > a span { font-size: 11px; line-height: 1; }
.footer-bottom { display: grid; gap: 28px; justify-items: center; padding: 40px 24px; color: #ffffff; background: #0d386b; font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.footer-bottom nav a { display: inline-flex; align-items: center; gap: 6px; color: #ffffff; }
.footer-bottom nav img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.footer-bottom p { margin: 0; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 1000; padding: 12px 20px; transform: translateY(-180%); background: #ffffff; color: #0d386b; font-size: 15px; font-weight: 700; border: 2px solid #00b0ec; }
.skip-link:focus { transform: translateY(0); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #c4d5e6; border-radius: 0; background: #ffffff; color: #0d386b; box-shadow: 0 2px 8px rgba(34,34,34,.08); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.back-to-top[hidden] { display: none; }
.back-to-top img { width: 18px; height: auto; transform: rotate(-90deg); transition: transform .2s ease; }
.back-to-top:hover { background: #eef7fb; border-color: #00b0ec; }
.back-to-top:hover img { transform: translateY(-3px) rotate(-90deg); }
.back-to-top:focus-visible, main a:focus-visible, main button:focus-visible { outline: 2px solid #00b0ec; outline-offset: 4px; }
.page-related-links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px; width: min(1238px, calc(100% - 48px)); margin: 64px auto 80px; padding: 28px 0; border-block: 1px solid #d8dee5; }
.page-related-links h3 { margin: 0; font-size: 16px; }
.page-related-links a { display: inline-flex; align-items: center; gap: 14px; color: #0d386b; font-size: 15px; font-weight: 700; }
.page-related-links a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.page-related-links a img { flex: 0 0 auto; width: 18px; height: auto; object-fit: contain; transition: transform .2s ease; }
.page-related-links a:hover img { transform: translateX(5px); }
.page-section-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; width: min(1238px, calc(100% - 48px)); margin: 40px auto 0; }
.page-section-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; border-bottom: 1px solid #c4d5e6; color: #0d386b; font-size: 15px; font-weight: 700; line-height: 1.7; }
.page-section-links a:hover { border-color: #00b0ec; }
.page-section-links a img { flex: 0 0 auto; width: 16px; height: auto; object-fit: contain; transform: rotate(90deg); }
main h2[id] { scroll-margin-top: 130px; }

@media (max-width: 760px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .page-related-links { width: calc(100% - 40px); align-items: flex-start; flex-direction: column; gap: 24px; margin: 48px auto 64px; }
  .page-section-links { width: calc(100% - 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 28px; }
  .page-section-links a { font-size: 14px; }
  main h2[id] { scroll-margin-top: 100px; }
  .footer-sitemap { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .footer-sitemap section { min-height: 0; padding: 0 20px; border-left: 1px solid rgba(34, 34, 34, .3) !important; }
}

@media (max-width: 360px) {
  .page-section-links { grid-template-columns: 1fr; gap: 0; }
}
