.home-catalog {
	padding: 56px 0;
	background: #f5f7fa;
	scroll-margin-top: 92px;
}

.home-catalog .cars-es__grid {
	margin-bottom: 0;
}

.catalog-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.catalog-tab {
	height: 44px;
	padding: 0 18px;
	border: 1px solid #d8dde7;
	border-radius: 999px;
	background: #fff;
	color: #1E1F21;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-tab.is-active {
	border-color: #002EDE;
	background: #002EDE;
	color: #fff;
}

.catalog-status {
	padding: 24px;
	border-radius: 18px;
	background: #fff;
	color: #6b7280;
}

.catalog-actions {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.catalog-more {
	min-width: 220px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: #002EDE;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.catalog-more[hidden] {
	display: none;
}

.car-card-es .catalog-details-toggle {
	width: 100%;
	border: 0;
	cursor: pointer;
}

.car-card-es img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #edf0f5;
}

.car-card-es .carname {
	font-size: 18px;
	font-weight: 700;
	margin: 6px 0 2px;
	color: #111;
}

.catalog-modal-open {
	overflow: hidden;
}

.catalog-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(7, 10, 18, 0.72);
}

.catalog-modal[hidden] {
	display: none;
}

.catalog-modal__dialog {
	position: relative;
	width: min(1120px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.catalog-modal__close {
	position: sticky;
	top: 14px;
	float: right;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 14px 14px 0 0;
	border: 0;
	border-radius: 50%;
	background: #111;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.catalog-modal__content {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	gap: 26px;
	padding: 26px;
	clear: both;
}

.catalog-modal__main-image {
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 16px;
	background: #edf0f5;
	aspect-ratio: 4 / 3;
}

.catalog-modal__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.catalog-modal__slider {
	display: none;
}

.catalog-modal__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.catalog-modal__thumb {
	overflow: hidden;
	height: 74px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #edf0f5;
	cursor: pointer;
}

.catalog-modal__thumb.is-active {
	border-color: #002EDE;
}

.catalog-modal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.catalog-modal__info {
	padding-right: 8px;
}

.catalog-modal__badge {
	display: inline-flex;
	margin-bottom: 10px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.catalog-modal__info h3 {
	margin: 0 0 8px;
	color: #111;
	font-size: 30px;
	line-height: 1.12;
}

.catalog-modal__full-name,
.catalog-modal__meta {
	margin: 0 0 10px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.45;
}

.catalog-modal__price {
	margin: 18px 0;
	color: #111;
	font-size: 26px;
	font-weight: 800;
}

.catalog-modal__request {
	width: 100%;
	height: 48px;
	margin: 0 0 20px;
	border: 0;
	border-radius: 999px;
	background: #002EDE;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.catalog-modal__spec-title {
	margin-bottom: 12px;
	color: #111;
	font-size: 18px;
	font-weight: 800;
}

.catalog-modal dl {
	display: grid;
	gap: 9px;
	margin: 0;
}

.catalog-modal__spec-row {
	display: grid;
	grid-template-columns: minmax(120px, 42%) 1fr;
	gap: 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid #eef1f6;
	font-size: 14px;
	line-height: 1.35;
}

.catalog-modal__spec-row dt {
	color: #6b7280;
}

.catalog-modal__spec-row dd {
	margin: 0;
	color: #111;
	font-weight: 650;
	overflow-wrap: anywhere;
}

.catalog-modal__empty {
	color: #6b7280;
}

@media (max-width: 700px) {
	.home-catalog {
		padding: 36px 0;
	}

	.catalog-tabs {
		display: grid;
		grid-template-columns: 1fr;
	}

	.catalog-tab {
		width: 100%;
	}

	.catalog-modal {
		align-items: stretch;
		padding: 10px;
	}

	.catalog-modal__dialog {
		max-height: calc(100vh - 20px);
		border-radius: 14px;
	}

	.catalog-modal__close {
		width: 38px;
		height: 38px;
		font-size: 27px;
	}

	.catalog-modal__content {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 18px;
	}

	.catalog-modal__main-image,
	.catalog-modal__thumbs {
		display: none;
	}

	.catalog-modal__slider {
		position: relative;
		display: block;
		overflow: hidden;
		border-radius: 14px;
		background: #edf0f5;
		aspect-ratio: 4 / 3;
		touch-action: pan-y;
	}

	.catalog-modal__slides {
		display: flex;
		height: 100%;
		transition: transform 0.28s ease;
	}

	.catalog-modal__slide {
		flex: 0 0 100%;
		height: 100%;
	}

	.catalog-modal__slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.catalog-modal__slider-btn {
		position: absolute;
		top: 50%;
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border: 0;
		border-radius: 50%;
		background: rgba(17, 17, 17, 0.72);
		color: #fff;
		font-size: 30px;
		line-height: 1;
		transform: translateY(-50%);
	}

	.catalog-modal__slider-btn--prev {
		left: 10px;
	}

	.catalog-modal__slider-btn--next {
		right: 10px;
	}

	.catalog-modal__counter {
		position: absolute;
		right: 10px;
		bottom: 10px;
		padding: 4px 9px;
		border-radius: 999px;
		background: rgba(17, 17, 17, 0.72);
		color: #fff;
		font-size: 12px;
		font-weight: 700;
	}

	.catalog-modal__info h3 {
		font-size: 24px;
	}

	.catalog-modal__thumbs {
		grid-template-columns: repeat(4, 1fr);
	}

	.catalog-modal__thumb {
		height: 62px;
	}

	.catalog-modal__spec-row {
		grid-template-columns: 1fr;
		gap: 3px;
	}
}
