.site-footer { padding: 52px 0 20px; background: var(--bg-soft); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1.2fr; grid-template-areas: "brand explore services contact"; align-items: start; gap: 36px; }
.site-footer .footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
.footer-identity { grid-area: brand; }
.footer-explore { grid-area: explore; }
.footer-expertise { grid-area: services; }
.footer-contact { grid-area: contact; }
.site-footer .footer-brand { max-width: 100%; }
.footer-brand .brand-mark { flex: 0 0 42px; }
.footer-brand .brand-copy { min-width: 0; }
.site-footer .footer-brand .brand-copy strong { font-size: 18px; }
.site-footer .footer-brand .brand-copy small { font-size: 10px; line-height: 1.6; letter-spacing: .06em; }
.footer-description { margin: 18px 0; max-width: 32ch; color: var(--muted); font-size: 14px; line-height: 1.75; white-space: pre-line; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-socials a { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.footer-socials a span { color: var(--purple-light); flex-shrink: 0; }
.footer-socials a:hover { background: var(--surface); border-color: var(--purple-light); }
.footer-agency { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 24px; }
.footer-agency img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.footer-agency > span { display: grid; gap: 4px; min-width: 0; }
.footer-agency small { color: var(--muted); font-size: 11px; }
.footer-agency strong { font: 600 14px var(--font-display); }
.footer-heading { margin: 5px 0 16px; color: var(--text); font: 600 14px var(--font-display); }
.site-footer .footer-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 13px; }
.footer-links a { display: flex; align-items: center; min-height: 36px; padding: 6px 0; line-height: 1.55; color: var(--muted); }
.footer-links a:hover, .footer-channels a:hover, .footer-legal a:hover, .footer-legal button:hover, .footer-agency:hover strong { color: var(--purple-light); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.footer-contact h2 { margin: 0; color: var(--text); font: 600 24px/1.2 var(--font-display); letter-spacing: -.04em; }
.footer-contact > p { margin: 12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.site-footer .footer-contact-button { display: flex; justify-content: space-between; gap: 14px; min-height: 44px; padding: 12px 16px; border-radius: 12px; font-size: 12px; line-height: 1.5; white-space: normal; }
.footer-contact-button span { flex-shrink: 0; }
.footer-channels { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-style: normal; font-size: 12px; line-height: 1.65; color: var(--muted); }
.footer-channels a { padding-block: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--muted); }
.footer-bottom > p { margin: 0; overflow-wrap: anywhere; }
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.footer-legal a, .footer-legal button { display: inline-flex; align-items: center; min-height: 36px; padding-block: 6px; text-align: left; }
.footer-legal .cookie-preferences-button[hidden] { display: none; }
.site-footer .footer-without-services { grid-template-columns: 1.2fr .9fr 1.2fr; grid-template-areas: "brand explore contact"; }
@media (max-width: 1000px) {
    .site-footer .footer-grid, .site-footer .footer-without-services { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand contact" "explore services"; gap: 32px 40px; }
    .site-footer .footer-without-services { grid-template-areas: "brand contact" "explore explore"; }
    .footer-description { max-width: 42ch; }
}
@media (max-width: 620px) {
    .site-footer { padding-top: 36px; }
    .site-footer .footer-grid { grid-template-areas: "brand brand" "explore services" "contact contact"; gap: 28px 24px; }
    .site-footer .footer-without-services { grid-template-areas: "brand brand" "explore explore" "contact contact"; }
    .footer-identity { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
    .footer-heading { margin-top: 0; }
    .footer-links a { min-height: 44px; }
    .footer-contact { padding: 22px; }
    .footer-contact-button { width: fit-content; max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; }
    .footer-legal { gap: 6px 20px; }
    .footer-legal a, .footer-legal button { min-height: 44px; }
}
