/* ПравоРадар — компоненты (D1) */

/* ══ Кнопки ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 0 16px; height: 40px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--primary  { background: var(--primary);  color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--accent   { background: var(--accent);   color: #fff; }
.btn--accent:hover { background: #8d3f35; color: #fff; }
.btn--ghost    { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-soft); }
.btn--soft     { background: var(--surface-soft); color: var(--text-main); border-color: var(--border); }
.btn--soft:hover { background: var(--border); }
.btn--danger   { background: var(--danger); color: #fff; }
.btn--sm       { height: 32px; font-size: 13px; padding: 0 12px; }
.btn--lg       { height: 44px; font-size: 15px; padding: 0 20px; }
.btn--block    { width: 100%; }
.btn .spinner  { width: 16px; height: 16px; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }

.link-btn {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline;
  font-size: 14px;
}
.link-btn:hover { color: #8d3f35; }

/* ══ Поля ввода ══ */
.field  { display: block; margin-bottom: var(--space-4); }
.label  { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; color: var(--text-main); }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--text-main);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 0 12px; height: 40px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--primary); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 56, 77, 0.14);
}
.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(163, 62, 62, 0.12);
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.helper       { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.inline-error { font-size: 13px; color: var(--danger); margin-top: 5px; font-weight: 500; }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 3px 0; }
.check input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; flex: 0 0 auto; margin-top: 2px;
  accent-color: var(--primary);
}
.check span { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.check a { color: var(--accent); font-weight: 500; }

/* OTP */
.otp { display: flex; gap: 8px; }
.otp input {
  width: 48px; height: 56px; text-align: center; font-size: 24px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text-main);
}
.otp input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(38,56,77,0.14); }
@media (max-width: 480px) {
  .otp { gap: 6px; }
  .otp input { width: 42px; height: 50px; font-size: 20px; }
}

/* ══ Карточки ══ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card--tight  { padding: var(--space-4); }
.card--raised { box-shadow: var(--shadow-md); }

/* ══ Бейджи статуса ══ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 3px 8px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--neutral  { background: var(--surface-soft); color: var(--text-secondary); }
.badge--info     { background: var(--info-soft);    color: var(--info); }
.badge--success  { background: var(--success-soft); color: var(--success); }
.badge--warning  { background: var(--warning-soft); color: var(--warning); }
.badge--danger   { background: var(--danger-soft);  color: var(--danger); }
.badge--accent   { background: var(--accent-soft);  color: var(--accent); }
.badge--soon     { background: var(--warning-soft); color: var(--warning); }
.badge--status   { background: var(--info-soft);    color: var(--info); }
.badge--muted    { background: var(--surface-soft); color: var(--text-muted); }

/* ══ Алерты ══ */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px;
  border: 1px solid transparent;
}
.alert__icon { flex: 0 0 auto; margin-top: 1px; }
.alert--info    { background: var(--info-soft);    color: var(--info);    border-color: #ccd9e3; }
.alert--success { background: var(--success-soft); color: var(--success); border-color: #c1d9cb; }
.alert--warning { background: var(--warning-soft); color: var(--warning); border-color: #e8d3af; }
.alert--danger  { background: var(--danger-soft);  color: var(--danger);  border-color: #e8c8c8; }

/* ══ Шапка публичная ══ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(245, 243, 238, 0.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; gap: var(--space-5);
}
.header-nav { display: flex; align-items: center; gap: var(--space-5); }
.header-nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: var(--text-main); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.logo {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 700; font-size: 17px;
}
.logo:hover { text-decoration: none; color: var(--primary-hover); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); width: 40px; height: 40px;
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--text-secondary);
}
@media (max-width: 860px) {
  .header-nav, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ══ Мобильное меню ══ */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-modal); display: none; }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(32, 35, 38, 0.4); }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(84%, 320px);
  background: var(--surface); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  box-shadow: var(--shadow-modal);
}
.mobile-menu__panel a { font-size: 16px; color: var(--text-main); padding: 9px 0; display: block; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }

/* ══ Футер ══ */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding-block: var(--space-10);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
.footer-col-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: var(--space-3);
}
.footer-grid a { display: block; color: var(--text-secondary); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--text-main); text-decoration: none; }
.footer-disclaimer {
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ══ Портальный топбар ══ */
.ptopbar-logo {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 700; font-size: 16px; white-space: nowrap;
  flex: 0 0 calc(var(--sidebar-w) - var(--portal-pad));
  text-decoration: none;
}
.ptopbar-logo:hover { color: var(--primary-hover); text-decoration: none; }
.ptopbar-search {
  flex: 1; max-width: 360px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 12px; height: 36px;
  font-size: 14px; color: var(--text-muted);
  cursor: text;
}
.ptopbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.ptopbar-icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.ptopbar-icon-btn:hover { background: var(--surface-soft); color: var(--text-main); }
.ptopbar-profile {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-secondary); cursor: pointer;
  padding: 4px 8px; border-radius: var(--radius-md);
  border: none; background: none; font-family: inherit;
  transition: background var(--transition);
}
.ptopbar-profile:hover { background: var(--surface-soft); color: var(--text-main); }
.ptopbar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex: 0 0 auto;
}
.ptopbar-menu-btn {
  display: none; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text-secondary);
}
@media (max-width: 768px) {
  .ptopbar-logo { flex: 0 0 auto; }
  .ptopbar-search { display: none; }
  .ptopbar-menu-btn { display: inline-flex; }
}

/* ══ Портальный сайдбар ══ */
.pnav { padding: var(--space-2) 0; }
.pnav__section { padding: var(--space-2) 0; }
.pnav__section + .pnav__section { border-top: 1px solid var(--border); margin-top: var(--space-2); }
.pnav__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 14px; margin-bottom: 4px;
}
.pnav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 0 14px; height: 40px;
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; position: relative; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.pnav-item:hover { background: var(--surface-soft); color: var(--text-main); text-decoration: none; }
.pnav-item.is-active {
  color: var(--primary); font-weight: 600;
  background: var(--info-soft);
}
.pnav-item.is-active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--primary); border-radius: 0 2px 2px 0;
}
.pnav-item .pnav-icon { flex: 0 0 17px; width: 17px; height: 17px; }
.pnav-item .pnav-badge {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  padding: 1px 6px; border-radius: var(--radius-pill);
}
.pnav-soon { opacity: 0.5; pointer-events: none; cursor: default; }

/* ══ Портальный контент ══ */
.portal-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5);
}
.portal-page-head__left  { min-width: 0; }
.portal-page-head__title { font-size: 22px; font-weight: 700; color: var(--text-main); line-height: 1.2; }
.portal-page-head__sub   { font-size: 14px; color: var(--text-muted); margin-top: 3px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: var(--space-4); flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text-main); text-decoration: none; }
.breadcrumbs .sep { color: var(--border-strong); }

/* ══ Метрики/карточки показателей ══ */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.metric-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  min-height: 80px;
}
.metric-card__label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.metric-card__value { font-size: 26px; font-weight: 700; color: var(--text-main); line-height: 1; }
.metric-card__sub   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.metric-card--accent .metric-card__value { color: var(--accent); }
.metric-card--warn  .metric-card__value  { color: var(--warning); }
.metric-card--info  .metric-card__value  { color: var(--info); }
@media (max-width: 860px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); } }

/* ══ Таблица дел ══ */
.cases-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cases-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; background: var(--surface);
}
.cases-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cases-table tr:last-child td { border-bottom: none; }
.cases-table tr:hover td { background: var(--surface-soft); }
.cases-table .case-title { font-weight: 500; color: var(--text-main); }
.cases-table .case-type  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cases-table .action-link { font-size: 13px; color: var(--accent); white-space: nowrap; }
.cases-table .action-link:hover { text-decoration: underline; }

/* ══ Фильтры-табы ══ */
.filter-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.filter-tab {
  padding: 6px 12px; font-size: 13px; font-weight: 500; border-radius: var(--radius-md);
  background: none; border: 1px solid transparent; cursor: pointer;
  color: var(--text-secondary); font-family: inherit;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-tab:hover { background: var(--surface-soft); color: var(--text-main); }
.filter-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ══ Карточка дела (68/32) ══ */
.case-layout { display: grid; grid-template-columns: 1fr 288px; gap: var(--space-5); align-items: start; }
.case-left   { min-width: 0; }
.case-right  { position: sticky; top: calc(var(--topbar-h) + var(--portal-pad)); }
@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-right  { position: static; order: -1; }
}

.case-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 13px; color: var(--text-secondary); margin-top: var(--space-2); }
.case-meta strong { color: var(--text-main); }

.case-tabs { display: flex; border-bottom: 1px solid var(--border); gap: 2px; margin-bottom: var(--space-5); overflow-x: auto; }
.case-tab {
  padding: 0 var(--space-3); height: 40px; font-size: 14px; font-weight: 500;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; color: var(--text-secondary); font-family: inherit;
  margin-bottom: -1px; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.case-tab:hover { color: var(--text-main); }
.case-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.case-tab-panel { display: none; }
.case-tab-panel.is-active { display: block; }

/* ══ Правая панель карточки дела ══ */
.action-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.action-panel__block { padding: 14px 16px; }
.action-panel__block + .action-panel__block { border-top: 1px solid var(--border); }
.action-panel__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.action-panel__title { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.4; }
.action-panel__body  { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.action-panel__deadline { font-size: 20px; font-weight: 700; color: var(--text-main); }
.action-panel__deadline-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.action-panel__actions { display: flex; flex-direction: column; gap: var(--space-2); }

/* ══ Хронология ══ */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; position: relative; padding-bottom: var(--space-4); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 6px; top: 14px; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-dot {
  flex: 0 0 13px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--surface);
  margin-top: 3px; position: relative; z-index: 1;
}
.timeline-dot--done   { background: var(--success); }
.timeline-dot--active { background: var(--primary); }
.timeline-body { min-width: 0; }
.timeline-date { font-size: 12px; color: var(--text-muted); }
.timeline-text { font-size: 14px; color: var(--text-main); margin-top: 2px; line-height: 1.4; }

/* ══ KV-список ══ */
.kv-table { display: grid; grid-template-columns: 160px 1fr; gap: 8px var(--space-4); }
.kv-table dt { font-size: 13px; color: var(--text-muted); align-self: start; padding-top: 1px; }
.kv-table dd { margin: 0; font-size: 14px; color: var(--text-main); }
.confidence { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.confidence--high { color: var(--success); }
.confidence--med  { color: var(--warning); }
.confidence--low  { color: var(--danger); }

/* ══ Документы-таблица ══ */
.docs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap;
}
.docs-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover td { background: var(--surface-soft); }
.docs-table .doc-name { font-weight: 500; color: var(--text-main); }
.docs-table .doc-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ══ Сроки ══ */
.deadline-list { display: flex; flex-direction: column; gap: var(--space-3); }
.deadline-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: var(--space-3); align-items: center;
}
.deadline-date { text-align: center; }
.deadline-day  { font-size: 22px; font-weight: 700; line-height: 1; color: var(--text-main); }
.deadline-mon  { font-size: 12px; color: var(--text-muted); }
.deadline-title{ font-size: 14px; font-weight: 500; color: var(--text-main); }
.deadline-case { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.deadline-warn { font-size: 12px; color: var(--warning); margin-top: 4px; }
.deadline-item--urgent { border-color: var(--danger); background: var(--danger-soft); }
.deadline-item--urgent .deadline-day { color: var(--danger); }

/* ══ Пустые состояния ══ */
.empty-state { text-align: center; padding: var(--space-12) var(--space-6); }
.empty-state__icon { width: 48px; height: 48px; margin: 0 auto var(--space-4); color: var(--text-muted); }
.empty-state__title { font-size: 17px; font-weight: 600; color: var(--text-main); }
.empty-state__body  { font-size: 14px; color: var(--text-secondary); margin-top: var(--space-2); max-width: 44ch; margin-inline: auto; }

/* ══ Skeleton ══ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-soft) 25%, #e4e0d8 37%, var(--surface-soft) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ══ Spinner ══ */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.spinner--dark { border-color: var(--border-strong); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ Toast ══ */
.toast-region {
  position: fixed; bottom: var(--space-5); left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--text-main); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal); font-size: 14px;
  white-space: nowrap;
}

/* ══ Trust items ══ */
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-secondary); }

/* ══ Accordion ══ */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--text-main);
  padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.accordion__btn .chev { transition: transform var(--transition); flex: 0 0 auto; color: var(--text-muted); }
.accordion__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion__panel { padding: 0 0 var(--space-4); color: var(--text-secondary); font-size: 14px; max-width: 70ch; }
.accordion__panel[hidden] { display: none; }

/* ══ "Раздел готовится" ══ */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 320px; padding: var(--space-12) var(--space-6);
}
.coming-soon__icon { color: var(--text-muted); margin-bottom: var(--space-4); }
.coming-soon__title { font-size: 18px; font-weight: 600; color: var(--text-main); }
.coming-soon__body  { font-size: 14px; color: var(--text-secondary); margin-top: var(--space-2); max-width: 40ch; }

/* ══ Мобильная нижняя навигация (портал) ══ */
.portal-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-header);
  background: var(--surface); border-top: 1px solid var(--border);
  height: 56px;
}
.portal-bottom-nav__inner { display: flex; align-items: stretch; height: 100%; }
.pbn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--text-muted);
  text-decoration: none; min-width: 0;
  transition: color var(--transition);
}
.pbn-item:hover { color: var(--text-main); text-decoration: none; }
.pbn-item.is-active { color: var(--primary); }
.pbn-item svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .portal-bottom-nav { display: flex; } }

/* ══ Сайдбар backdrop (mobile) ══ */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: calc(var(--z-sidebar) - 1);
  background: rgba(32, 35, 38, 0.4);
}
.sidebar-backdrop.is-visible { display: block; }
