/* ===================== TOKENS ===================== */
:root {
  --bg: #FBFBFB;
  --bg-section: #F2F2F2;
  --bg-card: #FFFFFF;
  --bg-dark: #282323;
  --bg-dark-2: #1A1616;
  --text: #282323;
  --text-secondary: #555555;
  --text-dim: #898989;
  --accent: #D93433;
  --accent-hover: #B82A29;
  --accent-soft: #fbe5e5;
  --success: #38cc70;
  --success-soft: rgba(56,204,112,0.15);
  --warning: #FFA726;
  --warning-soft: rgba(255,167,38,0.15);
  --border: #E7E7E7;
  --border-2: #D9D9D9;
  --radius: 14px;
  --radius-pill: 100px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --font-display: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.p3k {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===================== TYPOGRAPHY ===================== */
.d-h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.d-h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.d-h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.d-h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.d-body { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.d-small { font-size: 12px; color: var(--text-dim); }
.d-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.d-overline {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(217,52,51,0.3); }
.btn-primary:disabled { background: #f3aeae; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-dark { background: var(--bg-dark); color: white; }
.btn-dark:hover { background: var(--bg-dark-2); }
.btn-ghost { background: var(--bg-section); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-glass { background: rgba(255,255,255,0.12); color: white; border: 1.5px solid rgba(255,255,255,0.22); }
.btn-glass:hover { background: rgba(255,255,255,0.18); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-lg { padding: 16px 32px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

/* ===================== INPUTS ===================== */
.inp {
  width: 100%; padding: 14px 16px; background: var(--bg);
  border: 1.5px solid var(--border-2); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.inp::placeholder { color: var(--text-dim); }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp-plate {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 22px; text-align: center; padding: 16px 16px;
}
.inp-group { display: flex; flex-direction: column; gap: 8px; }
.inp-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
}
.inp-hint { font-size: 11px; color: var(--text-dim); }
.inp-error { color: var(--accent); font-size: 11px; }

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 16px;
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s;
}
.card-dark { background: var(--bg-dark); color: white; border-color: transparent; }
.card-accent { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.card-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 10px; flex-shrink: 0;
}

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.badge-success { background: var(--success-soft); color: #2a9e57; }
.badge-warning { background: var(--warning-soft); color: #c97a00; }
.badge-danger { background: var(--accent-soft); color: var(--accent); }
.badge-neutral { background: var(--bg-section); color: var(--text-secondary); }
.badge-dark { background: var(--bg-dark); color: white; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ===================== TABS / SEGMENTED ===================== */
.tabs {
  display: flex; gap: 4px; background: var(--bg-section);
  padding: 4px; border-radius: 12px;
}
.tab {
  flex: 1; padding: 9px 12px; border-radius: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  cursor: pointer; color: var(--text-secondary);
  transition: all 0.15s; border: none; background: none;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.tab.active { background: white; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* filter chip */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-section);
  border: none; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--bg-dark); color: white; }

/* ===================== STAT TILE ===================== */
.stat-tile {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 12px;
  text-align: center; min-width: 0; flex: 1;
}
.stat-num {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--accent); line-height: 1; letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px; color: var(--text-secondary); margin-top: 6px;
  text-transform: uppercase; font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.04em;
}

/* ===================== LIST ITEM ===================== */
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.12s;
  cursor: pointer;
}
.list-item:active { transform: scale(0.99); }
.list-item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
}
.list-item-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ===================== PERMIT CARD ===================== */
.permit-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.18s;
}
.permit-card:active { transform: scale(0.99); }
.permit-card:hover { box-shadow: var(--shadow-hover); }
.permit-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.permit-plate {
  font-family: var(--font-display); font-size: 16px; font-weight: 800;
  letter-spacing: 0.06em;
}
.permit-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.permit-field { background: var(--bg-section); border-radius: 8px; padding: 8px 10px; }
.permit-field-label {
  font-size: 9px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-family: var(--font-display); font-weight: 600;
}
.permit-field-value {
  font-size: 12px; font-weight: 700; color: var(--text);
  margin-top: 2px; font-family: var(--font-display);
}

/* ===================== STEP INDICATOR ===================== */
.steps { display: flex; align-items: center; gap: 0; padding: 0 4px; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
  flex-shrink: 0; transition: all 0.2s;
}
.step-dot.done { background: var(--accent); color: white; }
.step-dot.active { background: var(--accent); color: white; box-shadow: 0 0 0 4px var(--accent-soft); }
.step-dot.pending {
  background: var(--bg-section); color: var(--text-dim);
  border: 1.5px solid var(--border);
}
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; }
.step-line.done { background: var(--accent); }

/* ===================== ZONE CARD ===================== */
.zone-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; cursor: pointer; transition: all 0.15s;
  background: var(--bg-card);
}
.zone-card:hover { border-color: var(--accent); }
.zone-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.zone-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; color: var(--accent); letter-spacing: -0.01em;
}
.zone-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.zone-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; color: var(--text); margin-top: 8px;
}

/* ===================== AVATAR ===================== */
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}

/* ===================== BOTTOM NAV ===================== */
.bottom-nav {
  background: white; border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 4px calc(14px + env(safe-area-inset-bottom)) 4px;
  flex-shrink: 0;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 7px 4px; gap: 3px; cursor: pointer; border: none; background: none;
  color: var(--text-dim);
  transition: color 0.15s;
}
.nav-item.active { color: var(--accent); }
.nav-label {
  font-size: 9px; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ===================== HEADER ===================== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: white; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.header-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 15px; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: white;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-section); border: none; cursor: pointer;
  color: var(--text-secondary); position: relative;
}
.icon-btn:hover { background: var(--border); }
.icon-btn-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; border: 2px solid white;
}

/* ===================== SCROLL AREA ===================== */
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 16px;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

/* ===================== HERO (DARK) ===================== */
.hero-dark {
  background: var(--bg-dark);
  color: white;
  padding: 24px 18px 28px;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: ''; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,52,51,0.35), transparent 70%);
  top: -60px; right: -60px;
  pointer-events: none;
}

/* ===================== FAB ===================== */
.fab {
  position: absolute; right: 18px; bottom: 88px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(217,52,51,0.4);
  z-index: 5;
  transition: transform 0.15s;
}
.fab:active { transform: scale(0.95); }

/* ===================== TOAST ===================== */
.toast {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 110px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 100; pointer-events: none;
  animation: toastIn 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  max-width: 320px;
}
.toast-success { background: var(--bg-dark); color: white; }
.toast-error { background: var(--accent); color: white; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===================== SCREEN TRANSITION ===================== */
/* Keep opacity at 1 in both keyframes so screens are visible even if the
   animation never ticks (some iframe environments freeze RAF). */
.screen-enter { animation: screenIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes screenIn {
  0%   { opacity: 1; transform: translateX(8px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ===================== OTP ===================== */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-cell {
  width: 56px; height: 64px; border-radius: 12px;
  border: 1.5px solid var(--border-2); background: var(--bg);
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  text-align: center; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-cell:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.otp-cell.filled { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ===================== CHECKBOX / RADIO / TOGGLE ===================== */
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 12px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.option:hover { border-color: var(--border-2); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: white;
}
.option.selected .option-radio { border-color: var(--accent); }
.option.selected .option-radio::after {
  content: ''; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
}
.option-body { flex: 1; }
.option-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.option-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.option-price { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--accent); }

.toggle {
  width: 42px; height: 26px; border-radius: 100px;
  background: var(--border); position: relative;
  cursor: pointer; transition: background 0.18s;
  flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: white;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(16px); }

/* ===================== UPLOAD ===================== */
.upload {
  border: 1.5px dashed var(--border-2); border-radius: 12px;
  padding: 18px; text-align: center;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload.done { border-style: solid; border-color: var(--success); background: var(--success-soft); }

/* ===================== DRAWER / SHEET ===================== */
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 80;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white; border-radius: 20px 20px 0 0;
  z-index: 81; padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
  animation: sheetUp 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
  max-height: 80%; overflow-y: auto;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-2); margin: 0 auto 14px;
}

/* ===================== QR ===================== */
.qr-box {
  background: white; border-radius: 18px; padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.qr-grid {
  display: grid; grid-template-columns: repeat(21, 1fr);
  width: 168px; height: 168px; gap: 0;
}
.qr-cell { width: 100%; aspect-ratio: 1; }

/* ===================== SUCCESS BURST ===================== */
.burst {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success); color: white;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: burstIn 0.5s cubic-bezier(0.2, 1.5, 0.3, 1);
}
@keyframes burstIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ===================== HELPERS ===================== */
.row { display: flex; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 18px; }
.between { display: flex; justify-content: space-between; align-items: center; }
.center { display: flex; align-items: center; justify-content: center; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.muted { color: var(--text-dim); }
.link { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ===================== HOME CTA ===================== */
.home-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; border: none; cursor: pointer;
  text-align: left; width: 100%;
  position: relative; overflow: hidden;
}
.home-cta::before {
  content: ''; position: absolute;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,52,51,0.35), transparent 70%);
  top: -50px; right: -50px; pointer-events: none;
}
.home-cta-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}

/* ===================== SERVICE CARD ===================== */
.service-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.service-card:hover { border-color: var(--border-2); }
.service-card-accent {
  background: var(--bg-dark); color: white; border-color: transparent;
}
.service-card-accent .service-title { color: white; }
.service-card-accent .service-sub { color: rgba(255,255,255,0.65); }
.service-card-soon { opacity: 0.65; cursor: default; }
.service-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card-accent .service-icon { background: rgba(255,255,255,0.12); color: white; }
.service-title {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--text);
}
.service-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ===================== CAR CARD ===================== */
.car-card { padding: 14px; }

/* ===================== ROUTE CARD (from / to) ===================== */
.route-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  position: relative;
}
.route-row {
  display: flex; align-items: center; gap: 12px;
}
.route-dot {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.route-dot-from {
  background: white; border: 2px solid var(--text-dim);
}
.route-dot-to {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.route-line {
  width: 2px; height: 16px; background: var(--border-2);
  margin-left: 8px;
  border-radius: 2px;
}

/* ═══════════════════ DESKTOP UI (≥1024px) ═══════════════════ */
@media (min-width: 1024px) {
  /* Кабинет: сайдбар + контент */
  .cab-desktop {
    display: flex; height: 100%; background: var(--bg-section, #f5f5f7);
  }
  .cab-sidebar {
    width: 248px; flex-shrink: 0; height: 100%;
    background: var(--bg-dark, #282323); color: #fff;
    display: flex; flex-direction: column; gap: 4px;
    padding: 20px 0 16px;
  }
  .cab-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 0 20px 22px; font-family: var(--font-display); font-weight: 800;
    font-size: 16px; color: #fff;
  }
  .cab-sidebar-brand .brand-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
  }
  .cab-sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1; }
  .cab-sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border: none; background: transparent;
    color: rgba(255,255,255,0.65); cursor: pointer; border-radius: 10px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    width: calc(100% - 24px); margin: 0 12px; text-align: left;
    transition: background .15s, color .15s;
  }
  .cab-sidebar-nav .cab-sidebar-item { margin: 0; width: 100%; }
  .cab-sidebar-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .cab-sidebar-item.active { background: var(--accent); color: #fff; }
  .cab-main { flex: 1; height: 100%; overflow-y: auto; background: var(--bg-section, #f5f5f7); }
  .cab-main-inner { max-width: 1100px; margin: 0 auto; padding: 32px 32px 60px; }
  /* В десктоп-контенте убираем мобильный фикс-паддинг скролла и нижний отступ под bottom-nav */
  .cab-main-inner .scroll { padding: 0 !important; height: auto !important; overflow: visible !important; }
  .cab-main-inner .scroll > div[style*="height: 90"], .cab-main-inner .scroll > div[style*="height:90"] { display: none; }
  .cab-main-inner .fab { display: none; }

  /* Десктоп-гриды: статы, услуги, рекомендации, списки — шире */
  .cab-main-inner .stat-tile { padding: 18px; }

  /* Лендинг на десктопе */
  .lp-desktop .scroll { padding: 0 !important; }
  .lp-desktop .lp-section { max-width: 1100px; margin: 0 auto; }
  .lp-desktop .hero-dark { padding: 64px 48px 72px !important; }
  .lp-desktop .hero-inner { max-width: 1100px; margin: 0 auto; }
  .lp-desktop .hero-dark .d-h1 { font-size: 52px !important; }

  /* Форма на десктопе — шире и по центру */
  .form-desktop .scroll { max-width: 720px; margin: 0 auto; padding: 28px 24px 24px !important; }
  .form-desktop .form-2col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  }

  /* Авторизация на десктопе — карточка по центру */
  .auth-desktop .scroll {
    max-width: 440px; margin: 40px auto; padding: 40px !important;
    background: #fff; border-radius: 20px; box-shadow: 0 12px 48px rgba(0,0,0,0.10);
  }
}

@media (min-width: 1024px) {
  /* Лендинг: hero на всю ширину, остальные секции центрируются */
  .lp-desktop .scroll > div:not(.hero-dark) { max-width: 1000px; margin-left: auto; margin-right: auto; }
  .lp-desktop .hero-dark { padding: 56px 48px 64px !important; }
  .lp-desktop .hero-dark > div:first-child { max-width: 1000px; margin: 0 auto; }
  /* Виды транспорта и услуги — больше колонок */
  .lp-desktop .scroll [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* FAQ и карточки шире читаются */
  .lp-desktop .d-h1 { font-size: 46px !important; line-height: 1.05 !important; }
}

@media (min-width: 1024px) {
  /* Форма заявки на десктопе — центрированная колонка, шапка и футер тоже */
  .p3k:has(.form-head) { max-width: 760px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.05); }
  .p3k:has(.form-head) .scroll { max-width: 720px; margin: 0 auto; }
  /* Авторизация/регистрация — карточка по центру экрана */
  .p3k:has(.steps):not(:has(.form-head)) .scroll,
  .p3k:has(.otp-row) .scroll { max-width: 460px; margin: 0 auto; }
}
