/* =========================================================
   Navbar — sticky, shisha (glassmorphism)
   ========================================================= */
.navbar { position: sticky; top: 0; z-index: 100; padding: 10px 0 0; }
.nav-container {
    max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px;
}
.nav-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 10px 14px 10px 14px;
    background: rgba(11, 17, 32, 0.62);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 30px -18px rgba(0,0,0,.7);
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-box {
    background: var(--grad-logo); color: #fff;
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.04em;
    box-shadow: 0 8px 22px -6px rgba(59,130,246,.75), inset 0 1px 0 rgba(255,255,255,.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 16px; font-weight: 700; color: var(--text-main); }
.logo-text small { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 14.5px; position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { color: var(--text-main); font-weight: 600; }
.nav-links a.active::after {
    content: ''; position: absolute; left: -6px; right: -6px; bottom: -17px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #38BDF8, #3B82F6, transparent);
    box-shadow: 0 0 12px rgba(56,189,248,.9);
}
.nav-links .nav-cta-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 10px; color: var(--text-soft); font-size: 18px; cursor: pointer; transition: .2s;
}
.icon-btn:hover { color: var(--text-main); background: rgba(148,163,184,.08); }
.nav-cta { padding: 10px 18px; font-size: 14px; border-radius: 12px; gap: 9px; }
.nav-cta .fa-telegram { font-size: 17px; color: #29A9EB; }
.nav-cta:hover { border-color: rgba(41, 169, 235, .7); background: rgba(41, 169, 235, .1); }
.logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 8px 22px -6px rgba(59,130,246,.6); }

.menu-toggle {
    display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; border-radius: 10px;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text-main); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.light-mode .nav-inner { background: rgba(255,255,255,.72); }

@media (max-width: 1080px) {
    .nav-links { gap: 22px; }
}
@media (max-width: 960px) {
    .nav-links {
        display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
        background: var(--surface-strong); border: 1px solid var(--line); border-radius: 16px;
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
    }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; padding: 12px 14px; border-radius: 10px; }
    .nav-links a:hover, .nav-links a.active { background: rgba(59,130,246,.1); }
    .nav-links a.active::after { display: none; }
    .nav-links .nav-cta-mobile { display: block; }
    .nav-cta span { display: none; }
    .nav-cta { padding: 0; width: 40px; height: 40px; border-radius: 10px; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
    .logo-text small { display: none; }
    .logo-box { width: 40px; height: 40px; font-size: 17px; }
}

