/* =========================================================
   TOUCHMEDICAL — CONTACTS PAGE
========================================================= */

.tm-contacts-page {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.tm-contacts-content {
    width: 100%;
    color: var(--tm-color-text, #111111);
    font-family: var(--tm-font, 'Manrope', sans-serif);
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.tm-contacts-main > .tm-container {
    padding-top: 32px;
}

.tm-contacts-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 24px;

    color: #66706A;

    font-family: var(--tm-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.tm-contacts-breadcrumbs a {
    color: inherit !important;
    text-decoration: none !important;
}

.tm-contacts-breadcrumbs a:hover {
    color: var(--tm-color-button) !important;
}

.tm-contacts-breadcrumbs > span[aria-hidden="true"] {
    color: #9BA39D;
}


/* =========================================================
   MAIN GRID
========================================================= */

.tm-contacts-layout {
    display: grid;
    grid-template-columns: 470px minmax(0, 1fr);
    gap: 30px;

    align-items: start;
}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.tm-contacts-info {
    min-width: 0;
}

.tm-contacts-title {
    margin: 0 0 18px !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding-bottom: 20px;
}


/*
 * Reuse the existing footer contact component.
 * Change only layout-specific spacing.
 */

.tm-contacts-details.tm-footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 17px;

    margin-top: 0;
}

.tm-contacts-details .tm-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tm-contacts-details .tm-footer-contact-icon {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;
}

.tm-contacts-details .tm-footer-contact-text {
    font-size: 14px;
    line-height: 1.45;
}

.tm-contacts-details .tm-footer-contact-text strong {
    font-size: 16px;
    line-height: 1.4;
}

.tm-contacts-details .tm-footer-contact-text small {
    font-size: 12px;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.tm-contacts-socials.tm-footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 23px;
    padding-bottom: 20px;
}

.tm-contacts-socials .tm-footer-social {
    width: 28px;
    height: 28px;
}

.tm-contacts-socials .tm-footer-social img {
    width: 27px;
    height: 27px;

    /* Green icons on the white contacts page. */
    filter: brightness(0) saturate(100%)
        invert(72%) sepia(37%) saturate(640%)
        hue-rotate(43deg) brightness(92%) contrast(88%);
}

.tm-contacts-socials .tm-footer-social:hover img {
    transform: scale(1.08);
    opacity: 0.8;
}


/* =========================================================
   MAP
========================================================= */

.tm-contacts-map {
    position: relative;

    width: 100%;
    min-width: 0;

    aspect-ratio: 2.7 / 1;
    min-height: 210px;

    overflow: hidden;
    background: #F4F5F2;
}

.tm-contacts-map iframe {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   COMPANY REQUISITES
========================================================= */

.tm-contacts-requisites {
    width: 100%;
    max-width: 760px;

    margin-top: 18px;
    padding-bottom: 25px;
}

.tm-contacts-requisites-title {
    margin: 0 0 17px !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.tm-contacts-requisites-group {
    margin: 0;
    padding: 0;
}

.tm-contacts-requisites-group p {
    margin: 0;

    color: var(--tm-color-text);

    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    overflow-wrap: anywhere;
}

.tm-contacts-requisites-group a {
    color: inherit;
    text-decoration: none;
}

.tm-contacts-requisites-group a:hover {
    color: var(--tm-color-button);
}

.tm-contacts-bank-details {
    margin-top: 15px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) and (min-width: 768px) {

    .tm-contacts-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 24px;
    }

    .tm-contacts-title {
        font-size: 36px !important;
    }

    .tm-contacts-map {
        aspect-ratio: 2 / 1;
        min-height: 190px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* PAGE SPACING */

    .tm-contacts-main > .tm-container {
        padding-top: 17px;
    }


    /* BREADCRUMBS */

    .tm-contacts-breadcrumbs {
        gap: 7px;
        margin-bottom: 22px;

        font-size: 12px;
    }


    /* VERTICAL LAYOUT */

    .tm-contacts-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }


    /* CONTACTS */

    .tm-contacts-info {
        width: 100%;
    }

    .tm-contacts-title {
        margin-bottom: 20px !important;

        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .tm-contacts-details.tm-footer-contact-details {
        gap: 17px;
    }

    .tm-contacts-details .tm-footer-contact-item {
        gap: 12px;
    }

    .tm-contacts-details .tm-footer-contact-text {
        font-size: 14px;
    }

    .tm-contacts-details .tm-footer-contact-text strong {
        font-size: 16px;
    }

    .tm-contacts-details .tm-footer-contact-text small {
        font-size: 12px;
    }


    /* SOCIALS */

    .tm-contacts-socials.tm-footer-socials {
        margin-top: 22px;
        margin-bottom: 25px;

        gap: 15px;
    }

    .tm-contacts-socials .tm-footer-social {
        width: 28px;
        height: 28px;
    }


    /* MAP */

    .tm-contacts-map {
        width: 100%;

        aspect-ratio: 1.9 / 1;
        min-height: 0;

        margin: 0;
    }


    /* REQUISITES */

    .tm-contacts-requisites {
        max-width: none;

        margin-top: 26px;
        padding-bottom: 10px;
    }

    .tm-contacts-requisites-title {
        margin-bottom: 19px !important;

        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    .tm-contacts-requisites-group p {
        font-size: 14px;
        line-height: 1.55;
    }

    .tm-contacts-bank-details {
        margin-top: 16px;
    }

}