@import "../../assets/styles/icons.css";

.footer {
    display: flex;
    gap: 30px;
    padding: 150px 120px 125px 120px;
    background: #272A29;
    color: var(--white);
    font-size: 14px;
    white-space: nowrap;
    margin-top: auto;
}

.footer-item {
    flex: 1 1 calc(25% - 30px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-title {
    font-size: 34px;
    font-weight: 700;
}

.footer-copyright {
    color: var(--dark-40);
    font-size: 12px;
    line-height: normal;
}

.footer-copyright-links {
    display: flex;
    gap: 4px;
    text-decoration: underline;
}

.footer-links-list-wrapper, .footer-links-list, .footer-contacts-wrapper, .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-list, .footer-contacts {
    gap: 8px;
    color: var(--dark-20);
    font-size: 14px;
}

.footer-links-list-title, .footer-contacts-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
}

a.footer-links-list-title {
    text-decoration: underline;
}

.footer-contacts-links {
    display: flex;
    gap: 16px;

    .icon {
        display: inline-block;
        width: 32px;
        height: 32px;
    }


}

.footer-contacts-address {
    color: var(--dark-20);
    line-height: normal;
}

@media screen and (max-width: 1024px) {
    .footer {
        flex-wrap: wrap;
        padding: 100px 40px;
    }

    .first-list, .second-list {
        flex: 1 1 calc(50% - 30px);
    }

    .first-list {
        order: 3;
    }

    .second-list {
        order: 2;
    }

    .copyright {
        flex: 1 1 100%;
        order: 1;
    }

    .contacts {
        flex: 1 1 100%;
        order: 4;
    }
}

@media screen and (max-width: 590px) {
    .footer {
        padding: 100px 16px;
    }

    .copyright, .first-list, .second-list, .contacts {
        flex: 1 1 100%;
    }

    .first-list {
        order: 2;
    }

    .second-list {
        order: 3;
    }
}
