.site-header, .site-footer {
    --c-ink: #0b1a38;
    --c-night: #071331;
    --c-blue: #1a56e8;
    --c-blue-dk: #0c3f8f;
    --c-red: #e10600;
    --c-muted: #5f6b80;
    --c-line: #e7ecf3;
}
.sh-wrap, .sf-wrap { width: min(1240px, calc(100% - 2.4rem)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; font-size: 15px; }
.site-header:has(.sh-top) { top: -38px; }
.sh-top { height: 38px; background: var(--c-night); color: rgba(255, 255, 255, .78); font-size: 13px; }
.sh-top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sh-top-msg { margin: 0; display: flex; align-items: center; gap: .55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-top-msg span { width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .25); flex: none; }
.sh-top-links { display: flex; align-items: center; gap: 1.4rem; white-space: nowrap; }
.sh-top-links a { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .85); font-weight: 500; }
.sh-top-links a:hover { color: #fff; }
.sh-top-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sh-main { background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s; }
.site-header.is-scrolled .sh-main { box-shadow: 0 10px 30px -12px rgba(7, 19, 49, .18); }
.sh-bar { height: 72px; display: flex; align-items: center; gap: 1.5rem; }
.sh-bar .logo { flex: none; }

.sh-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.sh-list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.sh-item { position: relative; }
.sh-link {
    position: relative; display: inline-flex; align-items: center; gap: .3rem; height: 72px; padding: 0 .85rem;
    color: var(--c-ink); font-weight: 600; letter-spacing: -.005em; transition: color .2s;
}
.sh-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 18px; height: 2px; border-radius: 2px;
    background: var(--c-red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.sh-item:hover > .sh-link, .sh-item:focus-within > .sh-link, .sh-item.is-active > .sh-link { color: var(--c-blue); }
.sh-item:hover > .sh-link::after, .sh-item.is-active > .sh-link::after { transform: scaleX(1); }
.sh-chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sh-item:hover .sh-link .sh-chev, .sh-item:focus-within .sh-link .sh-chev { transform: rotate(180deg); }
.sh-sub-toggle { display: none; }

.sh-menu {
    position: absolute; top: calc(100% - 8px); left: 50%; width: 330px; padding: .5rem;
    background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
    box-shadow: 0 28px 60px -20px rgba(7, 19, 49, .28), 0 0 0 1px rgba(7, 19, 49, .02);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sh-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sh-item:hover > .sh-menu, .sh-item:focus-within > .sh-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-menu-in { display: grid; gap: 2px; }
.sh-menu-link { display: grid; gap: 1px; padding: .65rem .8rem; border-radius: 10px; color: var(--c-ink); transition: background .15s; }
.sh-menu-link b { font-weight: 600; font-size: 14.5px; }
.sh-menu-link span { font-size: 12.5px; color: var(--c-muted); }
.sh-menu-link:hover, .sh-menu-link.is-active { background: #f2f6ff; }
.sh-menu-link:hover b, .sh-menu-link.is-active b { color: var(--c-blue); }
.sh-menu-all { display: flex; justify-content: space-between; margin-top: .35rem; padding: .7rem .8rem .55rem; border-top: 1px solid var(--c-line); font-size: 13px; font-weight: 600; color: var(--c-blue); }
.sh-menu-all:hover { color: var(--c-blue-dk); }
.sh-nav-foot { display: none; }

.sh-actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.sh-icon {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink);
    border: 1px solid var(--c-line); transition: border-color .2s, color .2s, background .2s;
}
.sh-icon:hover { color: var(--c-red); border-color: #f3c3c1; background: #fff6f6; }
.sh-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sh-account { display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .9rem; border-radius: 999px; color: var(--c-ink); font-weight: 600; transition: background .2s, color .2s; }
.sh-account:hover { background: #f2f5fa; color: var(--c-blue); }
.sh-account svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sh-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dk)); color: #fff; font-size: 13px; font-weight: 700; }
.sh-cta {
    display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 1.2rem; border-radius: 10px;
    background: var(--c-blue); color: #fff; font-weight: 650; white-space: nowrap;
    box-shadow: 0 8px 18px -8px rgba(26, 86, 232, .6); transition: background .2s, transform .2s, box-shadow .2s;
}
.sh-cta:hover { background: var(--c-blue-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(26, 86, 232, .7); }
.sh-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sh-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.sh-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .25s, opacity .2s; }
.site-header.is-open .sh-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .sh-burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .sh-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
    .sh-link { padding: 0 .6rem; }
    .sh-link::after { left: .6rem; right: .6rem; }
    .sh-account-label { display: none; }
    .sh-account { padding: 0; width: 42px; justify-content: center; border: 1px solid var(--c-line); }
}
@media (max-width: 1020px) {
    .sh-top-msg { display: none; }
    .sh-top-in { justify-content: center; }
    .sh-burger { display: grid; }
    .sh-actions .sh-cta { display: none; }
    .sh-bar { justify-content: space-between; }
    .sh-nav {
        position: absolute; left: 0; right: 0; top: 100%; display: block; max-height: calc(100vh - 72px); overflow-y: auto;
        background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 24px 40px -20px rgba(7, 19, 49, .3);
        padding: .5rem 1.2rem 1.2rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .sh-main { position: relative; }
    .site-header.is-open .sh-nav { opacity: 1; visibility: visible; transform: none; }
    .sh-list { display: block; }
    .sh-item { border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .sh-link { height: 54px; padding: 0; font-size: 16px; }
    .sh-link::after, .sh-link .sh-chev { display: none; }
    .sh-sub-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #f3f6fb; color: var(--c-ink); cursor: pointer; }
    .sh-sub-toggle .sh-chev { display: block; }
    .sh-item.is-expanded .sh-sub-toggle .sh-chev { transform: rotate(180deg); }
    .sh-menu, .sh-item:hover > .sh-menu, .sh-item:focus-within > .sh-menu {
        grid-column: 1 / -1; position: static; width: auto; padding: 0 0 .7rem; border: 0; box-shadow: none; border-radius: 0;
        opacity: 1; visibility: visible; transform: none; display: none;
    }
    .sh-item.is-expanded > .sh-menu { display: block; }
    .sh-menu::before { display: none; }
    .sh-menu-link { padding: .55rem .7rem; }
    .sh-menu-all { border-top: 0; margin: 0; padding: .5rem .7rem; }
    .sh-nav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding-top: 1rem; }
    .sh-nav-foot .sh-cta, .sh-ghost { justify-content: center; height: 48px; }
    .sh-ghost { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 10px; font-weight: 650; color: var(--c-ink); }
}
@media (max-width: 560px) {
    .sh-top-links a:not([href^="tel:"]):not([href^="mailto:"]) { display: none; }
    .sh-top-links { gap: 1rem; font-size: 12px; }
    .sh-bar { height: 64px; gap: .6rem; }
    .sh-nav { max-height: calc(100vh - 64px); }
    .sh-icon, .sh-account { width: 38px; height: 38px; }
    .site-header .brand-tag { display: none; }
}

/* Footer */
.site-footer {
    position: relative; margin-top: 1.2rem; padding: 0 0 1.4rem; border-top: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .72); font-size: 14.5px;
    background: radial-gradient(90% 120% at 100% 0%, #0f2c6e 0%, rgba(15, 44, 110, 0) 55%), var(--c-night);
}
.site-footer.has-cta { margin-top: 7rem; }
.site-footer a { color: inherit; transition: color .2s; }
.site-footer a:hover { color: #fff; }

.sf-cta {
    position: relative; top: -3.5rem; margin-bottom: -1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 2rem 2.4rem; border-radius: 18px; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, var(--c-blue) 0%, var(--c-blue-dk) 100%);
    box-shadow: 0 30px 60px -25px rgba(7, 19, 49, .55);
}
main:has(.cp-flush-bottom) + .site-footer.has-cta .sf-cta { top: 0; margin: 0; }
main:has(.cp-flush-bottom) + .site-footer.has-cta { padding-top: 3rem; }
.sf-cta::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.sf-cta h2 { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.01em; }
.sf-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.sf-cta-btn {
    position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: .5rem; height: 50px; padding: 0 1.5rem;
    border-radius: 10px; background: #fff; color: var(--c-blue-dk) !important; font-weight: 700; transition: transform .2s;
}
.sf-cta-btn:hover { transform: translateY(-2px); }

.sf-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 2rem 1.8rem; padding: 4rem 0 3rem; }
.site-footer.has-cta .sf-grid { padding-top: 1.5rem; }
.sf-brand p { margin: 1rem 0 1.3rem; max-width: 32ch; line-height: 1.65; color: rgba(255, 255, 255, .72); }
.footer-brand { display: inline-flex; }
.footer-brand .brand-house { width: 28px; height: 28px; }
.footer-brand .brand-word { font-size: 1.55rem; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .6); }
.site-footer .brand.light .brand-word span { color: #ff2a22; }
.sf-contact { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.sf-contact li { display: flex; align-items: center; gap: .65rem; }
.sf-contact svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8fb6ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sf-contact a { color: #fff; font-weight: 500; }
.sf-social { display: flex; gap: .55rem; }
.sf-social a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s, border-color .2s, transform .2s;
}
.sf-social a:hover { background: var(--c-blue); border-color: var(--c-blue); transform: translateY(-2px); }
.sf-social svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sf-social a.solid svg { fill: #fff; stroke: none; }

.sf-col h2 { margin: .35rem 0 1.1rem; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sf-col a { position: relative; display: inline-block; }
.sf-col a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--c-red); opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity .2s, transform .2s; }
.sf-col a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

.sf-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .55); }
.sf-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.sf-top { display: inline-flex; gap: .35rem; color: #fff !important; font-weight: 600; }

@media (max-width: 1100px) {
    .sf-grid { grid-template-columns: repeat(3, 1fr); }
    .sf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: start; }
    .sf-brand > .footer-brand, .sf-brand > p { grid-column: 1; }
    .sf-contact { grid-column: 2; grid-row: 1 / span 2; margin-top: .4rem; }
    .sf-social { grid-column: 2; }
}
@media (max-width: 680px) {
    .site-footer.has-cta { margin-top: 5rem; }
    .sf-cta { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
    .sf-cta-btn { width: 100%; justify-content: center; }
    .sf-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; padding-top: 3rem; }
    .sf-brand { display: block; }
    .sf-bottom { flex-direction: column; align-items: flex-start; }
    .sf-legal { gap: .8rem 1.2rem; }
}
@media (max-width: 480px) {
    .sf-grid { grid-template-columns: 1fr; }
    .sh-top { display: none; }
    .site-header:has(.sh-top) { top: 0; }
}
