/**
 * Блог клиники: список статей, рубрики, статья.
 *
 * @package cmomed
 */

/* ---------- Общее ---------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.blog-page,
.article-page {
	background-color: #fff;
}

/* ---------- Hero блога ---------- */

.blog-hero {
	position: relative;
	padding: 56px 0 52px;
	background:
		radial-gradient(520px 260px at 88% 12%, rgba(21, 158, 236, 0.12), transparent 70%),
		radial-gradient(420px 220px at 6% 96%, rgba(191, 210, 248, 0.45), transparent 70%),
		linear-gradient(135deg, #f7faff 0%, #edf3fc 100%);
	overflow: hidden;
}

.blog-hero::before {
	content: "";
	position: absolute;
	top: -140px;
	right: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 40px solid rgba(21, 158, 236, 0.08);
	pointer-events: none;
}

.blog-hero::after {
	content: "";
	position: absolute;
	bottom: -160px;
	left: -100px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(191, 210, 248, 0.35);
	pointer-events: none;
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 860px;
}

.blog-hero__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 7px 14px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(21, 158, 236, 0.18);
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.blog-hero__label svg {
	flex: none;
}

.blog-hero__title {
	margin: 0 0 14px;
}

.blog-hero__text {
	max-width: 680px;
	color: #212124;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.blog-hero__text p {
	margin: 0 0 8px;
}

.blog-hero__text p:last-child {
	margin-bottom: 0;
}

.blog-hero__search-result {
	margin-top: 14px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.blog-hero__search-result strong {
	color: #159eec;
}

/* Поиск */

.blog-search {
	position: relative;
	max-width: 560px;
	margin-top: 28px;
}

.blog-search input[type="search"] {
	width: 100%;
	height: 56px;
	padding: 0 62px 0 22px;
	border: 1px solid #cde7f9;
	border-radius: 50px;
	background: #fff;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	line-height: 1.2;
	outline: none;
	box-shadow: 0 10px 28px rgba(31, 43, 108, 0.07);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search input[type="search"]::placeholder {
	color: #8a93a8;
}

.blog-search input[type="search"]:focus {
	border-color: #159eec;
	box-shadow: 0 0 0 4px rgba(21, 158, 236, 0.12), 0 10px 28px rgba(31, 43, 108, 0.07);
}

.blog-search button {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #1f2b6c;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.blog-search button:hover {
	background: #159eec;
}

/* Подсказки поиска */

.blog-search__suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 420px;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid #e3eaf7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(31, 43, 108, 0.16);
}

.blog-search__suggestions[hidden] {
	display: none;
}

.blog-search__group {
	padding: 8px 12px 6px;
	color: #8a93a8;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.blog-search__suggestion {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #1f2b6c;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.blog-search__suggestion:hover,
.blog-search__suggestion.is-active {
	background: #f2f7ff;
}

.blog-search__suggestion-title {
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.blog-search__suggestion-title mark {
	padding: 0;
	border-radius: 3px;
	background: rgba(21, 158, 236, 0.18);
	color: inherit;
}

.blog-search__suggestion-meta {
	color: #8a93a8;
	font-family: Roboto, sans-serif;
	font-size: 12px;
	line-height: 1.3;
}

.blog-search__suggestions-empty {
	padding: 14px 12px;
	color: #6e6e6e;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}

.blog-search__suggestions-all {
	display: block;
	margin-top: 6px;
	padding: 11px 12px;
	border-top: 1px solid #eef3fb;
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.blog-search__suggestions-all:hover {
	color: #1f2b6c;
}

/* ---------- Секция списка ---------- */

.blog-section {
	padding: 44px 0 64px;
}

/* Рубрики */

.blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 36px;
}

.blog-cats__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #dce6f7;
	border-radius: 50px;
	background: #fff;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-cats__item span {
	color: #8a93a8;
	font-size: 12px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.blog-cats__item:hover {
	border-color: #159eec;
	color: #159eec;
}

.blog-cats__item.is-active {
	border-color: #1f2b6c;
	background: #1f2b6c;
	color: #fff;
}

.blog-cats__item.is-active span {
	color: #bfd2f8;
}

/* ---------- Закреплённая статья ---------- */

.blog-featured {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	margin-bottom: 40px;
	border: 1px solid #e3eaf7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 44px rgba(31, 43, 108, 0.1);
	overflow: hidden;
}

.blog-featured__img {
	position: relative;
	display: block;
	min-height: 340px;
	background: #edf3fc;
	overflow: hidden;
}

.blog-featured__img-el {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured__img-el {
	transform: scale(1.03);
}

.blog-featured__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 36px 40px;
}

.blog-featured__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.blog-featured__badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 4px;
	background: #1f2b6c;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.blog-featured__title {
	margin: 0 0 12px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.blog-featured__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-featured__title a:hover {
	color: #159eec;
}

.blog-featured__excerpt {
	margin: 0 0 20px;
	color: #4a4a4a;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.blog-featured__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	color: #8a93a8;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.2;
}

.blog-featured__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 12px 22px;
	border-radius: 50px;
	background: #bfd2f8;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-featured__link:hover {
	background: #159eec;
	color: #fff;
}

/* ---------- Сетка карточек ---------- */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e6edf9;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	border-color: #bfd2f8;
	box-shadow: 0 16px 36px rgba(31, 43, 108, 0.12);
}

.blog-card__img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #edf3fc;
	overflow: hidden;
}

.blog-card__img-el {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img-el {
	transform: scale(1.04);
}

.blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.blog-card__cat {
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 5px 10px;
	border-radius: 4px;
	background: #eff4fd;
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-card__cat:hover {
	background: #159eec;
	color: #fff;
}

.blog-card__title {
	margin: 0 0 10px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.blog-card__title a:hover {
	color: #159eec;
}

.blog-card__excerpt {
	margin: 0 0 16px;
	color: #5a5a5a;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: #8a93a8;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.2;
}

.blog-card__dot {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #bfd2f8;
}

/* Заглушка обложки */

.blog-cover-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		radial-gradient(220px 160px at 80% 20%, rgba(21, 158, 236, 0.22), transparent 70%),
		linear-gradient(135deg, #eaf2ff 0%, #dbe8fb 100%);
	overflow: hidden;
}

.blog-cover-placeholder--featured {
	min-height: 340px;
}

.blog-cover-placeholder__mark {
	position: relative;
	width: 64px;
	height: 64px;
	opacity: 0.55;
}

.blog-cover-placeholder__mark::before,
.blog-cover-placeholder__mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 4px;
	background: #1f2b6c;
	transform: translate(-50%, -50%);
}

.blog-cover-placeholder__mark::before {
	width: 64px;
	height: 18px;
}

.blog-cover-placeholder__mark::after {
	width: 18px;
	height: 64px;
}

.blog-cover-placeholder__cat {
	position: absolute;
	left: 18px;
	bottom: 16px;
	padding: 5px 10px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.8);
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ---------- Пагинация ---------- */

.blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #dce6f7;
	border-radius: 50px;
	background: #fff;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.blog-pagination .page-numbers.current {
	border-color: #1f2b6c;
	background: #1f2b6c;
	color: #fff;
}

.blog-pagination .page-numbers:hover:not(.current) {
	border-color: #159eec;
	color: #159eec;
}

.blog-pagination .prev,
.blog-pagination .next {
	padding: 0 12px;
}

.blog-pagination .prev svg,
.blog-pagination .next svg {
	display: block;
}

/* ---------- Пустое состояние ---------- */

.blog-empty {
	max-width: 520px;
	margin: 20px auto 0;
	padding: 48px 32px;
	border: 1px dashed #cde7f9;
	border-radius: 16px;
	background: #f8fbff;
	text-align: center;
}

.blog-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #eff4fd;
	color: #159eec;
}

.blog-empty__title {
	margin: 0 0 10px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.blog-empty__text {
	margin: 0 0 22px;
	color: #5a5a5a;
	font-family: Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.blog-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 50px;
	background: #bfd2f8;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-empty__btn:hover {
	background: #159eec;
	color: #fff;
}

/* ---------- Статья: hero ---------- */

.article-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.article-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #159eec, #1f2b6c);
	transition: width 0.1s linear;
}

.article-hero {
	position: relative;
	padding: 52px 0 46px;
	background:
		radial-gradient(560px 280px at 92% 8%, rgba(21, 158, 236, 0.1), transparent 70%),
		linear-gradient(135deg, #f7faff 0%, #edf3fc 100%);
	overflow: hidden;
}

.article-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -160px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	border: 36px solid rgba(191, 210, 248, 0.35);
	pointer-events: none;
}

.article-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 980px;
}

.article-hero__cat {
	display: inline-flex;
	align-items: center;
	margin-bottom: 14px;
	padding: 6px 12px;
	border-radius: 4px;
	background: #fff;
	border: 1px solid rgba(21, 158, 236, 0.2);
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.article-hero__cat:hover {
	background: #159eec;
	color: #fff;
}

.article-hero__title {
	max-width: 920px;
	margin: 0 0 16px;
}

.article-hero__lead {
	max-width: 820px;
	margin: 0;
	color: #3d3d3d;
	font-family: Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.55;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 36px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #dce6f7;
}

.article-meta__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.article-meta__author-img {
	width: 52px;
	height: 52px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(31, 43, 108, 0.12);
}

.article-meta__label {
	display: block;
	margin-bottom: 2px;
	color: #8a93a8;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.article-meta__author-text strong {
	display: block;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.article-meta__author-text small {
	display: block;
	color: #6e6e6e;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.3;
}

.article-meta__items {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 28px;
}

.article-meta__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.article-meta__item time,
.article-meta__item strong {
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

/* ---------- Статья: сетка ---------- */

.article-section {
	padding: 48px 0 60px;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}

.article-main {
	min-width: 0;
}

.article-cover {
	margin: 0 0 32px;
	border-radius: 14px;
	overflow: hidden;
}

.article-cover__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Контент статьи ---------- */

.article-content {
	color: #212124;
	font-family: Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

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

.article-content h2 {
	margin: 40px 0 16px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	line-height: 1.3;
	scroll-margin-top: 90px;
}

.article-content h3 {
	margin: 30px 0 12px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	scroll-margin-top: 90px;
}

.article-content h4 {
	margin: 24px 0 10px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.article-content p {
	margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.article-content ul li {
	margin-bottom: 8px;
	list-style: disc;
}

.article-content ol li {
	margin-bottom: 8px;
	list-style: decimal;
}

.article-content li > ul,
.article-content li > ol {
	margin-top: 8px;
	margin-bottom: 0;
}

.article-content a {
	color: #159eec;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.article-content a:hover {
	color: #1f2b6c;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.article-content figure {
	margin: 24px 0;
}

.article-content figcaption {
	margin-top: 8px;
	color: #8a93a8;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.article-content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	border-left: 4px solid #159eec;
	border-radius: 0 10px 10px 0;
	background: #f4f8ff;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.55;
}

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

.article-content table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}

.article-content th {
	padding: 12px 14px;
	border: 1px solid #cde7f9;
	background: #bfd2f8;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

.article-content td {
	padding: 12px 14px;
	border: 1px solid #cde7f9;
	vertical-align: top;
}

.article-content tr:nth-child(even) td {
	background: #f8fbff;
}

.article-content hr {
	margin: 32px 0;
	border: 0;
	border-top: 1px solid #e3eaf7;
}

.article-content iframe {
	max-width: 100%;
	border-radius: 10px;
}

/* ---------- Оглавление ---------- */

.article-toc {
	padding: 22px;
	border: 1px solid #e3eaf7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 43, 108, 0.06);
}

.article-toc__title {
	margin-bottom: 14px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.article-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: article-toc;
}

.article-toc__item {
	position: relative;
	margin: 0 0 8px;
	padding-left: 22px;
}

.article-toc__item--h2 {
	counter-increment: article-toc;
}

.article-toc__item::before {
	content: counter(article-toc) ".";
	position: absolute;
	left: 0;
	top: 0;
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.article-toc__item--h3 {
	padding-left: 34px;
}

.article-toc__item--h3::before {
	content: "–";
	left: 16px;
	color: #8a93a8;
}

.article-toc__item a {
	color: #3d4a6b;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease;
}

.article-toc__item a:hover,
.article-toc__item a.is-active {
	color: #159eec;
}

.article-toc__item a.is-active {
	font-weight: 500;
}

/* Мобильное оглавление */

.article-toc-mobile {
	display: none;
	margin: 0 0 24px;
	border: 1px solid #e3eaf7;
	border-radius: 12px;
	background: #f8fbff;
}

.article-toc-mobile__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.article-toc-mobile__summary::-webkit-details-marker {
	display: none;
}

.article-toc-mobile__icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e3eefc;
}

.article-toc-mobile__icon::before,
.article-toc-mobile__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 1px;
	background: #159eec;
	transform: translate(-50%, -50%);
}

.article-toc-mobile__icon::before {
	width: 10px;
	height: 2px;
}

.article-toc-mobile__icon::after {
	width: 2px;
	height: 10px;
	transition: transform 0.2s ease;
}

.article-toc-mobile[open] .article-toc-mobile__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.article-toc-mobile .article-toc__list {
	padding: 0 18px 18px;
}

/* ---------- Сайдбар ---------- */

.article-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-self: start;
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.article-cta {
	padding: 24px;
	border-radius: 14px;
	background: linear-gradient(160deg, #1f2b6c 0%, #2a3a8c 100%);
	color: #fff;
	box-shadow: 0 14px 30px rgba(31, 43, 108, 0.22);
}

.article-cta__title {
	margin-bottom: 8px;
	font-family: Montserrat, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.article-cta p {
	margin: 0 0 16px;
	color: #d7e2fa;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.article-cta__btn {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 50px;
	background: #bfd2f8;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.article-cta__btn:hover {
	background: #159eec;
	color: #fff;
}

.article-cta__phone {
	display: block;
	margin-top: 12px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.article-cta__phone:hover {
	color: #bfd2f8;
}

.article-services {
	padding: 20px;
	border: 1px solid #e3eaf7;
	border-radius: 14px;
	background: #fff;
}

.article-services__title {
	margin-bottom: 12px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.article-services__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #eef3fb;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.2s ease;
}

.article-services__item:first-of-type {
	border-top: none;
}

.article-services__item svg {
	flex: none;
	color: #159eec;
	transition: transform 0.2s ease;
}

.article-services__item:hover {
	color: #159eec;
}

.article-services__item:hover svg {
	transform: translateX(3px);
}

/* ---------- Источники ---------- */

.article-sources {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #e3eaf7;
}

.article-sources__title {
	margin-bottom: 12px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.article-sources__list {
	margin: 0;
	padding-left: 20px;
}

.article-sources__list li {
	margin-bottom: 8px;
	color: #5a5a5a;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	list-style: decimal;
}

.article-sources__list a {
	color: #159eec;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Автор ---------- */

.article-author {
	display: flex;
	gap: 20px;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid #e3eaf7;
	border-radius: 14px;
	background: #f4f8ff;
}

.article-author__img {
	flex: none;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
}

.article-author__label {
	margin-bottom: 4px;
	color: #8a93a8;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.article-author__name {
	margin-bottom: 4px;
	color: #1f2b6c;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.article-author__spec {
	margin-bottom: 8px;
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.article-author__text {
	margin: 0;
	color: #4a4a4a;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Поделиться ---------- */

.article-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e3eaf7;
}

.article-share__label {
	margin-right: 4px;
	color: #8a93a8;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}

.article-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #eff4fd;
	color: #1f2b6c;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.article-share__btn:hover {
	background: #1f2b6c;
	color: #fff;
}

.article-share__btn.is-copied {
	background: #159eec;
	color: #fff;
}

/* ---------- FAQ статьи ---------- */

.article-faq {
	padding: 0 0 70px;
}

/* ---------- Читайте также ---------- */

.blog-related {
	padding: 56px 0;
	background: #f4f8ff;
}

.blog-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.blog-related__title {
	margin: 0;
	text-align: left;
}

.blog-related__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #159eec;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.blog-related__all:hover {
	color: #1f2b6c;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.article-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 32px;
	}
}

@media (max-width: 991px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-featured {
		grid-template-columns: 1fr;
	}

	.blog-featured__img {
		min-height: 260px;
	}

	.blog-featured__body {
		padding: 28px 26px 30px;
	}

	.article-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.article-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		position: static;
		max-height: none;
		overflow: visible;
	}

	.article-sidebar .article-toc {
		display: none;
	}

	.article-toc-mobile {
		display: block;
	}

	.article-cta {
		grid-column: 1 / -1;
	}

	.article-services {
		grid-column: 1 / -1;
	}

	.article-hero {
		padding: 40px 0 36px;
	}

	.article-hero__lead {
		font-size: 16px;
	}

	.article-meta {
		gap: 18px 24px;
	}
}

@media (max-width: 768px) {
	.blog-hero {
		padding: 36px 0 34px;
	}

	.blog-hero__title {
		margin-bottom: 10px;
	}

	.blog-hero__text {
		font-size: 15px;
	}

	.blog-search {
		margin-top: 22px;
	}

	.blog-search input[type="search"] {
		height: 52px;
		padding-right: 58px;
		font-size: 14px;
	}

	.blog-search button {
		top: 5px;
		right: 5px;
		width: 42px;
		height: 42px;
	}

	.blog-section {
		padding: 32px 0 48px;
	}

	.blog-cats {
		gap: 8px;
		margin-bottom: 26px;
	}

	.blog-cats__item {
		padding: 8px 14px;
		font-size: 13px;
	}

	.blog-featured {
		margin-bottom: 28px;
	}

	.blog-featured__img {
		min-height: 220px;
	}

	.blog-featured__body {
		padding: 22px 20px 24px;
	}

	.blog-featured__title {
		font-size: 22px;
	}

	.blog-featured__excerpt {
		font-size: 15px;
	}

	.blog-grid {
		gap: 16px;
	}

	.blog-card__body {
		padding: 16px 16px 18px;
	}

	.blog-card__title {
		font-size: 16px;
	}

	.blog-card__excerpt {
		font-size: 13px;
	}

	.blog-pagination {
		margin-top: 32px;
	}

	.blog-pagination .page-numbers {
		min-width: 40px;
		height: 40px;
		font-size: 14px;
	}

	.article-hero {
		padding: 32px 0 30px;
	}

	.article-hero__lead {
		font-size: 15px;
	}

	.article-meta {
		margin-top: 22px;
		padding-top: 18px;
	}

	.article-meta__author-img {
		width: 44px;
		height: 44px;
	}

	.article-meta__items {
		gap: 14px 20px;
	}

	.article-section {
		padding: 32px 0 44px;
	}

	.article-content {
		font-size: 16px;
		line-height: 1.65;
	}

	.article-content h2 {
		margin-top: 32px;
	}

	.article-content h3 {
		margin-top: 24px;
	}

	.article-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.article-author {
		flex-direction: column;
		gap: 14px;
		padding: 20px;
	}

	.article-author__img {
		width: 64px;
		height: 64px;
	}

	.article-sidebar {
		grid-template-columns: 1fr;
	}

	.article-cta {
		grid-column: auto;
	}

	.article-services {
		grid-column: auto;
	}

	.blog-related {
		padding: 40px 0;
	}

	.blog-related__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		margin-bottom: 22px;
	}
}

@media (max-width: 560px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-card__img {
		aspect-ratio: 16 / 9;
	}

	.blog-featured__badges {
		gap: 8px;
	}

	.blog-featured__meta {
		flex-wrap: wrap;
	}

	.article-hero__title {
		font-size: clamp(26px, 8vw, 34px);
	}

	.article-meta__items {
		width: 100%;
	}

	.article-meta__item {
		min-width: 90px;
	}

	.article-share {
		gap: 8px;
	}

	.article-share__label {
		width: 100%;
		margin-bottom: 2px;
	}
}

@media (max-width: 425px) {
	.blog-hero__label {
		font-size: 11px;
	}

	.blog-featured__body {
		padding: 20px 16px 22px;
	}

	.blog-featured__title {
		font-size: 20px;
	}

	.blog-featured__link {
		width: 100%;
		justify-content: center;
	}

	.article-hero__cat {
		font-size: 10px;
	}

	.article-content {
		font-size: 15px;
	}

	.article-content blockquote {
		padding: 16px 18px;
		font-size: 15px;
	}
}

/* ---------- Печать ---------- */

@media print {
	.article-progress,
	.article-sidebar,
	.article-share,
	.article-toc-mobile,
	.blog-related,
	.form,
	.faq-section,
	.header,
	.footer,
	.sticky-cta {
		display: none !important;
	}

	.article-layout {
		display: block;
	}

	.article-content {
		font-size: 12pt;
		line-height: 1.5;
	}
}
