/* =========================================================
   FOOTER — Termo Garaż
   Marka lewo, trzy kolumny prawo. Tablet i mobile wyśrodkowane.
   ========================================================= */

.tg-footer {
    background-color: var(--tg-base);
    color: var(--tg-ink);
    padding-block: clamp(3.75rem, 8vh, 5.75rem) clamp(1.75rem, 4vh, 2.5rem);
}

.tg-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}

.tg-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 26rem;
}

.tg-footer__logo {
    display: inline-flex;
    margin: 0 0 1.15rem;
}

.tg-footer__logo-img {
    display: block;
    width: auto;
    height: 2.15rem;
    max-width: 11.5rem;
    object-fit: contain;
}

.tg-footer__wordmark {
    margin: 0 0 1.15rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--tg-ink);
}

.tg-footer__lead {
    margin: 0 0 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--tg-muted);
    text-wrap: pretty;
}

.tg-footer__social {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.tg-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: var(--tg-pill);
    color: var(--tg-ink);
    background: transparent;
    transition:
        background-color 0.3s var(--tg-ease),
        color 0.3s var(--tg-ease);
}

.tg-footer__social-link svg {
    display: block;
    width: auto;
    height: auto;
    max-width: 1.05rem;
    max-height: 1.05rem;
    flex-shrink: 0;
    overflow: visible;
}

.tg-footer__social-link:hover,
.tg-footer__social-link:focus-visible {
    background-color: rgba(245, 245, 247, 0.08);
    color: #fff;
}

.tg-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.4vw, 2.5rem);
    min-width: 0;
}

.tg-footer__col-title {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tg-ink);
}

.tg-footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tg-footer__list a {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--tg-muted);
    overflow-wrap: anywhere;
    transition: color 0.3s var(--tg-ease);
}

.tg-footer__list a:hover,
.tg-footer__list a:focus-visible {
    color: var(--tg-ink);
}

.tg-footer__logo:focus-visible,
.tg-footer__wordmark:focus-visible,
.tg-footer__social-link:focus-visible,
.tg-footer__list a:focus-visible,
.tg-footer__legal a:focus-visible {
    outline: 2px solid var(--tg-accent);
    outline-offset: 3px;
}

.tg-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: clamp(2.25rem, 5vh, 3.25rem);
    padding-top: 1.35rem;
    border-top: 1px solid var(--tg-line);
}

.tg-footer__copy,
.tg-footer__legal {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--tg-faint);
}

.tg-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.35rem;
}

.tg-footer__legal a {
    color: var(--tg-faint);
    transition: color 0.3s var(--tg-ease);
}

.tg-footer__legal a:hover,
.tg-footer__legal a:focus-visible {
    color: var(--tg-ink);
}

/* =========================================================
   Breakpointy 1450 / 1201 / 1024 / 768 / 375
   ========================================================= */

@media (min-width: 1024px) {
    .tg-footer__logo-img {
        height: 2.55rem;
        max-width: 13rem;
    }

    .tg-footer__lead {
        font-size: 0.8125rem;
        line-height: 1.55;
    }
}

@media (max-width: 1200px) {
    .tg-footer__grid {
        gap: 2.5rem;
    }
}

@media (max-width: 1023px) {
    .tg-footer {
        padding-block: clamp(3rem, 6.5vh, 4.5rem) 2rem;
        text-align: center;
    }

    .tg-footer__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2.5rem;
    }

    .tg-footer__brand {
        align-items: center;
        max-width: 28rem;
    }

    .tg-footer__cols {
        width: min(36rem, 100%);
        gap: 1.25rem;
    }

    .tg-footer__bar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 2.25rem;
        gap: 0.7rem;
    }

    .tg-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .tg-footer {
        padding-block: 2.65rem 1.85rem;
    }

    .tg-footer__cols {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.75rem;
    }

    .tg-footer__col-title {
        margin-bottom: 0.7rem;
    }

    .tg-footer__list {
        gap: 0.55rem;
    }
}

@media (max-width: 479px) {
    .tg-footer__logo-img {
        height: 1.9rem;
    }

    .tg-footer__lead {
        font-size: 0.9rem;
    }
}
