/* Modern HTML sitemap (/karta-sajta/) — Option A Canonical (Bezlimitik design system) */

.html-sitemap--v2 {
	max-width: 1200px;
	margin: 0 auto 48px;
	color: var(--ink, #000000);
	font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* 0. Live instant filter bar (compact & left-aligned with content grid) */
.html-sitemap-search {
	max-width: 680px;
	margin: 0 0 36px;
}

.html-sitemap-search__box {
	position: relative;
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 2px solid var(--line, #e4e9f0);
	border-radius: var(--button-radius, 32px);
	padding: 4px 18px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.html-sitemap-search__box:focus-within {
	border-color: var(--accent, #EB5413);
	box-shadow: 0 0 0 3px rgba(235, 84, 19, 0.14);
}

.html-sitemap-search__icon {
	flex: none;
	color: var(--ink-soft, #5c6b7a);
	margin-right: 12px;
	display: flex;
	align-items: center;
}

.html-sitemap-search__input {
	flex: 1;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	padding: 10px 0;
	color: var(--ink, #000000);
	background: transparent;
}

.html-sitemap-search__input::placeholder {
	color: #8c9ba5;
}

.html-sitemap-search__clear {
	flex: none;
	background: #f1f5f9;
	border: none;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #64748b;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.html-sitemap-search__clear:hover {
	background: #e2e8f0;
	color: var(--ink, #000000);
}

.html-sitemap-search__meta {
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--ink-soft, #5c6b7a);
	text-align: left;
	padding-left: 6px;
}

/* Sections */
.html-sitemap__section {
	margin-bottom: 44px;
}

.html-sitemap__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	border-bottom: 2px solid var(--line, #e4e9f0);
	padding-bottom: 12px;
	margin-bottom: 22px;
}

.html-sitemap__section-title {
	font-family: "Jost", sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #333333;
	margin: 0;
	line-height: 1.3;
}

.html-sitemap__section:not(:has(.html-sitemap__section-header)) .html-sitemap__section-title {
	border-bottom: 2px solid var(--line, #e4e9f0);
	padding-bottom: 12px;
	margin-bottom: 22px;
}

.html-sitemap__hub-link {
	display: inline-flex;
	align-items: center;
	font-family: "Jost", sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--accent, #EB5413) !important;
	text-decoration: none !important;
	background: #fff8f4;
	border: 1px solid rgba(235, 84, 19, 0.3);
	padding: 6px 16px;
	border-radius: var(--button-radius, 32px);
	transition: all 0.18s ease;
}

.html-sitemap__hub-link:hover {
	background: var(--accent, #EB5413);
	color: #ffffff !important;
	border-color: var(--accent, #EB5413);
	box-shadow: 0 4px 12px rgba(235, 84, 19, 0.2);
	text-decoration: none !important;
}

/* Standard Card Grid (Section 1 and Section 4) */
.html-sitemap__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	align-items: start;
}

/* Section 2: Catalog Grid (Balanced columns: left ~400px, right ~760px) */
.html-sitemap__grid--catalog {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 20px;
	align-items: start;
}

.html-sitemap__list--cols-2 {
	column-count: 2;
	column-gap: 24px;
}

.html-sitemap__list--cols-2 li {
	break-inside: avoid;
}

/* Section 3: Masonry layout for Articles (Zero empty gaps) */
.html-sitemap__masonry--articles {
	column-count: 3;
	column-gap: 20px;
}

.html-sitemap__masonry--articles .html-sitemap__card--article-group {
	break-inside: avoid;
	margin-bottom: 20px;
	display: inline-block;
	width: 100%;
	vertical-align: top;
}

/* Cards (Standard Bezlimitik Card Styling) */
.html-sitemap__card {
	background: #ffffff;
	border: 1px solid #e4dbd2;
	border-radius: var(--radius, 12px);
	padding: 22px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.html-sitemap__card:hover {
	border-color: rgba(235, 84, 19, 0.45);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.html-sitemap__card-title {
	font-family: "Jost", sans-serif;
	font-size: 16.5px;
	font-weight: 600;
	color: #222222;
	margin: 0 0 14px;
	line-height: 1.35;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
}

.html-sitemap__card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.html-sitemap__card-title a:hover {
	color: var(--accent, #EB5413);
}

.html-sitemap__card-badge {
	display: inline-block;
	background: #fff8f4;
	color: var(--accent, #EB5413);
	border: 1px solid rgba(235, 84, 19, 0.28);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.html-sitemap__count {
	color: var(--ink-soft, #5c6b7a);
	font-size: 13px;
	font-weight: 500;
}

/* Lists inside cards */
.html-sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
}

.html-sitemap__list li {
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px solid #f6f8fb;
	font-size: 14.5px;
	line-height: 1.45;
}

.html-sitemap__list li:last-child {
	border-bottom: none;
}

.html-sitemap__list a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.15s ease;
}

.html-sitemap__list a:hover {
	color: var(--accent, #EB5413);
	text-decoration: underline;
}

/* Nested depth list */
.html-sitemap__list--depth-1 {
	margin-top: 6px;
	margin-left: 10px;
	padding-left: 10px;
	border-left: 2px solid var(--line, #e4e9f0);
}

.html-sitemap__list--depth-1 li {
	padding: 4px 0;
	font-size: 13.5px;
}

/* CTA in article cards */
.html-sitemap__card-cta-wrap {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line, #e4e9f0);
}

.html-sitemap__card-cta {
	display: inline-flex;
	align-items: center;
	font-family: "Jost", sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--accent, #EB5413);
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.html-sitemap__card-cta:hover {
	color: var(--accent-dark, #BC430F);
	text-decoration: underline;
	transform: translateX(3px);
}

.html-sitemap__empty-note {
	margin: 10px 0;
	font-size: 13.5px;
	color: var(--ink-soft, #5c6b7a);
	font-style: italic;
}

/* 5. Consultation banner (Balanced 2-column layout & Pill buttons) */
.html-sitemap__consult {
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	border: 1px solid #fed7aa;
	border-radius: var(--radius, 16px);
	padding: 32px 36px;
	margin-top: 48px;
	box-sizing: border-box;
}

.html-sitemap__consult-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: 100%;
	box-sizing: border-box;
}

.html-sitemap__consult-content {
	flex: 1 1 auto;
	min-width: 0;
}

.html-sitemap__consult-title {
	font-family: "Jost", sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #9a3412;
	margin: 0 0 8px;
	line-height: 1.3;
}

.html-sitemap__consult-desc {
	font-family: "Jost", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #7c2d12;
	margin: 0;
	word-wrap: break-word;
}

.html-sitemap__consult-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	flex: 0 0 auto;
}

/* Messengers group matching homepage canonical .site-faq__messengers */
.html-sitemap__consult-messengers {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.html-sitemap__consult-messengers .site-faq__messenger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 2px dashed currentColor;
	border-radius: 50%;
	background: #ffffff;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.html-sitemap__consult-messengers .site-faq__messenger:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
	text-decoration: none !important;
}

.html-sitemap__consult-messengers .site-faq__messenger--telegram {
	color: #20a0e1;
	border-color: #20a0e1;
}

.html-sitemap__consult-messengers .site-faq__messenger--whatsapp {
	color: #51c85d;
	border-color: #51c85d;
}

.html-sitemap__consult-messengers .site-faq__messenger--max {
	color: var(--messenger, #dc2f2f);
	border-color: var(--messenger, #dc2f2f);
}

.html-sitemap__consult-messengers .site-faq__messenger--max .messenger-icon--max path:first-of-type {
	fill: currentColor;
}

.html-sitemap__consult-messengers .site-faq__messenger--max .messenger-icon--max path:last-of-type {
	fill: #ffffff;
}

.html-sitemap__consult-messengers .site-faq__messenger svg,
.html-sitemap__consult-messengers .site-faq__messenger .messenger-icon {
	display: block;
	fill: currentColor;
}

/* Phone CTA button */
.html-sitemap__consult-btn--phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 24px;
	border-radius: var(--button-radius, 32px);
	background: var(--accent, #EB5413) !important;
	color: #ffffff !important;
	font-family: "Jost", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(235, 84, 19, 0.25);
}

.html-sitemap__consult-btn--phone,
.html-sitemap__consult-btn--phone span {
	color: #ffffff !important;
	text-decoration: none !important;
}

.html-sitemap__consult-btn--phone:hover {
	background: var(--accent-dark, #BC430F) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(235, 84, 19, 0.35);
	text-decoration: none !important;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 960px) {
	.html-sitemap__grid--catalog {
		grid-template-columns: 1fr;
	}

	.html-sitemap__masonry--articles {
		column-count: 2;
	}

	.html-sitemap__consult-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.html-sitemap__consult-actions {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 680px) {
	.html-sitemap-search {
		margin-bottom: 24px;
	}

	.html-sitemap-search__input {
		font-size: 14px;
	}

	.html-sitemap__grid,
	.html-sitemap__grid--catalog {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.html-sitemap__list--cols-2 {
		column-count: 1;
	}

	.html-sitemap__masonry--articles {
		column-count: 1;
	}

	.html-sitemap__section-title {
		font-size: 19px;
	}

	.html-sitemap__card {
		padding: 16px;
	}

	.html-sitemap__consult {
		padding: 24px 18px;
		margin-top: 36px;
	}

	.html-sitemap__consult-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.html-sitemap__consult-messengers {
		justify-content: center;
		gap: 16px;
	}

	.html-sitemap__consult-messengers .site-faq__messenger {
		width: 48px;
		height: 48px;
	}

	.html-sitemap__consult-btn--phone {
		width: 100%;
		height: 48px;
	}
}
