/* ==========================================================================
   BankHero — редизайн каталога продуктов и деталки предложения
   Токены и компоненты по дизайн-макетам (design_handoff_bankhero)
   ========================================================================== */

.bh {
  --ink: #241D63;
  --ink-deep: #1A1447;
  --primary: #6C5FE8;
  --primary-600: #5A4DD6;
  --lav: #F3F2FB;
  --line: #E6E4F2;
  --muted: #6E6A8F;
  --body: #4A4670;
  --ground: #EDECF6;
  --bonus-dash: #C9C3F2;
  /* тон банка — переопределяется инлайном на деталке и на плашке карточки */
  --bank: #241D63;
  --bank-ink: #FFFFFF;
  --bank-field: #EDECF6;
  --bank-field-ink: #241D63;
  --bank-chip: rgba(255, 255, 255, .18);
  --bank-soft: #EDECF6;

  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  color: var(--ink);
}

.bh *,
.bh *::before,
.bh *::after { box-sizing: border-box; }

.bh h1, .bh h2, .bh h3, .bh h4 {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}

.bh p { margin: 0; }
.bh a { color: var(--primary); text-decoration: none; }
.bh a:hover { color: var(--primary-600); }

.bh-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.bh-kicker {
  display: inline-flex;
  background: var(--lav);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  border-radius: 999px;
}

.bh-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  padding: 0;
  transition: border-color 0.15s, color 0.15s;
}
.bh-arrow:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   1. Каталог продуктов (главная)
   ========================================================================== */

.bh-catalog {
  background: #fff;
  padding: 56px 32px 72px;
}

.bh-catalog__title { font-size: 38px; margin-top: 14px; }

.bh-catalog__sub {
  font-size: 16px;
  color: var(--body);
  margin-top: 10px;
  max-width: 64ch;
  text-wrap: pretty;
}

.bh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.bh-tab {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bh-tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bh-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bh-filters__banks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bh-filters__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
}

.bh-chip {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bh-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bh-filters__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bh-sort.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.bh-rail {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  align-items: stretch;
}

.bh a.bh-card,
.bh a.bh-offer { color: var(--ink); }
.bh a.bh-card:hover,
.bh a.bh-offer:hover { color: var(--ink); }

.bh-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(36, 29, 99, 0.04);
  transition: box-shadow 0.18s, transform 0.18s;
  color: inherit;
  text-decoration: none;
}
.bh-card:hover {
  box-shadow: 0 14px 34px rgba(36, 29, 99, 0.14);
  transform: translateY(-3px);
  color: inherit;
}
.bh-card.is-hidden { display: none; }

.bh-card__top {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  background: var(--bank-field);
  color: var(--bank-field-ink);
}

.bh-card__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: var(--bank);
  color: var(--bank-ink);
}

.bh-card__bank {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bh-card__top-body {
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bh-card__product {
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.bh-card__chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  background: var(--bank-chip);
}

.bh-card__offer-wrap { margin-top: auto; padding-top: 16px; }
.bh-card__offer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.bh-card__offer {
  font-weight: 700;
  font-size: 23px;
  margin-top: 6px;
  letter-spacing: -0.02em;
  line-height: 1.18;
  white-space: pre-line;
}

.bh-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.bh-params {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.bh-params--2 { grid-template-columns: repeat(2, 1fr); }
.bh-params--1 { grid-template-columns: 1fr; }

.bh-param {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.bh-param:last-child { border-right: 0; }
.bh-param:nth-child(2) { background: var(--lav); }
.bh-param__value { font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: -0.01em; }
.bh-param__label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.bh-bonus {
  border: 1px dashed var(--bonus-dash);
  background: var(--lav);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bh-bonus__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.bh-bonus__value {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.bh-bonus__note {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}

.bh-card__cta-wrap {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bh-cta {
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.bh-cta--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.bh-card:hover .bh-cta { border-color: var(--primary); }
.bh-card:hover .bh-cta--primary { background: var(--primary-600); border-color: var(--primary-600); }
.bh-card__cta-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.bh-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
  width: 100%;
}

@media (max-width: 768px) {
  .bh-catalog { padding: 40px 16px 48px; }
  .bh-catalog__title { font-size: 28px; }
  .bh-filters__tools { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   2. Деталка предложения
   ========================================================================== */

.bh-detail {
  background: var(--ground);
  padding: 0 24px 64px;
}

.bh-detail__head {
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: var(--bank-field);
  color: var(--bank-field-ink);
}

.bh-detail__strip {
  padding: 11px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bank);
  color: var(--bank-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.bh-detail__strip-promo { opacity: 0.7; }

.bh-detail__field { padding: 24px 32px 30px; }

.bh-breadcrumbs {
  font-size: 13px;
  color: color-mix(in srgb, var(--bank-field-ink) 60%, transparent);
}
.bh-breadcrumbs a { color: inherit; }
.bh-breadcrumbs a:hover { color: inherit; text-decoration: underline; }

.bh-detail__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bh-detail__main { flex: 1; min-width: 300px; }

.bh-detail__title { font-size: 44px; }
.bh-detail__sub {
  font-size: 16px;
  color: color-mix(in srgb, var(--bank-field-ink) 78%, transparent);
  margin-top: 10px;
  max-width: 52ch;
  text-wrap: pretty;
}

.bh-benefit {
  display: flex;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--bank-field-ink) 18%, transparent);
  border-radius: 14px;
  overflow: hidden;
}
.bh-benefit__col { padding: 16px 20px; }
.bh-benefit__sep { width: 1px; background: color-mix(in srgb, var(--bank-field-ink) 18%, transparent); }
.bh-benefit__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--bank-field-ink) 60%, transparent);
}
.bh-benefit__value { font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.bh-benefit__note {
  font-size: 11.5px;
  color: color-mix(in srgb, var(--bank-field-ink) 60%, transparent);
  margin-top: 4px;
}

.bh-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.bh-detail__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bh-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.bh-block__title { font-size: 20px; }
.bh-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bh-block__note { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.bh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.bh-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.bh-step__num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.bh-step__title { font-weight: 700; font-size: 13px; margin-top: 9px; }

.bh-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.bh-condition {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.bh-condition__highlight { font-size: 22px; font-weight: 800; color: var(--primary); }
.bh-condition__text {
  font-size: 13.5px;
  color: var(--body);
  margin-top: 8px;
  text-wrap: pretty;
  line-height: 1.55;
}
.bh-condition__text p { margin: 0 0 8px; }
.bh-condition__text p:last-child { margin-bottom: 0; }

.bh-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 32px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--body);
}
.bh-spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.bh-spec b { color: var(--ink); text-align: right; }

.bh-offers {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.bh-offer {
  flex: 0 0 288px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(36, 29, 99, 0.04);
  transition: box-shadow 0.18s, transform 0.18s;
}
.bh-offer:hover {
  color: inherit;
  box-shadow: 0 14px 34px rgba(36, 29, 99, 0.14);
  transform: translateY(-3px);
}
.bh-offer__top {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  background: var(--bank-field);
  color: var(--bank-field-ink);
}
.bh-offer__strip {
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bank);
  color: var(--bank-ink);
}
.bh-offer__bank { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.bh-offer__kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.bh-offer__top-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bh-offer__product { font-weight: 800; font-size: 16px; }
.bh-offer__offer-wrap { margin-top: auto; padding-top: 14px; }
.bh-offer__offer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.bh-offer__offer { font-weight: 800; font-size: 20px; margin-top: 5px; line-height: 1.15; }
.bh-offer__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  background: #fff;
}
.bh-offer__cert {
  border: 1px dashed var(--bonus-dash);
  background: var(--lav);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bh-offer__cert-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.bh-offer__cert-value { font-weight: 800; font-size: 18px; margin-top: 2px; }
.bh-offer__cert-note {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}
.bh-offer__cta {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
}
.bh-offer:hover .bh-offer__cta { border-color: var(--primary); color: var(--primary); }

/* ---- Липкая панель заявки ---- */

.bh-side {
  position: sticky;
  top: 20px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.bh-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(36, 29, 99, 0.08);
}

.bh-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bh-form__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.bh-form__step { font-size: 11.5px; font-weight: 700; color: var(--muted); }

.bh-progress { display: flex; gap: 5px; margin-top: 10px; }
.bh-progress span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
}
.bh-progress span.is-on { background: var(--primary); }

.bh-form__benefit {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  background: var(--lav);
  border-radius: 10px;
}
.bh-form__benefit-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.bh-form__benefit-value { font-weight: 800; font-size: 17px; }
.bh-form__benefit-value--accent { color: var(--primary); }
.bh-form__benefit-sep { width: 1px; background: var(--line); }

.bh-form__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 18px;
}

.bh-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.bh-cert { cursor: pointer; }
.bh-cert input { position: absolute; opacity: 0; pointer-events: none; }
.bh-cert__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: #fff;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bh-cert__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--cert-color);
}
.bh-cert input:checked + .bh-cert__pill {
  background: var(--cert-color);
  border-color: var(--cert-color);
  color: var(--cert-ink);
}
.bh-cert input:checked + .bh-cert__pill .bh-cert__dot { background: var(--cert-ink); }
.bh-cert input:focus-visible + .bh-cert__pill { outline: 2px solid var(--primary); outline-offset: 2px; }

.bh-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.bh-input {
  height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #FAFAFE;
  font-family: inherit;
  color: var(--ink);
}
.bh-input:focus { outline: none; border-color: var(--primary); }

.bh-form__hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

.bh-agree {
  display: flex;
  gap: 9px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.bh-agree input { margin: 2px 0 0; accent-color: var(--primary); flex: none; }

.bh-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  margin-top: 16px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.55;
}
.bh-submit.is-ready { opacity: 1; }
.bh-submit:hover { background: var(--primary-600); }

.bh-submit__hint {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.bh-trust {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--body);
}
.bh-trust__row { display: flex; gap: 10px; }
.bh-trust__row b { color: var(--ink); min-width: 64px; }

.bh-disclaimer {
  background: var(--bank-soft);
  border: 1px solid var(--bank);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 768px) {
  .bh-detail { padding: 0 12px 40px; }
  .bh-detail__strip { padding: 10px 18px; }
  .bh-detail__field { padding: 20px 18px 22px; }
  .bh-detail__title { font-size: 28px; }
  .bh-benefit { width: 100%; }
  .bh-block { padding: 18px; }
  .bh-side { position: static; }
}

/* ==========================================================================
   3. Новости на главной
   ========================================================================== */

.bh-news { background: var(--ground); padding: 56px 32px 64px; }

.bh-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bh-news__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-news__tag {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bh-news__tag.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.bh-news__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1.1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.bh-news__side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bh-news__rest-slot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bh-news__lead-slot { min-width: 0; }

.bh-news__more {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  display: block;
  transition: border-color 0.15s, color 0.15s;
}
.bh-news__more:hover { border-color: var(--primary); color: var(--primary); }

.bh-news__empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 32px;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
  text-align: center;
}

.news-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.15s;
}
.news-card:hover { color: inherit; }

.news-card__media {
  background: linear-gradient(135deg, var(--lav), #e8e5f8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news-card__meta { display: flex; align-items: center; gap: 10px; }
.news-tag {
  background: var(--lav);
  color: var(--primary);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.news-card__read { font-size: 12px; color: var(--muted); }
.news-card__date { display: none; font-size: 12px; color: var(--muted); }
.news-card__title { font-weight: 700; line-height: 1.28; }
.news-card__excerpt { color: var(--body); text-wrap: pretty; }
.news-card__cta { display: none; font-weight: 700; color: var(--primary); font-size: 14px; margin-top: 4px; }

/* Ведущая карточка (большая) */
.bh-news__lead-slot .news-card {
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 29, 99, 0.04);
  transition: box-shadow 0.18s, transform 0.18s;
}
.bh-news__lead-slot .news-card:hover { box-shadow: 0 14px 34px rgba(36, 29, 99, 0.14); transform: translateY(-3px); }
.bh-news__lead-slot .news-card__media { height: 230px; font-size: 3rem; }
.bh-news__lead-slot .news-card__body { padding: 22px; }
.bh-news__lead-slot .news-card__title { font-size: 24px; }
.bh-news__lead-slot .news-card__excerpt { font-size: 14.5px; line-height: 1.55; }
.bh-news__lead-slot .news-card__date { display: inline; }
.bh-news__lead-slot .news-card__date::before { content: '· '; color: var(--muted); }
.bh-news__lead-slot .news-card__cta { display: inline-block; }

/* Карточки списком справа */
.bh-news__rest-slot .news-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 16px;
}
.bh-news__rest-slot .news-card:hover { border-color: var(--primary); }
.bh-news__rest-slot .news-card__media { width: 96px; height: 72px; border-radius: 10px; font-size: 1.5rem; }
.bh-news__rest-slot .news-card__title {
  font-size: 15.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh-news__rest-slot .news-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .bh-news { padding: 40px 16px 48px; }
  .bh-news__lead-slot .news-card__media { height: 180px; }
  .bh-news__lead-slot .news-card__title { font-size: 20px; }
}

/* ==========================================================================
   4. Блог — список статей
   ========================================================================== */

.bh-blog { background: var(--ground); padding: 44px 32px 72px; min-height: 50vh; }

.bh-blog__kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.bh-blog__title { font-size: 42px; margin-top: 12px; }
.bh-blog__sub { font-size: 16px; color: var(--body); margin-top: 10px; max-width: 60ch; text-wrap: pretty; }

.bh-blog__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.bh-blog__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-blog__tag {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-block;
}
.bh-blog__tag:hover { color: var(--ink); }
.bh-blog__tag.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.bh-blog__search-input {
  height: 42px;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  color: var(--ink);
}
.bh-blog__search-input:focus { outline: none; border-color: var(--primary); }

.bh-blog__found { font-size: 13px; color: var(--muted); margin-top: 16px; }

.bh-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.bh-blog__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(36, 29, 99, 0.04);
  transition: box-shadow 0.18s, transform 0.18s;
}
.bh-blog__card:hover { color: inherit; box-shadow: 0 14px 34px rgba(36, 29, 99, 0.14); transform: translateY(-3px); }

.bh-blog__card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--lav), #e8e5f8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex: none;
}
.bh-blog__card-media img { width: 100%; height: 100%; object-fit: cover; }

.bh-blog__card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bh-blog__card-meta { display: flex; align-items: center; gap: 10px; }
.bh-blog__card-read { font-size: 12px; color: var(--muted); }
.bh-blog__card-title { font-weight: 700; font-size: 17px; line-height: 1.28; }
.bh-blog__card-excerpt { font-size: 13.5px; color: var(--body); text-wrap: pretty; }
.bh-blog__card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.bh-blog__card-cta { font-weight: 700; color: var(--primary); }
.bh-blog__card-date { color: var(--muted); }

.bh-blog__pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.bh-blog__pager-num { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.bh-blog__empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .bh-blog { padding: 32px 16px 48px; }
  .bh-blog__title { font-size: 30px; }
}

/* ==========================================================================
   5. Деталка статьи
   ========================================================================== */

.bh-article__body { background: var(--ground); padding: 0 24px 64px; }

.bh-article__hero { background: var(--primary); color: #fff; }
.bh-article__hero .bh-wrap { padding: 30px 32px 38px; }

.bh-article__crumbs { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-bottom: 16px; }
.bh-article__crumbs a { color: inherit; }
.bh-article__crumbs a:hover { color: #fff; text-decoration: underline; }

.bh-article__tag {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
}

.bh-article__title { font-size: 40px; margin-top: 16px; color: #fff; max-width: 26ch; }
.bh-article__lede {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px;
  max-width: 82ch;
  text-wrap: pretty;
}
.bh-article__meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 18px;
  flex-wrap: wrap;
}

.bh-article__cover { height: 300px; border-radius: 16px; overflow: hidden; }
.bh-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bh-article__side { max-width: 340px; }

.bh-article__side-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }

.bh-article__toc { display: flex; flex-direction: column; margin-top: 12px; }
.bh-article__toc-row {
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: var(--body);
}
.bh-article__toc-row:last-child { border-bottom: 0; }
.bh-article__toc-row span:first-child { color: var(--muted); }

.bh-article__related { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.bh-article__related-item {
  display: block;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.bh-article__related-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-article__related-item:hover { color: var(--primary); }
.bh-article__related-read { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }

.bh-article__back { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bh-article__back:hover { color: var(--primary); }

.bh-article__prose { font-size: 15px; color: var(--body); line-height: 1.65; }
.bh-article__prose > *:first-child { margin-top: 0; }
.bh-article__prose p { margin: 0 0 12px; }
.bh-article__prose p:last-child { margin-bottom: 0; }
.bh-article__prose ul, .bh-article__prose ol { margin: 0 0 12px; padding-left: 1.4em; }
.bh-article__prose li { margin-bottom: 6px; }
.bh-article__prose a { color: var(--primary); }
.bh-article__prose img { max-width: 100%; border-radius: 12px; margin: 8px 0; }
.bh-article__prose h3, .bh-article__prose h4 { margin: 18px 0 8px; color: var(--ink); }
.bh-article__prose table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14px; }
.bh-article__prose th, .bh-article__prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.bh-article__prose th { background: var(--lav); font-weight: 700; }
.bh-article__prose blockquote {
  border-left: 3px solid var(--primary);
  margin: 0 0 12px;
  padding: 4px 0 4px 16px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .bh-article__hero .bh-wrap { padding: 20px 18px 22px; }
  .bh-article__title { font-size: 26px; }
  .bh-article__cover { height: 200px; }
  .bh-article__side { max-width: 100%; position: static; }
}
