/* Global CCE header only; Bootstrap owns menu collapse and dropdown behavior. */
.cce-skip-link {
    position: fixed;
    top: calc(var(--cce-admin-bar-height, 0px) + .5rem);
    left: 1rem;
    z-index: 100001;
    padding: .75rem 1rem;
    border: 2px solid var(--cce-primary-red);
    border-radius: .25rem;
    background: #fff;
    color: #111;
    font: 700 1rem/1.5 'Open Sans', Arial, sans-serif;
    transform: translateY(calc(-100% - 4rem));
}
.cce-skip-link:focus { transform: none; color: #111; outline: 2px solid #111; outline-offset: 2px; }
.cce-skip-target { scroll-margin-top: calc(var(--cce-nav-height, 64px) + var(--cce-admin-bar-height, 0px) + 8px); }
.cce-header-nav { --cce-navigation-state-red: var(--cce-primary-red, #a81010); }
.cce-site-header,
.cce-header-nav {
    font-family: 'Open Sans', Arial, sans-serif;
}

.cce-site-header {
    background: #fff;
    color: #111;
}

.cce-site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1480px;
    min-height: 112px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
}

.cce-site-header__brand {
    flex: 0 0 auto;
}

.cce-site-header__logo {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}

.cce-site-header__contacts,
.cce-site-header__socials {
    display: flex;
    align-items: center;
}

.cce-site-header__contacts {
    min-width: 0;
    margin-left: auto;
}

.cce-site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: 0 1.5rem;
    border-right: 1px solid #d7d7d7;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.cce-site-header__contact .fa {
    font-size: 1.75rem;
}

.cce-site-header__contact .fa-mobile {
    font-size: 2rem;
}

.cce-site-header__socials {
    gap: 1rem;
    padding-left: 1.5rem;
}

.cce-site-header__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 44px;
    color: #111;
    font-size: 1.5rem;
}

.cce-site-header a:hover {
    color: var(--cce-primary-red);
    text-decoration: none;
}

.cce-site-header a:focus-visible,
.cce-header-nav a:focus-visible,
.cce-header-nav button:focus-visible {
    outline: 2px solid var(--cce-primary-red);
    outline-offset: 4px;
}
.cce-header-nav a:focus-visible,
.cce-header-nav button:focus-visible { outline-color: #fff; }
.cce-header-nav .nav-link:focus-visible,
.cce-header-nav .dropdown-item:focus-visible { outline-offset: -3px; }

.cce-header-nav-sentinel {
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.cce-header-nav.navbar {
    top: var(--cce-admin-bar-height, 0px);
    padding: 0;
    background: #0a0a0a;
    color: #fff;
}
body.admin-bar .cce-header-nav.navbar { top: var(--cce-admin-bar-height, 32px); }
.cce-header-nav button.nav-link { appearance: none; border: 0; border-radius: 0; background: transparent; text-align: left; }
.cce-header-nav .nav-item:has(> .cce-header-nav__submenu-toggle) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.cce-header-nav .nav-item:has(> .cce-header-nav__submenu-toggle) > .dropdown-menu { grid-column: 1 / -1; }

.cce-header-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 1.5rem;
    width: 100%;
    max-width: 1480px;
    min-height: 52px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.cce-header-nav .navbar-collapse {
    min-width: 0;
    flex-grow: 0;
}

.cce-header-nav .navbar-nav {
    justify-content: center;
    gap: 0 .5rem;
    width: auto;
    margin: 0;
}

.cce-header-nav .navbar-nav > .nav-item > .nav-link {
    position: relative;
    padding: .75rem .25rem;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.cce-header-nav .navbar-nav > .nav-item > .nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: .5rem;
    left: 0;
    height: 2px;
    background: transparent;
}

.cce-header-nav .navbar-nav > .nav-item:is(.active, .current-menu-item, .current-menu-ancestor, .current-menu-parent) > .nav-link,
.cce-header-nav .navbar-nav > .nav-item > .nav-link:hover,
.cce-header-nav .navbar-nav > .nav-item > .nav-link:focus-visible {
    color: var(--cce-navigation-state-red);
}

.cce-header-nav .navbar-nav > .nav-item:is(.active, .current-menu-item, .current-menu-ancestor, .current-menu-parent) > .nav-link::before {
    background: var(--cce-navigation-state-red);
}

.cce-header-nav .dropdown-toggle::after {
    margin-left: .35rem;
    vertical-align: .15em;
}

.cce-header-nav .dropdown-menu {
    min-width: 16rem;
    max-width: min(24rem, calc(100vw - 2rem));
    margin-top: 0;
    padding: .5rem;
    border: 1px solid #343434;
    border-radius: 0 0 .35rem .35rem;
    background: #0a0a0a;
    text-transform: uppercase;
}

.cce-header-nav .dropdown-item {
    padding: .5rem .625rem;
    border-radius: .25rem;
    color: #d0d0d0;
    font-size: .875rem;
    line-height: 1.45;
    white-space: normal;
}

.cce-header-nav .dropdown-item:hover,
.cce-header-nav .dropdown-item:focus,
.cce-header-nav .dropdown-item.active {
    background: #242424;
    color: var(--cce-navigation-state-red);
}

.cce-header-nav__contact {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 40px;
    padding: .5rem 1rem;
    border: 1px solid var(--cce-primary-red);
    border-radius: .25rem;
    background: var(--cce-primary-red);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.cce-header-nav__contact:hover {
    background: #fff;
    color: var(--cce-primary-red);
    text-decoration: none;
}

.cce-header-nav.is-stuck .cce-header-nav__contact {
    display: none;
}

@media (max-width: 1199.98px) {
    .cce-site-header__logo { width: 210px; }
    .cce-site-header__contact { padding: 0 1rem; font-size: .875rem; }
    .cce-site-header__socials { gap: .75rem; padding-left: 1rem; }
    .cce-header-nav__inner { min-height: 52px; gap: 0; }
    .cce-header-nav .navbar-toggler { min-height: 44px; margin: .25rem 0; padding: .25rem .5rem; }
    .cce-header-nav__contact { min-height: 44px; margin-left: auto; padding: .375rem 1.25rem; }
    .cce-header-nav .navbar-collapse {
        order: 2;
        flex-basis: 100%;
        max-height: calc(100vh - var(--cce-nav-height, 52px) - var(--cce-nav-visible-top, var(--cce-admin-bar-height, 0px)));
        max-height: calc(100dvh - var(--cce-nav-height, 52px) - var(--cce-nav-visible-top, var(--cce-admin-bar-height, 0px)));
        overflow-y: auto;
    }
    .cce-header-nav .navbar-nav { padding: .25rem 0 .75rem; }
    .cce-header-nav .navbar-nav > .nav-item > .nav-link { min-height: 44px; padding: .625rem .5rem; font-size: .875rem; white-space: normal; }
    .cce-header-nav button.nav-link { width: 100%; }
    .cce-header-nav .navbar-nav > .nav-item > .nav-link::before { right: auto; bottom: .25rem; left: .5rem; width: 3rem; }
    .cce-header-nav .dropdown-menu { position: static; min-width: 0; max-width: 100%; margin: .25rem 0 .5rem; padding-left: 1rem; border: 0; }
}

@media (max-width: 782px) {
    body.admin-bar .cce-header-nav.navbar { top: var(--cce-admin-bar-height, 46px); }
}
@media (max-width: 600px) {
    body.admin-bar .cce-header-nav.navbar { top: 0; }
}

@media (max-width: 991.98px) {
    .cce-site-header__inner { min-height: 80px; gap: .5rem; padding: .75rem 1rem; }
    .cce-site-header__logo { width: 148px; max-width: 44vw; }
    .cce-site-header__contact { justify-content: center; gap: 0; width: 28px; min-height: 40px; padding: 0; border: 0; }
    .cce-site-header__contact-text { display: none; }
    .cce-site-header__contact .fa { font-size: 1.25rem; }
    .cce-site-header__contact .fa-mobile { font-size: 1.5rem; }
    .cce-site-header__socials { gap: .5rem; padding-left: .5rem; }
    .cce-site-header__socials a { width: 24px; min-height: 40px; font-size: 1.25rem; }
    .cce-header-nav__inner { padding: 0 1rem; }
}
