#siteFooter.footer-v3-ready .footer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(145px, .62fr));
  gap: clamp(28px, 4vw, 66px);
  align-items: start;
}

#siteFooter .footer-v3-brand,
#siteFooter .footer-v3-nav { min-width: 0; }

#siteFooter .footer-v3-brand .logo {
  width: max-content;
  max-width: 100%;
}

#siteFooter .footer-v3-brand .lead {
  max-width: 450px !important;
  margin-top: 14px !important;
  font-size: clamp(16px, 1.4vw, 18px) !important;
  line-height: 1.6;
}

#siteFooter .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

#siteFooter .social-btn {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

#siteFooter .social-btn:hover,
#siteFooter .social-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 62, 39, .10);
  outline: none;
}

#siteFooter .footer-v3-nav {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#siteFooter .footer-v3-nav > .footer-title { margin-bottom: 14px; }

#siteFooter .footer-v3-nav > .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#siteFooter .footer-v3-nav > .footer-links a,
#siteFooter .footer-v3-nav > .footer-links span { overflow-wrap: anywhere; }

#siteFooter .footer-v3-nav > .footer-links a {
  width: max-content;
  max-width: 100%;
}

#siteFooter .footer-v3-nav > .footer-links a:hover,
#siteFooter .footer-v3-nav > .footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

#siteFooter .footer-mobile-toggle { display: none; }

@media (max-width: 900px) and (min-width: 721px) {
  #siteFooter.footer-v3-ready .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 36px;
  }

  #siteFooter .footer-v3-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  #siteFooter.footer-v3-ready .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #siteFooter .footer-v3-brand {
    order: 0;
    width: 100%;
    padding-bottom: 26px;
  }

  #siteFooter .footer-v3-brand .lead { max-width: 100% !important; }

  #siteFooter .footer-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #siteFooter .social-btn {
    width: 100%;
    justify-content: center;
  }

  #siteFooter .footer-v3-nav {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  #siteFooter .footer-v3-nav:last-of-type {
    border-bottom: 1px solid var(--line);
  }

  #siteFooter .footer-v3-nav > .footer-title { display: none; }

  #siteFooter .footer-mobile-toggle {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
  }

  #siteFooter .footer-mobile-toggle::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
  }

  #siteFooter .footer-mobile-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  #siteFooter .footer-mobile-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 8px;
  }

  #siteFooter .footer-v3-nav > .footer-links {
    display: flex;
    gap: 12px;
    padding: 0 0 22px;
  }

  #siteFooter .footer-v3-nav > .footer-links[hidden] {
    display: none !important;
  }
}

@media (max-width: 430px) {
  #siteFooter .footer-socials { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #siteFooter .social-btn { transition: none; }
}
