/* -- FOOTER (redesign; základní footer zůstává v master.css) -- */

.redesign footer {
    background-color: #14090a;
}

.redesign .mainFooterSection {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 6rem clamp(2rem, 5vw, 6rem) 3rem;
    box-sizing: border-box;
}

.redesign .subFooterSection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem clamp(3rem, 6vw, 9rem);
}

.redesign .footerContentWrapper h5 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ff7777;
}

.redesign .footerContentWrapper br {
    display: none;
}

.redesign .footerContentWrapper h5:not(:first-child) {
    margin-top: 4rem;
}

.redesign .footerContentItem a {
    text-decoration: none;
}

.redesign .footerContentItem {
    height: auto;
    min-height: 4rem;
    margin: 0.7rem 0;
}

.redesign .footerIcon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-right: 1.4rem;
    border-radius: 0.9rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
    background-color: rgba(235, 64, 64, 0.12);
    color: #ff7777;
    transition: background-color 0.2s, border-color 0.2s;
}

.redesign .footerIcon svg {
    width: 2rem;
    height: 2rem;
}

.redesign .footerContentItem:hover .footerIcon {
    background-color: rgba(235, 64, 64, 0.22);
    border-color: rgba(255, 119, 119, 0.5);
}

.redesign .footerExternal {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    border-bottom: 0.1rem dashed rgba(255, 255, 255, 0.35);
}

.redesign .footerExternal svg {
    width: 1.4rem;
    height: 1.4rem;
    opacity: 0.7;
}

.redesign .footerExternal:hover {
    border-bottom-color: #ff7777;
}

.redesign .footerLine {
    margin: 5rem 0 2.4rem;
    background-color: rgba(255, 255, 255, 0.14);
}

.redesign .footerWebMapLinks a {
    font-size: 1.5rem;
    font-weight: 600;
}

.redesign #evalLink {
    font-size: 1.3rem;
    opacity: 0.7;
    text-decoration: none;
}

.redesign #evalLink:hover {
    opacity: 1;
}

@media only screen and (max-width: 768px) {
    .redesign .mainFooterSection {
        padding-top: 4rem;
    }

    .redesign .subFooterSection {
        grid-template-columns: 1fr;
    }

    .redesign .footerContentWrapper {
        margin-bottom: 0;
    }

    .redesign .footerLine {
        margin-top: 3rem;
    }

    .redesign .footerWebMapWrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

@media only screen and (max-width: 478px) {
    .redesign .mainFooterSection {
        padding-bottom: 2.4rem;
    }

    .redesign .footerContentWrapper h5 {
        margin-bottom: 1.4rem;
        font-size: 1.2rem;
        letter-spacing: 0.18em;
    }

    .redesign .footerContentWrapper h5:not(:first-child) {
        margin-top: 3rem;
    }

    .redesign .footerContentItem {
        flex-wrap: wrap;
        margin: 0.5rem 0;
    }

    .redesign .footerIcon {
        width: 3.6rem;
        height: 3.6rem;
        margin-right: 1.2rem;
    }

    .redesign .footerIcon svg {
        width: 1.8rem;
        height: 1.8rem;
    }

    .redesign .footerText,
    .redesign .footerInvoiceText {
        font-size: 1.5rem;
        overflow-wrap: anywhere;
    }

    .redesign .footerInvoiceText {
        margin-left: 0.6rem;
    }

    /* popisek (starosta sboru…) pod číslem, zarovnaný s textem */
    .redesign .footerSubText {
        flex-basis: 100%;
        margin: 0.1rem 0 0.6rem 4.8rem;
        font-size: 1.25rem;
        font-weight: 300;
        opacity: 0.75;
    }

    .redesign .footerWebMapLinks {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem 2.4rem;
    }

    .redesign .footerWebMapLinks a {
        margin: 0;
        padding: 0.4rem 0;
        font-size: 1.5rem;
    }

    .redesign #evalLink {
        font-size: 1.2rem;
    }
}
