/* =========================================
   RESET W RAMACH SEKCJI – nadpisujemy globalne h1–h6 itd.
   ========================================= */
.ppro-functions h1,
.ppro-functions h2,
.ppro-functions h3,
.ppro-functions h4,
.ppro-functions h5,
.ppro-functions h6,
.ppro-functions p,
.ppro-functions label {
	margin: 0;
	padding: 0;
	line-height: 1.35;
	font-family: inherit;
	font-weight: inherit;
}

/* =========================================
   ZMIENNE KOLORYSTYCZNE DLA TRYBÓW
   ========================================= */

.ppro-functions {
	--ppro-fn-bg: linear-gradient(180deg, #f1f5f9 0%, #f9fafb 40%, #f3f4f6 100%);
	--ppro-fn-border: #e5e7eb;
	--ppro-fn-border-soft: #e2e8f0;
	--ppro-fn-text-main: #0f172a;
	--ppro-fn-text-muted: #6b7280;
	--ppro-fn-text-soft: #9ca3af;

	/* domyślnie: personal (niebieski) */
	--ppro-fn-accent: #0284c7;
	--ppro-fn-accent-soft: #eff6ff;
	--ppro-fn-accent-soft-strong: #dbeafe;
	--ppro-fn-accent-dot: #0ea5e9;

	--ppro-fn-accent-emerald: #059669; /* używane w ciemnym boksie CTA */
	--ppro-fn-card-bg: #ffffff;
	--ppro-fn-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);

	--ppro-fn-radius-lg: 24px;
	--ppro-fn-radius-md: 18px;
	--ppro-fn-radius-pill: 999px;
}

.ppro-functions.ppro-functions--org {
	--ppro-fn-accent: #059669;
	--ppro-fn-accent-soft: #ecfdf3;
	--ppro-fn-accent-soft-strong: #d1fae5;
	--ppro-fn-accent-dot: #22c55e;
}

/* =========================================
   PODSTAWOWY UKŁAD SEKCJI
   ========================================= */

.ppro-section3 {
	background: var(--ppro-fn-bg);
	padding: 96px 16px;
}

@media (min-width: 768px) {
	.ppro-section3 {
		padding: 112px 24px 104px;
	}
}

@media (min-width: 1024px) {
	.ppro-section3 {
		padding: 120px 32px 112px;
	}
}

.ppro-functions-inner {
	max-width: 1160px;
	margin: 0 auto;
	color: var(--ppro-fn-text-main);
}

/* =========================================
   HEADER SEKCJI
   ========================================= */

.ppro-functions-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

.ppro-functions-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px 4px 10px;
	border-radius: var(--ppro-fn-radius-pill);
	background: #ecfeff;
	font-size: 11px;
	font-weight: 600;
	color: #0369a1;
}

.ppro-functions.ppro-functions--org .ppro-functions-badge {
	background: #ecfdf5;
	color: #047857;
}

.ppro-functions-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--ppro-fn-accent-dot);
}

.ppro-functions-title {
	margin-top: 18px;
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--ppro-fn-text-main);
}

.ppro-functions-lead {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ppro-fn-text-muted);
}

@media (min-width: 768px) {
	.ppro-functions-lead {
		font-size: 15px;
	}
}

/* =========================================
   GRID: LISTA + PANEL
   ========================================= */

.ppro-functions-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: flex-start;
}

@media (min-width: 960px) {
	.ppro-functions-grid {
		grid-template-columns: minmax(0, 360px) minmax(0, 1.35fr);
		gap: 28px;
	}
}

@media (min-width: 1200px) {
	.ppro-functions-grid {
		grid-template-columns: minmax(0, 380px) minmax(0, 1.5fr);
		gap: 32px;
	}
}

/* =========================================
   LEWA KOLUMNA – LISTA OBSZARÓW
   ========================================= */

.ppro-functions-sidebar {
	width: 100%;
}

.ppro-functions-sidebar-inner {
	background: #ffffff;
	border-radius: var(--ppro-fn-radius-lg);
	border: 1px solid var(--ppro-fn-border);
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
	padding: 18px 18px 12px;
}

@media (min-width: 768px) {
	.ppro-functions-sidebar-inner {
		padding: 20px 20px 16px;
	}
}

.ppro-functions-sidebar-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ppro-fn-text-soft);
	padding: 4px 4px 10px;
}

/* NAV LIST */

.ppro-functions-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ppro-functions-nav-item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 18px;
	border: 1px solid transparent;
	background: #ffffff;
	color: var(--ppro-fn-text-main);
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease,
		transform 120ms ease;
}

@media (min-width: 768px) {
	.ppro-functions-nav-item {
		padding: 11px 14px;
	}
}

.ppro-functions-nav-item:hover {
	background: #f9fafb;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
	transform: translateY(-1px);
}

.ppro-functions-nav-item.is-active {
	background: var(--ppro-fn-accent-soft);
	border-color: var(--ppro-fn-accent-soft-strong);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ppro-functions-nav-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	display: grid;
	place-items: center;
	background: #f9fafb;
}

.ppro-functions-nav-icon i {
	font-size: 0.9rem;
	color: var(--ppro-fn-accent);
}

.ppro-functions-nav-item.is-active .ppro-functions-nav-icon {
	border-color: var(--ppro-fn-accent-soft-strong);
	background: var(--ppro-fn-accent-soft);
}

.ppro-functions-nav-text {
	flex: 1;
	color: var(--ppro-fn-text-main);
}

.ppro-functions-nav-arrow {
	flex-shrink: 0;
}

.ppro-functions-nav-arrow i {
	font-size: 0.8rem;
	color: var(--ppro-fn-text-soft);
}

.ppro-functions-nav-item.is-active .ppro-functions-nav-arrow i {
	color: var(--ppro-fn-accent);
}

/* =========================================
   PRAWA KOLUMNA – PANEL SZCZEGÓŁÓW
   ========================================= */

.ppro-functions-detail {
	width: 100%;
}

.ppro-functions-detail-inner {
	position: relative;
	background:
		radial-gradient(circle at 0 100%, #e0f2fe 0, #eff6ff 32%, transparent 60%),
	    radial-gradient(circle at 100% 0, #d1fae5 0, #ecfdf5 35%, transparent 60%),
	    #ffffff;
	border-radius: var(--ppro-fn-radius-lg);
	border: 1px solid var(--ppro-fn-border-soft);
	box-shadow: var(--ppro-fn-card-shadow);
	padding: 20px 18px 18px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.ppro-functions-detail-inner {
		padding: 24px 24px 22px;
	}
}

.ppro-functions-detail-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border-radius: var(--ppro-fn-radius-pill);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(226, 232, 240, 0.9);
	font-size: 11px;
	color: var(--ppro-fn-text-muted);
	margin-bottom: 18px;
}

.ppro-functions-detail-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--ppro-fn-accent-dot);
}

.ppro-functions-detail-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.ppro-functions-detail-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	border: 1px solid var(--ppro-fn-accent-soft-strong);
	background: rgba(255, 255, 255, 0.9);
	display: grid;
	place-items: center;
	color: var(--ppro-fn-accent);
}

.ppro-functions-detail-icon i {
	font-size: 1.15rem;
}

.ppro-functions-detail-text {
	min-width: 0;
}

.ppro-functions-detail-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--ppro-fn-text-main);
	letter-spacing: -0.02em;
}

@media (min-width: 960px) {
	.ppro-functions-detail-title {
		font-size: 19px;
	}
}

.ppro-functions-detail-lead {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--ppro-fn-text-muted);
}

/* DÓŁ PANELU – DWA BOKSY OBOK SIEBIE */

.ppro-functions-detail-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin-top: 18px;
}

@media (min-width: 880px) {
	.ppro-functions-detail-bottom {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
		gap: 14px;
	}
}

@media (min-width: 1120px) {
	.ppro-functions-detail-bottom {
		gap: 18px;
	}
}

/* BOX: CO ZYSKUJESZ */

.ppro-functions-benefits {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 20px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	padding: 14px 14px 12px;
}

@media (min-width: 768px) {
	.ppro-functions-benefits {
		padding: 16px 16px 14px;
	}
}

.ppro-functions-benefits-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ppro-fn-text-soft);
	margin-bottom: 8px;
}

.ppro-functions-benefits-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
	font-size: 13px;
	color: var(--ppro-fn-text-main);
}

.ppro-functions-benefits-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.55;
}

.ppro-functions-benefits-bullet {
	margin-top: 6px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--ppro-fn-accent);
	flex-shrink: 0;
}

/* BOX: JAK TO DZIAŁA */

.ppro-functions-story {
	background: #020617;
	color: #e5e7eb;
	border-radius: 22px;
	padding: 15px 14px 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media (min-width: 768px) {
	.ppro-functions-story {
		padding: 16px 18px 16px;
	}
}

.ppro-functions-story-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #a7f3d0;
	margin-bottom: 8px;
}

.ppro-functions-story-text {
	font-size: 13px;
	line-height: 1.6;
	color: #e5e7eb;
	margin-bottom: 12px;
}

.ppro-functions-story-cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border-radius: 999px;
	border: none;
	background: var(--ppro-fn-accent-emerald);
	color: #022c22;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
	box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

.ppro-functions-story-cta-icon i {
	font-size: 0.85rem;
}

.ppro-functions-story-cta:hover {
	background: #10b981;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(16, 185, 129, 0.65);
}

/* =========================================
   RESPONSYWNOŚĆ DROBNA
   ========================================= */

@media (max-width: 767px) {
	.ppro-functions-header {
		margin-bottom: 32px;
	}
	.ppro-functions-detail-inner {
		padding: 18px 16px 16px;
	}
	.ppro-functions-detail-title {
		font-size: 17px;
	}
}
