/* EcoBrus Contacts: shared inner-page shell and a calm visitor/contact flow. */

.contacts-page {
    --eco-ink: #24364f;
    --eco-muted: #617083;
    --eco-teal: #0ea498;
    --eco-teal-dark: #087d75;
    --eco-line: #dbe4e8;
    --eco-soft: #f5f8f8;
    --eco-soft-blue: #edf4f7;
    overflow-x: hidden;
    background: #fff;
    color: var(--eco-ink);
}

.contacts-page .header {
    position: relative;
    z-index: 60;
    margin: 0;
    background: #eef0f0;
}

.contacts-page .header-bot {
    border-color: rgba(36, 54, 79, .09);
}

.contacts-page .header .logo {
    background-image: url(../images/logo.png);
}

.contacts-page .header .h-phone a {
    color: #111;
}

.contacts-page .header:not(.fixed) .current-city-active {
    color: var(--eco-teal);
}

.contacts-page .header:not(.fixed) .ecobrus-search-entry,
.contacts-page .header:not(.fixed) .ecobrus-favorites-entry {
    color: var(--eco-ink);
}

.contacts-page .header .navi-h_link {
    color: #0871ad;
}

.contacts-page .header .navi-h_item.active .navi-h_link,
.contacts-page .header .navi-h_link:hover,
.contacts-page .header .navi-h_link:focus-visible {
    color: var(--eco-teal);
}

.contacts-page .content,
.contacts-page .content--padtop {
    min-height: 0;
    padding-top: 0;
    background: #fff;
}

.contacts-page .content > .container[itemscope][itemtype*="BreadcrumbList"] {
    padding-top: 20px;
}

.contacts-page .breadcrumbs {
    margin-bottom: 0;
    padding-top: 0;
    color: var(--eco-muted);
}

.contacts-page .contacts-section {
    padding: 28px 0 86px;
}

.contacts-page .contacts-section > .container:first-child h1 {
    max-width: 980px;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--eco-ink);
    font-size: clamp(40px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.contacts-page .contacts-section > .container:first-child h1::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 20px;
    border-radius: 2px;
    background: var(--eco-teal);
    content: "";
}

.contacts-page .contacts-section .descr-text {
    max-width: 850px;
    margin: 22px 0 38px;
    color: var(--eco-muted);
    font-size: 17px;
    line-height: 1.58;
}

.contacts-page .contacts-section .descr-text p {
    margin: 0;
}

/* Exhibition photo + live Yandex map */
.contacts-page .contact-location-media {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 500px;
    margin: 0;
    border: 1px solid var(--eco-line);
    border-radius: 16px;
    background: var(--eco-soft);
    box-shadow: 0 12px 34px rgba(36, 54, 79, .055);
}

.contacts-page .contacts-section_maps_pic,
.contacts-page .contacts-section_maps #map2 {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    height: 500px;
}

.contacts-page .contacts-section_maps_pic {
    border-right: 1px solid var(--eco-line);
    background: #e9efef;
}

.contacts-page .contacts-section_maps_pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contacts-page .contacts-section_maps #map2 > ymaps,
.contacts-page .contacts-section_maps #map2 .ymaps-2-1-79-map {
    width: 100% !important;
    height: 100% !important;
}

.contacts-page .contacts-download {
    margin: 18px 0 0;
    text-align: left;
}

.contacts-page .contacts-download a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid var(--eco-line);
    border-radius: 10px;
    background: #fff;
    color: var(--eco-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.contacts-page .contacts-download a span {
    padding: 0;
}

.contacts-page .contacts-download a span::after {
    display: none;
    content: none;
}

.contacts-page .contacts-download a::before {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url(../images/ic_download.svg) center / contain no-repeat;
    content: "";
}

.contacts-page .contacts-download a:hover,
.contacts-page .contacts-download a:focus-visible {
    border-color: rgba(14, 164, 152, .45);
    color: var(--eco-teal-dark);
}

/* ContactDetails */
.contacts-page .contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: min(1170px, calc(100% - 40px));
    margin: 54px auto 0;
}

.contacts-page .contact-details .contacts-section_box,
.contacts-page .contact-details .contacts-section_box.bg {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--eco-line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.contacts-page .contact-details .contacts-section_box.bg {
    background: var(--eco-soft);
}

.contacts-page .contact-details .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 30px 32px 32px;
}

.contacts-page .contacts-section_box_title {
    margin: 0 0 22px;
    color: var(--eco-ink);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.18;
    text-align: left;
    text-transform: lowercase;
}

.contacts-page .contacts-section_box_title::first-letter {
    text-transform: uppercase;
}

.contacts-page .contacts-section_box_addr,
.contacts-page .contacts-section_box_data {
    margin: 0 0 20px;
    color: var(--eco-ink);
    font-size: 17px;
    line-height: 1.6;
}

.contacts-page .contacts-section_box_addr p,
.contacts-page .contacts-section_box_data p,
.contacts-page .contacts-section_box > .container > p {
    margin: 0;
    color: var(--eco-muted);
    font-size: 16px;
    line-height: 1.62;
}

.contacts-page .contacts-section_box_addr p:first-child:empty,
.contacts-page .contacts-section_box_addr p:first-child:has(span:empty) {
    display: none;
}

.contacts-page .contacts-section_box_addr p:nth-child(2) {
    position: relative;
    padding-left: 34px;
    color: var(--eco-ink);
    font-size: 18px;
    font-weight: 550;
}

.contacts-page .contacts-section_box_addr p:nth-child(2)::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 23px;
    height: 23px;
    background: url(../images/icons/location.png) center / contain no-repeat;
    content: "";
}

.contacts-page .contacts-section_box_data p {
    color: var(--eco-muted);
}

.contacts-page .contact-details__phone,
.contacts-page .contact-details__email {
    color: var(--eco-ink);
    text-decoration: none;
}

.contacts-page .contact-details__phone {
    display: inline-block;
    margin: 3px 0 9px;
    color: var(--eco-ink);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}

.contacts-page .contact-details__email {
    color: var(--eco-teal-dark);
    font-size: 17px;
    font-weight: 550;
}

.contacts-page .contact-details__phone:hover,
.contacts-page .contact-details__phone:focus-visible,
.contacts-page .contact-details__email:hover,
.contacts-page .contact-details__email:focus-visible {
    color: var(--eco-teal);
    text-decoration: underline;
}

/* Shared office lead form */
.contacts-page.main-page .order_widget.consult {
    margin: 0;
    padding: 56px 0;
    background: var(--eco-soft-blue);
}

.contacts-page .order_widget .consult_table {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .8fr) minmax(180px, .8fr) minmax(180px, .72fr);
    gap: 14px;
    align-items: center;
}

.contacts-page .order_widget .consult_col,
.contacts-page .order_widget .consult_col.w1,
.contacts-page .order_widget .consult_col.w2,
.contacts-page .order_widget .consult_col.w3 {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
}

.contacts-page .order_widget .consult_name {
    color: var(--eco-ink);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.18;
}

.contacts-page .order_widget .form-block_inp {
    margin: 0;
}

.contacts-page .order_widget input,
.contacts-page .order_widget .btn-blue {
    width: 100%;
    height: 52px;
    margin: 0;
    border-radius: 10px;
    font-size: 16px;
}

.contacts-page .order_widget input {
    border: 1px solid var(--eco-line);
    background: #fff;
    color: var(--eco-ink);
}

.contacts-page .order_widget .btn-blue {
    border: 0;
    background: var(--eco-teal);
    color: #fff;
    font-weight: 650;
}

.contacts-page .order_widget .btn-blue:hover,
.contacts-page .order_widget .btn-blue:focus-visible {
    background: var(--eco-teal-dark);
}

.contacts-page .order_widget .consult-checkbox {
    margin: 15px 0 0 calc(27.3% + 14px);
    color: var(--eco-muted);
}

.contacts-page .order_widget .consult-checkbox a {
    color: var(--eco-muted);
}

/* SocialLinks */
.contacts-page .our-social {
    margin: 0;
    padding: 46px 0 48px;
    background: #fff;
    color: var(--eco-ink);
    font-weight: 400;
    text-align: center;
}

.contacts-page .our-social p {
    margin: 0 0 22px;
    color: var(--eco-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: lowercase;
}

.contacts-page .our-social p::first-letter {
    text-transform: uppercase;
}

.contacts-page .our-social .social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.contacts-page .our-social .social li {
    margin: 0;
}

.contacts-page .our-social .social a {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid var(--eco-line);
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-size: 22px 22px;
    box-shadow: 0 5px 14px rgba(36, 54, 79, .045);
    opacity: .78;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.contacts-page .our-social .social a:hover,
.contacts-page .our-social .social a:focus-visible {
    border-color: rgba(14, 164, 152, .55);
    opacity: 1;
    transform: translateY(-2px);
}

/* CompanyRequisites presentation shared visually with About */
.contacts-page .requisites {
    margin: 0;
    padding: 8px 0 82px;
    background: #fff;
    color: var(--eco-ink);
    text-align: left;
}

.contacts-page .requisites .container {
    padding: 30px 32px;
    border: 1px solid var(--eco-line);
    border-radius: 14px;
    background: var(--eco-soft);
}

.contacts-page .requisites h4 {
    margin: 0 0 20px;
    color: var(--eco-ink);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: lowercase;
}

.contacts-page .requisites h4::first-letter {
    text-transform: uppercase;
}

.contacts-page .requisites p {
    margin: 0;
    color: var(--eco-ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.68;
}

@media (max-width: 1024px) {
    .contacts-page .contact-location-media {
        min-height: 450px;
    }

    .contacts-page .contacts-section_maps_pic,
    .contacts-page .contacts-section_maps #map2 {
        height: 450px;
    }

    .contacts-page .order_widget .consult_table {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-page .order_widget .consult_col.w1 {
        grid-column: 1 / -1;
    }

    .contacts-page .order_widget .consult_col.w3 {
        grid-column: 2;
    }

    .contacts-page .order_widget .consult-checkbox {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .contacts-page .header,
    .contacts-page .header.fixed {
        background: #fff;
        box-shadow: 0 1px 0 var(--eco-line), 0 5px 16px rgba(36, 54, 79, .055);
    }

    .contacts-page .header-top {
        border-bottom: 1px solid var(--eco-line);
        background: #fff;
    }

    .contacts-page .header .logo,
    .contacts-page .header.fixed .logo {
        background-image: url(../images/logo.png);
        background-repeat: no-repeat;
        background-size: contain;
    }

    .contacts-page .contacts-section {
        padding: 24px 0 58px;
    }

    .contacts-page .contacts-section > .container:first-child h1 {
        font-size: 35px;
        line-height: 1.1;
    }

    .contacts-page .contacts-section > .container:first-child h1::after {
        width: 48px;
        height: 3px;
        margin-top: 17px;
    }

    .contacts-page .contacts-section .descr-text {
        margin: 18px 0 28px;
        font-size: 16px;
        line-height: 1.55;
    }

    .contacts-page .contact-location-media {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 14px;
    }

    .contacts-page .contacts-section_maps_pic {
        height: 340px;
        border-right: 0;
        border-bottom: 1px solid var(--eco-line);
    }

    .contacts-page .contacts-section_maps #map2 {
        height: 320px;
    }

    .contacts-page .contacts-download {
        margin-top: 14px;
    }

    .contacts-page .contacts-download a {
        width: 100%;
        justify-content: center;
    }

    .contacts-page .contact-details {
        grid-template-columns: 1fr;
        gap: 14px;
        width: calc(100% - 40px);
        margin-top: 38px;
    }

    .contacts-page .contact-details .container {
        padding: 24px 22px 26px;
    }

    .contacts-page .contacts-section_box_title {
        margin-bottom: 18px;
        font-size: 25px;
    }

    .contacts-page .contacts-section_box_addr p:nth-child(2) {
        padding-left: 31px;
        font-size: 17px;
    }

    .contacts-page .contact-details__phone {
        font-size: 24px;
    }

    .contacts-page.main-page .order_widget.consult {
        padding: 44px 0;
    }

    .contacts-page .order_widget .consult_table {
        display: block;
    }

    .contacts-page .order_widget .consult_col,
    .contacts-page .order_widget .consult_col.w1,
    .contacts-page .order_widget .consult_col.w2,
    .contacts-page .order_widget .consult_col.w3 {
        display: block;
        width: 100%;
        margin: 0 0 12px;
    }

    .contacts-page .order_widget .consult_name {
        margin-bottom: 20px;
        font-size: 26px;
    }

    .contacts-page .order_widget .consult-checkbox {
        margin-top: 5px;
    }

    .contacts-page .our-social {
        padding: 38px 0 42px;
    }

    .contacts-page .our-social p {
        margin-bottom: 19px;
        font-size: 22px;
    }

    .contacts-page .our-social .social {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contacts-page .requisites {
        padding: 4px 0 58px;
    }

    .contacts-page .requisites .container {
        width: calc(100% - 40px);
        padding: 24px 22px;
    }

    .contacts-page .requisites h4 {
        margin-bottom: 17px;
        font-size: 25px;
    }

    .contacts-page .requisites p {
        font-size: 16px;
        line-height: 1.62;
    }
}

@media (max-width: 390px) {
    .contacts-page .contacts-section_maps_pic {
        height: 320px;
    }

    .contacts-page .contacts-section_maps #map2 {
        height: 300px;
    }

    .contacts-page .contact-details,
    .contacts-page .requisites .container {
        width: calc(100% - 32px);
    }
}
