footer {
    width: 100%;

    background: var(--secondaryColor);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px 80px;

    overflow: hidden;
}

.contacts {
    width: 100%;

    display: flex;
    flex-wrap: wrap;

    margin-bottom: 40px;
}

.contact {
    width: calc(25% - 15px);

    display: flex;
    flex-direction: column;
}

.contact:not(.contact:last-child) {
    margin-right: 20px;
}

.contact > h3 {
    color: var(--textColor);

    margin-bottom: 10px;
}

.contact > a {
    width: fit-content;
    
    color: var(--textColor);

    margin-top: 10px;

    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    transition: 0.5s;
}

.contact > a:hover {
    color: var(--primaryColor);
}

.copyright {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.copyright > span {
    color: var(--textColor);

    font-size: 12px;
    line-height: 1.4;

    margin-bottom: 10px;
}

.solerup-link {
    color: var(--textColor);

    font-size: 12px;
    line-height: 1.4;
}

.solerup-link > span {
    color: var(--primaryColor);

    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    transition: 0.5s;
}

@media only screen and (max-width: 800px) {
    footer {
        padding: 40px;
    }
}

@media only screen and (max-width: 600px) {
    footer {
        padding: 20px;
    }

    .contacts {
        margin-bottom: 20px;
    }

    .contact {
        width: calc(50% - 10px);
    }

    .contact:not(.contact:last-child) {
        margin-right: 0;
    }

    .contact:nth-child(odd) {
        margin-right: 20px;
    }

    .contact:nth-child(-n+2) {
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 400px) {
    .contact {
        width: 100%;
    }

    .contact:nth-child(odd) {
        margin-right: 0;
    }

    .contact:nth-child(-n+2) {
        margin-bottom: 0;
    }

    .contact:not(.contact:last-child) {
        margin-bottom: 20px;
    }
}