/* IBP-раздел: правки по скриншотам. Подключается после site.css (см. layouts.chert). */
/* H1 раздела по шаблону .h1--page */
.h1--page {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 6px 0 0;
}
.page-head .crumbs { margin-bottom: 10px; }
.page-head .eyebrow { display: inline-block; margin-bottom: 8px; }

/* Чипы подразделов: 3 строки с подписью слева */
.chip-groups { display: grid; gap: 10px; margin: 16px 0 4px; }
.chip-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.chip-row > .lab {
  font: 700 12px/2.2 var(--mono, monospace);
  color: var(--muted, #667);
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-row .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.more-brands { display: inline; }
.more-brands > summary.chip--more { cursor: pointer; display: inline-block; }
.more-brands .chips--inline { display: none; }
.more-brands[open] .chips--inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; flex-basis: 100%; }

/* Поиск по брендам в фильтре */
.f-search { padding: 6px 8px 2px; }
.f-search input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line, #d7dce3);
  border-radius: 8px;
  font-size: 13px;
}

/* Карточка: цена + действия не вылезают за край */
.card { min-width: 0; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card-foot .tag { min-width: 0; }
.card-foot .tag b { overflow-wrap: anywhere; }
.card-act { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin-left: auto; }
.card-act .btn { white-space: nowrap; }
@media (max-width: 1024px) {
  .card-act { margin-left: 0; }
}

/* Плавающая «Спецификация»: только при непустой (класс has-n из JS), с отступом от сетки */
.fab { right: 24px; bottom: 24px; display: none; }
.fab.has-n.show { display: flex; }
@media (max-width: 720px) {
  /* на мобильном — нижняя панель mbar из шаблона */
  .fab { display: none !important; }
  .chip-row { grid-template-columns: 1fr; }
  .chip-row > .lab { line-height: 1.6; }
}
