/* Homepage composition only. Content, routes and noindex stay in the shared
 * template; flatten its layout wrappers without duplicating any information. */
body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3 {
    --footer-ink: #3b4173;
    --footer-muted: #73768b;
    --footer-accent: #c1492e;
    --footer-rule: #3b41731c;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: .9fr 2.2fr .85fr 1.3fr;
    grid-template-areas:
        "brand contacts contacts contacts"
        "topline topline topline topline"
        "navigation navigation navigation addresses"
        "bottomline bottomline bottomline bottomline"
        "copyright payments info info";
    gap: 26px 28px;
    width: min(1268px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 28px;
    color: var(--footer-ink);
    font-family: Roboto, Arial, sans-serif;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3::before,
body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3::after {
    content: "";
    height: 1px;
    background: var(--footer-rule);
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3::before { grid-area: topline; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3::after { grid-area: bottomline; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts :is(
    .footer_top_block_58f7bdc3,
    .footer_bottom_58f7bdc3,
    .footer_logo_copyright_58f7bdc3,
    .footer_top_block_58f7bdc3 > noindex
) { display: contents; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_logo_58f7bdc3 {
    grid-area: brand;
    align-self: center;
    width: 150px;
    max-width: 100%;
    height: auto;
    margin: 0;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_chapter_title_58f7bdc3 {
    margin: 0 0 9px;
    color: var(--footer-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 {
    grid-area: contacts;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px 32px;
    align-content: center;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 > h2 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--footer-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_block_58f7bdc3 { min-width: 0; gap: 0; margin: 0; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_chapter_icon_58f7bdc3 { display: none; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_list_phones_58f7bdc3 { margin: 0; padding: 0; gap: 4px; list-style: none; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 16px;
    align-items: baseline;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 > li:first-child { grid-column: 1 / -1; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 > li:first-child a {
    font-size: clamp(23px, 2.15vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_mail_58f7bdc3 { align-self: center; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_mail_58f7bdc3 > a {
    font-size: clamp(17px, 1.7vw, 22px);
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts :is(.footer_bold_text_58f7bdc3, .footer_phone_text_58f7bdc3) { color: var(--footer-ink); font-size: 14px; line-height: 1.5; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_text_58f7bdc3 { color: var(--footer-muted); font-size: 13px; line-height: 1.5; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_58f7bdc3 {
    grid-area: navigation;
    display: grid;
    grid-template-columns: .9fr 2.2fr .85fr;
    align-items: start;
    gap: 28px;
    min-width: 0;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_58f7bdc3 {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_58f7bdc3:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(7, minmax(20px, auto));
    grid-auto-flow: column;
    align-content: start;
    gap: 8px 20px;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_58f7bdc3:nth-child(2) > .footer_chapter_title_58f7bdc3 { grid-column: 1 / -1; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_link_58f7bdc3 a {
    color: var(--footer-ink);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts a:is(:hover, :focus-visible) { color: var(--footer-accent); text-decoration-color: currentColor; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts a:focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 4px; border-radius: 2px; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 {
    grid-area: addresses;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 18px;
    padding-left: 24px;
    border-left: 1px solid var(--footer-rule);
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 > h2 { margin-bottom: 0; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 .footer_block_58f7bdc3 { padding-left: 13px; border-left: 2px solid var(--footer-accent); }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_copyright_58f7bdc3 {
    grid-area: copyright;
    align-self: center;
    margin: 0;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.5;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_payments_58f7bdc3 {
    grid-area: payments;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    height: auto;
    min-width: 0;
}
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_payment_58f7bdc3 { width: auto; height: 21px; opacity: .7; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_info_58f7bdc3 { grid-area: info; max-width: none; min-width: 0; text-align: right; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_info_description_58f7bdc3 { margin: 0 0 7px; color: var(--footer-muted); font-size: 12px; line-height: 1.5; }
body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_info_link_58f7bdc3 { font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }

@media (max-width: 1100px) {
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3 {
        grid-template-columns: 1fr 2fr;
        grid-template-areas: "brand contacts" "topline topline" "navigation navigation" "addresses addresses" "bottomline bottomline" "copyright payments" "info info";
    }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_58f7bdc3 { grid-template-columns: 1fr 2fr 1fr; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 { gap: 8px 20px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 { grid-template-columns: 1fr; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 28px;
        padding: 22px 0 0;
        border: 0;
        border-top: 1px solid var(--footer-rule);
    }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 > h2 { grid-column: 1 / -1; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_payments_58f7bdc3 { justify-content: flex-end; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_info_58f7bdc3 { text-align: left; }
}
@media (max-width: 700px) {
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts.footer_58f7bdc3 {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "contacts" "topline" "navigation" "addresses" "bottomline" "payments" "info" "copyright";
        gap: 24px;
        padding: 32px 0 26px;
    }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_logo_58f7bdc3 { width: 132px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 { gap: 5px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_contacts_58f7bdc3 .footer_list_phones_58f7bdc3 > li:first-child a { font-size: 27px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_58f7bdc3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_58f7bdc3:nth-child(2) { grid-column: 1 / -1; grid-row: 2; gap: 8px 18px; grid-template-rows: auto repeat(7, minmax(32px, auto)); }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_58f7bdc3:nth-child(3) { grid-column: 2; grid-row: 1; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_navigation_chapter_link_58f7bdc3 a { display: inline-block; padding-block: 5px; line-height: 1.45; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_chapter_title_58f7bdc3 { font-size: 16px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_address_58f7bdc3 { gap: 16px 18px; }
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts .footer_payments_58f7bdc3 { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    body:is(.homepage-refresh-page, .service-refresh-page) #contacts a { transition: none; }
}
