/* АнтиСлив — экраны мобильного приложения в рамках телефона */

.mob-page { padding: var(--sp-10) var(--sp-6) var(--sp-20); max-width: 1500px; margin: 0 auto; }
.mob-head { max-width: 760px; margin-bottom: var(--sp-10); }
.mob-head h1 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.015em; }
.mob-head p { color: var(--text-secondary); margin-top: var(--sp-3); }
.mob-back { display: inline-flex; gap: 8px; font-size: var(--fs-ui); margin-bottom: var(--sp-6); }

.phones { display: flex; gap: var(--sp-8); flex-wrap: wrap; }
.phone-wrap { width: 375px; }
.phone-caption { margin-bottom: var(--sp-3); }
.phone-caption b { display: block; font-size: var(--fs-ui); font-weight: 700; }
.phone-caption span { font-size: var(--fs-table); color: var(--text-muted); }

.phone {
  width: 375px; height: 812px; border-radius: 40px;
  border: 9px solid #1B2436; background: var(--bg-app);
  box-shadow: var(--elev-2); overflow: hidden; position: relative;
}
.phone__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 148px; height: 26px; background: #1B2436; border-radius: 0 0 16px 16px; z-index: 5;
}
.screen { height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.st-bar {
  height: 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-5); font-size: 12px; color: var(--text-secondary); font-weight: 600; flex: none;
}
.sc-body { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.sc-body::-webkit-scrollbar { width: 0; }
.sc-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.sc-sub { font-size: 12px; color: var(--text-muted); }

/* нижняя панель вкладок */
.tabbar {
  flex: none; height: 62px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle); background: var(--bg-base);
}
.tabbar div { display: grid; place-items: center; gap: 3px; font-size: 10px; color: var(--text-muted); }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .is-active { color: var(--accent); }

/* верхняя панель экрана */
.sc-top {
  flex: none; display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
}
.sc-top .brand-sm { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.sc-top .brand-sm svg { width: 20px; height: 20px; color: var(--brand-fuel); }
.sc-top .spacer { flex: 1; }
.sc-top .bell { position: relative; color: var(--text-secondary); }
.sc-top .bell svg { width: 22px; height: 22px; }
.sc-top .bell b {
  position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-full); background: var(--risk-high-solid); color: #fff;
  font-size: 10px; display: grid; place-items: center;
}

/* кольцо риска */
.ring-row { display: flex; align-items: center; gap: var(--sp-4); }
.ring { width: 104px; height: 104px; flex: none; }
.ring-info { display: grid; gap: 2px; }
.ring-info .big { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring-info .sm { font-size: 12px; color: var(--text-muted); }

.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.mini-kpi { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--r-sm); padding: 10px 12px; }
.mini-kpi .label { font-size: 10px; }
.mini-kpi b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.mini-kpi span { font-size: 11px; color: var(--text-muted); }

/* карточки тревог в приложении */
.a-list { display: grid; gap: var(--sp-2); overflow: hidden; }
.a-item {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 5px;
}
.a-item.high { border-left: 3px solid var(--risk-high); }
.a-item.med  { border-left: 3px solid var(--risk-med); }
.a-item.low  { border-left: 3px solid var(--border-strong); }
.a-item__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.a-item__type { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.a-item__meta { display: flex; gap: var(--sp-3); font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.a-item__meta .plate { font-size: 11px; }
.a-item__loss { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--risk-high); white-space: nowrap; }

.seg { display: flex; gap: 6px; }
.seg button {
  flex: 1; padding: 6px 0; border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border-default); color: var(--text-secondary);
}
.seg button.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--text-primary); }

/* разбор события на телефоне */
.det-card { background: var(--surface-1); border: 1px solid var(--border-default); border-radius: var(--r-sm); padding: 12px; }
.det-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.det-facts span { color: var(--text-muted); }
.det-facts b { color: var(--text-primary); float: right; font-variant-numeric: tabular-nums; }
.det-rules { display: grid; gap: 5px; font-size: 12px; }
.det-rules li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-secondary); }
.det-rules b { color: var(--risk-med); font-variant-numeric: tabular-nums; }
.sc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }

/* экран входа */
.sc-login { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); padding: var(--sp-6); }
.sc-login .brand-lg { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.sc-login .brand-lg svg { width: 32px; height: 32px; color: var(--brand-fuel); }
.sc-login .slogan { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: -8px; }

/* локскрин с пушем */
.lock {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #0A1526 0%, #0B1220 55%, #060B14 100%);
  padding: var(--sp-8) var(--sp-4) var(--sp-6);
}
.lock__time { font-size: 62px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lock__date { color: var(--text-secondary); font-size: 14px; margin-bottom: var(--sp-8); }
.push {
  width: 100%; background: rgba(23,35,58,.96); border: 1px solid var(--border-default);
  border-radius: var(--r-lg); padding: 12px 14px; display: grid; gap: 7px; box-shadow: var(--elev-2);
}
.push__head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.push__head .ic { width: 18px; height: 18px; color: var(--brand-fuel); }
.push__title { font-size: 14px; font-weight: 700; }
.push__text { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.push__foot { display: flex; gap: 8px; margin-top: 2px; }
.push__foot span {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 7px 0; background: var(--surface-inset); border-radius: var(--r-sm);
}
.push--small { opacity: .55; }

@media (max-width: 820px) {
  .mob-page { padding: var(--sp-6) var(--sp-4) var(--sp-12); }
  .phones { gap: var(--sp-6); justify-content: center; }
  .phone-wrap, .phone { width: 100%; max-width: 375px; }
}
