.pst-testimonials {
	--pst-ink: #1a1a1a;
	--pst-muted: #6b6560;
	--pst-soft: #f1eee4;
	--pst-card: #ffffff;
	--pst-line: #e4dfd4;
	--pst-accent: #c4a574;
	--pst-star: #d4a017;
	--pst-quote: #a89b88;
	padding: 40px 0 48px;
	background: var(--pst-soft);
	overflow: hidden;
}

.pst-testimonials__header {
	width: min(88.6%, 1272px);
	margin: 0 auto 28px;
	text-align: center;
}

.pst-testimonials__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--pst-line);
	margin-bottom: 14px;
}

.pst-testimonials__badge-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--pst-star);
	line-height: 0;
}

.pst-testimonials__badge-text {
	font-size: 0.75rem;
	color: var(--pst-muted);
	font-weight: 500;
}

.pst-testimonials__title {
	margin: 0;
	font-weight: 400;
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--pst-ink);
}

.pst-marquee {
	position: relative;
}

.pst-marquee__viewport {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.pst-marquee__track {
	display: flex;
	width: max-content;
	gap: 16px;
	padding: 4px 0;
	animation: pst-marquee-scroll var(--pst-speed, 40s) linear infinite;
	will-change: transform;
}

.pst-marquee__group {
	display: flex;
	gap: 16px;
	flex: 0 0 auto;
}

.pst-marquee:hover .pst-marquee__track {
	animation-play-state: paused;
}

@keyframes pst-marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(var(--pst-shift, 50%), 0, 0);
	}
}

.pst-card {
	flex: 0 0 auto;
	width: min(320px, 78vw);
	background: var(--pst-card);
	border: 1px solid var(--pst-line);
	border-radius: 16px;
	padding: 18px 18px 16px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 210px;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
}

.pst-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.pst-card__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--pst-star);
	line-height: 0;
}

.pst-card__stars .is-off {
	color: #d8d2c6;
}

.pst-card__quote {
	color: var(--pst-quote);
	opacity: 0.85;
	line-height: 0;
	flex-shrink: 0;
}

.pst-card__text {
	margin: 0;
	flex: 1 1 auto;
	font-size: 0.875rem;
	line-height: 1.8;
	color: var(--pst-ink);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pst-card__person {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}

.pst-card__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--pst-soft);
	border: 1px solid var(--pst-line);
	flex-shrink: 0;
}

.pst-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pst-card__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pst-ink);
	line-height: 1.3;
}

.pst-card__role {
	font-size: 0.75rem;
	color: var(--pst-muted);
	line-height: 1.3;
}

@media (min-width: 769px) {
	.pst-testimonials {
		padding: 56px 0 64px;
	}

	.pst-testimonials__header {
		margin-bottom: 36px;
	}

	.pst-testimonials__title {
		font-size: 1.75rem;
	}

	.pst-card {
		width: 340px;
		min-height: 230px;
		padding: 20px 20px 18px;
	}

	.pst-marquee__track,
	.pst-marquee__group {
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pst-marquee__track {
		animation: none;
		flex-wrap: wrap;
		width: min(88.6%, 1272px);
		margin: 0 auto;
		justify-content: center;
	}

	.pst-marquee__group[aria-hidden="true"] {
		display: none;
	}
}
