/* Header */
.bn-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.bn-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  height: var(--header-h);
}

.bn-logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: none;
  letter-spacing: 0;
  flex: none;
}

.bn-logo:hover,
.bn-logo:visited {
  color: var(--ink-strong);
}

.bn-logo__tld {
  color: inherit;
  font-weight: 700;
}

.bn-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.bn-nav a,
.bn-nav__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--space-12);
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.bn-nav a:hover,
.bn-nav__btn:hover {
  color: var(--ink-strong);
  background: var(--surface-hover);
}

.bn-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink-strong);
  box-shadow: inset 0 -2px 0 var(--primary);
  border-radius: 0;
  background: transparent;
}

.bn-nav__item {
  position: relative;
}

.bn-nav__drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: none;
}

.bn-nav__item:hover .bn-nav__drop,
.bn-nav__item:focus-within .bn-nav__drop {
  display: grid;
  gap: 2px;
}

.bn-nav__drop a {
  min-height: 2.25rem;
}

.bn-tools {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}

.bn-login {
  text-decoration: none;
  white-space: nowrap;
}

.bn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.bn-theme:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
}

.bn-theme svg,
.bn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bn-icon--fill {
  fill: currentColor;
  stroke: none;
}

.bn-theme__sun {
  display: none;
}

[data-theme="dark"] .bn-theme__sun {
  display: block;
}

[data-theme="dark"] .bn-theme__moon {
  display: none;
}

.bn-search {
  display: flex;
  align-items: center;
}

.bn-search input {
  width: 13rem;
  height: 2.5rem;
  padding: 0 var(--space-12);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.bn-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.bn-search input:disabled {
  background: var(--surface-2);
  color: var(--btn-disabled-ink);
}

.bn-burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

/* Mobile nav */
.bn-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: var(--z-modal-backdrop);
}

.bn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 100%);
  height: 100dvh;
  z-index: var(--z-modal);
  background: var(--surface);
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  overflow: auto;
}

.bn-drawer a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.bn-drawer a[aria-current="page"] {
  font-weight: 600;
}

.bn-drawer__close {
  align-self: flex-end;
}

@media (max-width: 928px) {
  .bn-nav,
  .bn-search {
    display: none;
  }

  .bn-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bn-drawer .bn-search {
    display: flex;
  }

  .bn-drawer .bn-search input {
    width: 100%;
  }

  .bn-header .bn-tools [data-theme-toggle] {
    display: none;
  }
}

/* Breadcrumbs */
.bn-crumb {
  padding-top: var(--space-16);
  font-size: var(--fs-caption);
}

.bn-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.bn-crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: var(--muted);
  text-decoration: none;
}

.bn-crumb a:hover {
  color: var(--link);
  text-decoration: underline;
}

.bn-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-8);
  color: var(--muted);
}

.bn-crumb li:last-child {
  color: var(--ink-strong);
  font-weight: 500;
}

@media (max-width: 390px) {
  .bn-crumb {
    padding-top: var(--space-8);
  }

  .bn-crumb li:not(:first-child):not(:last-child) {
    display: none;
  }

  .bn-crumb li:first-child:not(:nth-last-child(2))::after {
    content: "… /";
  }

  .page-head > p {
    overflow-wrap: break-word;
  }

  .bn-offer__ad,
  .bn-offer__age {
    display: inline;
  }
}

/* Footer */
.bn-footer {
  margin-top: var(--space-64);
  padding: var(--space-48) 0 var(--space-32);
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
}

.bn-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-24);
}

.bn-footer h2,
.bn-footer .bn-footer__label {
  font-family: var(--font);
  font-size: var(--fs-caption);
  font-weight: 600;
  margin: 0 0 var(--space-12);
  color: var(--ink-strong);
}

.bn-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bn-footer a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--space-4);
}

.bn-footer li + li {
  margin-top: 0;
}

.bn-footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 720px) {
  .bn-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .bn-footer__grid,
  .bn-footer-legal {
    grid-template-columns: 1fr;
    display: grid;
  }
}

/* Buttons */
.bn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: var(--btn-h);
  padding: 0 var(--space-16);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.bn-btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.bn-btn--primary:hover {
  background: var(--primary-hover);
  color: var(--primary-ink);
}

.bn-btn--primary:active {
  background: var(--primary-active);
}

.bn-btn--ink {
  background: var(--cta-row);
  color: var(--primary-ink);
}

.bn-btn--ink:hover {
  background: var(--cta-row-hover);
  color: var(--primary-ink);
}

.bn-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.bn-btn--ghost:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
}

.bn-btn--danger {
  background: var(--danger);
  color: var(--primary-ink);
}

.bn-btn:disabled,
.bn-btn[aria-disabled="true"],
.bn-btn.is-disabled {
  background: var(--btn-disabled);
  color: var(--btn-disabled-ink);
  border-color: transparent;
  cursor: not-allowed;
}

.bn-btn.is-loading {
  position: relative;
  color: transparent;
}

.bn-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--primary-ink);
  animation: bn-spin 0.7s linear infinite;
}

.bn-btn--ghost.is-loading::after {
  color: var(--ink);
}

.bn-btn--sm {
  min-height: 2.5rem;
  padding: 0 var(--space-12);
  font-size: var(--fs-caption);
}

.bn-btn--block {
  width: 100%;
}

.bn-more,
p:has(> #showMore),
p:has(> .bn-more) {
  margin-block: var(--space-16);
}

.bn-offers-wrap + p,
.bn-offers-wrap + .section,
.bn-offers + p,
.bn-entity-list + p,
.bn-table-wrap + p,
.bn-offers + .section,
.bn-entity-list + .section,
.bn-table-wrap + .section {
  margin-top: var(--space-16);
}

@keyframes bn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-btn.is-loading::after {
    animation: none;
    border-right-color: currentColor;
  }
}

/* Forms */
.bn-field {
  display: grid;
  gap: var(--space-4);
}

.bn-field label {
  font-size: var(--fs-caption);
  font-weight: 500;
}

.bn-input,
.bn-select,
.bn-field input,
.bn-field select,
.bn-field textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--space-12);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.bn-select,
.bn-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) calc(50% - 0.12rem), calc(100% - 0.8rem) calc(50% - 0.12rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.bn-field textarea {
  min-height: 6rem;
  padding: var(--space-12);
}

.bn-field input::placeholder,
.bn-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.bn-field input:hover,
.bn-field select:hover {
  border-color: var(--line-strong);
}

.bn-field input:focus,
.bn-field select:focus,
.bn-search input:focus {
  border-color: var(--focus);
}

.bn-field input[aria-invalid="true"],
.bn-field.is-error input {
  border-color: var(--danger);
}

.bn-field__hint {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.bn-field.is-error .bn-field__hint {
  color: var(--danger);
}

.bn-field input:disabled,
.bn-field input[aria-disabled="true"],
.bn-field select:disabled {
  background: var(--surface-2);
  color: var(--btn-disabled-ink);
}

.bn-switch {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.bn-switch label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 2.75rem;
}

/* Picker / filters — flex toolbar, not a capped 4-col grid.
   Grid leftover after minmax(10rem, 14rem) was the empty hole after «Показано». */
.bn-pick,
.bn-filters {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--space-12) var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  gap: var(--space-12) var(--space-16);
}

.bn-pick:not(.bn-pick--calc),
.bn-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.bn-pick {
  margin: var(--space-16) 0;
}

.bn-pick:not(.bn-pick--calc) .bn-field,
.bn-filters .bn-field {
  flex: 0 0 var(--filter-field-w);
  width: var(--filter-field-w);
  min-width: 0;
}

.bn-filters .bn-field:has([type="search"]),
.bn-filters .bn-field:has([name="q"]) {
  flex: 1 1 14rem;
  width: auto;
  max-width: var(--filter-search-max);
}

.bn-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  flex: 0 0 auto;
}

.bn-filters__actions .bn-btn,
.bn-pick:not(.bn-pick--calc) > .bn-btn {
  width: auto;
  max-width: 100%;
  min-width: var(--filter-btn-min);
}

.bn-pick:not(.bn-pick--calc) .bn-switch {
  flex: 0 0 auto;
}

.bn-pick.bn-pick--calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.bn-pick.bn-pick--calc .bn-calc-out {
  grid-column: 1 / -1;
}

.bn-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  margin: var(--space-12) 0;
}

.bn-filters fieldset,
.bn-pick fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.bn-filters fieldset {
  display: contents;
}

.bn-filters__count {
  margin: 0;
  margin-inline-start: auto;
  min-height: var(--control-h);
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-caption);
}

.bn-filters + .bn-field__hint {
  margin: calc(-1 * var(--space-4)) 0 var(--space-12);
  padding: 0 var(--space-16);
}

.bn-pick__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.bn-pick + .bn-pick__note {
  margin: var(--space-8) 0 var(--space-16);
}

.bn-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  margin: var(--space-16) 0 var(--space-8);
  font-size: var(--fs-caption);
  color: var(--muted);
}

@media (max-width: 560px) {
  .bn-pick,
  .bn-filters {
    position: static;
    padding: var(--space-8) var(--space-12);
    gap: var(--space-8);
  }

  .bn-pick:not(.bn-pick--calc) .bn-field,
  .bn-filters .bn-field {
    flex: 1 1 calc(50% - var(--space-8));
    width: auto;
  }

  .bn-filters .bn-field:has([type="search"]),
  .bn-filters .bn-field:has([name="q"]) {
    flex: 1 1 auto;
    max-width: none;
  }

  .bn-filters .bn-field--sort:has([name="sort"]),
  .bn-filters [type="reset"],
  .bn-filters__count {
    display: none;
  }

  .bn-filters:has([name="rated"]) .bn-field:has([name="q"]) {
    flex: 1 1 10rem;
    max-width: none;
  }

  .bn-filters:has([name="rated"]) .bn-filters__actions {
    flex: 0 0 auto;
  }

  .bn-filters .bn-field:has([name="rated"]) {
    flex: 1 1 100%;
    order: 5;
  }

  .bn-pick:not(.bn-pick--calc) .bn-switch,
  .bn-pick:not(.bn-pick--calc) > .bn-btn {
    flex: 1 1 100%;
  }

  .bn-pick:not(.bn-pick--calc) > .bn-btn {
    width: 100%;
  }

  .bn-pick.bn-pick--calc {
    grid-template-columns: 1fr;
  }

  .bn-pick.bn-pick--calc .bn-calc-out {
    grid-column: 1 / -1;
  }

  .bn-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-8) 0;
  }

  .bn-offer {
    padding: var(--space-8) var(--space-12);
    gap: var(--space-8);
  }

  .bn-offer__meta,
  .bn-offer__ad {
    display: inline;
  }
}

/* Chips */
.bn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

@media (max-width: 560px) {
  .bn-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: thin;
  }

  .bn-chips .bn-chip {
    flex: none;
  }

  .bn-chips::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 2rem;
    margin-left: -2rem;
    align-self: stretch;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg));
  }
}

.bn-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--space-12);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-caption);
  cursor: pointer;
}

.bn-chip:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
}

.bn-chip[aria-current="page"],
.bn-chip[aria-pressed="true"],
.bn-chip.is-selected {
  background: var(--tag-bg);
  border-color: var(--primary);
  color: var(--ink-strong);
  font-weight: 600;
}

.bn-chip:disabled,
.bn-chip[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Offer ledger */
.bn-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bn-offers-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: var(--space-16);
}

.bn-offers {
  --offer-cols: minmax(11rem, 1.5fr) repeat(4, minmax(6.5rem, 1fr)) 4.5rem minmax(var(--offer-cta-min), var(--offer-cta-max));
}

.bn-offers__head,
.bn-offer {
  display: grid;
  grid-template-columns: var(--offer-cols);
  gap: var(--offer-gap-x);
  align-items: center;
  padding: var(--space-12) var(--space-16);
}

.bn-offers__head {
  min-height: 2.5rem;
  font-size: var(--fs-caption);
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.bn-offer {
  min-height: var(--offer-row-h);
  border-bottom: 1px solid var(--line);
}

.bn-offer__dup {
  font-weight: 400;
  color: var(--muted);
}

.bn-offer:last-child {
  border-bottom: 0;
}

.bn-offer:hover {
  background: var(--surface-hover);
}

.bn-offer.is-selected {
  background: var(--tag-bg);
}

.bn-offer.is-unavailable {
  opacity: 0.55;
}

.bn-offer__org {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-width: 0;
}

.bn-offer__org:has(.bn-compare) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  gap: var(--space-8);
}

.bn-offer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-width: 0;
}

.bn-offer__brand > div {
  min-width: 0;
}

.bn-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  object-fit: contain;
  background: var(--surface);
}

.bn-mark--lg {
  width: 3.5rem;
  height: 3.5rem;
}

.bn-mark--word {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  background: transparent;
  border: 0;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-strong);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bn-offer__name {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
  line-height: 1.25;
}

a.bn-offer__name:hover {
  color: var(--link);
}

.bn-offer__meta,
.bn-offer__ad,
.bn-offer__age {
  display: block;
  font-size: var(--fs-micro);
  color: var(--muted);
  line-height: 1.35;
}

.bn-offer__card {
  font-size: var(--fs-caption);
}

.bn-offer__org .bn-compare {
  position: static;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  font-size: var(--fs-caption);
  gap: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.bn-offer__org .bn-compare input {
  margin: 0;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  appearance: auto;
  -webkit-appearance: checkbox;
  opacity: 1;
  cursor: pointer;
}

.bn-offer__num {
  font-size: var(--fs-data);
}

.bn-offer__cta {
  display: grid;
  justify-items: stretch;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-8);
  box-sizing: border-box;
}

.bn-offer__cta .bn-btn {
  box-sizing: border-box;
  min-height: var(--btn-h);
  width: 100%;
  max-width: 100%;
  padding-inline: var(--space-16);
  white-space: nowrap;
  text-align: center;
}

.bn-compare {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--fs-caption);
  color: var(--muted);
}

@media (min-width: 1101px) {
  .bn-offers {
    --offer-gap-x: var(--offer-cta-gap);
  }
}

@media (max-width: 1100px) {
  .bn-offers {
    --offer-cols: minmax(11rem, 1.6fr) repeat(3, minmax(6.5rem, 1fr)) minmax(var(--offer-cta-min), var(--offer-cta-max));
  }

  .bn-offer__hide-md,
  .bn-offers__head > :nth-child(5),
  .bn-offer > [data-label="ПСК"] {
    display: none;
  }

  .bn-offer__org:has(.bn-compare) {
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    gap: var(--space-4);
  }

  .bn-offer__org:has(.bn-compare) .bn-mark {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
  }

  .bn-offer__org:has(.bn-compare) .bn-offer__brand {
    gap: var(--space-8);
  }
}

@media (max-width: 720px) {
  .bn-offers__head {
    display: none;
  }

  .bn-offer {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    padding: var(--space-12);
    gap: var(--space-8) var(--space-12);
  }

  .bn-offer__org,
  .bn-offer__cta {
    grid-column: 1 / -1;
  }

  .bn-offer__hide-sm {
    display: none;
  }

  .bn-offer__cta {
    gap: var(--space-8);
  }

  .bn-offer__num {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .bn-offer__num[data-label="Ставка"],
  .bn-offer__num[data-label="Ставка, день"] {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .bn-offer__age {
    display: inline;
    margin-left: var(--space-8);
  }

  .bn-offer__cell::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-micro);
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

/* Entity rows (compact, not tall islands) */
.bn-entity {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-12) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-width: 0;
}

.bn-entity:last-child {
  border-bottom: 0;
}

.bn-entity:hover {
  background: var(--surface-hover);
}

.bn-entity--row {
  display: flex;
  align-items: center;
  gap: var(--space-12) var(--space-16);
}

.bn-entity--row > .bn-mark {
  flex: 0 0 2.5rem;
}

/* Width follows content up to 28rem. grow:0 keeps CTA next to the cluster;
   trailing free space on a wide row is unused edge, not a hole before the button. */
.bn-entity--row > .bn-entity__text {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28rem;
}

.bn-entity--row > .bn-rating {
  flex: 0 0 3rem;
  text-align: end;
}

.bn-entity__name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink-strong);
}

.bn-entity__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  min-width: var(--filter-btn-min);
  margin-top: 0;
  flex: 0 0 auto;
  padding: 0 var(--space-16);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

a.bn-entity__cta:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
}

.bn-entity__cta[aria-disabled="true"] {
  min-width: 0;
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--fs-caption);
  pointer-events: none;
}

@media (max-width: 360px) {
  .bn-entity--row {
    flex-wrap: wrap;
  }

  .bn-entity--row .bn-entity__cta {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.bn-entity-list {
  list-style: none;
  margin: var(--space-16) 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bn-entity-list .bn-entity {
  padding: var(--space-16);
}

/* Ratings / badges / tags */
.bn-rating {
  color: var(--rating);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: start;
}

.bn-offer__cell .bn-rating,
.bn-entity .bn-rating {
  display: inline-block;
  min-width: 3ch;
}

.bn-rating--empty {
  color: var(--muted);
  font-weight: 400;
}

.bn-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 var(--space-8);
  border-radius: var(--radius);
  background: var(--tag-bg);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 600;
}

.bn-badge--nko {
  background: var(--info-bg);
  color: var(--info);
}

.bn-badge--ad {
  background: transparent;
  color: var(--ad);
  font-weight: 500;
  padding: 0;
}

.bn-badge--ok {
  background: var(--success-bg);
  color: var(--success);
}

/* Tables (rating) */
.bn-table-wrap {
  overflow-x: auto;
  margin: var(--space-16) 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bn-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bn-table th:nth-child(1),
.bn-table td:nth-child(1) {
  width: 4.5rem;
}

.bn-table th:nth-child(3),
.bn-table td:nth-child(3) {
  width: 4.5rem;
}

.bn-table th:nth-child(7),
.bn-table td:nth-child(7) {
  width: 12.5rem;
}

.bn-table th,
.bn-table td {
  padding: var(--space-12) var(--space-12);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.bn-table .bn-offer__cta {
  min-width: 11rem;
  padding: var(--space-8);
}

.bn-table .bn-offer__cta .bn-btn {
  width: 100%;
  min-height: var(--btn-h);
  padding-inline: var(--space-16);
}

.bn-table th {
  font-size: var(--fs-caption);
  color: var(--muted);
  font-weight: 600;
}

.bn-table caption {
  caption-side: bottom;
  padding: var(--space-8) var(--space-12);
  font-size: var(--fs-caption);
  color: var(--muted);
  text-align: left;
}

.bn-table tr:hover td {
  background: var(--surface-hover);
}

.bn-rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .bn-table thead {
    display: none;
  }

  .bn-table tr {
    display: grid;
    padding: var(--space-12);
    border-bottom: 1px solid var(--line);
  }

  .bn-table td,
  .bn-table th {
    border: 0;
    padding: var(--space-4) 0;
  }

  .bn-table td::before,
  .bn-table th[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-micro);
    color: var(--muted);
  }
}

/* Conditions */
.bn-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) var(--space-16);
  margin: 0;
}

.bn-dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.bn-dl dt {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.bn-dl dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 560px) {
  .bn-dl {
    grid-template-columns: 1fr;
  }
}

/* Alerts */
.bn-alert {
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-caption);
}

.bn-alert--info {
  background: var(--surface);
  border-color: var(--line);
}

.bn-alert--ok {
  background: var(--success-bg);
  border-color: transparent;
}

.bn-alert--warn {
  background: var(--warning-bg);
  border-color: transparent;
  color: var(--on-warning);
}

.bn-alert--err {
  background: var(--danger-bg);
  border-color: transparent;
}

/* FAQ */
.bn-faq details {
  border-bottom: 1px solid var(--line);
}

.bn-faq summary {
  cursor: pointer;
  padding: var(--space-12) 0;
  font-weight: 600;
  list-style: none;
}

.bn-faq summary::-webkit-details-marker {
  display: none;
}

.bn-faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.bn-faq details[open] summary::after {
  content: "–";
}

.bn-faq details p {
  padding-bottom: var(--space-16);
}

/* Pagination / sort */
.bn-pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: var(--space-24) 0;
}

.bn-pager a,
.bn-pager span {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.bn-pager [aria-current="page"] {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.bn-pager [aria-disabled="true"] {
  color: var(--btn-disabled-ink);
  pointer-events: none;
}

/* Empty / skeleton / error */
.bn-empty,
.bn-error {
  padding: var(--space-32);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bn-skel {
  height: 0.85rem;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.bn-skel--row {
  height: 4.5rem;
  margin-bottom: var(--space-8);
}

/* Modal */
.bn-modal[open] {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  max-width: 28rem;
  box-shadow: var(--shadow-modal);
  background: var(--surface);
  color: var(--ink);
}

.bn-modal::backdrop {
  background: var(--overlay);
}

.bn-compare-bar {
  position: sticky;
  bottom: 0;
  z-index: 16;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12) var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Tabs */
.bn-tabs {
  display: flex;
  gap: var(--space-8);
  margin: var(--space-16) 0;
  border-bottom: 1px solid var(--line);
}

.bn-tabs a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-12);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.bn-tabs a[aria-current="page"] {
  font-weight: 600;
  border-color: var(--primary);
  color: var(--ink-strong);
}

/* Article */
.bn-byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  color: var(--muted);
  font-size: var(--fs-caption);
  margin-bottom: var(--space-16);
}

.bn-toc {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: var(--space-24);
}

.bn-side .bn-toc {
  margin-bottom: 0;
}

.bn-toc ol {
  margin: var(--space-8) 0 0;
  padding-left: 1.2rem;
}

.article-body.prose {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-wrap: anywhere;
  padding: var(--space-24);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.article-body.prose > * {
  max-width: 100%;
}

.article-body.prose img,
.article-body.prose video,
.article-body.prose iframe,
.article-body.prose pre {
  max-width: 100%;
  height: auto;
}

.article-body.prose table,
.article-body.prose .ql-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.article-body.prose th,
.article-body.prose td {
  overflow-wrap: anywhere;
}

.bn-article-card {
  display: grid;
  gap: var(--space-8);
  align-content: start;
  min-height: var(--article-card-minh);
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
}

a.bn-article-card:hover {
  background: var(--surface-hover);
  color: inherit;
}

.bn-article-card:not(a) {
  cursor: default;
}

.bn-article-card__cat {
  font-size: var(--fs-micro);
  color: var(--muted);
}

.bn-article-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.bn-article-card p {
  color: var(--ink);
}

/* Entity hero */
.bn-hero {
  padding: var(--space-24);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-24);
}

.bn-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}

.bn-hero__brand h1 {
  margin-bottom: var(--space-4);
}

.bn-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin: var(--space-16) 0 var(--space-8);
}

.bn-sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 16;
  display: none;
  padding: var(--space-12);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .bn-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }

  main:has(.bn-sticky-cta) {
    padding-bottom: 5.25rem;
  }
}

/* Legal */
.bn-legal {
  margin-top: var(--space-32);
  font-size: var(--fs-legal);
  color: var(--muted);
}

.bn-legal p + p {
  margin-top: var(--space-8);
}

/* Showcase */
.bn-show-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  min-height: 3.5rem;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--line);
}

.bn-show-mark {
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.bn-show-list {
  list-style: none;
  padding: 0;
  margin: var(--space-16) 0;
}

.bn-show-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: contents;
}

.bn-show-card .bn-btn {
  width: auto;
}

/* Hub kit */
.bn-kit {
  display: grid;
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.bn-kit__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
}

.bn-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: var(--space-32);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: stretch;
  justify-items: stretch;
}

.bn-split > * {
  min-width: 0;
  max-width: 100%;
}

h2:has(+ .bn-method),
h3:has(+ .bn-method),
h2:has(+ .bn-pick),
h3:has(+ .bn-pick) {
  padding-inline: var(--space-16);
}

/* Leftover legacy templates (reviews/forms) inside the BN shell. */
main .container .container {
  width: 100%;
  max-width: none;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: var(--space-32);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page-main {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.page-sidebar {
  width: auto !important;
  max-width: none;
  min-width: 0;
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: fit-content;
}

.card,
.card-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bn-review-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-24);
  align-items: center;
}

.bn-review-summary__avg {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-tight);
}

.bn-hist {
  display: grid;
  gap: var(--space-4);
}

.bn-hist__row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 2rem;
  gap: var(--space-8);
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.bn-hist__bar {
  height: 0.5rem;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.bn-hist__fill {
  height: 100%;
  background: var(--warning);
}

@media (max-width: 800px) {
  .bn-split,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .bn-review-summary {
    grid-template-columns: 1fr;
  }

  .article-body.prose {
    max-width: 100%;
  }

  .bn-split > .bn-side {
    order: -1;
  }
}

@media (min-width: 801px) {
  .bn-side {
    position: sticky;
    top: calc(var(--header-h) + var(--space-16));
  }
}

.bn-side {
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: fit-content;
}

.bn-side .bn-entity-list {
  margin-top: var(--space-16);
}

.bn-calc-out {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bn-cookie[hidden],
.bn-pwa[hidden] {
  display: none !important;
}

.bn-cookie,
.bn-pwa {
  position: fixed;
  z-index: 80;
  left: var(--space-16);
  right: var(--space-16);
  bottom: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.bn-pwa--push {
  bottom: var(--space-16);
}
html.has-cookie-banner #pwa-push-banner,
html.has-cookie-banner #pwa-install-banner {
  display: none !important;
}

html.has-cookie-banner {
  scroll-padding-bottom: 8rem;
}

html.has-cookie-banner body {
  padding-bottom: 8rem;
}

html.has-pwa-banner {
  scroll-padding-bottom: 14rem;
}

html.has-pwa-banner body {
  padding-bottom: 14rem;
}

@media (max-width: 560px) {
  body:has(.bn-header) .bn-cookie:not([hidden]) {
    top: 3.75rem;
    bottom: auto;
  }

  html.has-cookie-banner body {
    padding-bottom: 0;
    padding-top: 0;
  }

  html.has-cookie-banner .page-head {
    margin-top: 0.5rem;
  }

  html.has-pwa-banner {
    scroll-padding-bottom: 18rem;
  }

  html.has-pwa-banner body {
    padding-bottom: 18rem;
  }

  .bn-pwa {
    padding: var(--space-12);
    gap: var(--space-8);
  }
}

.bn-cookie p,
.bn-pwa p {
  margin: 0;
  flex: 1 1 12rem;
}

.bn-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-16);
  margin: var(--space-16) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.bn-steps li {
  position: relative;
  padding: var(--space-16);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.bn-steps li::before {
  content: counter(step);
  display: inline-block;
  margin-bottom: var(--space-8);
  font-weight: 700;
  color: var(--primary);
}

.bn-steps h3 {
  margin: 0 0 var(--space-8);
}

.bn-steps p {
  margin: 0;
}

.bn-footer__social {
  margin: var(--space-16) 0 0;
}

.bn-showcase-legal {
  margin: 0 0 var(--space-12);
  font-size: var(--fs-caption);
  color: var(--muted);
}

@media (max-width: 720px) {
  .bn-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .bn-steps {
    grid-template-columns: 1fr;
  }
}
