/* Header and global navigation */
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(202,223,243,.8); box-shadow: 0 6px 26px rgba(9,43,89,.045); backdrop-filter: blur(18px); }
.header-shell { width: min(1320px, calc(100% - 40px)); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 25px; }
.brand-lockup { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-logo-wrap { display: grid; place-items: center; width: 66px; height: 54px; overflow: hidden; }
.brand-logo-wrap img { display: block; width: 66px; height: 50px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { color: var(--blue-deep); font-size: 20px; letter-spacing: .04em; }
.brand-copy small { margin-top: 5px; color: #7e96ae; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.desktop-nav { flex: 1; }
.desktop-nav ul, .mobile-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.7vw, 24px); margin: 0; padding: 0; list-style: none; }
.desktop-nav a, .mobile-nav a { position: relative; display: inline-flex; align-items: center; min-height: 42px; color: #526a83; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .2s ease; }
.desktop-nav a::after { position: absolute; right: 50%; bottom: 2px; left: 50%; height: 2px; content: ""; background: var(--blue); border-radius: 4px; transition: left .22s ease, right .22s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active, .mobile-nav a:hover, .mobile-nav a.is-active { color: var(--blue); }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { right: 0; left: 0; }
.header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.login-button, .register-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px; border-radius: 12px; font-size: 13px; font-weight: 800; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.login-button { color: var(--blue-deep); background: #fff; border: 1px solid #cfe2f5; }
.register-button { color: #fff; background: linear-gradient(135deg, #087deb, #19a7f5); border: 1px solid transparent; box-shadow: 0 8px 18px rgba(8,125,235,.22); }
.login-button:hover, .register-button:hover { transform: translateY(-2px); }
.register-button:hover { box-shadow: 0 12px 24px rgba(8,125,235,.3); }
.mobile-menu-toggle, .mobile-navigation { display: none; }
/* Footer */
.site-footer { position: relative; margin-top: 80px; padding: 58px 0 22px; color: #c9dcf1; background: #071f43; overflow: hidden; }
.site-footer::before { position: absolute; top: -170px; right: -100px; width: 420px; height: 420px; content: ""; border: 1px solid rgba(79,172,244,.16); border-radius: 50%; box-shadow: 0 0 0 35px rgba(79,172,244,.025), 0 0 0 75px rgba(79,172,244,.02); }
.footer-top { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; padding-bottom: 42px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 62px; height: 47px; object-fit: contain; }
.footer-brand span { display: grid; line-height: 1.25; }
.footer-brand strong { font-size: 20px; }
.footer-brand small { margin-top: 5px; color: #8eb4d9; font-size: 10px; }
.footer-brand-block p { max-width: 390px; margin: 18px 0 0; color: #9bb4ce; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h3 { margin: 4px 0 16px; color: #fff; font-size: 13px; }
.footer-links a { display: block; width: fit-content; margin: 9px 0; color: #9bb4ce; font-size: 12px; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(163,197,228,.15); color: #7897b8; font-size: 11px; }
.login-note { position: relative; width: min(var(--shell), calc(100% - 48px)); margin: 24px auto 0; display: flex; align-items: start; gap: 10px; padding: 12px 15px; color: #a9c3dd; background: rgba(255,255,255,.045); border: 1px solid rgba(176,211,241,.12); border-radius: 12px; font-size: 11px; }
.login-note p { margin: 0; }
.login-note strong { color: #dcecff; }
.login-note-mark { color: #65c7f5; font-size: 16px; }
.back-to-top { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--blue); border: 0; border-radius: 14px; box-shadow: 0 10px 25px rgba(8,125,235,.25); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
