/* kyrim 2026-11-30: страница бренда (плагин productbrands). Подключается из search.html только на /brand/... */
.kb-head {
  --kb-ink: #221F1F; --kb-muted: #6F6A66; --kb-line: #E2DCD2; --kb-paper: #F4F1EC; --kb-blue: #0086E8;
  display: flex; align-items: center; gap: 24px; margin: 0 0 20px; padding: 20px; border: 1px solid var(--kb-line); border-radius: 20px; background: #fff;
  font-family: Roboto, Helvetica, sans-serif; color: var(--kb-ink);
}
.kb-head *, .kb-head *::before, .kb-head *::after { box-sizing: border-box; }
.kb-logo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--kb-line); display: flex; align-items: center; justify-content: center; }
.kb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kb-logo span { padding: 8px; font-size: 18px; font-weight: 700; text-align: center; line-height: 1.2; word-break: break-word; }
.kb-info { min-width: 0; flex: 1 1 auto; }
.kb-label { margin: 0 0 10px; font-size: 13px; color: var(--kb-muted); }
.kb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kb-cats li { margin: 0; padding: 0; }
.kb-cats a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--kb-paper); color: var(--kb-ink) !important; font-size: 14px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.kb-cats a span { font-size: 12px; color: var(--kb-muted); transition: color .2s ease; }
.kb-cats a:hover { background: var(--kb-blue); color: #fff !important; }
.kb-cats a:hover span { color: rgba(255,255,255,.8); }

.kb-text { margin: 32px 0 8px; padding: 24px 28px; border-radius: 20px; background: #F4F1EC; color: #221F1F; font-size: 15px; line-height: 1.65; }
.kb-text h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.kb-text p { margin: 0 0 12px; }
.kb-text p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .kb-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; max-width: 100%; min-width: 0; }
  .kb-info { width: 100%; }
  .kb-logo { flex-basis: auto; width: 88px; height: 88px; }
  .kb-cats { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .kb-cats a { white-space: nowrap; }
  .kb-text { padding: 18px; font-size: 14px; }
}

/* список брендов /brands/ */
.kb-grid { --kb-line: #E2DCD2; --kb-paper: #F4F1EC; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 24px; padding: 0; list-style: none; font-family: Roboto, Helvetica, sans-serif; }
.kb-grid li { margin: 0; padding: 0; min-width: 0; }
.kb-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 14px 10px; border: 1px solid var(--kb-line); border-radius: 16px; background: #fff; color: #221F1F !important; text-align: center; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.kb-grid a:hover { border-color: #0086E8; box-shadow: 0 12px 24px -16px rgba(0,0,0,.45); transform: translateY(-2px); }
.kb-grid__logo { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--kb-paper); display: flex; align-items: center; justify-content: center; }
.kb-grid__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kb-grid__logo b { padding: 6px; font-size: 15px; line-height: 1.2; word-break: break-word; }
.kb-grid__name { font-size: 14px; font-weight: 500; line-height: 1.3; word-break: break-word; }
.kb-grid__count { font-size: 12px; color: #6F6A66; }
@media (max-width: 767px) { .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
