/* Главная: «Фирменные товары и услуги компании LeTech для изделий из кожи» (include/sfx/section-list-1.php)
   по макету «Главная новая, октябрь 2026» — 4 колонки, карточка 336×240, картинка на всю карточку.
   В main.css (сборка фронтенда) у этого блока 3 колонки и высота 280 px. */
.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}
.le-catalog-section-1.index .just-card-2 {
	min-height: 0;
	aspect-ratio: 336 / 240;
	padding: 20px 32px;
}
.le-catalog-section-1.index .just-card-2 .just-card-title {
	color: #1c2126;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
}
/* 9 разделов — сетка 3×3, карточка 458×280 (макет, узел 12432:104102); 8 — 4×2 (выше) */
.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper:has(> :nth-child(9):last-child) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper:has(> :nth-child(9):last-child) > .just-card-2 {
	aspect-ratio: 458 / 280;
}
@media (max-width: 1440px) {
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper {
		gap: 20px;
	}
}
@media (max-width: 1160px) {
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 760px) {
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper,
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper:has(> :nth-child(9):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.le-catalog-section-1.index .just-card-2,
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper:has(> :nth-child(9):last-child) > .just-card-2 {
		aspect-ratio: auto;
		min-height: 165px;
		padding: 16px;
	}
	.le-catalog-section-1.index .just-card-2 .just-card-title {
		font-size: 14px;
		line-height: 18px;
	}
}
/* main.css растягивает 7-ю карточку на две колонки (под 9 разделов); при 8 разделах последняя оставалась одна */
@media (max-width: 760px) {
	.le-catalog-section-1.index .just-grid-2 .just-grid-wrapper > *:nth-child(7):nth-last-child(2) {
		grid-column: auto;
	}
}
/* отступ над заголовком блока — 64 px по макету (раньше его давали плитки первого экрана, теперь выше блок ремонта) */
.le-catalog-section-1.index {
	padding-top: 64px;
}
@media (max-width: 768px) {
	.le-catalog-section-1.index {
		padding-top: 40px;
	}
}
