:root {
    /* Enterprise Palette */
    --ent-bg: #ffffff;
    --ent-text: #111111;
    --ent-text-muted: #666666;
    --ent-accent: #CFA97D; /* Twój złoty akcent */
    --ent-border: rgba(0, 0, 0, 0.08);
    --ent-glass: rgba(255, 255, 255, 0.85);
    
    /* Dimensions */
    --header-h: 72px;
    --container-w: 1440px;
    
    /* Animation */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Płynne "apple-like" */
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ent-text);
    background: #f9f9f9; /* Lekko szare tło strony, żeby header się odcinał */
}

/* --- HEADER BASE --- */
.ent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 100;
    transition: transform 0.4s var(--ease-premium), background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

/* Stan: Scrolled (Szkło) */
.ent-header.is-scrolled {
    background: var(--ent-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--ent-border);
}

/* Stan: Hidden (Smart hide) */
.ent-header.is-hidden {
    transform: translateY(-100%);
}

.ent-header__container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- BRAND --- */
.ent-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ent-text);
    text-transform: uppercase;
}

.ent-header__nav {
    height: 100%;
}

.ent-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    gap: 2px;
}

/* --- LEVEL 1 ITEMS --- */
.ent-menu > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.ent-menu > li > a {
    text-decoration: none;
    color: var(--ent-text);
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
}

.ent-menu > li:hover > a {
    color: var(--ent-text-muted); /* Lekkie wygaszenie przy hoverze */
}

/* --- ENTERPRISE MEGA MENU (3 LEVELS) --- */
/* Kontener Mega Menu (wychodzi z Level 1) */
.ent-menu > li > ul.sub-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--ent-bg);
    padding: 40px 0 60px;
    border-bottom: 1px solid var(--ent-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-premium);
    
    /* Grid dla kolumn (Level 2 items become columns) */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Auto kolumny */
    gap: 40px;
    max-width: var(--container-w);
    margin-left: max(32px, calc((100vw - var(--container-w)) / 2 + 32px)); /* Centrowanie zawartości */
    margin-right: max(32px, calc((100vw - var(--container-w)) / 2 + 32px));
    box-sizing: border-box;
}

/* Niewidzialny mostek, żeby myszka nie "spadała" przy przejściu */
.ent-menu > li > ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Pokaż menu przy hoverze rodzica */
.ent-menu > li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- LEVEL 2 (HEADERS KOLUMN) --- */
.ent-menu > li > ul.sub-menu > li {
    list-style: none;
}

.ent-menu > li > ul.sub-menu > li > a {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ent-text-muted);
    margin-bottom: 24px;
    text-decoration: none;
    pointer-events: none; /* Traktujemy jako nagłówek, nie link */
}

/* --- LEVEL 3 (LINKI WŁAŚCIWE) --- */
.ent-menu > li > ul.sub-menu > li > ul.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: static; /* Reset pozycji */
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    width: auto;
}

.ent-menu > li > ul.sub-menu > li > ul.sub-menu li a {
    font-size: 15px;
    color: var(--ent-text);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.ent-menu > li > ul.sub-menu > li > ul.sub-menu li a:hover {
    color: var(--ent-accent);
    transform: translateX(4px); /* Subtelne przesunięcie w prawo */
}

/* --- TOOLS & ICONS --- */
.ent-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--ent-text);
    transition: opacity 0.2s;
}
.ent-btn-icon:hover { opacity: 0.6; }

/* Burger */
.ent-burger {
    display: none; /* Domyślnie ukryty */
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.burger-line {
    width: 100%;
    height: 2px;
    background: var(--ent-text);
    transition: all 0.3s ease;
}

/* --- MOBILE & SEARCH OVERLAY (Basic styling needed) --- */
.ent-search {
    position: fixed; top:0; left:0; width:100%; height:100vh;
    background: rgba(255,255,255,0.98); z-index: 150;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ent-search.is-active { opacity: 1; pointer-events: auto; }
.ent-search__input { font-size: 32px; border: none; border-bottom: 2px solid #eee; outline: none; width: 60%; font-family: inherit; }
.ent-search__close { position: absolute; top: 32px; right: 32px; font-size: 40px; border:none; background:none; cursor:pointer;}

/* RWD */
@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .ent-mobile-menu {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        background: #fff; z-index: 140; padding-top: 80px;
        transform: translateX(100%); transition: transform 0.4s var(--ease-premium);
    }
    .ent-mobile-menu.is-open { transform: translateX(0); }
    
    /* Burger Animation */
    .ent-burger.is-active .burger-line:first-child { transform: rotate(45deg) translate(5px, 6px); }
    .ent-burger.is-active .burger-line:last-child { transform: rotate(-45deg) translate(5px, -6px); }
    
    /* Mobile List Styles */
    .ent-mobile-list { list-style: none; padding: 0 32px; }
    .ent-mobile-list li a { font-size: 24px; text-decoration: none; color: #000; display: block; margin-bottom: 16px; font-weight: 600; }
    .ent-mobile-list .sub-menu { display: none; padding-left: 20px; margin-bottom: 20px; } /* Prosta obsługa submenu na mobile */
}