/*
 * Зона blog-legal редизайна 19.10: /terms/, /privacy/ (макеты PgTerms, PgPrivacy),
 * /blog/ и подборки тем (PgBlog), страница статьи (своего макета нет — в
 * стилистике PgBlog/PgTerms). Цвета — только токены assets/r26.css.
 * Приставки: lg- (правовые), bl- (блог).
 */

/* ══ Правовые страницы ═══════════════════════════════════════════════════ */
.lg { --lg-ask-bg: var(--r-fill-1); }
:root[data-theme="light"] .lg { --lg-ask-bg: var(--r-fill-2); }

.lg-top { padding-top: 12px; }
.lg-sec { padding-top: 40px; }
.lg-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }

/* Оговорка о юридической силе (ставит tools/legal-i18n.mjs на переводах сразу
   после h1) — в первом экране, плашкой в палитре макета. */
.lg .lg-binding {
  position: relative; margin: 0; max-width: 600px; padding: 12px 16px;
  border: 0; border-inline-start: 3px solid var(--r-brand-2); border-radius: 0 12px 12px 0;
  background: var(--r-brand-tint); color: var(--r-text-2); font-size: 14px; line-height: 1.55;
}
[dir="rtl"] .lg .lg-binding { border-radius: 12px 0 0 12px; }

/* ── Оглавление ─────────────────────────────────────────────────────────── */
.lg-toc {
  position: sticky; top: calc(var(--r-hdr-h) + 12px);
  max-height: calc(100vh - var(--r-hdr-h) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 24px;
  background: var(--r-surface); border: 1px solid var(--r-line); box-sizing: border-box;
}
.lg-toc::-webkit-scrollbar { display: none; }
.lg-toc-h { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-faint); padding: 6px 14px 10px; }
.lg-toc > a:not(.lg-ask) {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px;
  color: var(--r-muted); font-size: 14px; font-weight: 700; text-decoration: none; line-height: normal;
  transition: background .15s ease, color .15s ease;
}
.lg-toc > a:not(.lg-ask):hover { background: var(--r-hover); color: var(--r-text); }
.lg-toc > a.on { background: var(--r-brand-tint); color: var(--r-text); }
.lg-toc > a:not(.lg-ask) > span { font-size: 12px; color: var(--r-accent); font-variant-numeric: tabular-nums; flex: none; }
.lg-ask {
  margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--lg-ask-bg);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--r-text);
}
.lg-ask b { font-size: 13px; font-weight: 800; }
.lg-ask span { font-size: 12px; color: var(--r-muted); line-height: 1.5; }
.lg-ask:hover b { color: var(--r-link); }

/* ── Текст документа ────────────────────────────────────────────────────── */
.lg-body { display: flex; flex-direction: column; min-width: 0; }
.lg-body > section {
  display: flex; flex-direction: column; gap: 12px; padding: 30px 0; margin: 0;
  border-top: 1px solid var(--r-line-2);
}
.lg-body > section:first-child { border-top: none; }
.lg-h { display: flex; align-items: baseline; gap: 14px; }
.lg-h > span { font-size: 14px; font-weight: 800; color: var(--r-accent); font-variant-numeric: tabular-nums; flex: none; }
.lg-h h2 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--r-text); }
.lg-body p, .lg-body li { font-size: 16px; color: var(--r-text-2); line-height: 1.7; }
.lg-body p, .lg-body ul { margin: 0; max-width: 720px; }
.lg-body h3 { margin: 10px 0 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--r-text); }
.lg-body ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.lg-body li::marker { color: var(--r-accent); }
.lg-body strong, .lg-body b { color: var(--r-text); font-weight: 800; }
.lg-body a { color: var(--r-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-body a:hover { color: var(--r-link-hover); }
.lg-body code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--r-fill-3); color: var(--r-text); overflow-wrap: anywhere; }

/* Врезка «самое важное» — плашкой макета (.r-note: заливка бренда, «i»). */
.lg-body .legal-note {
  margin: 0; max-width: 720px; padding: 22px 24px; border-radius: 20px; border: 0;
  background: var(--r-brand-tint); display: flex; flex-direction: column; gap: 6px; box-sizing: border-box;
}
.lg-body .legal-note b { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.lg-body .legal-note b::before {
  content: ''; flex: none; width: 22px; height: 22px; background: var(--r-link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lg-body .legal-note p { font-size: 15px; line-height: 1.6; padding-inline-start: 32px; }

/* Таблицы документа — строками, как .row макета. */
.lg-tbl-wrap { max-width: 720px; overflow-x: auto; }
.lg-body .legal-tbl { width: 100%; border-collapse: collapse; margin: 0; }
.lg-body .legal-tbl th, .lg-body .legal-tbl td {
  text-align: start; padding: 14px 16px 14px 0; border: 0; border-top: 1px solid var(--r-line-2);
  font-size: 15px; color: var(--r-text-2); line-height: 1.5; vertical-align: top;
}
.lg-body .legal-tbl th {
  border-top: 0; padding-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-faint);
}
.lg-body .legal-tbl td:last-child { color: var(--r-text); font-weight: 700; }
.lg-body .legal-tbl th:last-child, .lg-body .legal-tbl td:last-child { text-align: end; padding-inline: 16px 0; font-variant-numeric: tabular-nums; }

/* ── Планшет и телефон ──────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .lg-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 899px) {
  /* Одна колонка: оглавление — карточкой над текстом, не липнет. */
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lg-toc { position: static; max-height: none; overflow: visible; }
  .lg-toc > a.on { background: none; color: var(--r-muted); }
}
@media (max-width: 719px) {
  .lg-sec { padding-top: 24px; }
  .lg-toc { padding: 12px; border-radius: 22px; }
  .lg-toc > a:not(.lg-ask) { padding: 9px 12px; }
  .lg-h { gap: 10px; }
  .lg-h h2 { font-size: 22px; }
  .lg-body > section { padding: 24px 0; }
  .lg-body p, .lg-body li { font-size: 15.5px; }
  .lg-body .legal-note { padding: 18px; }
  .lg-body .legal-note p { padding-inline-start: 0; }
  .lg-body .legal-tbl th, .lg-body .legal-tbl td { font-size: 14px; }
}

/* ══ Блог: оглавление и подборки тем (макет PgBlog) ═════════════════════ */
.bl-top { padding-top: 12px; }
.bl-hero { padding: 44px 56px; display: flex; flex-direction: column; gap: 22px; }
.bl-hero .bl-glow { inset-inline-end: -160px; top: -260px; width: 760px; height: 760px; }
.bl-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.bl-hero-txt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bl-h1 { margin: 0; font-size: 60px; font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.bl-hero .bl-lead { font-size: 18px; max-width: 560px; }
.bl-hero-art { display: flex; justify-content: center; }
.bl-hero-art img { width: 300px; height: 300px; max-width: 100%; object-fit: contain; }

/* Поиск — поле макета (56 + рамка), настоящий ввод. */
.bl-search {
  display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; max-width: 558px; /* 520 + поля + рамка: в макете content-box */
  border-radius: 16px; background: var(--r-surface-3); border: 1px solid var(--r-line-2);
  box-sizing: border-box; color: var(--r-muted); cursor: text;
}
.bl-search svg { flex: none; }
.bl-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--r-text);
}
.bl-search input::placeholder { color: var(--r-faint); opacity: 1; }
.bl-search:focus-within { border-color: var(--r-brand-2); }

.bl-chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.bl-chip { height: 44px; text-decoration: none; }
.bl-chip:hover { color: var(--r-text); background: var(--r-hover); }
.bl-chip.r-chip--on:hover { background: var(--r-brand-2); color: #FFFFFF; }
.bl-chip .bl-n { font-size: 12px; font-weight: 700; opacity: 0.85; margin: 0; } /* fix-2010 visual: 0.7 давал 3.9:1 */

/* Метка темы и подписи карточек. */
.bl-topic { font-size: 12px; font-weight: 800; color: var(--r-link); }
.bl-meta { font-size: 13px; font-weight: 700; color: var(--r-faint); }

/* Картинка статьи: рамка 16:9; без картинки — подложка макета. */
.bl-card-img, .bl-feat-img { position: relative; overflow: hidden; display: block; }
.bl-card-img img, .bl-feat-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-noimg {
  display: flex; align-items: center; justify-content: center; color: var(--r-faint);
  background: linear-gradient(135deg, var(--r-brand-tint), var(--r-fill-1)); border: 1px dashed var(--r-line-3); box-sizing: border-box;
}

/* ── «Главное» ───────────────────────────────────────────────────────── */
.bl-feat-sec { padding-top: 32px; }
.bl-feat {
  display: grid; grid-template-columns: 1.15fr 0.85fr; border-radius: 32px; overflow: hidden;
  background: var(--r-surface); border: 1px solid var(--r-line); color: var(--r-text); text-decoration: none;
  transition: border-color .16s ease;
}
.bl-feat:hover { border-color: var(--r-line-3); }
.bl-feat-pic { padding: 16px; display: block; }
.bl-feat-img { height: 380px; border-radius: 22px; }
.bl-feat-txt { padding: 36px 40px 36px 20px; display: flex; flex-direction: column; gap: 16px; justify-content: center; min-width: 0; }
[dir="rtl"] .bl-feat-txt { padding: 36px 20px 36px 40px; }
.bl-feat-tags { display: flex; gap: 8px; align-items: center; }
.bl-feat-tags .bl-topic { font-size: 13px; font-weight: 700; }
.bl-badge { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--r-brand); color: #FFFFFF; text-transform: uppercase; }
.bl-feat-h { font-size: 36px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.bl-feat-d { font-size: 16px; color: var(--r-muted); line-height: 1.6; }
.bl-feat-d em { font-style: normal; color: var(--r-faint); }
.bl-feat-meta { display: flex; gap: 14px; }

/* ── Сетка карточек ──────────────────────────────────────────────────── */
.bl-fresh { gap: 24px; }
.bl-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.bl-sec-head > .r-chip { text-decoration: none; }
.bl a.r-chip:hover { color: var(--r-text); background: var(--r-hover); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-card {
  display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 20px; border-radius: 26px;
  background: var(--r-surface); border: 1px solid var(--r-line); color: var(--r-text); text-decoration: none;
  min-width: 0; transition: border-color .16s ease, transform .16s ease;
}
.bl-card:hover { border-color: var(--r-line-3); transform: translateY(-2px); }
.bl-card-img { height: 190px; border-radius: 18px; flex: none; }
.bl-card-txt { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.bl-card-h { font-size: 19px; font-weight: 800; line-height: 1.3; }
/* «Показать ещё»: скрытые карточки — только когда работает скрипт (без него видно все). */
.bl-grid.is-cut > .bl-more { display: none; }
.bl-grid > .is-miss { display: none !important; }
.bl-more-row { display: flex; justify-content: center; padding-top: 8px; }
.bl-more-btn { height: 56px; }
.bl-empty { margin: 0; padding: 28px; border-radius: 24px; background: var(--r-surface); border: 1px solid var(--r-line); color: var(--r-muted); text-align: center; }
.bl-searching .bl-hide-on-search { display: none; }
.bl-hub-foot { justify-content: center; padding-top: 8px; }

/* ── «С чего начать» + калькулятор ───────────────────────────────────── */
.bl-duo { padding-top: 48px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; }
.bl-pop { padding: 32px 36px; display: flex; flex-direction: column; }
.bl-pop > .r-k { padding-bottom: 10px; }
.bl-pop-h { font-size: 32px; padding-bottom: 12px; }
.bl-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0;
  border-top: 1px solid var(--r-line-2); color: var(--r-text); text-decoration: none;
}
.bl-row-n { font-size: 32px; font-weight: 800; color: var(--r-accent); font-variant-numeric: tabular-nums; }
.bl-row-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bl-row-h { font-size: 17px; font-weight: 800; }
.bl-row-m { font-size: 12px; font-weight: 800; color: var(--r-muted); }
.bl-arr { color: var(--r-faint); transition: transform .16s ease, color .16s ease; }
.bl-row:hover .bl-row-h { color: var(--r-link); }
.bl-row:hover .bl-arr { color: var(--r-text); transform: translateX(3px); }
[dir="rtl"] .bl-arr { transform: scaleX(-1); }
[dir="rtl"] .bl-row:hover .bl-arr { transform: scaleX(-1) translateX(3px); }

.bl-promo {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; box-sizing: border-box;
  background: var(--r-brand); border: none; color: #FFFFFF; text-decoration: none;
}
.bl-promo > span { position: relative; z-index: 1; }
.bl-promo-k { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; opacity: 0.8; text-transform: uppercase; }
.bl-promo-h { font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; max-width: 92%; }
.bl-promo-d { font-size: 15px; line-height: 1.55; opacity: 0.88; max-width: 80%; }
.bl-promo-btn {
  align-self: flex-start; height: 50px; padding: 0 20px; border-radius: 14px; background: #FFFFFF; color: #2A1A80;
  font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; transition: transform .16s ease;
}
.bl-promo:hover .bl-promo-btn { transform: translateY(-1px); }
.bl-promo img { position: absolute; inset-inline-end: -20px; bottom: -20px; width: 200px; height: 200px; max-width: 100%; object-fit: contain; z-index: 0; pointer-events: none; }

/* ══ Статья (своего макета нет — первый экран и колонки как у PgBlog/PgTerms) ══ */
.bl-post-hero { padding: 44px 56px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.bl-post-txt { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bl-k { text-decoration: none; align-self: flex-start; }
.bl-k:hover { color: var(--r-link); }
.bl-post-h1 { margin: 0; font-size: clamp(30px, 2.4vw + 12px, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: break-word; }
.bl-post-hero .bl-lead { font-size: 18px; max-width: 600px; }
.bl-post-hero .r-chips .r-chip { white-space: normal; height: auto; min-height: 38px; }
/* verify 19.10: чип даты правовых страниц на 320 px (es, tr — «17 Ağustos 2026 tarihinden itibaren geçerlidir»)
   шире строки и обрезался блоком — переносим текст внутри чипа. */
.lg-binding ~ .r-chips .r-chip { white-space: normal; height: auto; min-height: 38px; padding-block: 8px; line-height: 1.3; }
@media (max-width: 719px) { .lg-binding ~ .r-chips .r-chip { min-height: 36px; } }
.bl-post-img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--r-surface-3); }
.bl-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-post .r-crumb > :last-child { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bl-body > :not(section) + section { border-top: none; }
.bl-body > .bl-warn, .bl-body > .bl-answer, .bl-body > .bl-keys { margin: 0 0 16px; max-width: 720px; box-sizing: border-box; }
.bl-body .bl-warn {
  padding: 18px 20px; border-radius: 20px; background: var(--r-fill-2); border: 1px solid var(--r-red-line);
  font-size: 15px; line-height: 1.6; color: var(--r-text-2);
}
.bl-body .bl-answer { padding: 22px 24px; border-radius: 20px; background: var(--r-brand-tint); border: 0; }
.bl-body .bl-keys { padding: 22px 24px; border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.bl-body .bl-answer b, .bl-body .bl-keys b {
  display: block; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--r-accent);
}
.bl-body .bl-answer p { color: var(--r-text); font-size: 16px; }
.bl-body .bl-keys ul { gap: 8px; }
.bl-body .bl-tbl { max-width: 720px; overflow-x: auto; margin: 4px 0 0; border-radius: 20px; border: 1px solid var(--r-line); background: var(--r-surface); }
.bl-body .bl-tbl table { width: 100%; min-width: 520px; border-collapse: collapse; }
.bl-body .bl-tbl caption { caption-side: top; text-align: start; padding: 16px 18px 4px; font-size: 13px; font-weight: 700; color: var(--r-muted); }
.bl-body .bl-tbl th, .bl-body .bl-tbl td { padding: 12px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line-2); font-size: 15px; line-height: 1.5; color: var(--r-text-2); }
.bl-body .bl-tbl thead th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-faint); }
.bl-body .bl-tbl tbody th { color: var(--r-text); font-weight: 700; }
.bl-body .bl-tbl tbody tr:last-child > * { border-bottom: none; }

/* Вопросы и ответы — строками с плюсом. */
.bl-faq { max-width: 720px; display: flex; flex-direction: column; }
.bl-qa { border-top: 1px solid var(--r-line-2); }
.bl-qa:last-child { border-bottom: 1px solid var(--r-line-2); }
.bl-qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--r-text);
}
.bl-qa summary::-webkit-details-marker { display: none; }
.bl-qa summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--r-fill-3); border: 1px solid var(--r-line-2); font-size: 18px; font-weight: 700; color: var(--r-muted);
}
.bl-qa[open] summary::after { content: "\2212"; color: var(--r-text); }
.bl-qa summary:hover { color: var(--r-link); }
.bl-qa-a { padding: 0 48px 18px 0; font-size: 16px; line-height: 1.7; color: var(--r-text-2); }
[dir="rtl"] .bl-qa-a { padding: 0 0 18px 48px; }
.bl-qa-a p { margin: 0 0 10px; }

.bl-open { margin-top: 24px; max-width: 720px; padding: 28px 32px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; }
.bl-open h2 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--r-text); }
.bl-open p { margin: 0; }
.bl-open .r-btns { padding-top: 4px; }
.lg-body .bl-open .r-btn { text-decoration: none; color: #FFFFFF; }
.lg-body .bl-open .r-btn--ghost { color: var(--r-text); }
.bl-open .bl-country { align-self: flex-start; font-size: 15px; font-weight: 700; }

.bl-rel { gap: 24px; }

/* ── Планшет и телефон (блог) ────────────────────────────────────────── */
@media (max-width: 1023px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-duo { grid-template-columns: minmax(0, 1fr); }
  .bl-feat-h { font-size: 30px; }
  .bl-post-hero { grid-template-columns: minmax(0, 1fr); }
  .bl-post-img { max-width: 720px; }
}
@media (max-width: 899px) {
  .bl-hero { padding: 32px 28px; }
  .bl-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bl-hero-art { display: none; }
  .bl-h1 { font-size: 46px; }
  .bl-feat { grid-template-columns: minmax(0, 1fr); }
  .bl-feat-img { height: auto; aspect-ratio: 16 / 9; }
  .bl-feat-pic { padding: 12px 12px 0; }
  .bl-feat-txt, [dir="rtl"] .bl-feat-txt { padding: 20px 24px 26px; }
  .bl-post-hero { padding: 32px 28px; }
  /* У статьи оглавление на телефоне не нужно: до текста — один экран, не два. */
  .bl-toc { display: none; }
}
@media (max-width: 719px) {
  .bl-hero { padding: 26px 20px; gap: 18px; }
  .bl-h1 { font-size: 38px; }
  .bl-hero .bl-lead, .bl-post-hero .bl-lead { font-size: 16px; }
  .bl-search { height: 52px; }
  .bl-chip { height: 38px; padding: 0 12px; }
  .bl-feat-sec { padding-top: 20px; }
  .bl-feat { border-radius: 26px; }
  .bl-feat-img { border-radius: 18px; }
  .bl-feat-h { font-size: 24px; }
  .bl-feat-d { font-size: 15px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bl-card { border-radius: 22px; }
  .bl-card-img { height: auto; aspect-ratio: 16 / 9; }
  .bl-card-h { font-size: 17px; }
  .bl-duo { padding-top: 36px; }
  .bl-pop { padding: 24px 20px; }
  .bl-pop-h { font-size: 26px; }
  .bl-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; }
  .bl-row-n { font-size: 24px; }
  .bl-row-h { font-size: 16px; }
  .bl-promo { padding: 26px 22px; min-height: 0; }
  .bl-promo-h { font-size: 24px; }
  .bl-promo img { width: 140px; height: 140px; }
  .bl-post-hero { padding: 26px 20px; gap: 20px; }
  .bl-post-img { border-radius: 18px; }
  .bl-post .r-crumb > :last-child, .bl-post .r-crumb > svg:nth-last-child(2) { display: none; }
  .bl-qa summary { font-size: 16px; }
  .bl-qa-a, [dir="rtl"] .bl-qa-a { padding-inline: 0; }
  .bl-open { padding: 22px 20px; }
  .bl-open .r-btn { width: 100%; }
}
@media (max-width: 359px) {
  .bl-hero, .bl-post-hero { padding: 22px 16px; }
  .bl-h1 { font-size: 34px; }
  .bl-pop { padding: 22px 16px; }
}

/* ══ Баннер продукта в статьях (assets/blog-promo.js) ════════════════════════
   Карточка у нижнего края: на компьютере слева (справа — кнопка чата), на телефоне —
   во всю ширину, кнопка чата на это время прячется. Только токены палитры r26. */
.bp {
  position: fixed; z-index: 110; inset-inline-start: 24px; bottom: 24px; width: 368px;
  box-sizing: border-box; padding: 18px 18px 16px; border-radius: 24px;
  background: var(--r-surface); border: 1px solid var(--r-line-3); box-shadow: var(--r-pop-shadow);
  color: var(--r-text); font-family: var(--r-font);
  opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none;
  transition: opacity .26s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
}
.bp.on { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.bp-x {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--r-fill-2); color: var(--r-muted);
}
.bp-x:hover { background: var(--r-hover); color: var(--r-text); }
.bp-x:focus-visible, .bp-go:focus-visible { outline: 2px solid var(--r-link); outline-offset: 2px; }
.bp-top { display: flex; gap: 14px; align-items: center; padding-inline-end: 34px; }
.bp-img { flex: none; width: 88px; height: 88px; object-fit: contain; }
.bp-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-accent); }
.bp-t { font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.bp-d { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--r-text-2); }
.bp-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bp-facts li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2);
  font-size: 13px; font-weight: 600; color: var(--r-text-2); white-space: nowrap;
}
.bp-facts svg { color: var(--r-green); flex: none; }
.bp-go {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 14px; background: var(--r-brand); color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; box-shadow: var(--r-btn-shadow);
  transition: background-color .15s ease, transform .15s ease;
}
.bp-go:hover { background: var(--r-brand-2); }
.bp-go:active { transform: scale(.98); }

@media (max-width: 560px) {
  .bp { inset-inline: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 14px 14px 12px; border-radius: 20px; }
  .bp-img { width: 64px; height: 64px; }
  .bp-t { font-size: 16px; }
  .bp-d { font-size: 13px; }
  .bp-facts { margin-top: 10px; }
  .bp-facts li { font-size: 12px; padding: 5px 9px; }
  .bp-go { margin-top: 12px; min-height: 46px; }
  html.bp-open .chat { visibility: hidden; }
}
/* Узкий телефон: карточка не должна закрывать полэкрана — без строки описания. */
@media (max-width: 380px) {
  .bp-d { display: none; }
  .bp-img { width: 52px; height: 52px; }
  .bp-top { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp, .bp.on { transform: none; transition: opacity .01s, visibility 0s; }
}
