/* MZ Medical 0.3.13: light, compact 3-column footer (navigation removed).
 * Keep independent from base CSS and from unrelated UI blocks.
 * Height is content-dependent: no clipping/hidden information.
 */
footer.mz-footer {
    padding: 27px 0 0;
    background: #f0fafa;
    color: #243f49;
}
footer.mz-footer .mz-footer__grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: clamp(28px, 4vw, 60px);
    padding-bottom: 20px;
}
footer.mz-footer .mz-footer__grid > div { min-width: 0; }
footer.mz-footer .mz-footer__brand {
    margin-bottom: 7px;
    color: #173f47;
    font-size: 1.26rem;
    line-height: 1.2;
}
footer.mz-footer .mz-footer__brand img {
    max-width: 195px;
    max-height: 47px;
    padding: 4px 6px;
    background: #fff;
}
footer.mz-footer .mz-footer__description {
    max-width: 290px;
    margin: 0 0 9px;
    color: #4b6670;
    font-size: .82rem;
    line-height: 1.42;
}
footer.mz-footer .mz-footer__appointment {
    gap: 7px;
    padding-bottom: 2px;
    color: #076f79;
    border-bottom-color: #8dc9cb;
    font-size: .84rem;
    font-weight: 750;
}
footer.mz-footer .mz-footer__title {
    margin: 1px 0 10px;
    color: #1a3945;
    font-size: .97rem;
    line-height: 1.35;
    font-weight: 780;
}
footer.mz-footer p {
    color: #48636e;
    line-height: 1.45;
}
footer.mz-footer .mz-footer__branches li {
    margin-bottom: 5px;
    line-height: 1.35;
}
footer.mz-footer .mz-footer__branches a {
    color: #304c57;
    font-size: .84rem;
    line-height: 1.35;
}
footer.mz-footer .mz-footer__phone,
footer.mz-footer .mz-footer__email {
    margin-bottom: 6px;
    color: #22454f;
    font-size: .86rem;
    line-height: 1.32;
}
footer.mz-footer .mz-footer__phone { font-size: 1.02rem; font-weight: 800; }
footer.mz-footer .mz-contact-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 13px;
    row-gap: 4px;
    align-items: flex-start;
    margin: 6px 0 0;
}
footer.mz-footer .mz-contact-footer__phone {
    color: #30515d;
    font-size: .80rem;
    line-height: 1.35;
    white-space: nowrap;
}
footer.mz-footer .mz-contact-footer__socials {
    flex: 0 0 100%;
    gap: 7px;
    margin-top: 4px;
}
footer.mz-footer .mz-contact-footer__socials a {
    width: 33px;
    height: 33px;
    padding: 5px;
    border: 1px solid #d7e9e9;
    border-radius: 9px;
    background: #fff;
}
footer.mz-footer .mz-contact-footer__socials img {
    width: 22px;
    height: 22px;
}
footer.mz-footer .mz-footer__notice {
    margin: 9px 0 0;
    color: #667b83;
    font-size: .73rem;
    line-height: 1.4;
}
footer.mz-footer a:hover { color: #087e88; }
footer.mz-footer .mz-footer__bottom {
    border-top: 1px solid #d3e5e6;
}
footer.mz-footer .mz-footer__bottom-inner {
    min-height: 39px;
    gap: 8px 20px;
    padding: 8px 0;
    color: #607781;
    font-size: .75rem;
    line-height: 1.3;
}
footer.mz-footer .mz-footer__city { color: #617a83; }

@media (max-width: 1024px) {
    footer.mz-footer { padding-top: 27px; }
    footer.mz-footer .mz-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 23px 26px;
        padding-bottom: 22px;
    }
    footer.mz-footer .mz-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    footer.mz-footer { padding-top: 25px; }
    footer.mz-footer .mz-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding-bottom: 21px;
    }
    footer.mz-footer .mz-footer__about { grid-column: auto; }
    footer.mz-footer .mz-footer__brand { margin-bottom: 6px; }
    footer.mz-footer .mz-footer__title { margin-bottom: 8px; }
    footer.mz-footer .mz-footer__bottom-inner {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 11px 0;
    }
}

/* MZ Stage 30.1 - private four-column footer preview (old footer remains live). */
footer.mz-footer.mz-footer--v2 {
    padding-top: 23px;
    background: #f0fafa;
}
footer.mz-footer.mz-footer--v2 .mz-footer__grid {
    display: grid;
    grid-template-columns: minmax(0,1.14fr) minmax(0,1fr) minmax(0,1.08fr) minmax(0,1.18fr);
    gap: clamp(14px,2vw,28px);
    padding-bottom: 18px;
    align-items: start;
}
footer.mz-footer.mz-footer--v2 .mz-footer__column {
    min-width: 0;
}
footer.mz-footer.mz-footer--v2 .mz-footer__title {
    margin-bottom: 8px;
}
footer.mz-footer.mz-footer--v2 .mz-footer__tagline {
    margin: 2px 0 6px;
    color: #153d44;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
}
footer.mz-footer.mz-footer--v2 .mz-footer__description {
    max-width: none;
    margin-bottom: 8px;
    font-size: .79rem;
}
footer.mz-footer.mz-footer--v2 .mz-footer__management-action {
    display: block;
    width: 100%;
    min-height: 39px;
    margin-bottom: 7px;
    padding: 9px 10px;
    border: 1px solid #91babc;
    border-radius: 10px;
    background: rgba(255,255,255,.7);
    color: #1d6068;
    font-size: .77rem;
    font-weight: 700;
    line-height: 1.32;
    text-align: center;
    opacity: .72;
    cursor: not-allowed;
}
footer.mz-footer.mz-footer--v2 .mz-footer__bottom-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    align-items: center;
    min-height: 39px;
    padding: 7px 0;
}
footer.mz-footer.mz-footer--v2 .mz-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px 16px;
}
footer.mz-footer.mz-footer--v2 .mz-footer__legal a {
    color: #446773;
    font-size: .75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (min-width: 1025px) {
    footer.mz-footer.mz-footer--v2 .mz-footer__grid {
        grid-template-columns: minmax(0,1.18fr) minmax(0,1.05fr) minmax(0,1.05fr) minmax(0,1.2fr);
    }
}
@media (max-width: 1024px) {
    footer.mz-footer.mz-footer--v2 .mz-footer__grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 18px 25px;
    }
    footer.mz-footer.mz-footer--v2 .mz-footer__about {
        grid-column: auto;
    }
}
@media (max-width: 600px) {
    footer.mz-footer.mz-footer--v2 { padding-top: 19px; }
    footer.mz-footer.mz-footer--v2 .mz-footer__grid {
        grid-template-columns: minmax(0,1fr);
        gap: 16px;
        padding-bottom: 15px;
    }
    footer.mz-footer.mz-footer--v2 .mz-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    footer.mz-footer.mz-footer--v2 .mz-footer__legal {
        justify-content: flex-start;
    }
}

/* Stage 30.2A: single management button and private, inert modal. */
footer.mz-footer.mz-footer--v2 button.mz-footer__management-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    opacity: 1;
    margin-bottom: 0;
    transition: background-color .18s, border-color .18s;
}
footer.mz-footer.mz-footer--v2 button.mz-footer__management-action:hover {
    background: #fff;
    border-color: #176b6d;
}
footer.mz-footer.mz-footer--v2 button.mz-footer__management-action:focus-visible {
    outline: 3px solid #176b6d;
    outline-offset: 2px;
}
.mz-management-dialog {
    border: 1px solid #d6e7e8;
    border-radius: 16px;
    width: min(92vw, 485px);
    max-height: min(90vh, 780px);
    overflow: auto;
    padding: 0;
    color: #193c45;
    background: #fff;
    box-shadow: 0 20px 70px rgba(15, 51, 62, .22);
}
.mz-management-dialog::backdrop { background: rgba(17, 43, 51, .55); }
.mz-management-dialog__inner { padding: clamp(18px, 3.2vw, 26px); position: relative; }
.mz-management-dialog__close {
    position: absolute; right: 14px; top: 11px;
    width: 35px; height: 35px; border: 0; border-radius: 8px;
    color: #365962; background: #eff7f7; cursor: pointer;
    font-size: 1.5rem; line-height: 1;
}
.mz-management-dialog h2 { margin: 0 40px 8px 0; font-size: 1.25rem; line-height: 1.3; }
.mz-management-dialog__lead, .mz-management-dialog__notice { color: #607d85; font-size: .84rem; line-height: 1.5; }
.mz-management-dialog__form { display: grid; gap: 9px; margin-top: 15px; }
.mz-management-dialog__form fieldset { display: grid; gap: 7px; margin: 0 0 5px; padding: 0; border: 0; }
.mz-management-dialog__form legend { margin-bottom: 8px; font-weight: 700; }
.mz-management-dialog__form fieldset label { display: flex; gap: 8px; align-items: center; }
.mz-management-dialog__form > label { font-weight: 700; font-size: .84rem; }
.mz-management-dialog__form input:not([type="radio"]), .mz-management-dialog__form textarea {
    width: 100%; min-height: 40px; padding: 10px 12px;
    border: 1px solid #d5e6e6; border-radius: 8px;
    font: inherit; font-size: .86rem; background: #f8fcfc;
}
.mz-management-dialog__submit { min-height: 42px; margin-top: 5px; border: 0; border-radius: 8px; background: #c3d7d8; color: #254650; font-weight: 700; cursor: not-allowed; }
.mz-management-dialog__notice { margin: 0; }


/* Stage 30.2C: final compact footer with useful links (not branches), no bottom bar. */
footer.mz-footer.mz-footer--v2 { padding-top: 22px; }
footer.mz-footer.mz-footer--v2 .mz-footer__grid {
    grid-template-columns: minmax(0,1.23fr) minmax(0,.88fr) minmax(0,1.07fr) minmax(0,1.12fr);
    gap: clamp(14px,2vw,26px); padding-bottom: 21px;
}
footer.mz-footer.mz-footer--v2 .mz-footer__useful-links { list-style: none; margin: 0; padding: 0; }
footer.mz-footer.mz-footer--v2 .mz-footer__useful-links li { margin: 0 0 8px; line-height: 1.35; }
footer.mz-footer.mz-footer--v2 .mz-footer__useful-links a { color: #275963; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
footer.mz-footer.mz-footer--v2 .mz-footer__useful-links a:focus-visible { outline: 2px solid #176b6d; outline-offset: 3px; }
footer.mz-footer.mz-footer--v2 .mz-footer__management-action { opacity:1; cursor:pointer; }
.mz-management-dialog__consent { display:flex; gap:8px; align-items:flex-start; color:#4c6870; font-weight:400 !important; line-height:1.4; }
.mz-management-dialog__consent input { width:auto !important; min-height:auto !important; margin-top:4px; flex-shrink:0; }
.mz-management-dialog__consent a { text-decoration:underline; text-underline-offset:2px; }
.mz-management-dialog__trap { position:absolute !important; width:1px !important; height:1px !important; opacity:0 !important; left:-10000px !important; pointer-events:none; }
.mz-management-dialog__notice { margin-top:2px; }
.mz-management-dialog__notice.is-error { color:#a33f3f; }
.mz-management-dialog__submit { cursor:pointer; background:#176b6d; color:white; }
.mz-management-dialog__submit:disabled { cursor:not-allowed; opacity:.65; background:#c3d7d8; color:#254650; }
.mz-management-dialog input:focus-visible, .mz-management-dialog textarea:focus-visible { outline:2px solid #176b6d; outline-offset:2px; }
@media (max-width: 1024px) {
    footer.mz-footer.mz-footer--v2 .mz-footer__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    footer.mz-footer.mz-footer--v2 .mz-footer__grid { grid-template-columns:minmax(0,1fr); }
}
