/* BoostClicks 2.0 — дизайн-система и разметка фронта. */

:root {
  --ink: #0B0F14;
  --ink-2: #1A222C;
  --muted: #5C6875;
  --paper: #FFFFFF;
  --wash: #EFF2F6;
  --line: #DCE3EB;
  --accent: #0FB5AE;
  --accent-deep: #068C86;
  --money: #0E7C55;
  --dark: #0B0F14;
  --dark-2: #131A22;
  --on-dark: #F3F6F8;
  --on-dark-muted: #9AA7B4;
  --pad: clamp(18px, 4vw, 64px);
  --maxw: 1560px;
  --f-ui: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* ---------- база ---------- */
html { -webkit-text-size-adjust: 100%; }

body.bc2-body {
  margin: 0;
  background: var(--paper) !important;
  background-image: none !important;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.bc-locked { overflow: hidden; }

.bc2 *, .bc2 *::before, .bc2 *::after { box-sizing: border-box; }
.bc2 img { max-width: 100%; height: auto; display: block; }
.bc2 a { color: inherit; text-decoration: none; }
.bc2 button { font: inherit; }
.bc2 :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

.bc-skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  background: var(--ink); color: #fff; padding: 0; border-radius: 0 0 10px 0;
}
.bc-skip:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; }

.bc-wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.bc-kicker {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.bc-kicker--accent { color: var(--accent); }
.bc-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.bc-kicker--live .bc-dot { background: var(--money); animation: bc-blink 1.9s ease-in-out infinite; }
.bc-sep { color: var(--on-dark-muted); }

.bc-h1 {
  margin: 22px 0 0; font-size: clamp(34px, 6vw, 88px); line-height: .99;
  font-weight: 600; letter-spacing: -.038em; text-wrap: balance;
}
.bc-h1--article { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.034em; max-width: 20ch; }
.bc-h2 {
  margin: 10px 0 0; font-size: clamp(27px, 3.4vw, 54px); line-height: 1.04;
  font-weight: 600; letter-spacing: -.032em; text-wrap: balance;
}
.bc-h2--sm { font-size: clamp(25px, 2.6vw, 40px); }
.bc-h2--dark { color: var(--on-dark); max-width: 19ch; }

.bc-lede {
  margin: 24px 0 0; font-family: var(--f-serif);
  font-size: clamp(17px, 1.4vw, 22px); line-height: 1.52; color: var(--on-dark-muted); max-width: 52ch;
}
.bc-lede--light { color: var(--muted); max-width: 62ch; }

.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 11px;
  font-size: 15.5px; font-weight: 600; white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s;
}
.bc-btn:hover { transform: translateY(-1px); }
.bc-btn--primary { background: var(--accent); color: #04252A; }
.bc-btn--ghost { border: 1px solid rgba(255, 255, 255, .24); color: var(--on-dark); }
.bc-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.bc-btn--dark { background: var(--ink); color: #fff; min-height: 40px; font-size: 14.5px; padding: 0 18px; }
.bc-btn--outline { border: 1px solid var(--line); min-height: 40px; font-size: 14.5px; padding: 0 18px; }
.bc-btn--full { display: flex; width: 100%; margin-top: 16px; min-height: 44px; font-size: 14.5px; }
.bc-arw { display: inline-block; transition: transform .18s; }
.bc-btn:hover .bc-arw, .bc-more:hover .bc-arw, a:hover > .bc-arw { transform: translateX(3px); }

.bc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.bc-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.bc-more:hover { color: var(--accent-deep); border-color: var(--accent); }

.bc-sec { padding-block: clamp(52px, 7vw, 100px); }
.bc-sec--first { padding-top: clamp(36px, 4vw, 64px); }
.bc-sec--tight { padding-block: clamp(44px, 5vw, 76px); }
.bc-sec--wash { background: var(--wash); }
.bc-sec__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: clamp(26px, 3vw, 44px);
}
.bc-sec__desc { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 70ch; }

/* ---------- шапка ---------- */
.bc-hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bc-hdr__in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); height: 68px; }
.bc-hdr__brand { flex: 0 0 auto; }
.bc-hdr__brand img { height: 26px; width: auto; }
.bc-nav {
  display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.bc-nav::-webkit-scrollbar { display: none; }
.bc-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--muted); white-space: nowrap; transition: color .18s, background .18s;
}
.bc-nav a:hover { color: var(--ink); background: var(--wash); }
.bc-nav a[aria-current] { color: var(--ink); background: var(--wash); }
.bc-hdr__act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.bc-iconbtn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer;
}
.bc-iconbtn:hover { background: var(--wash); }
.bc-tg {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 17px;
  border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  transition: transform .18s;
}
.bc-tg:hover { transform: translateY(-1px); color: #fff; }
.bc-burger { display: none; }

.bc-search { border-top: 1px solid var(--line); background: var(--paper); padding-block: 14px; }
.bc-search form { display: flex; align-items: center; gap: 12px; }
.bc-search svg { color: var(--muted); flex: 0 0 auto; }
.bc-search input {
  flex: 1 1 auto; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 16px; font-size: 16px; color: var(--ink); background: var(--paper);
}
.bc-search button {
  height: 46px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: #04252A; font-weight: 600; cursor: pointer;
}

.bc-mnav { display: none; }

@media (max-width: 1080px) {
  .bc-nav { display: none; }
  .bc-burger { display: inline-flex; }
  .bc-tg span { display: none; }
  .bc-tg { padding: 0 12px; }
  .bc-hdr__in { justify-content: space-between; }
  .bc-mnav {
    display: block; position: fixed; inset: 68px 0 0; z-index: 55; background: var(--paper);
    padding: 8px var(--pad) 40px; overflow-y: auto;
  }
  .bc-mnav[hidden] { display: none; }
  .bc-mnav a {
    display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  }
}

/* ---------- обложка-история ---------- */
.bc-cover { position: relative; background: var(--dark); overflow: hidden; isolation: isolate; }
.bc-cover__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 55%; opacity: .4; z-index: -2;
}
.bc-cover__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, var(--dark) 10%, rgba(11, 15, 20, .84) 44%, rgba(11, 15, 20, .42) 76%),
    linear-gradient(0deg, var(--dark) 1%, rgba(11, 15, 20, 0) 44%);
}
.bc-cover__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bc-cover__in {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  gap: clamp(28px, 4vw, 72px); align-items: center;
  padding-block: clamp(48px, 8vw, 96px) clamp(44px, 6vw, 88px);
}
.bc-cover .bc-h1 { color: var(--on-dark); max-width: 16ch; font-size: clamp(32px, 4.7vw, 72px); line-height: 1.02; }
@media (max-width: 1180px) {
  .bc-cover__in { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 980px) {
  .bc-cover__in { grid-template-columns: 1fr; align-items: start; }
  .bc-cover .bc-h1 { max-width: 20ch; }
}

/* трассировка запроса */
.bc-trace {
  display: block; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  overflow: hidden; background: rgba(6, 10, 14, .62); color: var(--on-dark);
  transition: border-color .2s, transform .25s;
}
.bc-trace:hover { border-color: rgba(15, 181, 174, .55); transform: translateY(-2px); color: var(--on-dark); }
.bc-trace__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bc-trace__host { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; }
.bc-trace__mode {
  display: flex; align-items: center; gap: 7px; font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted);
}
.bc-dot--blink { background: var(--accent); animation: bc-blink 1.9s ease-in-out infinite; }
.bc-trace__row {
  display: grid; grid-template-columns: 26px 92px 1fr 18px; gap: 12px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--f-mono); font-size: 12.5px;
}
.bc-trace__n { color: #5C6875; }
.bc-trace__k { color: var(--on-dark-muted); }
.bc-trace__v { color: var(--on-dark); }
.bc-trace__verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: rgba(15, 181, 174, .09);
}
.bc-trace__vk {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.bc-trace__vv { font-family: var(--f-mono); font-size: 15px; font-weight: 700; color: var(--accent); }
@media (max-width: 420px) {
  .bc-trace__row { grid-template-columns: 22px 72px 1fr 16px; gap: 8px; font-size: 11.5px; padding: 12px 14px; }
  .bc-trace__head, .bc-trace__verdict { padding: 13px 14px; }
}

/* ---------- бегущая строка выплат ---------- */
.bc-ticker {
  display: flex; align-items: stretch; min-height: 72px;
  background: linear-gradient(180deg, #131A22 0%, #0E141B 100%);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
}
.bc-ticker__label {
  display: flex; align-items: center; gap: 10px; padding: 0 22px; flex: 0 0 auto;
  background: var(--accent); color: #04252A;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.bc-ticker__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #04252A; flex: 0 0 auto;
  animation: bc-tkpulse 2s ease-in-out infinite;
}
.bc-ticker__mask {
  position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 95%, transparent);
}
.bc-ticker__track {
  display: flex; align-items: center; gap: 12px; width: max-content; height: 100%;
  padding-left: 12px; animation: bc-ticker 26s linear infinite;
}
/* Пауза только при наведении на сами пилюли: кнопка пуск/пауза лежит вне маски,
   иначе фокус на ней держал бы строку остановленной сразу после запуска. */
.bc-ticker__mask:hover .bc-ticker__track,
.bc-ticker__mask:focus-within .bc-ticker__track { animation-play-state: paused; }
.bc-tk {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 9px 8px 9px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
  background: rgba(255, 255, 255, .028);
  transition: border-color .2s, background .2s, transform .2s;
}
.bc-tk:hover { border-color: rgba(15, 181, 174, .55); background: rgba(15, 181, 174, .08); transform: translateY(-1px); }
.bc-tk__net {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #7E8B99;
  padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06);
}
.bc-tk__name { font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: #E4EAF0; }
.bc-tk__geo { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: #7E8B99; }
.bc-tk__pay {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: #04252A;
  font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 999px; background: #2FD3CB;
}
@keyframes bc-tkpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (max-width: 700px) {
  .bc-ticker { min-height: 64px; }
  .bc-ticker__label { padding: 0 14px; letter-spacing: .1em; }
  .bc-tk__name { font-size: 13px; }
  .bc-tk__geo { display: none; }
}

/* ---------- сетка статей ---------- */
.bc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 32px); }
.bc-grid > * { grid-column: span 2; min-width: 0; }
.bc-grid > .bc-card--lg { grid-column: span 3; }
.bc-grid--even > *, .bc-grid--three > * { grid-column: span 2; }
@media (max-width: 1180px) {
  .bc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bc-grid > *, .bc-grid > .bc-card--lg { grid-column: span 2; }
}
@media (max-width: 720px) {
  .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .bc-grid > *, .bc-grid > .bc-card--lg { grid-column: span 2; }
}

.bc-card { display: flex; flex-direction: column; min-width: 0; }
.bc-card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: var(--wash);
}
.bc-card__thumb img, .bc-card__thumb picture {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.bc-card:hover .bc-card__thumb img { transform: scale(1.04); }
.bc-chip {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 7px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.bc-card__title {
  margin: 16px 0 0; font-size: 19.5px; font-weight: 600; letter-spacing: -.018em;
  line-height: 1.22; text-wrap: balance;
}
.bc-card__title span {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size .4s cubic-bezier(.2, .7, .2, 1);
}
.bc-card:hover .bc-card__title span { background-size: 100% 2px; }
.bc-card--lg .bc-card__title { font-size: clamp(21px, 1.8vw, 27px); letter-spacing: -.025em; margin-top: 18px; }
.bc-card__desc { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bc-card__meta { margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.bc-card__noimg { display: block; width: 100%; height: 100%; background: var(--wash); }

/* карточки, которые вставляет рекламный хук темы */
.bc-grid .post-card { display: flex; flex-direction: column; min-width: 0; }
.bc-grid .post-card__thumbnail {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line); background: var(--wash);
}
.bc-grid .post-card__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.bc-grid .post-card__category {
  position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 7px;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.bc-grid .post-card__category a { color: inherit; }
.bc-grid .post-card__title {
  margin: 16px 0 0; font-size: 19.5px; font-weight: 600; letter-spacing: -.018em; line-height: 1.22;
}
.bc-grid .post-card__description { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bc-grid .post-card__meta { margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }

/* ---------- бенто сервисов ---------- */
.bc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.bc-tool {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 26px); min-height: 262px; color: var(--on-dark); isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s;
}
.bc-tool:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--on-dark); }
.bc-tool__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.bc-tool:hover .bc-tool__bg { transform: scale(1.05); }
.bc-tool__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 10, 14, .97) 34%, rgba(6, 10, 14, .84) 62%, rgba(6, 10, 14, .42) 100%);
}
.bc-tool__body { display: block; }
.bc-tool__name { display: block; margin-top: 8px; font-size: clamp(19px, 1.6vw, 26px); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
.bc-tool__text { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: #B6C3CF; max-width: 44ch; }
.bc-tool__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bc-tool__chip {
  padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: #B6C3CF;
}
.bc-tool__url { margin-top: 16px; }
.bc-tool--lg { grid-column: span 6; min-height: 356px; }
.bc-tool--md { grid-column: span 3; min-height: 356px; }
.bc-tool--sm { grid-column: span 4; }
@media (max-width: 1080px) {
  .bc-tool--lg, .bc-tool--md { grid-column: span 6; min-height: 300px; }
  .bc-tool--sm { grid-column: span 6; }
}
@media (max-width: 680px) {
  .bc-tool--lg, .bc-tool--md, .bc-tool--sm { grid-column: span 12; min-height: 240px; }
}

/* ---------- борд офферов ---------- */
.bc-board { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bc-board__head, .bc-board__row {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px; align-items: center; padding: 16px clamp(14px, 1.6vw, 24px);
  border-bottom: 1px solid var(--line);
}
.bc-board__head {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.bc-board__row:last-child { border-bottom: 0; }
.bc-board__row { transition: background .15s; }
.bc-board__row:hover { background: var(--wash); color: var(--ink); }
.bc-board__name { font-size: 16px; font-weight: 600; letter-spacing: -.012em; }
.bc-board__net { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bc-board__vert { font-size: 14.5px; color: var(--muted); }
.bc-board__pay {
  text-align: right; font-family: var(--f-mono); font-size: 17px; font-weight: 700;
  color: var(--money); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bc-board__head .bc-board__pay { color: var(--muted); font-size: 10.5px; }
@media (max-width: 820px) {
  .bc-board__head { display: none; }
  .bc-board__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .bc-board__name { grid-column: 1; }
  .bc-board__pay { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .bc-board__net { grid-column: 1; grid-row: 2; }
  .bc-board__vert { display: none; }
}

/* ---------- партнёры ---------- */
.bc-pgrid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.bc-pgrid__lead .bc-h2 { margin-top: 10px; }
.bc-pgrid__note { margin: 16px 0 20px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 34ch; }
@media (max-width: 980px) { .bc-pgrid { grid-template-columns: 1fr; align-items: start; } }

.bc-partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 20px); }
@media (max-width: 560px) { .bc-partners { grid-template-columns: 1fr; } }

.bc-pcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .25s;
}
.bc-pcard:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 18px 40px -26px rgba(6, 30, 32, .45); color: inherit;
}
.bc-pcard__sweep {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(15, 181, 174, 0));
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.bc-pcard:hover .bc-pcard__sweep { transform: scaleX(1); }
.bc-pcard__plate {
  display: flex; align-items: center; justify-content: center;
  height: 86px; border-radius: 12px; background: var(--wash);
  transition: background .25s;
}
.bc-sec--wash .bc-pcard__plate { background: #F6F8FA; }
.bc-pcard:hover .bc-pcard__plate { background: color-mix(in srgb, var(--accent) 9%, var(--wash)); }
.bc-pcard__plate img { width: auto; max-width: 78%; object-fit: contain; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.bc-pcard:hover .bc-pcard__plate img { transform: scale(1.05); }
.bc-pcard__name { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.bc-pcard__role { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.bc-pcard__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.bc-pcard__domain { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--muted); }
.bc-pcard__go {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 9px; border: 1px solid var(--line); color: var(--muted);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.bc-pcard:hover .bc-pcard__go { border-color: var(--accent); color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 10%, transparent); transform: translate(2px, -2px); }

/* ---------- рубрики ---------- */
.bc-rubrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px); }
@media (max-width: 900px) { .bc-rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bc-rubrics { grid-template-columns: 1fr; } }
.bc-rub {
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
  min-height: 138px; padding: 24px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px;
  transition: transform .2s, border-color .2s;
}
.bc-rub:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.bc-rub__count { font-family: var(--f-mono); font-size: 12px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.bc-rub__name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.bc-rub__desc { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- тёмная полоса ---------- */
.bc-band { position: relative; background: var(--dark-2); overflow: hidden; }
.bc-band__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bc-band__in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(52px, 6vw, 88px);
}
.bc-band__text { margin: 20px 0 0; font-family: var(--f-serif); font-size: 19px; line-height: 1.5; color: var(--on-dark-muted); max-width: 52ch; }
.bc-band__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .bc-band__in { grid-template-columns: 1fr; } }

/* ---------- статья ---------- */
.bc-article__head { padding-top: clamp(32px, 4vw, 56px); }
.bc-crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.bc-crumbs__cur { color: var(--accent-deep); }
.bc-article__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.bc-author { display: flex; align-items: center; gap: 14px; }
.bc-author__ava {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  flex: 0 0 auto;
}
.bc-author__ava--lg { width: 56px; height: 56px; font-size: 18px; }
.bc-author__body { display: flex; flex-direction: column; gap: 3px; }
.bc-author__name { font-size: 15px; font-weight: 600; }
.bc-share { display: flex; align-items: center; gap: 8px; }
.bc-share .bc-kicker { margin-right: 4px; }

.bc-article__cover {
  position: relative; aspect-ratio: 16 / 7; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); margin-top: clamp(24px, 3vw, 36px);
}
.bc-article__cover img { width: 100%; height: 100%; object-fit: cover; }

.bc-article__grid {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 316px;
  gap: clamp(24px, 3vw, 48px); padding-block: clamp(36px, 4.5vw, 56px) clamp(52px, 7vw, 96px);
}
.bc-article__grid--page { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 1180px) {
  .bc-article__grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .bc-toc { display: none; }
}
@media (max-width: 900px) {
  .bc-article__grid { grid-template-columns: minmax(0, 1fr); }
  .bc-rail { order: 2; }
}

.bc-toc__in { position: sticky; top: 88px; }
.bc-toc__t { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bc-toc nav { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.bc-toc__l {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--muted);
  transition: background .15s, color .15s;
}
.bc-toc__l:hover { background: var(--wash); color: var(--ink); }
.bc-toc__l--3 { padding-left: 24px; font-size: 13.5px; }

/* тело статьи */
.bc-body {
  font-family: var(--f-serif); font-size: clamp(17.5px, 1.25vw, 19.5px);
  line-height: 1.72; color: var(--ink-2); max-width: 74ch;
}
.bc-body > * { margin-top: 0; margin-bottom: 0; }
.bc-body > * + * { margin-top: 26px; }
.bc-body h2, .bc-body h3, .bc-body h4 {
  font-family: var(--f-ui); font-weight: 600; letter-spacing: -.028em; color: var(--ink);
  text-wrap: balance; scroll-margin-top: 90px;
}
.bc-body h2 { margin-top: 48px; margin-bottom: 2px; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.15; }
.bc-body h3 { margin-top: 36px; margin-bottom: 0; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.2; }
.bc-body h4 { margin-top: 28px; font-size: 19px; }
.bc-body a { color: var(--accent-deep); border-bottom: 1px solid rgba(15, 181, 174, .4); }
.bc-body a:hover { border-bottom-color: var(--accent-deep); }
.bc-body ul, .bc-body ol { padding-left: 22px; }
.bc-body li + li { margin-top: 8px; }
.bc-body li::marker { color: var(--accent); }
.bc-body img, .bc-body picture { border-radius: 14px; }
.bc-body figure, .bc-body .wp-block-image { margin-left: 0; margin-right: 0; position: relative; }
.bc-body figcaption {
  font-family: var(--f-ui); font-size: 14px; line-height: 1.5;
  color: var(--muted); margin-top: 10px;
}
.bc-body blockquote {
  margin-left: 0; margin-right: 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent);
  font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; font-weight: 600;
  letter-spacing: -.015em; color: var(--ink);
}
.bc-body blockquote p { margin: 0; }
.bc-body figure > table { margin: 0; }
.bc-body pre, .bc-body .syntaxhighlighter {
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7;
  background: var(--dark); color: #C6D0DA; border: 1px solid #232E39; border-radius: 14px;
  padding: 20px 18px; overflow-x: auto;
}
.bc-body code {
  font-family: var(--f-mono); font-size: .88em;
  background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px;
}
.bc-body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.bc-body table {
  width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 15px;
  display: block; overflow-x: auto;
}
.bc-body th, .bc-body td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.bc-body th {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted); background: var(--wash);
}
.bc-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px; }

.bc-authorbox {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start;
  margin-top: 44px; padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  font-family: var(--f-ui);
}
.bc-authorbox__name { font-size: 17px; font-weight: 600; }
.bc-authorbox__bio { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.bc-authorbox__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.bc-comments { margin-top: 44px; font-family: var(--f-ui); font-size: 16px; }
.bc-comments h2, .bc-comments h3 { font-family: var(--f-ui); letter-spacing: -.025em; }
.bc-comments input[type="text"], .bc-comments input[type="email"], .bc-comments input[type="url"], .bc-comments textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--paper); margin-top: 6px;
}
.bc-comments .submit, .bc-comments input[type="submit"] {
  border: 0; border-radius: 10px; background: var(--accent); color: #04252A;
  font-weight: 600; padding: 13px 24px; cursor: pointer;
}

/* правый рельс */
.bc-rail__in { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.bc-rail__svc {
  display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--dark); color: var(--on-dark); transition: border-color .2s, transform .25s;
}
.bc-rail__svc:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--on-dark); }
.bc-rail__svcimg { display: block; height: 132px; overflow: hidden; }
.bc-rail__svcimg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.bc-rail__svcbody { display: block; padding: 20px; }
.bc-rail__svcname { display: block; margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.bc-rail__svctext { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--on-dark-muted); }
.bc-rail__box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bc-rail__boxhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--wash);
}
.bc-rail__all { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
.bc-rail__offer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.bc-rail__offer:last-child { border-bottom: 0; }
.bc-rail__offer:hover { background: var(--wash); color: inherit; }
.bc-rail__oname { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.bc-rail__onet { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bc-rail__opay { font-family: var(--f-mono); font-size: 15px; font-weight: 700; color: var(--money); font-variant-numeric: tabular-nums; }
.bc-rail__t { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bc-rail__post { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bc-rail__post:last-child { border-bottom: 0; }
.bc-rail__pimg { display: block; width: 88px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--wash); }
.bc-rail__pimg img { width: 100%; height: 100%; object-fit: cover; }
.bc-rail__ptitle { font-size: 15px; font-weight: 600; line-height: 1.3; }
.bc-rail__post:hover .bc-rail__ptitle { color: var(--accent-deep); }

/* ---------- подвал, пагинация, мелочи ---------- */
.bc-pager { margin-top: clamp(32px, 4vw, 52px); }
.bc-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.bc-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--f-mono); font-size: 13px; color: var(--muted);
}
.bc-pager .page-numbers:hover { border-color: var(--accent); color: var(--ink); }
.bc-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.bc-pager .screen-reader-text { position: absolute; left: -9999px; }

.bc-empty { font-size: 17px; color: var(--muted); }
.bc-empty a { color: var(--accent-deep); }
.bc-404 { text-align: left; padding-block: clamp(40px, 7vw, 90px); }
.bc-404 .bc-cta { justify-content: flex-start; }

.bc-foot { background: var(--wash); border-top: 1px solid var(--line); color: var(--muted); padding-block: clamp(34px, 4vw, 52px); }
.bc-foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.bc-foot__brand img { height: 24px; width: auto; }
.bc-foot__cols { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bc-foot__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14.5px; justify-content: flex-end; }
.bc-foot__links a:hover, .bc-foot__partners a:hover { color: var(--accent-deep); }
.bc-foot__partners { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; justify-content: flex-end; }
.bc-foot__disc { margin: 26px 0 0; font-size: 12px; line-height: 1.55; max-width: 110ch; }
@media (max-width: 760px) {
  .bc-foot__cols { align-items: flex-start; }
  .bc-foot__links, .bc-foot__partners { justify-content: flex-start; }
}

/* ---------- анимации ---------- */
@keyframes bc-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bc-trace-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes bc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes bc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.bc-an { animation: bc-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.bc-an--1 { animation-delay: .05s; }
.bc-an--2 { animation-delay: .14s; }
.bc-an--3 { animation-delay: .23s; }
.bc-an--4 { animation-delay: .32s; }
.bc-tr { animation: bc-trace-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.bc-tr--1 { animation-delay: .55s; }
.bc-tr--2 { animation-delay: .68s; }
.bc-tr--3 { animation-delay: .81s; }
.bc-tr--4 { animation-delay: .94s; }

.bc-rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.bc-rv.bc-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bc-an, .bc-tr { animation: none; }
  .bc-rv { opacity: 1; transform: none; transition: none; }
  .bc2 * { transition-duration: .01ms !important; }
}

.bc-copy.bc-copied { border-color: var(--accent); color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Плагинное оглавление внутри текста дублирует липкое слева — прячем там, где оно есть. */
@media (min-width: 1181px) {
  .bc-body > .table-of-contents { display: none; }
}
.bc-body > .table-of-contents {
  font-family: var(--f-ui); font-size: 15.5px;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--wash);
}

/* Кнопка лайтбокса ядра WP получает инлайн right/top, посчитанные по <img>.
   mu-plugin picture-wrap оборачивает картинку в <picture>, отсчёт сбивается
   и кнопка улетает за экран, растягивая страницу вбок. Прибиваем к углу. */
.bc-body .lightbox-trigger,
.bc-body .wp-lightbox-container button {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2;
}
.bc-body .wp-lightbox-container { position: relative; max-width: 100%; }
.bc-body figure > picture { display: block; max-width: 100%; }

/* Длинные токены (URL, ключи, ASN) не должны распирать колонку на телефоне. */
.bc-body p, .bc-body li, .bc-body td, .bc-body th, .bc-body dd, .bc-body figcaption { overflow-wrap: anywhere; }
.bc-body a { overflow-wrap: anywhere; }

/* Карточка партнёра на узком экране. */
.bc-pcard__foot, .bc-pcard__row { min-width: 0; }
.bc-pcard__domain { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 520px) {
  .bc-partners { grid-template-columns: 1fr; }
  .bc-pcard { min-height: 0; padding: 20px; }
  .bc-pcard__logo { height: 48px; }
}

/* ---------- цвета ссылок-компонентов ----------
   `.bc2 a { color: inherit }` весит 0,1,1 и перебивает одноклассовые правила
   вроде `.bc-tg`, из-за чего текст на тёмных кнопках наследовал чернила.
   Здесь возвращаем цвета с той же специфичностью, но ниже по каскаду. */
.bc2 .bc-tg, .bc2 .bc-tg:hover { color: #fff; }
.bc2 .bc-btn--primary, .bc2 .bc-btn--primary:hover { color: #04252A; }
.bc2 .bc-btn--ghost, .bc2 .bc-btn--ghost:hover { color: var(--on-dark); }
.bc2 .bc-btn--dark, .bc2 .bc-btn--dark:hover { color: #fff; }
.bc2 .bc-btn--outline, .bc2 .bc-btn--outline:hover { color: var(--ink); }
.bc2 .bc-more { color: var(--ink); }
.bc2 .bc-more:hover { color: var(--accent-deep); }
.bc2 .bc-trace, .bc2 .bc-trace:hover { color: var(--on-dark); }
.bc2 .bc-tool, .bc2 .bc-tool:hover { color: var(--on-dark); }
.bc2 .bc-ticker__label, .bc2 .bc-ticker__label:hover { color: #04252A; }
.bc2 .bc-rail__svc, .bc2 .bc-rail__svc:hover { color: var(--on-dark); }
.bc2 .bc-crumbs__cur { color: var(--accent-deep); }
.bc2 .bc-rail__all { color: var(--accent-deep); }
.bc2 .bc-toc__l { color: var(--muted); }
.bc2 .bc-toc__l:hover { color: var(--ink); }
.bc2 .bc-body a { color: var(--accent-deep); }
.bc2 .bc-empty a { color: var(--accent-deep); }
.bc2 .bc-pager .page-numbers { color: var(--muted); }
.bc2 .bc-pager .page-numbers.current { color: #fff; }
.bc2 .bc-rub__count { color: var(--accent-deep); }
.bc2 .bc-kicker--accent { color: var(--accent); }
.bc2 .bc-trace__host { color: var(--on-dark); }
.bc2 .bc-trace__mode { color: var(--on-dark-muted); }
.bc2 .bc-trace__vk, .bc2 .bc-trace__vv { color: var(--accent); }
.bc2 .bc-tool__text { color: #B6C3CF; }
.bc2 .bc-rail__svctext { color: var(--on-dark-muted); }
.bc2 .bc-rail__opay { color: var(--money); }
.bc2 .bc-board__pay { color: var(--money); }
.bc2 .bc-board__head .bc-board__pay { color: var(--muted); }
.bc2 .bc-card__desc, .bc2 .bc-card__meta, .bc2 .bc-board__net, .bc2 .bc-board__vert,
.bc2 .bc-rub__desc, .bc2 .bc-pcard__domain, .bc2 .bc-rail__onet { color: var(--muted); }

/* ---------- состояния живой трассировки ---------- */
.bc-trace__rows { display: block; }
.bc-trace__row { grid-template-columns: 26px 104px 1fr 20px; }
.bc-trace__mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.bc-mk { display: none; }
.bc-trace__row[data-ok="0"] .bc-mk--no { display: block; color: #E2574C; }
.bc-trace__row[data-ok="1"] .bc-mk--ok { display: block; color: var(--accent); }
.bc-trace__row[data-bc-row] .bc-trace__k,
.bc-trace__row[data-bc-row] .bc-trace__v,
.bc-trace__row[data-bc-row] .bc-trace__mark { transition: opacity .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.bc-trace__row[data-bc-row]:not(.bc-trace__row--in) .bc-trace__k,
.bc-trace__row[data-bc-row]:not(.bc-trace__row--in) .bc-trace__v,
.bc-trace__row[data-bc-row]:not(.bc-trace__row--in) .bc-trace__mark { opacity: 0; transform: translateX(-8px); }
.bc-trace__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-trace__verdict { transition: background .35s ease; }
.bc-trace__verdict[data-pass="0"] { background: rgba(255, 255, 255, .05); }
.bc-trace__verdict[data-pass="0"] .bc-trace__vk { color: var(--on-dark-muted); }
.bc2 .bc-trace__verdict[data-pass="0"] .bc-trace__vv { color: var(--on-dark-muted); }
.bc-trace__verdict[data-pass="1"] { background: rgba(15, 181, 174, .12); }
.bc2 .bc-trace__verdict[data-pass="1"] .bc-trace__vk,
.bc2 .bc-trace__verdict[data-pass="1"] .bc-trace__vv { color: var(--accent); }
.bc-trace__mode [data-bc-caption] { min-width: 152px; text-align: right; }
@media (max-width: 420px) {
  .bc-trace__row { grid-template-columns: 22px 84px 1fr 18px; }
  .bc-trace__mode [data-bc-caption] { min-width: 0; }
}

/* --- жизнь в бегущей строке --- */
.bc-ticker__mask::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(47, 211, 203, .16) 50%, rgba(255, 255, 255, 0) 58%);
  transform: translateX(-120%);
  animation: bc-sheen 7s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes bc-sheen {
  0%   { transform: translateX(-120%); }
  38%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* Короткий «тик» на выплате — как на табло биржи. Сдвиг по фазе, чтобы строка всё время жила. */
.bc-tk__pay { will-change: transform; animation: bc-tick 6s ease-in-out infinite; }
@keyframes bc-tick {
  0%, 84%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(47, 211, 203, 0); }
  88%           { transform: scale(1.09); box-shadow: 0 0 0 5px rgba(47, 211, 203, .18); }
  93%           { transform: scale(.985); box-shadow: 0 0 0 0 rgba(47, 211, 203, 0); }
}
.bc-tk:nth-child(8n + 1) .bc-tk__pay { animation-delay: 0s; }
.bc-tk:nth-child(8n + 2) .bc-tk__pay { animation-delay: .75s; }
.bc-tk:nth-child(8n + 3) .bc-tk__pay { animation-delay: 1.5s; }
.bc-tk:nth-child(8n + 4) .bc-tk__pay { animation-delay: 2.25s; }
.bc-tk:nth-child(8n + 5) .bc-tk__pay { animation-delay: 3s; }
.bc-tk:nth-child(8n + 6) .bc-tk__pay { animation-delay: 3.75s; }
.bc-tk:nth-child(8n + 7) .bc-tk__pay { animation-delay: 4.5s; }
.bc-tk:nth-child(8n + 8) .bc-tk__pay { animation-delay: 5.25s; }

/* Наведение: пилюля приподнимается, бейдж ПП и выплата подсвечиваются. */
.bc-tk:hover .bc-tk__net { background: rgba(47, 211, 203, .16); color: #BFF3F0; }
.bc-tk:hover .bc-tk__name { color: #FFFFFF; }
.bc-ticker__mask:hover::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bc-ticker:not([data-motion="on"]) .bc-ticker__track { animation: none; transform: none; }
  .bc-ticker:not([data-motion="on"]) .bc-ticker__mask { overflow-x: auto; }
  .bc-ticker:not([data-motion="on"]) .bc-ticker__mask::after,
  .bc-ticker:not([data-motion="on"]) .bc-tk__pay { animation: none; }
}

/* --- переключатель движения строки --- */
.bc-ticker__toggle {
  flex: 0 0 auto; width: 52px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-left: 1px solid rgba(255, 255, 255, .09);
  background: transparent; color: #7E8B99; cursor: pointer;
  transition: color .2s, background .2s;
}
.bc-ticker__toggle:hover { color: var(--accent); background: rgba(255, 255, 255, .04); }
.bc-ticker__ico--play { display: none; }
.bc-ticker[data-motion="off"] .bc-ticker__ico--pause { display: none; }
.bc-ticker[data-motion="off"] .bc-ticker__ico--play { display: block; }
.bc-ticker[data-motion="off"] .bc-ticker__toggle { color: var(--accent); }

/* Остановлено — строка не дёргается, но её можно пролистать пальцем или колесом. */
.bc-ticker[data-motion="off"] .bc-ticker__track { animation: none; transform: none; }
.bc-ticker[data-motion="off"] .bc-ticker__mask { overflow-x: auto; scrollbar-width: none; }
.bc-ticker[data-motion="off"] .bc-ticker__mask::-webkit-scrollbar { display: none; }
.bc-ticker[data-motion="off"] .bc-ticker__mask::after,
.bc-ticker[data-motion="off"] .bc-tk__pay { animation: none; }
@media (max-width: 700px) { .bc-ticker__toggle { width: 46px; } }

/* ---------- виджет трассировки: расширенная версия ---------- */
.bc-trace__head { align-items: center; }
.bc2 .bc-trace__host { color: var(--on-dark); }
.bc2 .bc-trace__host:hover { color: var(--accent); }
.bc-trace__mode [data-bc-caption] { min-width: 186px; }
.bc-mk--na { display: none; }
.bc-trace__row[data-ok="na"] .bc-mk--na { display: block; color: #5C6875; }

.bc-trace__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.bc-trace__dots { display: flex; align-items: center; gap: 5px; }
.bc-trace__dot {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  transition: background .3s, transform .3s;
}
.bc-trace__dot--on { background: var(--accent); transform: scale(1.35); }
.bc2 .bc-trace__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-muted); transition: color .2s;
}
.bc2 .bc-trace__more:hover { color: var(--accent); }
@media (max-width: 420px) {
  .bc-trace__mode [data-bc-caption] { min-width: 0; }
  .bc-trace__foot { padding: 11px 14px; }
  .bc2 .bc-trace__more { letter-spacing: .06em; }
}
