/**
 * Стили только для: contacts (page-contact-* / slug contacts).
 */

.contact_main_second .lsf__tab_none a:hover {
    background-color: #e7e7e7;
}

.contact_main_second .lsf__tab.active-tab a {
    color: #fff;
    background-color: var(--color-accent) !important;
}

.contact_main_second .lsf__tab a,
.contact_main_second .lsf__tab_none a {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-accent);
    text-transform: inherit;
    width: max-content;
    margin-right: 10px;
}

.contact_main_second .lsf__tab {
    border: none;
    padding: 0;
    width: max-content;
}

.contact_main_second .lsf__tabs-nav {
    display: flex;
    margin: 0 0 27px 0;
    overflow: auto;
}

.contact_main_second .lsf__tab a:hover {
    background-color: #e7e7e7;
}

.contact_main {
    margin-top: 50px;
}

.contact_main_f {
    max-width: 300px;
}

.contact_main_one {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact_main_s {
    max-width: 835px;
}

.contact_main_s img {
    width: 100%;
}

.contact_main_t {
    max-width: 165px;
}

.contact_main_t img {
    width: 100%;
    margin-bottom: 25px;
}

.contact_main_adress {
    font-family: "Roboto", "Arial", sans-serif;
    font-size: 16px;
    margin-bottom: 1px;
    color: var(--color-text);
    padding-bottom: 20px;
    font-weight: 600;
    background-repeat: no-repeat;
}

.contact_main_time {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text);
    padding-left: 30px;
    background-image: url(/wp-content/themes/stomarus/img/contact_main_time.svg);
    background-position-y: 3px;
    background-repeat: no-repeat;
}

.contact_main_email {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text);
    padding-left: 30px;
    background-image: url(/wp-content/themes/stomarus/img/contact_main_email.svg);
    background-position-y: 3px;
    background-repeat: no-repeat;
}

.contact_main_email a {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
}

.contact_main_email a:hover {
    text-decoration: underline;
}

.contact_main_location {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--color-text);
    padding-left: 30px;
    background-image: url(/wp-content/themes/stomarus/img/location-f.svg);
    background-repeat: no-repeat;
    background-position-y: 2px;
}

.contact_main_location a {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
}

.contact_main_location a:hover {
    text-decoration: underline;
}

.contact_main_taxi {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--color-text);
    padding-left: 30px;
    background-image: url(/wp-content/themes/stomarus/img/yandex_taxi_f.png);
    background-position-y: 1px;
    background-size: 22px;
    background-repeat: no-repeat;
}

.contact_main_taxi a {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
}

.contact_main_taxi a:hover {
    text-decoration: underline;
}

.contact_main_phone {
    padding-left: 30px;
    background-image: url(/wp-content/themes/stomarus/img/contact_main_phone.svg);
    background-repeat: no-repeat;
    margin-bottom: 30px;
    background-position-y: 3px;
}

.contact_main_phone a {
    display: block;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-accent);
}

.contact_main_phone a:hover {
    text-decoration: underline;
}

.contact_main_phone_one {
    background-image: url(/wp-content/themes/stomarus/img/a1.png);
    background-size: 22px;
    white-space: nowrap;
}

.contact_main_phone_one:hover {
    background-image: url(/wp-content/themes/stomarus/img/a1-c.png);
    background-size: 22px;
}

.contact_main_phone_two {
    background-image: url(/wp-content/themes/stomarus/img/mts.png);
    background-size: 22px;
    white-space: nowrap;
}

.contact_main_phone_two:hover {
    background-image: url(/wp-content/themes/stomarus/img/mts-c.png);
    background-size: 22px;
}

.contact_main_phone_one,
.contact_main_phone_two {
    background-repeat: no-repeat;
    padding-right: 26px;
    line-height: 22px;
    width: max-content;
    background-position: 100%;
    margin-bottom: 5px;
}

.contact_main_scroll_to_form {
    width: max-content;
    color: #fff;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    background: var(--color-accent);
    padding: 12px 30px;
    display: block;
    border: 1px solid var(--color-accent);
    white-space: nowrap;
}

.contact_main_scroll_to_form:hover {
    color: var(--color-accent);
    background: #fff;
    border: 1px solid var(--color-accent);
}

.contact_main_second {
    margin: 100px 0;
}

.contact_main_second .tabs {
    background-color: transparent;
}

.contact_main_second .contact_main_second_lsf__tab-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact_main_second .contact_main_second_lsf__tab-item div {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #605C5C;
}

.contact_main_second .contact_main_second_lsf__tab-item div img {
    width: 100%;
}

.contact_main_second .contact_main_second_lsf__tab-item a {
    color: var(--color-text);
    text-decoration: underline;
}

.contact_main_second .contact_main_second_lsf__tab-item a:hover {
    color: var(--color-accent);
}

.scroll_to_form_contact .home_callback_main {
    padding: 40px 0 8px 0;
}

.scroll_to_form_contact .home_callback_main img {
    left: auto;
    right: 0;
}

.scroll_to_form_contact {
    margin-bottom: 100px;
}

.contact_main_three_main {
    display: flex;
    justify-content: space-between;
}

.contact_main_three_main div {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    width: 49%;
}

.contact_main_three_main div a {
    color: var(--color-text);
}

.contact_main_three_main div span {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    display: block;
    color: #A3A3A3;
    margin-top: 20px;
    margin-bottom: 6px;
}

.contact_main_three_link {
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF !important;
    padding: 9px 30px 9px 61px;
    width: max-content;
    background: var(--color-accent);
    display: block;
    background-image: url(/wp-content/themes/stomarus/img/contact_main_three_link.svg);
    background-repeat: no-repeat;
    background-position: 20% 45%;
    margin-top: 20px;
}

.contact_main_three_link:hover {
    background-color: var(--color-text);
    color: #fff;
}

.page-template-page-contact #scroll_to_form .home_callback_main img {
    width: 270px;
}

@media only screen and (max-width: 1260px) {
    .contact_main_s {
        align-self: stretch;
        display: flex;
        margin-bottom: 30px;
    }

    .contact_main_s img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .contact_main_scroll_to_form {
        padding: 8px 29px;
    }

    .contact_main_second {
        margin: 70px 0;
    }

    .page-template-page-contact .scroll_to_form_contact .home_callback_main img {
        left: auto;
        right: 1%;
    }

    .contact_main_s {
        max-width: 68%;
    }
}

@media only screen and (max-width: 1024px) {
    .contact_main_one {
        flex-wrap: wrap;
    }

    .contact_main_f {
        max-width: 29%;
        width: 29%;
    }

    .contact_main_second .contact_main_second_lsf__tab-item div {
        width: 100%;
    }

    .contact_main_second .contact_main_second_lsf__tab-item {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .page-template-page-contact .scroll_to_form_contact .home_callback_main img {
        right: 0;
    }

    .page-template-page-contact .home_callback_main_title,
    .page-template-page-contact .home_callback_main_text {
        text-align: left;
    }

    .page-template-page-contact .home_callback_main_text {
        margin-left: 0;
    }

    .page-template-page-contact .flex_call ~ p {
        width: 55%;
    }

    .page-template-page-contact .scroll_to_form_contact {
        margin-bottom: 35px;
    }

    .contact_main_three_main div {
        width: 48%;
    }
}

@media only screen and (max-width: 768px) {
    .page-template-page-contact #scroll_to_form .home_callback_main img {
        width: 185px;
    }

    .contact_main_f {
        max-width: 100%;
        width: 100%;
    }

    .contact_main_s {
        max-width: 100%;
        margin-bottom: 10px;
        margin-top: 30px;
    }

    .contact_main_t {
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .contact_main_three_main {
        flex-wrap: wrap;
    }

    .contact_main_three_main div {
        width: 100%;
    }

    .contact_main_t img {
        width: 48.5%;
        margin-bottom: 25px;
    }

    .contact_main_phone,
    .contact_main_adress,
    .contact_main_time,
    .contact_main_email {
        margin-bottom: 20px;
        padding-top: 2px;
    }

    .contact_main {
        margin-top: 33px;
    }

    .contact_main_second {
        margin: 20px 0;
    }

    .contact_main_second .tabs {
        width: 100%;
    }

    .page-template-page-contact .flex_call ~ p {
        width: 100%;
    }

    .contact_main_adress,
    .contact_main_time,
    .contact_main_phone a,
    .contact_main_email,
    .contact_main_second .lsf__tab a,
    .contact_main_three_link,
    .contact_main_scroll_to_form,
    .contact_main_second .contact_main_second_lsf__tab-item div,
    .contact_main_three_main div,
    .contact_main_three_main div span {
        font-size: 14px;
    }

    .contact_main_second .lsf__tab a,
    .contact_main_second .lsf__tab_none a {
        padding: 5px 15px 5px 15px;
        display: flex;
        align-items: center;
        font-size: 14px;
    }

    /* Иконка слева — не перекрывать подпись (глобальный padding 60px сбрасывался выше). */
    .contact_main_second .lsf__tab a.metro,
    .contact_main_second .lsf__tab a.car {
        padding: 5px 14px 5px 46px;
        background-position: 12px center;
        background-size: 22px auto;
        white-space: nowrap;
    }

    .contact_main_second .lsf__tab_none a.taxi,
    .contact_main_second .lsf__tab_none a.route {
        padding: 5px 14px 5px 46px;
        background-position: 12px center;
        background-size: 22px auto;
    }

    .contact_main_second .lsf__tab:last-child a {
        margin-right: 0;
    }

    .contact_main_second .lsf__tabs-nav {
        margin: 0 0 15px 0;
    }

    .contact_main_second .contact_main_second_lsf__tab-item > div + div {
        margin-top: 16px;
    }
}
