/**
 * Одиночная статья блога
 */

.energo-blog-article-single {
	padding-bottom: 70px;
	background: var(--energo-bg);
}

.energo-blog-article-single .energo-breadcrumbs {
	margin: 0;
}

.energo-blog-article-single__head {
	padding: 48px 0 40px;
}

.energo-blog-article-single__hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 860px;
	margin-bottom: 40px;
}

.energo-blog-article-single__tag {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 8px 10px;
	border-radius: 5px;
	background: rgba(0, 140, 230, 0.2);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--energo-muted);
}

.energo-blog-article-single__title {
	margin: 0;
}

.energo-blog-article-single__date {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: rgba(73, 75, 80, 0.5);
}

.energo-blog-article-single__layout {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 130px;
}

.energo-blog-article-single__layout--no-toc {
	display: block;
}

.energo-blog-article-single__content-col {
	flex: 0 1 860px;
	min-width: 0;
	max-width: 860px;
}

.energo-blog-article-single__layout--no-toc .energo-blog-article-single__content-col {
	max-width: none;
}

.energo-blog-article-single__toc-col {
	flex: 0 0 310px;
	width: 310px;
	max-width: 310px;
}

.energo-blog-article-single__toc {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 30px;
	border-radius: 10px;
	background: var(--energo-white);
}

.energo-blog-article-single__toc-title {
	margin: 0;
	padding: 0 30px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-blog-article-single__toc-nav {
	padding: 10px 0;
}

.energo-blog-article-single__toc-divider {
	height: 1px;
	margin: 0;
	background: var(--energo-bg);
}

.energo-blog-article-single__toc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0 10px 10px;
	list-style: none;
}

.energo-blog-article-single__toc-item {
	margin: 0;
}

.energo-blog-article-single__toc-link {
	display: block;
	padding: 15px 25px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--energo-dark);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.energo-blog-article-single__toc-link:hover {
	background: var(--energo-bg);
	color: var(--energo-text);
}

.energo-blog-article-single__toc-link.is-active {
	background: rgba(0, 140, 230, 0.1);
	color: var(--energo-blue);
}

.energo-blog-article-single__toc-link.is-active:hover {
	background: rgba(0, 140, 230, 0.1);
	color: var(--energo-blue);
}

.energo-blog-article-single__text {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-blog-article-single__text> :first-child {
	margin-top: 0;
}

.energo-blog-article-single__text> :last-child {
	margin-bottom: 0;
}

.energo-blog-article-single__text p {
	margin: 0 0 1.25em;
}

.energo-blog-article-single__text h2 {
	margin: 0 0 0.75em;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
	scroll-margin-top: var(--article-toc-sticky-top, 124px);
}

.energo-blog-article-single__text h3 {
	margin: 0 0 0.75em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-blog-article-single__text h4,
.energo-blog-article-single__text h5,
.energo-blog-article-single__text h6 {
	margin: 0 0 0.75em;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-blog-article-single__text a {
	color: var(--energo-blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.energo-blog-article-single__text a:hover {
	color: var(--energo-text);
}

.energo-blog-article-single__text>h2:not(:first-child) {
	margin-top: 1.875em;
}

.energo-blog-article-single__text ul,
.energo-blog-article-single__text ol {
	margin: 0 0 1.25em;
	padding: 0;
	list-style: none;
}

.energo-blog-article-single__text ol {
	counter-reset: energo-article-step;
}

.energo-blog-article-single__text ol>li {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin: 0;
	padding: 0;
	counter-increment: energo-article-step;
}

.energo-blog-article-single__text ol>li+li {
	margin-top: 20px;
}

.energo-blog-article-single__text ol>li::before {
	content: counter(energo-article-step);
	flex: 0 0 21px;
	width: 21px;
	height: 21px;
	border-radius: 3px;
	background: var(--energo-blue);
	font-size: 11px;
	font-weight: 500;
	line-height: 21px;
	text-align: center;
	color: var(--energo-text);
}

.energo-blog-article-single__text ol>li strong {
	display: block;
	margin-bottom: 5px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-blog-article-single__text ul>li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin: 0;
	padding: 0 0 0 35px;
	min-height: 20px;
}

.energo-blog-article-single__text ul>li+li {
	margin-top: 20px;
}

.energo-blog-article-single__text ul>li::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	background: var(--energo-blue);
}

.energo-blog-article-single__text ul>li::after {
	content: '';
	position: absolute;
	top: 5px;
	left: 4px;
	width: 12px;
	height: 10px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.2 8.4L11 1.6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.energo-blog-article-single__text .wp-block-image,
.energo-blog-article-single__text figure {
	margin: 0 0 1.25em;
}

.energo-blog-article-single__text .wp-block-image img,
.energo-blog-article-single__text figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--energo-radius-lg);
}

.energo-blog-article-single__text figcaption,
.energo-blog-article-single__text .wp-element-caption {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--energo-muted);
	text-align: left;
}

.energo-article-tip,
.energo-blog-article-single__text .wp-block-group.is-style-energo-article-tip {
	margin: 1.875em 0;
	padding: 40px;
	border-radius: var(--energo-radius-lg);
	background: rgba(0, 140, 230, 0.2);
}

.energo-article-tip__title,
.energo-blog-article-single__text .wp-block-group.is-style-energo-article-tip> :is(h2, h3, h4, p):first-child {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-text);
}

.energo-article-tip__text> :last-child,
.energo-blog-article-single__text .wp-block-group.is-style-energo-article-tip> :last-child {
	margin-bottom: 0;
}

.energo-article-cta {
	overflow: hidden;
	border-radius: var(--energo-radius-lg);
	background: var(--energo-text);
	margin-bottom: 20px;
}

.energo-article-cta__layout {
	display: flex;
	align-items: stretch;
}

.energo-article-cta--bottom .energo-article-cta__layout {
	align-items: stretch;
	min-height: 373px;
}

.energo-article-cta__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 40px;
	box-sizing: border-box;
}

.energo-article-cta--bottom .energo-article-cta__content {
	justify-content: center;
	gap: 40px;
	max-width: 570px;
	padding: 60px;
}

.energo-article-cta--bottom .energo-article-cta__copy {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.energo-article-cta__title {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--energo-bg) !important;
}

.energo-article-cta--bottom .energo-article-cta__title {
	margin: 0;
}

.energo-article-cta__text {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--energo-bg);
}

.energo-article-cta--bottom .energo-article-cta__text {
	margin: 0;
}

.energo-article-cta--bottom .energo-article-cta__btn {
	margin: 0;
}

.energo-article-cta__btn {
	align-self: flex-start;
	font-size: 16px;
}

.energo-article-cta__media {
	flex: 0 0 420px;
	max-width: 420px;
}

.energo-article-cta--bottom .energo-article-cta__media {
	flex: 0 0 730px;
	max-width: 730px;
	min-height: 373px;
}

.energo-article-cta__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 278px;
	object-fit: cover;
}

.energo-article-cta--bottom .energo-article-cta__media img {
	min-height: 373px;
}

.energo-blog-article-single__bottom-cta {
	padding-top: 70px;
}

.energo-blog-article-single .energo-blog-section--related {
	padding-top: 70px;
}

@media (min-width: 1200px) {
	.energo-blog-article-single__toc {
		position: sticky;
		top: var(--article-toc-sticky-top, 124px);
	}
}

@media (max-width: 1199.98px) {
	.energo-blog-article-single__layout {
		flex-direction: column;
		gap: 40px;
	}

	.energo-blog-article-single__toc-col {
		order: -1;
	}

	.energo-blog-article-single__content-col,
	.energo-blog-article-single__toc-col {
		flex-basis: auto;
		width: 100%;
		max-width: none;
	}

	.energo-article-cta__layout {
		flex-direction: column;
	}

	.energo-article-cta__media,
	.energo-article-cta--bottom .energo-article-cta__media {
		flex-basis: auto;
		max-width: none;
		min-height: 220px;
	}
}

@media (max-width: 767.98px) {
	.energo-blog-article-single {
		padding-bottom: 48px;
	}

	.energo-blog-article-single__head {
		padding: 32px 0 24px;
	}

	.energo-blog-article-single__hero {
		margin-bottom: 24px;
	}

	.energo-blog-article-single__title {
		font-size: 28px;
	}

	.energo-article-cta__content,
	.energo-article-cta--bottom .energo-article-cta__content {
		padding: 24px;
	}

	.energo-article-cta__title {
		font-size: 22px;
	}

	.energo-article-tip,
	.energo-blog-article-single__text .wp-block-group.is-style-energo-article-tip {
		padding: 24px;
	}

	.energo-blog-article-single__bottom-cta,
	.energo-blog-article-single .energo-blog-section--related {
		padding-top: 48px;
	}

	.energo-article-cta__media,
	.energo-article-cta--bottom .energo-article-cta__media,
	.energo-article-cta--bottom .energo-article-cta__media img {
		min-height: 1px;
		max-height: 160px;
	}

		.energo-article-cta--bottom .energo-article-cta__media img {
			object-fit: contain;
		}
}