/* Shared header and mobile consultation controls. */
:root { --lz-header-height: 0px; }
.lz-site-header {
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 16px #260f3112;
}
.lz-site-header .t967 { position: relative !important; top: auto !important; }
html .article-page :is(h2, h3, h4, a[name]) {
    scroll-margin-top: calc(var(--lz-header-height) + 80px);
}
html .article-page .sp-contents { top: calc(var(--lz-header-height) + 8px); }
html .article-page .sp-contents .sp-contents_elements {
    max-height: min(55vh, calc(100dvh - var(--lz-header-height) - 88px));
}
.lz-mobile-consult { display: none; }
@media (max-width: 980px) {
    .lz-site-header #nav1068955766 {
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
}
@media (max-width: 767px) {
    .iachat_panel, .iachat_panel_all_soc_blocks,
    .iachat_panel_call_to_action, .iachat_panel_background {
        display: none !important;
    }
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .lz-mobile-consult {
        display: block;
        position: fixed;
        z-index: 1100;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 16px;
        right: 16px;
        max-width: 440px;
        margin-inline: auto;
        font-family: inherit;
        color: #260f31;
    }
    .lz-mobile-consult, .lz-mobile-consult * { box-sizing: border-box; }
    .lz-mobile-consult > summary {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        min-height: 54px;
        padding: 14px 20px;
        border: 1px solid #efd04a;
        border-radius: 16px;
        background: #fada4a;
        color: #260f31;
        box-shadow: 0 6px 24px #260f312e;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }
    .lz-mobile-consult > summary::-webkit-details-marker { display: none; }
    .lz-mobile-consult > summary::after { content: "+"; font-size: 24px; line-height: 1; }
    .lz-mobile-consult[open] > summary::after { content: "−"; }
    .lz-consult-options {
        position: absolute;
        bottom: calc(100% + 12px);
        left: 0;
        right: 0;
        padding: 20px;
        border: 1px solid #e8e0d4;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 8px 40px #260f312e;
        max-height: calc(100vh - 220px);
        max-height: calc(100dvh - 220px);
        overflow-y: auto;
    }
    .lz-consult-options h2 {
        margin: 0 0 16px;
        font-size: 20px;
        line-height: 1.35;
        color: #260f31;
    }
    .lz-consult-options ul { list-style: none; margin: 0; padding: 0; }
    .lz-consult-options li + li { margin-top: 8px; }
    .lz-consult-options a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 52px;
        padding: 12px 16px;
        border-radius: 12px;
        background: #f5f3ef;
        color: #260f31;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 500;
        text-decoration: none;
    }
    .lz-consult-options a::after { content: "↗"; }
    .lz-consult-options a:hover { background: #fff3be; }
    .lz-mobile-consult :is(summary, a):focus-visible {
        outline: 3px solid #76521a;
        outline-offset: 3px;
    }
    .legacy-cookie-wrap {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100% - 24px);
    }
}

/* Compact mobile header and quiet back-to-top control. */
.lz-header-contacts { display: none; }
.lz-site-header #rec667906177 .t190 {
    bottom: 104px;
    left: 24px;
    right: auto;
    min-height: 0;
}
.lz-site-header #rec667906177 .t190__button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dedbd5;
    border-radius: 50%;
    background: #fffffff2;
    box-shadow: 0 2px 8px #00000012;
    color: #68616c;
}
.lz-site-header #rec667906177 .t190__button svg { display: none; }
.lz-site-header #rec667906177 .t190__button::before {
    content: "↑";
    font: 22px/1 Arial, sans-serif;
}
.lz-site-header #rec667906177 .t190__button:focus-visible {
    outline: 3px solid #76521a;
    outline-offset: 3px;
}
@media (max-width: 980px) {
    .lz-site-header #rec1068955766 .tmenu-mobile__container {
        height: 56px;
        min-height: 56px;
        padding: 6px 12px;
        gap: 8px;
    }
    .lz-site-header #rec1068955766 .tmenu-mobile__burgerlogo {
        flex: 0 1 104px;
        min-width: 0;
        margin-right: auto;
    }
    .lz-site-header #rec1068955766 .tmenu-mobile__imglogo {
        width: 104px !important;
        max-width: 100% !important;
        max-height: 40px;
        object-fit: contain;
    }
    .lz-site-header .lz-header-contacts {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 0;
    }
    .lz-header-contacts a {
        display: grid;
        place-items: center;
        width: 40px;
        height: 44px;
        border-radius: 8px;
    }
    .lz-header-contacts :is(svg, img) { display: block; width: 22px; height: 22px; }
    .lz-header-contacts a:focus-visible { outline: 2px solid #76521a; }
    .lz-site-header #nav1068955766 {
        max-height: calc(100vh - 56px);
        max-height: calc(100dvh - 56px);
    }
}
@media (max-width: 767px) {
    .lz-site-header #rec667906177 .t190 {
        left: auto;
        right: 16px;
        bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }
}
