:root {
    --ea-navy: #14243d;
    --ea-orange: #e86a10;
    --ea-orange-dark: #c85708;
    --ea-ink: #414b5a;
    --ea-muted: #6b7484;
    --ea-line: #dad6d0;
    --ea-white: #ffffff;
    --ea-radius: 3px;
    --ea-font-head: "Archivo", Arial, sans-serif;
    --ea-font-body: "Source Sans 3", Arial, sans-serif;
    --ea-font-mono: "IBM Plex Mono", "Courier New", monospace;}

.ae-header, .ae-header * { box-sizing: border-box; }
.ae-header { font-family: var(--ea-font-body); -webkit-font-smoothing: antialiased; }

.ae-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(20, 36, 61, 0.1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.ae-header__inner {
    max-width: 1240px;
    min-height: 74px;
    margin: 0 auto;
    padding: 10px clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ae-header__brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ae-header__brand img {
    display: block;
    width: clamp(160px, 15vw, 230px);
    height: auto;
}

.ae-nav {
    flex: 1 1 auto;
}

.ae-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ae-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ae-nav li {
    position: relative;
}

.ae-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 3px;
    color: var(--ea-navy);
    font: 700 14px/1.15 var(--ea-font-body);
    text-decoration: none;
    white-space: nowrap;
}

.ae-nav a:hover,
.ae-nav a:focus-visible {
    background: #fff8f2;
    color: var(--ea-orange-dark);
    text-decoration: none;
}

.ae-nav__has-sub > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.ae-nav__has-sub > ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 270px;
    padding: 8px;
    border: 1px solid #e2dfda;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(6, 14, 28, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.ae-nav__has-sub:hover > ul,
.ae-nav__has-sub:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ae-nav__has-sub > ul a {
    justify-content: flex-start;
    white-space: normal;
}

.ae-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 36, 61, 0.2);
    border-radius: 3px;
    background: #ffffff;
    color: var(--ea-navy);
    font: 800 13px/1 var(--ea-font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 1080px) {
    .ae-header__inner {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .ae-nav {
        order: 3;
        flex-basis: 100%;
    }

    .ae-nav > ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 760px) {
    .ae-header__inner {
        min-height: 64px;
        flex-wrap: nowrap;
    }

    .ae-header__brand img {
        width: min(190px, 52vw);
    }

    .ae-nav-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .ae-nav {
        position: absolute;
        right: 14px;
        left: 14px;
        top: calc(100% + 8px);
        display: none;
        border: 1px solid #e2dfda;
        background: #ffffff;
        box-shadow: 0 18px 44px rgba(6, 14, 28, 0.16);
    }

    .ae-header.is-nav-open .ae-nav {
        display: block;
    }

    .ae-nav > ul {
        display: grid;
        gap: 0;
        overflow: visible;
        padding: 8px;
    }

    .ae-nav a {
        min-height: 46px;
        white-space: normal;
    }

    .ae-nav__has-sub > ul {
        position: static;
        min-width: 0;
        padding: 0 0 6px 14px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }
}

#header { display: none !important; }
