/* =========================================================
   Resort Catalog — фронтенд
   ========================================================= */

.rc-section {
	--rc-accent: #b0692c;
	--rc-accent-light: #c9803e;
	--rc-dark: #22201d;
	--rc-card: #ffffff;
	--rc-text: #2b2926;
	--rc-muted: #6b6560;
	--rc-radius: 4px;
	--rc-bg-image: none;

	position: relative;
	box-sizing: border-box;
	padding: 72px 20px 84px;
	background-color: var(--rc-dark);
	background-image: var(--rc-bg-image);
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
	color: #fff;
	overflow: hidden;
	font-family: inherit;
}

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

.rc-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 18, 16, .82), rgba(20, 18, 16, .92));
	pointer-events: none;
}

.rc-theme-light {
	--rc-dark: #f3f0eb;
	color: var(--rc-text);
}

.rc-theme-light::before {
	background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .8));
}

.rc-inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
}

/* ---------- Заголовок ---------- */

.rc-kicker {
	text-align: center;
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	opacity: .7;
	margin-bottom: 14px;
}

.rc-title {
	margin: 0 0 34px;
	text-align: center;
	font-size: clamp(26px, 4.2vw, 46px);
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: .01em;
	color: inherit;
}

/* ---------- Табы ---------- */

.rc-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 34px;
}

.rc-tab {
	appearance: none;
	cursor: pointer;
	padding: 11px 20px;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .82);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--rc-radius);
	transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
	line-height: 1.2;
}

.rc-tab:hover {
	background: rgba(255, 255, 255, .13);
	border-color: rgba(255, 255, 255, .38);
	color: #fff;
}

.rc-tab.is-active {
	background: var(--rc-accent);
	border-color: var(--rc-accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(176, 105, 44, .35);
}

.rc-tab:focus-visible {
	outline: 2px solid var(--rc-accent-light);
	outline-offset: 3px;
}

.rc-theme-light .rc-tab {
	color: #4b4640;
	background: rgba(0, 0, 0, .04);
	border-color: rgba(0, 0, 0, .14);
}

.rc-theme-light .rc-tab.is-active {
	color: #fff;
	background: var(--rc-accent);
	border-color: var(--rc-accent);
}

/* ---------- Панели ---------- */

.rc-panel {
	animation: rc-fade .38s ease both;
}

.rc-panel[hidden] {
	display: none;
}

@keyframes rc-fade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.rc-card {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 38px;
	background: var(--rc-card);
	color: var(--rc-text);
	padding: 26px;
	border-radius: var(--rc-radius);
	box-shadow: 0 26px 60px rgba(0, 0, 0, .35);
}

/* ---------- Слайдер ---------- */

.rc-media {
	min-width: 0;
}

.rc-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--rc-radius);
	background: #e9e6e1;
	touch-action: pan-y;
}

.rc-slides {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.rc-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease;
}

.rc-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.rc-slide img,
.rc-slide .rc-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	margin: 0;
	max-width: none;
}

.rc-slide--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a938b;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Стрелки */

.rc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(20, 18, 16, .42);
	backdrop-filter: blur(3px);
	transition: background .2s ease, opacity .2s ease, transform .2s ease;
	opacity: 0;
}

.rc-slider:hover .rc-arrow,
.rc-arrow:focus-visible {
	opacity: 1;
}

.rc-arrow:hover {
	background: var(--rc-accent);
}

.rc-arrow svg {
	width: 20px;
	height: 20px;
	display: block;
}

.rc-arrow--prev { left: 12px; }
.rc-arrow--next { right: 12px; }

/* Счётчик */

.rc-counter {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	padding: 5px 11px;
	font-size: 11px;
	letter-spacing: .08em;
	color: #fff;
	background: rgba(20, 18, 16, .5);
	border-radius: 40px;
	backdrop-filter: blur(3px);
}

/* Точки */

.rc-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 7px;
}

.rc-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
	transition: width .25s ease, background .25s ease;
}

.rc-dot.is-active {
	width: 22px;
	border-radius: 40px;
	background: var(--rc-accent-light);
}

/* ---------- Контент ---------- */

.rc-content {
	min-width: 0;
	padding: 8px 6px 8px 0;
}

.rc-h3 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rc-accent-light);
}

.rc-h3--prices {
	margin-top: 30px;
}

.rc-desc {
	font-size: 14px;
	line-height: 1.75;
	color: var(--rc-muted);
}

.rc-desc p {
	margin: 0 0 10px;
}

.rc-desc p:last-child {
	margin-bottom: 0;
}

.rc-prices {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-prices li {
	position: relative;
	padding: 0 0 0 18px;
	margin-bottom: 12px;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rc-text);
}

.rc-prices li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rc-accent-light);
}

.rc-prices li:last-child {
	margin-bottom: 0;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
	.rc-card {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 18px;
	}

	.rc-content {
		padding: 0;
	}

	.rc-h3--prices {
		margin-top: 24px;
	}

	.rc-arrow {
		opacity: 1;
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 640px) {
	.rc-section {
		padding: 48px 14px 56px;
	}

	.rc-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.rc-tabs::-webkit-scrollbar {
		display: none;
	}

	.rc-tab {
		flex: 0 0 auto;
		padding: 10px 15px;
		font-size: 10px;
	}

	.rc-slides {
		aspect-ratio: 3 / 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rc-section *,
	.rc-panel {
		animation: none !important;
		transition: none !important;
	}
}
