/* ============================================================
   БЛОГ: список статей и страница статьи.
   Опирается на template.css и brand.css: те же цвета, шрифты
   и контейнер, поэтому блог выглядит продолжением главной.
   ============================================================ */
.blog-body{ background:var(--paper) }

/* ---------- шапка ---------- */
.bhead{ position:sticky;top:0;z-index:50;background:var(--dark);color:#fff }
.bhead__bar{ display:flex;align-items:center;gap:clamp(16px,3vw,40px);padding-block:14px }
.blogo{ display:block;line-height:0;flex:none }
.blogo img{ height:44px;width:auto }
.bnav{ display:flex;gap:clamp(14px,2vw,28px);font-size:16px;margin-left:auto }
.bnav a{ color:#cfd6d2;transition:color .25s }
.bnav a:hover,.bnav a.is-here{ color:#fff }
.bhead__call{ min-width:0;min-height:44px;padding:10px 18px;flex:none }
@media (max-width:760px){
  .bnav{ display:none }
  .bhead__call{ margin-left:auto }
  .blogo img{ height:36px }
}

/* ---------- общий каркас ---------- */
.bwrap{ padding-block:clamp(24px,4vw,48px) clamp(56px,7vw,110px) }
.bcrumbs{ display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted) }
.bcrumbs a{ color:var(--muted) }
.bcrumbs a:hover{ color:var(--ink) }

/* ---------- список статей ---------- */
.bindex__head{ max-width:62ch;margin-block:clamp(24px,4vw,48px) clamp(28px,4vw,52px) }
.bindex__head h1{ font-size:clamp(34px,4.6vw,68px);font-weight:400;letter-spacing:-.04em;line-height:1.05 }
.bindex__head p{ margin-top:18px;font-size:18px;line-height:1.55;color:var(--muted) }
.bgrid{ display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px }
.bcard{
  display:grid;gap:8px;align-content:start;padding:24px;border-radius:16px;overflow:hidden;
  background:var(--paper-2);border:1px solid var(--line);
  transition:border-color .3s,transform .4s var(--ease),background-color .3s;
}
.bcard:hover{ border-color:var(--ink);transform:translateY(-3px);background:#fff }
/* карточка с обложкой: картинка сверху, текст под ней */
.bcard--img{ display:flex;flex-direction:column;gap:0;padding:0 }
.bcard__img{ display:block;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2) }
.bcard__img img{ width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease) }
.bcard--img:hover .bcard__img img{ transform:scale(1.04) }
.bcard__text{ display:grid;gap:8px;align-content:start;padding:20px 22px }
.bcard__rub{ font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--lime) }
.bcard__title{ font-size:clamp(19px,1.6vw,24px);letter-spacing:-.02em;line-height:1.2 }
.bcard__note{ font-size:15px;line-height:1.45;color:var(--muted) }
.bcard__meta{ margin-top:6px;font-size:12px;color:var(--muted) }

/* обложка в шапке статьи */
.bart__cover{ margin:clamp(24px,3vw,36px) 0 0;border-radius:16px;overflow:hidden }
.bart__cover img{ display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover }

/* ---------- статья ---------- */
.bart{ max-width:760px;margin-top:clamp(20px,3vw,40px) }
.bart__rub{ font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--lime) }
.bart__head h1{ margin-top:14px;font-size:clamp(30px,3.8vw,52px);font-weight:400;letter-spacing:-.035em;line-height:1.08 }
.bart__lead{ margin-top:18px;font-size:20px;line-height:1.5;color:#3d4b47 }
.bart__meta{ margin-top:14px;font-size:12px;letter-spacing:.06em;color:var(--muted) }

.btoc{ margin-top:34px;padding:20px 24px;border-radius:14px;background:var(--paper-2) }
.btoc p{ font-family:var(--mono);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted) }
.btoc ul{ margin:12px 0 0;padding-left:18px;display:grid;gap:8px;font-size:16px }
.btoc a{ text-decoration:underline;text-decoration-color:var(--line) }
.btoc a:hover{ color:var(--lime) }

.bart__body{ margin-top:34px;font-size:18px;line-height:1.65 }
.bart__body h2{
  margin:44px 0 0;font-size:clamp(24px,2.4vw,34px);font-weight:400;
  letter-spacing:-.03em;line-height:1.15;scroll-margin-top:90px;
}
.bart__body h3{ margin:30px 0 0;font-size:clamp(19px,1.7vw,24px);font-weight:500;letter-spacing:-.02em }
.bart__body p{ margin-top:16px }
.bart__body ul,.bart__body ol{ margin:16px 0 0;padding-left:22px;display:grid;gap:10px }
.bart__body li{ line-height:1.55 }
.bart__body a{ color:var(--lime);text-decoration:underline }
.bart__body strong{ font-weight:600 }
.bart__body .tbl-wrap{ margin-top:22px }
.bart__body .tbl{ min-width:420px;font-size:16px }
.bart__body blockquote{
  margin:26px 0 0;padding:18px 22px;border-left:3px solid var(--lime);
  border-radius:0 12px 12px 0;background:var(--paper-2);
}
.bart__body blockquote p{ margin:0;font-size:17px }

.bfaq{ max-width:760px;margin-top:52px }
.bfaq h2{ font-size:clamp(24px,2.4vw,34px);font-weight:400;letter-spacing:-.03em;scroll-margin-top:90px }
.bfaq__item{ margin-top:22px;padding-top:22px;border-top:1px solid var(--line) }
.bfaq__item h3{ font-size:19px;font-weight:500;letter-spacing:-.02em }
.bfaq__item p{ margin-top:8px;font-size:17px;line-height:1.55;color:#3d4b47 }

.brel{ margin-top:clamp(48px,6vw,80px) }
.brel h2{ margin-bottom:18px;font-size:clamp(24px,2.4vw,34px);font-weight:400;letter-spacing:-.03em }

/* ---------- блок перехода в калькулятор ---------- */
.bcta{ padding-block:clamp(40px,5vw,72px);background:var(--dark);color:#fff }
.bcta__in{ display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px 40px }
.bcta h2{ font-size:clamp(24px,2.6vw,38px);font-weight:400;letter-spacing:-.03em;line-height:1.1 }
.bcta p{ margin-top:10px;max-width:52ch;font-size:16px;line-height:1.5;color:#9fb0aa }
.bcta__btns{ display:flex;flex-wrap:wrap;gap:10px }

@media (max-width:760px){
  .bart__body{ font-size:17px }
  .bart__lead{ font-size:18px }
  .btoc{ padding:16px 18px }
}

/* В прайсе последний столбец это цена: моноширинный и по правому краю.
   В статьях там обычный текст, поэтому возвращаем ему нормальный вид. */
.bart__body .tbl th:last-child,
.bart__body .tbl td:last-child{ text-align:left;font-family:var(--font);white-space:normal }
.bart__body .tbl th{ font-size:13px }

/* ---------- рубрики в списке статей ---------- */
.brubs{ display:flex;flex-wrap:wrap;gap:8px;margin-bottom:clamp(20px,3vw,36px) }
.bgroup__more{ display:none }
.brubs a{
  display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;
  border:1px solid var(--line);font-size:15px;transition:border-color .25s,background-color .25s;
}
.brubs a:hover{ border-color:var(--ink) }
.brubs span{ font-family:var(--mono);font-size:12px;color:var(--muted) }
.bgroup{ margin-top:clamp(30px,4vw,56px);scroll-margin-top:90px }
.bgroup h2{ margin-bottom:16px;font-size:clamp(24px,2.4vw,34px);font-weight:400;letter-spacing:-.03em }

/* ============================================================
   ТЕЛЕФОН: SEO-страницы и блог
   ============================================================ */
@media (max-width:760px){
  /* Таблицы из 3+ столбцов – карточки: первая ячейка заголовком, остальные
     парами «подпись – значение» в две колонки. Подписи (data-label) ставит
     scripts/tables.py при сборке. */
  .tbl.tbl--cards{ min-width:0 }
  .tbl.tbl--cards thead{ display:none }
  .tbl.tbl--cards tbody{ display:block }
  .tbl.tbl--cards tbody tr{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;
    padding:14px 0;border-bottom:1px solid var(--line);
  }
  .tbl.tbl--cards tbody tr.is-hl{ padding-left:12px;padding-right:12px;border-radius:12px;background:rgba(0,175,80,.09);border-bottom-color:transparent }
  .tbl.tbl--cards td{
    display:grid;gap:2px;align-content:start;min-width:0;padding:0;border:0;
    font-family:inherit;font-size:16px;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere;background:none !important;box-shadow:none !important;
  }
  .tbl.tbl--cards td::before{
    content:attr(data-label);font-family:var(--font);font-size:12px;letter-spacing:0;text-transform:none;color:var(--muted);
  }
  .tbl.tbl--cards td:first-child{ grid-column:1 / -1;font-size:17px;font-weight:500 }
  .tbl.tbl--cards td:first-child::before{ content:none }
  /* в прайсе последние столбцы – цены: моноширинные, как на главной */
  .tbl.tbl--cards td.num{ font-family:var(--mono);font-size:17px }

  /* две колонки помещаются: обычная таблица без прокрутки */
  .tbl.tbl--two{ min-width:0 }
  .tbl.tbl--two thead{ display:table-header-group }
  .tbl.tbl--two tbody{ display:table-row-group }
  .tbl.tbl--two tr{ display:table-row }
  .tbl.tbl--two th,.tbl.tbl--two td{ display:table-cell;padding:11px 8px;font-size:15px;text-align:left;white-space:normal }
  .tbl.tbl--two th:last-child,.tbl.tbl--two td:last-child{ text-align:right;white-space:nowrap }
  .tbl.tbl--two td::before{ content:none }

  /* блог: длинные рубрики свёрнуты до 6 статей */
  .bgroup:not(:target) .bgrid--index > :nth-child(n+7){ display:none }
  .bgroup__more{
    display:flex;justify-content:center;margin-top:12px;padding:13px 16px;border-radius:12px;
    border:1px solid var(--line);font-weight:500;color:var(--ink);text-decoration:none;
  }
  .bgroup:target .bgroup__more{ display:none }
  .bcard__note{ display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden }

  /* мелкие ссылки в подвале и согласии – выше зона нажатия */
  .sfoot__legal a,.lead__consent a{ display:inline-block;padding:6px 0 }
}
