:root {
    --oph-purple: #2e0b76;
    --oph-purple-2: #4a1aa3;
    --oph-gold: #f3c13a;
    --oph-ink: #15131f;
    --oph-muted: #716d7d;
    --oph-line: rgba(46, 11, 118, .10);
    --oph-white: #fff;
}

.oph-header,
.oph-header * {
    box-sizing: border-box;
}

.oph-header {
    position: relative;
    z-index: 9998;
    width: 100%;
    color: var(--oph-ink);
    font-family: inherit;
}

.oph-header.is-sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .oph-header.is-sticky {
    top: 32px;
}

.oph-progress {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}

.oph-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--oph-purple), var(--oph-gold));
    box-shadow: 0 0 12px rgba(243, 193, 58, .6);
}

.oph-shell {
    min-height: 86px;
    padding: 0 clamp(18px, 4vw, 68px);
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    background: rgba(255, 255, 255, .90);
    border-bottom: 1px solid var(--oph-line);
    box-shadow: 0 12px 40px rgba(31, 15, 66, .06);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transition: min-height .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.oph-header.is-scrolled .oph-shell {
    min-height: 72px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 45px rgba(31, 15, 66, .12);
}

.oph-brand {
    width: 132px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 0;
    text-decoration: none;
}

.oph-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(46, 11, 118, .08));
    transition: transform .3s ease;
}

.oph-brand:hover img {
    transform: translateY(-2px);
}

.oph-desktop-nav {
    min-width: 0;
}

.oph-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oph-menu--desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, .5vw, 9px);
}

.oph-menu--desktop > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.oph-menu--desktop > li > a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    color: var(--oph-ink);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.oph-menu--desktop > li > a::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 7px;
    width: 0;
    height: 2px;
    border-radius: 3px;
    background: var(--oph-gold);
    transition: width .25s ease;
}

.oph-menu--desktop > li:hover > a,
.oph-menu--desktop > li:focus-within > a,
.oph-menu--desktop > .current-menu-item > a,
.oph-menu--desktop > .current-menu-ancestor > a {
    color: var(--oph-purple);
    background: rgba(46, 11, 118, .055);
}

.oph-menu--desktop > li:hover > a::after,
.oph-menu--desktop > li:focus-within > a::after,
.oph-menu--desktop > .current-menu-item > a::after,
.oph-menu--desktop > .current-menu-ancestor > a::after {
    width: 20px;
}

.oph-menu--desktop .menu-item-has-children > a {
    gap: 7px;
}

.oph-menu--desktop .menu-item-has-children > a::before {
    content: '';
    width: 7px;
    height: 7px;
    border-left: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
    opacity: .65;
}

.oph-menu--desktop .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 280px;
    margin: 0;
    padding: 12px;
    list-style: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transform-origin: top right;
    border: 1px solid rgba(46, 11, 118, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 65px rgba(32, 17, 62, .16);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.oph-menu--desktop .sub-menu::before {
    content: '';
    position: absolute;
    inset: -15px 0 auto;
    height: 15px;
}

.oph-menu--desktop li:hover > .sub-menu,
.oph-menu--desktop li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.oph-menu--desktop .sub-menu li {
    position: relative;
    margin: 0;
}

.oph-menu--desktop .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #302b3a;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1.7;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.oph-menu--desktop .sub-menu a::before {
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: 2px solid var(--oph-gold);
    border-radius: 50%;
}

.oph-menu--desktop .sub-menu a:hover,
.oph-menu--desktop .sub-menu a:focus {
    color: var(--oph-purple);
    background: rgba(46, 11, 118, .055);
    transform: translateX(-3px);
}

.oph-menu--desktop .sub-menu .sub-menu {
    top: -12px;
    right: calc(100% + 9px);
}

.oph-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.oph-header button,
.oph-header input {
    font: inherit;
}

.oph-icon-button,
.oph-menu-toggle,
.oph-drawer-close {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.oph-icon-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    color: var(--oph-purple);
    border: 1px solid rgba(46, 11, 118, .11);
    border-radius: 14px;
    background: rgba(46, 11, 118, .035);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.oph-icon-button:hover {
    color: #fff;
    border-color: var(--oph-purple);
    background: var(--oph-purple);
    transform: translateY(-2px);
}

.oph-icon-button svg,
.oph-phone svg,
.oph-cta svg,
.oph-drawer-close svg,
.oph-drawer-phone svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oph-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--oph-ink);
    text-decoration: none;
    white-space: nowrap;
}

.oph-phone__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--oph-purple);
    border-radius: 12px;
    background: rgba(243, 193, 58, .20);
}

.oph-phone__text {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.oph-phone__text small {
    color: var(--oph-muted);
    font-size: 10px;
}

.oph-phone__text b {
    color: var(--oph-purple);
    font-size: 13px;
    letter-spacing: .3px;
}

.oph-cta {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 17px;
    overflow: hidden;
    color: #231a00;
    border: 1px solid rgba(196, 147, 14, .25);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd96a, var(--oph-gold));
    box-shadow: 0 12px 26px rgba(243, 193, 58, .22);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}

.oph-cta::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -40%;
    width: 30px;
    height: 300%;
    background: rgba(255, 255, 255, .6);
    transform: rotate(24deg);
    transition: left .55s ease;
}

.oph-cta:hover {
    color: #231a00;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(243, 193, 58, .32);
}

.oph-cta:hover::before {
    left: 120%;
}

.oph-cta svg {
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.oph-cta:hover svg {
    transform: translateX(-3px);
}

.oph-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(18px, 4vw, 68px);
    width: min(520px, calc(100vw - 36px));
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    transform-origin: top left;
    border: 1px solid var(--oph-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 25px 70px rgba(32, 17, 62, .18);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.oph-header.search-open .oph-search-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.oph-search-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
}

.oph-search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--oph-ink);
    border: 1px solid rgba(46, 11, 118, .12);
    outline: none;
    border-radius: 12px;
    background: #f8f7fb;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.oph-search-panel input:focus {
    border-color: var(--oph-purple);
    box-shadow: 0 0 0 3px rgba(46, 11, 118, .08);
}

.oph-search-panel form button {
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--oph-purple);
    cursor: pointer;
}

.oph-search-panel form svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.oph-menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-content: center;
    gap: 5px;
    padding: 0;
    border-radius: 14px;
    background: var(--oph-purple);
    box-shadow: 0 10px 22px rgba(46, 11, 118, .20);
}

.oph-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 3px;
    background: #fff;
}

.oph-mobile-layer {
    position: fixed;
    inset: 0;
    z-index: 10001;
    visibility: hidden;
    pointer-events: none;
}

.oph-header.menu-open .oph-mobile-layer {
    visibility: visible;
    pointer-events: auto;
}

.oph-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 11, 40, .52);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: opacity .28s ease;
}

.oph-header.menu-open .oph-backdrop {
    opacity: 1;
}

.oph-drawer {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(390px, 88vw);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
    box-shadow: -30px 0 80px rgba(19, 8, 42, .26);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.22, .8, .28, 1);
}

.oph-header.menu-open .oph-drawer {
    transform: translateX(0);
}

.oph-drawer__head {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0, rgba(243, 193, 58, .35), transparent 32%),
        linear-gradient(135deg, var(--oph-purple-2), var(--oph-purple));
}

.oph-drawer__head > div {
    display: grid;
    gap: 4px;
}

.oph-drawer__head strong {
    font-size: 18px;
}

.oph-drawer__head small {
    color: rgba(255, 255, 255, .70);
    font-size: 11px;
}

.oph-drawer-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
}

.oph-mobile-nav {
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px 18px 28px;
}

.oph-menu--mobile li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid rgba(46, 11, 118, .075);
}

.oph-menu--mobile a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 9px 6px;
    color: #2a2632;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: none;
}

.oph-menu--mobile .current-menu-item > a,
.oph-menu--mobile .current-menu-ancestor > a {
    color: var(--oph-purple);
}

.oph-submenu-toggle {
    position: absolute;
    top: 7px;
    left: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--oph-purple);
    border: 0;
    border-radius: 11px;
    background: rgba(46, 11, 118, .055);
    cursor: pointer;
}

.oph-submenu-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
    transition: transform .2s ease;
}

.oph-menu--mobile li.submenu-open > .oph-submenu-toggle::before {
    transform: rotate(135deg) translate(-2px, 0);
}

.oph-menu--mobile .sub-menu {
    display: none;
    margin: 0 12px 10px 0;
    padding: 5px 13px 5px 0;
    list-style: none;
    border-right: 2px solid rgba(243, 193, 58, .65);
}

.oph-menu--mobile li.submenu-open > .sub-menu {
    display: block;
}

.oph-menu--mobile .sub-menu li {
    border: 0;
}

.oph-menu--mobile .sub-menu a {
    min-height: 42px;
    padding: 6px 9px;
    color: var(--oph-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.oph-drawer__footer {
    display: grid;
    gap: 10px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--oph-line);
    background: #fbfafe;
}

.oph-cta--wide {
    width: 100%;
}

.oph-drawer-phone {
    min-height: 46px;
    display: grid;
    grid-template-columns: 22px auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: var(--oph-purple);
    border: 1px solid rgba(46, 11, 118, .10);
    border-radius: 13px;
    background: #fff;
    font-size: 12px;
    text-decoration: none;
}

.oph-drawer-phone b {
    justify-self: end;
    font-size: 13px;
}

body.oph-lock {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .oph-shell {
        grid-template-columns: 126px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .oph-brand {
        width: 116px;
    }

    .oph-phone__text {
        display: none;
    }

    .oph-phone__icon {
        width: 44px;
        height: 44px;
    }

    .oph-menu--desktop > li > a {
        padding-inline: 9px;
        font-size: 13px;
    }
}

@media (max-width: 920px) {
    .oph-shell,
    .oph-header.is-scrolled .oph-shell {
        min-height: 72px;
        grid-template-columns: 120px 1fr;
        padding-inline: 16px;
    }

    .oph-brand {
        width: 108px;
        height: 64px;
    }

    .oph-desktop-nav,
    .oph-phone,
    .oph-actions > .oph-cta {
        display: none;
    }

    .oph-actions {
        direction: ltr;
    }

    .oph-menu-toggle {
        display: grid;
    }

    .oph-search-panel {
        top: calc(100% + 8px);
        left: 16px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .oph-header.is-sticky {
        top: 46px;
    }
}

@media (max-width: 480px) {
    .oph-shell,
    .oph-header.is-scrolled .oph-shell {
        min-height: 66px;
        grid-template-columns: 104px 1fr;
        padding-inline: 12px;
    }

    .oph-brand {
        width: 96px;
        height: 59px;
    }

    .oph-actions {
        gap: 7px;
    }

    .oph-icon-button,
    .oph-menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oph-header *,
    .oph-header *::before,
    .oph-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

