@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

/* Homepage navigation, scoped so page-specific styles cannot change its layout. */
.header.site-header { position:sticky; top:0; z-index:100; margin:0; padding:0; background:#000; border-bottom:1px solid #1a1a1a; backdrop-filter:none; color:#fff; font:14px/normal 'Montserrat',sans-serif; }
.site-header, .site-header * { box-sizing:border-box; }
.site-header [hidden] { display:none !important; }
.site-header a { text-decoration:none; }
.site-header button { font-family:inherit; cursor:pointer; }
.site-header :focus-visible { outline:2px solid #ffd700; outline-offset:4px; }
.site-header__inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:80px; max-width:1280px; margin:0 auto; padding:0 20px; }
.site-header__brand { display:flex; align-items:center; gap:8px; flex-shrink:0; color:#fff; font-size:22px; font-weight:700; letter-spacing:.5px; }
.site-header__brand:hover { color:#fff; }
.site-header__brand img { display:block; width:30px; height:30px; flex:0 0 30px; object-fit:contain; filter:drop-shadow(0 0 7px rgba(255,215,0,.22)); }
.site-header__menu { display:flex; flex:1; align-items:center; justify-content:center; }
.site-header__nav { display:flex; gap:25px; }
.site-header__nav a, .site-header__account { color:#ccc; font-size:14px; font-weight:500; transition:color .2s; }
.site-header__nav a:hover, .site-header__account:hover { color:#ffd700; }
.site-header__auth-desktop { display:flex; align-items:center; gap:15px; flex-shrink:0; }
.site-header__account { margin-right:20px; }
.site-header__button { display:inline-block; padding:8px 20px; background:#ffd700; color:#0a0a0a; border-radius:20px; font-size:14px; font-weight:600; white-space:nowrap; transition:background .3s,transform .3s; }
.site-header__button:hover { background:#e4bf47; color:#0a0a0a; transform:translateY(-2px); box-shadow:0 0 15px rgba(255,215,0,.4); }
.site-header__toggle, .site-header__mobile-heading, .site-header__auth-mobile, .site-header__overlay { display:none; }
html.site-menu-open { overflow:hidden; }
html.telegram-webapp .site-header { padding-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px)); background:var(--tg-theme-bg-color,#000); }
html.telegram-webapp .site-header__brand, html.telegram-webapp .site-header__nav a, html.telegram-webapp .site-header__account, html.telegram-webapp .site-header__toggle { color:var(--tg-theme-text-color,#fff); }

@media (max-width:992px) {
    .site-header__inner { position:relative; flex-wrap:wrap; justify-content:center; gap:10px; padding:20px 16px; }
    .site-header__inner>.site-header__brand { justify-content:center; max-width:calc(100% - 80px); overflow-wrap:anywhere; }
    .site-header__toggle { display:flex; align-items:center; justify-content:center; position:absolute; right:16px; top:50%; transform:translateY(-50%); margin:0; padding:10px; background:none; border:0; color:#fff; }
    .site-header__auth-desktop { display:none; }
    .site-header__menu { flex-basis:100%; flex-direction:column; align-items:stretch; }
    .site-header.is-enhanced .site-header__menu { position:fixed; top:0; right:0; bottom:0; width:min(280px,calc(100vw - 24px)); height:100vh; height:100dvh; overflow-y:auto; overscroll-behavior:contain; justify-content:flex-start; margin:0; padding:0 0 env(safe-area-inset-bottom,0px); background:#0f0f0f; border-left:1px solid #1f1f1f; box-shadow:-10px 0 30px rgba(0,0,0,.8); z-index:2000; transform:translateX(110%); visibility:hidden; transition:transform .3s,visibility .3s; }
    .site-header.is-open .site-header__menu { transform:translateX(0); visibility:visible; }
    .site-header__overlay { display:block; position:fixed; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(4px); z-index:1999; }
    .site-header__mobile-heading { display:flex; align-items:center; justify-content:space-between; padding:20px 25px; border-bottom:1px solid #1f1f1f; }
    .site-header__close { padding:0; margin:0; background:none; border:0; color:#888; font-size:36px; line-height:1; }
    .site-header__nav { flex-direction:column; padding:25px; gap:20px; }
    .site-header__nav a { font-size:16px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.03); }
    .site-header__auth-mobile { display:flex; flex-direction:column; gap:8px; padding:20px; margin-top:auto; border-top:1px solid rgba(255,255,255,.05); }
    .site-header__auth-mobile a { width:100%; margin:0; padding:10px; text-align:center; }
    html.telegram-webapp .site-header__menu { background:var(--tg-theme-bg-color,#0f0f0f); padding-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px)); }
}
@media (prefers-reduced-motion:reduce) { .site-header *, .site-header.is-enhanced .site-header__menu { transition:none; } }
