body > header {
    background: rgba(255, 255, 255, 0.85) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line, #e2e8f0) !important;
    position: sticky !important;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 0 !important;
    box-shadow: none !important;
}

body > header .nav {
    width: 100%;
    max-width: 1400px;
    min-height: 72px;
    height: auto;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body > header .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--ink, #0f172a) !important;
    text-decoration: none !important;
}

body > header .logo,
body > header .brand-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: conic-gradient(from 180deg at 50% 50%, #22c55e, #06b6d4, #22c55e) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    font-family: Poppins, Inter, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

body > header .brand-logo img,
body > header .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body > header .brand span,
body > header .brand-text-title {
    min-width: 0;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Poppins, Inter, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: var(--ink, #0f172a) !important;
}

body > header.site-header .container {
    width: 100%;
    max-width: 1400px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body > header .logo-title {
    min-width: 0;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Poppins, Inter, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: var(--ink, #0f172a) !important;
}

body > header .brand-text-sub {
    display: none;
}

body > header .user-menu,
body > header .menu,
body > header .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

body > header .menu a,
body > header .nav-right a,
body > header .user-menu a,
body > header .logout-button,
body > header .btn,
body > header .button,
body > header .cta,
body > header .btn-outline {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--ink, #0f172a) !important;
    box-shadow: none;
    text-decoration: none !important;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body > header .menu a:hover,
body > header .nav-right a:hover,
body > header .user-menu a:hover,
body > header .logout-button:hover,
body > header .btn:hover,
body > header .button:hover,
body > header .cta:hover,
body > header .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

body > header .lang-switch {
    position: relative;
}

body > header .lang-btn {
    min-width: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--ink, #0f172a);
    box-shadow: none;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

body > header .burger {
    min-width: 44px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    border: 2px solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--ink, #0f172a);
    box-shadow: none;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

body > header .lang-btn:hover,
body > header .burger:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body > header .flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
    background: #e2e8f0;
}

body > header .lang-panel {
    z-index: 9999;
}

@media (max-width: 768px) {
    body > header .nav {
        min-height: 70px;
        padding: 0 15px;
        gap: 10px;
    }

    body > header.site-header .container {
        min-height: 70px;
        padding: 0 15px;
        gap: 10px;
    }

    body > header .brand {
        flex: 1 1 auto;
    }

    body > header .brand span,
    body > header .brand-text-title,
    body > header .logo-title {
        max-width: 48vw;
        font-size: 16px !important;
    }

    body > header .user-menu,
    body > header .menu,
    body > header .nav-right {
        gap: 8px;
        flex: 0 1 auto;
    }

    body > header .menu a,
    body > header .nav-right a,
    body > header .user-menu a,
    body > header .logout-button,
    body > header .btn,
    body > header .button,
    body > header .cta,
    body > header .btn-outline {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 13px;
    }

    body > header .menu.open {
        display: flex;
    }
}

/* Public pages: calmer desktop menu and cleaner mobile drawer. */
body > header .nav-right {
    flex-wrap: nowrap;
    gap: 10px;
}

body > header .nav-right > nav.menu {
    flex-wrap: nowrap;
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

body > header .nav-right > nav.menu a {
    min-height: 38px;
    padding: 9px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #475569 !important;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

body > header .nav-right > nav.menu a:hover {
    background: #ffffff;
    color: #0f172a !important;
    transform: none;
}

body > header .nav-right > nav.menu a.cta {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

body > header .nav-right > nav.menu a.cta:hover {
    background: #111827 !important;
    color: #ffffff !important;
}

body > header .nav-right > nav.menu a.cta:last-child {
    background: linear-gradient(180deg, #06b6d4, #0891b2) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(8, 145, 178, 0.18);
}

body > header .nav-right > .lang-switch .lang-btn,
body > header .nav-right > .burger {
    min-height: 44px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1280px) {
    body > header .nav {
        padding: 0 18px;
    }

    body > header .brand span,
    body > header .brand-text-title,
    body > header .logo-title {
        max-width: 26vw;
    }

    body > header .nav-right > nav.menu a {
        padding-inline: 10px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    body > header {
        overflow: visible;
    }

    body > header .nav {
        min-height: 68px;
    }

    body > header .brand {
        flex: 1 1 auto;
    }

    body > header .brand span,
    body > header .brand-text-title,
    body > header .logo-title {
        max-width: 52vw;
        font-size: 17px !important;
    }

    body > header .nav-right {
        margin-left: auto;
        gap: 8px;
    }

    body > header .nav-right > nav.menu {
        position: fixed !important;
        top: 78px !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 120;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 14px !important;
        border-radius: 22px !important;
        border: 1px solid rgba(226, 232, 240, 0.95) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    body > header .nav-right > nav.menu.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        transform: translateY(0) !important;
    }

    body > header .nav-right > nav.menu a {
        width: 100%;
        min-height: 48px;
        justify-content: flex-start;
        padding: 13px 14px;
        border: 1px solid transparent;
        background: #f8fafc;
        color: #0f172a !important;
        font-size: 15px;
        line-height: 1.2;
    }

    body > header .nav-right > nav.menu a:hover {
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

    body > header .nav-right > nav.menu a.cta {
        justify-content: center;
        background: #0f172a !important;
        color: #ffffff !important;
    }

    body > header .burger {
        display: grid !important;
        padding: 0 12px;
        width: auto;
        min-width: 44px;
    }
}

@media (max-width: 640px) {
    body > header .nav {
        min-height: 64px;
        padding: 0 14px;
    }

    body > header .logo,
    body > header .brand-logo {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    body > header .brand span,
    body > header .brand-text-title,
    body > header .logo-title {
        max-width: 42vw;
        font-size: 16px !important;
    }

    body > header .nav-right > .lang-switch .lang-btn {
        width: 44px;
        min-width: 44px;
        padding: 0;
        gap: 0;
    }

    body > header .nav-right > .lang-switch .lang-btn #lang-label {
        display: none;
    }

    body > header .nav-right > .lang-switch .lang-btn svg {
        display: none;
    }

    body > header .nav-right > nav.menu {
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        padding: 12px !important;
        border-radius: 20px !important;
    }

    body > header .nav-right > nav.menu a {
        min-height: 46px;
        padding: 12px 13px;
        font-size: 14px;
    }

    body > header .lang-panel {
        top: 72px !important;
        right: 12px !important;
        width: min(320px, calc(100vw - 24px)) !important;
    }
}
