.header{
    position:sticky;
    top:0;
    z-index:50;
    border-bottom:1px solid rgba(233,236,239,.9);
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    transition:box-shadow .3s;
}
.header.scrolled{box-shadow:0 1px 20px rgba(0,0,0,.08)}
.header-inner{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:min(100%,1600px);
    min-height:72px;
    margin:0 auto;
    padding:0 clamp(1rem,2vw,2rem);
}
.logo{
    flex-shrink:0;
    font-family:"Playfair Display",Georgia,serif;
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:-.02em;
    color:#1B4332;
}
.logo span{margin-left:.15em;font-size:.85em;font-weight:400;color:#ADB5BD}
.logo-image{display:block;width:auto;max-width:min(220px,45vw);max-height:48px;object-fit:contain}
.nav{display:flex;align-items:center;gap:clamp(.65rem,1.8vw,1.5rem)}
.nav a{
    color:#495057;
    font-size:.85rem;
    font-weight:600;
    white-space:nowrap;
    transition:color .2s,background .2s;
}
.nav a:hover,.nav a:focus-visible{color:#1B4332}
.nav .nav-cta{
    padding:.65rem 1rem;
    border-radius:8px;
    background:#1B4332;
    color:#fff;
}
.nav .nav-cta:hover,.nav .nav-cta:focus-visible{background:#2D6A4F;color:#fff}
.language-picker{display:inline-flex;align-items:center}
.language-picker select{
    max-width:155px;
    padding:.55rem 1.8rem .55rem .7rem;
    border:1px solid #DDE4DF;
    border-radius:8px;
    background:#fff;
    color:#1B4332;
    font:inherit;
    font-size:.78rem;
    font-weight:600;
    cursor:pointer;
}
.language-picker select:focus-visible{outline:3px solid rgba(64,145,108,.35);outline-offset:2px}
.theme-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.45rem;
    padding:.55rem .75rem;
    border:1px solid #DDE4DF;
    border-radius:8px;
    background:#fff;
    color:#1B4332;
    font:inherit;
    font-size:.78rem;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
    transition:background .2s,color .2s,border-color .2s;
}
.theme-toggle:hover{background:#F1F5F2}
.theme-toggle:focus-visible{outline:3px solid rgba(64,145,108,.35);outline-offset:2px}
.theme-toggle-icon{font-size:1rem;line-height:1}
.mobile-toggle{
    display:none;
    width:44px;
    height:44px;
    padding:10px;
    border:1px solid #E9ECEF;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
}
.mobile-toggle:focus-visible{outline:3px solid rgba(64,145,108,.35);outline-offset:2px}
.mobile-toggle span{
    display:block;
    width:22px;
    height:2px;
    margin:4px 0;
    border-radius:2px;
    background:#1B4332;
    transition:transform .2s,opacity .2s;
}
.mobile-toggle[aria-expanded="true"] span:first-child{transform:translateY(6px) rotate(45deg)}
.mobile-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mobile-toggle[aria-expanded="true"] span:last-child{transform:translateY(-6px) rotate(-45deg)}
@media(max-width:960px){
    .header-inner{min-height:68px}
    .mobile-toggle{display:block}
    .nav{
        position:absolute;
        top:100%;
        right:0;
        left:0;
        display:none;
        align-items:stretch;
        gap:0;
        max-height:calc(100dvh - 68px);
        overflow-y:auto;
        padding:.5rem 1rem 1rem;
        border-bottom:1px solid #E9ECEF;
        background:#fff;
        box-shadow:0 12px 20px rgba(0,0,0,.08);
    }
    .nav.is-open{display:flex;flex-direction:column}
    .nav a{padding:.8rem .5rem;font-size:.95rem}
    .nav .nav-cta{margin-top:.4rem;text-align:center}
    .language-picker{padding:.65rem .5rem .25rem}
    .language-picker select{width:100%;max-width:none;padding:.75rem}
    .theme-toggle{width:100%;justify-content:flex-start;margin-top:.25rem;padding:.75rem}
}
html[data-theme="dark"] body{background:#121714;color:#E6ECE8}
html[data-theme="dark"] .header{border-color:#29352E;background:rgba(18,23,20,.96)}
html[data-theme="dark"] .header.scrolled{box-shadow:0 1px 20px rgba(0,0,0,.3)}
html[data-theme="dark"] .nav a{color:#CDD8D1}
html[data-theme="dark"] .nav a:hover,html[data-theme="dark"] .nav a:focus-visible{color:#A8D5B7}
html[data-theme="dark"] .nav .nav-cta{background:#2D6A4F;color:#fff}
html[data-theme="dark"] .nav .nav-cta:hover,html[data-theme="dark"] .nav .nav-cta:focus-visible{background:#40916C}
html[data-theme="dark"] .language-picker select,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .mobile-toggle{border-color:#3A4A40;background:#202923;color:#E6ECE8}
html[data-theme="dark"] .theme-toggle:hover{background:#2A382F}
html[data-theme="dark"] .mobile-toggle span{background:#D6E5DA}
@media(max-width:960px){
    html[data-theme="dark"] .nav{border-color:#29352E;background:#171E19;box-shadow:0 12px 20px rgba(0,0,0,.3)}
}
@media(prefers-reduced-motion:reduce){
    .header,.nav a,.mobile-toggle span{transition:none}
}
