/*
 * Страница статьи: надстройка поверх вёрстки прототипа.
 *
 * Прототип рисовал статью собственной разметкой (article-lead, article-note,
 * risk-chart). Настоящие статьи — чистый Гутенберг: wp-block-heading,
 * wp-block-list, wp-block-table и так далее. Здесь эти блоки приводятся
 * к типографике прототипа, а также описаны узлы, которых в прототипе не было:
 * врезки в тексте, панель материала, карточки правой колонки.
 */

/* ------------------------------------------------------------------ */
/* Текст статьи: блоки Гутенберга                                      */
/* ------------------------------------------------------------------ */

.article-copy > *:first-child {
	margin-top: 0;
}

.article-copy ul,
.article-copy ol {
	margin: 0 0 24px;
	padding-left: 22px;
	color: var(--ink-soft);
	font-size: 16.5px;
	line-height: 1.85;
}

.article-copy li {
	margin-bottom: 10px;
}

.article-copy li::marker {
	color: var(--gold);
}

/*
 * Ссылки в тексте статьи: синие, жирные, с явным подчёркиванием.
 * Толщина фиксирована (не from-font) — иначе на мобильных линия
 * почти сливается с основным текстом.
 */
.article-copy a {
	color: #0b57d0;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: #0b57d0;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.article-copy a:hover,
.article-copy a:focus-visible {
	color: #0842a0;
	text-decoration-color: #0842a0;
	text-decoration-thickness: 2.5px;
}

.article-copy a:visited {
	color: #551a8b;
	text-decoration-color: #551a8b;
}

.article-copy strong {
	color: var(--ink);
	font-weight: 700;
}

/* Цитата — тот же приём, что у article-thesis в прототипе. */
.article-copy .wp-block-quote {
	margin: 34px 0;
	padding: 26px 30px;
	border-left: 2px solid var(--gold);
	background: #ffffff8f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink);
}

.article-copy .wp-block-quote p {
	margin: 0 0 10px;
	font-size: inherit;
	line-height: inherit;
}

.article-copy .wp-block-quote cite {
	color: var(--ink-soft);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Таблицы в 58 статьях — на телефоне прокручиваются внутри себя. */
.article-copy .wp-block-table {
	margin: 32px 0;
	overflow-x: auto;
}

.article-copy .wp-block-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 14.5px;
	line-height: 1.55;
}

.article-copy .wp-block-table th,
.article-copy .wp-block-table td {
	padding: 13px 16px;
	border: 1px solid #18201c1f;
	text-align: left;
	vertical-align: top;
}

.article-copy .wp-block-table th {
	background: #e6dfd066;
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.article-copy .wp-block-table td {
	color: var(--ink-soft);
}

.article-copy .wp-block-table figcaption {
	margin-top: 10px;
	color: var(--ink-soft);
	font-size: 12px;
}

.article-copy .wp-block-image {
	margin: 34px 0;
}

.article-copy .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.article-copy .wp-block-image figcaption {
	margin-top: 11px;
	color: var(--ink-soft);
	font-size: 12.5px;
	letter-spacing: 0.02em;
}

.article-copy .wp-block-separator {
	width: 100%;
	max-width: none;
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.article-copy .wp-block-group {
	margin: 0;
}

.article-copy .wp-block-audio {
	margin: 30px 0;
}

.article-copy .wp-block-audio audio {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Закрытая часть                                                      */
/* ------------------------------------------------------------------ */

/*
 * Заголовок «Закрытая часть» в статьях залит оранжевым фоном редактора.
 * Здесь он становится границей между открытым и закрытым материалом.
 */
.article-copy h1.wp-block-heading {
	margin: 52px 0 26px;
	padding: 0 0 16px;
	border-bottom: 2px solid var(--gold);
	background: none !important;
	color: var(--forest);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 400;
	letter-spacing: -0.02em;
}

/* Окно «продолжение для зарегистрированных» — из mu-плагина портала. */
.hmr-article .gab-wrapper {
	margin: 34px 0;
	padding: clamp(28px, 3vw, 44px);
	border: 1px solid #18201c26;
	border-top: 3px solid var(--gold);
	background: linear-gradient(#f7f3e9, #f2eee4);
	text-align: left;
	box-shadow: 0 22px 44px #0f2d2514;
}

.hmr-article .gab-icon-box {
	width: 42px;
	height: 42px;
	margin-bottom: 18px;
	color: var(--gold);
}

.hmr-article .gab-icon-box svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hmr-article .gab-title {
	margin: 0 0 12px;
	color: var(--ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 400;
	line-height: 1.25;
}

.hmr-article .gab-description {
	margin: 0 0 24px;
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.7;
}

.hmr-article .gab-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hmr-article .gab-wrapper .gab-btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 26px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.18s, color 0.18s;
}

.hmr-article .gab-wrapper .gab-btn-primary,
.hmr-article .gab-wrapper .gab-btn-primary:visited {
	background: var(--forest) !important;
	border: 1px solid var(--forest) !important;
	color: var(--white) !important;
}

.hmr-article .gab-wrapper .gab-btn-primary:hover {
	background: var(--forest-deep) !important;
	border-color: var(--forest-deep) !important;
	color: var(--white) !important;
}

.hmr-article .gab-wrapper .gab-btn-secondary,
.hmr-article .gab-wrapper .gab-btn-secondary:visited {
	background: transparent !important;
	border: 1px solid #18201c40 !important;
	color: var(--ink) !important;
}

.hmr-article .gab-wrapper .gab-btn-secondary:hover {
	background: #ffffffb8 !important;
	border-color: var(--gold) !important;
	color: var(--ink) !important;
}

/* ------------------------------------------------------------------ */
/* Врезки в тексте: баннеры и обложки других статей                    */
/* ------------------------------------------------------------------ */

.article-insert {
	display: block;
	margin: 38px 0;
	border: 1px solid #18201c26;
	border-top: 3px solid var(--gold);
	background: #ffffffa8;
}

/*
 * Колонка картинки 320 px, а не 200: высота врезки задаётся текстом и выходит
 * около 200 px, поэтому при 200 px ширины кадр получался почти квадратным
 * и срезал края у любой картинки. При 320 px кадр выходит примерно 16:10 —
 * тем же форматом, в котором готовятся обложки записей.
 */
.article-insert a {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	text-decoration: none;
	color: inherit;
}

.article-insert--banner,
.article-insert--video {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

.article-insert__cover {
	display: block;
	overflow: hidden;
}

.article-insert__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-insert__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-insert__copy {
	display: block;
	padding: 24px 26px;
}

.article-insert__label,
.article-insert__badge {
	display: block;
	margin-bottom: 12px;
	color: #6d7a72;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.article-insert__copy strong {
	display: block;
	margin-bottom: 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--ink);
}

.article-insert__text {
	display: block;
	color: var(--ink-soft);
	font-size: 14.5px;
	line-height: 1.65;
}

.article-insert__text p {
	margin: 0 0 8px;
	font-size: inherit;
	line-height: inherit;
}

.article-insert__link,
.article-insert__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	color: var(--forest);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
}

.article-insert a:hover .article-insert__link,
.article-insert__button:hover {
	color: var(--gold);
}

.article-insert--image {
	padding: 18px;
	text-align: center;
}

.article-insert--image img {
	display: block;
	width: 100%;
	height: auto;
}

.article-insert--image .article-insert__badge {
	text-align: left;
}

/* ------------------------------------------------------------------ */
/* Панель материала: просмотры, избранное, шеринг                      */
/* ------------------------------------------------------------------ */

.article-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 7.5vw 64px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.article-tools__meta,
.article-tools__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	color: var(--ink-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/*
 * «Сохранить в Мой путь» — кнопка портала, тема красит её жёлтым прямо
 * в разметке. Функцию не трогаем, приводим к палитре нового дизайна.
 */
.article-tools .simplefavorite-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px !important;
	border: 1px solid #18201c33 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ink-soft) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.18s, color 0.18s;
}

.article-tools .simplefavorite-button:hover,
.article-tools .simplefavorite-button.active {
	border-color: var(--gold) !important;
	background: #b797571a !important;
	color: var(--forest) !important;
}

.article-tools .simplefavorite-button svg {
	width: 14px;
	height: 14px;
}

.article-tools .xs_social_share_widget,
.article-tools .wslu-social-share {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Правая колонка: карточки, которых не было в прототипе               */
/* ------------------------------------------------------------------ */

.hmr-article .article-sidebar__next,
.hmr-article .article-sidebar__subscribe,
.hmr-article .article-sidebar__card {
	display: block;
	padding: 24px;
	border: 1px solid #18201c1f;
	background: #ffffff8f;
	text-decoration: none;
	color: inherit;
}

.hmr-article .article-sidebar__next > span,
.hmr-article .article-sidebar__subscribe > span,
.hmr-article .article-sidebar__eyebrow {
	display: block;
	margin-bottom: 14px;
	color: #6d7a72;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.hmr-article .article-sidebar__cover {
	display: block;
	width: 100%;
	height: 132px;
	margin-bottom: 14px;
	object-fit: cover;
}

.article-sidebar__next strong {
	display: block;
	margin-bottom: 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ink);
}

.article-sidebar__next em {
	color: var(--ink-soft);
	font-size: 11px;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.article-sidebar__next:hover strong {
	color: var(--forest);
}

.article-sidebar__subscribe strong {
	display: block;
	margin-bottom: 16px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ink);
}

/* Форма Unisender в узкой колонке — в одну колонку и во всю ширину. */
.article-sidebar__subscribe .subscribe-form,
.article-sidebar__subscribe form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.article-sidebar__subscribe input[type="text"],
.article-sidebar__subscribe input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #18201c33;
	background: var(--white);
	font-size: 14px;
}

.article-sidebar__subscribe button,
.article-sidebar__subscribe input[type="submit"] {
	width: 100%;
	padding: 13px 18px;
	border: 0;
	background: var(--forest);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
}

.article-sidebar__subscribe button:hover,
.article-sidebar__subscribe input[type="submit"]:hover {
	background: var(--forest-deep);
}

/* Активный пункт оглавления — читатель видит, где он находится. */
.article-contents a.is-active {
	color: var(--forest);
}

.article-contents a.is-active small {
	color: var(--gold);
}

/* ------------------------------------------------------------------ */
/* Мелочи                                                              */
/* ------------------------------------------------------------------ */

.article-pages {
	margin: 30px 0;
	font-size: 13px;
	letter-spacing: 0.06em;
}

.article-audio button {
	cursor: pointer;
}

.article-audio__track {
	cursor: pointer;
}

@media (max-width: 900px) {
	.article-insert a,
	.article-insert--banner,
	.article-insert--video {
		grid-template-columns: minmax(0, 1fr);
	}

	.article-insert__cover img {
		height: 200px;
	}

	.article-tools {
		margin: 0 22px 48px;
	}

	.article-tags,
	.article-comments {
		margin-left: 22px;
		margin-right: 22px;
	}

	.article-capital__image {
		height: 140px;
	}
}

/*
 * Карточки «Что читать дальше»: в прототипе у картинки жёсткие 215 px,
 * и при ширине карточки около 470 px кадр выходил 2,2:1 — обложка 16:10
 * теряла верх и низ. Переводим на пропорции самой обложки: кадрировать
 * нечего, картинка видна целиком.
 */
.hmr-article .article-related__grid img {
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/*
 * «Что читать дальше» в прототипе всегда в три колонки — на телефоне
 * карточки становились по 100 px. Перестраиваем на узких экранах.
 */
@media (max-width: 1000px) {
	.article-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.article-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------ */
/* Ширина текста, sticky оглавления, баннеры справа                    */
/* ------------------------------------------------------------------ */

/*
 * В прототипе у текста max-width: 845px и огромные боковые поля.
 * Расширяем колонку примерно вдвое за счёт полей и зазора с сайдбаром.
 */
.hmr-article .article-shell {
	max-width: 1520px;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
	gap: clamp(28px, 3.2vw, 56px);
	padding: 64px 4vw 34px;
}

.hmr-article .article-copy {
	max-width: none;
	width: 100%;
}

.hmr-article .article-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	image-rendering: auto;
}

/*
 * Правая колонка. Блоки лежат непрерывной лентой; окно и прокрутка ленты —
 * ниже, в медиазапросе для широких экранов.
 */
.hmr-article .article-sidebar {
	position: static;
	align-self: start;
}

.hmr-article .article-sidebar__reel {
	display: grid;
	gap: 22px;
	align-content: start;
}

.article-contents__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
}

.article-contents__toggle > span {
	color: #748078;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	font-size: 8px;
	font-weight: 700;
}

.article-contents__chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--forest);
	border-bottom: 1.5px solid var(--forest);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
	flex-shrink: 0;
}

.article-contents.is-collapsed .article-contents__chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.article-contents.is-collapsed .article-contents__list {
	display: none;
}

.article-contents.is-expanded .article-contents__list {
	display: block;
}

/* Скрываем старый заголовок-span, если остался без кнопки. */
.article-contents > span:first-child {
	display: none;
}

.hmr-article .article-sidebar__banners {
	display: grid;
	gap: 14px;
}

.hmr-article .article-sidebar__eyebrow {
	display: block;
	color: #6d7a72;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.hmr-article .article-sidebar__card {
	display: block;
	padding: 0 0 14px;
	border: 1px solid #18201c1f;
	background: #ffffff8f;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.hmr-article .article-sidebar__card .article-sidebar__cover {
	margin-bottom: 12px;
	height: 118px;
}

.hmr-article .article-sidebar__card strong {
	display: block;
	padding: 0 14px;
	margin-bottom: 8px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ink);
}

.hmr-article .article-sidebar__card em {
	display: block;
	padding: 0 14px;
	color: var(--ink-soft);
	font-size: 10px;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hmr-article .article-sidebar__card:hover strong {
	color: var(--forest);
}

.article-capital {
	display: block;
	padding: 0 0 22px;
	border: 1px solid #18201c1f;
	background: #f4efe4;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
}

.article-capital > span {
	display: block;
	padding: 18px 22px 0;
	margin-bottom: 12px;
	color: #6d7a72;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.article-capital__image {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	margin-bottom: 14px;
}

.article-capital strong {
	display: block;
	padding: 0 22px;
	margin-bottom: 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ink);
}

.article-capital p {
	margin: 0 0 14px;
	padding: 0 22px;
	color: var(--ink-soft);
	font-size: 13px;
	line-height: 1.55;
}

.article-capital em {
	display: inline-block;
	padding: 0 22px;
	color: var(--forest);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.article-capital:hover strong {
	color: var(--forest);
}

/* Теги */
.article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 7.5vw 48px;
	padding-top: 8px;
}

.article-tags__label {
	color: #6d7a72;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.article-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.article-tags__list a {
	display: inline-flex;
	padding: 8px 12px;
	border: 1px solid #18201c26;
	background: #ffffffa8;
	color: var(--forest);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.article-tags__list a:hover {
	border-color: var(--gold);
	color: var(--ink);
}

/* Комментарии */
.article-comments {
	margin: 0 7.5vw 72px;
	padding: 40px 0 0;
	border-top: 1px solid var(--line);
}

.article-comments .comments-area {
	margin: 0;
	max-width: 820px;
}

.article-comments .title-comments,
.article-comments .comment-reply-title {
	margin: 0 0 22px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 2.6vw, 36px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ink);
}

.article-comments .comment-list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.article-comments .comment-list > .comment + .comment {
	margin-top: 18px;
}

.article-comments .comment-list .children {
	margin: 18px 0 0;
	padding: 0 0 0 24px;
	list-style: none;
}

.article-comments .comment {
	margin: 0;
	padding: 0;
	background: transparent;
}

/*
 * Сброс прототипного `footer { background: dark; padding: 90px... }`:
 * у комментария метаданные тоже в <footer class="comment-meta">.
 */
.article-comments footer.comment-meta,
.article-comments .comment-meta {
	all: unset;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	width: 100%;
	margin: 0 0 0.9rem;
	padding: 0;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}

.article-comments .comment-body {
	position: relative;
	margin: 0;
	padding: 30px 0;
	border-bottom: 1px solid #ccc;
}

.article-comments .comment-author {
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
}

.article-comments .comment-author .avatar {
	float: left;
	position: inherit;
	display: block;
	width: 42px;
	height: 42px;
	margin: 0 10px 0 0;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
}

.article-comments .comment-author .fn {
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
}

.article-comments .comment-author .says {
	margin-left: 2px;
	color: var(--ink-soft);
	font-weight: 400;
}

.article-comments .comment-metadata {
	display: inline-flex;
	align-items: center;
	align-self: center;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}

.article-comments .comment-content {
	margin: 0 0 16px 54px;
	padding: 0;
	background: transparent;
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.article-comments .comment-content p {
	margin: 0 0 12px;
}

.article-comments .comment-content p:last-child {
	margin-bottom: 0;
}

.article-comments .reply {
	margin: 10px 0 0 54px;
	padding: 0;
	background: transparent;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
}

.article-comments .comment-awaiting-moderation {
	display: block;
	margin: 0 0 12px 54px;
	color: var(--ink-soft);
	font-size: 13px;
}

.article-comments .comment-reply-link {
	color: #5d6b63 !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-comments .comment-reply-link:hover {
	color: var(--forest) !important;
}

.article-comments .comment-awaiting-moderation {
	display: block;
	margin: 0 0 12px;
	color: var(--ink-soft);
	font-size: 13px;
}

/* Лайки комментариев — wp_ulike, близко к стоковым пропорциям. */
.article-comments .wpulike.wpulike-default {
	margin: 14px 0 0;
	line-height: 1;
}

.article-comments .wpulike-default .wp_ulike_general_class {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0 !important;
	line-height: 1 !important;
}

.article-comments .wpulike-default button.wp_ulike_btn {
	position: relative !important;
	box-sizing: border-box !important;
	width: auto !important;
	min-width: 50px !important;
	height: auto !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 0 15px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background-color: #e0e0e0 !important;
	background-image: none !important;
	cursor: pointer;
	vertical-align: middle !important;
}

.article-comments .wpulike-default .wp_ulike_put_image:after {
	width: 16px !important;
	height: 16px !important;
}

.article-comments .wpulike-default .count-box {
	position: relative !important;
	box-sizing: border-box !important;
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 0 8px !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background-color: #fff !important;
	box-shadow: 0 0 0 1px #bdbdbd inset !important;
	color: #616161 !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	vertical-align: middle !important;
	text-align: center !important;
}

.article-comments .wpulike-default .count-box:before {
	left: -5px !important;
	top: 50% !important;
	width: 5px !important;
	height: 5px !important;
	margin: 0 !important;
	border: 1px solid transparent !important;
	border-bottom-color: #bdbdbd !important;
	border-left-color: #bdbdbd !important;
	background: #fff !important;
	transform: rotate(45deg) translateY(-50%) !important;
}

.article-comments__gate {
	margin-top: 8px;
	padding: 28px;
	border: 1px solid #18201c1a;
	background: #ffffffd9;
}

.article-comments__gate-text,
.article-comments .must-log-in,
.article-comments .comment-form-comment,
.article-comments .comment-notes,
.article-comments .logged-in-as {
	margin: 0 0 18px;
	color: var(--ink-soft);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

.article-comments__gate-text a,
.article-comments .must-log-in a,
.article-comments .comment-form-comment a,
.article-comments .logged-in-as a,
.article-comments .comment-notes a,
.article-comments .comment-content a,
.article-comments .comment-author a,
.article-comments .comment-metadata a,
.article-comments .comment-meta a {
	color: #0b57d0;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-comments__gate-text a:hover,
.article-comments .must-log-in a:hover,
.article-comments .comment-form-comment a:hover,
.article-comments .logged-in-as a:hover,
.article-comments .comment-author a:hover,
.article-comments .comment-metadata a:hover {
	color: #0842a0;
}

.article-comments__gate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.article-comments__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid transparent;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.article-comments__btn,
.article-comments__btn:hover,
.article-comments__btn:visited {
	text-decoration: none;
}

.article-comments__btn--primary {
	background: var(--gold);
	border-color: var(--gold);
	color: #111;
}

.article-comments__btn--primary:hover {
	background: #d49a2d;
	border-color: #d49a2d;
	color: #111;
}

.article-comments__btn--secondary {
	background: transparent;
	border-color: #18201c40;
	color: #111;
}

.article-comments__btn--secondary:hover {
	border-color: var(--gold);
	color: #111;
}

.article-comments .comment-form {
	margin-top: 8px;
	padding: 28px;
	border: 1px solid #18201c1a;
	background: #ffffffd9;
}

.article-comments .comment-form label {
	display: block;
	margin: 0 0 8px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}

.article-comments .comment-form p {
	margin: 0 0 16px;
}

.article-comments textarea,
.article-comments input[type="text"],
.article-comments input[type="email"],
.article-comments input[type="url"] {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	box-sizing: border-box;
}

.article-comments textarea {
	min-height: 140px;
	resize: vertical;
}

.article-comments .form-submit {
	margin: 8px 0 0;
}

.article-comments .form-submit input,
.article-comments__submit {
	padding: 12px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--gold);
	color: #111;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.article-comments .form-submit input:hover,
.article-comments__submit:hover {
	background: #d49a2d;
}

.article-comments__closed {
	color: var(--ink-soft);
	font-size: 15px;
}

@media (max-width: 700px) {
	.article-comments .comment-body {
		padding: 30px 0;
	}

	.article-comments .comment-author .avatar {
		width: 36px;
		height: 36px;
	}

	.article-comments .comment-content,
	.article-comments .reply,
	.article-comments .comment-awaiting-moderation {
		margin-left: 44px;
	}

	.article-comments .comment-metadata {
		width: 100%;
		white-space: normal;
	}

	.article-comments__gate,
	.article-comments .comment-form {
		padding: 22px 18px;
	}
}

@media (max-width: 1100px) {
	.hmr-article .article-shell {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 28px;
	}
}

@media (max-width: 900px) {
	.hmr-article .article-shell {
		display: block;
		padding: 48px 22px 20px;
	}

	.hmr-article .article-sidebar__screen {
		position: static;
		height: auto;
		overflow: visible;
	}
}

/* ------------------------------------------------------------------ */
/* Правки по замечаниям: верх статьи, обложка, просмотры               */
/* ------------------------------------------------------------------ */

/*
 * Шапка статьи.
 *
 * В макете размеры указаны для кадра шириной 1857 px, и мелкие подписи там
 * заданы в 8–10 px. На настоящих экранах — особенно широких — они читались
 * с трудом. Оставляем макетные пропорции, но делаем размер зависимым
 * от ширины окна: на 1440 px подписи примерно как в макете, на 2560 —
 * крупнее, а не теряются.
 */
.hmr-article .article-breadcrumbs {
	font-size: clamp(10px, 0.6vw, 14px);
	letter-spacing: 0.12em;
}

.hmr-article .article-hero .article-kicker {
	font-size: clamp(11px, 0.68vw, 15px);
	letter-spacing: 0.16em;
}

.hmr-article .article-deck {
	max-width: 60ch;
	font-size: clamp(19px, 1.25vw, 27px);
	line-height: 1.5;
	color: #5f6660;
}

.hmr-article .article-byline__person strong {
	font-size: clamp(19px, 1.05vw, 25px);
}

.hmr-article .article-byline__person span {
	font-size: clamp(10px, 0.55vw, 13px);
	letter-spacing: 0.12em;
}

.hmr-article .article-byline__meta span {
	font-size: clamp(10px, 0.58vw, 13px);
	letter-spacing: 0.09em;
	color: #5f6660;
}

/*
 * Обложка статьи — полоса во всю ширину окна, как в прототипе.
 * Пробовали показывать картинку целиком в её пропорциях, но в узкой
 * колонке она смотрится мелкой врезкой, поэтому вернули кадр на всю ширину.
 *
 * Кадрируем от верхнего края, а не по центру: почти все обложки портала —
 * титульные, с надписью в верхней части. При центровке у них срезало
 * заголовок, при верхней привязке уходит только низ рисунка.
 */
.hmr-article .article-cover {
	height: clamp(440px, 36vw, 540px);
	max-width: none;
	margin: 0;
	position: relative;
	overflow: hidden;
}

.hmr-article .article-cover img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center top;
}

/*
 * Широкая картинка первого экрана — показывается целиком, без обрезки:
 * высота по содержимому, пропорции сохраняются. Заказчик просил именно так,
 * поэтому здесь нет ни фиксированной высоты, ни cover.
 *
 * Ниже 768 px этот режим не работает: там в <picture> подставляется обычная
 * обложка записи, и она рисуется полосой, как у остальных материалов.
 */
@media (min-width: 768px) {
	.hmr-article .article-cover--wide {
		height: auto;
		max-width: none;
		margin: 0;
		overflow: visible;
	}

	.hmr-article .article-cover--wide picture {
		display: block;
	}

	.hmr-article .article-cover--wide img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: center;
		/*
		 * Никакого max-height: при height: auto рамка равна пропорциям файла,
		 * и contain ничего не меняет — картинка выводится целиком, во всю
		 * ширину. Ограничение по высоте здесь стояло как страховка от почти
		 * квадратного файла, но оно включало contain по-настоящему: картинка
		 * вписывалась в укороченную рамку и по бокам появлялись поля.
		 * Заказчику нужна полная ширина, поэтому страховку сняли.
		 */
	}
}

/*
 * Подпись оставляем под картинкой. Плашка поверх кадра, как в прототипе,
 * ложилась ровно на заголовок обложки — читать мешали обе надписи сразу.
 */
.hmr-article .article-cover figcaption {
	position: static;
	margin: 14px 7.5vw 0;
	padding: 0;
	background: none;
	color: #6d7a72;
	font-size: clamp(10px, 0.55vw, 13px);
	letter-spacing: 0.11em;
}

@media (max-width: 900px) {
	/*
	 * :not(--wide) обязателен: полоса на узких экранах и широкая картинка
	 * пересекаются в диапазоне 768–900 px, а это правило идёт ниже —
	 * без исключения оно вернуло бы широкой картинке фиксированную высоту.
	 */
	.hmr-article .article-cover:not(.article-cover--wide) {
		height: clamp(260px, 68vw, 340px);
	}

	.hmr-article .article-cover figcaption {
		margin-left: 22px;
		margin-right: 22px;
	}
}

/* Ниже брейкпоинта широкая картинка живёт по правилам обычной полосы. */
@media (max-width: 767px) {
	.hmr-article .article-cover--wide {
		height: clamp(260px, 68vw, 340px);
	}

	.hmr-article .article-cover--wide img {
		height: 100%;
		object-fit: cover;
		object-position: center top;
	}
}

/* Просмотры материала — заметная строка, а не подпись мелким шрифтом. */
.hmr-article .article-tools__views {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(15px, 0.95vw, 20px);
	font-weight: 400;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--ink);
}

.hmr-article .article-tools__views b {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Значок из комплекта (assets/images/eye.svg). */
.hmr-article .article-tools__views svg {
	width: auto;
	height: 0.72em;
	flex: 0 0 auto;
	color: var(--gold);
}

/* ------------------------------------------------------------------ */
/* Правая колонка: этапы, крупные карточки, картинка у серии           */
/* ------------------------------------------------------------------ */

/*
 * Карточки «Последние» и «Похожие» кадрировались до 118 px при ширине 278 —
 * от обложки 3:2 оставалась узкая полоска. Держим пропорции 16:10,
 * высота считается от ширины колонки.
 */
.hmr-article .article-sidebar__card .article-sidebar__cover {
	height: auto;
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
}

/*
 * Карточка тематической серии — тот же баннер, что «Управление капиталом»,
 * только тёмный. Раньше она была без картинки; теперь берёт обложку метки
 * (поле «Обложка раздела» у метки или подобранную из комплекта) и заведомо
 * не повторяет картинку соседнего баннера.
 */
.hmr-article .article-series {
	padding: 28px 0 26px;
	overflow: hidden;
}

.hmr-article .article-series > span,
.hmr-article .article-series strong,
.hmr-article .article-series p,
.hmr-article .article-series em {
	padding-left: 26px;
	padding-right: 26px;
}

.hmr-article .article-series__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	margin: 0 0 18px;
	opacity: 0.92;
}

.hmr-article .article-series p {
	margin: 18px 0;
}

/* Группы блоков внутри ленты */

.hmr-article .article-sidebar__stage {
	display: grid;
	gap: 22px;
	align-content: start;
}

@media (min-width: 901px) {
	/*
	 * Колонка оторвана от потока статьи.
	 *
	 * Три предыдущие схемы делались на обычном sticky и упирались в одно:
	 * пока короткий блок (содержание — 528 px на экране 900 px) стоит
	 * у верхнего края, место под ним нечем занять, кроме следующего блока,
	 * а он в потоке лежит ровно на длину стоянки ниже. Получалась либо дыра
	 * под блоком, либо наезд блоков друг на друга.
	 *
	 * Теперь article-sidebar__screen — окно высотой в экран, которое держится
	 * у верхнего края, а article-sidebar__reel внутри — непрерывная лента.
	 * Ленту двигает article.js: между порогами она стоит (блок «зафиксирован»),
	 * на пороге уезжает ровно на высоту ушедшего блока. Лента непрерывна,
	 * поэтому под верхним блоком всегда идёт следующий — пустого поля нет
	 * ни в одной точке прокрутки.
	 *
	 * Класс is-reel вешает article.js: без него (нет JS, короткая статья,
	 * лента ниже окна) колонка остаётся обычным столбцом.
	 */
	.hmr-article .article-sidebar {
		align-self: stretch;
		height: 100%;
	}

	.hmr-article .article-sidebar__screen.is-reel {
		position: sticky;
		top: 24px;
		height: calc(100vh - 48px);
		overflow: hidden;
	}

	.admin-bar.hmr-article .article-sidebar__screen.is-reel {
		top: 56px;
		height: calc(100vh - 80px);
	}

	.hmr-article .article-sidebar__screen.is-reel .article-sidebar__reel {
		transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
		will-change: transform;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmr-article .article-sidebar__reel {
		transition: none;
	}
}

/*
 * Надписи «Главный вывод» и «Границы применимости» в прототипе набраны
 * восьмым кеглем — на фоне вывода в 25 px они читались как служебная пометка.
 * Заказчик просил сделать их заголовком блока.
 */
.hmr-article .article-conclusion span {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--forest, #0f2d25);
}

@media (max-width: 900px) {
	.hmr-article .article-conclusion span {
		font-size: 17px;
	}
}
