.pf-cc {
	--pf-cc-pink: var(--pf-primary-dark, #f58ea6);
	--pf-cc-cream: var(--pf-surface, #fff4e9);
	--pf-cc-text: var(--pf-text-dark, #111);
	--pf-cc-muted: #666;
	--pf-cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	max-width: 720px;
	margin: 0 auto;
	padding: 1.25rem 0 2rem;
	color: var(--pf-cc-text);
	font-family: inherit;
}
.pf-cc__header { text-align: center; margin-bottom: 1.5rem; }
.pf-cc__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.02em;
}
.pf-cc__subtitle { margin: 0 0 1.1rem; color: var(--pf-cc-muted); }

/* Progress bar */
.pf-cc__progress {
	max-width: 420px;
	margin: 0 auto;
	padding: 0.35rem 0 0;
}
.pf-cc__progress-track {
	position: relative;
	height: 4px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pf-cc-pink) 18%, #eee);
	overflow: hidden;
	margin: 0 1.1rem 0.85rem;
}
.pf-cc__progress-fill {
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: var(--pf-cc-pink);
	transition: width 0.45s var(--pf-cc-ease);
}
.pf-cc__progress-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}
.pf-cc__progress-steps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	color: var(--pf-cc-muted);
	font-size: 0.78rem;
	font-weight: 600;
	transition: color 0.3s var(--pf-cc-ease);
}
.pf-cc__progress-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #e8e4df;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1.5px rgba(17, 17, 17, 0.12);
	transition:
		background 0.3s var(--pf-cc-ease),
		box-shadow 0.3s var(--pf-cc-ease),
		transform 0.35s var(--pf-cc-ease);
}
.pf-cc__progress-steps li.is-done {
	color: var(--pf-cc-text);
}
.pf-cc__progress-steps li.is-done .pf-cc__progress-dot {
	background: var(--pf-cc-pink);
	box-shadow: 0 0 0 1.5px var(--pf-cc-pink);
}
.pf-cc__progress-steps li.is-active {
	color: var(--pf-cc-text);
}
.pf-cc__progress-steps li.is-active .pf-cc__progress-dot {
	background: var(--pf-cc-pink);
	box-shadow: 0 0 0 1.5px var(--pf-cc-pink);
	transform: scale(1.25);
}
.pf-cc__progress-label {
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.pf-cc__error {
	background: #fde8e8;
	color: #9b1c1c;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	margin: 0 0 1rem;
	animation: pf-cc-fade-in 0.3s var(--pf-cc-ease);
}
.pf-cc__step {
	/* White card on page surface band */
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: 18px;
	padding: 1.25rem 1.35rem 1.4rem;
	box-shadow: 0 10px 28px rgba(40, 24, 20, 0.06);
}
.pf-cc__step[hidden] { display: none !important; }
.pf-cc__step.is-active {
	animation: pf-cc-step-in 0.4s var(--pf-cc-ease);
}
.pf-cc__fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; }
.pf-cc__fieldset legend {
	font-weight: 650;
	margin-bottom: 0.55rem;
}
.pf-cc__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}
.pf-cc__pills--stack { flex-direction: column; }
.pf-cc__pill {
	appearance: none;
	border: 1px solid rgba(17, 17, 17, 0.12);
	background: var(--pf-cc-cream);
	color: var(--pf-cc-text);
	border-radius: 999px;
	padding: 0.7rem 1.25rem;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	text-align: left;
	transition:
		background 0.28s var(--pf-cc-ease),
		color 0.28s var(--pf-cc-ease),
		border-color 0.28s var(--pf-cc-ease),
		transform 0.22s var(--pf-cc-ease),
		box-shadow 0.28s var(--pf-cc-ease);
}
.pf-cc__pill:hover {
	transform: translateY(-1px);
}
.pf-cc__pill:active {
	transform: scale(0.97);
}
.pf-cc__pill.is-active {
	background: var(--pf-cc-pink);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--pf-cc-pink) 35%, transparent);
}
.pf-cc__grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.pf-cc__field {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
}
.pf-cc__field input[type="text"],
.pf-cc__field input[type="email"],
.pf-cc__field input[type="number"] {
	width: 100%;
	min-height: 44px;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font: inherit;
	background: var(--pf-cc-cream);
	box-sizing: border-box;
	transition: border-color 0.25s var(--pf-cc-ease), box-shadow 0.25s var(--pf-cc-ease);
}
.pf-cc__field input:focus {
	outline: none;
	border-color: var(--pf-cc-pink);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-cc-pink) 25%, transparent);
}
.pf-cc__stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	width: 100%;
	transition: border-color 0.25s var(--pf-cc-ease), box-shadow 0.25s var(--pf-cc-ease);
}
.pf-cc__stepper:focus-within {
	border-color: var(--pf-cc-pink);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pf-cc-pink) 25%, transparent);
}
.pf-cc__stepper button {
	border: 0;
	background: var(--pf-cc-cream);
	width: 42px;
	height: 44px;
	cursor: pointer;
	font-size: 1.15rem;
	flex-shrink: 0;
	transition: background 0.2s var(--pf-cc-ease), color 0.2s var(--pf-cc-ease), transform 0.15s var(--pf-cc-ease);
}
.pf-cc__stepper button:hover {
	background: color-mix(in srgb, var(--pf-cc-pink) 22%, var(--pf-cc-cream));
	color: var(--pf-cc-text);
}
.pf-cc__stepper button:active {
	transform: scale(0.92);
}
.pf-cc__stepper input {
	flex: 1;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	background: #fff !important;
	min-width: 0;
	-moz-appearance: textfield;
	box-shadow: none !important;
	transition: color 0.2s var(--pf-cc-ease);
}
.pf-cc__stepper input.is-ticked {
	animation: pf-cc-tick 0.28s var(--pf-cc-ease);
}
.pf-cc__stepper input::-webkit-outer-spin-button,
.pf-cc__stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.pf-cc__activity-block {
	margin-bottom: 1.35rem;
}
.pf-cc__activity-block:last-of-type {
	margin-bottom: 0;
}
.pf-cc__activity-heading {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	font-weight: 700;
}
.pf-cc__activity-help {
	margin: 0 0 0.75rem;
	color: var(--pf-cc-muted);
	font-size: 0.92rem;
	line-height: 1.4;
}
.pf-cc__activity {
	display: grid;
	gap: 0.65rem;
}
.pf-cc__activity-card {
	appearance: none;
	text-align: left;
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 14px;
	padding: 0.85rem 1rem;
	background: var(--pf-cc-cream);
	cursor: pointer;
	font: inherit;
	transition:
		background 0.28s var(--pf-cc-ease),
		border-color 0.28s var(--pf-cc-ease),
		box-shadow 0.28s var(--pf-cc-ease),
		transform 0.22s var(--pf-cc-ease);
}
.pf-cc__activity-card:hover {
	transform: translateY(-1px);
}
.pf-cc__activity-card:active {
	transform: scale(0.99);
}
.pf-cc__activity-card strong { display: block; margin-bottom: 0.2rem; }
.pf-cc__activity-card span { color: var(--pf-cc-muted); font-size: 0.9rem; }
.pf-cc__activity-card.is-active {
	border-color: var(--pf-cc-pink);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--pf-cc-pink) 35%, transparent);
	background: #fff;
}
.pf-cc__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: flex-end;
	margin-top: 1.25rem;
}
.pf-cc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	border: 2px solid transparent;
	font: inherit;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition:
		transform 0.2s var(--pf-cc-ease),
		box-shadow 0.28s var(--pf-cc-ease),
		background 0.25s var(--pf-cc-ease),
		border-color 0.25s var(--pf-cc-ease),
		opacity 0.25s var(--pf-cc-ease);
}
.pf-cc__btn:hover {
	transform: translateY(-1px);
}
.pf-cc__btn:active {
	transform: scale(0.97);
}
.pf-cc__btn--primary {
	background: var(--pf-cc-pink);
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--pf-cc-pink) 28%, transparent);
}
.pf-cc__btn--primary:hover {
	background: var(--pf-primary, #f8aec0);
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--pf-primary, #f8aec0) 35%, transparent);
}
.pf-cc__btn--ghost {
	background: #fff;
	border-color: rgba(17, 17, 17, 0.14);
	color: var(--pf-cc-text);
}
/* Nawigacja / Oblicz ponownie — nie CTA „Ebooki i dieta” */
.pf-cc__nav .pf-cc__btn--ghost:hover,
.pf-cc__btn--restart:hover {
	background: var(--pf-secondary-dark, #e0c7af);
	border-color: transparent;
	color: var(--pf-cc-text);
}
.pf-cc__result { text-align: center; }
.pf-cc__result-label { margin: 0 0 0.35rem; color: var(--pf-cc-muted); }
.pf-cc__result-kcal {
	margin: 0 0 1rem;
	font-size: clamp(2.2rem, 6vw, 3.2rem);
	font-weight: 750;
	letter-spacing: -0.03em;
	color: var(--pf-cc-pink);
	animation: pf-cc-pop 0.5s var(--pf-cc-ease);
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.45em;
}
.pf-cc__result-kcal small { font-size: 1rem; font-weight: 600; color: var(--pf-cc-text); }
.pf-cc__metrics {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	text-align: left;
}
.pf-cc__metrics li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.55rem 0.75rem;
	background: var(--pf-cc-cream);
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 14px;
	animation: pf-cc-fade-up 0.4s var(--pf-cc-ease) both;
}
.pf-cc__metrics li:nth-child(2) { animation-delay: 0.05s; }
.pf-cc__metrics li:nth-child(3) { animation-delay: 0.1s; }
.pf-cc__metric-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}
.pf-cc__metric-name {
	font-weight: 700;
}
.pf-cc__metric-value {
	font-weight: 700;
	text-align: right;
	flex-shrink: 0;
}
.pf-cc__hint {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.pf-cc__hint-btn {
	appearance: none;
	width: 1.15rem;
	height: 1.15rem;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid color-mix(in srgb, var(--pf-cc-pink) 55%, #999);
	background: #fff;
	color: var(--pf-cc-pink);
	font: 700 0.7rem/1 inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s var(--pf-cc-ease), color 0.2s var(--pf-cc-ease), transform 0.15s var(--pf-cc-ease);
}
.pf-cc__hint-btn:hover,
.pf-cc__hint.is-open .pf-cc__hint-btn,
.pf-cc__hint:focus-within .pf-cc__hint-btn {
	background: var(--pf-cc-pink);
	color: #fff;
	border-color: var(--pf-cc-pink);
}
.pf-cc__hint-btn:active {
	transform: scale(0.92);
}
.pf-cc__hint-pop {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 20;
	width: min(240px, 70vw);
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	background: #2b2a29;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s var(--pf-cc-ease), visibility 0.2s var(--pf-cc-ease);
}
.pf-cc__hint-pop::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #2b2a29;
}
.pf-cc__hint.is-open .pf-cc__hint-pop,
.pf-cc__hint:focus-within .pf-cc__hint-pop {
	opacity: 1;
	visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
	.pf-cc__hint:hover .pf-cc__hint-pop {
		opacity: 1;
		visibility: visible;
	}
}
.pf-cc__macros {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.pf-cc__macros > div {
	background: var(--pf-cc-cream);
	border: 1px solid rgba(17, 17, 17, 0.1);
	border-radius: 14px;
	padding: 0.65rem 0.4rem;
	font-size: 0.88rem;
	animation: pf-cc-fade-up 0.4s var(--pf-cc-ease) both;
}
.pf-cc__macros > div:nth-child(2) { animation-delay: 0.06s; }
.pf-cc__macros > div:nth-child(3) { animation-delay: 0.12s; }
.pf-cc__macros strong { display: block; margin-top: 0.2rem; font-size: 1.05rem; }
.pf-cc__disclaimer {
	font-size: 0.82rem;
	color: var(--pf-cc-muted);
	line-height: 1.45;
	margin: 0 0 1.1rem;
}
.pf-cc__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
	margin-bottom: 0.25rem;
}
.pf-cc__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
}
.pf-cc__btn--restart {
	align-self: center;
	min-width: min(100%, 280px);
}
.pf-cc__lead {
	text-align: left;
	border-top: 1px solid rgba(17, 17, 17, 0.08);
	padding-top: 1.1rem;
	margin-top: 0.5rem;
}
.pf-cc__lead h3 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.pf-cc__lead form { display: grid; gap: 0.75rem; }
.pf-cc__consent {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	font-size: 0.88rem;
	font-weight: 500;
}
.pf-cc__lead-msg { margin: 0; font-size: 0.9rem; }
.pf-cc__lead-msg.is-error { color: #9b1c1c; }
.pf-cc__lead-msg.is-ok { color: #1a6b4a; }
.pf-cc__hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
}
.pf-cc__edu {
	margin-top: 1.5rem;
	padding: 1rem 1.15rem;
	border-radius: 14px;
	background: var(--pf-cc-cream);
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--pf-cc-muted);
}
.pf-cc__edu p { margin: 0 0 0.55rem; }
.pf-cc__edu p:last-child { margin-bottom: 0; }

@keyframes pf-cc-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes pf-cc-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes pf-cc-fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes pf-cc-pop {
	0% {
		opacity: 0;
		transform: scale(0.92);
	}
	60% {
		transform: scale(1.03);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes pf-cc-tick {
	0% { transform: scale(1); }
	40% { transform: scale(1.08); color: var(--pf-cc-pink); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.pf-cc__progress-fill,
	.pf-cc__progress-dot,
	.pf-cc__progress-steps li,
	.pf-cc__pill,
	.pf-cc__activity-card,
	.pf-cc__btn,
	.pf-cc__stepper button,
	.pf-cc__field input {
		transition: none !important;
	}
	.pf-cc__step.is-active,
	.pf-cc__result-kcal,
	.pf-cc__metrics li,
	.pf-cc__macros > div,
	.pf-cc__error,
	.pf-cc__stepper input.is-ticked,
	.pf-cc__hint-pop {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 520px) {
	.pf-cc__macros { grid-template-columns: 1fr; }
	.pf-cc__nav { justify-content: stretch; }
	.pf-cc__nav .pf-cc__btn { flex: 1; }
	.pf-cc__progress-label { font-size: 0.72rem; }
	.pf-cc__progress-track { margin-left: 0.65rem; margin-right: 0.65rem; }
	.pf-cc__cta {
		flex-wrap: nowrap;
	}
	.pf-cc__cta .pf-cc__btn {
		flex: 1 1 0;
		min-width: 0;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
	.pf-cc__btn--restart {
		align-self: stretch;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
	.pf-cc__hint-pop {
		left: 0;
		transform: none;
		width: min(220px, calc(100vw - 3rem));
	}
	.pf-cc__hint-pop::after {
		left: 0.85rem;
		transform: none;
	}
}
