/* Logozavr header + side menu (STRELA-style) */

:root {
    --lg-hdr-h: calc(56px + env(safe-area-inset-top, 0px));
}

html.lg-native-app {
    --lg-hdr-h: calc(56px + var(--lg-app-inset-top, 0px));
}

.lg-hdr {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lg-hdr.is-scrolled,
.lg-hdr--section {
    background: rgba(248, 250, 252, 0.78);
    border-bottom-color: rgba(15, 45, 82, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 4px 24px rgba(15, 45, 82, 0.06);
}

.lg-hdr__inner {
    max-width: min(var(--lg-max, 1200px), 100%);
    margin: 0 auto;
    padding: 8px 14px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.lg-hdr__start {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.lg-hdr__back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--lg-blue, #0f2d52);
    background: rgba(15, 45, 82, 0.06);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lg-hdr__back:hover,
.lg-hdr__back:focus-visible {
    background: rgba(5, 150, 105, 0.12);
    color: var(--lg-emerald, #059669);
    outline: none;
}

.lg-hdr__brand {
    min-width: 0;
}

.lg-hdr__brand.lg-brand-block--has-page .lg-brand-block__page {
    display: inline-flex !important;
}

.lg-hdr__sub,
.lg-hdr__page .lg-brand-block__page-text {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--lg-emerald, #059669);
    line-height: 1.15;
}

.lg-hdr__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lg-hdr__iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--lg-blue, #0f2d52);
    font-size: 17px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 45, 82, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.lg-hdr__iconbtn:hover,
.lg-hdr__iconbtn:focus-visible {
    border-color: rgba(5, 150, 105, 0.22);
    color: var(--lg-emerald, #059669);
    outline: none;
}

.lg-hdr__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.lg-hdr__badge[hidden] {
    display: none !important;
}

/* Side menu */
.lg-menu {
    position: fixed;
    inset: 0;
    z-index: 4200;
    pointer-events: none;
}

.lg-menu.is-open {
    pointer-events: auto;
}

.lg-menu__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 45, 82, 0.42);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
}

.lg-menu.is-open .lg-menu__backdrop {
    opacity: 1;
}

.lg-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--lg-surface, #fff);
    box-shadow: -12px 0 40px rgba(15, 45, 82, 0.16);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html.lg-native-app .lg-menu__panel {
    padding-top: var(--lg-app-inset-top, 0px);
}

.lg-menu.is-open .lg-menu__panel {
    transform: translateX(0);
}

.lg-menu__head {
    flex-shrink: 0;
    padding: 14px 14px 8px;
    border-bottom: 1px solid var(--lg-border, rgba(15, 45, 82, 0.08));
}

.lg-menu__head-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lg-menu__user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.lg-menu__ava {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(15, 45, 82, 0.08));
    color: var(--lg-blue, #0f2d52);
    font-size: 18px;
}

.lg-menu__ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lg-menu__user-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-menu__user-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--lg-blue, #0f2d52);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lg-menu__user-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--lg-muted, #64748b);
    line-height: 1.3;
}

.lg-menu__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(15, 45, 82, 0.1);
    border-radius: 999px;
    background: rgba(15, 45, 82, 0.04);
    color: var(--lg-muted, #64748b);
    font-size: 16px;
    cursor: pointer;
}

.lg-menu__close:hover {
    color: var(--lg-blue, #0f2d52);
}

.lg-menu__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 10px 10px 12px;
    -webkit-overflow-scrolling: touch;
}

.lg-menu__label {
    margin: 8px 8px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lg-muted, #64748b);
}

.lg-menu__sep {
    height: 1px;
    margin: 10px 8px;
    background: var(--lg-border, rgba(15, 45, 82, 0.08));
}

.lg-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 11px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--lg-blue, #0f2d52);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lg-menu-link:hover,
.lg-menu-link:focus-visible {
    background: rgba(5, 150, 105, 0.08);
    color: var(--lg-emerald, #059669);
    outline: none;
}

.lg-menu-link__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 45, 82, 0.05);
    color: var(--lg-emerald, #059669);
    font-size: 14px;
}

.lg-menu-link__text {
    flex: 1 1 auto;
    min-width: 0;
}

.lg-menu-link__badge {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.lg-menu__foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--lg-border, rgba(15, 45, 82, 0.08));
    background: rgba(248, 250, 252, 0.92);
}

.lg-menu__lang {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 45, 82, 0.06);
}

.lg-menu__lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: var(--lg-muted, #64748b);
}

.lg-menu__lang-btn.is-active {
    background: #fff;
    color: var(--lg-blue, #0f2d52);
    box-shadow: 0 1px 4px rgba(15, 45, 82, 0.08);
}

.lg-menu__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #dc2626;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.lg-menu__logout:hover {
    background: rgba(220, 38, 38, 0.08);
}

.lg-menu__foot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--lg-muted, #64748b);
    text-decoration: none;
}

.lg-menu__foot-link:hover {
    color: var(--lg-blue, #0f2d52);
    text-decoration: underline;
}

body.lg-header-menu-open {
    overflow: hidden;
}

/* Legacy header nav hidden */
.lg-hdr .lg-nav {
    display: none !important;
}

@media (min-width: 1024px) {
    .lg-hdr__inner {
        padding: 10px 20px;
    }

    .lg-menu__panel {
        width: min(380px, 36vw);
    }
}

@media (max-width: 480px) {
    .lg-hdr__inner {
        padding: 8px 12px;
    }

    .lg-brand__wordmark {
        font-size: 18px;
    }
}

/* Editable WhatsApp contact dialog from the side menu */
.lg-menu-contact[hidden] { display: none !important; }
.lg-menu-contact { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box; }
.lg-menu-contact__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8, 22, 39, .58); backdrop-filter: blur(5px); cursor: pointer; }
.lg-menu-contact__dialog { position: relative; z-index: 1; width: min(100%, 440px); max-height: min(90dvh, 680px); overflow: auto; padding: 22px; border: 1px solid rgba(15, 45, 82, .1); border-radius: 24px; background: #fff; color: #0f2d52; box-shadow: 0 24px 80px rgba(4, 18, 35, .28); box-sizing: border-box; }
.lg-menu-contact__head { display: flex; align-items: center; gap: 12px; }
.lg-menu-contact__icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: #e9f8f1; color: #128c5b; font-size: 23px; }
.lg-menu-contact__head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.lg-menu-contact__head p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.lg-menu-contact__close { margin-left: auto; flex: 0 0 38px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f1f5f9; color: #334155; font-size: 18px; cursor: pointer; }
.lg-menu-contact__hint { margin: 18px 0 12px; color: #64748b; font-size: 14px; line-height: 1.5; }
.lg-menu-contact__label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.lg-menu-contact__message { display: block; width: 100%; min-height: 120px; resize: vertical; box-sizing: border-box; padding: 12px 13px; border: 1px solid #d8e1eb; border-radius: 14px; outline: none; color: #0f2d52; background: #f8fafc; font: inherit; font-size: 15px; line-height: 1.5; }
.lg-menu-contact__message:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
.lg-menu-contact__send { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin-top: 14px; padding: 0 16px; border-radius: 14px; background: #128c5b; color: #fff; text-decoration: none; font-weight: 800; }
.lg-menu-contact__send:hover, .lg-menu-contact__send:focus-visible { background: #0b754b; color: #fff; outline: 3px solid rgba(5, 150, 105, .2); }
body.lg-menu-contact-open { overflow: hidden; }
@media (max-width: 480px) { .lg-menu-contact { padding: 12px; align-items: flex-end; } .lg-menu-contact__dialog { padding: 18px; border-radius: 22px 22px 16px 16px; max-height: 90dvh; } }