/* Меню ЛК — визуальная реализация меню главной страницы.
   Блоки SIDEBAR + MOBILE DRAWER скопированы verbatim из axplusb.eu/css/base.css
   (источник: apps/axplusb_eu_new/css/base.css, сверено 2026-07-22).
   Do NOT invent values here; keep in sync with the marketing site. */

/* ------------------------------------------------------------
   SIDEBAR (single shared component, injected by shell.js)
   ------------------------------------------------------------ */
.ax-side {
  position: sticky; top: 0; height: 100vh; width: 248px; flex: none;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40;
  font-family: var(--body);
}
.ax-side__logo {
  height: 92px; flex: none; display: flex; align-items: center;
  padding: 0 24px; border-bottom: 1px solid var(--line);
}
.ax-side__logo a {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--head); font-weight: 600; font-size: 23px;
  color: var(--ink); letter-spacing: -.01em; text-decoration: none;
}
.ax-side__logo .ax-plus { color: var(--accent); }

.ax-side__scroll { flex: 1; position: relative; min-height: 0; }
.ax-nav {
  height: 100%; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ax-nav::-webkit-scrollbar { width: 0; display: none; }

.ax-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.ax-nav a svg { flex: none; }
.ax-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.ax-nav a.is-active {
  background: var(--accent-soft); color: var(--ink); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* animated scroll hint */
@keyframes axscrollhint { 0%,100% { opacity: 0; transform: translateY(-3px); } 50% { opacity: .6; transform: translateY(3px); } }
.ax-scrollhint {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px; pointer-events: none;
  background: linear-gradient(to top, var(--surface) 30%, transparent);
}
.ax-scrollhint svg { animation: axscrollhint 1.9s ease-in-out infinite; }

.ax-side__foot { padding: 16px; border-top: 1px solid var(--line); flex: none; }

/* ------------------------------------------------------------
   MOBILE DRAWER (hamburger + off-canvas ≤ 820px)
   ------------------------------------------------------------ */
.ax-burger {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 62;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(40,30,15,.14);
}
.ax-burger svg { display: block; }
.ax-overlay { display: none; position: fixed; inset: 0; background: rgba(20,15,8,.42); z-index: 55; }
.ax-overlay.is-open { display: block; }

/* in-drawer close (X) — shown only when the off-canvas drawer is active */
.ax-side__close {
  display: none; position: absolute; top: 28px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  align-items: center; justify-content: center; color: var(--ink);
}

@media (max-width: 820px) {
  .ax-side {
    position: fixed; top: 0; left: 0; z-index: 60; height: 100dvh;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .ax-side.is-open { transform: none; box-shadow: 0 0 60px rgba(30,20,10,.32); }
  .ax-burger { display: flex; }
  .ax-burger.is-open { display: none; }   /* hamburger hides while drawer is open */
  .ax-side__close { display: flex; }
}
