/* Футер как на главной (NEW2026) — подключается на детский сад, продлёнку, лагерь */

.site-footer {
    background-color: #ececec;
    color: var(--color-text-dark, #2c3e50);
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--spacing-sm, 1rem) var(--spacing-md, 1.5rem);
    align-items: start;
    padding-bottom: var(--spacing-sm, 1rem);
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.site-footer .footer-brand-logo {
    display: inline-block;
    line-height: 0;
}

.site-footer .footer-brand-logo-img {
    height: auto;
    max-height: 72px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-footer .footer-brand-tagline {
    font-size: 0.7rem;
    line-height: 1.45;
    color: var(--color-text-gray, #6b7280);
    margin: 0;
}

.site-footer .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer .footer-legal-link {
    font-size: 0.72rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-legal-link:hover {
    color: var(--color-text-dark, #2c3e50);
    text-decoration: underline;
}

.site-footer .footer-credit {
    font-size: 0.68rem;
    color: #9ca3af;
    margin: 0;
    margin-top: 0.25rem;
}

.site-footer .footer-nav-col {
    min-width: 0;
}

.site-footer .footer-nav-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.45rem;
    line-height: 1.25;
}

.site-footer .footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.site-footer .footer-nav-list a {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

.site-footer .footer-nav-list a:hover {
    color: var(--color-text-dark, #2c3e50);
    text-decoration: underline;
}

.site-footer .footer-nav-col--courses,
.site-footer .footer-nav-col--courses-part2 {
    min-width: 0;
}

.site-footer .footer-nav-title--spacer {
    visibility: hidden;
    margin: 0 0 0.45rem;
    line-height: 1.25;
}

.site-footer .footer-aside {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.site-footer .footer-phone {
    font-size: clamp(0.92rem, 0.85vw + 0.55rem, 1.32rem);
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-footer .footer-phone:hover {
    color: var(--color-primary, #4a90e2);
    opacity: 1;
}

.site-footer .footer-aside-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer .footer-aside-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0;
}

.site-footer .footer-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-footer .schedule-item {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #374151;
}

.site-footer .schedule-label {
    font-size: inherit;
    color: #6b7280;
    display: inline;
}

.site-footer .schedule-time {
    font-size: inherit;
    color: var(--color-primary, #4a90e2);
    font-weight: 600;
    display: inline;
}

.site-footer .schedule-time.schedule-off {
    color: #dc2626;
    font-weight: 600;
}

.site-footer .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3d4451;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-social-link:hover {
    background: #2d3340;
    transform: translateY(-2px);
}

.site-footer .footer-social-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer .footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 0.5rem;
    margin-top: 0;
}

.site-footer .footer-copy {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    text-align: center;
}

@media (max-width: 1100px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--spacing-sm, 1rem);
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer .footer-aside {
        grid-column: 1 / -1;
        padding-top: 0.45rem;
        border-top: 1px solid #d1d5db;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: var(--spacing-sm, 1rem) 0 var(--spacing-xs, 0.75rem);
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm, 1rem);
        text-align: center;
    }

    .site-footer .footer-nav-col {
        display: none;
    }

    .site-footer .footer-brand {
        align-items: center;
    }

    .site-footer .footer-brand-tagline {
        text-align: center;
    }

    .site-footer .footer-legal {
        align-items: center;
    }

    .site-footer .footer-aside {
        align-items: center;
        text-align: center;
    }

    .site-footer .footer-aside-heading {
        text-align: center;
    }

    .site-footer .footer-schedule {
        align-items: center;
    }

    .site-footer .schedule-item {
        text-align: center;
    }

    .site-footer .footer-socials {
        justify-content: center;
    }

    .site-footer .footer-brand-logo-img {
        max-height: 56px;
        margin: 0 auto;
    }

    .site-footer .footer-credit {
        text-align: center;
    }

    .site-footer .footer-phone {
        font-size: 1.08rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--spacing-xs, 0.75rem) 0 0.35rem;
    }

    .site-footer .footer-brand-logo-img {
        max-height: 48px;
    }

    .site-footer .footer-brand-tagline {
        font-size: 0.8rem;
    }

    .site-footer .footer-phone {
        font-size: 1.05rem;
    }

    .site-footer .schedule-item {
        font-size: 0.84rem;
    }

    .site-footer .footer-copy {
        font-size: 0.74rem;
    }
}
