/* Статья блога (/blog/<slug>/, templates/public/blog/article.html и шесть
   blog/<slug>.html). Макеты — _lab/24-pages/blog-article: шапка v3,
   оглавление v3, текст v2, ошибки v3, задачи v2, вопросы v3, призыв v2.
   Все классы — с префиксом ba-. */
.ba {
  --ba-blue: #1f7bff;
  --ba-sh: 0 30px 60px -30px rgba(25, 30, 80, .28), 0 2px 6px rgba(25, 30, 80, .05);
  --ba-sh-s: 0 14px 30px -18px rgba(25, 30, 80, .3), 0 1px 3px rgba(25, 30, 80, .05);
  --ba-gap: clamp(64px, 9vw, 104px);
  max-width: 1200px; margin: 0 auto; padding-bottom: 24px;
}
.ba h2 { margin: 0; }
.ba .frac { font-weight: 600; }

/* ── шапка: всё по центру, широкая обложка ── */
.ba-head { display: grid; justify-items: center; gap: 22px; padding-top: clamp(20px, 3vw, 40px); text-align: center; }
.ba-head .kicker { margin: 0; }
.ba-head h1 {
  max-width: 900px; margin: 0;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em;
  text-wrap: balance;
}
.ba-lead { max-width: 720px; margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--muted); }
.ba-by { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; font-size: 15px; color: var(--muted); }
.ba-by span + span::before { content: "·"; margin: 0 12px; color: #b9bbcf; }
.ba-by b { font-weight: 600; color: var(--ink); }
.ba-cover {
  position: relative; justify-self: stretch; margin: 26px 0 0;
  border-radius: 32px; overflow: hidden; background: #e9eefb; box-shadow: var(--ba-sh);
}
.ba-cover > img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 45%; }
.ba-cover figcaption { position: absolute; left: 24px; bottom: 22px; max-width: calc(100% - 48px); }
.ba-cover figcaption a {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; line-height: 1.3; text-align: left; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ba-cover figcaption a:hover { color: var(--accent); }
.ba-cover figcaption img { flex: none; width: 28px; height: 28px; object-fit: contain; }

/* ── оглавление: дорожка шагов ── */
.ba-toc { margin-top: var(--ba-gap); }
.ba-toc-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ba-toc-hd h2 { font-size: 28px; letter-spacing: -.02em; }
.ba-toc-hd span { font-size: 15px; color: var(--muted); }
.ba-path {
  position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.ba-path::before { content: ""; position: absolute; left: 6%; right: 6%; top: 76px; border-top: 2px dashed #c9d3ee; z-index: -1; }
.ba-path li { margin: 0; }
.ba-path a {
  display: grid; align-content: start; gap: 12px; height: 100%; padding: 16px 16px 20px; border-radius: 24px;
  color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: var(--ba-sh-s);
  transition: transform .2s, box-shadow .2s;
}
.ba-path a:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--ba-sh); }
.ba-path a > span:last-child > b { display: block; font-size: 17px; line-height: 1.3; }
.ba-st { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; color: var(--ba-blue); }
.ba-pic {
  display: grid; place-items: center; height: 120px; padding: 0 10px; border-radius: 16px; overflow: hidden;
  font-weight: 700; color: var(--ink-2); background: linear-gradient(160deg, #eef3ff, #f3f0ff);
}
.ba-pic > .ba-bar { width: 120px; }
.ba-pic .ba-pics { gap: 14px; font-size: 20px; }
.ba-pic .ba-pie { width: 62px; }
.ba-pic .ba-bars { gap: 6px; font-size: 18px; }
.ba-pic .ba-bars .ba-bar { width: 52px; padding: 3px; gap: 2px; border-radius: 6px; }
.ba-pic .ba-bars .ba-bar i { border-radius: 2px; }
.ba-pic .ba-f { font-size: 22px; }
.ba-f { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.ba-f .frac { font-size: .9em; }
.ba-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ba-more a {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.ba-more a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ba-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 800; }
.ba-n-err { color: var(--red); background: #ffecee; }
.ba-n-ok { color: #0f9d6e; background: #e2f8ef; }
.ba-n-q { color: #8a5cf6; background: #f1ebff; }

/* ── шаги: текст слева, карточка-пример справа ── */
.ba-text { margin-top: var(--ba-gap); }
.ba-step { display: grid; grid-template-columns: minmax(0, 680px) 380px; justify-content: space-between; gap: 32px 64px; align-items: start; }
.ba-step + .ba-step { margin-top: 64px; }
.ba-num { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ba-blue); }
.ba-step h2 { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.ba-step-tx p, .ba-step-tx li { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.ba-step-tx p { margin: 0 0 18px; }
.ba-step-tx ul, .ba-step-tx ol { margin: 0 0 18px; }
.ba-step-tx li { margin: 6px 0; }
.ba-step-tx li > b { color: var(--ink); }
.ba-step-tx .frac { font-size: .92em; color: var(--ink); }
.ba-step-tx .see { margin: 0 0 18px; }
.ba-step-tx .steps li { padding-left: 50px; }
.ba-fig {
  display: grid; justify-items: center; gap: 16px; margin: 0; padding: 26px 24px 20px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--ba-sh);
}
.ba-fig figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
.ba-eq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.ba-eq .frac { font-size: 1em; font-weight: 700; }
.ba-eq-s { font-size: 22px; }
.ba-blue { color: var(--ba-blue); }
.ba-ok { color: #0f9d6e; }
.ba-red { color: var(--red); }
.ba-mut { color: var(--muted); font-weight: 600; }
/* строки записи (решение по шагам, три вопроса) */
.ba-lines { display: grid; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.ba-lines li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0;
  padding: 10px 14px; border-radius: 14px; background: var(--surface-2);
  font-size: 18px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums;
}
.ba-lines li small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ba-lines .is-on { color: #fff; background: var(--ink); }
.ba-lines .is-on small { color: rgba(255, 255, 255, .7); }

/* шоколадка из 8 долек: .ba-bar > i×8, .on — взятые */
.ba-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 10px; background: #6b3f2a; box-shadow: 0 10px 20px -12px rgba(60, 30, 10, .6); }
.ba-bar i { aspect-ratio: 1.2; border-radius: 5px; background: linear-gradient(160deg, #8a5338, #6f402a); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .12); }
.ba-bar i.on { background: linear-gradient(160deg, #4d97ff, #33d0ec); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .3); }
.ba-bar-l { width: 220px; }
.ba-bars { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--muted); }
.ba-bars-l .ba-bar { width: 88px; padding: 4px; gap: 2px; border-radius: 7px; }
.ba-bars-l .ba-bar i { border-radius: 3px; }
/* пицца: <span class="ba-pie" style="--n:8;--k:4"> — n кусков, k закрашено */
.ba-pie {
  display: block; flex: none; aspect-ratio: 1; border-radius: 50%; border: 3px solid #f2c27a;
  background:
    repeating-conic-gradient(#c98a3a 0 1.4deg, transparent 1.4deg calc(360deg / var(--n))),
    conic-gradient(#ffb02e 0 calc(360deg * var(--k) / var(--n)), #ffe6b8 0);
  filter: drop-shadow(0 8px 12px rgba(180, 110, 20, .22));
}
.ba-pics { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 700; color: var(--muted); }
.ba-pics-l .ba-pie { width: 110px; }
.ba-pie-t { display: grid; justify-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.ba-pie-t small { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* сотня клеток: --k закрашено (полными рядами по 10) */
.ba-hund {
  display: block; width: 200px; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95) 2px, transparent 2px) 0 0 / 10% 10%,
    linear-gradient(rgba(255, 255, 255, .95) 2px, transparent 2px) 0 0 / 10% 10%,
    linear-gradient(#4d97ff 0 calc(var(--k) * 1%), #e4ebfb calc(var(--k) * 1%));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .95), 0 10px 22px -14px rgba(31, 90, 200, .5);
}
.ba-pic .ba-hund { width: 92px; border-radius: 7px; }

/* ценник */
.ba-tag {
  position: relative; display: grid; justify-items: start; gap: 2px; padding: 16px 22px 16px 30px; border-radius: 10px 18px 18px 10px;
  color: var(--ink); background: #fff4dc; box-shadow: inset 0 0 0 2px #f2c27a;
}
.ba-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px #f2c27a; }
.ba-tag s { font-size: 17px; font-weight: 600; color: var(--muted); }
.ba-tag b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ba-tag em { position: absolute; right: -12px; top: -12px; padding: 4px 10px; border-radius: var(--pill); font-style: normal; font-size: 14px; font-weight: 800; color: #fff; background: var(--red); }
.ba-pic .ba-tag { padding: 8px 14px 8px 22px; }
.ba-pic .ba-tag::before { left: 7px; width: 7px; height: 7px; margin-top: -3.5px; }
.ba-pic .ba-tag s { font-size: 12px; }
.ba-pic .ba-tag b { font-size: 19px; }
.ba-pic .ba-tag em { right: -10px; top: -10px; padding: 2px 7px; font-size: 11.5px; }

/* весы */
.ba-scale { display: block; width: 260px; max-width: 100%; height: auto; }
.ba-pic .ba-scale { width: 150px; }

/* уравнение-вопрос: «окошко» вместо x */
.ba-box { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .2em; border-radius: 10px; color: var(--ba-blue); background: #eaf2ff; box-shadow: inset 0 0 0 2px #b9d3ff; }

/* круг из четырёх действий */
.ba-loop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; counter-reset: ba-l; }
.ba-loop li { counter-increment: ba-l; display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; font-size: 16px; font-weight: 700; background: var(--surface-2); }
.ba-loop li::before { content: counter(ba-l); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; color: #fff; background: var(--ba-blue); }
.ba-loop li:nth-child(3) { order: 4; }
.ba-loop li:nth-child(4) { order: 3; }
.ba-pic .ba-loop { gap: 5px; width: auto; }
.ba-pic .ba-loop li { padding: 4px 8px 4px 4px; gap: 5px; font-size: 11.5px; border-radius: 9px; background: #fff; }
.ba-pic .ba-loop li::before { width: 18px; height: 18px; font-size: 10.5px; }

/* деление уголком: строки в «ch», цифры одной ширины */
.ba-div {
  display: grid; grid-template-columns: auto auto; column-gap: 0; font-size: 26px; font-weight: 700; line-height: 1.3;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.ba-div-l { display: grid; padding-right: 10px; }
.ba-div-l span { padding-left: calc(var(--x, 0) * 1ch); white-space: pre; }
.ba-div-l .u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ba-div-l .m { color: var(--muted); }
.ba-div-r { display: grid; align-content: start; }
.ba-div-r span { padding: 0 10px; border-left: 2.5px solid var(--ink); }
.ba-div-r .q { color: var(--ba-blue); border-top: 2.5px solid var(--ink); }
.ba-pic .ba-div { font-size: 11.5px; line-height: 1.18; }
.ba-pic .ba-div-l .u { text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.ba-pic .ba-div-r span { border-left-width: 1.5px; padding: 0 6px; }
.ba-pic .ba-div-r .q { border-top-width: 1.5px; }

/* линейка: 4 см, отметка на --at мм */
.ba-ruler {
  position: relative; display: block; width: 280px; height: 64px; border-radius: 8px;
  background:
    linear-gradient(90deg, #6a6d88 2px, transparent 2px) 14px 0 / 63px 26px no-repeat,
    linear-gradient(90deg, rgba(106, 109, 136, .9) 1.5px, transparent 1.5px) 14px 0 / 63px 26px repeat-x,
    linear-gradient(90deg, rgba(106, 109, 136, .55) 1px, transparent 1px) 14px 0 / 6.3px 12px repeat-x,
    #ffe9b0;
  box-shadow: inset 0 0 0 2px #f2c27a, 0 10px 20px -14px rgba(180, 110, 20, .6);
}
.ba-ruler::after { content: ""; position: absolute; left: calc(14px + var(--at) * 6.3px - 1px); top: -8px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--ba-blue); }
.ba-ruler b { position: absolute; bottom: 8px; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: #6a5a3a; }
.ba-pic .ba-ruler { zoom: .6; }

/* разряды: 0,50 и 0,45 столбиком по запятой */
.ba-cols { display: grid; gap: 4px; font-size: 34px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ba-cols span { letter-spacing: .04em; }
.ba-cols i { font-style: normal; color: var(--ba-blue); }
.ba-pic .ba-cols { font-size: 22px; }

/* монеты и рубли */
.ba-coins { display: flex; align-items: center; gap: 8px; }
.ba-coins i { display: grid; place-items: center; width: 54px; aspect-ratio: 1; border-radius: 50%; font-style: normal; font-size: 15px; font-weight: 800; color: #6a4a10; background: radial-gradient(circle at 35% 30%, #ffe7a6, #f2b844 70%); box-shadow: inset 0 0 0 3px #e3a531, 0 8px 14px -10px rgba(120, 80, 10, .7); }
.ba-coins i.s { width: 40px; font-size: 12px; color: #4b5068; background: radial-gradient(circle at 35% 30%, #fbfbfd, #c9ccd8 70%); box-shadow: inset 0 0 0 3px #b4b8c7, 0 8px 14px -10px rgba(40, 40, 60, .6); }
.ba-pic .ba-coins { gap: 4px; }
.ba-pic .ba-coins i { width: 38px; font-size: 11px; }
.ba-pic .ba-coins i.s { width: 28px; font-size: 9px; }

/* термометр: шкала от +5 до −10, две отметки */
.ba-thermo { display: flex; align-items: stretch; gap: 10px; height: 190px; }
.ba-thermo-t { position: relative; width: 22px; border-radius: 11px; background: #eef1f8; box-shadow: inset 0 0 0 2px #dfe3ee; }
.ba-thermo-t::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 47%; border-radius: 6px; background: linear-gradient(#4d97ff, #33d0ec); }
.ba-thermo-s { position: relative; width: 120px; font-size: 15px; font-weight: 700; color: var(--muted); }
.ba-thermo-s span { position: absolute; left: 0; top: calc((5 - var(--t)) / 15 * 100%); transform: translateY(-50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ba-thermo-s span::before { content: ""; width: 10px; border-top: 2px solid #c3c7d4; }
.ba-thermo-s .on { color: var(--ink); font-size: 18px; }
.ba-thermo-s .on::before { width: 16px; border-color: var(--ba-blue); }
.ba-thermo-s .hot { color: var(--ba-blue); }
.ba-pic .ba-thermo { height: 96px; gap: 6px; }
.ba-pic .ba-thermo-t { width: 14px; }
.ba-pic .ba-thermo-t::after { left: 3px; right: 3px; bottom: 3px; }
.ba-pic .ba-thermo-s { width: 64px; font-size: 11px; }
.ba-pic .ba-thermo-s .on { font-size: 12px; }

/* лифт: этажи 2…−2, улица — 0 */
.ba-lift { display: grid; gap: 4px; width: 210px; margin: 0; padding: 0; list-style: none; }
.ba-lift li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 6px 12px; border-radius: 10px; font-size: 15px; font-weight: 700; background: var(--surface-2); }
.ba-lift li small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ba-lift .z { color: #0f9d6e; background: #e2f8ef; }
.ba-lift .on { color: #fff; background: var(--ink); }
.ba-lift .on small { color: rgba(255, 255, 255, .7); }
.ba-lift .way { background: #eaf2ff; }
.ba-pic .ba-lift { width: 96px; gap: 2px; }
.ba-pic .ba-lift li { padding: 1px 8px; font-size: 10.5px; border-radius: 6px; }
.ba-pic .ba-lift li small { display: none; }

/* числовая прямая (svg) */
.ba-line { display: block; width: 300px; max-width: 100%; height: auto; overflow: visible; }
.ba-pic .ba-line { width: 160px; }

/* ── частые ошибки: тетрадь в клетку ── */
.ba-mis { margin-top: var(--ba-gap); }
.ba-mis-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.ba-mis-hd h2, .ba-practice-hd h2, .ba-faq-hd h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.ba-mis-hd p { max-width: 420px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.ba-sheet {
  position: relative; margin: 0; padding: 40px 48px 40px 120px; list-style: none; counter-reset: ba-m;
  border-radius: 24px; background-color: #fffefb;
  background-image: linear-gradient(#e3e9f5 1px, transparent 1px), linear-gradient(90deg, #e3e9f5 1px, transparent 1px);
  background-size: 24px 24px; box-shadow: var(--ba-sh);
}
.ba-sheet::before { content: ""; position: absolute; left: 92px; top: 0; bottom: 0; width: 2px; background: rgba(239, 75, 91, .55); }
.ba-sheet li {
  counter-increment: ba-m; position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px 40px;
  align-items: center; margin: 0; padding: 22px 0;
}
.ba-sheet li + li { border-top: 1px dashed rgba(106, 109, 136, .25); }
.ba-sheet li::before { content: counter(ba-m) "."; position: absolute; left: -80px; top: 50%; transform: translateY(-50%); font: italic 700 30px/1 var(--font); color: var(--red); }
.ba-hand {
  position: relative; justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 18px;
  font: italic 600 34px/1.15 var(--font); color: #2b3a8f; font-variant-numeric: tabular-nums;
}
.ba-hand .frac { font-size: 1em; font-weight: 600; }
.ba-hand .frac i { border-bottom-width: 2.5px; }
.ba-hand::after { content: ""; position: absolute; inset: -14px -20px; border: 2.5px solid var(--red); border-radius: 50%; transform: rotate(-4deg); opacity: .85; pointer-events: none; }
.ba-stack { flex-direction: column; align-items: flex-end; gap: 0; }
.ba-stack span:last-child { border-bottom: 2.5px solid currentColor; }
.ba-see:empty { display: none; }
.ba-note { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ba-note > b { display: block; margin-bottom: 6px; font-style: italic; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--red); }
.ba-note .frac { font-size: .85em; }

/* ── как закрепить: полка тем ── */
.ba-practice { margin-top: var(--ba-gap); }
.ba-practice-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.ba-practice-hd .kicker { margin-bottom: 14px; }
.ba-practice-tx p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.ba-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ba-c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba-c1 { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.ba-tc {
  display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--surface); box-shadow: var(--ba-sh-s); transition: transform .2s, box-shadow .2s;
}
.ba-tc:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--ba-sh); }
.ba-tc.is-start { box-shadow: 0 0 0 2.5px #4d97ff, var(--ba-sh); }
.ba-tc-im { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: linear-gradient(150deg, #dfeaff, #e8f8ff); }
.ba-tc-im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-tc-im.is-icon img { width: 46%; height: auto; margin: 4% auto 0; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(31, 90, 200, .25)); }
.ba-chip {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: var(--pill); font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .92); white-space: nowrap;
}
.ba-tc-bd { display: grid; gap: 4px; padding: 16px 20px 18px; }
.ba-tc-bd > b { font-size: 18px; line-height: 1.25; }
.ba-tc-bd span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.ba-tc-bd em { margin-top: 8px; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--ba-blue); }
.ba-c1 .ba-tc { flex-direction: row; }
.ba-c1 .ba-tc-im { flex: none; width: 50%; aspect-ratio: 16 / 10; }
.ba-c1 .ba-tc-bd { align-content: center; padding: 28px 32px; }
.ba-c1 .ba-tc-bd b { font-size: 24px; }
.ba-c1 .ba-tc-bd span { font-size: 16px; }
.ba-see { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.ba-see li { margin: 0; }
.ba-see a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 26px; border-radius: var(--pill);
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border);
}
.ba-see a::after { content: "→"; }
.ba-see a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ── вопросы перепиской ── */
.ba-faq { max-width: 880px; margin: var(--ba-gap) auto 0; }
.ba-faq-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 26px; }
.ba-faq-hd span { font-size: 15px; color: var(--muted); }
.ba-chat { display: grid; gap: 14px; padding: 28px; border-radius: 30px; background: linear-gradient(160deg, #eef3ff, #f1fbf7); box-shadow: inset 0 0 0 1px #e3e8f6; }
.ba-q, .ba-a { display: grid; gap: 6px; }
.ba-q { justify-self: end; max-width: 76%; text-align: right; }
.ba-a + .ba-q { margin-top: 8px; }
.ba-q small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ba-q p, .ba-a p { margin: 0; padding: 16px 20px; border-radius: 22px; font-size: 17px; line-height: 1.6; text-align: left; }
.ba-q p { font-weight: 600; color: #fff; background: var(--ink); border-bottom-right-radius: 6px; }
.ba-a { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; justify-self: start; max-width: 82%; }
.ba-a::before {
  content: "OS"; display: grid; place-items: center; width: 40px; height: 40px; align-self: end; border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(95deg, #1f7bff, #17bfe0 55%, #2ee59d);
}
.ba-a p { color: var(--ink-2); background: var(--surface); box-shadow: var(--ba-sh-s); border-bottom-left-radius: 6px; }

/* ── финальный призыв и другие статьи ── */
.ba-next { margin-top: var(--ba-gap); }
.ba-dark {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 32px 48px; align-items: center;
  padding: 52px 56px; border-radius: 32px; color: #fff; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(31, 123, 255, .35), transparent),
    radial-gradient(500px 280px at 70% 110%, rgba(46, 229, 157, .22), transparent),
    #15172e;
}
.ba-dark-tx { display: grid; gap: 14px; justify-items: start; }
.ba-dark h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.ba-dark-tx p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.ba-trial { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--pill); font-size: 14px; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
.ba-trial b { padding: 4px 10px; border-radius: var(--pill); color: var(--ink); background: #fff; }
.ba-dark .signup { width: 100%; margin: 0; box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .5); }
.ba-dark .facts { margin-top: 16px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.ba-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
.ba-list h2 { grid-column: 1 / -1; margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.ba-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none;
}
.ba-row:hover { color: var(--accent); }
.ba-row img, .ba-row > span:first-child { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: #e9eefb; }
.ba-row b { display: block; font-size: 16.5px; line-height: 1.3; }
.ba-row small { font-size: 13px; color: var(--muted); }
.ba-row i { font-style: normal; font-weight: 700; color: var(--ba-blue); }

@media (max-width: 1080px) {
  .ba-step { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 40px; }
  .ba-sheet li { grid-template-columns: 280px minmax(0, 1fr); }
  .ba-dark { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ba-path { grid-auto-flow: row; grid-template-columns: 1fr; gap: 10px; }
  .ba-path::before { left: 66px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 2px dashed #c9d3ee; }
  .ba-path a { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; border-radius: 20px; }
  .ba-path a > span:last-child > b { font-size: 16px; }
  .ba-pic { height: 76px; padding: 0 4px; }
  .ba-pic > * { zoom: .5; }
  .ba-pic .ba-ruler { zoom: .34; }
  .ba-step { grid-template-columns: 1fr; gap: 8px; }
  .ba-step + .ba-step { margin-top: 44px; }
  .ba-fig { justify-self: stretch; }
  .ba-practice-hd { grid-template-columns: 1fr; }
  .ba-shelf, .ba-c2 { grid-template-columns: 1fr; gap: 12px; }
  .ba-tc, .ba-c1 .ba-tc { flex-direction: row; align-items: stretch; }
  .ba-tc-im, .ba-c1 .ba-tc-im { flex: none; width: 112px; aspect-ratio: auto; min-height: 100px; }
  .ba-chip { left: 6px; top: 6px; height: 22px; padding: 0 7px; font-size: 11px; }
  .ba-tc-im.is-icon img { width: 70%; margin-top: 34px; }
  .ba-tc-bd, .ba-c1 .ba-tc-bd { padding: 12px 14px; }
  .ba-tc-bd b, .ba-c1 .ba-tc-bd b { font-size: 16px; }
  .ba-tc-bd span, .ba-c1 .ba-tc-bd span { font-size: 13.5px; }
  .ba-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ba-head { gap: 18px; }
  .ba-by { gap: 4px 16px; }
  .ba-by span + span::before { content: none; }
  .ba-cover { margin-top: 12px; border-radius: 24px; }
  .ba-cover > img { aspect-ratio: 4 / 3; }
  .ba-cover figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .ba-cover figcaption a { font-size: 12.5px; }
  .ba-toc-hd { flex-direction: column; gap: 4px; }
  .ba-toc-hd h2 { font-size: 24px; }
  .ba-step-tx p, .ba-step-tx li { font-size: 17px; line-height: 1.7; }
  .ba-fig { padding: 22px 16px 18px; }
  .ba-eq { font-size: 24px; }
  .ba-bar-l { width: 190px; }
  .ba-bars-l .ba-bar { width: 72px; }
  .ba-pics-l .ba-pie { width: 96px; }
  .ba-mis-hd { flex-direction: column; align-items: flex-start; }
  .ba-sheet { padding: 22px 18px 22px 56px; }
  .ba-sheet::before { left: 40px; }
  .ba-sheet li { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .ba-sheet li::before { left: -44px; top: 40px; font-size: 26px; }
  .ba-hand { font-size: 28px; margin: 10px 16px 4px; }
  .ba-hand::after { inset: -12px -16px; }
  .ba-faq-hd { flex-direction: column; }
  .ba-chat { padding: 16px 12px; border-radius: 24px; }
  .ba-q { max-width: 92%; }
  .ba-a { max-width: 100%; grid-template-columns: 32px minmax(0, 1fr); }
  .ba-a::before { width: 32px; height: 32px; font-size: 11px; }
  .ba-q p, .ba-a p { padding: 13px 16px; font-size: 15.5px; }
  .ba-dark { padding: 30px 20px; border-radius: 26px; }
  .ba-row { grid-template-columns: 76px minmax(0, 1fr); }
  .ba-row img, .ba-row > span:first-child { width: 76px; }
  .ba-row i { display: none; }
}
