.baba-web {
	--baba-web-mcard: 72%;
	--baba-web-card-ratio: 16 / 9;
	--baba-web-feat-ratio: 16 / 9;
	width: 100%;
}

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

.baba-web__title {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	color: #12121c;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

.baba-web__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 4px;
	border-radius: 4px;
	background-color: #2e17e6;
}

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

.baba-web__all:hover { background-color: #f4f1fb; }

/* ---- Wspólne: plakietka, meta, przyciski ---- */
.baba-web__pill {
	display: inline-block;
	align-self: flex-start;
	padding: 5px 13px;
	border-radius: 14px;
	background-color: #7c3aed;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	line-height: 1.2;
}

.baba-web__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: #8a8a9c;
	font-size: 11px;
}

.baba-web__metaitem {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.baba-web__metaitem svg,
.baba-web__metaitem i { width: 1em; height: 1em; font-size: 12px; }
.baba-web__metalabel { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.baba-web__ico { font-size: 12px; }

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

.baba-web__btn:hover { background-color: #12121c; border-color: #12121c; color: #fff; }
.baba-web__btn--sm { padding: 9px 16px; font-size: 9px; }
.baba-web__arrow { font-size: 13px; line-height: 1; }

/* ---- Karta wyróżniona ---- */
.baba-web__feature {
	display: flex;
	align-items: stretch;
	gap: 26px;
	margin-bottom: 24px;
}

.baba-web__feature-media {
	flex: 0 0 44%;
	/* align-self: center zamiast stretch – wysokość ma wynikać z proporcji,
	   a nie z wysokości kolumny tekstu obok. Z tego samego powodu nie ma tu
	   już min-height, które przy węższych ekranach nadpisywałoby aspect-ratio. */
	align-self: center;
	aspect-ratio: var(--baba-web-feat-ratio, 16 / 9);
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
	background: #efe7f3;
}

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

.baba-web__feature-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
}

.baba-web__feature-titlelink { text-decoration: none; }

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

.baba-web__meta--top { gap: 20px; }

.baba-web__feature-text {
	margin: 0;
	color: #5b5b70;
	font-size: 14px;
	line-height: 1.55;
}

/* ---- Lista kafelków ---- */
.baba-web__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.baba-web__card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid #ece7f6;
	border-radius: 14px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.baba-web__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(30, 10, 60, .1);
}

.baba-web__card-media {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	line-height: 0;
	aspect-ratio: var(--baba-web-card-ratio, 16 / 9);
	background: #efe7f3;
	overflow: hidden;
}

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

.baba-web__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #efe7f3, #e7d9ef);
}

.baba-web__card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 16px;
}

.baba-web__card-titlelink { text-decoration: none; }

.baba-web__card-title {
	margin: 0;
	color: #12121c;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	transition: color .2s ease;
}

.baba-web__card-sub {
	margin: 0;
	color: #8a8a9c;
	font-size: 12px;
	line-height: 1.45;
}

/* ---- Responsywność ---- */
@media (max-width: 1024px) {
	.baba-web__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.baba-web__feature-title { font-size: 21px; }
}

@media (max-width: 767px) {

	.baba-web__head { flex-wrap: nowrap; margin-bottom: 18px; }
	.baba-web__title { font-size: 20px; }
	.baba-web__all { flex: 0 0 auto; padding: 8px 12px; font-size: 9px; letter-spacing: .06em; }

	.baba-web__feature {
		flex-direction: column;
		gap: 14px;
		margin-bottom: 18px;
	}

	.baba-web__feature-media { flex-basis: auto !important; width: 100%; min-height: 0; aspect-ratio: var(--baba-web-feat-ratio, 16 / 9); }
	.baba-web__feature-title { font-size: 18px; }
	.baba-web__feature-text { font-size: 13px; }

	.baba-web--m-carousel .baba-web__list {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -14px;
		padding: 0 14px 4px;
	}

	.baba-web--m-carousel .baba-web__list::-webkit-scrollbar { display: none; }

	.baba-web--m-carousel .baba-web__card {
		flex: 0 0 var(--baba-web-mcard);
		width: var(--baba-web-mcard);
		scroll-snap-align: start;
	}

	.baba-web__card-title { font-size: 15px; }
	.baba-web__meta { gap: 12px; font-size: 10px; }
}
