/* ============================================================
   hero.v2.css — переопределение ac-hero / убираем .filters
   Подключается ПОСЛЕ app.css, перекрывает старые стили.
   ============================================================ */

/* ── Обёртка карточки ─────────────────────────────────────── */
.card.card-pad.ac-hero,
.card.ac-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 24px 18px;
  background: #ffffff;
  border: 1px solid rgba(12,18,28,.08);
  border-radius: var(--r2, 18px);
  box-shadow: 0 2px 12px rgba(12,18,28,.06), 0 1px 3px rgba(12,18,28,.04);
  margin-bottom: 16px;
}

/* Декоративная оранжевая полоска сверху */
.card.card-pad.ac-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand, #ff7a18) 0%, var(--brand2, #f08718) 60%, transparent 100%);
  border-radius: var(--r2, 18px) var(--r2, 18px) 0 0;
  pointer-events: none;
  z-index: 1;
}
.card.card-pad.ac-hero::after { content: none; }

/* ── Внутренняя сетка ─────────────────────────────────────── */
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.hero-inner--split {
  justify-content: space-between;
}

/* ── Левая часть: бейдж, заголовок, подзаголовок, чипы ───── */
.hero-body {
  flex: 1 1 0;
  min-width: 0;
}

/* бейдж-чип (тип раздела) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,122,24,.08);
  border: 1px solid rgba(255,122,24,.18);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--brand, #ff7a18);
  margin-bottom: 10px;
}
.hero-badge i {
  font-size: 10px;
  color: var(--brand, #ff7a18);
}

/* заголовок */
.hero-title {
  margin: 0 0 6px;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--brandInk, #101828);
  letter-spacing: -.2px;
}
.hero-title i {
  font-size: .85em;
  color: var(--brand, #ff7a18);
  margin-right: 4px;
}

/* подзаголовок */
.hero-sub {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #55657a);
  max-width: 560px;
}

/* ── Чипы-якоря ───────────────────────────────────────────── */
.hero-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(12,18,28,.10);
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #0b0f14);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.hero-chip i {
  font-size: 11px;
  color: var(--brand, #ff7a18);
  transition: color .15s;
}
.hero-chip:hover,
.hero-chip:focus-visible {
  background: rgba(255,122,24,.07);
  border-color: rgba(255,122,24,.30);
  color: var(--brandInk, #101828);
  transform: translateY(-1px);
  outline: none;
}
.hero-chip:hover i { color: var(--brand, #ff7a18); }
.hero-chip:active  { transform: translateY(0); }
.hero-chip.is-active {
  background: var(--brand, #ff7a18);
  border-color: var(--brand, #ff7a18);
  color: #fff;
}
.hero-chip.is-active i { color: #fff; }

/* ── Правая часть: статы ──────────────────────────────────── */
.hero-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,122,24,.04);
  border: 1px solid rgba(255,122,24,.12);
  border-radius: var(--r1, 14px);
  min-width: 130px;
}
.hero-stat i {
  font-size: 14px;
  color: var(--brand, #ff7a18);
  flex-shrink: 0;
}
.hero-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--brandInk, #101828);
  letter-spacing: -.3px;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--muted, #55657a);
  white-space: nowrap;
  line-height: 1.2;
}

/* ── Скрываем старые фильтры полностью ────────────────────── */
.card.ac-hero .filters,
.card.ac-hero .mm-search,
.card.ac-hero .ac-hero-grid,
.card.ac-hero .ac-stats {
  display: none !important;
}

/* ── Адаптив ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .card.card-pad.ac-hero { padding: 16px 16px 14px; }

  .hero-inner--split {
    flex-direction: column;
    gap: 16px;
  }
  .hero-right {
    width: 100%;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .hero-stat {
    flex: 1 1 calc(33% - 8px);
    min-width: 90px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
  }
  .hero-stat-num { font-size: 18px; }
  .hero-stat-label { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 16px; }
  .hero-stat {
    flex: 1 1 calc(50% - 4px);
  }
  .hero-chips-row { gap: 5px; }
  .hero-chip { padding: 5px 10px; font-size: 11px; }
}

/* ── Page Head: title + breadcrumb ──────────────────────────────────────── */
[data-head-mount="1"] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e5e7eb);
  min-height: 52px;
  position: sticky;
  top: 0;
  z-index: 40;
}

[data-slot="left"] {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

[data-head-title="1"] {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text, #101828);
}

[data-head-sub="1"] {
  font-size: 12px;
  color: var(--muted, #667085);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Breadcrumb navigation (v1.0) ────────────────────────────────────────── */

/* Semantic <nav><ol> breadcrumb */
.head-breadcrumb-nav {
  display: inline;
  line-height: 1.3;
}
.head-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.head-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.head-breadcrumb-link {
  color: var(--muted, #667085);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
  white-space: nowrap;
}
.head-breadcrumb-link:hover   { color: var(--accent, #f57c00); text-decoration: underline; }
.head-breadcrumb-sep          { color: var(--muted, #667085); opacity: .45; margin: 0 6px; font-size: 13px; }
.head-breadcrumb-cur          { color: var(--text, #101828); font-weight: 700; white-space: nowrap;
                                 overflow: hidden; text-overflow: ellipsis; max-width: 320px; display: inline-block; vertical-align: bottom; }

/* ── Back button (.btn-back) ──────────────────────────────────────────────── */
/* Visually distinct from ghost action buttons: compact pill, muted tone      */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .85);
  color: var(--text, #101828);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .13s, border-color .13s, color .13s, box-shadow .13s, transform .1s;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-back i {
  font-size: 11px;
  opacity: .7;
  transition: transform .15s;
}
.btn-back:hover {
  background: rgba(255, 122, 24, .07);
  border-color: rgba(255, 122, 24, .4);
  color: var(--accent, #f57c00);
  box-shadow: 0 2px 8px rgba(255, 122, 24, .12);
  transform: translateX(-2px);
}
.btn-back:hover i {
  transform: translateX(-2px);
}
.btn-back:active {
  transform: translateX(0);
  box-shadow: none;
}

/* Right slot */
[data-slot="right"] {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hide empty left slot */
[data-slot="left"]:empty { display: none; }
[data-head-title="1"]:empty + [data-head-sub="1"] { display: none; }

/* Mobile */
@media (max-width: 560px) {
  [data-head-mount="1"]  { padding: 8px 12px; min-height: 46px; }
  [data-head-title="1"]  { font-size: 13px; }
  /* On mobile: collapse breadcrumb to just current page name */
  .head-breadcrumb-sep,
  .head-breadcrumb-link  { display: none; }
  .head-breadcrumb-cur   { color: var(--text, #101828); max-width: 200px; }
  .btn-back span         { display: none; }       /* icon-only on mobile */
  .btn-back              { padding: 6px 10px; }
}
