.box_style_1 {
	-webkit-box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 10%);
	-moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
	box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 10%);
	border: 0;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.tags a {
	display: inline-block;
	margin: 5px;
	height: 33px;
	line-height: 33px;
	background: #ededed;
	padding: 0 11px;
	color: var(--text-secondary);
	border-radius: 20px;
	transition: background .2s ease;
}

.tags a:hover {
	background-color: var(--primary-color);
	color: #fff;
	text-decoration: none;
}

#cat_blog ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget h4 {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 14px;
}

#cat_blog ul li a {
	border-bottom: 1px solid #ededed;
	padding: 10px 0;
	display: block;
	color: #333;
}

#cat_blog ul li:last-child a {
	border-bottom: none;
	padding-bottom: 0;
}

#cat_blog ul li a:hover {
	color: #e04f67;
}

ul.recent_post {
	margin: 0;
	padding: 0;
}

ul.recent_post li {
	margin-bottom: 15px;
	border-bottom: 1px #e7e7e7 dotted;
	list-style: none;
	line-height: 18px;
	padding-bottom: 15px;
	color: #888;
	font-style: italic;
}

ul.recent_post li div {
	padding-left: 25px;
	font-style: normal
}

ul.recent_post li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.post {
	margin-bottom: 45px;
}

.post h2 {
	font-size: 22px;
}

.post img {
	margin-bottom: 10px;
}

.post_info {
	font-size: 13px;
	padding: 10px 0 0 10px;
	border-bottom: 1px var(--secondary-color) dashed;
	border-top: 1px var(--secondary-color) dashed;
	margin-bottom: 12px;
	color: var(--secondary-color);
}

.post_info a {
	color: var(--card-bg);
	background-color: var(--secondary-color);
	border: 1px solid var(--secondary-color);
	border-radius: 4px;
	padding: 1px 5px;
}

.post_info a:hover {
	border: 1px solid var(--secondary-color);
	background-color: transparent;
	color: var(--secondary-color);
}

.post_info span {
	color: #f84236;
}

.post-left {
	float: left;
}

.post-left ul {
	margin-left: 0;
	padding-left: 0;

}

.post-left ul li {
	float: left;
	margin-right: 10px;
	list-style: none;
	display: block;
	line-height: 2.1;
}

.post-right {
	float: right;
}

#comments {
	padding: 10px 0 0 0;
	margin-bottom: 15px;
}

#comments ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#comments ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

#comments li {
	padding: 0 0 23px 0;
	list-style: none;
}

.avatar {
	float: left;
	margin-right: 11px;

}

.avatar img {
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.comment_right {
	display: table;
}

.comment_info {
	padding-bottom: 7px;
}

.comment_info span {
	padding: 0 12px;
}

#comments ol li ul li {
	padding: 23px 0 0 30px;
	margin: 0;
}

/* From tablet portrait to mobile */
@media (max-width: 767px) {
	.post-right {
		float: none;
	}

	.post-left ul li {
		float: none;
		margin-right: 0;
		margin-bottom: 3px;
	}

}

/* ── Article Sidebar ── */
.article-sidebar {
	padding-left: 25px;
}

.article-sidebar .widget {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #ededed;
}

.article-sidebar .widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* Latest Articles widget */
.widget-latest-articles__item {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px dotted #e0e0e0;
}

.widget-latest-articles__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.widget-latest-articles__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 6px;
}

.widget-latest-articles__title a {
	color: var(--secondary-color, #e04f67);
	text-decoration: none;
	transition: color 0.2s;
}

.widget-latest-articles__title a:hover {
	color: #333;
	text-decoration: underline;
}

.widget-latest-articles__excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: #666;
	margin: 0;
}

/* Tags widget */
.widget-tags .tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.widget-tags .tags a {
	margin: 0;
	font-size: 13px;
	height: 30px;
	line-height: 30px;
	padding: 0 10px;
}

@media (max-width: 991px) {
	.article-sidebar {
		padding-left: 15px;
		padding-right: 15px;
		margin-top: 30px;
	}
}

/* ── Guide: Table of Contents ── */
.guide-toc {
	padding: 10px 15px;
	margin: 15px 15px;
}

.guide-toc h3 {
	font-size: 1.5rem;
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 0 12px;
	color: var(--secondary-color);
}

.guide-toc__list {
    margin: 0;
    padding: 0; /* Убираем стандартный отступ, так как будем позиционировать сами */
    list-style-position: inside; /* Либо полностью кастомно через flex */
}

.guide-toc__list {
    margin: 0;
    padding: 0;
    list-style: none; /* Отключаем стандартные цифры */
    counter-reset: toc-counter; /* Создаем свой счетчик */
}

.guide-toc__list li {
    counter-increment: toc-counter; /* Увеличиваем счетчик для каждого li */
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.4;
}

.guide-toc__list li::before {
    content: counter(toc-counter) ". ";
    flex-shrink: 0;
    margin-right: 5px;
    color: var(--primary-color);
    text-align: left;

}

.guide-toc__list li a {
    display: inline-block;
    text-decoration: none;
    color: inherit; /* Наследует цвет от li */
    transition: transform 0.2s ease, color 0.2s ease;
}

.guide-toc__list li a:hover {
    color: var(--primary-color-hover);
    transform: translateX(5px);
}

/* ── Guide: Sections ── */
.guide-section {
	margin: 35px 0;
	padding-top: 15px;
	border-top: 1px solid #eee;
	scroll-margin-top: 80px;
}

.guide-section h2 {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--secondary-color);
}

.guide-section__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.guide-section__figure {
	margin: 0;
}

.guide-section__figure img {
	width: 100%;
	height: auto;
	border-radius: 5px;
	display: block;
}

.guide-section__figure figcaption {
	font-size: 13px;
	color: var(--text-secondary);
	text-align: center;
	margin-top: 6px;
	font-style: italic;
}

@media (max-width: 767px) {
	.guide-section__gallery {
		grid-template-columns: 1fr;
	}
	.guide-toc {
	padding: 10px 3px;
	margin: 5px 3px;
}
	.guide-toc__list li {
		font-size: 1rem;
	}
	.guide-section h2 {
	font-size: 1.7rem;
	margin-right: 0;
}
}

/* =========================================
   SliderPro Optimizations for Articles
   ========================================= */

/* Touch handling optimizations for slider to avoid scroll-blocking listeners */
/* Allow vertical page scroll while enabling horizontal swipe on the slider */
.slider-pro,
.slider-pro .sp-slides,
.slider-pro .sp-slide,
.slider-pro .sp-thumbnails,
.slider-pro .sp-thumbnail,
#Img_carousel,
.section-slider {
	touch-action: pan-y;
	-ms-touch-action: pan-y;
}

/* Force thumbnails to fill container with object-fit */
.slider-pro .sp-thumbnail-container,
.slider-pro .sp-thumbnail {
	overflow: hidden;
}

.slider-pro .sp-thumbnail img,
.slider-pro .sp-thumbnail-container img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
}

/* Skeleton loader for thumbnails */
@keyframes shimmer {
	0% {
		background-position: -468px 0;
	}

	100% {
		background-position: 468px 0;
	}
}

.slider-pro .sp-thumbnail {
	position: relative;
	background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
	background-size: 600px;
	animation: shimmer 1.5s infinite linear;
}

.slider-pro .sp-thumbnail img {
	opacity: 0;
	transition: opacity 0.3s ease-in;
}

.slider-pro .sp-thumbnail img.sp-loaded {
	opacity: 1;
}

/* Remove skeleton animation once image is loaded */
.slider-pro .sp-thumbnail.sp-thumbnail-loaded {
	animation: none;
	background: #ffffff;
}

/* Skeleton for main slides */
.slider-pro .sp-slide {
	background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
	background-size: 1200px;
	animation: shimmer 1.5s infinite linear;
}

.slider-pro .sp-slide.sp-loaded {
	animation: none;
	background: transparent;
}

/* Dark mode skeleton (optional) */
@media (prefers-color-scheme: dark) {

	.slider-pro .sp-thumbnail,
	.slider-pro .sp-slide {
		background: linear-gradient(90deg, #2a2a2a 0px, #333333 40px, #2a2a2a 80px);
		background-size: 600px;
	}

	.slider-pro .sp-thumbnail.sp-thumbnail-loaded {
		background: #1a1a1a;
	}
}

/* CLS fix: Reserve space for slider before JS loads */
#Img_carousel.sp-no-js,
.section-slider.sp-no-js {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

#Img_carousel.sp-no-js .sp-slides,
.section-slider.sp-no-js .sp-slides {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

/* LCP optimization: Show first slide immediately before JS initializes */
.slider-pro.sp-no-js .sp-slides .sp-slide:first-child {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	visibility: visible !important;
	z-index: 1;
}

.slider-pro.sp-no-js .sp-slides .sp-slide:first-child .sp-image {
	visibility: visible !important;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Hide other slides and thumbnails until JS is ready */
.slider-pro.sp-no-js .sp-slides .sp-slide:not(:first-child) {
	visibility: hidden;
	position: absolute;
}

.slider-pro.sp-no-js .sp-thumbnails {
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

/* =========================================
   Detailed Title & Slider Swap
   ========================================= */

.article-main-title {
	font-size: 2.5rem;
	font-weight: bold;
	text-transform: uppercase;
	padding: 0 0 0 5px;
	line-height: 1;
	margin-bottom: 20px;
	color: var(--secondary-color);
}

/* Hide LCP image when slider is ready */
.slider-wrapper-ready .lcp-hero-image-wrapper {
	display: none;
}

/* Hide slider until it's ready, show LCP image instead */
.article-slider-wrapper:not(.slider-wrapper-ready) #Img_carousel {
	position: absolute;
	visibility: hidden;
	height: 0;
	overflow: hidden;
}

.article-slider-wrapper.slider-wrapper-ready #Img_carousel {
	position: relative;
	visibility: visible;
	height: auto;
}
.article-main-column p {
	font-size: 1.1rem;
}
.article-main-column section li {
	font-size: 1.1rem;
}

/* ── Single-image display (no slider) ── */
.article-single-image,
.section-single-image {
    width: 100%;
    display: block;
}

.article-single-image img,
.section-single-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Ensure carousel doesn't overflow on mobile */
@media (max-width: 991px) {
	.article-main-title {
		font-size: 1.8rem;
		font-weight: 700;
		padding-top: 55px;
		/* Использовать padding вместо margin, чтобы отступ не схлопывался с body/header! */
		margin: 0 0 5px 0;
		line-height: 1.2;
	}

	.article-main-column {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.article-content-wrapper {
		padding-left: 15px;
		padding-right: 15px;
	}

	.article-slider-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: none !important;
	}

	.article-slider-wrapper #Img_carousel,
	.article-slider-wrapper .lcp-hero-image-wrapper,
	.article-slider-wrapper .article-single-image {
		width: 100% !important;
		max-width: none !important;
	}

	.section-slider {
		margin-left: -15px !important;
		margin-right: -15px !important;
		width: calc(100% + 30px) !important;
		max-width: none !important;
	}
}