/* ============================================================================
   Макеты: публичный сайт, вход, кабинеты
   ========================================================================== */

/* Фоновые орнаменты (Центральная Азия) */
.bg-ornaments { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-ornaments::before, .bg-ornaments::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.bg-ornaments::before { width: 620px; height: 620px; top: -240px; right: -160px; background: radial-gradient(circle, var(--primary) 0%, transparent 68%); opacity: .22; }
.bg-ornaments::after { width: 540px; height: 540px; bottom: -200px; left: -160px; background: radial-gradient(circle, var(--emerald) 0%, transparent 68%); opacity: .18; }
.bg-pattern { position: fixed; inset: 0; z-index: -1; opacity: .5; background-image: var(--ornament-url); background-size: 440px; }

/* ====================== ПУБЛИЧНЫЙ ХЕДЕР ====================== */
.site-header { position: sticky; top: 0; z-index: 100; transition: var(--t); }
.topbar { background: var(--grad-night); color: #fff; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a, .topbar span { color: rgba(255,255,255,.86); display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; }
.topbar .topbar-tools { display: flex; align-items: center; gap: 6px; }

.navbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .emblem { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-display); font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.brand-text small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: var(--t); position: relative; }
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2.5px; border-radius: 9px; background: var(--primary); }
.nav-tools { display: flex; align-items: center; gap: 10px; }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); transition: var(--t); }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-switch { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; }
.lang-switch button { padding: 5px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px; color: var(--muted); transition: var(--t); font-family: var(--font-display); }
.lang-switch button.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-xs); }
.burger { display: none; }

/* ====================== HERO ====================== */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin-bottom: 22px; }
.hero .lead { font-size: 18.5px; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta .hm { display: flex; flex-direction: column; }
.hero-meta .hm b { font-family: var(--font-display); font-size: 26px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta .hm span { font-size: 13px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; height: 480px; }
.hero-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px;
}
.hero-emblem-big { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-emblem-big svg { width: 320px; height: 320px; filter: drop-shadow(0 24px 50px var(--primary-glow)); animation: floatSlow 7s ease-in-out infinite; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 11px; padding: 13px 17px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.float-badge .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.float-badge b { font-family: var(--font-display); font-size: 18px; display: block; line-height: 1; }
.float-badge small { color: var(--muted); font-size: 12px; }
.fb-1 { top: 26px; left: -10px; animation-delay: .2s; }
.fb-2 { top: 50%; right: -16px; animation-delay: 1.4s; }
.fb-3 { bottom: 22px; left: 30px; animation-delay: .8s; }

/* ====================== СТАТИСТИКА ====================== */
.stats-band { margin-top: -44px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 22px; }
.stat-card .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.stat-card .ic svg { width: 27px; height: 27px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 4px; }

/* ====================== Mission ====================== */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mission-card { padding: 34px; border-radius: var(--r-xl); position: relative; overflow: hidden; color: #fff; }
.mission-card.ky { background: var(--grad-brand); }
.mission-card.ru { background: var(--grad-cool); }
.mission-card h3 { font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.mission-card p { font-size: 15.5px; line-height: 1.7; opacity: .96; }
.mission-card .watermark { position: absolute; right: -20px; bottom: -30px; opacity: .14; width: 180px; }

/* ====================== Новости ====================== */
.news-card { overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.news-cover { height: 188px; position: relative; overflow: hidden; }
.news-cover .cat { position: absolute; top: 14px; left: 14px; z-index: 2; }
.news-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 18px; line-height: 1.25; }
.news-card .excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.news-meta { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 12.5px; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--border); }
.news-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; overflow: hidden; }
.news-feature .cover { min-height: 340px; }

/* ====================== Учителя ====================== */
.teacher-card { text-align: center; padding: 26px 20px; }
.teacher-card .ph { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #fff; position: relative; }
.teacher-card .ph::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed var(--border-strong); animation: spinSlow 18s linear infinite; }
.teacher-card h4 { font-size: 17px; }
.teacher-card .pos { color: var(--primary); font-weight: 600; font-size: 13.5px; margin: 4px 0 12px; }
.teacher-subjects { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ====================== События ====================== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2.5px; background: linear-gradient(var(--primary), transparent); border-radius: 9px; }
.tl-item { position: relative; padding: 0 0 26px; }
.tl-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-date { font-family: var(--font-display); font-weight: 800; color: var(--primary); font-size: 14px; }

/* ====================== Галерея ====================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: 180px; }
.gallery-item { border-radius: var(--r); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item .ov { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(transparent 45%, rgba(8,12,28,.72)); color: #fff; opacity: 0; transition: var(--t); font-weight: 600; font-size: 14px; }
.gallery-item:hover .ov { opacity: 1; }
.gallery-item:hover img, .gallery-item:hover .cover-svg { transform: scale(1.08); }
.gallery-item img, .gallery-item .cover-svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }

/* Фото-обложки */
.cover-svg { width: 100%; height: 100%; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(12,18,40,.12) 0%, rgba(12,18,40,.30) 60%, rgba(12,18,40,.62) 100%); }
.news-cover .cat, .news-feature .cover .cat { z-index: 3; }
.gallery-item .ov { z-index: 3; }
.gallery-item:hover .cover-img { transform: scale(1.08); }

/* ====================== Достижения ====================== */
.ach-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.ach-card .medal { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }

/* ====================== Контакты ====================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--surface-2); }
.contact-item .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; min-height: 300px; border: 1px solid var(--border); }

/* ====================== Footer ====================== */
.site-footer { background: var(--grad-night); color: rgba(255,255,255,.82); padding: 60px 0 26px; margin-top: 40px; position: relative; overflow: hidden; }
.site-footer h5 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 36px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-dev { color: #fff; font-weight: 700; }

/* ====================== ВХОД ====================== */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-aside { background: var(--grad-night); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-aside .pattern { position: absolute; inset: 0; opacity: .12; background-size: 300px; }
.login-aside-content { position: relative; z-index: 2; }
.login-aside h2 { font-size: 34px; line-height: 1.1; margin: 26px 0 16px; }
.login-aside p { opacity: .85; font-size: 16px; max-width: 420px; }
.login-feature { display: flex; gap: 13px; align-items: center; margin-top: 18px; }
.login-feature .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.login-main { display: grid; place-items: center; padding: 40px; position: relative; }
.login-box { width: 100%; max-width: 410px; }
.login-box h1 { font-size: 28px; margin-bottom: 8px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; font-weight: 600; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quick-btn {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border); background: var(--surface); text-align: left; transition: var(--t); width: 100%;
}
.quick-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-btn .qic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.quick-btn b { font-family: var(--font-display); font-size: 14px; display: block; line-height: 1.1; }
.quick-btn small { color: var(--muted); font-size: 11.5px; }
.quick-btn.col-span { grid-column: span 2; }

/* ====================== КАБИНЕТ (shell) ====================== */
.app-shell { display: grid; grid-template-columns: var(--sb-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand .emblem { width: 40px; height: 40px; }
.sidebar-brand b { font-family: var(--font-display); font-size: 15px; line-height: 1.1; }
.sidebar-brand small { color: var(--muted); font-size: 11px; }
.sidebar-role { padding: 14px 20px; }
.role-badge { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.sidebar-nav { padding: 8px 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav .nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 16px 12px 6px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: var(--t); position: relative; }
.sidebar-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-primary); }
.sidebar-link .count { margin-left: auto; background: var(--primary-soft); color: var(--primary); padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.sidebar-link.active .count { background: rgba(255,255,255,.25); color: #fff; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 50; gap: 16px; }
.app-topbar h1 { font-size: 20px; }
.app-topbar .crumb { color: var(--muted); font-size: 13px; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: var(--t); }
.user-chip:hover { border-color: var(--primary); }
.user-chip .nm { font-size: 13.5px; font-weight: 700; font-family: var(--font-display); line-height: 1.1; }
.user-chip .rl { font-size: 11.5px; color: var(--muted); }
.app-content { padding: 26px; flex: 1; }

/* Дашборд-карточки */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { padding: 20px; position: relative; overflow: hidden; }
.kpi .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.kpi .ic svg { width: 24px; height: 24px; }
.kpi .num { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.kpi .lbl { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.kpi .trend { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; }
.kpi-spark { margin-top: 12px; }

.panel { padding: 0; overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 17px; }
.panel-body { padding: 22px; }
.panel-body.p0 { padding: 0; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.dash-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.list-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row .meta { flex: 1; min-width: 0; }
.list-row .meta b { font-size: 14.5px; font-weight: 700; display: block; }
.list-row .meta small { color: var(--muted); font-size: 12.5px; }

/* Расписание */
.schedule-day { margin-bottom: 16px; }
.schedule-day h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: 8px; border-left: 4px solid var(--primary); transition: var(--t); }
.lesson:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.lesson .lno { width: 30px; height: 30px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
.lesson .time { font-size: 12.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Журнал (gradebook) */
.gradebook { overflow-x: auto; }
.gradebook table { border-collapse: collapse; min-width: max-content; }
.gradebook th, .gradebook td { border: 1px solid var(--border); padding: 7px 9px; text-align: center; }
.gradebook th.name, .gradebook td.name { text-align: left; position: sticky; left: 0; background: var(--surface); min-width: 210px; z-index: 2; }
.gradebook thead th { background: var(--surface-2); font-size: 12px; }
.gradebook .cell-add { cursor: pointer; color: var(--faint); transition: var(--t); }
.gradebook .cell-add:hover { background: var(--primary-soft); color: var(--primary); }

/* Empty state */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--faint); opacity: .6; }

/* Segmented */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.segmented button { padding: 7px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 13.5px; color: var(--muted); transition: var(--t); }
.segmented button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs button { padding: 12px 18px; font-weight: 700; font-size: 14.5px; color: var(--muted); border-bottom: 2.5px solid transparent; transition: var(--t); white-space: nowrap; }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ====================== Адаптив ====================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid-3, .mission, .contact-grid, .news-feature { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 200; width: 280px; transform: translateX(-100%); transition: transform var(--t) var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .nav-mobile-toggle { display: grid; }
}
@media (max-width: 560px) {
  .stats-grid, .kpi-grid, .grid-2, .grid-3, .grid-4, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-btn.col-span { grid-column: span 1; }
  .app-content { padding: 16px; }
  .container { padding-inline: 16px; }
  .hero { padding: 36px 0 50px; }
  .hero-visual { height: 250px; }
  .hero-emblem-big svg { width: 210px; height: 210px; }
  .float-badge { display: none; }
  .hero-meta { gap: 18px; }
  .hero-meta .hm b { font-size: 22px; }
  .topbar .hide-sm { display: none; }
  .news-feature .cover { min-height: 200px; }
  .mission-card { padding: 24px; }
  .app-topbar { padding: 0 16px; }
  .app-topbar h1 { font-size: 17px; }
  .lang-switch button { padding: 5px 9px; }
}
@media (max-width: 380px) { .topbar { display: none; } }

/* Mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 300; background: rgba(8,12,28,.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: var(--t); }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); transform: translateX(100%); transition: transform var(--t) var(--ease); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-panel a { padding: 13px 14px; border-radius: var(--r-sm); font-weight: 600; }
.mobile-nav-panel a:hover { background: var(--surface-2); }

.sidebar-backdrop { display: none; }
@media (max-width: 860px) {
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(8,12,28,.5); z-index: 150; }
}
