/* News — новости на главной */
.news {
	--news-card-width: 340px;
	--news-gap: 24px;
	padding: 48px 0 56px;
}

.news__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 28px;
}

.news__title {
	margin: 0;
	text-align: left;
}

.news__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.news__archive-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3fa8a3;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.news__archive-link svg {
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.news__archive-link:hover {
	color: var(--medik-accent-dark, #3da8a3);
	gap: 10px;
}

.news__nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.news__arrow {
	display: flex;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--medik-brand, #5f2281);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.news__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.news__arrow:not(:disabled):hover {
	transform: scale(1.06);
	color: var(--medik-accent-dark, #3da8a3);
}

.news__arrow-bg {
	fill: var(--medik-white, #fff);
}

.news__arrow path:last-child {
	fill: var(--medik-brand, #5f2281);
}

.news__stage {
	position: relative;
}

.news__viewport {
	overflow: hidden;
	padding: 6px 2px 14px;
}

.news__track {
	display: flex;
	gap: var(--news-gap);
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	will-change: transform;
}

.news__stage.is-dragging .news__track {
	transition: none;
	cursor: grabbing;
}

.news__slide {
	flex: 0 0 var(--news-card-width);
	min-width: 0;
}

/* Карточка */
.item_news {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--medik-white, #fff);
	border: 1px solid var(--medik-gray-200, #e3eeed);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(46, 61, 60, 0.07);
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.item_news:hover {
	border-color: var(--medik-accent, #47aaa5);
	box-shadow: 0 14px 36px rgba(94, 199, 194, 0.2);
	transform: translateY(-4px);
}

.item_news__top {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.item_news__img {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--medik-gray-100, #f5faf9);
}

.item_news__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.item_news:hover .item_news__img img {
	transform: scale(1.06);
}

.item_news__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(46, 61, 60, 0) 50%, rgba(46, 61, 60, 0.45) 100%);
	pointer-events: none;
}

.item_news__date {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 1;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--medik-text, #2e3d3c);
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
}

.item_news__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 18px;
}

.item_news__title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
}

.item_news__title a {
	color: var(--medik-text, #2e3d3c);
	text-decoration: none;
	transition: color 0.2s ease;
}

.item_news__title a:hover {
	color: var(--medik-brand, #5f2281);
}

.item_news__text {
	flex: 1;
	margin-bottom: 14px;
}

.item_news__text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--medik-gray-600, #6b7c7b);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.item_news__btn_wr {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--medik-gray-100, #f0f5f4);
}

.item_news__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--medik-accent-dark, #3da8a3);
	text-decoration: none;
	transition: gap 0.2s ease, color 0.2s ease;
}

.item_news__more svg {
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	transition: transform 0.2s ease;
}

.item_news__more:hover {
	color: var(--medik-brand, #5f2281);
	gap: 12px;
}

.item_news__more:hover svg {
	transform: translateX(2px);
}

@media (max-width: 768px) {
	.news {
		padding: 36px 0 44px;
		--news-card-width: min(300px, calc(100vw - 48px));
	}

	.news__title {
		text-align: center;
		width: 100%;
	}

	.news__intro {
		align-items: center;
		width: 100%;
		text-align: center;
	}

	.news__nav {
		margin: 0 auto;
	}
}
