/* Б2БТАРА — statya.css (ШАБЛОН одиночной статьи, single.php)
   Уникальное. Общее (.page/.pcta/.arts/.acard[из stati.css? нет — .acard тоже нужен]) — часть в styles.css.
   ВНИМАНИЕ: .arts/.acard используются и здесь (похожие статьи), и на архиве — их держим в stati.css,
   а для шаблона статьи подключаем ОБА: styles.css → statya.css, и в комплект кладём общий блок .acard.
   Подключать ПОСЛЕ styles.css. */

/* ширина статьи уже колонки страницы для читаемости */
.bt-root .apage{max-width:1000px}

/* --- шапка статьи --- */
.bt-root .art-hero{margin-top:6px}
.bt-root .art-badge{display:inline-block;font:700 11px 'Onest';letter-spacing:.07em;text-transform:uppercase;
  color:#fff;background:var(--red);border-radius:7px;padding:5px 11px}
.bt-root .art-hero h1{font-size:38px;line-height:1.12;letter-spacing:-.02em;margin:16px 0 0;max-width:820px}
.bt-root .art-lead{font-size:18px;line-height:1.6;color:var(--body);margin:16px 0 0;max-width:760px}
.bt-root .art-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 0;font-size:13.5px;color:var(--muted)}
.bt-root .art-meta__i{display:inline-flex;align-items:center;gap:7px}
.bt-root .art-meta__i svg{width:16px;height:16px;color:var(--red)}
.bt-root .art-meta__i a{color:var(--muted)}
.bt-root .art-meta__i a:hover{color:var(--red)}
.bt-root .art-meta__sep{width:4px;height:4px;border-radius:50%;background:#C2C9D2}
.bt-root .art-cover{margin:24px 0 0}
.bt-root .art-cover img{width:100%;height:auto;border-radius:var(--r-lg);border:1px solid var(--line)}

/* --- сетка: оглавление + тело --- */
.bt-root .art-wrap{display:grid;grid-template-columns:230px minmax(0,1fr);gap:40px;margin-top:34px;align-items:start}
.bt-root .art-body{min-width:0}
.bt-root .art-toc{position:sticky;top:24px}
.bt-root .art-toc__box{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.bt-root .art-toc__h{display:block;font:700 11px 'Onest';letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.bt-root .art-toc__box ul{list-style:none;margin:0;padding:0}
.bt-root .art-toc__box li{border-top:1px solid var(--line)}
.bt-root .art-toc__box li:first-child{border-top:0}
.bt-root .art-toc__box a{display:block;font-size:13.5px;line-height:1.4;color:var(--body);padding:7px 0}
.bt-root .art-toc__box a:hover{color:var(--red)}

/* --- типографика тела --- */
.bt-root .art-body{max-width:760px;font-size:16.5px;line-height:1.72;color:var(--body)}
.bt-root .art-body>p{margin:0 0 18px}
.bt-root .art-body b,.bt-root .art-body strong{color:var(--ink);font-weight:700}
.bt-root .art-body a{color:var(--red);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.bt-root .art-body h2{font-size:26px;line-height:1.2;letter-spacing:-.01em;color:var(--ink);margin:36px 0 14px;scroll-margin-top:20px}
.bt-root .art-body h3{font-size:20px;color:var(--ink);margin:28px 0 10px}
.bt-root .art-body ul,.bt-root .art-body ol{margin:0 0 18px;padding-left:0;list-style:none}
.bt-root .art-body ul li,.bt-root .art-body ol li{position:relative;padding-left:30px;margin-bottom:9px}
.bt-root .art-body ul li::before{content:"";position:absolute;left:6px;top:11px;width:7px;height:7px;border-radius:2px;background:var(--red)}
.bt-root .art-body ol{counter-reset:artol}
.bt-root .art-body ol li::before{counter-increment:artol;content:counter(artol);position:absolute;left:0;top:0;
  width:22px;height:22px;border-radius:6px;background:var(--red-050);color:var(--red);font:700 12px 'Onest';display:flex;align-items:center;justify-content:center}

/* врезка-совет */
.bt-root .art-callout{display:flex;gap:14px;background:var(--red-050);border:1px solid #F3D3D5;border-radius:14px;padding:18px 20px;margin:24px 0}
.bt-root .art-callout svg{width:22px;height:22px;color:var(--red);flex:0 0 auto;margin-top:1px}
.bt-root .art-callout p{margin:0;font-size:15px;line-height:1.55;color:var(--body)}
.bt-root .art-callout b{color:var(--ink)}

/* изображение в теле */
.bt-root .art-fig,.bt-root .art-body figure{margin:24px 0}
.bt-root .art-fig img,.bt-root .art-body figure img{width:100%;height:auto;border-radius:var(--r-lg);border:1px solid var(--line)}
.bt-root .art-fig figcaption,.bt-root .art-body figure figcaption{margin-top:9px;font-size:13px;color:var(--muted);text-align:center}

/* таблица */
.bt-root .art-table{overflow-x:auto;margin:22px 0;border:1px solid var(--line);border-radius:12px}
.bt-root .art-table table{border-collapse:collapse;width:100%;min-width:460px;font-size:14.5px}
.bt-root .art-table th{background:var(--base);text-align:left;font-family:'Onest';font-weight:700;color:var(--ink);padding:12px 16px;border-bottom:1px solid var(--line)}
.bt-root .art-table td{padding:11px 16px;border-bottom:1px solid var(--line);color:var(--body)}
.bt-root .art-table tr:last-child td{border-bottom:0}
.bt-root .art-table:focus-visible{outline:2px solid var(--red);outline-offset:2px}
/* запасной вариант: WP the_content() может вывести <table> без обёртки .art-table */
.bt-root .art-body>table{border-collapse:collapse;width:100%;font-size:14.5px;margin:22px 0}
.bt-root .art-body>table th{background:var(--base);text-align:left;font-family:'Onest';font-weight:700;color:var(--ink);padding:12px 16px;border-bottom:1px solid var(--line)}
.bt-root .art-body>table td{padding:11px 16px;border-bottom:1px solid var(--line);color:var(--body)}

/* цитата */
.bt-root .art-quote,.bt-root .art-body blockquote{margin:24px 0;padding:6px 0 6px 22px;border-left:4px solid var(--red);
  font-family:'Onest';font-weight:700;font-size:20px;line-height:1.4;color:var(--ink)}

/* подвал статьи: теги + поделиться */
.bt-root .art-foot{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  margin:32px 0 0;padding:22px 0 0;border-top:1px solid var(--line)}
.bt-root .art-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:var(--muted)}
.bt-root .art-tags a{background:var(--base);border:1px solid var(--line);border-radius:7px;padding:5px 11px;font-size:12.5px;color:#33465C}
.bt-root .art-tags a:hover{border-color:var(--red);color:var(--red)}
.bt-root .art-share{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--muted)}
.bt-root .art-share__b{width:38px;height:38px;border-radius:10px;border:1.5px solid var(--line);color:var(--ink);background:transparent;cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center}
.bt-root .art-share__b:hover{border-color:var(--red);color:var(--red)}
.bt-root .art-share__b svg{width:19px;height:19px}

/* адаптив */
@media(max-width:900px){
  .bt-root .art-wrap{grid-template-columns:minmax(0,1fr);gap:0}
  .bt-root .art-toc{position:static;margin-bottom:22px}
  .bt-root .art-hero h1{font-size:30px}
}
@media(max-width:560px){
  .bt-root .art-hero h1{font-size:25px}
  .bt-root .art-lead{font-size:16px}
  .bt-root .art-body{font-size:16px}
  .bt-root .art-foot{flex-direction:column;align-items:flex-start}
}
