/* =========================================================
   TOUCHMEDICAL — FOOTER
========================================================= */


/* =========================================================
   CONTACT SECTION
========================================================= */

.tm-footer-contact {
    width: 100%;

    padding-top: 64px;
    padding-bottom: 66px;

    background: #fff;
}

.tm-footer-contact-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(500px, 1fr);

    gap: 80px;

    align-items: center;
}


/* =========================================================
   CONTACT TEXT
========================================================= */

.tm-footer-contact-info {
    min-width: 0;
}

.tm-footer-contact-overline {
    margin-bottom: 16px;

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

    font-family: var(--tm-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-footer-contact-title {
    max-width: 510px;

    margin: 0 !important;

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

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

.tm-footer-contact-description {
    max-width: 520px;

    margin: 18px 0 0;

    color: #66706a;

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


/* =========================================================
   CONTACT DETAILS
========================================================= */

.tm-footer-contact-details {
    display: flex;
    flex-direction: column;

    gap: 20px;

    margin-top: 36px;
}

.tm-footer-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 14px;

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

    text-decoration: none !important;
}

.tm-footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    color: var(--tm-color-accent);
}

.tm-footer-contact-icon img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}

.tm-footer-contact-text {
    display: flex;
    flex-direction: column;

    min-width: 0;

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

    font-family: var(--tm-font);
    font-size: 16px;
    line-height: 1.45;
}

.tm-footer-contact-text strong {
    font-size: 16px;
    font-weight: 700;
}

.tm-footer-contact-text small {
    margin-top: 2px;

    color: #66706a;

    font-size: 14px;
    font-weight: 400;
}

.tm-footer-contact-item:hover {
    color: var(--tm-color-text) !important;
}

.tm-footer-contact-item:hover .tm-footer-contact-icon {
    color: var(--tm-color-button);
}


/* =========================================================
   FORM CARD
========================================================= */

.tm-footer-form-card {
    width: 100%;

    padding: 24px;

    background: #fff;

    border-radius: 12px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.10);
}


/* Footer-specific CF7 */

.tm-footer-form-card .tm-cf7-row-2 {
    gap: 22px;
}

.tm-footer-form-card
.tm-cf7-form
input[type="text"],
.tm-footer-form-card
.tm-cf7-form
input[type="email"],
.tm-footer-form-card
.tm-cf7-form
input[type="tel"] {
    height: 45px;

    padding: 0 14px;

    font-size: 14px;
}

.tm-footer-form-card
.tm-cf7-form
textarea {
    min-height: 78px;

    padding: 12px 14px;

    font-size: 14px;
}

.tm-footer-form-card .tm-cf7-row {
    margin-bottom: 14px;
}

.tm-footer-form-card .tm-cf7-submit input[type="submit"] {
    min-height: 48px;

    font-size: 16px;
}

.tm-footer-form-card .tm-cf7-consent {

    font-size: 14px;
    line-height: 1.1;
}


/* =========================================================
   DARK FOOTER
========================================================= */

.tm-footer-bottom {
    width: 100%;

    background: #26332f;

    color: #fff;
}

.tm-footer-main {
    display: grid;

    grid-template-columns:
        230px
        minmax(0, 1.7fr)
        minmax(190px, 0.8fr);

    gap: 80px;

    padding-top: 48px;
    padding-bottom: 42px;
}


/* =========================================================
   BRAND
========================================================= */

.tm-footer-logo {
    display: block;

    width: fit-content;

    line-height: 0;

    text-decoration: none !important;
}

.tm-footer-logo img {
    display: block;

    width: 155px;
    height: auto;

    max-width: 100%;
}

.tm-footer-tagline {
    margin: 18px 0 0;

    color: #fff;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   SOCIALS
========================================================= */

.tm-footer-socials {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 22px;
}

.tm-footer-social {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    text-decoration: none !important;
}

.tm-footer-social img {
    display: block;

    width: 26px;
    height: 26px;

    object-fit: contain;

    filter: brightness(0) invert(1);

    transition:
        transform var(--tm-transition),
        opacity var(--tm-transition);
}

.tm-footer-social:hover img {
    transform: scale(1.06);

    opacity: 0.85;
}


/* =========================================================
   DESKTOP COLUMN TITLES
========================================================= */

.tm-footer-column-title {
    display: block;

    margin-bottom: 17px;

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

    font-family: var(--tm-font);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   ACCORDION BUTTON
========================================================= */

.tm-footer-accordion-toggle {
    display: none;

    width: 100%;

    padding: 0;

    color: #fff !important;
    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid
        rgba(255, 255, 255, 0.20) !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    font-family: var(--tm-font) !important;
    font-size: 15px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;
}

.tm-footer-accordion-toggle:hover,
.tm-footer-accordion-toggle:focus,
.tm-footer-accordion-toggle:active {
    color: #fff !important;
    background: transparent !important;

    border-bottom-color:
        rgba(255, 255, 255, 0.20) !important;

    transform: none !important;

    box-shadow: none !important;

    outline: none;
}

.tm-footer-accordion-chevron {
    transition:
        transform var(--tm-transition);
}

.tm-footer-accordion-toggle[aria-expanded="false"]
.tm-footer-accordion-chevron {
    transform: rotate(-90deg);
}

.tm-footer-accordion-panel {
    display: block;
}


/* =========================================================
   CATALOG COLUMNS
========================================================= */

.tm-footer-catalog-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;
}


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

.tm-footer-links {
    list-style: none;

    margin: 0;
    padding: 0;
}

.tm-footer-links li {
    margin: 0 0 8px;
}

.tm-footer-links a {
    color: rgba(255, 255, 255, 0.85) !important;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    text-decoration: none !important;
}

.tm-footer-links a:hover {
    color: var(--tm-color-accent) !important;
}


/* =========================================================
   LEGAL LINKS
========================================================= */

.tm-footer-legal-links {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 34px;
}

.tm-footer-legal-links a {
    color: rgba(255, 255, 255, 0.75) !important;

    font-size: 11px;
    line-height: 1.4;

    text-decoration: none !important;
}

.tm-footer-legal-links a:hover {
    color: var(--tm-color-accent) !important;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.tm-footer-copy {
    margin-top: 58px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 10px;
    line-height: 1.45;
}


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

.tm-footer-mobile-account {
    display: none;
}


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

@media (max-width: 767px) {


    /* -----------------------------------------------------
       CONTACT
    ----------------------------------------------------- */

    .tm-footer-contact {
        padding-top: 40px;
        padding-bottom: 20px;

        background: #fff;
    }

    .tm-footer-contact-layout {
        display: flex;
        flex-direction: column;

        gap: 28px;

        align-items: stretch;
    }

    .tm-footer-contact-info {
        text-align: center;
    }

    .tm-footer-contact-overline {
        margin-bottom: 9px;

        font-size: 14px;
    }

    .tm-footer-contact-title {
        max-width: 330px;

        margin-left: auto !important;
        margin-right: auto !important;

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

    .tm-footer-contact-description {
        max-width: 340px;
        padding-bottom: 20px;

        margin: 14px auto 0;

        font-size: 13px;
        line-height: 1.45;
    }


    /* -----------------------------------------------------
       FORM
    ----------------------------------------------------- */

    .tm-footer-form-card {
        padding: 0;

        border-radius: 0;

        box-shadow: none;
    }

    .tm-footer-form-card
    .tm-cf7-row-2 {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .tm-footer-form-card
    .tm-cf7-form
    input[type="text"],
    .tm-footer-form-card
    .tm-cf7-form
    input[type="email"],
    .tm-footer-form-card
    .tm-cf7-form
    input[type="tel"] {
        height: 52px;

        font-size: 14px;
    }

    .tm-footer-form-card
    .tm-cf7-form
    textarea {
        min-height: 110px;

        font-size: 14px;
    }

    .tm-footer-form-card
    .tm-cf7-row {
        margin-bottom: 14px;
    }

    .tm-footer-form-card
    .tm-cf7-submit
    input[type="submit"] {
        min-height: 54px;

        font-size: 17px;
    }


    /* -----------------------------------------------------
       CONTACT DETAILS
    ----------------------------------------------------- */

    .tm-footer-contact-details {
        order: 3;

        margin-top: 0;

        padding: 28px 16px 30px;

        background: #edf4ee;

        text-align: left;

        gap: 24px;
    }

    .tm-footer-contact-item {
        gap: 14px;
    }

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


    /* -----------------------------------------------------
       DARK FOOTER
    ----------------------------------------------------- */

    .tm-footer-bottom {
        background: #26332f;
    }

    .tm-footer-main {
        display: flex;
        flex-direction: column;

        gap: 0;

        padding-top: 38px;
        padding-bottom: 32px;
    }


    /* -----------------------------------------------------
       BRAND
    ----------------------------------------------------- */

    .tm-footer-logo img {
        width: 185px;
    }

    .tm-footer-tagline {
        margin-top: 20px;

        font-size: 14px;
    }

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

        gap: 14px;
    }

    .tm-footer-social {
        width: 31px;
        height: 31px;
    }

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


    /* -----------------------------------------------------
       HIDE DESKTOP TITLES
    ----------------------------------------------------- */

    .tm-footer-column-title {
        display: none;
    }


    /* -----------------------------------------------------
       ACCORDIONS
    ----------------------------------------------------- */

    .tm-footer-column {
        width: 100%;
    }

    .tm-footer-accordion-toggle {
        display: flex;

        align-items: center;
        justify-content: space-between;

        min-height: 58px;
    }

    .tm-footer-accordion-panel {
        display: none;

        padding: 16px 0 20px;
    }

    .tm-footer-accordion-toggle[aria-expanded="true"]
    + .tm-footer-accordion-panel {
        display: block;
    }

    .tm-footer-catalog-columns {
        display: flex;
        flex-direction: column;

        gap: 8px;
    }

    .tm-footer-links li {
        margin-bottom: 8px;
    }

    .tm-footer-links a {
        font-size: 14px;
    }

    .tm-footer-legal-links {
        margin-top: 22px;
    }


    /* -----------------------------------------------------
       INFORMATION
    ----------------------------------------------------- */

    .tm-footer-information-column {
        margin-top: 0;
    }


    /* -----------------------------------------------------
       ACCOUNT
    ----------------------------------------------------- */

    .tm-footer-mobile-account {
        display: block;

        width: 100%;

        border-top: 1px solid
            rgba(255, 255, 255, 0.20);
    }

    .tm-footer-mobile-account a {
        display: flex;
        align-items: center;

        min-height: 58px;

        color: #fff !important;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none !important;
    }


    /* -----------------------------------------------------
       COPYRIGHT
    ----------------------------------------------------- */

    .tm-footer-copy {
        margin-top: 30px;

        font-size: 14px;
    }
}





/* =========================================================
   FOOTER CF7 — TIGHT SUBMIT + CONSENT
========================================================= */

/* Абзац, который CF7 создаёт вокруг submit */
.tm-footer-form-card .tm-cf7-submit > p {
    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
}

/* Сам блок согласия */
.tm-footer-form-card .tm-cf7-consent {
    display: block !important;

    margin: 2px 0 0 !important;
    padding: 0 !important;

    color: #b0b0b0 !important;

    font-family: var(--tm-font) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: left;
}

/* Если CF7 всё же создаст p внутри */
.tm-footer-form-card .tm-cf7-consent p {
    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;
}

/* Ссылка */
.tm-footer-form-card .tm-cf7-consent a {
    color: #b0b0b0 !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;

    text-decoration: underline !important;
    text-underline-offset: 2px;
}