.tdi-footer {
    padding: 48px 0 24px;
    background: #030606;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tdi-footer__main {
    display: grid;
    grid-template-columns: 1.25fr 1.7fr 1fr;
    gap: 56px;
    padding-bottom: 34px;
}

.tdi-footer__logo {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 22px;
    text-decoration: none;
    color: #fff;
}

.tdi-footer__logo img,
.tdi-footer__logo .custom-logo {
    max-width: 112px;
    height: auto;
    display: block;
}

.tdi-footer__logo-main {
    font-size: 38px;
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
}

.tdi-footer__logo-sub {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.45em;
    color: #fff;
}

.tdi-footer__company-name {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 800;
    color: #fff;
}

.tdi-footer__requisites,
.tdi-footer__address {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
}

.tdi-footer__requisites p,
.tdi-footer__address {
    margin: 0;
}

.tdi-footer__requisites strong {
    color: #fff;
    font-weight: 700;
}

.tdi-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.tdi-footer__menu-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
}

.tdi-footer__menu-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: #e52d24;
}

.tdi-footer__menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdi-footer__menu-list li {
    margin-bottom: 11px;
}

.tdi-footer__menu-list li:last-child {
    margin-bottom: 0;
}

.tdi-footer__menu-list a,
.tdi-footer__contact-link,
.tdi-footer__bottom a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    transition: color .2s ease;
}

.tdi-footer__menu-list a {
    font-size: 14px;
    line-height: 1.4;
}

.tdi-footer__menu-list a:hover,
.tdi-footer__contact-link:hover,
.tdi-footer__bottom a:hover {
    color: #e52d24;
}

.tdi-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tdi-footer__contact-link {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #fff;
}

.tdi-footer__time {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
}

.tdi-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #e52d24;
    border-radius: 7px;
    background: #e52d24;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.tdi-footer__button:hover {
    background: #ff382f;
    border-color: #ff382f;
    color: #fff;
    transform: translateY(-2px);
}

.tdi-footer__bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tdi-footer__bottom .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tdi-footer__bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
}

.tdi-footer__bottom p,
.tdi-footer__bottom a {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 991px) {
    .tdi-footer__main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tdi-footer__nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .tdi-footer {
        padding: 40px 0 22px;
    }

    .tdi-footer__nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tdi-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .tdi-footer__bottom .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .tdi-footer__bottom-links {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .tdi-footer__main {
        gap: 28px;
        padding-bottom: 28px;
    }

    .tdi-footer__requisites,
    .tdi-footer__address {
        max-width: 100%;
        font-size: 13px;
    }

    .tdi-footer__button {
        width: 100%;
    }
}
