.therapevtries-grid {
	--therapevtries-columns: 3;
	--therapevtries-gap: 24px;
	--therapevtries-accent: #e85c8b;
	display: grid;
	grid-template-columns: repeat(var(--therapevtries-columns), minmax(0, 1fr));
	gap: var(--therapevtries-gap);
}

.therapevtries-carousel-wrap {
	position: relative;
}

.therapevtries-carousel {
	--therapevtries-carousel-slides: 3;
	display: flex;
	grid-template-columns: none;
	gap: var(--therapevtries-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.therapevtries-carousel::-webkit-scrollbar {
	display: none;
}

.therapevtries-grid *,
.therapevtries-grid *::before,
.therapevtries-grid *::after {
	box-sizing: border-box;
}

.therapevtria-card {
	overflow: hidden;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 14px 38px rgba(16, 19, 26, 0.1);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.therapevtries-carousel .therapevtria-card {
	flex: 0 0 calc((100% - (var(--therapevtries-gap) * (var(--therapevtries-carousel-slides) - 1))) / var(--therapevtries-carousel-slides));
	min-width: 0;
	scroll-snap-align: start;
}

.therapevtria-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 50px rgba(16, 19, 26, 0.16);
}

.therapevtria-image {
	display: block;
	height: 300px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(232, 92, 139, 0.18), rgba(118, 177, 255, 0.16));
}

.therapevtria-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 360ms ease;
}

.therapevtria-card:hover .therapevtria-image img {
	transform: scale(1.045);
}

.therapevtria-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)),
		linear-gradient(135deg, #f1dbe6, #d8e7fb);
}

.therapevtria-content {
	padding: 24px;
}

.therapevtria-category {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	margin-bottom: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--therapevtries-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}

.therapevtria-title {
	margin: 0 0 12px;
	color: #17191f;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: 0;
}

.therapevtria-title a {
	color: inherit;
	text-decoration: none;
}

.therapevtria-title a:hover {
	color: var(--therapevtries-accent);
}

.therapevtria-description {
	margin: 0;
	color: #5f6876;
	font-size: 15px;
	line-height: 1.7;
}

.therapevtries-empty {
	padding: 16px;
	border: 1px solid rgba(23, 25, 31, 0.12);
	border-radius: 8px;
	color: #69707d;
}

.therapevtries-carousel-arrows {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	transform: translateY(-50%);
}

.therapevtries-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: #17191f;
	box-shadow: 0 10px 26px rgba(16, 19, 26, 0.18);
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	pointer-events: auto;
	transition: background 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.therapevtries-carousel-prev {
	margin-left: -21px;
}

.therapevtries-carousel-next {
	margin-right: -21px;
}

.therapevtries-carousel-arrow:hover {
	background: var(--therapevtries-accent);
	color: #ffffff;
	transform: scale(1.04);
}

.therapevtries-carousel-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.therapevtries-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.therapevtries-carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(23, 25, 31, 0.25);
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}

.therapevtries-carousel-dot.is-active,
.therapevtries-carousel-dot:hover {
	background: var(--therapevtries-accent);
	transform: scale(1.22);
}

@media (max-width: 767px) {
	.therapevtries-carousel-prev {
		margin-left: 8px;
	}

	.therapevtries-carousel-next {
		margin-right: 8px;
	}
}
