/*
 * Front odwzorowuje komponent .pp-cechy z makiety nowego motywu.
 * Wartości motywu są źródłem prawdy; fallbacki utrzymują czytelny wygląd po jego zmianie.
 * Wtyczka celowo nie ustawia font-family — dziedziczy krój z aktywnego motywu.
 */
.spcp-features.pp-cechy {
	margin: 10px 0;
	color: var(--sp-ink, #0e2a1f);
}

.spcp-features .sp-head {
	display: grid;
	justify-items: center;
	max-width: 760px;
	margin: 0 auto var(--sp-s5, 48px);
	text-align: center;
}

.spcp-features .sp-head h2,
.spcp-features .sp-head p,
.spcp-features .cechy p {
	margin: 0;
}

.spcp-features .sp-head h2 {
	color: inherit;
	font-size: var(--sp-h2, clamp(30px, 3.2vw, 40px));
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.5px;
}

.spcp-features .sp-kicker {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: var(--sp-s2, 16px);
	color: var(--sp-action, #735f38);
	font-size: 14px;
	letter-spacing: 1.3px;
	line-height: 1.55;
	text-transform: uppercase;
}

.spcp-features .sp-kicker::before,
.spcp-features .sp-kicker::after {
	content: '';
	width: 34px;
	height: 1px;
	flex: none;
	background: var(--sp-hair-strong, #9e895e);
}

.spcp-features .cechy {
	--spcp-feature-gap: clamp(16px, 2vw, 32px);
	--spcp-feature-width-adjustment: clamp(12px, 1.5vw, 24px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--spcp-feature-gap);
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.spcp-features .cechy > li {
	display: grid;
	flex: 0 1 calc(25% - var(--spcp-feature-width-adjustment));
	grid-template-rows: auto auto;
	align-content: start;
	justify-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.spcp-features .cechy img,
.spcp-features .cechy .spcp-feature-icon {
	display: block;
	width: 140px;
	height: 140px;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
	color: var(--sp-gold, #9e895e);
	transition: transform var(--sp-hover, 280ms) var(--sp-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.spcp-features .cechy b {
	display: block;
	color: inherit;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
}

.spcp-features .cechy p {
	margin-top: 2px;
	color: var(--sp-muted, #6f6a63);
	font-size: 16px;
	line-height: 1.55;
}

.spcp-features .pp-cechy-reszta {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 360ms var(--sp-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.spcp-features.spcp-is-enhanced .pp-cechy-reszta {
	grid-template-rows: 0fr;
}

.spcp-features.is-otwarte .pp-cechy-reszta {
	grid-template-rows: 1fr;
}

.spcp-features .pp-cechy-reszta > div {
	min-height: 0;
	overflow: hidden;
}

.spcp-features .pp-cechy-reszta .cechy {
	padding-top: var(--sp-s4, 32px);
}

.spcp-features .pp-cechy-przelacz {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	margin: var(--sp-s3, 24px) auto 0;
	padding: 12px 23px;
	border: 1px solid var(--sp-action, #735f38);
	border-radius: var(--sp-radius, 2px);
	background: transparent;
	box-shadow: none;
	color: var(--sp-action, #735f38);
	font: inherit;
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--sp-fast, 180ms), color var(--sp-fast, 180ms), border-color var(--sp-fast, 180ms), transform var(--sp-hover, 280ms) var(--sp-ease, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow var(--sp-hover, 280ms);
}

.spcp-features.spcp-is-enhanced .pp-cechy-przelacz {
	display: flex;
}

.spcp-features .pp-cechy-przelacz .sp-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: none;
	transition: transform var(--sp-hover, 280ms) var(--sp-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.spcp-features.is-otwarte .pp-cechy-przelacz .sp-icon {
	transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
	.spcp-features .cechy > li:hover img,
	.spcp-features .cechy > li:hover .spcp-feature-icon {
		transform: translateY(-4px) rotate(-1.5deg);
	}

	.spcp-features .pp-cechy-przelacz:hover {
		border-color: var(--sp-ink, #0e2a1f);
		background: var(--sp-soft, #f0ece3);
		box-shadow: inset 0 -2px 0 var(--sp-gold-light, #cbb98e);
		color: var(--sp-ink, #0e2a1f);
		transform: translateY(-2px);
	}
}

@media (max-width: 760px) {
	.spcp-features .cechy {
		--spcp-feature-width-adjustment: 8px;
	}

	.spcp-features .cechy > li {
		flex-basis: calc(50% - var(--spcp-feature-width-adjustment));
	}
}

@media (max-width: 420px) {
	.spcp-features .cechy img,
	.spcp-features .cechy .spcp-feature-icon {
		width: 112px;
		height: 112px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spcp-features .pp-cechy-reszta,
	.spcp-features .cechy img,
	.spcp-features .cechy .spcp-feature-icon,
	.spcp-features .pp-cechy-przelacz,
	.spcp-features .pp-cechy-przelacz .sp-icon {
		transition-duration: 0.001ms !important;
	}

	.spcp-features .cechy > li:hover img,
	.spcp-features .cechy > li:hover .spcp-feature-icon,
	.spcp-features .pp-cechy-przelacz:hover {
		transform: none;
	}
}

html[data-motion="off"] .spcp-features .pp-cechy-reszta,
html[data-motion="off"] .spcp-features .cechy img,
html[data-motion="off"] .spcp-features .cechy .spcp-feature-icon,
html[data-motion="off"] .spcp-features .pp-cechy-przelacz,
html[data-motion="off"] .spcp-features .pp-cechy-przelacz .sp-icon {
	transition-duration: 0.001ms !important;
}

html[data-motion="off"] .spcp-features .cechy > li:hover img,
html[data-motion="off"] .spcp-features .cechy > li:hover .spcp-feature-icon,
html[data-motion="off"] .spcp-features .pp-cechy-przelacz:hover {
	transform: none;
}
