.footer {
    background-color: #000;
    padding: 45px 0 63px;
    color: #959595;
}
.footer__wrapper {
    max-width: 1670px;
    padding: 0 15px;
    margin: 0 auto;
}
.footer__grid {
    display: grid;
    grid-template: 1fr 100px/ 1fr 1fr 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 16px;
}

.footer__company-title,
.footer__phone-title,
.footer__location-title,
.footer__offer-title {
    color: var(--main-light);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 20px;
}
.footer__location-name {
    font-weight: 400;
}
.footer__company-item:not(:last-child),
.footer__offer-item:not(:last-child) {
    margin-bottom: 5px;
}
.footer__payment {
    align-self: end;
    display: flex;
}
.footer__payment-visa {
    margin-right: 26px;
}
.footer__bottom {
    padding-top: 50px;
    border-top: 1px solid #505050;
    display: flex;
    align-items: center;
}
.footer__socials {
    display: grid;
    grid-template: 1fr / 1fr repeat(3, 38px);
    column-gap: 20px;
    margin-left: 175px;
    align-items: center;
}
.footer__socials-title {
    /* display: block; */
    padding-right: 5px;
}
.footer__phone-value {
    display: block;
    margin-bottom: 20px;
}
.footer__location-address {
    font-style: normal;
}
@media screen and (max-width: 1600px) {
    .footer__wrapper {
        max-width: 1310px;
    }
}
@media screen and (max-width: 767px) {
    .footer__grid {
        grid-template: 30px 0.8fr 0.6fr/ 1fr 1fr 1fr;
        gap: 40px 20px;
    }
    .footer__logo {
        grid-column: 1/3;
    }
    .footer__company {
        grid-row: 2/3;
        grid-column: 1/2;
    }
    .footer__phone {
        grid-row: 2/3;
        grid-column: 2/3;
    }
    .footer__location {
        grid-row: 2/3;
        grid-column: 3/4;
    }
    .footer__offer {
        grid-row: 3/4;
        grid-column: 2/4;
    }
    .footer__payment {
        /* align-self: start; */
        grid-row: 3/4;
        grid-column: 1/2;
    }
    .footer__logo img {
        width: 150px;
    }
    .footer__bottom {
        padding-top: 35px;
        display: block;
    }
    .footer {
        padding: 40px 0 45px;
    }
    .footer__socials {
        margin-top: 20px;
        margin-left: 0;
        grid-template: 1fr / 100px repeat(3, 38px);
    }
    .footer__company-title,
    .footer__phone-title,
    .footer__location-title,
    .footer__offer-title {
        margin-bottom: 15px;
    }
}
@media screen and (max-width: 500px) {
    .footer__company-list {
        font-size: 13px;
    }
    .footer__grid {
        grid-template: 30px 0.8fr 0.6fr 30px/ 1fr 1fr;
        gap: 30px 20px;
        margin-bottom: 35px;
    }
    .footer__location {
        grid-row: 3/4;
        grid-column: 1/2;
    }
    .footer__payment {
        grid-row: 4/5;
        grid-column: 1/4;
    }
    .footer__bottom {
        font-size: 12px;
    }
    .footer__socials {
        margin-top: 15px;
        /* grid-template: 1fr / 70px repeat(3, 30px); */
        display: block;
    }
    .footer__socials-title {
        margin-bottom: 15px;
    }
    .footer__socials-link {
        display: block;
        width: 100%;
    }
    .footer__socials-link:not(:last-child) {
        margin-bottom: 6px;
    }
    .footer__socials-link img {
        max-width: 100%;
    }
}
