.site-footer {
  margin-top: 2rem;
  padding: 0 1rem 1.2rem;
  background: transparent;
}

.site-footer .footer-wrapper {
  width: min(100%, var(--max-page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  box-sizing: border-box;
}

.site-footer .footer-col {
  padding: 1.25rem 1.3rem;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(228, 192, 132, 0.14);
  background:
    linear-gradient(180deg, rgba(20, 15, 11, 0.94), rgba(13, 10, 8, 0.96));
  box-shadow: var(--shadow-soft);
}

.site-footer .footer-col h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff1d6;
}

.site-footer .footer-col p,
.site-footer .footer-col li,
.site-footer .footer-bottom {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.site-footer .footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.site-footer .footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.site-footer .footer-nav a::before {
  content: '✦';
  color: var(--brand-strong);
  font-size: 0.7rem;
}

@media (hover: hover) {
  .site-footer .footer-nav a:hover {
    color: #fff2d8;
    transform: translateX(2px);
  }
}

.site-footer .footer-bottom {
  width: min(100%, var(--max-page-width));
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  border-radius: 20px;
  border: 1px solid rgba(228, 192, 132, 0.12);
  background: rgba(11, 8, 6, 0.92);
  text-align: center;
  box-sizing: border-box;
}

.site-footer .footer-bottom #footer-version {
  color: var(--brand-strong);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-footer .footer-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-footer .footer-col,
  .site-footer .footer-bottom {
    border-radius: 22px;
  }
}

body.public-shell-page .site-footer {
  margin-top: 1.2rem;
  padding: 0;
  width: min(100%, var(--public-content-stage-max));
  max-width: none;
  align-self: stretch;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  transition: none;
}

body.public-shell-page .site-footer .footer-wrapper,
body.public-shell-page .site-footer .footer-bottom {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.public-shell-page .site-footer .footer-col {
  border-color: var(--admin-border-soft);
  background: var(--admin-surface-panel);
  box-shadow: var(--shadow-soft);
}

body.public-shell-page .site-footer .footer-col h3 {
  color: var(--admin-text-strong);
}

body.public-shell-page .site-footer .footer-col p,
body.public-shell-page .site-footer .footer-col li,
body.public-shell-page .site-footer .footer-bottom,
body.public-shell-page .site-footer .footer-nav a {
  color: var(--admin-text-soft);
}

body.public-shell-page .site-footer .footer-nav a::before,
body.public-shell-page .site-footer .footer-bottom #footer-version {
  color: var(--admin-text-kicker);
}

body.public-shell-page .site-footer .footer-bottom {
  border-color: var(--admin-border-soft);
  background: var(--admin-surface-card-darker);
}

@media (max-width: 1080px) {
  body.public-shell-page .site-footer {
    width: 100%;
    transform: none;
    padding: 0;
  }

  body.public-shell-page .site-footer .footer-wrapper,
  body.public-shell-page .site-footer .footer-bottom {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  body.public-shell-page .site-footer .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.public-shell-page .site-footer .footer-col,
  body.public-shell-page .site-footer .footer-bottom {
    border-radius: 22px;
  }
}

@media (max-width: 430px) {
  body.public-shell-page .site-footer .footer-col {
    padding: 1rem;
  }

  body.public-shell-page .site-footer .footer-bottom {
    padding: 0.95rem 1rem;
  }
}
