.site-footer {
    margin-top: 40px;
    padding-top: 32px;
    background: var(--color-surface);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 4vw, 52px);
    padding-bottom: 32px;
}

.site-footer h2 {
    margin-bottom: 20px;
    color: var(--color-brand);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__service { padding-inline-end: 20px; border-inline-end: 1px solid var(--color-border); }
.site-footer__branding { position: relative; margin-bottom: 24px; padding: 0 0 24px; border-bottom: 1px solid var(--color-border); }
.site-footer__branding a img { width: 156px; }
.site-footer__branding p { margin-top: 16px; }
.site-footer__mascot { position: absolute; top: -8px; right: 0; width: min(36%, 106px); height: auto; }

.site-footer__service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

.site-footer__contacts { justify-self: start; max-width: 100%; }
.site-footer__person { display: grid; align-content: start; gap: 8px; }
.site-footer__person p { margin-bottom: 8px; }
.site-footer__person a {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-regular);
    overflow-wrap: anywhere;
}
.site-footer__contacts,
.site-footer__links,
.site-footer__details { font-size: 1rem; }
.site-footer__links li + li,
.site-footer__details p + p { margin-top: 16px; }
.site-footer__address { margin-top: 24px; }
.site-footer__details iframe { display: block; width: 100%; height: auto; aspect-ratio: 1.9; border: 0; }

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    padding-block: 20px;
    color: var(--color-text-muted);
}

.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (min-width: 769px) {
    .site-footer__person + .site-footer__person {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--color-border);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__service { border: 0; }
}

@media (max-width: 768px) {
    .site-footer { margin-top: 60px; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .site-footer h2 { margin-bottom: 16px; }
    .site-footer__service { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--color-border); }
    .site-footer__contacts,
    .site-footer__links,
    .site-footer__details { font-size: 0.875rem; }
    .site-footer__contacts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-self: stretch;
        row-gap: 16px;
    }
    .site-footer__contacts h2 { grid-column: 1 / -1; margin: 0; }
    .site-footer__person { padding-inline-end: 16px; }
    .site-footer__person p { margin-bottom: 4px; }
    .site-footer__person a { font-size: 0.75rem; font-weight: var(--font-weight-medium); }
    .site-footer__person:nth-of-type(even) {
        padding-inline: clamp(16px, 5vw, 32px) 0;
        border-inline-start: 1px solid var(--color-border);
    }
    .site-footer__person:only-of-type { grid-column: 1 / -1; padding-inline-end: 0; }
    .site-footer__links li + li { margin-top: 12px; }
    .site-footer__details p + p { margin-top: 8px; }
    .site-footer__mascot { width: 106px; }
    .site-footer__bottom { display: flex; flex-direction: column; align-items: flex-start; }
    .site-footer__bottom > p:first-child { order: 2; }
}
