footer {
    position: relative;
    background-color: #f4f5f9;
    border-top: 1px solid #cecece;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 900;
    color: #493553;
    padding: 20px;
    box-sizing: border-box;
}

footer .footer-content {
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

footer .footer-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

footer .footer-top .back-to-top {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

footer .footer-top .back-to-top svg {
    height: 14px;
}

footer .footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

footer .footer-group .navigation {
    padding: 0;
    margin: 0;
    list-style: none;
}

footer .social {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .social li svg {
    width: 30px;
}

footer .footer-content > .navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

@media (min-width: 576px) {
    footer .footer-content {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    footer .footer-content {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    footer .footer-content {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    footer .footer-top {
        align-items: center;
        justify-content: center;
    }

    footer .footer-content > .navigation {
        /* flex-direction: column; */
        height: 122px;
        justify-content: flex-start;
        gap: 0;
    }

    footer .footer-content > .navigation li {
        width: 50%;
        font-size: 14px;
    }

    footer .footer-categories {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    footer .footer-group .title {
        position: relative;
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
        border-bottom: 2px dotted #edebee;
        margin: 0;
        cursor: pointer;
    }

    footer .footer-group .title::after {
        position: absolute;
        content: "";
        width: 20px;
        height: 20px;
        top: 50%;
        right: 30px;
        background-image: url(/assets/arrow.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transform: translateY(-50%) rotate(180deg);
    }

    footer .footer-group .navigation {
        max-height: 0;
        overflow: hidden;
        padding-left: 20px;
        padding-top: 25px;
        transition: 0.3s;
    }

    footer .footer-group.active .title::after {
        transform: translateY(-50%) rotate(0);
    }

    footer .footer-group.active .navigation {
        max-height: 1000px;
    }
}
