/* Compact contact and footer shared by all public routes. */
.block_footer_contact {
    padding: 80px 0;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(64px, 7vw, 112px);
}

.block_footer_contact .pic {
    width: 100%;
    height: auto;
    max-height: 390px;
    margin-bottom: 16px;
    aspect-ratio: 3 / 2;
    background-position: center;
    background-size: cover;
}

.block_footer_contact .text {
    margin-bottom: 18px;
    color: #424B50;
    font-size: 15px;
    line-height: 1.5;
}

.block_footer_contact .goldbutton {
    display: inline-flex;
    min-height: 52px;
    padding: 0 28px;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.block_footer_contact h2 {
    max-width: 570px;
    margin: 0 0 28px;
    color: #1F282D;
    font-size: clamp(30px, 2.15vw, 34px);
    line-height: 1.14;
    text-wrap: balance;
}

.block_footer_contact .avatar {
    min-height: 64px;
    height: auto;
    margin: 0 0 20px;
    padding-left: 80px;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 64px;
}

.block_footer_contact .avatar .desc {
    color: #7B8489;
    font-size: 13px;
}

.block_footer_contact .line {
    display: flex;
    min-height: 40px;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
}

.block_footer_contact .halfline {
    display: inline-flex;
    min-height: 40px;
    margin: 0;
    padding: 6px 0;
    align-items: center;
    overflow-wrap: anywhere;
}

.block_footer_contact .line--social {
    min-height: 44px;
    margin-top: 16px;
    gap: 10px;
}

.block_footer_contact .tg,
.block_footer_contact .wa {
    width: 44px;
    height: 44px;
    margin: 0;
    flex: 0 0 44px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 34px;
}

.footer {
    padding: 64px 0 36px;
}

.footer-main {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(48px, 5vw, 88px);
}

.footer-brand {
    display: inline-flex;
    width: fit-content;
}

.footer-logo {
    width: 140px;
    height: auto;
    margin: 0;
}

.footer-links-wrapper {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 48px);
}

.footer-links-block {
    display: flex;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    line-height: normal;
}

.footer-links-block div {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: .08em;
}

.footer-links-block a {
    display: inline-flex;
    min-height: 30px;
    width: fit-content;
    align-items: center;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.35;
}

.footer-social-wrapper {
    display: flex;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.footer-social-wrapper .footer-social-item {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    flex: 0 0 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px;
    border-radius: 50%;
}

.footer-social-wrapper a.footer-social-item {
    transition: opacity 240ms ease, transform 240ms ease;
}

.footer-social-wrapper a.footer-social-item:hover,
.footer-social-wrapper a.footer-social-item:focus-visible {
    opacity: .82;
    transform: scale(1.04);
}

.footer-social-wrapper span.footer-social-item {
    cursor: default;
}

.footer-legal {
    display: flex;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    gap: 28px;
}

.footer-legal a,
.footer-legal span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    color: rgba(255, 255, 255, .42);
    font-size: 13px;
    line-height: 1.35;
}

/* Shared compact showroom/contact standard. The contacts route uses its own sections. */
@media (min-width: 1200px) {
    #pagecontent .block_footer_contact {
        padding: 34px 0;
    }

    #pagecontent .block_footer_contact .footer-contact-grid {
        grid-template-columns: minmax(0, 550px) minmax(0, 1fr);
        align-items: start;
        gap: clamp(64px, 7vw, 104px);
    }

    #pagecontent .block_footer_contact .pic {
        height: 298px;
        max-height: none;
        margin-bottom: 10px;
        aspect-ratio: auto;
    }

    #pagecontent .block_footer_contact .text,
    #pagecontent .block_footer_contact .showroom-map-trigger {
        margin-bottom: 6px;
    }

    #pagecontent .block_footer_contact .goldbutton {
        min-height: 48px;
    }

    #pagecontent .block_footer_contact h2 {
        margin-bottom: 18px;
    }

    #pagecontent .block_footer_contact .avatar {
        margin-bottom: 12px;
    }

    #pagecontent .block_footer_contact .line,
    #pagecontent .block_footer_contact .halfline {
        min-height: 34px;
    }

    #pagecontent .block_footer_contact .halfline {
        padding-block: 3px;
    }

    #pagecontent .block_footer_contact .line--social {
        min-height: 40px;
        margin-top: 8px;
    }

    #pagecontent .block_footer_contact .tg,
    #pagecontent .block_footer_contact .wa {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        background-size: 32px;
    }
}

@media (max-width: 1199.98px) {
    .block_footer_contact {
        padding: 56px 0;
    }

    .footer-contact-grid {
        gap: clamp(40px, 6vw, 64px);
    }

    .block_footer_contact h2 {
        margin-bottom: 24px;
        font-size: clamp(26px, 3vw, 30px);
    }

    .block_footer_contact .goldbutton,
    .block_footer_contact .halfline,
    .footer-links-block a,
        .footer-legal a,
        .footer-legal span {
        min-height: 44px;
    }

    .footer {
        padding: 56px 0 36px;
    }

    .footer-main {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 40px;
    }

    .footer-social-wrapper {
        margin-top: 24px;
        grid-column: 2;
    }

    .footer-social-wrapper .footer-social-item {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        background-size: 32px;
    }

    .footer-legal {
        margin-top: 32px;
        padding-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .block_footer_contact {
        padding: 40px 0;
    }

    .footer-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .block_footer_contact .pic {
        margin-bottom: 14px;
    }

    .block_footer_contact .text {
        margin-bottom: 16px;
    }

    .block_footer_contact .goldbutton {
        width: 100%;
        min-height: 52px;
        padding: 0 20px;
    }

    .block_footer_contact h2 {
        margin-bottom: 22px;
        font-size: clamp(24px, 6.4vw, 28px);
        line-height: 1.15;
    }

    .block_footer_contact .avatar {
        margin-bottom: 16px;
    }

    .block_footer_contact .line {
        min-height: 44px;
    }

    .block_footer_contact .halfline {
        min-height: 44px;
        padding: 7px 0;
    }

    .block_footer_contact .line--social {
        margin-top: 12px;
    }

    .footer {
        padding: 44px 0 32px;
    }

    .footer-main {
        display: block;
    }

    .footer-logo {
        width: 128px;
    }

    .footer-links-wrapper {
        margin-top: 32px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .footer-links-block div {
        margin-bottom: 8px;
    }

    .footer-links-block:last-child {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 12px;
    }

    .footer-links-block:last-child div {
        grid-column: 1 / -1;
    }

    .footer-links-block a {
        width: auto;
        min-height: 44px;
        font-size: 14px;
    }

    .footer-social-wrapper {
        margin-top: 28px;
    }

    .footer-legal {
        margin-top: 28px;
        padding-top: 20px;
        flex-direction: column;
        gap: 0;
    }

    .footer-legal a,
    .footer-legal span {
        min-height: 44px;
    }
}

@media (max-width: 359.98px) {
    .block_footer_contact,
    .footer {
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .footer-links-wrapper {
        column-gap: 14px;
    }

    .footer-links-block:last-child {
        column-gap: 8px;
    }

    .footer-links-block a {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-social-wrapper a.footer-social-item {
        transition-duration: .01ms;
    }
}
