.rtc {
	--rtc-primary: #06435c;
	--rtc-accent: #e0a23f;
	clear: both;
	margin: 36px 0;
	padding: 22px 0 18px;
	font-family: inherit;
	line-height: 1.4;
	color: #1d2b33;
}

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

.rtc__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
}

.rtc__head::before {
	content: "";
	flex: 0 0 5px;
	align-self: stretch;
	min-height: 26px;
	background: var(--rtc-accent);
	border-radius: 3px;
}

.rtc__title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--rtc-primary);
}

.rtc__wrap {
	position: relative;
}

.rtc__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 4px 2px 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.rtc__track::-webkit-scrollbar {
	display: none;
}

.rtc__track:focus-visible {
	outline: 3px solid var(--rtc-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

.rtc-card {
	flex: 0 0 calc((100% - 32px) / 3);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e3eaef;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(6, 67, 92, 0.08);
	scroll-snap-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rtc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(6, 67, 92, 0.16);
}

.rtc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9eff3;
}

.rtc-card__img,
.rtc .rtc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rtc-card:hover .rtc-card__media img {
	transform: scale(1.05);
}

.rtc-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0b5f80, var(--rtc-primary));
}

.rtc-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: rgba(6, 67, 92, 0.88);
	border-radius: 999px;
}

.rtc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	padding: 14px 14px 16px;
}

.rtc .rtc-card__name {
	display: -webkit-box;
	min-height: 2.7em;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rtc-primary);
	text-decoration: none;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.rtc .rtc-card__name:hover {
	text-decoration: underline;
}

.rtc-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.rtc-card__price {
	font-size: 13px;
	color: #5b6b75;
}

.rtc-card__price strong {
	display: block;
	font-size: 20px;
	line-height: 1.1;
	color: var(--rtc-primary);
}

.rtc .rtc-card__btn {
	display: inline-block;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #1d2b33;
	text-decoration: none;
	white-space: nowrap;
	background: var(--rtc-accent);
	border-radius: 999px;
	transition: filter 0.15s ease;
}

.rtc .rtc-card__btn:hover {
	filter: brightness(0.93);
}

.rtc a:focus-visible,
.rtc button:focus-visible {
	outline: 3px solid var(--rtc-accent);
	outline-offset: 2px;
}

.rtc__nav {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--rtc-primary);
	cursor: pointer;
	background: #fff;
	border: 1px solid #dbe4ea;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(6, 67, 92, 0.2);
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.rtc__nav:hover:not(:disabled) {
	color: #fff;
	background: var(--rtc-primary);
}

.rtc__nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.rtc__nav--prev {
	left: -14px;
}

.rtc__nav--next {
	right: -14px;
}

.rtc__dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 2px;
}

.rtc__dot {
	width: 8px;
	height: 8px;
	background: #c9d5dc;
	border-radius: 50%;
	transition: width 0.2s ease, background 0.2s ease;
}

.rtc__dot.is-active {
	width: 22px;
	background: var(--rtc-primary);
	border-radius: 999px;
}

.rtc.is-static .rtc__nav,
.rtc.is-static .rtc__dots {
	display: none;
}

/* Tablet: 2 cards */
@media (max-width: 900px) {
	.rtc-card {
		flex-basis: calc((100% - 16px) / 2);
	}
}

/* Phone: one card + a peek of the next, swipe */
@media (max-width: 600px) {
	.rtc {
		margin: 28px 0;
	}

	.rtc__title {
		font-size: 19px;
	}

	.rtc__track {
		gap: 12px;
		scroll-padding-left: 2px;
	}

	.rtc-card {
		flex-basis: 82%;
	}

	.rtc__nav {
		display: none;
	}
}

@media (hover: none) {
	.rtc__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rtc__track {
		scroll-behavior: auto;
	}

	.rtc-card,
	.rtc-card__media img {
		transition: none;
	}
}
