/* ============================================================
   Блог Slidy: блоки статьи, которых не было в вёрстке клиента.
   Сборник текстов, бланк для скачивания, норма закона и пример расчёта, факты о материале, автор и эксперт.
   Цвета, радиусы и кегли — те же переменные и значения, что в css/blog-article.css: блоки стоят рядом с родными.
   ============================================================ */
.sb-stack { display: flex; flex-direction: column; gap: 20px; }
.sb-label { font-weight: 600; font-size: 12px; line-height: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--border2); }
.sb-label--accent { color: var(--accent-color); }
.sb-btn2 { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 12px 18px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--main-container6); color: var(--text-color); font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap; transition: .3s; }
.sb-btn2:hover { background: var(--bg-color-hov); }
.sb-btn2 .icon { background-color: var(--text-color); font-size: 18px; }

/* ---------- 1. сборник текстов ---------- */
.sb-texts-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-texts-nav a { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--main-container6);
  font-weight: 500; font-size: 14px; line-height: 18px; color: var(--text-color); transition: .3s; }
.sb-texts-nav a:hover { border-color: var(--border3); color: var(--accent-color); }
.sb-texts-nav a small { color: var(--border2); margin-left: 4px; font-size: 12px; }
.sb-texts-group { display: flex; flex-direction: column; gap: 12px; }
.sb-texts-group h3 { display: flex; align-items: baseline; gap: 10px; }
.sb-texts-group h3 small { font-weight: 500; font-size: 14px; color: var(--border2); }
.sb-texts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sb-text { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 16px 16px 12px 20px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--main-container6); transition: .3s; }
.sb-text:hover { border-color: var(--border3); }
.sb-text p { font-size: 16px; line-height: 24px; color: var(--text-color); }
.sb-text-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb-text-foot span { font-size: 12px; line-height: 14px; color: var(--border2); }
.sb-copy { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 5px; border: 0; cursor: pointer;
  background: var(--bg-box-color); color: var(--slider-thumb); font: 500 14px/18px inherit; font-family: inherit; transition: .3s; }
.sb-copy .icon { background-color: var(--slider-thumb); font-size: 16px; }
.sb-copy span { color: var(--slider-thumb); }
.sb-copy:hover { opacity: .85; }
.sb-gen { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 20px; border-radius: 10px;
  border-left: 4px solid var(--slider-fill); background: var(--main-container7); }
.sb-gen h4 { font-size: 18px; line-height: 24px; color: var(--text-color); }
.sb-gen p { font-size: 14px; line-height: 18px; margin-top: 4px; color: var(--text-color); }
.sb-gen-fields { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sb-gen-fields span { flex: 1 1 160px; height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg-color); font-size: 14px; color: var(--border2); }

/* ---------- 2. бланк для скачивания ---------- */
.sb-file { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--main-container6); }
.sb-doc { position: relative; aspect-ratio: 148 / 196; border-radius: 8px; background: var(--sb-paper); border: 1px solid var(--border); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 7px; box-shadow: 0 8px 20px rgba(20, 30, 60, .08); }
.sb-doc i { display: block; height: 5px; border-radius: 3px; background: var(--sb-paper-ink); opacity: .16; }
.sb-doc i.h { width: 56%; height: 7px; opacity: .55; margin: 0 auto 6px; }
.sb-doc i.r { width: 46%; margin-left: auto; }
.sb-doc i.s { width: 64%; }
.sb-doc i.f { width: 38%; margin-top: auto; opacity: .4; }
.sb-doc b { position: absolute; right: -8px; bottom: 14px; padding: 4px 8px; border-radius: 4px; background: var(--accent-color); color: var(--text-color2);
  font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .04em; }
.sb-doc--xlsx b { background: var(--sb-xlsx); color: var(--sb-paper); }
.sb-file-info { display: flex; flex-direction: column; gap: 10px; }
.sb-file-info h4 { font-size: 20px; line-height: 26px; color: var(--text-color); }
.sb-file-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; line-height: 18px; color: var(--text-color5); }
.sb-file-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sb-file-meta .ok { color: var(--sb-ok); }
[data-theme="dark"] .sb-file-meta .ok { color: var(--sb-ok-dark); }
.sb-file-meta .ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sb-file-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sb-file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sb-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-color); }
.sb-file-row span { font-weight: 500; font-size: 16px; line-height: 20px; color: var(--text-color); }
.sb-file-row small { display: block; font-size: 12px; line-height: 14px; color: var(--border2); margin-top: 2px; font-weight: 400; }
.sb-file--side { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
.sb-file--side .sb-doc { padding: 9px 8px; gap: 4px; border-radius: 5px; }
.sb-file--side .sb-doc i { height: 3px; }
.sb-file--side .sb-doc b { font-size: 9px; padding: 2px 5px; right: -6px; bottom: 6px; }
.sb-file--side h4 { font-size: 16px; line-height: 20px; }
.sb-file--side .btn-start { height: 40px; font-size: 14px; padding: 8px 14px; }

/* ---------- 3. норма закона, формула, пример расчёта ---------- */
.sb-law { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--main-container6); }
.sb-law-badge { align-self: start; padding: 10px 14px; border-radius: 8px; background: var(--bg-box-color); color: var(--slider-thumb);
  font-weight: 600; font-size: 16px; line-height: 20px; white-space: nowrap; text-align: center; }
.sb-law-badge small { display: block; font-weight: 500; font-size: 12px; line-height: 14px; opacity: .7; margin-top: 2px; }
.sb-law p { font-size: 16px; line-height: 24px; color: var(--text-color); }
.sb-law-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; line-height: 18px; color: var(--text-color5); }
.sb-law-foot a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.sb-formula { padding: 20px; border-radius: 10px; border: 1px dashed var(--border3); background: var(--main-container7); }
.sb-formula-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 600; font-size: 18px; line-height: 24px; color: var(--text-color); }
.sb-formula-line span { padding: 6px 12px; border-radius: 6px; background: var(--bg-color); border: 1px solid var(--border); }
.sb-formula-line em { font-style: normal; color: var(--accent-color); }
.sb-formula ul { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sb-formula li { font-size: 14px; line-height: 20px; color: var(--text-color6); }
.sb-formula li b { color: var(--text-color); font-weight: 600; }
.sb-calc { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--bg-color); }
.sb-calc-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--main-container6);
  font-weight: 500; font-size: 12px; line-height: 14px; color: var(--text-color); text-transform: uppercase; }
.sb-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.sb-calc-row span { font-size: 16px; line-height: 22px; color: var(--text-color6); }
.sb-calc-row span small { display: block; font-size: 12px; line-height: 16px; color: var(--border2); }
.sb-calc-row b { font-weight: 600; font-size: 16px; line-height: 22px; color: var(--text-color); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-calc-row--total { background: var(--main-container7); }
.sb-calc-row--total span { color: var(--text-color); font-weight: 600; }
.sb-calc-row--total b { font-size: 22px; line-height: 28px; color: var(--accent-color); }
.sb-calc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.sb-calc-foot p { font-size: 14px; line-height: 18px; color: var(--text-color5); max-width: 420px; }

/* ---------- шапка статьи в тесте: фоновая волна ленты ---------- */
/* Шапка статьи (решение владельца 30.09.2026): волна целиком, как на главной — гребень загибается и уходит на нет; снизу воздух короче */
.sb-article-hero { position: relative; z-index: 2; margin-top: 0; padding-top: 112px; padding-bottom: 80px; overflow: hidden; }
.sb-article-hero .sb-hero-bg { top: 0; height: 100%; }
.sb-article-hero .sb-hero-bg img { height: 100%; object-fit: fill; object-position: center; }
@media (max-width: 900px) { .sb-article-hero { padding-top: 84px; padding-bottom: 40px; } /* воздух над крошками на телефоне на треть меньше */ .sb-article-hero .sb-hero-bg { top: 96px; height: calc(100% - 96px); } .sb-article-hero .sb-hero-bg img { object-fit: cover; object-position: center bottom; } }
.sb-article-hero .author-article { background: var(--bg-color); }

/* ---------- 4. факты о материале вместо счётчиков, автор и эксперт ---------- */
.article-density-info .sb-facts { margin: 28px 0 32px; }
.sb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sb-fact { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--main-container6); }
.sb-fact strong { display: block; font-weight: 600; font-size: 18px; line-height: 24px; color: var(--text-color); }
.sb-fact p { margin-top: 4px; font-size: 14px; line-height: 18px; color: var(--text-color5); }
.sb-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sb-person { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--main-container6); }
.sb-person-row { display: flex; align-items: center; gap: 12px; }
.sb-person-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sb-person-row h4 { font-size: 16px; line-height: 20px; color: var(--text-color); }
.sb-person-row h4 span { color: var(--accent-color); }
.sb-person-row p { font-size: 14px; line-height: 18px; color: var(--text-color5); margin-top: 2px; }
.sb-person--expert { border-color: var(--border3); background: var(--main-container7); }
.sb-person-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 18px; color: var(--text-color); }
.sb-person-check .icon { background-color: var(--accent-color); font-size: 16px; }

/* ---------- таблица сравнения ---------- */
.sb-compare { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; background: var(--bg-color); }
.sb-compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-top: 1px solid var(--border); }
.sb-compare-row:first-child { border-top: 0; background: var(--main-container6); font-weight: 600; }
.sb-compare-row > * { padding: 12px 16px; font-size: 14px; line-height: 20px; color: var(--text-color); }
.sb-compare-row > *:first-child { color: var(--text-color6); }
.sb-compare-row > * + * { border-left: 1px solid var(--border); }

/* ---------- призыв внутри текста: проблема, решение, действие ---------- */
.sb-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 20px; border-radius: 10px;
  border-left: 4px solid var(--slider-fill); background: var(--main-container7); }
.sb-cta h4 { font-size: 18px; line-height: 24px; color: var(--text-color); }
.sb-cta p { font-size: 14px; line-height: 20px; margin-top: 4px; color: var(--text-color); }
.sb-cta code { display: block; margin-top: 8px; font: 12px/16px ui-monospace, Consolas, monospace; color: var(--text-color5); word-break: break-all; }
html:not([data-why="on"]) .sb-cta code { display: none; }

/* ---------- слой пояснений (тестовая версия) ---------- */
.sb-why, .sb-why-wrap { display: none; }
html[data-why="on"] .sb-why-wrap { display: block; margin-top: 24px; margin-bottom: 24px; }
/* первая заметка на странице стоит под шапкой сайта, а не под ней */
html[data-why="on"] .sb-why-wrap:first-child { margin-top: 110px; }
@media (max-width: 900px) { html[data-why="on"] .sb-why-wrap:first-child { margin-top: 84px; } }
html[data-why="on"] .sb-why { display: block; }
.sb-why { padding: 12px 16px; border-radius: 8px; border: 1px dashed var(--sb-why-line); background: var(--sb-why-bg); }
.sb-why b { display: block; font-weight: 600; font-size: 12px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--sb-why-title); margin-bottom: 4px; }
.sb-why p, .sb-why { font-size: 14px; line-height: 20px; color: var(--sb-why-text); }
.sb-why a { color: inherit; text-decoration: underline; }
.sb-why--problem { border-color: var(--sb-bad-line); background: var(--sb-bad-bg); }
.sb-why--problem b, .sb-why--problem p { color: var(--sb-bad-text); }
[data-theme="dark"] .sb-why { background: var(--sb-why-bg-dark); border-color: var(--sb-why-line-dark); }
[data-theme="dark"] .sb-why b, [data-theme="dark"] .sb-why p, [data-theme="dark"] .sb-why { color: var(--sb-why-text-dark); }
[data-theme="dark"] .sb-why--problem { background: var(--sb-bad-bg-dark); border-color: var(--sb-bad-line-dark); }
[data-theme="dark"] .sb-why--problem b, [data-theme="dark"] .sb-why--problem p { color: var(--sb-bad-text-dark); }

/* ---------- шапка и первый экран статьи ---------- */
.sb-article-hero .article-page-btn { margin-top: 28px; } /* отступ от лида, раньше его давали факты */
.sb-article-hero .article-page-btn .areas-btn { max-width: none; width: auto; height: auto; min-height: 48px; white-space: normal; text-align: center; padding: 12px 22px; }
.sb-facts { align-items: stretch; }
.sb-fact strong { font-size: 16px; line-height: 22px; }
.sentences-info h4 { font-weight: 500; font-size: 18px; line-height: 28px; }
.sentences-name { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.sentences-name > p { text-align: left; font-size: 15px; line-height: 22px; color: var(--text-color); }
.sentences-level .sb-toc { margin-top: 0; padding-top: 0; border-top: 0; }
.sb-toc ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.sb-toc li { font-size: 15px; line-height: 21px; color: var(--text-color5); }
.sb-toc li a { display: inline; color: var(--text-color); }
.sb-toc li a:hover { color: var(--accent-color); }
.sentences-photo img { width: 100%; height: auto; border-radius: 16px; }

/* ---------- статьи из текстов редакции ---------- */
/* пометки редакции («уточняется: эксперт …») на странице не показываются: список — в вопросах клиенту */
.sb-todo { display: none; }
[data-theme="dark"] .sb-todo { background: var(--sb-why-bg-dark); color: var(--sb-why-text-dark); }
.sb-shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--main-container6); }
.sb-shot img { display: block; width: 100%; height: auto; }
.sb-compare--wide .sb-compare-row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.sb-table-cap { font-weight: 600; font-size: 14px; line-height: 20px; color: var(--text-color); margin-bottom: -8px; }
.sb-table-note { font-size: 13px; line-height: 18px; color: var(--text-color5); }
.sb-list { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
ul.sb-list { list-style: disc; } ol.sb-list { list-style: decimal; }
.sb-list li { font-size: 16px; line-height: 24px; color: var(--text-color); }
.sb-memo { padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sb-memo li { font-size: 15px; line-height: 22px; color: var(--text-color); }
.sb-checklist { padding: 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--main-container6); }
.sb-checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 12px; }
.sb-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--text-color); }
.sb-checklist li .icon { flex: 0 0 18px; margin-top: 2px; background-color: var(--accent-color); font-size: 18px; }
.sb-before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sb-before-after > div { padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--main-container6); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sb-before-after p { font-size: 15px; line-height: 22px; color: var(--text-color); }
.sb-sample-doc { display: flex; flex-direction: column; gap: 8px; }
.sb-sample-paper { max-width: 640px; padding: 32px 36px; border-radius: 8px; background: var(--sb-paper); color: var(--sb-paper-ink); border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(20, 30, 60, .08); font-family: "Times New Roman", Georgia, serif; }
.sb-sample-paper p { color: var(--sb-paper-ink); font-size: 16px; line-height: 24px; }
.sb-sp-head { margin-left: 45%; }
.sb-sp-title { text-align: center; margin: 22px 0 12px; font-weight: 600; letter-spacing: .04em; }
.sb-sp-body { text-indent: 2em; }
.sb-sp-sign { margin-top: 24px; display: flex; justify-content: space-between; }
.sb-sample-text { padding: 22px 24px; border-radius: 12px; border: 1px solid var(--border); background: var(--main-container6); display: flex; flex-direction: column; gap: 12px; }
.sb-sample-text-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sb-sample-text-head h4 { font-size: 18px; line-height: 24px; color: var(--text-color); }
.sb-sample-text p { font-size: 16px; line-height: 25px; color: var(--text-color); }
.sb-chip { display: inline-block; padding: 2px 8px; margin-right: 4px; border-radius: 100px; background: var(--primary-cont); color: var(--accent-color); font-size: 12px; line-height: 16px; font-weight: 600; vertical-align: 2px; }
.sb-law ul { padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.sb-law li { font-size: 15px; line-height: 22px; color: var(--text-color); }
.sb-law p + p { margin-top: 8px; }

/* ---------- витрина блоков ---------- */
.sb-show { display: flex; flex-direction: column; gap: 28px; }
.sb-show-note { font-size: 14px; line-height: 20px; color: var(--text-color5); max-width: 760px; }
.sb-show-tag { align-self: flex-start; padding: 6px 12px; border-radius: 100px; background: var(--primary-cont); color: var(--accent-color);
  font-weight: 600; font-size: 12px; line-height: 14px; }
.sb-show-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sb-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sb-covers figure { margin: 0; }
.sb-covers img { width: 100%; height: auto; border-radius: 10px; display: block; }
.sb-covers figcaption { margin-top: 6px; font-size: 14px; line-height: 18px; color: var(--text-color6); }
.sb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-cards .starting-out-boxes { width: 100%; }

@media (max-width: 900px) {
  .sb-texts-grid, .sb-people, .sb-facts { grid-template-columns: minmax(0, 1fr); }
  .sb-gen, .sb-cta { grid-template-columns: minmax(0, 1fr); }
  .sb-compare-row, .sb-compare--wide .sb-compare-row { grid-template-columns: minmax(0, 1fr); }
  .sb-before-after, .sb-checklist ul { grid-template-columns: minmax(0, 1fr); }
  .sb-sample-paper { padding: 20px; }
  .sb-sp-head { margin-left: 0; }
  .sb-compare-row > * + * { border-left: 0; border-top: 1px dashed var(--border); }
  .sb-show-two { grid-template-columns: minmax(0, 1fr); }
  .sb-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sb-file { grid-template-columns: minmax(0, 1fr); }
  .sb-file > .sb-doc { width: 120px; }
  .sb-file--side { grid-template-columns: 64px minmax(0, 1fr); }
  .sb-file--side > .sb-doc { width: auto; }
  .sb-law { grid-template-columns: minmax(0, 1fr); }
  .sb-law-badge { justify-self: start; }
  .sb-texts-nav { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .sb-texts-nav a { white-space: nowrap; }
  .sb-file-btns .btn-start, .sb-file-btns .sb-btn2, .sb-calc-foot .btn-start { width: 100%; justify-content: center; }
  .sb-formula-line { font-size: 16px; }
}

/* ---------- статья после согласования 30.09.2026: колонка текста 720 px, интервалы 1.6, скриншоты в рамке, таблицы карточками на телефоне ---------- */

/* 1. Большая обложка под шапкой не показывается: она повторяет заголовок статьи.
      Обложка остаётся в карточках ленты и в соцсетях (og:image). */
.sentences-main { display: none; }
.sentences-main + .sentences-cnt { margin-top: 0; }
section:has(> .container > .sentences-main) { padding-top: 32px; }
section:has(> .container > .sentences-main) { padding-bottom: 40px; }
/* Низ статьи: между текстом, «Вопросы и ответы», «Что почитать дальше» и подвалом — шаг 40 px вместо 80 (вдвое; решение владельца 30.09) */
main:has(.sb-article-hero) .context-back { padding-bottom: 40px; }
main:has(.sb-article-hero) > .contract-padd { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 900px) { main:has(.sb-article-hero) .context-back { padding-bottom: 28px; } main:has(.sb-article-hero) > .contract-padd { padding-top: 28px; padding-bottom: 28px; } } /* до текста статьи вдвое меньше воздуха (80 → 40; решение владельца 30.09) */
@media (max-width: 900px) { section:has(> .container > .sentences-main) { padding-bottom: 28px; } }

/* 2. Колонка текста 720 px (около 70 знаков в строке) по центру карточки раздела.
      Таблицы и «было / стало» — во всю ширину карточки, скриншоты — до 640 px, в рамке с подписью. */
.post-content .first-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(720px, 100%) minmax(0, 1fr);
  row-gap: 24px;
  column-gap: 0; /* зазор сетки из вёрстки (.first-section gap) сдвигал колонку текста вправо */
}
.post-content .first-section > * { grid-column: 2; min-width: 0; }
.post-content .first-section > .sb-compare--wide,
.post-content .first-section > .sb-table-cap,
.post-content .first-section > .sb-table-note,
.post-content .first-section > .sb-before-after { grid-column: 1 / -1; }
.post-content .first-section > .sb-table-cap + .sb-compare--wide { margin-top: -12px; }
.post-content .first-section > figure.sb-shot { grid-column: 1 / -1; justify-self: center; width: min(794px, 100%); } /* 760 px картинки + рамка 17 px с каждой стороны */ /* 760 px по центру, шире колонки текста: текст интерфейса читается; копия 760 px отдаётся 1:1 */

/* Скриншот как иллюстрация: подложка и рамка вокруг картинки. Без увеличения и без подписи: alt остаётся у картинки */
.post-content .sb-shot { padding: 16px; border-radius: 14px; background: var(--main-container6); border: 1px solid var(--border); }
.post-content .sb-shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-color); box-shadow: 0 8px 24px var(--sb-shadow); }

/* 3. Межстрочный интервал и размеры: основной текст 18 / 1.6, списки как текст, мелкий текст не меньше 15 px */
.post-content h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.post-content .elaborates-part { gap: 16px; }
.post-content .elaborates-part h3 { font-size: 21px; line-height: 28px; margin-top: 12px; }
.post-content .elaborates-part p,
.post-content .elaborates-part li { font-size: 18px; line-height: 29px; color: var(--text-color); }
.post-content .elaborates-part ul,
.post-content .elaborates-part ol { gap: 8px; }

/* «Совет»: текст крупнее, с заглавной буквы */
.post-content .first-renewal { padding: 18px 22px; }
.post-content .first-renewal span { font-size: 16px; line-height: 22px; }
.post-content .first-renewal p { font-size: 16px; line-height: 25px; margin-top: 6px; }
.post-content .first-renewal p::first-letter { text-transform: uppercase; }

/* Кнопки-вставки, закон, промпт, памятка, чек-лист, таблицы */
.post-content .sb-cta h4 { line-height: 26px; }
.post-content .sb-cta p { font-size: 15px; line-height: 23px; }
.post-content .sb-law p { font-size: 16px; line-height: 26px; }
/* «Что говорит закон»: плашка со статьями над текстом, текст на всю ширину колонки */
.post-content .sb-law { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.post-content .sb-law-badge { justify-self: start; }
.post-content .ready-prompt-info > p { font-size: 16px; line-height: 27px; }
.post-content .box-reminder li,
.post-content .sb-checklist li { font-size: 16px; line-height: 25px; }
.post-content .sb-compare-row > * { font-size: 15px; line-height: 23px; }
.post-content .sb-sample-text p { font-size: 16px; line-height: 26px; }

/* Подписи капсом — с разрядкой */
.post-content .middle-title,
.post-content .primary-name,
.post-content .small-title,
.post-content .sb-label,
.sentences-cnt .middle-title { letter-spacing: 0.06em; }

.post-content .sb-compare-row > [data-label]::before { display: none; }

[data-theme="dark"] .post-content .sb-shot img { box-shadow: 0 8px 24px var(--sb-shadow-dark); }

@media (max-width: 900px) {
  /* Таблица на телефоне: каждая строка — карточка, первая ячейка — её заголовок, над остальными — название столбца */
  .post-content .sb-compare { border: 0; background: none; border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
  .post-content .sb-compare-row:first-child { display: none; }
  .post-content .sb-compare-row { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-color); padding: 4px 0; }
  .post-content .sb-compare-row > * { padding: 10px 16px; }
  .post-content .sb-compare-row > *:first-child { font-weight: 600; font-size: 16px; line-height: 22px; color: var(--text-color); }
  .post-content .sb-compare-row > * + * { border-top: 1px dashed var(--border); }
  .post-content .sb-compare-row > [data-label]:not(:first-child)::before { display: block; content: attr(data-label); font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-color5); margin-bottom: 4px; }
  .post-content .sb-table-cap { font-size: 15px; line-height: 21px; }
  .post-content .sb-shot { padding: 10px; }
  /* шапка на телефоне: лид как в вёрстке клиента, 16 px */
  .sb-article-hero .hero-titles p { font-size: 16px; line-height: 24px; }
  .post-content h2 { font-size: 24px; line-height: 31px; }
  .post-content .elaborates-part h3 { font-size: 19px; line-height: 26px; }
  .post-content .elaborates-part p,
  .post-content .elaborates-part li { font-size: 17px; line-height: 27px; }
}

/* Карточка ленты: плашка формата («+ бланк») стоит в строке с названием раздела, а не поверх обложки */
.sb-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sb-kicker-row .primary-name { margin: 0; }
.sb-badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 100px; background: var(--main-container6); color: var(--text-color); font-weight: 600; font-size: 12px; line-height: 16px; white-space: nowrap; }
/* Главное в разделе: плашки формата светлые, в строке с названием раздела, как в карточках ленты */
.sb-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.current-point-title .sb-kicker-row { margin-bottom: 6px; }
@media (max-width: 900px) { .current-point-title .sb-kicker-row { flex-wrap: wrap; } .current-point-title .sb-kicker-row .primary-name { flex: 1 1 100%; } .current-point-title .sb-badges { justify-content: flex-start; } } /* на телефоне плашки строкой под названием раздела, а не столбиком справа */

/* Тёмная рамка перед «Превратите идею»: край — один большой плавный эллипс на всю ширину, как в подвале slidy.ai
   (их section-ellipse: эллипс 2830×500, видимая глубина clamp(24px, 5vw, 100px)); картинка-эллипс вёрстки не используется */
.explore-inpired.sb-frame { padding: 0; min-height: 160px; margin-top: calc(clamp(24px, 5vw, 100px) + 40px); background: var(--sb-ink); overflow: visible; } /* над рамкой запас: высота дуги + 40 px воздуха, чтобы дуга ни во что не упиралась (30.09) */
.explore-inpired.sb-frame .loss-quality-elips { display: none; }
.explore-inpired.sb-frame::before { content: ""; position: absolute; left: 50%; top: calc(-1 * clamp(24px, 5vw, 100px)); width: 2830px; height: 500px; margin-left: -1415px; border-radius: 50%; background: var(--sb-ink);
  clip-path: inset(0 0 calc(100% - clamp(24px, 5vw, 100px)) 0); pointer-events: none; }
.explore-inpired.sb-frame + .linking-card-main { padding-top: 80px; }
@media (max-width: 900px) { .explore-inpired.sb-frame { min-height: 90px; } .explore-inpired.sb-frame + .linking-card-main { padding-top: 50px; }
  .explore-inpired.sb-frame::before { width: 900px; height: 160px; margin-left: -450px; } }

/* Карточка автора без проверяющего (30.09.2026): ниже и плотнее — автор, под ним дата · чтение · язык одной строкой */
.author-article.sb-card-compact { gap: 14px; padding: 16px 18px; align-self: flex-start; }
.author-article.sb-card-compact .blog-leads-info { padding-bottom: 14px; }
.author-article.sb-card-compact .published-flex { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px 12px; }
.author-article.sb-card-compact .published-sm span { white-space: nowrap; }
/* два факта вместо трёх — на всю ширину колонки */
.sb-facts:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.author-article.sb-card-compact .published-name { gap: 4px; }
@media (max-width: 900px) {
  .author-article.sb-card-compact { padding: 14px 16px; gap: 12px; }
  .author-article.sb-card-compact .blog-leads-info { padding-bottom: 12px; }
  .author-article.sb-card-compact .published-flex { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
  .author-article.sb-card-compact .published-name { flex-direction: row; align-items: baseline; gap: 6px; }
  .author-article.sb-card-compact .published-name .small-title { font-size: 11px; }
}

/* Первый экран блога: фото авторов вместо картинки-заглушки вёрстки */
.blog-update-us .sb-avatars { display: inline-flex; }
.blog-update-us .sb-avatars img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-color); margin-left: -8px; }
.blog-update-us .sb-avatars img:first-child { margin-left: 0; }

/* Факты «обновлено» и «что внутри» — в карточке автора под датой и временем чтения */
.author-article .sb-facts-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; padding-top: 0; border-top: 0; } /* одна линия — от строки дат; своей у фактов нет */
.author-article .sb-facts-card .sb-fact { padding: 10px 14px; }
.author-article .sb-facts-card .sb-fact strong { font-size: 15px; line-height: 20px; }
.author-article .sb-facts-card .sb-fact p { font-size: 12px; line-height: 16px; margin-top: 2px; }
/* Страница автора: биография абзацами */
.author-page .this-material-text p + p { margin-top: 10px; }

/* Лента и разделы: воздух между блоками на треть меньше, чем в вёрстке (80 → 56 px; решение владельца 30.09.2026) */
.sb-listing > .current-sec, .sb-listing > .articles-thi, .sb-listing > .contract-padd { padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 900px) { .sb-listing > .current-sec, .sb-listing > .articles-thi, .sb-listing > .contract-padd { padding-top: 36px; padding-bottom: 36px; } }

/* Колонка фильтров: список разделов первым блоком; воздух между заголовком группы и пунктами больше (30.09.2026).
   Заголовок группы в вёрстке обтекаемый (float), поэтому отступ у списка под ним не работал — заголовок делаем обычным блоком */
.sb-listing .c-filter-title { float: none; display: block; margin-bottom: 12px; }
.sb-listing .catalog-check-col { margin-top: 0; gap: 4px; }
/* Разделы блога — кнопки между заголовком «Все статьи» и поиском (навигация, не фильтр; 30.09.2026) */
.sb-cat-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 24px; }
.sb-cat-bar a { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--main-container6); color: var(--text-color); font-size: 14px; line-height: 18px; white-space: nowrap; }
.sb-cat-bar a:hover { border-color: var(--border3); color: var(--accent-color); }
.sb-cat-bar a.active { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }

/* Кнопка «Фильтры» — только на телефоне; на компьютере колонка фильтров как есть */
.sb-filters-toggle { display: none; }
@media (max-width: 900px) {
  .sb-cat-bar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: -4px -14px 16px; padding: 2px 14px; }
  .sb-cat-bar::-webkit-scrollbar { display: none; }
  .sb-cat-bar a { flex: 0 0 auto; }
  .sb-filters-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-color); color: var(--text-color); font: 600 15px/20px inherit; cursor: pointer; margin-bottom: 12px; }
  .sb-filters-toggle .icon { width: 12px; height: 12px; background: var(--text-color); transition: transform .2s; }
  .sb-filters-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sb-listing .articles-thi .catalog-filters-wrapper { display: none; height: auto; }
  .sb-listing .articles-thi .catalog-filters-wrapper.sb-filters-open { display: block; }
  .sb-listing .articles-thi .catalog-filters-items { max-height: none; overflow: visible; padding-right: 0; }
  .sb-listing .articles-thi .c-filter-item + .catalog-filters-line + .c-filter-item { margin-top: 20px; } /* линии между группами на телефоне скрыты вёрсткой — даём воздух */
}

/* Кнопка копирования промпта: тёмная, со значком и словом «Скопировать» — один значок читался не всеми (решение владельца 01.10.2026) */
.sb-copy--prompt { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ready-used { gap: 12px; }
@media (max-width: 900px) { .ready-used { flex-direction: column; align-items: stretch; } .sb-copy--prompt { justify-content: center; width: 100%; } }
