/**
 * Статьи блога: единый вид для всех шаблонов текста (.b26-*, .opx-*, блоки WordPress)
 * и раскладка страницы статьи (крошки, мета, поля на телефоне).
 * Текст статей в базе не меняется: только оформление поверх main.css и Astra.
 * Цвета и радиусы берём из переменных --b26-* (main.css). !important только там,
 * где перебиваем !important из main.css или inline-стили внутри текста статей.
 * Подключается только на записях (functions.php).
 */

/* ── Основа: фирменный шрифт, заголовки без висячих строк ── */
.single-post .entry-content,
.single-post .entry-content .opx-article {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.single-post .entry-content :is(h1, h2, h3, h4, .b26-cta-title, .b26-card-title, .opx-card-title) {
	text-wrap: balance;
}

/* ── Шапка статьи: тихие крошки и мета, H1 из текста без лишнего отступа сверху ── */
.single-post .ast-breadcrumbs-wrapper {
	font-size: 13.5px;
	line-height: 1.5;
	color: #94a3b8;
}
.single-post .ast-breadcrumbs-wrapper a {
	color: #64748b;
	text-decoration: none;
	transition: color .15s ease;
}
.single-post .ast-breadcrumbs-wrapper a:hover { color: var(--b26-accent-dark); }
.single-post .ast-breadcrumbs-wrapper strong { font-weight: 500; color: #94a3b8; }
.single-post .ast-article-single .entry-meta,
.single-post .ast-article-single .entry-meta * {
	font-size: 13px;
	color: #94a3b8;
}
.single-post .entry-content .b26-h1 { margin-top: 12px; }

/* ── Ссылки в тексте: фирменный синий и аккуратное подчёркивание ── */
.single-post .entry-content :is(p, li, td, .b26-faq-body, .faq-a) a:not([class*="btn"]) {
	color: var(--b26-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(29, 78, 216, .35);
	text-underline-offset: 3px;
	transition: color .15s ease, text-decoration-color .15s ease;
}
.single-post .entry-content :is(p, li, td, .b26-faq-body, .faq-a) a:not([class*="btn"]):hover {
	color: #1e40af;
	text-decoration-color: currentColor;
}

/* Ссылки на тёмных блоках («Итог», CTA): светло-голубые, стандартный синий там не читается. */
.single-post .entry-content :is(.b26-cta-box, .opx-cta, .opx-premium-banner) a:not([class*="btn"]) {
	color: #93c5fd;
	font-weight: 600;
	text-decoration-color: rgba(147, 197, 253, .5);
}
.single-post .entry-content :is(.b26-cta-box, .opx-cta, .opx-premium-banner) a:not([class*="btn"]):hover {
	color: #fff;
	text-decoration-color: currentColor;
}

/* ── Оглавление: .b26-toc и .opx-nav одним видом, без подчёркиваний ── */
.single-post .entry-content :is(.b26-toc, .opx-nav) {
	margin: 28px 0 40px;
	padding: 20px 24px 12px;
	border: 1px solid var(--b26-border);
	border-radius: var(--b26-radius);
	background: var(--b26-bg-light);
	box-shadow: none;
}
.single-post .entry-content :is(.b26-toc-title, .opx-nav-title) {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--b26-text-muted);
}
.single-post .entry-content :is(.b26-toc, .opx-nav) ul {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2 250px;
	column-gap: 36px;
}
.single-post .entry-content :is(.b26-toc, .opx-nav) li {
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 0 18px;
	break-inside: avoid;
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--b26-text);
}
.single-post .entry-content :is(.b26-toc, .opx-nav) li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--b26-accent);
}
.single-post .entry-content :is(.b26-toc, .opx-nav) li a:not([class*="btn"]) {
	color: var(--b26-accent-dark);
	font-size: inherit;
	font-weight: 600;
	text-decoration: none;
}
.single-post .entry-content :is(.b26-toc, .opx-nav) li a:not([class*="btn"]):hover {
	color: #1e40af;
	text-decoration: underline;
	text-decoration-color: rgba(30, 64, 175, .4);
	text-underline-offset: 3px;
}

/* ── Заголовки разделов H2: полоска слева на всю высоту, у двухстрочных не висит между строк ── */
.single-post .entry-content .b26-h2 {
	display: block;
	position: relative;
	padding-left: 20px;
}
.single-post .entry-content .opx-article > h2 {
	position: relative;
	margin: 56px 0 20px;
	padding-left: 20px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--b26-text);
}
.single-post .entry-content :is(.b26-h2, .opx-article > h2)::before {
	content: "";
	position: absolute;
	left: 0;
	top: .18em;
	bottom: .18em;
	width: 6px;
	height: auto;
	border-radius: 4px;
	background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}

/* ── Переход по оглавлению: цель встаёт ниже липкой шапки сайта (70px), а не под неё ── */
.single-post .entry-content [id] { scroll-margin-top: 88px; }

/* ── Картинки: единая рамка и светлая подложка, пока файл грузится ── */
.single-post .entry-content :is(.b26-img, .opx-review-img, .wp-block-image img) {
	border: 1px solid var(--b26-border);
	border-radius: 14px;
	background-color: #eef2f7;
	box-shadow: 0 6px 22px -12px rgba(15, 23, 42, .22);
}
.single-post .entry-content :is(.b26-cta-box, .opx-cta) :is(.b26-img, .opx-review-img) {
	border-color: rgba(255, 255, 255, .16);
	background-color: rgba(255, 255, 255, .06);
}

/* ── Таблицы: одна рамка у обёртки, чистый фон без теней по краям.
   Листаются вбок пальцем или колесом, полосу прокрутки не показываем: серый ползунок
   под таблицей и затемнение у края выглядели как брак вёрстки. ── */
.single-post .entry-content :is(.b26-table-container, .table-container) {
	margin: 24px 0 32px;
	border: 1px solid var(--b26-border);
	border-radius: 14px;
	box-shadow: none;
	background: #fff;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.single-post .entry-content :is(.b26-table-container, .table-container)::-webkit-scrollbar {
	width: 0;
	height: 0;
}

/* Ячейки не сжимаем: таблица растёт по содержимому, а если не помещается, её листают.
   Значения вроде «Минимальный (Гарантия 100%)» должны стоять одной строкой, разорванные
   пополам они выглядят как сломанная вёрстка. */
.single-post .entry-content :is(.b26-table-container, .table-container) table {
	width: max-content;
	min-width: 100%;
}
.single-post .entry-content :is(.b26-table-container, .table-container) :is(.status-easy, .status-medium, .status-hard, .b26-badge-green, .b26-badge-yellow, .b26-badge-red) {
	white-space: nowrap;
}

/* Полосы прокрутки нет, поэтому на компьютере таблицу тянут мышью: курсор становится
   рукой, как на телефоне пальцем. Класс вешает assets/js/table-scroll.js, и только
   когда таблица действительно шире своей колонки. */
.single-post .entry-content :is(.b26-table-container, .table-container).is-grab {
	cursor: grab;
}
.single-post .entry-content :is(.b26-table-container, .table-container).is-grabbing {
	cursor: grabbing;
	-webkit-user-select: none;
	user-select: none;
}
.single-post .entry-content :is(.b26-table-container, .table-container) table {
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}
.single-post .entry-content :is(.b26-table-container, .table-container) :is(th, td) {
	padding: 14px 16px;
	border: 0;
	text-align: left;
	vertical-align: middle;
}
.single-post .entry-content :is(.b26-table-container, .table-container) th {
	border-bottom: 1px solid var(--b26-border);
	background: var(--b26-bg-light);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #475569;
}
.single-post .entry-content :is(.b26-table-container, .table-container) td {
	font-size: 15px;
	line-height: 1.55;
	color: #334155;
}
.single-post .entry-content :is(.b26-table-container, .table-container) tr + tr td {
	border-top: 1px solid #eef2f6;
}

/* Крайние колонки узкой таблицы это название тарифа и цена. На большом экране держим их
   одной строкой: «1 500 ₽ в месяц», разорванное пополам, выглядит как сломанная вёрстка.
   На телефоне запрет переноса снимаем, иначе крайние колонки выдавливают среднюю в столбик
   по слогам. Таблицу сравнения правило не трогает: там в крайних колонках длинный текст. */
@media (min-width: 701px) {
	.single-post .entry-content .b26-table:not(.b26-table-compare):not(:has(tr > :nth-child(4))) :is(th, td):first-child,
	.single-post .entry-content .b26-table:not(.b26-table-compare):not(:has(tr > :nth-child(4))) :is(th, td):last-child {
		white-space: nowrap;
		width: 1%;
	}
}

/* ── Телефон: таблица до трёх столбцов помещается в экран. Минимальная ширина 600px из main.css
   нужна только широким таблицам, их по-прежнему листают вбок. Шапка мельче, поля уже и перенос
   по слогам, чтобы длинные слова не распирали узкую таблицу. ── */
@media (max-width: 768px) {
	.single-post .entry-content .b26-table:not(:has(tr > :nth-child(4))) { min-width: 0; }
	.single-post .entry-content .b26-table:not(:has(tr > :nth-child(4))) :is(th, td) { padding: 12px 10px; -webkit-hyphens: auto; hyphens: auto; }
	.single-post .entry-content .b26-table:not(:has(tr > :nth-child(4))) th { white-space: normal; font-size: 11.5px; letter-spacing: .02em; }
}

/* ── Блоки статей по методичке v2: «Коротко», карточки способов (паспорт, шаги, плюсы и минусы),
   таблица сравнения и источники. Классы только новые: в старых статьях их нет. ── */

/* Коротко: прямой ответ на запрос сразу под шапкой статьи. */
.single-post .entry-content .b26-quick {
	margin: 0 0 32px;
	padding: 20px 24px;
	border: 1px solid #bfdbfe;
	border-radius: var(--b26-radius);
	background: #eff6ff;
}
.single-post .entry-content :is(.b26-quick-title, .b26-way-num, .b26-pc-title, .b26-sources-title) {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--b26-accent-dark);
}
.single-post .entry-content .b26-quick p {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: #1e293b;
}
.single-post .entry-content .b26-quick p + p { margin-top: 8px; }

/* Карточка способа: H2 внутри, id у карточки для оглавления. */
.single-post .entry-content .b26-way {
	margin: 44px 0;
	padding: 26px 30px 28px;
	border: 1px solid var(--b26-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 32px -22px rgba(15, 23, 42, .3);
}
.single-post .entry-content .b26-way-best {
	border-color: #93c5fd;
	box-shadow: 0 0 0 4px #eff6ff, 0 14px 34px -20px rgba(37, 99, 235, .4);
}
.single-post .entry-content .b26-way-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 8px;
}
.single-post .entry-content .b26-way-top .b26-way-num { margin: 0; }
.single-post .entry-content .b26-way-label {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--b26-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
}
.single-post .entry-content .b26-way-title {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--b26-text);
}
.single-post .entry-content .b26-way p { margin: 0 0 14px; }
.single-post .entry-content .b26-way > :last-child { margin-bottom: 0; }

/* Паспорт способа: одна плашка 2x2 с тонкими разделителями, сложность цветной точкой вместо бейджа. */
.single-post .entry-content .b26-way-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0 0 22px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--b26-border);
	border-radius: 14px;
	background: var(--b26-border);
}
.single-post .entry-content .b26-way-facts > div {
	padding: 12px 16px 13px;
	background: var(--b26-bg-light);
}
.single-post .entry-content .b26-way-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.single-post .entry-content .b26-way-facts dt {
	margin: 0 0 4px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--b26-text-muted);
}
.single-post .entry-content .b26-way-facts dd {
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--b26-text);
}
.single-post .entry-content .b26-way-facts :is(.b26-badge-green, .b26-badge-yellow, .b26-badge-red) {
	display: inline;
	padding: 0;
	border-radius: 0;
	background: none;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	white-space: normal;
}
.single-post .entry-content .b26-way-facts :is(.b26-badge-green, .b26-badge-yellow, .b26-badge-red)::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 8px 2px 0;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
}
.single-post .entry-content .b26-way-facts .b26-badge-green { color: #15803d; }
.single-post .entry-content .b26-way-facts .b26-badge-yellow { color: #b45309; }
.single-post .entry-content .b26-way-facts .b26-badge-red { color: #b91c1c; }

/* Шаги: номера в кружках и линия между шагами. */
.single-post .entry-content ol.b26-steps {
	margin: 6px 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: b26-step;
}
.single-post .entry-content ol.b26-steps > li {
	position: relative;
	margin: 0;
	padding: 2px 0 14px 44px;
	counter-increment: b26-step;
	font-size: 17px;
	line-height: 1.55;
}
.single-post .entry-content ol.b26-steps > li:last-child { padding-bottom: 0; }
.single-post .entry-content ol.b26-steps > li::before {
	content: counter(b26-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #dbeafe;
	font-size: 14px;
	font-weight: 700;
	line-height: 30px;
	text-align: center;
	color: var(--b26-accent-dark);
}
.single-post .entry-content ol.b26-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 34px;
	bottom: 4px;
	left: 14px;
	width: 2px;
	border-radius: 2px;
	background: var(--b26-border);
}

/* Плюсы и минусы рядом: зелёная и красная колонки, значки нарисованы CSS. */
.single-post .entry-content .b26-pc {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 0;
}
.single-post .entry-content .b26-pc > div {
	padding: 16px 18px;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	background: #f0fdf4;
}
.single-post .entry-content .b26-pc > .b26-pc-cons {
	border-color: #fecaca;
	background: #fef2f2;
}
.single-post .entry-content .b26-pc-pros .b26-pc-title { color: #166534; }
.single-post .entry-content .b26-pc-cons .b26-pc-title { color: #991b1b; }
.single-post .entry-content .b26-pc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.single-post .entry-content .b26-pc li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 22px;
	font-size: 15.5px;
	line-height: 1.5;
	color: #1e293b;
}
.single-post .entry-content .b26-pc li:last-child { margin-bottom: 0; }
.single-post .entry-content .b26-pc-pros li::before {
	content: "";
	position: absolute;
	top: .28em;
	left: 4px;
	width: 6px;
	height: 11px;
	border: solid #16a34a;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.single-post .entry-content .b26-pc-cons li::before {
	content: "";
	position: absolute;
	top: .72em;
	left: 1px;
	width: 11px;
	height: 2px;
	border-radius: 2px;
	background: #dc2626;
}
.single-post .entry-content .b26-way .b26-way-fit {
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px dashed var(--b26-border);
	font-size: 15.5px;
	line-height: 1.55;
	color: #334155;
}

/* Таблица сравнения: строка рекомендуемого способа подсвечена. */
.single-post .entry-content .b26-row-best td { background: #eff6ff; }
.single-post .entry-content .b26-row-best td:first-child { box-shadow: inset 3px 0 0 var(--b26-accent); }

/* Источники: откуда факты и когда проверены. */
.single-post .entry-content .b26-sources {
	margin: 36px 0 0;
	padding: 18px 22px;
	border: 1px solid var(--b26-border);
	border-radius: 14px;
	background: var(--b26-bg-light);
}
.single-post .entry-content .b26-sources-title { color: var(--b26-text-muted); }
.single-post .entry-content .b26-sources ul { margin: 0; padding: 0 0 0 18px; }
.single-post .entry-content .b26-sources li {
	margin: 0 0 4px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #475569;
}
.single-post .entry-content .b26-sources p {
	margin: 8px 0 0;
	font-size: 13.5px;
	color: var(--b26-text-muted);
}

/* Телефон: карточки плотнее, паспорт и плюсы с минусами столбиком, у таблицы сравнения закреплён первый столбец. */
@media (max-width: 768px) {
	.single-post .entry-content .b26-quick { padding: 16px 18px; }
	.single-post .entry-content .b26-quick p { font-size: 16px; }
	.single-post .entry-content .b26-way { margin: 32px 0; padding: 20px 18px 22px; border-radius: 16px; }
	.single-post .entry-content .b26-way-title { margin-bottom: 14px; font-size: 22px; }
	.single-post .entry-content .b26-way-facts { grid-template-columns: 1fr; }
	.single-post .entry-content .b26-way-facts > div { padding: 10px 14px 11px; }
	.single-post .entry-content .b26-way-facts dt { margin-bottom: 2px; }
	.single-post .entry-content .b26-way-facts dd { font-size: 15px; }
	.single-post .entry-content ol.b26-steps > li { padding-left: 42px; font-size: 16px; }
	.single-post .entry-content .b26-pc { grid-template-columns: 1fr; }
	.single-post .entry-content .b26-table-compare { border-collapse: separate; border-spacing: 0; }
	.single-post .entry-content .b26-table-compare :is(th, td):first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: #fff;
		box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .2);
	}
	.single-post .entry-content .b26-table-compare th:first-child { background: var(--b26-bg-light); }
	.single-post .entry-content .b26-table-compare .b26-row-best td:first-child {
		background: #eff6ff;
		box-shadow: inset 3px 0 0 var(--b26-accent), 6px 0 8px -6px rgba(15, 23, 42, .2);
	}
}

/* ── Шапка старого шаблона .opx: H1 без рамки и градиента, как у .b26.
   Inline-стили шапки в тексте некоторых статей перебиваем !important. ── */
.single-post .entry-content .opx-hero {
	margin: 0 0 36px !important;
	padding: 0 !important;
	border: 0;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none;
	text-align: center;
}
.single-post .entry-content .opx-article h1 {
	margin: 0 0 20px;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--b26-text);
}
.single-post .entry-content .opx-hero :is(.opx-muted, .opx-hero-desc) {
	max-width: 720px;
	margin: 0 auto 28px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--b26-text-muted);
}
.single-post .entry-content .opx-hero .opx-review-img { margin: 8px 0 28px; }
.single-post .entry-content .opx-hero .opx-meta {
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0 0 28px;
	border-bottom: 1px solid var(--b26-border);
}
.single-post .entry-content .opx-meta span {
	padding: 6px 14px;
	border: 1px solid var(--b26-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--b26-text-muted);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .02);
}

/* ── Текст старого шаблона .opx: тон как у .b26 ── */
.single-post .entry-content .opx-article {
	color: var(--b26-text);
	line-height: 1.7;
}
.single-post .entry-content .opx-article p { color: #1e293b; }
.single-post .entry-content .opx-article h3 { color: var(--b26-text); }

/* ── Карточки .opx: сетка вместо столбика, плотные отступы, плюсы и минусы рядом ── */
.single-post .entry-content .opx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
	margin: 20px 0 28px;
}
.single-post .entry-content .opx-card,
.single-post .entry-content .opx-card:hover {
	margin: 0 0 16px;
	padding: 20px 22px;
	border: 1px solid var(--b26-border);
	border-radius: var(--b26-radius);
	background: #fff;
	box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .03);
	transform: none;
}
.single-post .entry-content .opx-grid > .opx-card { margin: 0; }
.single-post .entry-content .opx-card-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--b26-text);
}
.single-post .entry-content .opx-card h3 { color: var(--b26-text) !important; }
.single-post .entry-content .opx-card p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
}
.single-post .entry-content .opx-card p + p { margin-top: 8px; }
/* Плюсы и минусы узнаются по цвету заголовка из текста статьи: мягкий зелёный и красный фон. */
.single-post .entry-content .opx-card:has(> .opx-card-title[style*="166534"]) { border-color: #bbf7d0; background: #f0fdf4; }
.single-post .entry-content .opx-card:has(> .opx-card-title[style*="991b1b"]) { border-color: #fecaca; background: #fef2f2; }

/* ── Врезка .opx-note: форма как у предупреждений .b26 ── */
.single-post .entry-content .opx-note {
	border: 0;
	border-left: 4px solid var(--b26-accent);
	border-radius: 0 12px 12px 0;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 16px;
	line-height: 1.6;
}

/* ── FAQ старого шаблона: размеры как у аккордеона .b26-faq ── */
.single-post .entry-content .faq-item {
	margin: 0 0 8px;
	padding: 14px 16px;
	border: 1px solid var(--b26-border);
	border-radius: 12px;
	box-shadow: none;
}
.single-post .entry-content .faq-q {
	margin: 0 0 6px;
	font-size: 15.5px;
	line-height: 1.45;
	color: var(--b26-text);
	cursor: default;
}
.single-post .entry-content .faq-a {
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

/* ── CTA: тёмно-синий у обоих шаблонов, кнопки обычным регистром вместо капса ── */
.single-post .entry-content :is(.opx-cta, .opx-premium-banner) {
	border: 0 !important;
	background: #0f172a radial-gradient(circle at 100% 0%, #1e40af 0%, transparent 60%) !important;
	box-shadow: 0 20px 40px -10px rgba(15, 23, 42, .4) !important;
}
.single-post .entry-content .b26-btn {
	text-transform: none;
	letter-spacing: 0;
}
.single-post .entry-content .b26-cta-box > :last-child { margin-bottom: 0; }

/* ── Конец статьи без пустоты: отступ до «Читайте также» задаёт сам блок ── */
.single-post .entry-content :is(.b26-wrapper, .opx-article) { padding-bottom: 0; }
.single-post .entry-content > :last-child,
.single-post .entry-content :is(.b26-wrapper, .opx-article) > :last-child { margin-bottom: 0 !important; }

/* ── Планшет и телефон: без серой полосы Astra под блоком «Читайте также» ── */
@media (max-width: 921px) {
	.single-post #primary { padding-bottom: 0; }
	.single-post .opb-read { margin-bottom: 44px; }
}

@media (max-width: 768px) {
	/* Шапка статьи по одному краю: крошки одной строкой, мета, H1, лид и теги слева. */
	.single-post .ast-breadcrumbs-wrapper,
	.single-post .ast-article-single .entry-header { text-align: left; }
	.single-post #ast-breadcrumbs-yoast {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.single-post .entry-content :is(.b26-h1, .b26-lead) { text-align: left; }
	.single-post .entry-content .b26-meta-wrap { justify-content: flex-start; }
	.single-post .entry-content .opx-hero {
		align-items: flex-start !important;
		text-align: left !important;
	}
	.single-post .entry-content .opx-hero :is(.opx-muted, .opx-hero-desc) { margin-right: 0; margin-left: 0; }
	.single-post .entry-content .opx-hero .opx-meta { justify-content: flex-start; }

	.single-post .entry-content .opx-article h1 { margin-bottom: 15px; font-size: 26px; }
	.single-post .entry-content .opx-article p { font-size: 16px; }
	.single-post .entry-content .opx-hero :is(.opx-muted, .opx-hero-desc) { margin-bottom: 22px; font-size: 17px; }
	.single-post .entry-content .opx-hero .opx-meta { gap: 8px; padding-bottom: 22px; }
	.single-post .entry-content .opx-meta span { padding: 4px 10px; font-size: 12px; }
	.single-post .entry-content .opx-article > h2 { margin-top: 40px; font-size: 22px; }
	.single-post .entry-content :is(.b26-h2, .opx-article > h2) { padding-left: 16px; }
	.single-post .entry-content :is(.b26-h2, .opx-article > h2)::before { width: 4px; }
	.single-post .entry-content :is(.b26-toc, .opx-nav) { margin-bottom: 32px; padding: 16px 18px 8px; }
	.single-post .entry-content :is(.b26-toc, .opx-nav) li { font-size: 15px; }
	.single-post .entry-content .opx-card,
	.single-post .entry-content .opx-card:hover { padding: 16px 18px; }
	.single-post .entry-content .opx-card p { font-size: 15px; }
	.single-post .entry-content :is(.b26-table-container, .table-container) :is(th, td) { padding: 12px 14px; }
	.single-post .entry-content :is(.b26-table-container, .table-container) td { font-size: 14px; }
}

/* ── Телефон: статья во всю ширину экрана, без серых полос Astra сверху, снизу и по бокам ── */
@media (max-width: 544px) {
	.single-post #content > .ast-container { padding-right: 0; padding-left: 0; }
	.single-post #primary { padding-top: 0; padding-bottom: 0; }
	.single-post #primary .ast-article-single { padding: 16px 20px 32px; }
	.single-post .entry-content .b26-wrapper { padding-right: 0; padding-left: 0; }
	.single-post .opb-read { margin: 0; padding: 30px 20px 40px; }
	.single-post .opb-read__grid { margin: 0 -20px; padding: 4px 20px 10px; scroll-padding: 0 20px; }
}
