:root {
    --cev-blue: #144A9E;
    --cev-blue-2: #1E90FF;
    --cev-ink: #10223B;
    --cev-muted: #6E8197;
    --cev-line: #DCE6F0;
    --cev-soft: #F5F9FD;
}

body.cev-universal-header-active #masthead,
body.cev-universal-header-active header#masthead,
body.cev-universal-header-active .site-header:not(.cev-header),
body.cev-universal-header-active .ast-mobile-header-wrap,
body.cev-universal-header-active .ast-desktop-header-content { display: none !important; }

.cev-header, .cev-header * { box-sizing: border-box; }
[hidden] { display: none !important; }
.cev-skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 100000; padding: 11px 15px;
    border-radius: 8px; background: #fff; color: var(--cev-blue) !important;
    box-shadow: 0 12px 30px rgba(15,31,53,.18); font: 700 14px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.cev-skip-link:focus { top: 12px; }

.cev-header {
    position: sticky; top: 0; z-index: 99990; width: 100%; margin: 0;
    border-bottom: 1px solid rgba(220,230,240,.86); background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;
    transition: box-shadow .2s ease;
}
body.admin-bar .cev-header { top: 32px; }
.cev-header.is-scrolled { box-shadow: 0 10px 30px rgba(15,31,53,.06); }
.cev-header .cev-wrap { width: min(1160px,calc(100% - 40px)); margin-inline: auto; }
.cev-header__inner { min-height: 68px; display: flex; align-items: center; gap: 26px; }
.cev-brand { display: inline-flex; width: 154px; flex: 0 0 auto; }
.cev-brand img { display: block; width: 154px; height: auto; }
.cev-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-left: auto; }
.cev-nav > a, .cev-nav__drop-button { color: #3E526C !important; text-decoration: none !important; font-size: 14px; line-height: 1; font-weight: 680; }
.cev-nav > a:hover, .cev-nav__drop-button:hover, .cev-nav [aria-current="page"] { color: var(--cev-blue) !important; }
.cev-nav > a[aria-current="page"] { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 7px; }
.cev-nav__drop { position: relative; }
.cev-nav__drop-button { appearance: none; display: inline-flex; align-items: center; gap: 5px; padding: 12px 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.cev-nav__drop-menu { position: absolute; left: 50%; top: calc(100% + 8px); width: 320px; padding: 9px; border: 1px solid var(--cev-line); border-radius: 16px; background: #fff; box-shadow: 0 25px 70px rgba(15,31,53,.14); transform: translateX(-50%); }
.cev-nav__drop-menu a { display: grid; gap: 4px; padding: 13px 14px; border-radius: 11px; color: var(--cev-ink) !important; text-decoration: none !important; }
.cev-nav__drop-menu a:hover { background: var(--cev-soft); }
.cev-nav__drop-menu a[aria-current="page"] { background: #EEF6FF; }
.cev-nav__drop-menu strong { font-size: 14px; }
.cev-nav__drop-menu span { color: var(--cev-muted); font-size: 12px; line-height: 1.45; }
.cev-nav__drop-menu--mega { grid-template-columns: repeat(2,minmax(0,1fr)); width: 530px; padding: 11px; }
.cev-nav__drop-menu--mega:not([hidden]) { display: grid; }
.cev-nav__drop-menu--mega .is-overview { grid-column: 1 / -1; border: 1px solid #DDEAF7; background: linear-gradient(135deg,#F5FAFF,#EEF7FF); }

.cev-nav__drop-menu--services {
    left: 0;
    width: 580px;
    grid-template-columns: minmax(0,1.35fr) minmax(180px,.75fr);
    padding: 10px;
    transform: none;
}
.cev-nav__drop-menu--services a { gap: 0; padding: 9px 11px; }
.cev-nav__drop-menu--services a > span { display: none; }
.cev-nav__drop-menu--services .is-overview { padding: 10px 12px; }
.cev-nav__drop-menu--services .cev-nav__mega-label { padding: 8px 11px 4px; }
.cev-nav__mega-group { display: grid; align-content: start; gap: 2px; }
.cev-nav__mega-label { display: block; padding: 8px 14px 5px; color: #75869A !important; font-size: 10px !important; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cev-mobile-nav__label { grid-column: 1 / -1; padding: 9px 4px 2px; color: #7A8BA0; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.cev-header__actions { display: flex; align-items: center; gap: 12px; }
.cev-header .cev-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 11px; background: linear-gradient(135deg,#1E90FF,#144A9E); color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 760; box-shadow: 0 10px 22px rgba(30,144,255,.18); }
.cev-menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--cev-line); border-radius: 11px; background: #fff; cursor: pointer; }
.cev-menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 999px; background: var(--cev-ink); }
.cev-mobile-nav { border-top: 1px solid var(--cev-line); background: #fff; }
.cev-mobile-nav__inner { display: grid; gap: 2px; padding: 12px 0 20px; }
.cev-mobile-nav__inner > a:not(.cev-button) { padding: 12px 6px; color: #3E526C !important; text-decoration: none !important; font-size: 15px; font-weight: 650; }
.cev-mobile-nav__inner > a[aria-current="page"] { color: var(--cev-blue) !important; }
.cev-mobile-nav__group { border-bottom: 1px solid #E6EDF5; }
.cev-mobile-nav__group summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 6px; color: var(--cev-ink); font-size: 15px; font-weight: 760; cursor: pointer; list-style: none; }
.cev-mobile-nav__group summary::-webkit-details-marker { display: none; }
.cev-mobile-nav__group summary span { color: var(--cev-blue-2); font-size: 20px; font-weight: 500; transition: transform .18s ease; }
.cev-mobile-nav__group[open] summary span { transform: rotate(45deg); }
.cev-mobile-nav__group > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; padding: 0 6px 13px; }
.cev-mobile-nav__group a { padding: 9px 10px; border-radius: 8px; background: #F5F9FD; color: #40566E !important; text-decoration: none !important; font-size: 13px; font-weight: 650; line-height: 1.35; }

.cev-skip-link:focus-visible,
.cev-header a:focus-visible,
.cev-header button:focus-visible { outline: 3px solid #40C4FF !important; outline-offset: 3px; }

@media (max-width: 900px) {
    .cev-nav { display: none; }
    .cev-menu-toggle { display: block; }
    .cev-header__actions .cev-button { display: none; }
}
@media (max-width: 782px) { body.admin-bar .cev-header { top: 46px; } }
@media (max-width: 650px) {
    .cev-header .cev-wrap { width: min(100% - 26px,1160px); }
    .cev-header__inner { min-height: 62px; }
    .cev-brand, .cev-brand img { width: 140px; }
    .cev-mobile-nav__group > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cev-header { transition: none; } }
