/* БРЕНД-БАР */
.lider-brand-bar {
  display: flex;
  background: var(--color-brand-bar, #142840);
  border-top: 1px solid rgba(255,255,255,.06);
}
.lider-brand-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.lider-brand-btn:last-child { border-right: none; }
.lider-brand-btn:hover,
.lider-brand-btn.active { background: var(--color-accent); color: #fff; }
.lider-brand-name { font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.lider-brand-count { font-size: 9px; opacity: .5; }

/* МЕГАМЕНЮ ПАНЕЛЬ */
.lider-mega-wrap {
  position: absolute;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  z-index: 300;
  display: none;
}
.lider-megamenu:focus-within .lider-mega-wrap,
.lider-mega-wrap:hover,
.lider-mega-wrap.is-open { display: block; }

.lider-mega-panel {
  display: none;
  flex-direction: row;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}
.lider-mega-panel.is-active { display: flex; }

/* Строка модели */
.lider-mega-models { flex: 1; padding: 14px 16px; overflow-y: auto; max-height: 400px; }

.lider-mega-plat-label {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8;
  margin: 10px 0 4px; padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 6px;
}
.plat-code {
  background: var(--color-primary); color: #fff;
  padding: 1px 6px; border-radius: 3px; font-size: 9px;
}

.lider-mega-model-row {
  display: grid;
  grid-template-columns: 1.5fr 80px 1fr 1fr;
  gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 6px;
  text-decoration: none; color: var(--color-text);
  transition: background .12s;
  border-bottom: 1px solid var(--color-border-light);
}
.lider-mega-model-row:hover { background: var(--color-bg); }
.lider-mega-model-row.is-alias { opacity: .75; }
.lider-mega-model-row.is-alias:hover { opacity: 1; }

.model-row-name { font-size: 12px; font-weight: 600; color: var(--color-primary); }
.lider-mega-model-row.is-alias .model-row-name { color: var(--color-neutral); }
.alias-arrow { color: var(--color-muted); font-size: 10px; margin-right: 2px; }

.model-row-years { font-size: 10px; color: var(--color-muted); white-space: nowrap; }

.model-row-cab { font-size: 10px; color: var(--color-neutral); }

.model-row-type {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 6px; border-radius: 3px;
  white-space: nowrap;
}
.model-type-mag { background: #dbeafe; color: #1d4ed8; }
.model-type-reg { background: #dcfce7; color: #166534; }
.model-type-cons { background: #fef9c3; color: #854d0e; }
.model-type-dist { background: #f3e8ff; color: #6d28d9; }
.model-type-city { background: #e0f2fe; color: #0369a1; }
.model-type-spec { background: #fee2e2; color: #991b1b; }
.model-type-multi { background: #f1f5f9; color: #475569; }

.lider-mega-all-link {
  display: block; margin-top: 10px; padding: 6px 8px;
  font-size: 12px; color: var(--color-accent); font-weight: 600;
  text-decoration: none; border-top: 1px solid var(--color-border);
}

/* Системы колонка */
.lider-mega-systems { width: 160px; flex-shrink: 0; border-left: 1px solid var(--color-border); padding: 14px 12px; }
.mega-col-title { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin-bottom: 8px; }
.mega-sys-link { display: block; padding: 5px 0; font-size: 12px; color: var(--color-neutral); text-decoration: none; border-bottom: 1px solid var(--color-border-light); }
.mega-sys-link:hover { color: var(--color-accent); }
.mega-asm { color: var(--color-primary); font-weight: 600; }
