/* html-sitemap.css — HTML-карта сайта (без JS, SEO-friendly) */

.html-sitemap {
	padding: 40px 0 80px;
}

.html-sitemap__title {
	margin-bottom: 12px;
}

.html-sitemap__lead {
	max-width: 720px;
	margin: 0 0 32px;
	font-size: 15px;
	line-height: 1.5;
	color: #666;
}

.html-sitemap__nav {
	display: block;
}

/* Сетка секций: компактные блоки + широкие для длинных списков */
.html-sitemap__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.html-sitemap__section {
	min-width: 0;
	padding: 20px 22px 22px;
	border: 1px solid #e8ebef;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(51, 51, 51, 0.04);
}

.html-sitemap__section--columns {
	grid-column: 1 / -1;
	padding: 24px 28px 28px;
}

.html-sitemap__section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--grayl, #f8f8fa);
}

.html-sitemap__section-title {
	margin: 0;
	font-weight: 600;
	color: var(--gray, #333);
}

.html-sitemap__section-title::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 8px;
	border-radius: 2px;
	background: var(--orange, #ff6a16);
}

.html-sitemap__section-count {
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	color: #8a939c;
	white-space: nowrap;
}

/* Списки */
.html-sitemap__list,
.html-sitemap__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.html-sitemap__sublist {
	margin-top: 6px;
	padding-left: 14px;
	border-left: 2px solid #e8ebef;
}

.html-sitemap__item {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
}

.html-sitemap__item + .html-sitemap__item {
	margin-top: 4px;
}

.html-sitemap__sublist .html-sitemap__item + .html-sitemap__item {
	margin-top: 4px;
}

.html-sitemap__link {
	display: inline-block;
	max-width: 100%;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.html-sitemap__link--active {
	font-weight: 400;
	color: var(--gray, #333);
}

.html-sitemap__link--active:hover,
.html-sitemap__link--active:focus-visible {
	color: var(--orange, #ff6a16);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.html-sitemap__link--inactive {
	font-weight: 200;
	color: #b8c0c8;
	cursor: default;
}

/* Длинные плоские списки: CSS-колонки без JS */
.html-sitemap__list--columns {
	column-gap: 28px;
}

.html-sitemap__section--columns .html-sitemap__list--columns {
	column-count: 4;
}

.html-sitemap__section--columns .html-sitemap__link {
	font-size: 13px;
	line-height: 1.3;
}

/* === Responsive === */

@media all and (max-width: 1100px) {
	.html-sitemap__section--columns .html-sitemap__list--columns {
		column-count: 3;
	}
}

@media all and (max-width: 992px) {
	.html-sitemap__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.html-sitemap__section--columns .html-sitemap__list--columns {
		column-count: 2;
		column-gap: 20px;
	}
}

@media all and (max-width: 600px) {
	.html-sitemap {
		padding: 30px 0 60px;
	}

	.html-sitemap__lead {
		margin-bottom: 24px;
		font-size: 14px;
	}

	.html-sitemap__section,
	.html-sitemap__section--columns {
		padding: 16px 16px 18px;
		border-radius: 12px;
	}

	.html-sitemap__section-head {
		margin-bottom: 12px;
		padding-bottom: 10px;
	}

	.html-sitemap__section--columns .html-sitemap__list--columns {
		column-count: 1;
	}

	.html-sitemap__link {
		font-size: 14px;
	}
}

@media print {
	.html-sitemap__section {
		break-inside: avoid;
		box-shadow: none;
		border-color: #ccc;
	}

	.html-sitemap__section--columns .html-sitemap__list--columns {
		column-count: 3;
	}

	.html-sitemap__link {
		color: #000;
	}
}
