/* Footer aligned to the reference structure from public_html_test. */

.site-footer {
    margin-top: 32px;
    padding: 28px 0 24px;
    background: linear-gradient(180deg, #182330 0%, #101923 100%);
    color: rgba(240, 245, 249, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.footer-copy {
    color: rgba(240, 245, 249, 0.72);
    font-size: 14px;
    line-height: 1.6;
}

.footer-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid rgba(245, 122, 31, 0.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.06) 0%, rgba(245, 122, 31, 0.08) 100%);
    color: #fff7ef;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(8, 12, 17, 0.18);
}

.footer-toggle__icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
}

.footer-toggle__icon::before,
.footer-toggle__icon::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.footer-toggle__icon::before {
    left: 0;
    transform: rotate(45deg);
}

.footer-toggle__icon::after {
    right: 0;
    transform: rotate(-45deg);
}

.site-footer.is-mobile-open .footer-toggle__icon::before {
    transform: rotate(-45deg);
}

.site-footer.is-mobile-open .footer-toggle__icon::after {
    transform: rotate(45deg);
}

.footer-menu {
    min-width: 0;
}

.footer-menu__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 22px;
}

.footer-menu__link {
    color: rgba(248, 250, 252, 0.94);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.footer-menu__link:hover,
.footer-menu__link:focus-visible,
.footer-contacts__phone:hover,
.footer-contacts__phone:focus-visible,
.footer-contacts__email:hover,
.footer-contacts__email:focus-visible {
    color: var(--accent-strong);
}

.footer-contacts {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.footer-contacts__phones {
    display: grid;
    gap: 8px;
}

.footer-contacts__phone,
.footer-contacts__email {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.footer-contacts__phone.contact-icon-link,
.footer-contacts__email.contact-icon-link {
    --contact-icon-size: 34px;
    --contact-icon-gap: 11px;
}

.footer-contacts__email {
    font-size: 15px;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.94);
}

.footer-contacts__hours {
    max-width: 260px;
    color: rgba(248, 250, 252, 0.82);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

@keyframes footer-mobile-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-copy {
        grid-column: 1 / -1;
    }

    .footer-menu__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-footer {
        margin-top: 24px;
        padding: 20px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-copy {
        grid-column: auto;
    }

    .footer-toggle {
        display: inline-flex;
    }

    .site-footer[data-mobile-footer] .footer-menu,
    .site-footer[data-mobile-footer] .footer-contacts {
        display: none;
    }

    .footer-menu[hidden],
    .footer-contacts[hidden] {
        display: none !important;
    }

    .site-footer.is-mobile-open .footer-menu {
        display: block;
        padding-top: 2px;
        animation: footer-mobile-reveal 0.24s ease both;
    }

    .site-footer.is-mobile-open .footer-contacts {
        display: grid;
        padding-top: 2px;
        animation: footer-mobile-reveal 0.24s ease both;
    }

    .footer-menu__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
