/* ŠirkomKlima – Najnovšie články a referencie */
.snj {
	--s-dark: #1B2A33;
	--s-green: #0A9B6C;
	--s-green-dark: #07805A;
	--s-mint: #C8EFDF;
	--s-mint-soft: #EEF8F4;
	--s-line: #E3ECE9;
	--s-soft: #F6F9F8;
	--s-text: #4A5A63;
	--s-muted: #7B8A91;
	font-family: 'Montserrat', sans-serif;
	color: var(--s-dark);
	container-type: inline-size;
	container-name: snj;
}
.snj *, .snj *::before, .snj *::after { box-sizing: border-box; }
.snj .snj-ico { width: 15px; height: 15px; flex: none; }

.snj .snj-heading {
	font-family: inherit; font-size: 20px; font-weight: 800; line-height: 1.25;
	color: var(--s-dark); margin: 0 0 18px; padding: 0 0 14px;
	border-bottom: 2px solid var(--s-line); position: relative;
}
.snj .snj-heading::after {
	content: ""; position: absolute; left: 0; bottom: -2px;
	width: 56px; height: 2px; background: var(--s-green);
}

.snj-items { display: grid; gap: 14px; }
.snj .snj-item { margin: 0; padding: 0; }
.snj a.snj-item__link { display: flex; gap: 14px; text-decoration: none !important; color: inherit; }
.snj .snj-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.snj .snj-title {
	font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--s-dark);
	transition: color .2s ease;
}
.snj .snj-excerpt { font-size: 13.5px; font-weight: 500; line-height: 1.55; color: var(--s-text); margin-top: 6px; }
.snj .snj-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.snj .snj-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--s-muted); }
.snj .snj-date .snj-ico { width: 14px; height: 14px; }
.snj .snj-more {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	color: var(--s-green); opacity: 0; transform: translateX(-4px);
	transition: opacity .2s ease, transform .2s ease;
}
.snj a.snj-item__link:hover .snj-more { opacity: 1; transform: none; }
.snj a.snj-item__link:hover .snj-title { color: var(--s-green); }

.snj-thumb {
	position: relative; display: block; flex: none; overflow: hidden;
	background: linear-gradient(160deg, #F7FAF9 0%, #EAF1EE 100%);
	border-radius: 12px;
}
.snj-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .4s ease; }
.snj a.snj-item__link:hover .snj-thumb img { transform: scale(1.06); }
.snj-thumb__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #C3D3CD; }
.snj-thumb__empty .snj-ico { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------- Štýl: Blog (zoznam) ---------- */
.snj--blog .snj-items { gap: 6px; }
.snj--blog a.snj-item__link {
	align-items: flex-start; padding: 12px; border-radius: 14px;
	border: 1px solid transparent; transition: background .2s ease, border-color .2s ease;
}
.snj--blog a.snj-item__link:hover { background: var(--s-soft); border-color: var(--s-line); }
.snj--blog .snj-thumb { width: 84px; height: 84px; border-radius: 10px; }
.snj--blog .snj-cat {
	align-self: flex-start;
	font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
	color: var(--s-green-dark); background: var(--s-mint-soft);
	border-radius: 999px; padding: 3px 9px; margin-bottom: 6px;
}

/* ---------- Štýl: Referencie (karty) ---------- */
.snj--referencie .snj-items { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.snj--referencie a.snj-item__link {
	flex-direction: column; gap: 0; height: 100%;
	background: #fff; border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden;
	box-shadow: 0 6px 24px rgba(27, 42, 51, .06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.snj--referencie a.snj-item__link:hover {
	transform: translateY(-5px); border-color: var(--s-green);
	box-shadow: 0 16px 34px rgba(10, 155, 108, .15);
}
.snj--referencie .snj-thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: 0; }
.snj--referencie .snj-body { padding: 18px 18px 16px; }
.snj--referencie .snj-title { font-size: 16.5px; font-weight: 700; }
.snj--referencie .snj-meta { margin-top: auto; padding-top: 12px; }
.snj--referencie .snj-more { opacity: 1; transform: none; margin-left: auto; }
.snj-badge {
	position: absolute; left: 12px; bottom: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 5px;
	background: var(--s-dark); color: #fff;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	padding: 6px 11px; border-radius: 999px;
}
.snj-badge .snj-ico { width: 13px; height: 13px; color: var(--s-mint); }

/* ---------- Odkaz pod zoznamom ---------- */
.snj a.snj-all {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
	font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
	color: #fff !important; background: var(--s-green);
	padding: 12px 20px; border-radius: 6px; text-decoration: none !important;
	transition: background .2s ease, box-shadow .2s ease;
}
.snj a.snj-all:hover { background: var(--s-green-dark); box-shadow: 0 10px 22px rgba(10, 155, 108, .25); }
.snj a.snj-all .snj-ico { transition: transform .2s ease; stroke-width: 2.6; }
.snj a.snj-all:hover .snj-ico { transform: translateX(3px); }

/* ---------- Responzivita podľa šírky miesta ---------- */
@container snj (max-width: 900px) {
	.snj--referencie .snj-items { grid-template-columns: repeat(2, 1fr); }
}
@container snj (max-width: 560px) {
	.snj--referencie .snj-items { grid-template-columns: 1fr; gap: 16px; }
	.snj--blog .snj-thumb { width: 68px; height: 68px; }
	.snj .snj-title { font-size: 14.5px; }
	.snj--blog .snj-excerpt { display: none; }
}
/* V úzkom stĺpci (klasický bočný panel) sa text skráti sám */
@container snj (max-width: 380px) {
	.snj--blog a.snj-item__link { padding: 10px; gap: 10px; }
	.snj--blog .snj-thumb { width: 60px; height: 60px; }
	.snj .snj-more { display: none; }
}
