footer {
    padding: 40px 32px;
    gap: 80px;
    background: #FFFFFF;
}

footer .line {
    width: 100%;
    height: 1px;
    background: #D2D5DA;
    margin-bottom: 24px;
}

footer .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


footer .buttons {
    width: 406px;
    display: flex;
    align-items: center;
    position: relative;
}

footer .buttons ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding-left: 0;
}


footer .buttons li {
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    display: flex;
    align-items: center;
    color: #4B5563;
    text-decoration: none;
}

footer .rights,
footer .rights span,
.rights-tablet,
.rights-tablet span {
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    color: #6D7280;
}

footer .rights,
.rights-tablet {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    position: absolute;
    top: 40px;

    color: #6D7280;
}

.rights-tablet {
    display: none;
}


@media screen and (min-width: 641px) and (max-width: 1024px) {

    footer .line {
        margin-bottom: 16px;
    }

    footer .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        padding-bottom: 128px;
        ;
    }

    footer .footer-container .image {
        width: 150px;
        position: absolute;
        left: 0;
        top: 0;
    }

    footer .footer-container .buttons {
        padding-left: 32px;
        padding-right: 32px;
        position: absolute;
        right: 0;
        top: 0;
    }


    footer .social-networks {
        position: absolute;
        right: 0;
        left: 0;
        margin: auto;
        top: 40px;
        width: 202px;
    }

    footer .rights {
        display: none;
    }

    footer .rights-tablet {
        display: flex;
        position: absolute;
        right: 0;
        left: 0;
        margin: auto;
        top: 110px;

    }
}



@media screen and (max-width: 640px) {

    footer .line {
        margin-bottom: 16px;
    }


    footer .footer-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    footer .footer-container .image {
        width: 120px;
    }

    footer .footer-container .buttons {
        padding: 16px;
    }

    footer .rights {
        top: 110px;
        margin: 0;
        width: calc(100% - 40px);
    }
}


@media screen and (max-width: 400px) {

    footer .buttons {
        width: 100vw;
    }

    footer .buttons ul {
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
}