/* Нижняя навигация для телефонов (как в Militantum) */
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .content { padding-bottom: 28px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
    background: rgba(5, 17, 20, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar__item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 52px; border-radius: 12px; color: rgba(255,255,255,.62); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    text-decoration: none; border: none; background: transparent; padding: 0; font-family: var(--font); -webkit-tap-highlight-color: transparent;
    cursor: pointer; transition: background .18s, color .18s, transform .08s; min-width: 0;
  }
  .tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
  .tabbar__item:active { transform: scale(.94); }
  .tabbar__item .ico { width: 22px; height: 22px; display: inline-flex; }
  .tabbar__item .ico svg { width: 100%; height: 100%; }
  .tabbar__item.active { color: var(--accent-ink); background: var(--accent); box-shadow: 0 6px 18px -8px rgba(227,252,114,.9); }
  .tabbar__item.active .ico svg { filter: saturate(0) brightness(.25); }
  .tabbar__badge { display: none; position: absolute; top: 4px; right: 14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
  .tabbar__badge.show { display: block; }
  .sidebar { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .nav-backdrop { z-index: 150; }
}
@media (display-mode: standalone) { .topbar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 380px) { .tabbar__label { font-size: 9.5px; letter-spacing: 0; } .tabbar__item { gap: 2px; } }
