.related-section-main {
	margin: 80px auto 0;
	padding: 0 20px;
	box-sizing: border-box;
	overflow: hidden;
}

.related-header-main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(212, 168, 67, 0.3);
	padding-bottom: 18px;
}

.related-header-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.related-subtitle {
	font-size: 0.85rem;
	font-weight: 500;
	color: #b0b0b0;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.related-title-main {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.3px;
	margin: 0;
	line-height: 1.15;
	text-transform: uppercase;
}

.related-title-main .accent {
	color: #d4a843;
}

.all-articles-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #d4a843;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	transition: color 0.25s, gap 0.25s;
	white-space: nowrap;
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
	flex-shrink: 0;
}

.all-articles-link:hover {
	color: #f0c45a;
	gap: 12px;
	border-bottom-color: #f0c45a;
}

.all-articles-link .arrow {
	font-size: 1.1rem;
	transition: transform 0.25s;
}

.all-articles-link:hover .arrow {
	transform: translateX(3px);
}

/* === КОНТЕЙНЕР С КАРУСЕЛЬЮ И СТРЕЛКАМИ === */
.carousel-outer-main {
	position: relative;
}
.swiper-wrapper {height:350px !important;}
/* Стрелки внутри контейнера, по центру карточек */
.swiper-nav-main {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	pointer-events: none;
}

.swiper-nav-main.prev-main {
	left: -20px;
}

.swiper-nav-main.next-main {
	right: -20px;
}

.swiper-button-prev-main,
.swiper-button-next-main {
	width: 42px;
	height: 42px;
	min-width: 42px;
	background: #1e1e1e;
	border: 1px solid #3a3a3a;
	border-radius: 50%;
	color: #d4a843;
	transition: all 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	pointer-events: auto;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.swiper-button-prev-main:hover,
.swiper-button-next-main:hover {
	background: #2a2a2a;
	border-color: #d4a843;
}

.swiper-button-prev-main::after,
.swiper-button-next-main::after {
	font-size: 1rem;
	font-weight: 700;
}

/* === SWIPER === */
.swiper-main {
	padding: 6px 12px 44px;
	margin: 0 -12px;
}

.swiper-slide {
	height: auto;
	display: flex;
}

/* === КАРТОЧКА СТАТЬИ — ТЁМНАЯ === */
.carousel-card-main {
	background: #161616;
	border: 1px solid #2a2a2a;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
	-webkit-tap-highlight-color: transparent;
}

.carousel-card-main:hover {
	border-color: #d4a843;
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(212, 168, 67, 0.12);
}

.carousel-card-main:active {
	transform: scale(0.98);
}

/* === ИЗОБРАЖЕНИЕ === */
.carousel-img-main {
	height: 300px;
	width: 100%;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}

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

/* Категория поверх картинки */
.card-category-main {
	position: absolute;
	top: 14px;
	left: 14px;
	background-color: #d4a843;
	color: #0f0f0f;
	padding: 5px 12px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	border-radius: 2px;
}

/* === ТЕЛО КАРТОЧКИ === */
.carousel-body-main {
	padding: 18px 18px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.carousel-date-main {
	font-size: 0.75rem;
	color: #888;
	letter-spacing: 0.4px;
	margin-bottom: 8px;
}

.carousel-card-title-main {
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1.4;
	margin-bottom: 10px;
	color: #ffffff;
	transition: color 0.2s;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.carousel-card-main:hover .carousel-card-title-main {
	color: #d4a843;
}

.carousel-excerpt-main {
	font-size: 0.85rem;
	color: #b0b0b0;
	line-height: 1.55;
	margin-bottom: 14px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.carousel-read-more-main {
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #d4a843;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	transition: gap 0.25s;
}

.carousel-card-main:hover .carousel-read-more-main {
	gap: 10px;
}

/* === ПАГИНАЦИЯ === */
.swiper-pagination-main {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #444;
	opacity: 1;
	transition: background 0.25s, width 0.25s;
	border-radius: 5px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.swiper-pagination-bullet-active {
	background: #d4a843;
	width: 26px;
}

/* === АДАПТИВ === */
@media (max-width: 374px) {
	.related-section-main {
		padding: 0 12px;
		margin-top: 40px;
	}
	.carousel-img-main {
		height: 170px;
	}
	.carousel-card-title-main {
		font-size: 0.95rem;
	}
	.swiper-button-prev-main,
	.swiper-button-next-main {
		width: 34px;
		height: 34px;
		min-width: 34px;
	}
	.swiper-nav-main.prev-main {
		left: -14px;
	}
	.swiper-nav-main.next-main {
		right: -14px;
	}
}

@media (min-width: 375px) and (max-width: 579px) {
	.carousel-img-main {
		height: 190px;
	}
}

@media (min-width: 580px) and (max-width: 859px) {
	.carousel-img-main {
		height: 205px;
	}
}

@media (min-width: 860px) {
	.carousel-img-main {
		height: 220px;
	}
}

/* На тач-устройствах скрываем стрелки */
@media (hover: none) and (pointer: coarse) {
	.swiper-nav-main {
		display: none;
	}
	.swiper-pagination-bullet {
		width: 12px;
		height: 12px;
	}
	.swiper-pagination-bullet-active {
		width: 28px;
	}
}