/**
 * Блок новостей на главной — стиль ТСК
 * Под шапку/карточки товаров: аккуратные карточки, акцент #fcb514.
 */

.tsk-news {
	max-width: 1366px;
	margin: 60px auto;
	box-sizing: border-box;
	font-family: "Montserrat", Arial, sans-serif;
}

.tsk-news__header {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
	margin-bottom: 18px;
}

.tsk-news__slider-wrap {
	position: relative;
	overflow: hidden;
	padding: 4px 0;
}

.tsk-news__slider {
	padding: 0;
	width: 100%;
}

.tsk-news__card {
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid transparent;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	box-sizing: border-box;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		transform 0.15s ease,
		background-color 0.15s ease;
}

.tsk-news__card:hover {
	border-color: rgba(255, 204, 51, 0.3);
	background-color: #ffffff;
	box-shadow: 0 4px 16px rgba(255, 204, 51, 0.2);
	transform: translateY(-2px);
}

.tsk-news__card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	flex: 1;
}

.tsk-news__image {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: transparent;
	border-radius: 12px;
}

.tsk-news__image img {
	width: 100%;
	max-width: 267px;
	height: auto;
	max-height: 400px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

/* градиенты для новостей удалены */

.tsk-news__content {
	position: relative;
	padding: 14px 14px 12px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-height: 150px;
}

.tsk-news__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
}

.tsk-news__date {
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
	font-weight: 500;
}

.tsk-news__card-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	color: #111827;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 2.8em;
}

.tsk-news__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #4b5563;
	max-height: 3.1em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tsk-news__more {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	min-height: 38px;
	padding: 8px 16px;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	font-family: "Montserrat", sans-serif;
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	background: #f9fafb;
	color: #1f2937;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	white-space: nowrap;
	line-height: 1.2;
	gap: 6px;
	transition:
		background 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease,
		opacity 0.25s ease,
		transform 0.2s ease;
}

.tsk-news__more:hover {
	background: #ffffff;
	border-color: #d1d5db;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.tsk-news__more:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tsk-news__more:focus {
	outline: none;
}

.tsk-news__more:focus-visible {
	outline: 2px solid #ffcc33;
	outline-offset: 2px;
}

/* Таб в шапке блока (если используется SetViewTarget) */
.tsk-news-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.tsk-news-tab a {
	color: inherit;
	text-decoration: none;
}

.tsk-news-tab a:hover {
	text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
	.tsk-news {
		margin-top: 30px;
	}

	.tsk-news__card {
		/* Ширину слайдов контролирует Swiper, чтобы корректно работал loop на мобильных */
		flex: 0 0 auto;
	}
}

@media (max-width: 768px) {
	.tsk-news__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tsk-news__card {
		/* Ширину слайдов контролирует Swiper, чтобы корректно работал loop на мобильных */
		flex: 0 0 auto;
	}
}

@media (max-width: 576px) {
	.tsk-news {
		padding-inline: 12px;
	}

	.tsk-news__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.tsk-news__nav {
		align-self: flex-start;
	}

	.tsk-news__card {
		/* Ширину слайдов контролирует Swiper, чтобы корректно работал loop на мобильных */
		flex: 0 0 auto;
	}

	.tsk-news__image {
		/* на мобильных допускаем чуть меньшую высоту за счёт сжатия по ширине */
	}
}

.tsk-news__content {
	padding: 10px 10px 10px;
}
