/* ==========================================================================
   «Банки Казахстана» — каталог /rus/banks/ (views/banks.php)
   ========================================================================== */

.bk {
  overflow-x: clip; /* полпикселя от округления сетки не дают горизонтальную прокрутку */
}

.bk-h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* -------- Первый экран -------- */
.bk-hero {
  position: relative;
  overflow: hidden;
  padding-block: 1.5rem 1.25rem;
  background: linear-gradient(180deg, #f2f6fd 0%, #f7f9fe 100%);
}

.bk-hero__bg {
  position: absolute;
  inset: 0 0 auto auto;
  width: 62%;
  height: 21rem;
  background-size: cover;
  background-position: center 35%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(180deg, #000 60%, transparent 100%);
  mask-composite: intersect;
  opacity: .9;
}

.bk-hero .container {
  position: relative;
}

.bk-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  min-height: 12.5rem;
}

.bk-hero__content {
  max-width: 38rem;
}

.bk-hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bk-hero__lead {
  margin-top: 0.875rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-navy);
}

.bk-count {
  flex: none;
  width: 9rem;
  margin-top: 4.5rem;
  padding: 1rem 1.125rem;
  background: rgba(255, 255, 255, .94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.bk-count b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.875rem;
  line-height: 1;
  font-weight: 800;
}

.bk-count span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--c-muted);
}

/* Показатели сектора */
.bk-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.bk-stat {
  --tone: var(--c-up);
  --tone-bg: #e8f7ee;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.bk-stat--2 { --tone: var(--c-blue); --tone-bg: var(--c-soft); }
.bk-stat--3 { --tone: #7c4dff; --tone-bg: #f1ecff; }
.bk-stat--4 { --tone: var(--c-orange); --tone-bg: #fff1e8; }

.bk-stat__icon {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--tone);
  background: var(--tone-bg);
  border-radius: 0.625rem;
}

.bk-stat__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bk-stat__label {
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
}

.bk-stat__label span {
  display: block;
  font-weight: 400;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bk-stat__value {
  margin-top: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}

.bk-stat__change {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.bk .is-up { color: var(--c-up); }
.bk .is-down { color: var(--c-down); }

.bk-stat__spark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 4.5rem;
  height: 2rem;
  fill: none;
  stroke: var(--tone);
  stroke-width: 2;
  stroke-linecap: round;
}

.bk-hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 0.875rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

/* -------- Вкладки-якоря -------- */
.bk-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 0.0625rem solid var(--c-line);
}

.bk-tabs ul {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.bk-tabs a {
  display: block;
  padding-block: 1rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--c-navy);
  border-bottom: 0.125rem solid transparent;
  transition: color .2s, border-color .2s;
}

.bk-tabs a:hover,
.bk-tabs a[aria-current] {
  color: var(--c-blue);
  border-color: var(--c-blue);
}

.bk-tabs a[aria-current] {
  font-weight: 700;
}

/* -------- Основная сетка -------- */
.bk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19.5rem;
  gap: 1.25rem;
  align-items: start;
  padding-top: 1.5rem;
}

.bk-main,
.bk-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* иначе широкая таблица растягивает колонку */
  gap: 1.25rem;
  min-width: 0;
}

/* Подбор */
.bk-pick {
  padding: 1.25rem;
  background: var(--c-soft-2);
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-xl);
}

.bk-pick .hp-muted {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.bk-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.bk-tool {
  position: relative;
  padding: 1rem;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
}

.bk-tool:hover {
  border-color: rgba(22, 119, 255, .4);
  box-shadow: var(--shadow-card);
}

.bk-tool .hp-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bk-tool .hp-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bk-tool__title {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 700;
}

.bk-tool__text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--c-muted);
}

/* Поиск и фильтры */
.bk-list {
  scroll-margin-top: 4rem;
}

.bk-search {
  position: relative;
  display: block;
}

.bk-search input {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.75rem 0 1rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--c-navy);
  background: #fff;
  border: 0.0625rem solid var(--c-field-line);
  border-radius: var(--radius);
}

.bk-search input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 0.1875rem rgba(22, 119, 255, .15);
}

.bk-search .icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--c-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bk-chip {
  min-height: 2.25rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-navy);
  background: #fff;
  border: 0.0625rem solid var(--c-field-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.bk-chip:hover {
  border-color: var(--c-blue);
}

.bk-chip.is-active {
  color: #fff;
  background: var(--c-blue);
  border-color: var(--c-blue);
}

/* Таблица банков */
.bk-table-wrap {
  position: relative; /* скрытые подписи в шапке таблицы не выходят за рамку прокрутки */
  margin-top: 1rem;
  overflow-x: auto;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-xl);
}

.bk-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.bk-table th,
.bk-table td {
  padding: 0.75rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 0.0625rem solid var(--c-line);
}

.bk-table tbody tr:last-child > * {
  border-bottom: 0;
}

.bk-table thead th {
  font-size: 0.6875rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-soft-2);
}

.bk-table thead small {
  display: block;
  font-weight: 400;
  color: var(--c-muted);
}

.bk-table tbody th {
  font-weight: 700;
}

.bk-table tbody tr {
  transition: background .2s;
}

.bk-table tbody tr:hover {
  background: var(--c-soft-2);
}

.bk-table td b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}

.bk-table td small {
  font-size: 0.6875rem;
  font-weight: 600;
}

.bk-bank {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

/* Логотипы бывают и квадратные, и широкие надписи — ячейка широкая, картинка вписывается целиком */
.bk-bank__logo {
  flex: none;
  width: 4.5rem;
  height: 1.75rem;
  object-fit: contain;
  object-position: left center;
}

.bk-bank__logo--ini {
  width: 2rem;
  height: 2rem;
  margin-right: 2.5rem; /* имя банка на одной линии с остальными */
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-blue);
  background: var(--c-soft);
}

.bk-bss {
  display: block;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--c-muted);
}

.bk-table .bk-bss b {
  display: inline;
  font-size: 0.875rem;
  color: var(--c-navy);
}

.bk-bss__bar {
  display: block;
  width: 4rem;
  height: 0.25rem;
  margin-top: 0.375rem;
  background: var(--c-line);
  border-radius: 1rem;
  overflow: hidden;
}

.bk-bss__bar span {
  display: block;
  height: 100%;
  background: var(--c-up);
  border-radius: inherit;
}

.bk-bss--mid .bk-bss__bar span { background: #f5b301; }
.bk-bss--lo .bk-bss__bar span { background: var(--c-orange); }

.bk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-width: 11rem;
}

.bk-tags span {
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
  background: var(--c-soft-2);
  border: 0.0625rem solid var(--c-line);
  border-radius: 0.375rem;
}

.bk-table__more {
  text-align: right;
  white-space: nowrap;
}

/* «О банке»: при наведении на строку стрелка сдвигается, на ссылку — подчёркивание вырастает слева направо */
.bk-table__more .hp-link {
  position: relative;
  padding-block: 0.25rem;
  transition: color .2s;
}

.bk-table__more .hp-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1.375rem; /* под текстом, без стрелки */
  bottom: 0;
  height: 0.0625rem;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.bk-table__more .hp-link .icon {
  transition: transform .2s ease;
}

.bk-table__more .hp-link:hover,
.bk-table__more .hp-link:focus-visible {
  color: var(--c-blue-hover);
}

.bk-table__more .hp-link:hover::after,
.bk-table__more .hp-link:focus-visible::after {
  transform: scaleX(1);
}

.bk-table tbody tr:hover .bk-table__more .hp-link .icon,
.bk-table__more .hp-link:focus-visible .icon {
  transform: translateX(0.25rem);
}

.bk-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--c-muted);
}

.bk-more {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 1rem auto 0;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-blue);
  background: none;
  border: 0;
  cursor: pointer;
}

.bk-more .icon {
  width: 1rem;
  height: 1rem;
}

.bk-note {
  margin-top: 1rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.bk-note a {
  font-weight: 600;
  color: var(--c-blue);
}

/* -------- Правая колонка -------- */
.bk-promo,
.bk-box {
  padding: 1.25rem;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-xl);
}

.bk-promo__head {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.bk-promo__kicker {
  font-size: 0.75rem;
  font-weight: 700;
}

.bk-promo__title {
  margin-top: 0.375rem;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
}

.bk-promo__text {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.bk-promo .button {
  width: 100%;
  margin-top: 1rem;
}

.bk-promo .button .icon {
  width: 1rem;
  height: 1rem;
}

.bk-box {
  scroll-margin-top: 4rem;
}

.bk-box__title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.bk-box__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 0.875rem;
  object-fit: cover;
  background: var(--c-soft);
  border-radius: var(--radius-lg);
}

.bk-posts {
  display: grid;
  gap: 0.875rem;
  margin-top: 1rem;
}

.bk-post {
  position: relative;
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.75rem;
}

.bk-post__img {
  display: block;
  width: 3.75rem;
  height: 3.25rem;
  object-fit: cover;
  background: var(--c-soft);
  border-radius: 0.5rem;
}

.bk-post__title {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
}

.bk-post__title a:hover {
  color: var(--c-blue);
}

.bk-post__date {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bk-box__more {
  margin-top: 1rem;
}

.bk-topics {
  display: grid;
  gap: 0.875rem;
  margin-top: 1rem;
}

.bk-topics li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.bk-topics span {
  font-weight: 700;
  color: var(--c-blue);
}

.bk-topics a:hover {
  color: var(--c-blue);
}

/* -------- Главное -------- */
.bk-news__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.bk-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s;
}

.bk-card:hover {
  box-shadow: var(--shadow-card);
}

.bk-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--c-soft);
}

.bk-card__title {
  padding: 0.75rem 0.875rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
}

.bk-card__date {
  padding: 0.5rem 0.875rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bk-research {
  position: relative;
  padding: 1.25rem;
  background: var(--c-soft);
  border-radius: var(--radius-lg);
}

.bk-research .hp-icon {
  background: #fff;
}

.bk-research__title {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.bk-research .hp-muted {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.bk-research .hp-link {
  margin-top: 0.875rem;
}

.bk-faq .bdi-faq {
  margin-top: 1.25rem;
}

#faq {
  scroll-margin-top: 4rem;
}

/* -------- Адаптив -------- */
@media (max-width: 1100px) {
  .bk-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-side {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .bk-news__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bk-hero__bg {
    width: 100%;
    height: 14rem;
    opacity: .35;
  }

  .bk-hero__top {
    flex-direction: column;
    min-height: 0;
  }

  .bk-count {
    width: auto;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .bk-count span {
    margin-top: 0;
  }

  .bk-stats,
  .bk-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bk-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bk-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-tabs ul {
    gap: 1.25rem;
  }

  .bk-news__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Страница банка /rus/banks/{slug}/ (views/bank.php) — общие блоки .bk-* выше
   ========================================================================== */

.bkp-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.bkp-updated {
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bkp-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.bkp-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 7rem;
  height: 7rem;
  padding: 0.875rem;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.bkp-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bkp-intro {
  flex: 1;
  max-width: 34rem;
}

.bk-hero__title.bkp-title {
  margin-top: 0;
}

.bkp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
}

.bkp-chips a,
.bkp-chips span {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .92);
  border: 0.0625rem solid var(--c-line);
  border-radius: 0.375rem;
}

.bkp-chips a:hover {
  color: var(--c-blue);
}

.bkp-site {
  flex: none;
  margin-left: auto;
}

.bkp-site .icon {
  width: 1rem;
  height: 1rem;
}

.bk-stats.bkp-stats {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: 1.75rem;
}

.bk-stat.bkp-stat-bss {
  display: block;
}

.bkp-stat-bss__label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-blue);
}

.bkp-stat-bss__label span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--c-muted);
}

.bkp-stat-bss .bk-stat__value small,
.bkp-bss__score small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-muted);
}

.bkp-stat-bss .bk-bss__bar,
.bkp-bss .bk-bss__bar {
  width: 100%;
  height: 0.375rem;
  margin-top: 0.5rem;
}

.bkp-stat-bss .hp-link {
  margin-top: 0.625rem;
  font-size: 0.75rem;
}

/* Взгляд BankInfo и ключевые выводы */
.bkp-view {
  padding: 1.25rem;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-xl);
}

.bkp-view__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bkp-view__head .hp-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bkp-view__text {
  margin-top: 0.875rem;
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.65;
  background: var(--c-soft-2);
  border-radius: var(--radius-lg);
}

.bkp-view__more summary {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-blue);
  cursor: pointer;
  list-style: none;
}

.bkp-view__more summary::-webkit-details-marker {
  display: none;
}

.bkp-view__more[open] summary {
  display: none;
}

/* Текст из редактора: единый размер, без крупных стилей блоков */
.bkp-view__full {
  margin-top: 0.75rem;
}

.bkp-view__full * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.bkp-view__full > * + * {
  margin-top: 0.75em;
}

.bkp-view__full h2,
.bkp-view__full h3,
.bkp-view__full h4 {
  font-weight: 700;
}

.bkp-view__full ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.bkp-view__full .wp-block-columns {
  display: grid;
  gap: 0.75rem;
}

.bkp-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.bkp-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.bkp-points li {
  padding: 0.875rem;
  background: #fff;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-lg);
}

.bkp-points__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2rem;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--c-blue);
  background: var(--c-soft);
  border-radius: 0.5rem;
}

.bkp-points__title {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.bkp-points p {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--c-muted);
}

/* Финансовые показатели */
.bkp-fin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  scroll-margin-top: 4rem;
}

.bkp-chart__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
}

.bkp-chart__tabs button {
  min-height: 2rem;
  padding: 0 0.875rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-navy);
  background: #fff;
  border: 0.0625rem solid var(--c-field-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.bkp-chart__tabs [aria-selected="true"] {
  color: #fff;
  background: var(--c-blue);
  border-color: var(--c-blue);
}

.bkp-bars__unit {
  margin-top: 0.875rem;
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bkp-bars ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.bkp-bars li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
}

.bkp-bars__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bkp-bars__track {
  height: 0.875rem;
  background: var(--c-soft-2);
  border-radius: 0.25rem;
  overflow: hidden;
}

.bkp-bars__track span {
  display: block;
  height: 100%;
  background: #b9d5ff;
  border-radius: inherit;
}

.bkp-bars b {
  text-align: right;
  font-weight: 600;
}

.bkp-bars .is-current {
  font-weight: 700;
  color: var(--c-blue);
}

.bkp-bars .is-current .bkp-bars__track span {
  background: var(--c-blue);
}

.bkp-kv {
  width: 100%;
  margin: 0.875rem 0 1rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.bkp-kv th,
.bkp-kv td {
  padding: 0.5rem 0;
  text-align: left;
  border-bottom: 0.0625rem solid var(--c-line);
}

.bkp-kv thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--c-muted);
}

.bkp-kv tbody th {
  font-weight: 400;
}

.bkp-kv td,
.bkp-kv thead th:last-child {
  text-align: right;
}

.bkp-kv td {
  font-weight: 600;
}

/* Продукты */
.bkp-products {
  scroll-margin-top: 4rem;
}

.bkp-prod {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.bkp-prod__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 0.0625rem solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
}

.bkp-prod__item:hover {
  border-color: rgba(22, 119, 255, .4);
  box-shadow: var(--shadow-card);
}

.bkp-prod__item .hp-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bkp-prod__title {
  font-size: 0.875rem;
  font-weight: 700;
}

.bkp-prod__facts {
  display: flex;
  gap: 1.5rem;
}

.bkp-prod__facts dt {
  font-size: 0.6875rem;
  color: var(--c-muted);
}

.bkp-prod__facts dd {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 800;
}

.bkp-prod__note {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.bkp-prod__item .hp-link {
  margin-top: auto;
}

/* Сравнение */
.bkp-compare {
  scroll-margin-top: 4rem;
}

.bkp-compare .bk-table-wrap {
  margin-top: 0.875rem;
  border-radius: var(--radius-lg);
}

.bkp-compare h2 small {
  margin-left: 0.5rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-muted);
}

.bkp-compare .bk-table tr.is-current {
  background: var(--c-soft-2);
}

.bkp-compare .bk-bank a:hover {
  color: var(--c-blue);
}

.bkp-compare__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

/* Правая колонка */
.bkp-bss {
  scroll-margin-top: 4rem;
}

.bkp-bss__score {
  margin-top: 0.25rem;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.bkp-bss .hp-link {
  margin-top: 0.75rem;
}

.bkp-info {
  display: grid;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
}

.bkp-info div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.5rem;
  border-bottom: 0.0625rem solid var(--c-line);
}

.bkp-info div:last-child {
  border-bottom: 0;
}

.bkp-info dt {
  color: var(--c-muted);
}

.bkp-info dd a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--c-blue);
}

.bkp-info .icon {
  width: 0.875rem;
  height: 0.875rem;
}

#news {
  scroll-margin-top: 4rem;
}

@media (max-width: 900px) {
  .bkp-head {
    flex-wrap: wrap;
  }

  .bkp-logo {
    width: 5rem;
    height: 5rem;
  }

  .bkp-site {
    margin-left: 0;
  }

  .bkp-fin {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bkp-info dd {
  overflow-wrap: anywhere;
}
