/**
 * =========================================================
 * DRT CLINIC FOOTER CSS
 * Компонент: глобальний підвал сайту
 * CSS: /css/drt-footer.css
 * =========================================================
 */


/* Обгортка глобального підвалу у Конструкторі тем Divi */
.drt-footer-shell.et_pb_section,
.drt-footer-shell .et_pb_row,
.drt-footer-shell .et_pb_column,
.drt-footer-shell .et_pb_code,
.drt-footer-shell .et_pb_code_inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.drt-site-footer {
    width: 100%;
    color: var(--drt-ink-soft);
    font-family: var(--drt-font);
    background: var(--drt-surface);
    border-top: var(--drt-border-width) solid var(--drt-line);
}

.drt-footer-inner {
    width: var(--drt-row-width);
    max-width: var(--drt-container-wide);
    margin: 0 auto;
}

.drt-footer-main {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.drt-footer-grid {
    display: grid;
    grid-template-columns: minmax(15rem,1.35fr) repeat(3,minmax(10rem,1fr));
    gap: clamp(2rem, 4vw, 4.5rem);
}

.drt-footer-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.drt-footer-logo .drt-header-logo {
    max-width: 9rem;
    max-height: 3.5rem;
}

.drt-footer-description {
    max-width: 22rem;
    margin: 1.25rem 0 0;
    color: var(--drt-ink-soft);
    font-size: var(--drt-text-small);
    line-height: var(--drt-leading-small);
}

.drt-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: 1.25rem;
}

.drt-footer-socials a,
.drt-footer-map-link {
    color: var(--drt-blue-dark);
    font-size: var(--drt-text-small);
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.drt-footer-socials a:hover,
.drt-footer-socials a:focus-visible,
.drt-footer-map-link:hover,
.drt-footer-map-link:focus-visible {
    color: var(--drt-blue);
    text-decoration: underline;
    text-underline-offset: .2rem;
}

.drt-footer-title {
    margin: 0 0 1.25rem;
    padding: 0;
    color: var(--drt-ink);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.drt-footer-menu,
.drt-footer-contact-list {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.drt-footer-menu li,
.drt-footer-contact-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drt-footer-menu a,
.drt-footer-contact-list a {
    color: var(--drt-ink-soft);
    font-size: var(--drt-text-small);
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
}

.drt-footer-menu a:hover,
.drt-footer-menu a:focus-visible,
.drt-footer-contact-list a:hover,
.drt-footer-contact-list a:focus-visible {
    color: var(--drt-blue);
}

.drt-footer-address {
    margin: 0 0 1rem;
    color: var(--drt-ink-soft);
    font-size: var(--drt-text-small);
    line-height: var(--drt-leading-small);
    font-style: normal;
}

.drt-footer-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 1.25rem;
    padding: .7rem 1rem;
    border: var(--drt-border-width) solid var(--drt-blue);
    border-radius: var(--drt-radius-button);
    color: var(--drt-blue-dark);
    font-size: var(--drt-text-small);
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background var(--drt-transition), color var(--drt-transition);
}

.drt-footer-appointment:hover,
.drt-footer-appointment:focus-visible {
    background: var(--drt-blue);
    color: var(--drt-surface);
}

.drt-footer-bottom {
    padding: 1.1rem 0;
    background: var(--drt-bg);
    border-top: var(--drt-border-width) solid var(--drt-line);
}

.drt-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--drt-ink-soft);
    font-size: var(--drt-text-small);
    line-height: 1.4;
}

.drt-footer-bottom__inner a {
    color: var(--drt-ink-soft);
    text-decoration: none;
}

.drt-footer-bottom__inner a:hover,
.drt-footer-bottom__inner a:focus-visible {
    color: var(--drt-blue);
}

@media (max-width: 68rem) {
    .drt-footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 42rem) {
    .drt-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .drt-footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
