.site-footer--shared {
  --footer-ink: #f1ece1;
  --footer-muted: #c9c9bc;
  --footer-accent: #d1bc94;
  --footer-line: #e2d8bc29;
  background-color: #262e27;
  background-image: linear-gradient(115deg, #29342aed, #202821e6), var(--footer-texture);
  color: var(--footer-ink);
  padding-top: 56px;
}

.site-footer--shared > .container {
  width: min(1200px, calc(100% - 96px));
}

.site-footer--shared .footer-main {
  grid-template-areas: "brand navigation contact";
  grid-template-columns: minmax(210px, .9fr) minmax(185px, 1fr) minmax(270px, 1.1fr);
  gap: clamp(26px, 5vw, 82px);
  align-items: start;
  reading-flow: grid-rows;
  padding-bottom: 44px;
}

.site-footer--shared .footer-brand { grid-area: brand; }
.site-footer--shared .footer-nav { grid-area: navigation; }
.site-footer--shared .footer-contact { grid-area: contact; }

.site-footer--shared .footer-brand > a {
  display: inline-block;
}

.site-footer--shared .footer-brand img {
  width: 140px;
  height: 140px;
  margin: 0 0 6px;
}

.site-footer--shared .footer-brand p {
  color: var(--footer-muted);
  max-width: none;
  font-size: 13px;
}

.site-footer--shared .footer-socials {
  gap: 9px;
  margin-top: 20px;
}

.site-footer--shared .footer-socials .social-link {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-basis: 44px;
  border-color: var(--footer-line);
  border-radius: 50%;
}

.site-footer--shared .social-link svg {
  width: 22px;
  height: 22px;
}

.site-footer--shared .footer-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  max-width: 280px;
  gap: 12px 22px;
  padding-top: 8px;
  font-size: 14px;
}

.site-footer--shared .footer-contact {
  padding-top: 6px;
  min-width: 0;
  font-size: 14px;
}

.site-footer--shared .footer-contact small {
  color: var(--footer-accent);
  font-size: 11px;
  letter-spacing: .13em;
}

.site-footer--shared .footer-contact .phone {
  color: var(--footer-ink);
  font-size: clamp(24px, 2.45vw, 32px);
  letter-spacing: .025em;
  line-height: 1.35;
  margin: 5px 0 20px;
  white-space: nowrap;
}

.site-footer--shared .footer-contact p {
  color: var(--footer-ink);
  font-size: 14px;
  margin: 3px 0 0;
}

.site-footer--shared .footer-registrations {
  margin: 10px 0 4px;
}

.site-footer--shared .footer-registrations p {
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer--shared .footer-contact .text-link {
  border-color: var(--footer-accent);
  padding: 5px 0;
  margin: 4px 0 0;
}

.site-footer--shared .footer-badges {
  gap: 8px;
  margin-top: 16px;
}

.site-footer--shared .footer-badge {
  width: 46px;
  flex-basis: 46px;
}

.site-footer--shared .footer-badge-image,
.site-footer--shared .footer-badge-image img {
  width: 46px;
  height: 48px;
}

.site-footer--shared .footer-bottom {
  align-items: baseline;
  border-color: var(--footer-line);
  color: var(--footer-muted);
  font-size: 11px;
  padding: 17px 0;
}

.site-footer--shared .footer-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-footer--shared .design-credit,
.site-footer--shared .footer-bottom > a {
  white-space: nowrap;
}

.site-footer--shared a:hover { color: var(--footer-accent); }
.site-footer--shared a:focus-visible { outline-color: var(--footer-accent); }

@media (max-width: 850px) {
  .site-footer--shared { padding-top: 40px; }
  .site-footer--shared > .container { width: calc(100% - 48px); }

  .site-footer--shared .footer-main {
    grid-template-areas: "brand contact" "navigation navigation";
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 30px;
  }

  .site-footer--shared .footer-nav {
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--footer-line);
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .site-footer--shared .footer-main {
    grid-template-areas: "brand" "contact" "navigation";
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 32px;
  }

  .site-footer--shared .footer-brand img { width: 116px; height: 116px; }
  .site-footer--shared .footer-contact { padding-top: 0; }
  .site-footer--shared .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer--shared .footer-bottom {
    flex-direction: column;
    gap: 9px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}
