.footer {
    background-color: #1b1a1b;
    padding-top: 90px;
    padding-bottom: 70px;
    z-index: 1;
    color: #fff;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(160px, 220px) auto auto auto auto;
    justify-content: space-between;
    column-gap: 30px;
    padding-right: 130px;
}

.footer__block {
    min-width: 0;
}

.footer__title {
    font-family: CyGroteskStd-GrandDemi, sans-serif;
    font-size: 14px;
    color: #fff;
    margin-bottom: 40px;
    white-space: nowrap;
    text-transform: uppercase;
}

.footer__logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.footer__logo-link {
    display: block;
    width: 100%;
    max-width: 188px;
}

.footer__logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 20px;
}

.footer__social-title {
    display: block;
    margin-bottom: 20px;
    text-align: left;
}

.footer__social-links {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
}

.footer__social-link {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    transition: background-color .3s ease;
}

.footer__social-link:hover {
    background-color: #d87e59;
}

.footer__social-link--facebook {
    -webkit-mask-image: url("../../img/icons/fb-icon.svg");
    mask-image: url("../../img/icons/fb-icon.svg");
}

.footer__social-link--instagram {
    -webkit-mask-image: url("../../img/icons/insta-icon.svg");
    mask-image: url("../../img/icons/insta-icon.svg");
}

.footer__social-link--telegram {
    -webkit-mask-image: url("../../img/icons/telegram-icon.svg");
    mask-image: url("../../img/icons/telegram-icon.svg");
}

.footer__social-link--youtube {
    -webkit-mask-image: url("../../img/icons/youtube-icon.svg");
    mask-image: url("../../img/icons/youtube-icon.svg");
}

.footer__social-link--tiktok {
    -webkit-mask-image: url("../../img/icons/tiktok-icon.svg");
    mask-image: url("../../img/icons/tiktok-icon.svg");
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    row-gap: 20px;
    column-gap: 40px;
    font-size: 14px;
    font-weight: 300;
    color: #fff;
}

.footer__links-list-products {
    max-width: none;
    max-height: none;
    overflow: visible;
}

.footer__expandable-list {
    align-items: flex-start;
}

.footer__contacts-title {
    margin-bottom: 16px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__contacts-group {
    display: flex;
    flex-direction: column;
}

.footer__contacts-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__contacts-label {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 6px;
}

.footer__contacts-phone {
    font-family: CyGroteskStd-GrandDemi, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: .02em;
}

.footer__contacts-email,
.footer__contacts-address {
    font-size: 13px;
    font-weight: 300;
    color: #fff;
    line-height: 1.5;
    margin-top: 4px;
}

.footer__contacts-address {
    max-width: 280px;
}

.footer__messenger-links {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer__messenger-link {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-mode: alpha;
    mask-mode: alpha;
    transition: background-color .3s ease;
}

.footer__messenger-link--viber {
    -webkit-mask-image: url("../../img/icons/viber-icon.svg");
    mask-image: url("../../img/icons/viber-icon.svg");
}

.footer__messenger-link--telegram {
    -webkit-mask-image: url("../../img/icons/telegram-icon.svg");
    mask-image: url("../../img/icons/telegram-icon.svg");
}

.footer__messenger-link--whatsapp {
    -webkit-mask-image: url("../../img/icons/whatsapp-icon.svg");
    mask-image: url("../../img/icons/whatsapp-icon.svg");
}

.footer a {
    color: inherit;
    transition: color .3s ease;
}

.footer a:hover {
    color: #d87e59;
}

.footer__messenger-link:hover {
    background-color: #d87e59;
}

@media (max-width: 1440px) {
    .footer__inner {
        padding-right: 70px;
    }
}

@media (max-width: 1250px) {
    .footer__inner {
        column-gap: 25px;
    }
}

@media (max-width: 1199px) {
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
        z-index: 0;
    }
    .footer__inner {
        grid-template-columns: minmax(140px, 200px) auto auto auto auto;
        padding-right: 30px;
        column-gap: 20px;
    }
    .footer__title {
        margin-bottom: 24px;
    }
}

@media (max-width: 991px) {
    .footer__inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
        padding-right: 16px;
        padding-left: 16px;
        column-gap: 0;
    }
    .footer__inner > *:not(.footer__logo-wrapper) {
        border-top: 1px solid rgba(255, 255, 255, .1);
        padding-top: 24px;
    }
    .footer__contacts {
        order: -1;
    }
    .footer__logo-wrapper {
        order: -2;
        align-items: center;
        gap: 24px;
    }
    .footer__logo-link {
        max-width: 140px;
    }
    .footer__social-title {
        text-align: center;
    }
    .footer__title {
        margin-bottom: 16px;
    }
    .footer__contacts-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .footer__contacts-phone {
        margin-bottom: 0;
        font-size: 16px;
        white-space: nowrap;
    }
    .footer__messenger-links {
        margin-top: 0;
    }
    .footer__links-list-products {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
    }
}
