.home-section--testimonials,
.tbt-testimonials {
	--tbt-ink: #1a1a1a;
	--tbt-muted: #6b6560;
	--tbt-soft: #ffffff;
	--tbt-card: #ffffff;
	--tbt-line: #e8e8e8;
	--tbt-accent: #ffc381;
	--tbt-star: #e0a54a;
	--tbt-quote: #c4b5a0;
	background: #ffffff !important;
	background-color: #ffffff !important;
}

.tbt-testimonials {
	padding: 40px 0 48px;
	overflow: hidden;
}

.tbt-testimonials__header {
	width: min(88.6%, 1272px);
	margin: 0 auto 28px;
	padding: 0;
	text-align: center;
	background: transparent !important;
	background-color: transparent !important;
	border: 0;
	box-shadow: none;
	position: static !important;
	top: auto !important;
	z-index: auto !important;
}

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

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

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

.tbt-testimonials__title {
	margin: 0;
	padding: 0;
	font-weight: 400;
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--tbt-ink);
	background: transparent !important;
}

.tbt-marquee {
	position: relative;
	background: transparent;
}

.tbt-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);
}

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

.tbt-marquee__group {
	display: flex;
	gap: 16px;
	flex: 0 0 auto;
	align-items: stretch;
}

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

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

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

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

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

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

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

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

.tbt-card__person {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	min-width: 0;
	width: 100%;
}

.tbt-card__avatar {
	width: 42px !important;
	height: 42px !important;
	max-width: 42px !important;
	min-width: 42px !important;
	max-height: 42px !important;
	flex: 0 0 42px !important;
	border-radius: 50% !important;
	background-color: #f3f3f3 !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	border: 1px solid var(--tbt-line) !important;
	display: inline-block !important;
	aspect-ratio: 1 / 1 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.tbt-card__meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.tbt-card__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--tbt-ink);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tbt-card__role {
	font-size: 0.75rem;
	color: var(--tbt-muted);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

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

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

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

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

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

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