/**
 * Футер сайта. Блок site-footer.
 * Макет: 1440px, вертикальные разделители между колонками, без горизонтальных линий.
 * Отступы: заголовок → список 16px, между пунктами 12px, снизу блока 40px.
 */
.site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-top: 4rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-top: 2.5rem;
    padding-inline: max(1.25rem, calc((100vw - var(--site-content-max)) / 2));
    padding-bottom: 2.5rem;
    background-color: var(--site-surface);
    color: var(--site-text-primary);
}

.site-footer__inner {
    width: 100%;
    max-width: var(--site-content-max);
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 16.25rem repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.site-footer__brand {
    padding-right: 2rem;
    border-right: 1px solid var(--site-border);
}

.site-footer__col {
    padding-inline: 2rem;
    border-right: 1px solid var(--site-border);
}

.site-footer__col--contacts {
    border-right: none;
    padding-right: 0;
}

.site-footer__logo {
    display: inline-flex;
    margin-bottom: 0.75rem;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo img {
    width: auto;
    height: 2rem;
    display: block;
}

.site-footer__tagline {
    margin: 0 0 1rem;
    max-width: 16.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--site-text-muted);
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--site-surface-alt);
    text-decoration: none;
}

.site-footer__social img {
    width: 1rem;
    height: 1rem;
    display: block;
}

.site-footer__social--placeholder {
    background-color: var(--site-surface-alt);
}

.site-footer__heading {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: var(--site-text-primary);
}

.site-footer__links,
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links {
    gap: 0.3125rem; /* 5px */
}

.site-footer__contacts {
    gap: 0.75rem;
}

.site-footer__links li,
.site-footer__contacts li {
    margin: 0;
    padding: 0;
}

.site-footer__links a,
.site-footer__contacts a {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    color: var(--site-text);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__contacts a:hover {
    color: var(--site-text-primary);
}

.site-footer__links a:focus-visible,
.site-footer__contacts a:focus-visible {
    color: var(--site-accent);
    outline: 0.125rem dotted var(--site-accent);
    outline-offset: 0.125rem;
}

.site-footer__phone {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: var(--site-text-primary);
}

.site-footer__email {
    font-weight: 400;
    color: var(--site-text-muted);
}

.site-footer__address {
    font-style: normal;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    color: var(--site-text-muted);
}

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}

.site-footer__copyright,
.site-footer__made {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: var(--site-text-muted);
}

.site-footer__made {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.site-footer__flag {
    display: block;
    width: 1.25rem;
    height: auto;
    flex-shrink: 0;
}

@media (max-width: 64rem) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 0;
    }

    .site-footer__brand,
    .site-footer__col {
        border-right: none;
        padding: 0;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
        padding-bottom: 0.5rem;
    }

    .site-footer__col:nth-child(odd) {
        padding-right: 1rem;
    }

    .site-footer__col:nth-child(even) {
        padding-left: 1rem;
    }
}

@media (max-width: 767px) {
    .site-footer {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .site-footer__col:nth-child(odd),
    .site-footer__col:nth-child(even) {
        padding: 0;
    }

    .site-footer__bar {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 2rem;
    }
}
