/* Catalog overview (/products/) — sidebar + category cards */
.htl-catalog {
	padding: 30px 0 80px;
}

.htl-catalog__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 42px;
	padding-bottom: 20px;
	position: relative;
	border-bottom: none;
}

.htl-catalog__head::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100vw;
	height: 1px;
	background: #898989;
	transform: translateX(-50%);
	pointer-events: none;
}

.htl-catalog__title {
	margin: 0;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 500;
	color: #1c1c1c;
}

.htl-catalog__lead {
	margin: 0;
	color: #1c1c1c;
	font-size: 16px;
	line-height: 1.4;
	white-space: nowrap;
}

.htl-catalog__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px 48px;
	align-items: start;
}

.htl-catalog__nav {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 6px;
}

.htl-catalog__nav-link {
	position: relative;
	display: block;
	padding-left: 14px;
	color: #8a8f98;
	font-size: 24px;
	line-height: 1.2;
	text-decoration: none;
	transition: color .2s ease;
}

.htl-catalog__nav-link:hover {
	color: #1c1c1c;
}

.htl-catalog__nav-link.is-active {
	color: #1c1c1c;
	font-weight: 500;
}

body.dark-theme .htl-catalog__nav-link.is-active,
body.dark-theme .htl-catalog__nav-link:hover {
	color: #fff;
}

.htl-catalog__nav-link.is-active::before {
	content: "";
	position: absolute;
	left: -3px;
	top: 0;
	width: 4px;
	border-radius: 2px;
	background: #03A543;
	height: 14px;
	bottom: 0;
	margin: auto;
}

.htl-catalog__content {
	min-width: 0;
}

.htl-catalog__block + .htl-catalog__block {
	margin-top: 56px;
}

.htl-catalog__block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.htl-catalog__block-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 500;
	color: #1c1c1c;
}

.htl-catalog__block-all {
	gap: 10px;
	white-space: nowrap;
	color: #1c1c1c;
	font-size: 18px;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background-color .2s ease;
	background: #F6F6F6;
	padding: 15px 24px;
	border-radius: 8px;
	font-weight: 500;
	display: flex;
	justify-content: center;
	align-items: center;
}

.htl-catalog__block-all:hover {
	background: #ececec;
	border-bottom-color: transparent;
}

.htl-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.htl-catalog__card {
	display: block;
	color: inherit;
	text-decoration: none;
	background: #F6F6F6;
	border-radius: 8px;
	overflow: hidden;
}

.htl-catalog__card-media {
	aspect-ratio: 1 / 1;
	background: #F6F6F6;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
}

.htl-catalog__card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.htl-catalog__card-body {
	background: #F6F6F6;
	padding: 0 20px 22px;
}

.htl-catalog__card-title {
	font-size: 24px;
	line-height: 1.25;
	font-weight: 500;
	color: #1c1c1c;
	margin-bottom: 6px;
}

.htl-catalog__card-desc {
	font-size: 16px;
	line-height: 1.3;
	color: #8a8f98;
	max-width: 28ch;
}

@media (min-width: 1800px) {
	.htl-catalog__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1400px) {
	.htl-catalog__layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.htl-catalog__nav {
		display: none;
	}
}

@media (max-width: 768px) {
	.htl-catalog {
		padding-bottom: 48px;
	}

	.htl-catalog__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 24px;
	}

	.htl-catalog__title {
		font-size: 32px;
	}

	.htl-catalog__lead {
		white-space: normal;
	}

	.htl-catalog__block-title {
		font-size: 22px;
	}

	.htl-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.htl-catalog__card-title {
		font-size: 20px;
	}

	.htl-catalog__card-desc {
		max-width: none;
		font-size: 14px;
		line-height: 1.2;
	}
}
