:root {
	--bg: #0f172a;
	--surface: #1e293b;
	--surface-hover: #334155;
	--surface-active: #475569;
	--border: #334155;
	--border-highlight: #fbbf24;
	--text: #e2e8f0;
	--text-muted: #94a3b8;
	--text-title: #f8fafc;
	--gold: #fbbf24;
	--gold-hover: #fde68a;
	--gold-bg: rgba(251, 191, 36, 0.12);
	--green: #34d399;
	--green-bg: rgba(52, 211, 153, 0.12);
	--blue: #38bdf8;
	--radius: 12px;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-left: env(safe-area-inset-left, 0px);
	--safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family:
		"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin: 0;
	padding: 0;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

a {
	color: var(--gold);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   STAŁY NAGŁÓWEK (UNIFIED HEADER)
   ══════════════════════════════════════════════════ */
.help-header {
	background: rgba(15, 23, 42, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: max(8px, var(--safe-top));
	padding-left: max(16px, var(--safe-left));
	padding-right: max(16px, var(--safe-right));
	width: 100%;
}

.help-header-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.help-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--text-title);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}
.help-brand:hover {
	text-decoration: none;
	opacity: 0.92;
}

.help-logo {
	height: 32px;
	width: auto;
	max-width: 80px;
	border-radius: 6px;
	object-fit: contain;
}

.help-brand-badge {
	font-size: 0.68rem;
	background: var(--gold);
	color: #0f172a;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 6px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.help-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

a.help-play-btn {
	background: var(--gold);
	color: #0f172a;
	font-weight: 700;
	font-size: 0.88rem;
	padding: 6px 14px;
	border-radius: 8px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
	transition:
		transform 0.1s ease,
		background 0.15s ease;
}
.help-play-btn:hover {
	background: var(--gold-hover);
	transform: translateY(-1px);
}

/* Wrapper paska nawigacyjnego z responsywnym scrollem i strzałkami */
.help-nav-wrap {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	width: 100%;
}

/* Pasek nawigacyjny podstron */
.help-nav-bar {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0 10px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.help-nav-bar::-webkit-scrollbar {
	display: none;
}

/* Półprzezroczyste gradienty zanikania na krawędziach wskazujące ucięcie treści */
.help-nav-wrap::before,
.help-nav-wrap::after {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 10px;
	width: 36px;
	pointer-events: none;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.help-nav-wrap::before {
	left: 0;
	background: linear-gradient(
		to right,
		rgba(15, 23, 42, 0.9) 20%,
		transparent 100%
	);
}

.help-nav-wrap::after {
	right: 0;
	background: linear-gradient(
		to left,
		rgba(15, 23, 42, 0.9) 20%,
		transparent 100%
	);
}

.help-nav-wrap.can-scroll-left::before {
	opacity: 1;
}

.help-nav-wrap.can-scroll-right::after {
	opacity: 1;
}

/* Półprzezroczysta strzałka ze stylem mikroanimacji */
.help-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(calc(-50% - 3px));
	z-index: 10;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(251, 191, 36, 0.45);
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
		background 0.2s ease,
		border-color 0.2s ease;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.4),
		0 0 10px rgba(251, 191, 36, 0.25);
}

.help-nav-arrow-left {
	left: 0;
}

.help-nav-arrow-right {
	right: 0;
}

.help-nav-wrap.can-scroll-left .help-nav-arrow-left {
	opacity: 1;
	pointer-events: auto;
	animation: navArrowPulseLeft 1.8s ease-in-out infinite;
}

.help-nav-wrap.can-scroll-right .help-nav-arrow-right {
	opacity: 1;
	pointer-events: auto;
	animation: navArrowPulseRight 1.8s ease-in-out infinite;
}

/* Mikroanimacje: subtelne pulsowanie i delikatny ruch w kierunku ukrytej treści */
@keyframes navArrowPulseRight {
	0%,
	100% {
		transform: translateY(calc(-50% - 3px)) translateX(0) scale(1);
		box-shadow:
			0 2px 8px rgba(0, 0, 0, 0.4),
			0 0 8px rgba(251, 191, 36, 0.2);
	}
	50% {
		transform: translateY(calc(-50% - 3px)) translateX(3px) scale(1.08);
		box-shadow:
			0 2px 12px rgba(0, 0, 0, 0.5),
			0 0 14px rgba(251, 191, 36, 0.5);
		border-color: rgba(251, 191, 36, 0.8);
	}
}

@keyframes navArrowPulseLeft {
	0%,
	100% {
		transform: translateY(calc(-50% - 3px)) translateX(0) scale(1);
		box-shadow:
			0 2px 8px rgba(0, 0, 0, 0.4),
			0 0 8px rgba(251, 191, 36, 0.2);
	}
	50% {
		transform: translateY(calc(-50% - 3px)) translateX(-3px) scale(1.08);
		box-shadow:
			0 2px 12px rgba(0, 0, 0, 0.5),
			0 0 14px rgba(251, 191, 36, 0.5);
		border-color: rgba(251, 191, 36, 0.8);
	}
}

.help-nav-arrow:hover {
	background: rgba(30, 41, 59, 0.95);
	border-color: var(--gold);
}

.help-nav-arrow:active {
	transform: translateY(calc(-50% - 3px)) scale(0.92);
}

.help-nav-link {
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	background: rgba(30, 41, 59, 0.5);
	border: 1px solid transparent;
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.help-nav-link:hover {
	color: var(--text-title);
	background: var(--surface);
	text-decoration: none;
}
.help-nav-link.active {
	color: #0f172a;
	background: var(--gold);
	border-color: var(--gold);
	font-weight: 700;
}

/* Ścieżka nawigacyjna (breadcrumbs) */
.help-crumbs-wrap {
	background: rgba(15, 23, 42, 0.6);
	border-bottom: 1px solid rgba(51, 65, 85, 0.5);
	padding-left: max(16px, var(--safe-left));
	padding-right: max(16px, var(--safe-right));
}
.help-crumbs {
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 0;
	font-size: 0.82rem;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.help-crumbs a {
	color: var(--text-muted);
	text-decoration: none;
}
.help-crumbs a:hover {
	color: var(--gold);
	text-decoration: underline;
}
.help-crumbs-current {
	color: var(--text-title);
	font-weight: 600;
}

/* ══════════════════════════════════════════════════
   GŁÓWNY KONTENER TREŚCI (CONTENT CONTAINER)
   ══════════════════════════════════════════════════ */
.help-container {
	max-width: 960px;
	width: 100%;
	margin: 0 auto;
	padding: 24px max(16px, var(--safe-left));
	padding-right: max(16px, var(--safe-right));
	flex: 1;
}

h1 {
	color: var(--gold);
	border-bottom: 2px solid var(--gold);
	padding-bottom: 8px;
	font-size: 1.85rem;
	margin-top: 8px;
	margin-bottom: 20px;
}
h2 {
	color: var(--gold);
	margin-top: 36px;
	margin-bottom: 14px;
	font-size: 1.4rem;
}
h3 {
	color: var(--gold-hover);
	margin-top: 24px;
	margin-bottom: 10px;
	font-size: 1.15rem;
}

p {
	color: #cbd5e1;
	margin: 12px 0;
}

/* Tabele */
.table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 18px 0;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: rgba(30, 41, 59, 0.4);
}
.table-wrap table {
	margin: 0;
	border: none;
	background: transparent;
	min-width: 100%;
}
table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	background: rgba(30, 41, 59, 0.4);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}
th,
td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}
th {
	background: var(--surface);
	color: var(--gold);
	font-weight: 700;
}
td:first-child {
	font-weight: 600;
	color: #fef3c7;
}
code {
	background: #1e293b;
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--gold);
	font-size: 0.9em;
}

/* Sekcja linków PWA na kartach (nie zawijają się brzydko) */
.pwa-callout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
	margin: 18px 0;
}

a.pwa-callout-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--text);
	transition:
		transform 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease;
}
.pwa-callout-card:hover {
	transform: translateY(-2px);
	border-color: var(--gold);
	background: #253349;
}
.pwa-callout-icon {
	font-size: 1.8rem;
	width: 44px;
	height: 44px;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid var(--border);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.pwa-callout-body {
	flex: 1;
	min-width: 0;
}
.pwa-callout-title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--text-title);
	margin-bottom: 3px;
}
.pwa-callout-card:hover .pwa-callout-title {
	color: var(--gold);
}
.pwa-callout-desc {
	font-size: 0.83rem;
	color: var(--text-muted);
	line-height: 1.35;
}
.pwa-callout-arrow {
	color: var(--gold);
	font-size: 1.1rem;
	font-weight: 800;
	flex-shrink: 0;
}

/* Ostrzeżenie satyryczne */
.disclaimer {
	background: #422006;
	border-left: 4px solid #f59e0b;
	padding: 16px 20px;
	margin: 28px 0;
	border-radius: 8px;
	color: #fef3c7;
	font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════
   STAŁA STOPKA (UNIFIED FOOTER)
   ══════════════════════════════════════════════════ */
.help-footer {
	background: #090e1a;
	border-top: 1px solid var(--border);
	padding-top: 32px;
	padding-bottom: max(28px, calc(16px + var(--safe-bottom)));
	padding-left: max(16px, var(--safe-left));
	padding-right: max(16px, var(--safe-right));
	margin-top: 40px;
	width: 100%;
}

.help-footer-inner {
	max-width: 960px;
	margin: 0 auto;
}

.footer-nav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-bottom: 28px;
}

.footer-col h4 {
	color: var(--gold);
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 12px 0;
}

.footer-btn-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

a.footer-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 0.88rem;
	font-weight: 600;
	padding: 9px 14px;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.15s ease;
}
a.footer-link-btn:hover {
	background: var(--surface-hover);
	border-color: var(--gold);
	color: var(--gold);
	transform: translateX(2px);
}
a.footer-link-btn.primary {
	background: var(--gold);
	color: #0f172a;
	font-weight: 700;
	border-color: var(--gold);
}
a.footer-link-btn.primary:hover {
	background: var(--gold-hover);
	color: #0f172a;
}

.footer-bottom {
	border-top: 1px solid rgba(51, 65, 85, 0.6);
	padding-top: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	color: var(--text-muted);
	flex-wrap: wrap;
	gap: 10px;
}
.footer-bottom a {
	color: var(--text-muted);
	text-decoration: none;
}
.footer-bottom a:hover {
	color: var(--gold);
	text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   KROKI INSTALACJI PWA (DLA PODSTRON IOS / ANDROID)
   ══════════════════════════════════════════════════ */
.steps {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 24px;
}
.step-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.step-header {
	display: flex;
	align-items: center;
	gap: 14px;
}
.step-badge {
	background: var(--gold);
	color: #0f172a;
	font-weight: 800;
	font-size: 1.1rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.step-badge.green {
	background: var(--green);
}
.step-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-title);
	margin: 0;
}
.step-desc {
	color: #cbd5e1;
	font-size: 0.95rem;
	margin: 0;
}
.mockup-wrap {
	background: #0b1120;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

/* Ekran iPhone / iOS */
.ios-screen {
	width: 100%;
	max-width: 360px;
	background: #1c1c1e;
	border-radius: 20px;
	border: 2px solid #3a3a3c;
	padding: 14px;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ios-bar {
	background: #2c2c2e;
	border-radius: 12px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 13px;
}
.ios-share-btn {
	background: #007aff;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	border: none;
}
.ios-sheet {
	background: #2c2c2e;
	border-radius: 14px;
	padding: 12px;
	margin-top: 8px;
}
.ios-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
}
.ios-item.active {
	background: #3a3a3c;
	color: #ffd60a;
	border: 1px solid #ffd60a;
	font-weight: 700;
}
.ios-icon {
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3a3a3c;
	border-radius: 6px;
	margin-right: 10px;
}
.ios-home-icon {
	width: 56px;
	height: 56px;
	border-radius: 13px;
	background: var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	margin: 0 auto 6px;
}
.ios-app-label {
	text-align: center;
	font-size: 12px;
	color: #e2e8f0;
	font-weight: 600;
}

/* Ekran Android */
.android-screen {
	width: 100%;
	max-width: 360px;
	background: #18191c;
	border-radius: 16px;
	border: 2px solid #2d3139;
	padding: 14px;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	font-family: Roboto, -apple-system, sans-serif;
}
.android-top-bar {
	background: #23272f;
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 13px;
}
.android-menu-btn {
	background: var(--green);
	color: #0a0e1a;
	padding: 4px 10px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.android-menu {
	background: #23272f;
	border-radius: 10px;
	padding: 8px;
	margin-top: 8px;
}
.android-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
}
.android-item.active {
	background: #2e3846;
	color: var(--green);
	border: 1px solid var(--green);
	font-weight: 700;
}
.android-home-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--gold);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	margin: 0 auto 6px;
}
.android-app-label {
	text-align: center;
	font-size: 12px;
	color: #e2e8f0;
	font-weight: 600;
}

/* Responsywność */
@media (max-width: 640px) {
	.help-brand {
		font-size: 1.05rem;
	}
	.help-play-btn {
		font-size: 0.8rem;
		padding: 5px 10px;
	}
	.pwa-callout-grid {
		grid-template-columns: 1fr;
	}
	.footer-nav-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
