.ver-tabs {
	display: flex;
	gap: 20px;
}

.hor-tabs {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tabs {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--tri);
  border-radius: var(--radius);
  padding: 20px;
}

.ver-tabs .tabs {
	flex-direction: column;
	width: 300px;
}

.highlight-tab, .line-tab {
	display: none;
}

.highlight-active .highlight-tab {
  display: block;
  position: absolute;
  left: 0;
  width: 0;
  height: calc(100% - 40px);
  border-radius: calc(var(--radius) / 2);
  background-color: var(--base);
  transition: all .6s;
  transition-timing-function: 
	cubic-bezier(0.66, 0, 0.34, 1)
}

.line-active .line-tab {
  display: block;
  position: absolute;
  bottom: 0px!important;
  height: 5px!important;
  border-radius: calc(var(--radius) / 2);
  background-color: var(--main);
  transition: all .6s;
  transition-timing-function: 
	cubic-bezier(0.66, 0, 0.34, 1)
}


.tab-item {
  padding: 13px 24px;
  flex-grow: 1;
  font-size: var(--fs-md);
  text-align: center;
  color: var(--contrast);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.5s ease;
  position: relative;

	display: flex;
}

.ver-tabs .tab-item {
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
}

.hor-tabs .tab-item {
	text-align: center;
	justify-content: center;
}

.tab-item:hover {
  color: var(--main);
}

.tab-item.active {
  color: var(--main);
}

.tab-content {
  padding: 20px;
  background: var(--tri);
  border-radius: var(--radius);
	width: 50%;
	flex-grow: 1;
}

.hor-tabs .tab-content {
	width: 100%;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in;
  background: var(--base);
  overflow: hidden;
  border-radius: var(--radius);
  height: 100%;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.tab-pane.active {
  display: flex;
}

.tab-pane-text {
	padding: 40px 35px;
}

.tab-pane-text {
	width: 50%;
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tab-pane-image:has(> img) {
	width: 50%;
}

.tab-pane-image {
	position: relative;
}

.tab-pane-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.pane-title {
	font-weight: 700;
	color: var(--main);
	font-size: var(--fs-mdlg);
	margin-top: 0;
}

.tab-pane-text p {
	font-weight: 400;
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: var(--contrast);
}

.pane-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

@media(max-width: 1250px) {
	.tabs {
		flex-wrap: wrap;
	}

	.ver-tabs .tabs {
		flex-direction: column;
		width: 200px;
	}
}

@media(max-width: 1024px) {
	.ver-tabs {
		flex-direction: column;
	}

	.ver-tabs .tabs {
		flex-direction: row;
		width: 100%;
	}

	.ver-tabs .tab-content {
		width: 100%;
	}
	
	.tab-item, .ver-tabs .tab-item {
		font-size: var(--fs-sm);
		padding: 7px;
		width: 40%;
	}	

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

	.tab-pane-text, .tab-pane-image {
		width: 100%!important;
	}

	.tab-pane-image:has(> img) {
		aspect-ratio: 16 / 9;
	}

	.pane-links {
		justify-content: center;
		gap: 10px;
	}

	.pane-links .main-link {
		flex-grow: 1;
		text-align: center;
	}
}

@media(max-width: 768px) {
	
	.tab-pane-text {
		padding: 20px 15px;
	}
}