.baba-kn {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 150px;
	padding: 30px 30px 30px 34px;
	border: 2px solid #2e17e6;
	border-radius: 6px;
	background-color: #fdeef1;
	text-decoration: none;
	overflow: hidden;
}

.baba-kn__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.baba-kn__title {
	margin: 0;
	color: #12121c;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
}

.baba-kn__sub {
	margin: 0;
	color: #5b5b70;
	font-size: 14px;
	line-height: 1.5;
}

.baba-kn__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border: 1px solid #d8d3e4;
	border-radius: 30px;
	background-color: #fff;
	color: #12121c;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.baba-kn__btn:hover { background-color: #12121c; color: #fff; }
.baba-kn__btn svg { width: 1em; height: 1em; }

.baba-kn__media {
	flex: 0 0 auto;
	width: 40%;
	align-self: flex-end;
	line-height: 0;
}

.baba-kn__media img {
	display: block;
	width: 100%;
	height: auto;
}

.baba-hf {
	--baba-hf-ratio: 16 / 9;
	width: 100%;
}

.baba-hf__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.baba-hf__title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.baba-hf__word {
	color: #b6b3c4;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s ease;
	white-space: nowrap;
}

.baba-hf__word.is-active { color: #12121c; }

.baba-hf__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 52px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 30px;
	background-color: #d9d5e4;
	cursor: pointer;
	transition: background-color .25s ease;
}

.baba-hf__knob {
	position: absolute;
	top: 50%;
	left: 3px;
	width: calc(50% - 4px);
	height: calc(100% - 6px);
	border-radius: 30px;
	background-color: #fff;
	transform: translateY(-50%);
	transition: left .25s cubic-bezier(.22, .61, .36, 1);
}

.baba-hf.is-fresh .baba-hf__toggle { background-color: #7c3aed; }
.baba-hf.is-fresh .baba-hf__knob { left: calc(50% + 1px); }

.baba-hf__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid #e0dbec;
	border-radius: 30px;
	color: #5b5b70;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease;
}

.baba-hf__all:hover { background-color: #f4f1fb; }
.baba-hf--all-mobile .baba-hf__all { display: none; }
.baba-hf--all-none .baba-hf__all { display: none; }

.baba-hf__panel { display: none; }
.baba-hf__panel.is-active { display: block; }

.baba-hf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.baba-hf__card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-radius: 8px;
	background-color: #fdeef1;
	overflow: hidden;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.baba-hf__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(30, 10, 60, .1);
}

.baba-hf__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 16px;
}

.baba-hf__pill {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 4px;
	background-color: #2e17e6;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.baba-hf__ctitle {
	color: #12121c;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	transition: color .2s ease;
}

.baba-hf__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #8a8a9c;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.baba-hf__meta svg,
.baba-hf__meta i { width: 1em; height: 1em; font-size: 11px; }

.baba-hf__thumb {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: var(--baba-hf-ratio, 16 / 9);
	line-height: 0;
	background-color: #efe7f3;
	overflow: hidden;
}

.baba-hf__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Wariant zapasowy: grafika z boku (dawny układ poziomy) ---- */
.baba-hf--side .baba-hf__card {
	flex-direction: row;
	min-height: 108px;
}

.baba-hf--side .baba-hf__thumb {
	order: 1;
	width: 38%;
	aspect-ratio: auto;
}

.baba-hf--side .baba-hf__body {
	justify-content: center;
}

.baba-hf__thumb--empty {
	background: linear-gradient(135deg, #efe7f3, #e7d9ef);
}

.baba-hf__empty {
	padding: 30px;
	border-radius: 8px;
	background: #faf8ff;
	color: #9a9aae;
	text-align: center;
}

@media (max-width: 1024px) {
	.baba-kn__title { font-size: 21px; }
}

@media (max-width: 767px) {

	.baba-kn {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 20px;
		min-height: 0;
	}

	.baba-kn__title { font-size: 18px; }

	.baba-kn__body { gap: 12px; width: 100%; }

	.baba-kn__btn { font-size: 10px; padding: 10px 16px; }

	.baba-kn__media { width: 100%; align-self: center; }

	.baba-kn--m-noimg .baba-kn__media { display: none; }

	.baba-hf__head {
		flex-wrap: nowrap;
		gap: 10px;
		margin-bottom: 16px;
	}

	.baba-hf__word { font-size: 15px; }

	.baba-hf__toggle { width: 40px; height: 20px; }

	.baba-hf--all-mobile .baba-hf__all { display: inline-flex; }

	.baba-hf__all {
		padding: 7px 11px;
		font-size: 8px;
		gap: 5px;
	}

	.baba-hf__grid { gap: 12px; }

	/* Wariant boczny również układa się pionowo na mobile. */
	.baba-hf--side .baba-hf__card {
		flex-direction: column;
		min-height: 0;
	}

	.baba-hf--side .baba-hf__thumb {
		order: 0;
		width: 100%;
		aspect-ratio: var(--baba-hf-ratio, 16 / 9);
	}

	.baba-hf__body {
		gap: 8px;
	}

	.baba-hf__ctitle { font-size: 13px; line-height: 1.3; }

	.baba-hf__pill { font-size: 8px; padding: 3px 7px; }

	.baba-hf__meta { font-size: 8px; }
}
