/* =============================================================================
   RODO w praktyce — główny arkusz stylów
   ============================================================================= */

/* ── Zmienne ─────────────────────────────────────────────────────────────────── */

:root {
	--rwp-blue:          #12348b;
	--rwp-blue-dark:     #0c2672;
	--rwp-blue-mid:      #14368c;
	--rwp-blue-deep:     #0d2870;
	--rwp-yellow:        var(--rwp-blue-mid);
	--rwp-text:          #1a1a2e;
	--rwp-text-muted:    #6b7280;
	--rwp-border:        #e5e7eb;
	--rwp-bg:            #f8faff;
	--rwp-header-h:      76px;
	/* alias używany w template-parts ze starym motywem */
	--bloghash-sticky-h-offset: var(--rwp-header-h);
}

/* ── Reset & base ────────────────────────────────────────────────────────────── */

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
	font-family: 'Manrope', sans-serif;
	font-size: 1.6rem;
	line-height: 1.7;
	color: var(--rwp-text);
	background: #fff;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

input, textarea, select, button { font-family: inherit; }

a { color: var(--rwp-blue-mid); }

h1, h2, h3, h4, h5, h6 {
	font-family: 'Manrope', sans-serif;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin-top: 0;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */

.rwp-page { display: flex; flex-direction: column; min-height: 100vh; }

#main.rwp-main { flex: 1; }

.rwp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

/* alias używany w rodo-news-grid.php */
.bloghash-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	position: fixed;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 9999;
	background: #fff;
	color: var(--rwp-blue);
	padding: 0.8rem 1.6rem;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}

/* ── HEADER ──────────────────────────────────────────────────────────────────── */

.rwp-header {
	background-color: var(--rwp-blue);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 50px 50px;
	background-attachment: fixed;
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--rwp-header-h);
	transition:
		height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		background-color 0.3s ease,
		box-shadow 0.3s ease,
		backdrop-filter 0.3s ease;
	will-change: height;
}

.rwp-header.is-sticky {
	height: 58px;
	background-color: rgba(18, 52, 139, 0.94);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.25);
}

.rwp-header__inner {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 2.4rem;
}

/* Logo */
.rwp-logo-wrap {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.rwp-logo {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.rwp-logo-tagline {
	font-size: 1.0rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.52);
	margin: 0;
	letter-spacing: 0.01em;
	line-height: 1.2;
	max-height: 20px;
	overflow: hidden;
	opacity: 1;
	transition:
		opacity 0.25s ease,
		max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rwp-header.is-sticky .rwp-logo-tagline {
	opacity: 0;
	max-height: 0;
	margin-top: 0;
}

.rwp-logo img,
.rwp-logo .custom-logo {
	max-height: 36px;
	width: auto;
	transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.rwp-header.is-sticky .rwp-logo img,
.rwp-header.is-sticky .rwp-logo .custom-logo {
	max-height: 30px;
}

.rwp-logo__text {
	font-size: 1.55rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

/* Nav */
.rwp-nav {
	flex: 1;
}

.rwp-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.4rem;
}

.rwp-nav__menu > li > a {
	font-size: 1.25rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	padding: 0.6rem 1rem;
	border-radius: 6px;
	transition: color 0.18s ease, background 0.18s ease;
	display: block;
}

.rwp-nav__menu > li > a:hover,
.rwp-nav__menu > li.current-menu-item > a,
.rwp-nav__menu > li.current-menu-ancestor > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Chevron na elementach z podmenu */
.rwp-nav__menu > li.menu-item-has-children > a {
	padding-right: 2rem;
	position: relative;
}

.rwp-nav__menu > li.menu-item-has-children > a::after {
	content: '';
	position: absolute;
	right: 0.6rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid rgba(255, 255, 255, 0.50);
	transition: transform 0.2s ease, border-top-color 0.2s ease;
	pointer-events: none;
}

.rwp-nav__menu > li.menu-item-has-children:hover > a::after {
	transform: translateY(-50%) rotate(180deg);
	border-top-color: rgba(255, 255, 255, 0.90);
}

/* Przycisk toggle podmenu — widoczny tylko na mobile */
.rwp-submenu-toggle {
	display: none;
}

/* Dropdown */
.rwp-nav__menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--rwp-blue-dark);
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	border-radius: 8px;
	padding: 0.6rem 0;
	min-width: 200px;
	list-style: none;
	margin: 0;
	z-index: 100;
}

.rwp-nav__menu li {
	position: relative;
}

.rwp-nav__menu li:hover > .sub-menu {
	display: block;
}

.rwp-nav__menu .sub-menu li a {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.70);
	padding: 0.7rem 1.6rem;
	display: block;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rwp-nav__menu .sub-menu li:last-child a {
	border-bottom: none;
}

.rwp-nav__menu .sub-menu li a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

/* CTA button w headerze */
.rwp-header-cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	font-size: 1.2rem;
	font-weight: 700;
	font-family: 'Manrope', sans-serif;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	padding: 0.6rem 1.3rem;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.22s ease, border-color 0.22s ease;
}

.rwp-header-cta:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.40);
	color: #fff;
}

/* Hamburger */
.rwp-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.6rem;
	margin-left: auto;
	flex-shrink: 0;
}

.rwp-menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile nav */
@media (max-width: 991px) {
	.rwp-header-cta { display: none; }
	.rwp-menu-toggle { display: flex; }

	.rwp-nav {
		position: absolute;
		top: var(--rwp-header-h);
		left: 0;
		right: 0;
		background: var(--rwp-blue-dark);
		border-top: 1px solid rgba(255, 255, 255, 0.10);
		display: none;
	}

	.rwp-nav.is-open { display: block; }

	.rwp-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.8rem 0;
	}

	.rwp-nav__menu > li > a {
		padding: 1.1rem 2rem;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
		color: rgba(255, 255, 255, 0.80);
	}

	.rwp-nav__menu > li > a:hover {
		background: rgba(255, 255, 255, 0.06);
	}

	.rwp-nav__menu > li.menu-item-has-children > a::after {
		display: none;
	}

	.rwp-nav__menu > li.menu-item-has-children > a {
		padding-right: 1rem;
	}

	.rwp-submenu-toggle {
		position: absolute;
		right: 0;
		top: 0;
		height: 100%;
		min-width: 48px;
		background: transparent;
		border: none;
		border-left: 1px solid rgba(255, 255, 255, 0.07);
		color: rgba(255, 255, 255, 0.60);
		font-size: 1.6rem;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background 0.15s ease;
	}

	.rwp-submenu-toggle:hover {
		background: rgba(255, 255, 255, 0.06);
		color: #fff;
	}

	.rwp-submenu-toggle[aria-expanded="true"] {
		color: #fff;
	}

	.rwp-submenu-toggle[aria-expanded="true"] .rwp-chevron {
		transform: rotate(180deg);
	}

	.rwp-chevron {
		display: inline-block;
		width: 0;
		height: 0;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 6px solid currentColor;
		transition: transform 0.2s ease;
	}

	.rwp-nav__menu .sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		background: rgba(0, 0, 0, 0.2);
	}

	.rwp-nav__menu .sub-menu.is-open {
		display: block;
	}

	.rwp-nav__menu .sub-menu li a {
		padding-left: 3.6rem;
	}
}

/* ── LIGHT FOOTER ────────────────────────────────────────────────────────────── */

.rwp-footer {
	background: #f1f5f9;
	border-top: 1px solid var(--rwp-border);
	padding: 1.8rem 0;
}

.rwp-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.rwp-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.rwp-footer__menu a {
	font-size: 1.25rem;
	color: var(--rwp-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.rwp-footer__menu a:hover {
	color: var(--rwp-blue-mid);
}

.rwp-footer__copy {
	font-size: 1.2rem;
	color: #9ca3af;
}

/* ── POST HERO (tytuł artykułu) ──────────────────────────────────────────────── */

.rwp-post-hero {
	background-color: var(--rwp-blue);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 50px 50px;
	background-attachment: fixed;
	padding: 4.8rem 0 4rem;
}

.rwp-post-hero__cat {
	display: inline-block;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.7);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	padding: 0.3rem 1.2rem;
	border-radius: 10rem;
	text-decoration: none;
	margin-bottom: 1.6rem;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.rwp-post-hero__cat:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.rwp-post-hero__title {
	font-size: clamp(2.8rem, 4vw, 4.2rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 1.6rem;
	max-width: 820px;
}

.rwp-post-hero__meta {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.5);
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.rwp-breadcrumbs-bar {
	background: transparent;
	border-bottom: 1px solid var(--rwp-border);
	padding: 0.8rem 0;
}

.rwp-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 1.1rem;
	color: var(--rwp-text-muted);
}

.rwp-breadcrumbs a {
	color: var(--rwp-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.rwp-breadcrumbs a:hover { color: var(--rwp-blue-mid); }

.rwp-breadcrumbs__current {
	color: var(--rwp-text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 400px;
	display: inline-block;
}

/* ── TYPOGRAPHY — SINGLE POST ────────────────────────────────────────────────── */

.rwp-article__header {
	padding-top: 4rem;
	margin-bottom: 2.8rem;
}

.rwp-article__cat {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	padding: 0.32rem 0.9rem;
	border-radius: 10rem;
	text-decoration: none;
	color: var(--rwp-blue-mid);
	border: 1.5px solid rgba(20, 54, 140, 0.28);
	transition: background 0.18s ease;
	margin-bottom: 1.2rem;
}

.rwp-article__cat:hover {
	background: rgba(20, 54, 140, 0.07);
	border-color: rgba(20, 54, 140, 0.55);
}

.single .entry-header .entry-title {
	font-size: 3rem;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--rwp-blue-mid);
	font-weight: 800;
	margin: 1.2rem 0 1rem;
}

.rwp-article__meta,
.single .entry-meta {
	font-size: 1.25rem;
	color: #9ca3af;
	letter-spacing: 0.01em;
}

.rwp-article__thumb {
	margin: 0 0 3.2rem;
	border-radius: 1rem;
	overflow: hidden;
}

.rwp-article__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rwp-singular {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 4rem;
	padding: 4rem 0 6rem;
	align-items: start;
}

.rwp-singular__sidebar {
	position: sticky;
	top: calc(var(--rwp-header-h) + 3rem);
}

/* ── Author box ─────────────────────────────────────────────────────────────── */

.rodo-author-box {
	border-radius: 1.4rem;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.10);
	background: #fff;
}

.rodo-author-box__header {
	height: 120px;
	background-color: var(--rwp-blue);
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 50px 50px;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 14px 16px;
}

.rodo-author-box__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
	position: relative;
	z-index: 2;
}

.rodo-author-box__header::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 130%, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
	pointer-events: none;
}

.rodo-author-box__body {
	position: relative;
	padding: 6rem 2.4rem 2.4rem;
	text-align: center;
	background: #fff;
}

.rodo-author-box__avatar {
	position: absolute;
	top: -54px;
	left: 50%;
	transform: translateX(-50%);
	width: 108px;
	height: 108px;
	border-radius: 50%;
	border: 4px solid #fff;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--rwp-blue-mid), 0 8px 28px rgba(0, 0, 0, 0.22);
	z-index: 2;
	background: #eee;
	transition: box-shadow 0.3s ease;
}

.rodo-author-box:hover .rodo-author-box__avatar {
	box-shadow: 0 0 0 3px var(--rwp-blue-mid), 0 12px 36px rgba(0, 0, 0, 0.28);
}

.rodo-author-box__avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: top center;
	display: block;
	border-radius: 0 !important;
	box-shadow: none !important;
	border: none !important;
	transition: transform 0.6s ease;
}

.rodo-author-box:hover .rodo-author-box__avatar img { transform: scale(1.07); }

.rodo-author-box__role {
	display: inline-block;
	font-size: 1.0rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rwp-blue-mid);
	border: 1.5px solid var(--rwp-blue-mid);
	padding: 0.35rem 1.1rem;
	border-radius: 10rem;
	margin: 0 0 1.1rem;
	line-height: 1.5;
}

.rodo-author-box__name {
	font-size: 2.2rem;
	font-weight: 800;
	margin: 0 0 0.4rem;
	line-height: 1.15;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.03em;
}

.rodo-author-box__accent {
	width: 3.2rem;
	height: 2px;
	background: var(--rwp-blue-mid);
	margin: 1.2rem auto 1.6rem;
	border-radius: 10rem;
	opacity: 0.4;
}

.rodo-author-box__bio {
	font-size: 1.2rem;
	line-height: 1.65;
	color: #6b7280;
	margin: 0 0 2rem;
	text-align: left;
}

.rodo-author-box__bio p {
	margin: 0 0 0.8rem;
}

.rodo-author-box__bio p:last-child {
	margin-bottom: 0;
}

.rodo-author-box__contact {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	text-align: left;
}

.rodo-author-box__contact a {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.3rem;
	font-weight: 500;
	text-decoration: none;
	padding: 1rem 1.4rem;
	border-radius: 0.8rem;
	transition: all 0.22s ease;
	background: transparent;
	border: 1.5px solid rgba(20, 54, 140, 0.2);
	color: var(--rwp-blue-mid);
}

.rodo-author-box__contact a:hover {
	background: var(--rwp-blue-mid);
	border-color: var(--rwp-blue-mid);
	color: #fff;
}

.rodo-author-box__contact a:hover i { color: #fff; }

/* Email — link główny (niebieski wypełniony) */
.rodo-author-box__contact a[href^="mailto:"] {
	background: var(--rwp-blue-mid);
	border-color: var(--rwp-blue-mid);
	color: #fff;
}

.rodo-author-box__contact a[href^="mailto:"] i { color: rgba(255, 255, 255, 0.8); }

.rodo-author-box__contact a[href^="mailto:"]:hover { filter: brightness(1.15); }

.rodo-author-box__contact i {
	font-size: 1.25rem;
	width: 1.4rem;
	text-align: center;
	flex-shrink: 0;
}

.single-post .entry-content,
.single-usluga .entry-content,
.single-szkolenie .entry-content {
	font-size: 1.55rem;
	line-height: 1.88;
	color: #374151;
}

.single-post .entry-content p,
.single-usluga .entry-content p,
.single-szkolenie .entry-content p { margin-bottom: 1.8rem; }

.single-post .entry-content h2,
.single-usluga .entry-content h2,
.single-szkolenie .entry-content h2 {
	font-size: 2.2rem;
	line-height: 1.3;
	font-weight: 800;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.03em;
	margin-top: 3.6rem;
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid rgba(20, 54, 140, 0.10);
}

.single-post .entry-content h3,
.single-usluga .entry-content h3,
.single-szkolenie .entry-content h3 {
	font-size: 1.85rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.02em;
	margin-top: 2.8rem;
	margin-bottom: 1rem;
}

.single-post .entry-content h4,
.single-usluga .entry-content h4,
.single-szkolenie .entry-content h4 {
	font-size: 1.65rem;
	line-height: 1.4;
	font-weight: 700;
	color: #374151;
	margin-top: 2.4rem;
	margin-bottom: 0.8rem;
}

.single-post .entry-content h5,
.single-post .entry-content h6,
.single-usluga .entry-content h5,
.single-usluga .entry-content h6,
.single-szkolenie .entry-content h5,
.single-szkolenie .entry-content h6 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #374151;
	margin-top: 2rem;
	margin-bottom: 0.6rem;
}

.single-post .entry-content a:not(.wp-block-button__link),
.single-usluga .entry-content a:not(.wp-block-button__link),
.single-szkolenie .entry-content a:not(.wp-block-button__link) {
	color: var(--rwp-blue-mid);
	font-weight: 500;
	text-decoration-color: rgba(20, 54, 140, 0.30);
	text-underline-offset: 3px;
	text-decoration: underline;
	transition: color 0.12s ease;
}

.single-post .entry-content a:not(.wp-block-button__link):hover,
.single-usluga .entry-content a:not(.wp-block-button__link):hover,
.single-szkolenie .entry-content a:not(.wp-block-button__link):hover {
	color: var(--rwp-blue-deep);
}

.single-post .entry-content blockquote,
.single-usluga .entry-content blockquote,
.single-szkolenie .entry-content blockquote {
	border-left: 3px solid var(--rwp-blue-mid);
	background: rgba(20, 54, 140, 0.035);
	padding: 1.6rem 2.4rem;
	border-radius: 0 0.6rem 0.6rem 0;
	margin: 2.4rem 0;
	font-style: italic;
	color: #4b5563;
}

.single-post .entry-content blockquote p,
.single-usluga .entry-content blockquote p,
.single-szkolenie .entry-content blockquote p {
	margin-bottom: 0;
	font-size: 1.6rem;
	line-height: 1.75;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.single-usluga .entry-content ul,
.single-usluga .entry-content ol,
.single-szkolenie .entry-content ul,
.single-szkolenie .entry-content ol {
	margin: 0 0 1.8rem 2rem;
	padding: 0;
}

.single-post .entry-content li,
.single-usluga .entry-content li,
.single-szkolenie .entry-content li {
	margin-bottom: 0.6rem;
	line-height: 1.75;
}

.single-post .entry-content ul li::marker,
.single-usluga .entry-content ul li::marker,
.single-szkolenie .entry-content ul li::marker {
	color: var(--rwp-blue-mid);
}

.single-post .entry-content strong,
.single-usluga .entry-content strong,
.single-szkolenie .entry-content strong {
	font-weight: 700;
	color: var(--rwp-blue-mid);
}

.single-post .entry-content h2[id],
.single-post .entry-content h3[id],
.single-post .entry-content h4[id],
.single-usluga .entry-content h2[id],
.single-usluga .entry-content h3[id],
.single-usluga .entry-content h4[id],
.single-szkolenie .entry-content h2[id],
.single-szkolenie .entry-content h3[id],
.single-szkolenie .entry-content h4[id] {
	scroll-margin-top: calc(var(--rwp-header-h) + 20px);
}

@media (max-width: 1024px) {
	.rwp-singular { grid-template-columns: 1fr; gap: 2.4rem; }
	.rwp-singular__sidebar { position: static; order: -1; }
}

@media (max-width: 768px) {
	.single-post .entry-content,
	.single-usluga .entry-content,
	.single-szkolenie .entry-content { font-size: 1.5rem; line-height: 1.82; }
	.single-post .entry-content h2,
	.single-usluga .entry-content h2,
	.single-szkolenie .entry-content h2 { font-size: 1.9rem; }
	.single-post .entry-content h3,
	.single-usluga .entry-content h3,
	.single-szkolenie .entry-content h3 { font-size: 1.65rem; }
	.single .entry-header .entry-title { font-size: 2.4rem; }
}

/* ── TOC ─────────────────────────────────────────────────────────────────────── */

.rodo-toc {
	background: var(--rwp-bg);
	border: 1.5px solid rgba(20, 54, 140, 0.12);
	border-left: 3px solid var(--rwp-blue-mid);
	border-radius: 0 0.8rem 0.8rem 0;
	padding: 1.8rem 2.4rem;
	margin: 2.8rem 0 3.2rem;
	font-size: 1.45rem;
}

.rodo-toc__header {
	font-family: 'Manrope', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--rwp-blue-mid);
	margin: 0 0 1.2rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.rodo-toc__header i { opacity: 0.7; font-size: 1rem; }

.rodo-toc__list {
	margin: 0;
	padding-left: 1.8rem;
	list-style: decimal;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.rodo-toc__list li {
	color: #374151;
	line-height: 1.5;
	margin: 0;
}

.rodo-toc__list a {
	color: #374151;
	text-decoration: none;
	font-weight: 400;
	transition: color 0.2s ease;
}

.rodo-toc__list a:hover {
	color: var(--rwp-blue-mid);
	font-weight: 500;
}

.rodo-toc__sub {
	margin-top: 0.2rem;
	list-style-type: none;
	padding-left: 1.4rem;
	position: relative;
}

.rodo-toc__sub::before {
	content: '↳';
	position: absolute;
	left: 0;
	color: rgba(20, 54, 140, 0.30);
	font-size: 1.1rem;
	line-height: 1.5;
}

.rodo-toc__sub a {
	font-size: 1.35rem;
	color: var(--rwp-text-muted);
}

.rodo-toc__sub a:hover {
	color: var(--rwp-blue-mid);
}

/* ── HERO — News Grid (rng-*) ────────────────────────────────────────────────── */

#hero { background: none; padding: 0; }

.rng-wrap {
	background: var(--rwp-blue);
	position: relative;
	height: calc(100dvh - var(--rwp-header-h));
	min-height: 580px;
	box-sizing: border-box;
	padding: 1.4rem 0;
	overflow: hidden;
}

.rng-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
}

.rng-wrap .bloghash-container,
.rng-wrap .rwp-container {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.rng-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	grid-template-rows: 3fr 2fr;
	gap: 1.6rem;
	align-items: stretch;
	flex: 1;
	min-height: 0;
}

.rng-subrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.6rem;
	align-items: stretch;
}

.rng-hero {
	position: relative;
	border-radius: 1.2rem;
	overflow: hidden;
	min-height: 0;
}

.rng-hero__cover {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

.rng-hero__cover img,
.rng-hero__no-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.rng-hero__no-thumb {
	background: linear-gradient(135deg, #1a3c8f, #0d2463);
}

.rng-hero:hover .rng-hero__cover img { transform: scale(1.04); }

.rng-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 15, 50, 0.93) 0%, rgba(6, 15, 50, 0.55) 45%, rgba(6, 15, 50, 0.08) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2.6rem 2.8rem 2.4rem;
}

.rng-hero__cats { margin-bottom: 1rem; }

.rng-hero__title {
	font-family: 'Manrope', sans-serif;
	font-size: 2.7rem;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0 0 0.9rem;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.rng-hero__title a { color: #fff; text-decoration: none; }
.rng-hero__title a:hover { color: rgba(255, 255, 255, 0.88); }

.rng-hero__excerpt {
	font-size: 1.3rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 1.4rem;
}

.rng-hero__meta {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	flex-wrap: wrap;
}

.rng-hero__date {
	font-size: 1.15rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

.rng-hero__cta {
	display: inline-block;
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 6px;
	padding: 0.55rem 1.3rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rng-hero__cta:hover {
	background: rgba(255, 255, 255, 0.24);
	border-color: rgba(255, 255, 255, 0.5);
}

.rng-pill {
	display: inline-block;
	width: auto;
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	padding: 0.32rem 0.9rem;
	border-radius: 10rem;
	text-decoration: none;
	margin-right: 0.5rem;
}

.rng-pill--white {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.32);
}

.rng-pill--white:hover {
	background: rgba(255, 255, 255, 0.28);
}

.rng-cat {
	display: inline-block;
	width: auto;
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1;
	padding: 0.32rem 0.9rem;
	border-radius: 10rem;
	text-decoration: none;
	color: var(--rwp-blue-mid);
	border: 1.5px solid rgba(20, 54, 140, 0.28);
	transition: background 0.18s ease;
	margin-bottom: 0.6rem;
}

.rng-cat:hover {
	background: rgba(20, 54, 140, 0.07);
	border-color: rgba(20, 54, 140, 0.55);
}

.rng-stack {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

.rng-list-item {
	flex: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.8rem;
	padding: 1.1rem 1.4rem;
	border-radius: 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-decoration: none;
	transition: background 0.22s ease;
}

.rng-list-item:hover {
	background: rgba(0, 0, 0, 0.38);
	border-color: rgba(255, 255, 255, 0.2);
}

.rng-list-item__main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.rng-list-item__cta {
	flex-shrink: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 0.45rem 1rem;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.rng-list-item:hover .rng-list-item__cta {
	opacity: 1;
	transform: translateX(0);
}

.rng-list-item__cat {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.42);
}

.rng-list-item__title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.18s ease;
}

.rng-list-item:hover .rng-list-item__title { color: #fff; }

.rng-list-item__date {
	font-size: 1rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.32);
}

.rng-meta__date {
	font-size: 1.1rem;
	font-weight: 500;
	color: #9ca3af;
}

/* Sub-row cards */
.rng-card {
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.rng-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.rng-card__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	flex-shrink: 0;
}

.rng-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.42s ease;
}

.rng-card:hover .rng-card__thumb img { transform: scale(1.06); }

.rng-card__no-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
	flex-shrink: 0;
}

.rng-card__body {
	padding: 1.5rem 1.8rem 1.6rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.rng-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.rng-card__readmore {
	display: inline-block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	background: rgba(20, 54, 140, 0.07);
	border: 1px solid rgba(20, 54, 140, 0.22);
	border-radius: 6px;
	padding: 0.45rem 1.1rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.rng-card__readmore:hover {
	background: rgba(20, 54, 140, 0.14);
	border-color: rgba(20, 54, 140, 0.45);
}

.rng-card__title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.55rem;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--rwp-text);
	margin: 0 0 0.8rem;
	flex: 1;
}

.rng-card__title a {
	color: var(--rwp-text);
	text-decoration: none;
	transition: color 0.18s ease;
}

.rng-card__title a:hover { color: var(--rwp-blue-mid); }

/* RWD hero */
@media (max-width: 1100px) {
	.rng-grid { grid-template-columns: 1fr 270px; }
	.rng-hero__title { font-size: 2.3rem; }
	.rng-list-item__title { font-size: 1.2rem; }
}

@media (max-width: 860px) {
	.rng-wrap { height: auto; min-height: 0; padding: 2rem 0; overflow: visible; }
	.rng-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 0.5rem; /* równy gap — taki sam jak między list itemami */
		flex: none;
	}
	/* Hero i subrow mają większy wizualny odstęp od sekcji stacków */
	.rng-grid > .rng-hero   { order: 1; margin-bottom: 1.1rem; }
	.rng-grid > .rng-subrow { order: 2; margin-bottom: 1.1rem; grid-template-columns: repeat(2, 1fr); }
	.rng-grid > .rng-stack  { order: 3; }
	.rng-hero { min-height: 340px; }
	.rng-stack { flex-direction: column; gap: 0.5rem; }
	.rng-list-item {
		flex: 1 1 100%;
		height: 72px;
		overflow: hidden;
		align-items: center;
	}
	.rng-list-item__cta { display: none; }
	.rng-list-item__title {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		overflow: hidden;
	}
}

@media (max-width: 560px) {
	.rng-hero { min-height: 260px; }
	.rng-hero__title { font-size: 1.9rem; }
	.rng-hero__excerpt { display: none; }
	.rng-grid > .rng-subrow { grid-template-columns: 1fr; }
	.rng-list-item { height: 72px; }
}

/* ── PORTAL FEED (Onet Bento Grid) ───────────────────────────────────────────── */

.rodo-portal {
	margin-top: 2rem;
	padding-bottom: 4rem;
}

.rodo-portal__heading {
	margin-bottom: 2rem;
	border-bottom: 1px solid #dee2e6;
}

.rodo-portal__heading > span {
	font-family: 'Manrope', sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rwp-blue-mid);
	margin: 0;
	padding-bottom: 0.8rem;
	position: relative;
	display: inline-block;
}

.rodo-portal__heading > span::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--rwp-yellow);
}

.rodo-portal__grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.4rem;
	align-items: start;
}

.rodo-portal__feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.6rem;
	align-items: start;
	grid-auto-flow: dense;
}

/* Mała karta portalu */
.rodo-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	gap: 0.5rem;
}

.rodo-card__thumb {
	display: block;
	width: 100%;
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background: #e2e8f0;
	margin-bottom: 12px;
}

.rodo-card__thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.rodo-card:hover .rodo-card__thumb img { transform: scale(1.06); }

.rodo-card__no-thumb {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.rodo-card__content { display: block; padding: 0; margin: 0; }

.rodo-card__title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.15rem;
	line-height: 1.35;
	font-weight: 700;
	color: #111827;
	margin: 0;
	padding: 0;
}

.rodo-card__title a {
	color: #111827;
	text-decoration: none;
	transition: color 0.15s ease;
}

.rodo-card__title a:hover { color: var(--rwp-blue-mid); }

/* Lead card */
.rodo-card--lead {
	grid-column: span 2;
	grid-row: span 2;
	position: relative;
	display: block;
	align-self: stretch;
	min-height: 380px;
	border-radius: 6px;
	overflow: hidden;
}

.rodo-card--lead .rodo-card__thumb {
	position: absolute;
	inset: 0;
	margin: 0;
	height: auto;
	aspect-ratio: auto;
	border-radius: 0;
}

.rodo-card--lead .rodo-card__content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 60px 24px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: 2;
	border-radius: 0 0 6px 6px;
}

.rodo-card--lead .rodo-card__title {
	font-size: 1.9rem;
	line-height: 1.25;
	border-left: 5px solid var(--rwp-yellow);
	padding-left: 14px;
}

.rodo-card--lead .rodo-card__title a {
	color: #fff;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Sidebar */
.rodo-portal__sidebar {
	position: sticky;
	top: calc(var(--rwp-header-h) + 3.2rem);
}

.rodo-popular-widget__header {
	margin-bottom: 1.6rem;
	border-bottom: 1px solid #dee2e6;
}

.rodo-popular-widget__title {
	font-family: 'Manrope', sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rwp-blue-mid);
	margin: 0;
	padding-bottom: 0.8rem;
	position: relative;
	display: inline-block;
}

.rodo-popular-widget__title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--rwp-yellow);
}

.rodo-popular-widget__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

.rodo-popular-widget__item {
	display: flex;
	align-items: flex-start;
	gap: 1.2rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rodo-popular-widget__item:last-child { border-bottom: none; }

.rodo-popular-widget__num {
	font-family: 'Manrope', sans-serif;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 0.9;
	color: #e2e8f0;
	min-width: 2.6rem;
	text-align: right;
	transition: color 0.2s ease, transform 0.2s ease;
	display: block;
}

.rodo-popular-widget__item:hover .rodo-popular-widget__num {
	color: var(--rwp-blue-mid);
	transform: scale(1.05);
}

.rodo-popular-widget__link {
	font-family: 'Manrope', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rwp-text);
	text-decoration: none;
	margin-top: 0.1rem;
	transition: color 0.15s ease;
	display: block;
}

.rodo-popular-widget__link:hover { color: var(--rwp-blue-mid); }

/* RWD portal */
@media (max-width: 1200px) {
	.rodo-portal__grid { grid-template-columns: 1fr 280px; }
	.rodo-portal__feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Lead card wraca do układu zwykłej karty — overlay nie ma sensu w 1 kolumnie */
	.rodo-card--lead {
		grid-column: span 1;
		grid-row: auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
		align-self: auto;
		overflow: hidden;
	}
	.rodo-card--lead .rodo-card__thumb {
		position: relative;
		inset: auto;
		height: auto;
		aspect-ratio: 16 / 9;
		border-radius: 6px;
	}
	.rodo-card--lead .rodo-card__content {
		position: relative;
		inset: auto;
		width: auto;
		background: none;
		padding: 0;
		margin-top: 0.5rem;
	}
	.rodo-card--lead .rodo-card__title {
		font-size: 1.15rem;
		color: #111827;
		border-left: none;
		padding-left: 0;
	}
	.rodo-card--lead .rodo-card__title a {
		color: #111827;
		text-shadow: none;
	}
}

@media (max-width: 900px) {
	.rodo-portal__grid { grid-template-columns: 1fr; }
	.rodo-portal__sidebar { position: static; margin-top: 3rem; }
}

@media (max-width: 600px) {
	.rodo-portal__feed { grid-template-columns: 1fr; }
}

/* ── LOAD MORE ───────────────────────────────────────────────────────────────── */

.rwp-load-more-wrap {
	text-align: center;
	margin-top: 3.2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--rwp-border);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	flex-wrap: wrap;
}

.rwp-load-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: transparent;
	border: 2px solid var(--rwp-blue-mid);
	color: var(--rwp-blue-mid);
	font-family: 'Manrope', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.85rem 2.4rem;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.rwp-load-more-btn:hover:not(:disabled) {
	background: var(--rwp-blue-mid);
	color: #fff;
}

.rwp-load-more-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.rwp-archive-link {
	display: none;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Manrope', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rwp-text-muted);
	text-decoration: none;
	border: 2px solid var(--rwp-border);
	padding: 0.85rem 2rem;
	border-radius: 6px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.rwp-archive-link:hover {
	color: var(--rwp-text);
	border-color: #9ca3af;
}

/* ── CTA KONTAKTOWE ───────────────────────────────────────────────────────────── */

.rodo-cta {
	background: var(--rwp-bg);
	border-top: 3px solid var(--rwp-blue-mid);
	margin-top: 10px;
}

.rodo-cta__inner {
	display: grid;
	grid-template-columns: 2fr 3fr;
	min-height: 420px;
}

.rodo-cta__left {
	background: var(--rwp-blue-mid);
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 18px 18px;
	color: #fff;
	padding: 4rem 3.6rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.rodo-cta__left::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.rodo-cta__eyebrow {
	display: inline-block;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 1.2rem;
	position: relative;
	z-index: 1;
}

.rodo-cta__title {
	font-family: 'Manrope', sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	margin: 0 0 1.6rem;
	letter-spacing: -0.03em;
	position: relative;
	z-index: 1;
}

.rodo-cta__lead {
	font-size: 1.45rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 2.4rem;
	position: relative;
	z-index: 1;
}

.rodo-cta__trust {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	position: relative;
	z-index: 1;
}

.rodo-cta__trust li {
	font-size: 1.3rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.82);
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.rodo-cta__trust li i {
	color: rgba(255, 255, 255, 0.45);
	width: 1.4rem;
	text-align: center;
	flex-shrink: 0;
}

.rodo-cta__right {
	background: #fff;
	padding: 4rem 3.6rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.rodo-cta__placeholder {
	background: rgba(20, 54, 140, 0.05);
	border: 1.5px dashed rgba(20, 54, 140, 0.3);
	border-radius: 0.8rem;
	padding: 2.4rem;
	text-align: center;
	color: var(--rwp-blue-mid);
	font-size: 1.3rem;
	line-height: 1.7;
}

.rodo-cta__placeholder i {
	display: block;
	font-size: 2rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.rodo-cta__right input[type="text"],
.rodo-cta__right input[type="email"],
.rodo-cta__right input[type="tel"],
.rodo-cta__right textarea {
	width: 100%;
	border: 1.5px solid rgba(20, 54, 140, 0.18);
	border-radius: 0.7rem;
	padding: 1.1rem 1.4rem;
	font-size: 1.4rem;
	font-family: 'Manrope', sans-serif;
	color: var(--rwp-text);
	background: var(--rwp-bg);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	outline: none;
	appearance: none;
}

.rodo-cta__right input:focus,
.rodo-cta__right textarea:focus {
	border-color: var(--rwp-blue-mid);
	box-shadow: 0 0 0 3px rgba(20, 54, 140, 0.08);
	background: #fff;
}

.rodo-cta__right textarea { resize: vertical; min-height: 100px; }

.rodo-cta__right button[type="submit"],
.rodo-cta__right .button,
.rodo-cta__right input[type="submit"] {
	display: inline-block;
	background: var(--rwp-blue-mid);
	color: #fff;
	border: none;
	border-radius: 0.7rem;
	padding: 1.2rem 2.8rem;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: 'Manrope', sans-serif;
	cursor: pointer;
	transition: filter 0.22s ease;
	margin-top: 1.2rem;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(20, 54, 140, 0.25);
}

.rodo-cta__right button[type="submit"]:hover,
.rodo-cta__right .button:hover,
.rodo-cta__right input[type="submit"]:hover {
	filter: brightness(1.12);
}

.rodo-cta__right .wpcf7-not-valid {
	border-color: #e53e3e;
	background: #fff5f5;
}

.rodo-cta__right .wpcf7-response-output {
	border: 1.5px solid rgba(20, 54, 140, 0.2);
	border-radius: 0.7rem;
	padding: 1.2rem 1.6rem;
	font-size: 1.3rem;
	margin-top: 1.2rem;
}

.wpcf7-response-output[aria-hidden="true"] { display: none !important; }

.rodo-cta__right .wpcf7-mail-sent-ok {
	border-color: #38a169;
	background: rgba(56, 161, 105, 0.05);
	color: #276749;
}

/* W lewej kolumnie wpisu — pola formularza do prawej krawędzi kolumny */
.rwp-singular__main .rodo-cta__right {
	padding-right: 0;
}

@media (max-width: 860px) {
	.rodo-cta__inner { grid-template-columns: 1fr; }
	.rodo-cta__left, .rodo-cta__right { padding: 3.2rem 2.4rem; }
	.rwp-singular__main .rodo-cta__right { padding-right: 2.4rem; }
	.rodo-cta__title { font-size: 2.2rem; }
}

/* ── SZKOLENIA FEED ──────────────────────────────────────────────────────────── */

.rodo-szkolenia {
	padding: 3.2rem 0 4rem;
}

.rodo-szkolenia__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 2rem;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 0;
}

.rodo-szkolenia__header > span {
	font-size: 1.25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rwp-blue-mid);
	padding-bottom: 0.8rem;
	position: relative;
	display: inline-block;
}

.rodo-szkolenia__header > span::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--rwp-blue-mid);
}

.rodo-szkolenia__all {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--rwp-blue-mid);
	text-decoration: none;
	padding-bottom: 0.8rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	transition: gap 0.18s ease;
}

.rodo-szkolenia__all:hover { gap: 0.6rem; }

@media (max-width: 600px) {
	.rodo-szkolenia__all-text { display: none; }
}

.rodo-szkolenia__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.rodo-szkolenia__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.rodo-szkolenia__grid { grid-template-columns: 1fr; }
}

/* ── DARK FOOTER (rpf-*) ─────────────────────────────────────────────────────── */

.rpf-dark {
	background: radial-gradient(circle at 70% 20%, #1a3c9e 0%, #12348b 55%, #091e5c 100%);
	color: rgba(255, 255, 255, 0.75);
	padding: 7rem 0 5rem;
	position: relative;
	overflow: hidden;
}

.rpf-dark::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
}

.rpf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	position: relative;
	z-index: 1;
}

.rpf-seo-chunk {
	border-left: 3px solid rgba(255, 255, 255, 0.28);
	padding: 1.6rem 2.4rem;
	margin-bottom: 5rem;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0 8px 8px 0;
}

.rpf-seo-chunk p {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.65);
}

.rpf-seo-chunk strong { color: #fff; }

.rpf-seo-chunk a {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.rpf-seo-chunk a:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.rpf-clusters {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4rem;
	margin-bottom: 5rem;
}

.rpf-cluster { display: flex; flex-direction: column; }

.rpf-cluster__title {
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #fff;
	margin-bottom: 1.8rem;
	padding-bottom: 1.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	line-height: 1.35;
}

.rpf-cluster__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.rpf-cluster__list h3 {
	font-size: 1.25rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.52);
	margin: 0;
	line-height: 1.4;
	padding: 0;
	transition: color 0.2s ease;
	display: block;
	letter-spacing: 0;
}

.rpf-cluster__list li:hover h3 { color: rgba(255, 255, 255, 0.82); }

.rpf-cluster__list a {
	color: rgba(255, 255, 255, 0.6);
	font-size: 1.3rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease, transform 0.2s ease;
	line-height: 1.4;
}

.rpf-cluster__list a::before {
	content: '';
	flex-shrink: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transition: background 0.2s ease;
}

.rpf-cluster__list a:hover {
	color: #fff;
	transform: translateX(4px);
}

.rpf-cluster__list a:hover::before {
	background: rgba(255, 255, 255, 0.5);
}

.rpf-hub-link a {
	color: #fff;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	padding: 0.7rem 1.2rem;
	border-radius: 6px;
	display: inline-flex;
	transition: background 0.25s ease, border-color 0.25s ease;
	transform: none;
}

.rpf-hub-link a::before { display: none; }

.rpf-cluster--hub .rpf-cluster__list a::before { display: none; }

.rpf-hub-link a:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.38);
	color: #fff;
	transform: none;
}

.rpf-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	padding-top: 3rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rpf-bottom__brand {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

/* Logo w footerze — te same klasy co header, override dla ciemnego tła */
.rwp-logo--footer { text-decoration: none; }

.rwp-logo--footer .rwp-logo__text {
	color: #fff;
}

.rpf-bottom__tagline {
	display: block;
	font-size: 1.0rem;
	color: rgba(255, 255, 255, 0.52);
	font-weight: 500;
	margin: 0;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.rpf-bottom__links {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	align-items: center;
}

.rpf-bottom__links a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.25rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rpf-bottom__links a:hover { color: #fff; }

.rpf-bottom__copy {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.28);
	font-weight: 500;
}

@media (max-width: 1100px) {
	.rpf-clusters { grid-template-columns: repeat(2, 1fr); gap: 3.2rem; }
}

@media (max-width: 768px) {
	.rpf-dark { padding: 4.8rem 0 3.6rem; }
	.rpf-seo-chunk { margin-bottom: 3.6rem; padding: 1.4rem 1.8rem; }
	.rpf-seo-chunk p { font-size: 1.3rem; }
	.rpf-clusters { grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-bottom: 3.6rem; }
	.rpf-bottom { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
}

@media (max-width: 480px) {
	.rpf-clusters { grid-template-columns: 1fr; }
}

/* ── ARCHIWUM ─────────────────────────────────────────────────────────────────── */

.rwp-archive { padding: 4rem 0 6rem; }

.rwp-archive__header { margin-bottom: 3.2rem; }

.rwp-archive__title {
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.02em;
	margin: 0 0 0.8rem;
}

.rwp-archive__desc {
	font-size: 1.5rem;
	color: var(--rwp-text-muted);
	line-height: 1.7;
}

.rwp-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.8rem;
}

.rwp-archive-card {
	display: flex;
	flex-direction: column;
}

.rwp-archive-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 0.8rem;
	margin-bottom: 1.4rem;
}

.rwp-archive-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rwp-archive-card:hover .rwp-archive-card__thumb img { transform: scale(1.04); }

.rwp-archive-card__body { flex: 1; display: flex; flex-direction: column; }

.rwp-archive-card__title {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
	margin: 0.6rem 0 0.8rem;
}

.rwp-archive-card__title a {
	color: var(--rwp-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.rwp-archive-card__title a:hover { color: var(--rwp-blue-mid); }

.rwp-archive-card__excerpt {
	font-size: 1.4rem;
	color: var(--rwp-text-muted);
	line-height: 1.65;
	margin: 0 0 1.4rem;
	flex: 1;
}

.rwp-archive-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.rwp-archive-card__date {
	font-size: 1.2rem;
	color: #9ca3af;
}

.rwp-archive-card__more {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	text-decoration: none;
	transition: color 0.15s ease;
}

.rwp-archive-card__more:hover { color: var(--rwp-blue-deep); }

@media (max-width: 900px) {
	.rwp-archive__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.rwp-archive__grid { grid-template-columns: 1fr; }
	.rwp-archive__title { font-size: 2.2rem; }
}

/* ── 404 / STRONY STATYCZNE ──────────────────────────────────────────────────── */

.rwp-404,
.rwp-page-content {
	padding: 6rem 0;
	max-width: 860px;
}

.rwp-404 h1 {
	font-size: 3rem;
	color: var(--rwp-blue-mid);
	margin-bottom: 1.6rem;
}

.rwp-btn {
	display: inline-block;
	margin-top: 2rem;
	background: var(--rwp-blue-mid);
	color: #fff;
	padding: 1.1rem 2.4rem;
	border-radius: 0.7rem;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.5rem;
	transition: filter 0.2s ease;
}

.rwp-btn:hover { filter: brightness(1.12); color: #fff; }

.rwp-page-content .entry-title {
	font-size: 3rem;
	color: var(--rwp-blue-mid);
	margin-bottom: 2.4rem;
}

.rwp-page-content .entry-content {
	font-size: 1.55rem;
	line-height: 1.88;
	color: #374151;
}

.rwp-page-content .entry-content p { margin-bottom: 1.8rem; }

.rwp-page-content .entry-content h2 {
	font-size: 2.2rem;
	line-height: 1.3;
	font-weight: 800;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.03em;
	margin-top: 3.6rem;
	margin-bottom: 1.2rem;
	padding-bottom: 0.8rem;
	border-bottom: 2px solid rgba(20, 54, 140, 0.10);
}

.rwp-page-content .entry-content h3 {
	font-size: 1.85rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.02em;
	margin-top: 2.8rem;
	margin-bottom: 1rem;
}

.rwp-page-content .entry-content h4 {
	font-size: 1.65rem;
	line-height: 1.4;
	font-weight: 700;
	color: #374151;
	margin-top: 2.4rem;
	margin-bottom: 0.8rem;
}

.rwp-page-content .entry-content h5,
.rwp-page-content .entry-content h6 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #374151;
	margin-top: 2rem;
	margin-bottom: 0.6rem;
}

.rwp-page-content .entry-content a {
	color: var(--rwp-blue-mid);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(20, 54, 140, 0.30);
	text-underline-offset: 3px;
	transition: color 0.12s ease;
}

.rwp-page-content .entry-content a:hover {
	color: var(--rwp-blue-deep);
}

.rwp-page-content .entry-content blockquote {
	border-left: 3px solid var(--rwp-blue-mid);
	background: rgba(20, 54, 140, 0.035);
	padding: 1.6rem 2.4rem;
	border-radius: 0 0.6rem 0.6rem 0;
	margin: 2.4rem 0;
	font-style: italic;
	color: #4b5563;
}

.rwp-page-content .entry-content blockquote p {
	margin-bottom: 0;
	font-size: 1.6rem;
	line-height: 1.75;
}

.rwp-page-content .entry-content ul,
.rwp-page-content .entry-content ol {
	margin: 0 0 1.8rem 2rem;
	padding: 0;
}

.rwp-page-content .entry-content li {
	margin-bottom: 0.6rem;
	line-height: 1.75;
}

.rwp-page-content .entry-content ul li::marker {
	color: var(--rwp-blue-mid);
}

.rwp-page-content .entry-content strong {
	font-weight: 700;
	color: var(--rwp-blue-mid);
}

/* ── PAGINACJA ───────────────────────────────────────────────────────────────── */

.nav-links {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 4rem;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 4rem;
	border-radius: 0.6rem;
	font-size: 1.4rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--rwp-text-muted);
	border: 1px solid var(--rwp-border);
	transition: all 0.15s ease;
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--rwp-blue-mid);
	color: #fff;
	border-color: var(--rwp-blue-mid);
}

/* ── STRONA KONTAKT ──────────────────────────────────────────────────────────── */

.rwp-contact-page {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 0;
	margin: 5rem 0 7rem;
	border: 1px solid var(--rwp-border);
	border-radius: 1.2rem;
	overflow: hidden;
	box-shadow: 0 4px 32px rgba(18, 52, 139, 0.07);
}

.rwp-contact-page__info {
	background: var(--rwp-blue-mid);
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 20px 20px;
	padding: 4rem 3.2rem;
	display: flex;
	flex-direction: column;
	gap: 3.2rem;
}

.rwp-contact-block__heading {
	font-size: 1.1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 1rem;
}

.rwp-contact-block p {
	font-size: 1.5rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 0.8rem;
}

.rwp-contact-block a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.rwp-contact-block a:hover {
	color: #fff;
	text-decoration: underline;
}

.rwp-contact-block__link {
	display: inline-block;
	margin-top: 0.4rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	border-bottom: 2px solid rgba(255, 255, 255, 0.35);
	padding-bottom: 1px;
	transition: border-color 0.15s;
}

.rwp-contact-block__link:hover {
	border-color: #fff;
}

.rwp-contact-page__form.rodo-cta__right {
	border-radius: 0;
	padding: 4rem 3.6rem;
}

@media (max-width: 860px) {
	.rwp-contact-page {
		grid-template-columns: 1fr;
		margin: 3rem 0 5rem;
	}

	.rwp-contact-page__info {
		padding: 3.2rem 2.4rem;
		gap: 2.4rem;
	}

	.rwp-contact-page__form.rodo-cta__right {
		padding: 3.2rem 2.4rem;
	}
}

/* ── CF7 — pola i zgody ──────────────────────────────────────────────────────── */

.hidden-fields-container { display: none !important; }

.rwp-cf7-field {
	margin-bottom: 1.2rem;
}

.rwp-cf7-acceptance {
	margin-bottom: 1rem;
}

/* Tekst zgody — ta sama wielkość co inputy */
.rodo-cta__right .wpcf7-acceptance .wpcf7-list-item-label,
.rwp-contact-page__form .wpcf7-acceptance .wpcf7-list-item-label {
	font-size: 1.4rem;
	line-height: 1.55;
	color: var(--rwp-text-muted);
}

/* Układ checkbox + tekst w jednej linii */
.rodo-cta__right .wpcf7-acceptance .wpcf7-list-item,
.rwp-contact-page__form .wpcf7-acceptance .wpcf7-list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	margin: 0;
}

.rodo-cta__right .wpcf7-acceptance input[type="checkbox"],
.rwp-contact-page__form .wpcf7-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 0.25rem;
	width: 1.5rem;
	height: 1.5rem;
	accent-color: var(--rwp-blue-mid);
	cursor: pointer;
}

/* ── AKTY PRAWNE ─────────────────────────────────────────────────────────────── */

/* ── Archive: lista aktów ────────────────────────────────────────────────────── */

.rwp-akty-archive {
	padding: 5rem 0 8rem;
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}

/* Karta aktu prawnego */
.rwp-akt-card {
	display: grid;
	grid-template-columns: 22rem 1fr;
	min-height: 28rem;
	background: #fff;
	border: 1px solid var(--rwp-border);
	border-radius: 1.6rem;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(18, 52, 139, 0.07);
	transition: box-shadow 0.22s ease, transform 0.18s ease;
}

.rwp-akt-card:hover {
	box-shadow: 0 12px 48px rgba(18, 52, 139, 0.14);
	transform: translateY(-3px);
}

/* Lewa strona karty */
.rwp-akt-card__cover {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 3.2rem;
	background-color: var(--rwp-blue);
	background-image:
		linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 50px 50px;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.rwp-akt-card__cover:hover { background-color: var(--rwp-blue-dark); }

/* Dekoracyjna kreska pod akronimem */
.rwp-akt-card__cover::before {
	content: '';
	position: absolute;
	bottom: 7rem;
	left: 3.2rem;
	right: 3.2rem;
	height: 1px;
	background: rgba(255,255,255,0.12);
}

.rwp-akt-card__cover-acronym {
	font-size: 3.8rem;
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-bottom: 0.6rem;
}

.rwp-akt-card__cover-label {
	font-size: 1.1rem;
	font-weight: 500;
	color: rgba(255,255,255,0.4);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* Prawa treść karty */
.rwp-akt-card__body {
	display: flex;
	flex-direction: column;
	padding: 3.2rem 3.6rem;
	gap: 1.6rem;
}

.rwp-akt-card__head {}

.rwp-akt-card__title {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--rwp-blue-mid);
	margin: 0 0 0.6rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.rwp-akt-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.12s ease;
}

.rwp-akt-card__title a:hover { color: var(--rwp-blue-deep); }

.rwp-akt-card__stats {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 1.35rem;
	color: #9ca3af;
	font-weight: 500;
}

.rwp-akt-card__dot { color: #d1d5db; }

.rwp-akt-card__excerpt {
	font-size: 1.45rem;
	line-height: 1.72;
	color: #6b7280;
	margin: 0;
	flex: 1;
}

/* Lista rozdziałów — poziome tagi */
.rwp-akt-card__chapters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.rwp-akt-card__chapter-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.6rem;
	border-radius: 10rem;
	border: 1px solid rgba(18, 52, 139, 0.18);
	background: rgba(18, 52, 139, 0.04);
	font-size: 1.2rem;
	color: #374151;
	line-height: 1.4;
}

.rwp-akt-card__chapter-nr {
	flex-shrink: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	background: rgba(18, 52, 139, 0.08);
	border-radius: 10rem;
	padding: 0.1rem 0.6rem;
}

.rwp-akt-card__chapter-name {
	color: #4b5563;
	font-size: 1.2rem;
}

.rwp-akt-card__chapter-pill--more {
	background: transparent;
	border-color: transparent;
	color: #9ca3af;
	font-size: 1.15rem;
	font-weight: 500;
	padding-left: 0.2rem;
}

/* CTA */
.rwp-akt-card__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--rwp-blue-mid);
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
	padding: 1rem 2rem;
	border-radius: 0.8rem;
	transition: background 0.15s ease, transform 0.12s ease;
	margin-top: auto;
}

.rwp-akt-card__cta:hover {
	background: var(--rwp-blue-deep);
	color: #fff;
	transform: translateX(2px);
}

.rwp-akty-empty {
	padding: 4rem 0;
	font-size: 1.5rem;
	color: #9ca3af;
	text-align: center;
}

/* ── Spis treści aktu ────────────────────────────────────────────────────────── */

.rwp-akt-toc-wrap {
	padding: 5rem 0 7rem;
	max-width: 840px;
}

.rwp-akt-toc-meta {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	font-size: 1.35rem;
	color: #9ca3af;
	font-weight: 500;
	margin-bottom: 4rem;
}

.rwp-akt-toc {
	display: flex;
	flex-direction: column;
	gap: 4.8rem;
}

.rwp-akt-toc__chapter-heading {
	display: flex;
	align-items: baseline;
	gap: 1.6rem;
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	letter-spacing: -0.01em;
	margin: 0 0 1.2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid rgba(20, 54, 140, 0.10);
}

.rwp-akt-toc__chapter-badge {
	flex-shrink: 0;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(20, 54, 140, 0.08);
	color: var(--rwp-blue-mid);
	padding: 0.3rem 0.9rem;
	border-radius: 0.5rem;
	line-height: 1.6;
}

.rwp-akt-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rwp-akt-toc__link {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	padding: 1.3rem 1.6rem;
	border-radius: 0.8rem;
	text-decoration: none;
	color: var(--rwp-text);
	transition: background 0.12s ease;
	border-bottom: 1px solid transparent;
}

.rwp-akt-toc__link:hover {
	background: rgba(20, 54, 140, 0.05);
}

.rwp-akt-toc__art-nr {
	flex-shrink: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	min-width: 4.8rem;
}

.rwp-akt-toc__art-title {
	flex: 1;
	font-size: 1.35rem;
	line-height: 1.5;
}

.rwp-akt-toc__arrow {
	margin-left: auto;
	flex-shrink: 0;
	color: #d1d5db;
	font-size: 1.3rem;
	transition: color 0.12s ease, transform 0.12s ease;
}

.rwp-akt-toc__link:hover .rwp-akt-toc__arrow {
	color: var(--rwp-blue-mid);
	transform: translateX(4px);
}

/* ── Layout artykułu ─────────────────────────────────────────────────────────── */

.rwp-akt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 4rem;
	padding: 5rem 0 7rem;
	align-items: start;
}

.rwp-akt-main { min-width: 0; }

/* ── Treść artykułu prawnego ─────────────────────────────────────────────────── */

.rwp-legal-content {
	font-size: 1.5rem;
	line-height: 1.85;
	color: #374151;
}

.rwp-legal-content p { margin-bottom: 1.8rem; }

/* Numerowane ustępy — <p class="rwp-provision"> */
.rwp-provision {
	display: flex;
	align-items: flex-start;
	gap: 1.4rem;
	margin-bottom: 1.8rem;
	padding: 0.2rem 0;
}

.rwp-provision__nr {
	font-family: 'Manrope', sans-serif;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 0.9;
	color: #e2e8f0;
	min-width: 2.8rem;
	flex-shrink: 0;
	text-align: right;
	transition: color 0.2s ease;
	padding-top: 0.08em;
}

.rwp-provision:hover .rwp-provision__nr {
	color: var(--rwp-blue-mid);
}

/* Fallback: zwykłe <ol> (treść z edytora) */
.rwp-legal-content ol {
	margin: 0 0 2rem 0;
	padding: 0;
	list-style: none;
	counter-reset: provision;
}

.rwp-legal-content ol > li {
	counter-increment: provision;
	display: flex;
	align-items: flex-start;
	gap: 1.4rem;
	margin-bottom: 1.4rem;
	line-height: 1.85;
}

.rwp-legal-content ol > li::before {
	content: counter(provision) ".";
	font-family: 'Manrope', sans-serif;
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 0.9;
	color: #e2e8f0;
	min-width: 2.8rem;
	flex-shrink: 0;
	text-align: right;
	padding-top: 0.08em;
	transition: color 0.2s ease;
}

.rwp-legal-content ol > li:hover::before {
	color: var(--rwp-blue-mid);
}

/* Listy z literami — <ol class="rwp-legal-alpha"> */
.rwp-legal-content ol.rwp-legal-alpha {
	counter-reset: alpha-item;
	list-style: none;
	padding: 0 0 0 1.6rem;
	margin: 0.8rem 0 2rem;
}

.rwp-legal-content ol.rwp-legal-alpha > li {
	counter-increment: alpha-item;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.8rem;
	font-size: 1.5rem;
	line-height: 1.8;
	color: #374151;
}

.rwp-legal-content ol.rwp-legal-alpha > li::before {
	content: counter(alpha-item, lower-alpha) ")";
	font-weight: 700;
	color: var(--rwp-blue-mid);
	font-size: 1.5rem;
	flex-shrink: 0;
	min-width: 1.8rem;
	transition: color 0.2s ease;
}

.rwp-legal-content ol.rwp-legal-alpha > li:hover::before {
	color: var(--rwp-blue-dark);
}

/* Listy punktowane */
.rwp-legal-content ul {
	margin: 0 0 1.8rem 2rem;
	padding: 0;
}

.rwp-legal-content ul > li {
	margin-bottom: 0.7rem;
	line-height: 1.8;
}

.rwp-legal-content ul > li::marker { color: var(--rwp-blue-mid); }

/* Motyw prawny — wrapper content-pr */
.rwp-legal-content .content-pr { /* nothing extra — styles inherited */ }

/* Motywy prawne — punkty (a), b), c)) w paragrafach */
.rwp-legal-content p + p:not(:last-child):is([class]) { }

/* Recitale — paragrafy zaczynające się od (liczba) w strong */
.rwp-legal-content p:has(> strong:first-child) {
	background: rgba(20, 54, 140, 0.035);
	border-left: 3px solid rgba(20, 54, 140, 0.20);
	border-radius: 0 0.6rem 0.6rem 0;
	padding: 1.2rem 1.8rem;
	margin-bottom: 1.4rem;
	font-size: 1.4rem;
	line-height: 1.78;
	color: #4b5563;
}

.rwp-legal-content p:has(> strong:first-child) strong {
	font-weight: 700;
	color: var(--rwp-blue-mid);
}

/* Linki w treści */
.rwp-legal-content a {
	color: var(--rwp-blue-mid);
	text-decoration: underline;
	text-decoration-color: rgba(20, 54, 140, 0.30);
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.12s ease;
}

.rwp-legal-content a:hover { color: var(--rwp-blue-deep); }

.rwp-legal-content strong {
	font-weight: 700;
	color: var(--rwp-blue-mid);
}

/* Superscript / przypisy */
.rwp-legal-content sup {
	font-size: 0.75em;
	color: var(--rwp-blue-mid);
	font-weight: 600;
}

/* ── Prev / Next ─────────────────────────────────────────────────────────────── */

.rwp-akt-prevnext {
	margin-top: 2.4rem;
	padding-top: 2.4rem;
}

.rwp-akt-prevnext--top {
	margin-top: 0;
	padding-top: 0;
	margin-bottom: 2rem;
}

.rwp-akt-prevnext__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
}

.rwp-akt-prevnext__item {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.2rem 1.6rem;
	border: 1px solid var(--rwp-border);
	border-radius: 0.8rem;
	text-decoration: none;
	color: var(--rwp-text);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rwp-akt-prevnext__item:hover {
	border-color: var(--rwp-blue-mid);
	background: rgba(20, 54, 140, 0.03);
	box-shadow: 0 2px 12px rgba(18, 52, 139, 0.08);
}

.rwp-akt-prevnext__item--next { text-align: right; }

.rwp-akt-prevnext__label {
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--rwp-blue-mid);
}

.rwp-akt-prevnext__title {
	font-size: 1.25rem;
	line-height: 1.35;
	color: #374151;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */

.rwp-akt-sidebar-wrap {
	position: sticky;
	top: calc(var(--rwp-header-h) + 2rem);
	max-height: calc(100vh - var(--rwp-header-h) - 4rem);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.rwp-akt-sidebar-scroll {
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(20, 54, 140, 0.2) transparent;
	min-height: 0;
}

.rwp-akt-sidebar {
	background: #fff;
	border: 1px solid var(--rwp-border);
	border-radius: 1.2rem;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(18, 52, 139, 0.05);
}

.rwp-akt-sidebar__toc-link {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 1rem 1.6rem;
	gap: 0.8rem;
	text-decoration: none;
	background: none;
	border: none;
	border-bottom: 2px solid rgba(20, 54, 140, 0.15);
	cursor: pointer;
	transition: background 0.1s ease;
}

.rwp-akt-sidebar__toc-link:hover {
	background: rgba(20, 54, 140, 0.04);
}

.rwp-akt-sidebar__toc-link .rwp-akt-sidebar__chapter-nr {
	color: var(--rwp-blue-mid);
	opacity: 1;
}

.rwp-akt-sidebar__toc-link .rwp-akt-sidebar__chapter-name {
	color: #374151;
}

.rwp-akt-sidebar__toc-link .rwp-akt-sidebar__chevron {
	color: var(--rwp-blue-mid);
}

.rwp-akt-sidebar__toc-link.is-open .rwp-akt-sidebar__chevron {
	transform: rotate(180deg);
}

.rwp-akt-sidebar__nav { padding: 1rem 0 0.6rem; }

.rwp-akt-sidebar__chapter {
	border-bottom: 1px solid rgba(20, 54, 140, 0.08);
}

.rwp-akt-sidebar__chapter-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	padding: 1rem 1.6rem;
	text-align: left;
	transition: background 0.1s ease;
	gap: 0.8rem;
}

.rwp-akt-sidebar__chapter-toggle:hover {
	background: rgba(20, 54, 140, 0.04);
}

.rwp-akt-sidebar__chapter-label {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.rwp-akt-sidebar__chapter-nr {
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #9ca3af;
}

.rwp-akt-sidebar__chapter-name {
	font-size: 1.15rem;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rwp-akt-sidebar__chapter-toggle.is-open .rwp-akt-sidebar__chapter-nr { color: var(--rwp-blue-mid); }
.rwp-akt-sidebar__chapter-toggle.is-open .rwp-akt-sidebar__chapter-name { color: var(--rwp-blue-mid); }

.rwp-akt-sidebar__chevron {
	flex-shrink: 0;
	color: #d1d5db;
	transition: transform 0.2s ease, color 0.15s ease;
}

.rwp-akt-sidebar__chapter-toggle.is-open .rwp-akt-sidebar__chevron {
	transform: rotate(180deg);
	color: var(--rwp-blue-mid);
}

.rwp-akt-sidebar__list { list-style: none; margin: 0; padding: 0; }

.rwp-akt-sidebar__item a {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	padding: 0.55rem 1.6rem;
	font-size: 1.2rem;
	color: #4b5563;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.1s ease, color 0.1s ease;
}

.rwp-akt-sidebar__item a:hover {
	background: rgba(20, 54, 140, 0.05);
	color: var(--rwp-blue-mid);
}

.rwp-akt-sidebar__item.is-current a {
	background: rgba(20, 54, 140, 0.08);
	color: var(--rwp-blue-mid);
	font-weight: 700;
	border-left: 3px solid var(--rwp-blue-mid);
	padding-left: calc(2rem - 3px);
}

.rwp-akt-sidebar__nr {
	flex-shrink: 0;
	font-size: 1.0rem;
	font-weight: 700;
	color: var(--rwp-blue-mid);
	opacity: 0.65;
	min-width: 3.8rem;
}

.rwp-akt-sidebar__item.is-current .rwp-akt-sidebar__nr { opacity: 1; }

/* ── Hero drobnostki ─────────────────────────────────────────────────────────── */

.rwp-post-hero__lead {
	font-size: 1.6rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
	margin: 1.2rem 0 0;
	max-width: 720px;
}

.rwp-post-hero__chapter {
	font-size: 1.35rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0.8rem 0 0;
	font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.rwp-akt-layout {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.rwp-akt-sidebar-wrap {
		position: static;
		max-height: 40rem;
		order: -1;
	}
}

@media (max-width: 768px) {
	.rwp-akt-card { grid-template-columns: 1fr; }
	.rwp-akt-card__cover { min-height: 14rem; }
	.rwp-akt-card__cover-acronym { font-size: 4rem; }
	.rwp-akt-card__body { padding: 2.4rem; }
	.rwp-akt-prevnext__inner { grid-template-columns: 1fr; }
	.rwp-akt-toc-wrap { padding: 3rem 0 5rem; }
	.rwp-akt-layout { padding: 3rem 0 5rem; }
}

/* ── Typografia tekstu prawniczego (parser) ──────────────────────────────────── */

/* Ustęp numerowany: "1. Dane osobowe muszą być:" */
.rwp-legal-content .rwp-provision {
	display: flex;
	gap: 1.2rem;
	align-items: baseline;
	margin-bottom: 1.6rem;
}

.rwp-legal-content .rwp-provision__nr {
	flex-shrink: 0;
	font-weight: 800;
	color: var(--rwp-blue-mid);
	font-size: 1.6rem;
	min-width: 2.4rem;
}


/* Recital (motyw) — accordion <details> */
.rwp-legal-content .rwp-recital {
	border: 1px solid rgba(20, 54, 140, 0.14);
	border-left: 3px solid var(--rwp-blue);
	border-radius: 0.5rem;
	margin: 2.4rem 0;
	background: #f8faff;
	overflow: hidden;
}

.rwp-legal-content .rwp-recital__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.4rem;
	cursor: pointer;
	list-style: none;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--rwp-blue);
	user-select: none;
	transition: background 0.15s ease;
}

.rwp-legal-content .rwp-recital__toggle::-webkit-details-marker { display: none; }

.rwp-legal-content .rwp-recital__toggle:hover {
	background: rgba(20, 54, 140, 0.04);
}

.rwp-legal-content .rwp-recital__expand-label {
	flex: 1;
}

.rwp-legal-content .rwp-recital__expand-label strong {
	font-weight: 700;
}

.rwp-legal-content .rwp-recital__chevron {
	flex-shrink: 0;
	transition: transform 0.22s ease;
	color: var(--rwp-blue);
}

.rwp-legal-content .rwp-recital[open] .rwp-recital__chevron {
	transform: rotate(180deg);
}

.rwp-legal-content .rwp-recital__body {
	padding: 0 1.6rem 1.6rem;
	border-top: 1px solid rgba(20, 54, 140, 0.1);
}

.rwp-legal-content .rwp-recital__what {
	background: rgba(20, 54, 140, 0.05);
	border-radius: 0.4rem;
	padding: 0.8rem 1.2rem;
	font-size: 1.2rem;
	color: #64748b;
	margin: 1.2rem 0 1rem;
	font-style: italic;
	line-height: 1.6;
}

.rwp-legal-content .rwp-recital__what strong {
	display: block;
	font-style: normal;
	font-weight: 700;
	color: #334155;
	margin-bottom: 0.3rem;
	font-size: 1.15rem;
}

.rwp-legal-content .rwp-recital__nr-label {
	font-size: 1.1rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 0.7rem;
}

.rwp-legal-content .rwp-recital__text {
	font-size: 1.3rem;
	line-height: 1.8;
	color: #374151;
	font-style: italic;
}

/* Przypis dolny */
.rwp-legal-content .rwp-footnote {
	font-size: 1.2rem;
	color: #9ca3af;
	border-top: 1px solid var(--rwp-border);
	padding-top: 1rem;
	margin-top: 3rem;
	line-height: 1.65;
	font-style: italic;
}

/* ── Spis treści — TOC poprawki ──────────────────────────────────────────────── */

/* Wyraźna karta dla każdego rozdziału */
.rwp-akt-toc__chapter {
	background: #fff;
	border: 1px solid var(--rwp-border);
	border-radius: 1.2rem;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(18, 52, 139, 0.04);
}

.rwp-akt-toc__chapter-heading {
	background: rgba(20, 54, 140, 0.04);
	padding: 1.6rem 2.4rem;
	margin: 0;
	border-bottom: 1px solid var(--rwp-border);
}

.rwp-akt-toc__list {
	padding: 0.6rem 0;
}

.rwp-akt-toc__link {
	border-radius: 0;
	padding: 1rem 2.4rem;
	border-bottom: 1px solid rgba(20, 54, 140, 0.04);
}

.rwp-akt-toc__list li:last-child .rwp-akt-toc__link {
	border-bottom: none;
}

.rwp-akt-toc__link:hover {
	background: rgba(20, 54, 140, 0.05);
}

.rwp-akt-toc__art-nr {
	font-size: 1.2rem;
	background: rgba(20, 54, 140, 0.08);
	color: var(--rwp-blue-mid);
	padding: 0.2rem 0.7rem;
	border-radius: 0.4rem;
	min-width: auto;
	white-space: nowrap;
}

/* Author box po sidebarze — trochę marginesu */
.rwp-akt-sidebar-wrap .rodo-author-box {
	margin-top: 2rem;
}
