/* tabs start  */

.models-tabs {
	margin-top: 26px;
	margin-bottom: 30px;
	position: relative;
}

.models-tabs-swiper .swiper-slide {
	height: 140px;
	display: flex;
}

.models-tabs-card {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border-radius: 4px;
	background: #fff;
	border: 2px solid transparent;
	transition: border-color 0.3s ease;
	cursor: pointer;
	position: relative;
}

@media (hover: hover) {
	.models-tabs-card:hover {
		border-color: var(--color-accent);
	}
}

.models-tabs-card-brand {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 109px;
	object-fit: contain;
	z-index: 1;
}

.models-tabs-card-img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-height: 74px;
	height: auto;
	object-fit: contain;
}

.models-tabs-card-title {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 400;
	font-size: 16px;
	text-align: center;
	width: max-content;
}

.models-tabs-navigation {
	display: flex;
	flex-direction: row;
	gap: 0;
	position: absolute;
	z-index: 1;
	top: -70px;
	right: 0;
}

.models-tabs-nav-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: var(--color-accent);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: all 0.3s ease;
	padding: 0;
}

.models-tabs-nav-btn--prev {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.models-tabs-nav-btn--next {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

@media (hover: hover) {
	.models-tabs-nav-btn:hover {
		opacity: 0.8;
	}
}

.models-tabs-nav-btn:disabled,
.models-tabs-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.models-tabs-nav-btn svg {
	width: 6px;
	height: 10px;
}

.models-tabs-scrollbar {
	position: absolute;
	top: -25px;
	right: 0;
	width: 100%;
	max-width: 1066px;
	height: 2px;
	background: #ffbec9;
	border-radius: 2px;
	overflow: visible;
	display: flex;
	align-items: center;
}

.models-tabs-scrollbar .swiper-scrollbar-drag {
	background: var(--color-accent);
	border-radius: 2px;
	height: 6px;
	cursor: pointer;
}

/* tabs end  */

/* models cards start */

.models-cards-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 1250px;
	width: 100%;
	margin: 0 auto;
	margin-bottom: 30px;
}
.models-card {
	height: 362px;
	display: flex;
	gap: 6px;
}

.models-card-swiper {
	width: 570px;
	flex-shrink: 0;
	height: 100%;

	position: relative;
}

.models-card-swiper-container {
	width: 100%;
	height: 100%;
}

.models-card-swiper-container .swiper-slide {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	overflow: hidden;
}

.models-card-swiper-container .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.models-card-swiper-navigation {
	display: flex;
	flex-direction: row;
	gap: 0;
	position: absolute;
	z-index: 1;
	bottom: 12px;
	right: 12px;
}

.models-card-nav-btn {
	width: 36px;
	height: 36px;
	border: none;
	background: #383737;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: all 0.3s ease;
	padding: 0;
}

.models-card-nav-btn--prev {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.models-card-nav-btn--next {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

@media (hover: hover) {
	.models-card-nav-btn:hover {
		opacity: 0.8;
	}
}

.models-card-nav-btn:disabled,
.models-card-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.models-card-nav-btn svg {
	width: 6px;
	height: 10px;
}

.models-card-swiper-counter {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 1;
	width: 58px;
	height: 36px;
	background-color: #434243;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 36px;
	text-align: center;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.models-card-swiper-current,
.models-card-swiper-total {
	display: inline-block;
}

.models-card-swiper-separator {
	margin: 0 2px;
}

.models-card-swiper-stock {
	position: absolute;
	top: 16px;
	left: -11px;
	z-index: 1;
	color: var(--color-white);
	background-image: url(../../img/models-card-stock.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	width: 160px;
	height: 40px;
	display: flex;
	justify-content: center;
	padding-top: 5px;
	font-size: 16px;
}

.models-card-info {
	flex: 1;
	height: 100%;
	overflow: hidden;
	border-radius: 6px;
	background-color: var(--color-white);
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.models-card-name {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 13px;
	border-bottom: 1px solid #ebebeb;
}
.models-card-name span {
	font-weight: 700;
	font-size: 36px;
	line-height: 1;
}

.models-card-brand-img {
	width: 220px;
}

.models-card-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: 0px;
	grid-row-gap: 22px;
	padding-bottom: 31px;
	border-bottom: 1px solid #ebebeb;
}

.models-card-benefits-item {
}

.models-card-benefits-item-img {
	width: 46px;
	height: 46px;
	object-fit: cover;
}
.models-card-benefits-item-value {
	font-weight: 700;
	font-size: 20px;
	line-height: 1;
	color: var(--color-accent);
}

.models-card-benefits-item-value sup {
	font-size: 12px;
}

.models-card-benefits-item-name {
	font-size: 16px;
	line-height: 1;
}

.models-card-benefits-item {
	display: grid;
	grid-template-columns: 46px auto;
	grid-template-rows: auto auto;
	gap: 0px 5px;
	grid-auto-flow: row;
	grid-template-areas:
		'models-card-benefits-item-img models-card-benefits-item-value'
		'models-card-benefits-item-img models-card-benefits-item-name';
}

.models-card-benefits-item-img {
	grid-area: models-card-benefits-item-img;
}

.models-card-benefits-item-value {
	grid-area: models-card-benefits-item-value;
}

.models-card-benefits-item-name {
	grid-area: models-card-benefits-item-name;
}

.models-card-prices {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.models-card-prices-new {
	font-weight: 600;
	font-size: 32px;
	line-height: 1;
}
.models-card-prices-old {
	font-weight: 500;
	font-size: 24px;
	line-height: 1;
	text-decoration: line-through;
	color: #e6e6e6;
}
.models-card-prices-credit {
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	text-decoration: underline;
	color: var(--color-accent);
	align-self: flex-end;
}

.models-card-buttons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.models-card-buttons .btn {
	height: 50px;
	max-width: 100%;
}

.models-cards-more-btn {
	height: 50px;
	max-width: 260px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* models cards end */

@media screen and (max-width: 1540px) {
	.models-tabs-scrollbar {
		max-width: 700px;
	}
	.models-card-swiper {
		width: 470px;
	}
}

@media screen and (max-width: 1200px) {
	.models-tabs-scrollbar {
		max-width: 500px;
	}
	.models-card-prices {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		gap: 0px 0px;
		grid-auto-flow: row;
		grid-template-areas:
			'models-card-prices-old .'
			'models-card-prices-new models-card-prices-credit';
	}

	.models-card-prices-new {
		grid-area: models-card-prices-new;
	}

	.models-card-prices-old {
		grid-area: models-card-prices-old;
	}

	.models-card-prices-credit {
		grid-area: models-card-prices-credit;
	}
	.models-card-benefits-item-value {
		font-size: 16px;
		margin-top: auto;
	}
	.models-card-benefits-item-name {
		font-size: 13px;
	}
	.models-card-swiper {
		width: 400px;
	}
}

@media screen and (max-width: 992px) {
	.models-tabs-scrollbar {
		display: none;
	}
	.models-tabs-navigation {
		display: none;
	}
	.models-card-benefits {
		padding: 10px 0;
	}
	.models-card-benefits {
		row-gap: 5px;
	}
	.models-card-benefits-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.models-card-name span {
		font-size: 24px;
	}
	.models-card-brand-img {
		width: 160px;
	}
	.models-card-name {
		padding-bottom: 6px;
	}
	.models-card-benefits-item-value {
		font-size: 14px;
	}
	.models-card-benefits-item-value sup {
		font-size: 10px;
	}
	.models-card-prices-new {
		font-size: 20px;
	}
	.models-card-prices-old {
		font-size: 14px;
	}
}

@media screen and (max-width: 920px) {
	.models-card {
		height: unset;
		flex-direction: column;
		gap: 4px;
	}
	.models-card-swiper {
		width: 100%;
	}
	.models-card-prices {
		padding-top: 4px;
		padding-bottom: 20px;
	}

	.models-card-benefits {
		padding-bottom: 24px;
	}
	.models-cards-more-btn {
		max-width: 210px;
		font-size: 14px;
	}
}

@media screen and (max-width: 768px) {
	.models-tabs-card-img {
		max-height: 60px;
	}
	.models-tabs-card-title {
		font-size: 13px;
		bottom: 5px;
	}
	.models-tabs-card-brand {
		top: 5px;
	}
	.models-tabs-swiper .swiper-slide {
		height: 110px;
	}
	.models-tabs {
		margin-top: 10px;
	}
	.models-card-prices-credit {
		font-size: 12px;
	}
	.models-card-buttons {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.models-cards-list {
		margin-bottom: 20px;
	}
}

@media screen and (max-width: 540px) {
	.models-card-brand-img {
		width: 110px;
	}

	.models-card-info {
		padding: 13px;
	}
	.models-card-benefits-item-name {
		letter-spacing: -0.02rem;
		font-size: 10px;
	}
	.models-card-benefits-item-value {
		margin-top: 4px;
		margin-bottom: 4px;
	}
	.models .container {
		padding: 0 20px;
	}
}
