.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eceff4;
    box-shadow: none;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(7, 20, 38, .06); }
.site-header .nav {
    position: relative;
    z-index: 2;
    height: 90px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-header .brand { display: flex; align-items: center; flex: 0 0 auto; }
.site-header .brand img { width: 136px; height: auto; }
.site-header .nav-divider {
    width: 1px;
    height: 28px;
    flex: 0 0 1px;
    background: #e4e7ee;
}
.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}
.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.7vw, 26px);
    margin-right: auto;
    min-width: 0;
}
.site-header .nav-menu > a,
.site-header .nav-drop-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: #1c2b44;
    background: transparent;
    border: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1;
    white-space: nowrap;
}
.site-header .nav-menu > a:hover,
.site-header .nav-drop-toggle:hover { color: #c99212; }
.site-header .nav-menu > a[aria-current="page"],
.site-header .nav-drop-toggle[aria-current="true"] { color: #e5a500; }
.site-header .nav-menu > a[aria-current="page"]::after,
.site-header .nav-drop-toggle[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #e5a500;
    transform: translateX(-50%);
}
.site-header .nav-caret { border-top-color: currentColor; }
.site-header .fama-social-links,
.site-header .fama-social-links.fama-social-links--header {
    gap: 8px;
    margin: 0;
    flex-wrap: nowrap;
}
.site-header .fama-social-links--header .fama-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    color: #14243c;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.site-header .fama-social-links--header .fama-social-link svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.site-header .fama-social-links--header .fama-social-link:hover {
    color: #e5a500;
    background: transparent;
    transform: none;
}
.btn-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px 0 12px;
    color: #14243c;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(100deg, #f5cf76 0%, #e5a500 34%, #8ea4c0 70%, #18345a 100%) border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(20, 36, 60, .04);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease, color .25s ease;
}
.btn-platform svg { flex: 0 0 auto; }
.btn-platform:hover {
    color: #0c1d36;
    box-shadow: 0 8px 18px rgba(20, 36, 60, .08);
    transform: translateY(-1px);
}
.header-curve {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: min(340px, 32vw);
    height: 52px;
    pointer-events: none;
}
.site-header .nav-toggle { display: none; }

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 74px 0 108px;
    color: #d7dfeb;
    background:
        radial-gradient(ellipse 62% 78% at 0% 108%, rgba(47, 98, 168, .42), transparent 58%),
        radial-gradient(ellipse 48% 70% at 100% 112%, rgba(229, 165, 0, .2), transparent 52%),
        linear-gradient(118deg, #071426 0%, #0a1830 30%, #0c1d36 56%, #122844 80%, #18345a 100%);
}
.footer-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-decor__blue {
    position: absolute;
    left: -8%;
    bottom: -6%;
    width: 72%;
    height: 42%;
}
.footer-decor__gold {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(560px, 48%);
    height: 86px;
}
.site-footer .footer-grid,
.site-footer .footer-bottom { position: relative; z-index: 1; }
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .95fr 1.05fr .72fr;
    gap: 0;
    align-items: start;
}
.site-footer .footer-col {
    min-width: 0;
    padding: 4px 28px 8px;
    border-left: 1px solid rgba(226, 234, 246, .16);
}
.site-footer .footer-col:first-child { padding-left: 0; border-left: 0; }
.site-footer .footer-about img { width: 148px; height: auto; margin: 0 0 16px; }
.site-footer .footer-about p {
    max-width: 230px;
    margin: 0;
    color: #d5deea;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}
.footer-mark {
    display: block;
    width: 28px;
    height: 3px;
    margin: 12px 0 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f5cf76, #e5a500);
}
.footer-about .footer-mark { width: 42px; margin-top: 18px; }
.site-footer h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.site-footer .footer-links a,
.site-footer a.footer-contact {
    color: #e4ebf5;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    transition: color .2s ease;
}
.site-footer .footer-links a {
    display: block;
    margin: 0 0 9px;
}
.site-footer a.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}
.site-footer a.footer-contact svg { width: 16px; height: 16px; flex: 0 0 auto; color: #e5a500; }
.site-footer .footer-links a:hover,
.site-footer a.footer-contact:hover { color: #f5cf76; }
.site-footer .fama-social-links { gap: 12px; }
.site-footer .fama-social-link,
.site-footer a.fama-social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    margin: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 11px;
}
.site-footer .fama-social-links .fama-social-link svg {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
}
.site-footer .fama-social-link:hover {
    color: #f5cf76;
    border-color: #e5a500;
    background: rgba(229, 165, 0, .08);
    transform: translateY(-2px);
}
.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 234, 246, .2);
    color: rgba(232, 238, 246, .78);
    font-size: 13px;
}
.footer-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}
.site-footer a.footer-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    color: #e5a500;
    vertical-align: middle;
    transition: color .2s ease, transform .2s ease;
}
.site-footer a.footer-lock svg { width: 16px; height: 16px; }
.site-footer a.footer-lock:hover { color: #f5cf76; transform: translateY(-1px); }
.site-footer a.footer-privacy {
    display: inline;
    margin: 0 0 0 auto;
    color: rgba(232, 238, 246, .72);
    font-size: 12px;
    white-space: nowrap;
}
.site-footer a.footer-privacy:hover { color: #f5cf76; }

@media (max-width: 1120px) {
    .site-header .nav { height: 76px; }
    .site-header .nav-toggle { display: block; }
    .site-header .nav > .nav-divider { display: none; }
    .site-header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 22px 22px;
        background: #fff;
        box-shadow: 0 18px 32px rgba(7, 20, 38, .08);
    }
    .site-header .nav-links.is-open { display: flex; }
    .site-header .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
    }
    .site-header .nav-menu > a,
    .site-header .nav-drop-toggle {
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 12px 2px;
        border-bottom: 1px solid #f0f2f6;
        font-size: 15px;
    }
    .site-header .nav-menu > a[aria-current="page"]::after,
    .site-header .nav-drop-toggle[aria-current="true"]::after { display: none; }
    .site-header .nav-divider { display: none; }
    .site-header .nav-dropdown { width: 100%; }
    .site-header .nav-drop {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0 0 8px 12px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .site-header .nav-dropdown.is-open .nav-drop { display: block; }
    .site-header .fama-social-links { margin: 16px 0 8px; }
    .btn-platform { align-self: flex-start; margin-top: 10px; }
    .header-curve { width: 150px; height: 28px; }
}

@media (max-width: 980px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
    .site-footer .footer-col { padding: 0 8px 0 24px; border-left: 0; }
    .site-footer .footer-col:nth-child(odd) { padding-left: 0; }
    .site-footer .footer-col:nth-child(even) { border-left: 1px solid rgba(226, 234, 246, .16); }
}

@media (max-width: 680px) {
    .site-footer { padding-top: 52px; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .site-footer .footer-col,
    .site-footer .footer-col:nth-child(even) { padding: 0; border-left: 0; }
    .site-footer .footer-bottom { flex-wrap: wrap; align-items: flex-start; }
    .footer-copy { white-space: normal; }
    .site-footer a.footer-privacy { margin-left: 0; }
    .footer-decor__blue { width: 120%; height: 46%; }
    .footer-decor__gold { width: min(100%, 440px); height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn-platform,
    .site-header .fama-social-link,
    .site-footer .fama-social-link,
    .site-footer a.footer-lock { transition: none; }
}
