.tabs {
	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 1fr;
	width: 100%;
	max-height: 1415px;
	aspect-ratio: 1920 / 790;
	font-size: var(--font-size-b);
	line-height: 1.9444em;
}

.tabs .title {
	margin-bottom: 0.5em;
}

.tabs-tab {
	grid-column: 1 / 1;
	grid-row: 1 / 1;
	width: 100%;
	height: 100%;
	max-height: inherit;
	display: flex;
	color: var(--color-foreground-inverse);
	transition: opacity 0.5s ease;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	transition-delay: 0.5s;
}

.tabs-tab.active {
	z-index: 2;
	pointer-events: auto;
	opacity: 1;
	transition-delay: 0s;
}

.tabs-tab-left {
	width: 56%;
	height: 100%;
	max-height: inherit;
}

.tab-image {
	width: 100%;
	height: 100%;
	max-height: inherit;
	object-fit: cover;
	object-position: center center;
}

.tabs-tab-right {
	width: 44%;
	height: 100%;
	max-height: inherit;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	box-sizing: border-box;
	padding: 0 var(--padding-big) 0 var(--padding-mid);
	background-color: var(--color-background-inverse);
}

.tabs-tab-right .button-line-right {
	width: 50%;
	margin-bottom: 1em;
}

.tabs-pagination {
	position: relative;
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tabs-pagination:after {
	display: block;
	position: absolute;
	content: "";
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--color-foreground-inverse);
	z-index: 1;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.5s ease;
}

.tabs-pagination.aos-animate:after {
	transform: scaleX(1);
}

.tabs-counter {
	position: relative;
	font-size: var(--font-size-b-4);
	background-color: var(--color-background-inverse);
	padding-right: 0.5em;
	z-index: 2;
	min-width: 80px;
}

.tabs-arrows {
	position: relative;
	display: flex;
	height: 50px;
	column-gap: 90px;
	padding-left: 30px;
	background-color: var(--color-background-inverse);
	z-index: 2;
}

.tabs-arrow {
	position: relative;
	height: 100%;
	aspect-ratio: 1 / 2;
	padding: 0;
	background-color: var(--color-background-inverse);
	border: none;
}

.tabs-arrow span { display: none; }

.tabs-arrow:after {
	display: block;
	position: absolute;
	content: "";
	width: 130%;
	aspect-ratio: 1 / 1;
	padding: 0;
	top: 50%;
	left: 0;
	border: 2px solid var(--color-foreground-inverse);
	clip-path: polygon(0 0, 0 100%, 100% 0);
	transform-origin: left top;
	transform: rotate(-45deg);
	transition: transform 0.3s ease;
}

.tabs-arrow:hover:after {
	transform: rotate(-45deg) translate(-5px, -5px);
}

.tabs-arrow.tabs-arrow-next:after {
	left: auto;
	right: 0;
	clip-path: polygon(100% 0, 100% 100%, 0 0);
	transform-origin: right top;
	transform: rotate(45deg);
}

.tabs-arrow.tabs-arrow-next:hover:after {
	transform: rotate(45deg) translate(5px, -5px);
}

@media screen and (max-width: 1440px) {
	.tabs-counter {
		min-width: 50px;
	}

	.tabs-arrows {
		height: 40px;
		column-gap: 40px;
	}
}

@media screen and (max-width: 1023px) {
	.tabs {
		max-height: none;
		aspect-ratio: unset;
	}

	.tabs-tab {
		flex-direction: column;
	}

	.tabs-tab-left {
		width: 100%;
		height: auto;
		aspect-ratio: var(--aspect-ratio-image-xxs);
	}

	.tabs-tab-right {
		width: 100%;
		height: 100%;
		box-sizing: border-box;
		padding-top: 50px;
		justify-content: space-between;
	}

	.tabs-pagination {
		order: 1;
		margin-bottom: 70px;
		margin-top: 0;
	}

	.tabs-tab-right-text {
		order: 2;
	}
}

@media screen and (max-width: 500px) {
	.tabs {
		font-size: var(--font-size-base);
		line-height: 1.6em;
	}
}