.site-footer {
  position: relative;
  z-index: 1;
  background: #0d1c2b;
  color: #dce6ea;
  border-top: 1px solid rgba(177, 202, 216, .34);
  font: 14px/1.5 Arial, 'Segoe UI', system-ui, sans-serif;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.site-footer p { margin: 0; }
.site-footer a { color: #fff; text-underline-offset: 3px; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: #f25c05;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  color: #fff;
  font: 700 30px/1 Arial, sans-serif;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.back-to-top:hover { background: #d74f02; transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid #5bd7ff; outline-offset: 3px; }

@media (max-width: 650px) {
  .site-footer__inner { padding: 23px 17px 85px; }
  .back-to-top { right: 15px; bottom: calc(15px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .back-to-top { transition: none; }
}

@media print {
  .site-footer, .back-to-top { display: none !important; }
}
