.regions-category-tabs {
	--rct-accent: #960a19;
	--rct-bg: #f3f2f1;
	--rct-text: #2a2a2a;
	--rct-muted: #8a8a8a;
	--rct-tab-color: #323439;
	--rct-tab-active: #870917;
	--rct-white: #ffffff;
	--rct-radius: 6px;
	--rct-panel-gap: 20px;
	--rct-panel-height: 546px;
	--rct-content-max: 545px;

	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.regions-category-tabs *,
.regions-category-tabs *::before,
.regions-category-tabs *::after {
	box-sizing: border-box;
}

.regions-category-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 28px 47px;
	margin-bottom: 25px;
}

.regions-category-tabs__tab {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0 0 10px;
	border: 0;
	background: transparent;
	color: var(--rct-tab-color);
	opacity: 0.7;
	font-family: "TikTok Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.regions-category-tabs__tab::after {
	content: "";
	display: block;
	width: 0;
	height: 1px;
	margin-top: 10px;
	background: var(--rct-tab-active);
	transition: width 0.2s ease;
}

.regions-category-tabs__tab:hover,
.regions-category-tabs__tab:focus-visible,
.regions-category-tabs__tab.is-active {
	color: #323439;
	opacity: 1;
	background: transparent;
	outline: none;
}

.regions-category-tabs__tab:hover::after,
.regions-category-tabs__tab:focus-visible::after,
.regions-category-tabs__tab.is-active::after {
	width: 100%;
}

.regions-category-tabs__tab-label {
	display: block;
}

.regions-category-tabs__panels {
	position: relative;
}

.regions-category-tabs__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--rct-content-max));
	gap: var(--rct-panel-gap);
	width: 100%;
	align-items: stretch;
	min-height: 0;
}

.regions-category-tabs__panel[hidden] {
	display: none;
}

.regions-category-tabs__media {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	min-height: 0;
	align-self: stretch;
	border-radius: var(--rct-radius);
	overflow: hidden;
	background: #ddd;
}

.regions-category-tabs__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

.regions-category-tabs__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: var(--rct-content-max);
	aspect-ratio: 1 / 1;
	height: auto;
	min-height: 0;
	align-self: start;
	padding: 56px 48px;
	border-radius: var(--rct-radius);
	background: #f3f2f1;
	text-align: center;
}

.regions-category-tabs__theme {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	color: var(--rct-muted);
	font-family: "TikTok Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
}

.regions-category-tabs__theme-icon {
	display: block;
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	object-fit: contain;
}

.regions-category-tabs__title {
	margin: 0;
	max-width: 420px;
	font-family: Ahellya, Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.15;
	color: var(--rct-text);
}

.regions-category-tabs__text {
	max-width: 430px;
	margin-bottom: 16px;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #414141;
}

.regions-category-tabs__text p {
	margin: 0 0 1em;
}

.regions-category-tabs__text p:last-child {
	margin-bottom: 0;
}

.regions-category-tabs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 34px;
	border: 1px solid var(--rct-accent);
	border-radius: var(--rct-radius);
	background: transparent;
	color: var(--rct-accent);
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.regions-category-tabs__button:hover,
.regions-category-tabs__button:focus-visible {
	background: var(--rct-accent);
	border-color: var(--rct-accent);
	color: var(--rct-white);
	outline: none;
}

@media (max-width: 1199px) {
	.regions-category-tabs {
		--rct-panel-height: 480px;
	}

	.regions-category-tabs__content {
		padding: 40px 32px;
	}
}

@media (max-width: 991px) {
	.regions-category-tabs__nav {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-bottom: 32px;
		padding-bottom: 8px;
		scrollbar-width: thin;
	}

	.regions-category-tabs__panel {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.regions-category-tabs__media {
		height: auto;
		min-height: 320px;
	}

	.regions-category-tabs__image {
		position: absolute;
		inset: 0;
		display: block;
		height: 100% !important;
		min-height: 0;
	}

	.regions-category-tabs__content {
		max-width: 100%;
		aspect-ratio: auto;
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.regions-category-tabs {
		--rct-panel-height: auto;
	}

	.regions-category-tabs__nav {
		gap: 20px 24px;
	}

	.regions-category-tabs__content {
		padding: 32px 20px;
		gap: 20px;
	}

	.regions-category-tabs__media {
		min-height: 260px;
	}

	.regions-category-tabs__image {
		display: block;
		height: 100% !important;
		min-height: 260px;
	}
}
