/*
 * Страница /contacts/ — контакты и карта
 */

html.mw-contacts {
    --mw-contacts-accent: #EB4036;
    --mw-contacts-accent-hover: #d6362c;
    --mw-contacts-ink: #131a1e;
    --mw-contacts-muted: rgba(19, 26, 30, 0.62);
    --mw-contacts-line: rgba(19, 26, 30, 0.12);
    --primary-color-base: #EB4036;
    --primary-color-l-5: #d6362c;
    --primary-color-d-5: #c42e25;
}

html.mw-contacts,
html.mw-contacts body {
    overflow-x: hidden;
}

html.mw-contacts .mosaic-crumbs--u-il34i0uoy {
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

html.mw-contacts .mosaic-crumbs__item_link--u-ik176n4nq {
    color: var(--mw-contacts-accent);
    opacity: 1;
    text-decoration: none;
}

html.mw-contacts .mosaic-crumbs__item_link--u-ik176n4nq:hover {
    color: var(--mw-contacts-accent-hover);
}

html.mw-contacts .mosaic-crumbs__last--u-id4cppw9k {
    color: var(--mw-contacts-ink);
    opacity: 1;
}

html.mw-contacts .page-title--u-id4ryxzo8 {
    color: var(--mw-contacts-ink);
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
}

html.mw-contacts .mosaic-popup__close--u-izbayip7a,
html.mw-contacts .side-panel__button-close--u-iki0lgea4,
html.mw-contacts .side-panel__button-open--u-izkrt33zv {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-contacts .div--u-i7w4ftx7p,
html.mw-contacts .mosaic-form--u-if8bri88i .div--u-i7w4ftx7p,
html.mw-contacts .div--u-ifqtfrgl2 {
    background-color: #EB4036 !important;
    background-image: none !important;
}

html.mw-contacts .div--u-ijdnwz0fa,
html.mw-contacts .div--u-i9r512qsz {
    background-color: #d6362c !important;
}

.mw-contacts-lead {
    margin: 0 0 28px;
    max-width: 42rem;
    color: var(--mw-contacts-muted);
    font-family: Rubik, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

html.mw-contacts .container--u-i8cpiytvm {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mw-contacts-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 48px;
}

.mw-contacts-info {
    min-width: 0;
    width: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--mw-contacts-line);
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mw-contacts-map-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: 520px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--mw-contacts-line);
    background: #e8e8e8;
    align-self: stretch;
}

.mw-contacts-map {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

.mw-contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mw-contacts-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    min-width: 0;
}

.mw-contacts-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(235, 64, 54, 0.1);
    color: var(--mw-contacts-accent);
    font-size: 22px;
}

.mw-contacts-item__body {
    min-width: 0;
    flex: 1 1 auto;
}

.mw-contacts-item__label {
    display: block;
    margin-bottom: 4px;
    font-family: Rubik, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: var(--mw-contacts-muted);
}

.mw-contacts-item__value {
    margin: 0;
    font-family: Rubik, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--mw-contacts-ink);
    overflow-wrap: anywhere;
}

.mw-contacts-item__link {
    color: var(--mw-contacts-accent);
    text-decoration: none;
}

.mw-contacts-item__link:hover {
    color: var(--mw-contacts-accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mw-contacts-socials {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mw-contacts-line);
}

.mw-contacts-socials__label {
    display: block;
    margin-bottom: 12px;
    font-family: Rubik, sans-serif;
    font-size: 13px;
    color: var(--mw-contacts-muted);
}

.mw-contacts-socials__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mw-contacts-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #EB4036;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease;
}

.mw-contacts-social:hover {
    background: #131a1e;
}

.mw-contacts-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 60%;
}

.mw-contacts-social__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mw-contacts-social__icon path {
    fill: #fff;
}

.mw-contacts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.mw-contacts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--mw-contacts-accent);
    color: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}

.mw-contacts-btn:hover {
    background: var(--mw-contacts-accent-hover);
    color: #fff;
}

.mw-contacts-btn:active {
    transform: scale(0.98);
}

.mw-contacts-btn--ghost {
    background: transparent;
    border: 1px solid var(--mw-contacts-line);
    color: var(--mw-contacts-ink);
}

.mw-contacts-btn--ghost:hover {
    border-color: var(--mw-contacts-accent);
    color: var(--mw-contacts-accent);
    background: transparent;
}

@media (max-width: 991px) {
    .mw-contacts-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mw-contacts-map-wrap {
        min-height: 400px;
        height: 400px;
    }

    .mw-contacts-lead {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .mw-contacts-info,
    .mw-contacts-map-wrap {
        border-radius: 16px;
    }

    .mw-contacts-info {
        padding: 20px 16px;
    }

    .mw-contacts-actions {
        flex-direction: column;
        margin-top: 24px;
    }

    .mw-contacts-btn {
        width: 100%;
        min-height: 48px;
    }

    .mw-contacts-map-wrap {
        min-height: 300px;
        height: 300px;
    }

    .mw-contacts-lead {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .mw-contacts-layout {
        padding-bottom: 32px;
        gap: 16px;
    }
}
