/* Blok „Siatka kart" */

.rb-features {
	background: var(--rb-color-bg);
	padding-block: var(--rb-space-12);
}

.rb-features__heading {
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
	line-height: 1.3;
	margin-bottom: var(--rb-space-10);
}

.rb-features__grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.75rem);
}
.rb-features__grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-features__grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-features__grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rb-features__card {
	background: var(--rb-color-bg-alt);
	border-radius: var(--rb-radius-xl);
	padding: clamp(1.25rem, 2.2vw, 2rem);
}

/* Ikony przychodzą z własnym pomarańczowym kołem — motyw nie dokłada tła. */
.rb-features__icon {
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.rb-features__icon img { width: 56px; height: 56px; }

.rb-features__title {
	font-size: var(--rb-fs-h5);
	line-height: 1.35;
	font-weight: 700;
	margin-bottom: var(--rb-space-2);
}

.rb-features__text {
	font-size: 1rem;      /* 16 px */
	line-height: 1.5;     /* 24 px */
	font-weight: 400;
	color: var(--rb-gray-600);
}
.rb-features__text p:last-child { margin-bottom: 0; }

/* Pas domykający sekcję — szerokość kontenera, nie całego okna. */
.rb-features__bar {
	height: 20px;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--rb-navy-900);
}

/* ---------------------------------- responsywnie ------------------------------- */

@media (max-width: 900px) {
	/* Niezależnie od ustawienia na desktopie, poniżej 900 px idziemy na dwie kolumny. */
	.rb-features__grid[data-columns="3"],
	.rb-features__grid[data-columns="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-features { padding-block: var(--rb-space-8); }
	.rb-features__heading { margin-bottom: var(--rb-space-6); }
	.rb-features__icon { margin-bottom: var(--rb-space-4); }
}

@media (max-width: 560px) {
	/*
	 * Dwie kolumny utrzymujemy do samego dołu — tak jest w projekcie mobilnym.
	 * Karty robią się wąskie, więc odchudzamy padding, ikonę i typografię.
	 */
	.rb-features__card { padding: var(--rb-space-4); border-radius: var(--rb-radius-lg); }
	.rb-features__icon { width: 44px; height: 44px; margin-bottom: var(--rb-space-3); }
	.rb-features__icon img { width: 44px; height: 44px; }
	.rb-features__title { font-size: 0.9375rem; }
	.rb-features__text { font-size: var(--rb-fs-body-xs); line-height: 1.55; }
	.rb-features__grid { gap: var(--rb-space-3); }
	.rb-features__bar { height: 14px; }
}
