/* Footer je izolovaný od obecného p/a a ostatních částí webu. */
.site_footer {
    width: 100%;
    color: var(--white);
    border-top: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
    margin-top: 40px;
}


.site_footer *, .site_footer *::before, .site_footer *::after {
    box-sizing: border-box;
}

.footer_inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 6% 20px;
}

.footer_services {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

.site_footer .footer_heading {
    margin: 0 0 14px;
    color: var(--white);
    font-family: var(--font-theme);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

.site_footer a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site_footer .footer_heading a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.footer_links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_links li + li {
    margin-top: 2px;
}

.footer_links a {
    display: inline-block;
    padding: 5px 0;
}

@media (hover: hover) {
    .site_footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

}

.site_footer a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 2px;
}

.footer_company {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}

.site_footer p {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.site_footer .footer_company_name {
    font-weight: 600;
    margin-bottom: 12px;
}

.footer_company address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.5;
}

.site_footer .footer_company_ids {
    margin-top: 12px;
    font-size: .875rem;
}

.footer_company_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
}

.footer_company_links a {
    padding: 5px 0;
}

.footer_bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
}

.site_footer .footer_bottom p {
    font-size: .875rem;
}

.footer_credit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
}

.footer_credit img {
    display: block;
    width: auto;
    height: 96px;
    max-width: 240px;
    object-fit: contain;
}


@media (min-width: 768px) {
    .footer_inner {
        padding-top: 48px;
    }

    .footer_services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
    }

    .footer_bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer_inner {
        padding: 56px 6% 24px;
    }

    .footer_services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px;
    }

}

@media (min-width: 1200px) {
    .footer_inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 250px;
        column-gap: 40px;
    }

    .footer_company {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .footer_bottom {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1440px) {
    .footer_inner {
        padding: 64px 6% 28px;
        column-gap: 48px;
    }

    .footer_services {
        gap: 32px;
    }
}

/* Nízký displej na šířku: zkrátíme rozestupy, text zůstává čitelný.
   Záměrně poslední blok, aby se pravidla pro spacing nepřepisovala. */
@media (orientation: landscape) and (max-height: 500px) {
    .footer_inner {
        padding-top: 28px;
        padding-bottom: 16px;
    }

    .footer_services {
        row-gap: 24px;
    }

    .footer_bottom {
        margin-top: 24px;
    }
}