.footer__top-text--mob,
.mob__footer-phone {
    display: none;
}

.footer {
    background-color: var(--rh-black);
}

.footer__top-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 0 20px;
}

.footer__top-contacts {
    max-width: 350px;
    color: var(--secondary-text-color);
}

.footer__top-text {
    margin-bottom: 24px;
}

.footer__phone-text {
    margin-bottom: 20px;
    font-weight: 300;
}

.footer__phone-telegram,
.footer__phone,
.footer__email {
    display: block;
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

.footer__phone {
    position: relative;
}

.footer__phone::before {
    position: absolute;
    top: 2px;
    left: -36px;
    width: 22px;
    height: 24px;
    background-image: url(../../images/footer-phone.svg);
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
}

.footer__map {
    margin-bottom: 30px;
}

.footer__top-map {
    width: 100%;
}

.footer__button-text {
    margin-bottom: 20px;
    color: var(--secondary-text-color);
    font-size: 18px;
    font-weight: 500;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    background-color: var(--rh-black-dark);
}

.footer__bottom-text {
    padding: 10px 0;
    color: var(--color-text-footer);
    font-size: 12px;
    font-weight: 200;
    text-align: center;
    text-transform: uppercase;
}

.footer__logo-block {
    margin-bottom: 40px;
}

.footer__logo {
    width: 150px;
    height: auto;
    color: var(--secondary-text-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 80%;
    object-fit: contain;
}

.footer__logo span {
    color: var(--hashtag);
}

.footer__text {
    margin-bottom: 10px;
    color: var(--muted);
}

.footer__text-2 {
    margin-bottom: 50px;
    color: var(--bcolor);
}

.footer__input-phone {
    margin-bottom: 20px;
}

.footer__info-mob {
    margin-top: 20px;
    margin-bottom: 40px;
}

.footer__info-mob--title {
    margin-bottom: 15px;
    font-weight: 600;
}

.footer__info-mob--time {
    position: relative;
    margin-bottom: 15px;
}

.footer__info-mob--phone {
    position: relative;
}

#footer__top-map iframe {
    width: 100%;
    height: 526px;
    border: 0;
    border-radius: 5px;
}

.footer__address {
    position: relative;
}

.footer__address-text {
    color: var(--secondary-text-color);
    font-size: 16px;
}

.footer__address-text::after {
    position: absolute;
    bottom: -3px;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ff8a96;
    content: "";
}

.footer-mobshino__top-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 0 20px;
    text-align: center;
}

.footer__socials {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-mobshino__socials {
    justify-content: center;
}

.footer__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer--standard {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background:
        radial-gradient(circle at 82% 8%, rgba(239, 27, 36, 0.07), transparent 22%),
        var(--rh-black);
}

.footer--standard .footer__top-wrapper {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(340px, 1fr) minmax(440px, 1.35fr);
    grid-template-areas: "contacts navigation map";
    align-items: stretch;
    gap: 0;
    padding: 36px 0 32px;
}

.footer--standard .footer__top-contacts,
.footer--standard .footer__navigation {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.footer--standard .footer__top-contacts {
    grid-area: contacts;
    max-width: none;
    width: auto;
    order: initial;
    padding-right: 40px;
    text-align: left;
}

.footer--standard .footer__logo-block {
    margin-bottom: 26px;
}

.footer--standard .footer__contact-info {
    max-width: 340px;
}

.footer--standard .footer__map {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.55;
}

.footer--standard .footer__info-mob {
    margin-top: 0;
    margin-bottom: 30px;
}

.footer--standard .footer__info-mob--title {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.footer--standard .footer__info-mob--time {
    margin-bottom: 12px;
}

.footer--standard .footer__info-mob_time--text,
.footer--standard .footer__info-mob_phone--link {
    font-size: 16px;
    line-height: 1.35;
}

.footer--standard .footer__socials {
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 0;
}

.footer--standard .footer__icon {
    width: 44px;
    height: 44px;
}

.footer--standard .footer__navigation {
    grid-area: navigation;
    padding: 20px 40px 0;
}

.footer__navigation-title {
    position: relative;
    margin: 0 0 34px;
    padding-bottom: 18px;
    color: var(--secondary-text-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.footer__navigation-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--rh-red-hover);
    content: "";
}

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

.footer__navigation-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__navigation-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__navigation-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.78;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer--standard #footer__top-map {
    grid-area: map;
    min-width: 0;
    order: initial;
    padding-left: 32px;
}

.footer--standard .footer__address {
    margin-bottom: 16px;
}

.footer--standard .footer__address-text {
    font-size: 18px;
    line-height: 1.35;
}

.footer--standard .footer__address-text::after {
    display: none;
}

.footer--standard .view-large-map-link {
    display: block;
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.footer--standard .view-large-map-link:hover,
.footer--standard .view-large-map-link:focus-visible {
    color: var(--rh-red-hover);
}

.footer--standard #footer__top-map iframe {
    display: block;
    width: 100%;
    height: 430px;
    border-radius: 5px;
}

.footer--standard .footer__bottom {
    min-height: 38px;
    height: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile tire-service pages use a compact footer without the map and navigation. */
.footer--mobile-service .footer-mobshino__top-wrapper {
    justify-content: center;
    text-align: center;
}

.footer--mobile-service .footer__top-contacts {
    max-width: 350px;
}

.footer--mobile-service .footer__socials {
    justify-content: center;
}

@media (max-width: 1180px) {
    .footer--standard .footer__top-wrapper {
        grid-template-columns: minmax(260px, 0.9fr) minmax(220px, 0.7fr);
        grid-template-areas:
            "contacts navigation"
            "map map";
    }

    .footer--standard #footer__top-map {
        margin-top: 36px;
        padding: 30px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .footer--standard #footer__top-map iframe {
        height: 390px;
    }

    .footer--mobile-service .footer-mobshino__top-wrapper {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .footer--mobile-service .footer__top-contacts {
        width: min(320px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .footer--standard .footer__top-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "contacts"
            "map"
            "navigation";
        padding: 30px 0;
    }

    .footer--standard .footer__top-contacts,
    .footer--standard .footer__navigation {
        padding-left: 0;
        padding-right: 0;
        border-right: 0;
    }

    .footer--standard .footer__top-contacts,
    .footer--standard .footer__navigation,
    .footer--standard #footer__top-map {
        max-width: none;
        text-align: center;
    }

    .footer--standard .footer__contact-info {
        margin-right: auto;
        margin-left: auto;
    }

    .footer--standard .footer__socials {
        justify-content: center;
    }

    .footer--standard .footer__navigation {
        margin-top: 10px;
        padding-top: 30px;
    }

    .footer--standard .footer__navigation-list li {
        border-bottom: 0;
    }

    .footer__navigation-title {
        margin-bottom: 20px;
        padding-bottom: 14px;
        font-size: 21px;
    }

    .footer__navigation-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__navigation-link {
        justify-content: center;
        gap: 0;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 14px;
    }

    .footer--standard .footer__navigation-icon {
        display: none;
    }

    .footer--standard #footer__top-map {
        margin-top: 38px;
        padding-top: 0;
        border-top: 0;
    }

    .footer--standard .view-large-map-link {
        text-align: center;
    }

    .footer--standard #footer__top-map iframe {
        height: 300px;
    }

    .footer--mobile-service .footer-mobshino__top-wrapper {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .footer--mobile-service .footer__logo-block {
        margin-bottom: 20px;
    }
}

@media (max-width: 420px) {
    .footer--standard .footer__map,
    .footer--standard .footer__info-mob_time--text,
    .footer--standard .footer__info-mob_phone--link,
    .footer__navigation-link {
        font-size: 14px;
    }

    .footer--standard .footer__info-mob--title {
        font-size: 15px;
    }

    .footer--standard .footer__icon {
        width: 38px;
        height: 38px;
    }

    .footer--standard #footer__top-map iframe {
        height: 250px;
    }

    .footer--mobile-service .footer__top-contacts {
        width: min(302px, 100%);
    }
}
