/* Globalna stopka serwisu – układ zgodny z projektem Val di Sole. */
.vds-site-footer {
    --footer-ink: #0a1935;
    --footer-muted: #526078;
    --footer-line: #cfd5dd;
    --footer-accent: #ed1b2f;

    overflow: hidden;
    background: #fff;
    color: var(--footer-ink);
    font-family: var(--vds-font-family);
}

.vds-site-footer,
.vds-site-footer * {
    box-sizing: border-box;
}

.vds-site-footer__container {
    width: min(calc(100% - 64px), 1580px);
    margin-inline: auto;
}

.vds-site-footer__top {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(125px, .72fr)) minmax(240px, 1fr);
    gap: clamp(34px, 4vw, 74px);
    padding: clamp(58px, 6vw, 92px) 0 clamp(46px, 5vw, 76px);
}

.vds-site-footer__brand {
    min-width: 0;
}

.vds-site-footer__logo {
    display: inline-flex;
    align-items: center;
    color: var(--footer-ink);
    text-decoration: none;
}

.vds-site-footer__logo-image {
    display: block;
    width: clamp(230px, 17vw, 285px);
    max-width: 100%;
    height: auto;
    max-height: 105px;
    object-fit: contain;
}

.vds-site-footer__site-name {
    font-size: clamp(24px, 2vw, 34px);
    font-weight: var(--vds-heading-weight, 300);
    line-height: 1;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.vds-site-footer__socials,
.vds-site-footer__menu,
.vds-site-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vds-site-footer__socials {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
}

.vds-site-footer__social-link {
    display: grid;
    width: 24px;
    height: 24px;
    color: #2e4267;
    place-items: center;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.vds-site-footer__social-link svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.vds-site-footer__social-link span {
    font-size: 10px;
    font-weight: var(--vds-semibold-weight, 600);
    text-transform: uppercase;
}

.vds-site-footer__social-link:hover {
    color: var(--footer-accent);
    transform: translateY(-2px);
}

.vds-site-footer__column-title {
    margin: 0 0 20px;
    color: var(--footer-ink);
    font-size: 13px;
    font-weight: var(--vds-semibold-weight, 600);
    line-height: 1.3;
}

.vds-site-footer__menu {
    display: grid;
    gap: 12px;
}

.vds-site-footer__menu a {
    display: inline-block;
    color: var(--footer-muted);
    font-size: 13px;
    font-weight: var(--vds-body-weight, 400);
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.vds-site-footer__menu a:hover {
    color: var(--footer-accent);
    transform: translateX(3px);
}

.vds-site-footer__contact-list {
    display: grid;
    gap: 18px;
}

.vds-site-footer__contact-list > li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    color: var(--footer-muted);
}

.vds-site-footer__contact-list svg {
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    fill: currentColor;
}

.vds-site-footer__contact-list a {
    color: inherit;
    font-size: 13px;
    font-weight: var(--vds-body-weight, 400);
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.vds-site-footer__contact-list a:hover {
    color: var(--footer-accent);
}

.vds-site-footer__bottom {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding-block: 22px;
    border-top: 1px solid var(--footer-line);
}

.vds-site-footer__copyright {
    margin: 0;
    color: var(--footer-muted);
    font-size: 11px;
    line-height: 1.5;
}

.vds-site-footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 4px;
}

@media (max-width: 1200px) {
    .vds-site-footer__top {
        grid-template-columns: minmax(230px, 1.2fr) repeat(2, minmax(150px, .8fr));
    }

    .vds-site-footer__contact {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {
    .vds-site-footer__container {
        width: min(calc(100% - 40px), 1580px);
    }

    .vds-site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 28px;
    }

    .vds-site-footer__brand,
    .vds-site-footer__contact {
        grid-column: 1 / -1;
    }

    .vds-site-footer__socials {
        margin-top: 30px;
    }
}

@media (max-width: 520px) {
    .vds-site-footer__top {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-block: 52px 44px;
    }

    .vds-site-footer__brand,
    .vds-site-footer__contact {
        grid-column: auto;
    }

    .vds-site-footer__column,
    .vds-site-footer__contact {
        padding-top: 28px;
        border-top: 1px solid var(--footer-line);
    }

    .vds-site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vds-site-footer a {
        transition: none;
    }
}

/* Wspólne menu nagłówka i stopki. Podmenu są widoczne jako kolumny. */
.vds-site-footer--primary .vds-site-footer__top {
    grid-template-columns: minmax(175px, 1fr) minmax(0, 4fr);
    gap: 28px clamp(24px, 3vw, 54px);
}

.vds-site-footer--primary .vds-site-footer__brand {
    grid-area: 1 / 1;
}

.vds-site-footer--primary .vds-site-footer__socials {
    margin-top: 16px;
}

.vds-site-footer__primary {
    grid-area: 1 / 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
    align-items: start;
    gap: 28px clamp(16px, 1.75vw, 28px);
    min-width: 0;
}

.vds-site-footer__primary .vds-site-footer__column {
    min-width: 0;
}

.vds-site-footer__primary .vds-site-footer__column-title {
    margin-bottom: 12px;
}

.vds-site-footer__primary .vds-site-footer__column-title a {
    color: inherit;
    text-decoration: none;
}

.vds-site-footer__primary .vds-site-footer__column-title a:hover {
    color: var(--footer-accent);
}

.vds-site-footer__primary a {
    overflow-wrap: anywhere;
}

.vds-site-footer__primary .vds-site-footer__contact {
    padding-top: 0;
    border-top: 0;
}

.vds-site-footer__contact--stacked {
    margin-top: 24px;
}

.vds-site-footer__primary .vds-site-footer__contact-list {
    gap: 12px;
}

.vds-site-footer__primary .vds-site-footer__contact-list > li {
    gap: 8px;
}

@media (max-width: 980px) {
    .vds-site-footer--primary .vds-site-footer__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .vds-site-footer--primary .vds-site-footer__brand,
    .vds-site-footer__primary {
        grid-area: auto;
    }
}

@media (max-width: 520px) {
    .vds-site-footer__primary {
        padding-top: 24px;
        border-top: 1px solid var(--footer-line);
    }

    .vds-site-footer__primary .vds-site-footer__column {
        padding-top: 0;
        border-top: 0;
    }
}
