/* ==========================================================================
   Digitmed — style motywu (1.1)
   Zasada: układ statyczny jest bazą (telefon, brak JS, ograniczony ruch).
   Klasa .is-motion (dodawana przez main.js na desktopie) zamienia wprowadzenie
   w przypiętą scenę, w której pozycje elementów liczy skrypt.
   ========================================================================== */

:root {
	--dm-blue: #2872FA;
	--dm-cyan: #3DBFE8;
	--dm-ink: #06111F;
	--dm-ink-2: #081A30;
	--dm-panel: #0E2340;
	--dm-panel-2: #0B1D35;
	--dm-line: #14304F;
	--dm-line-2: #1B3A5C;
	--dm-navy: #192A3D;
	--dm-slate: #3A4F66;
	--dm-light: #EEF0F7;
	--dm-muted: #A9BACB;
	--dm-muted-2: #8496AB;
	--dm-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--dm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--dm-max: 1240px;
	--dm-header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--dm-header); }
body {
	margin: 0;
	background: var(--dm-ink);
	color: #E6EDF5;
	font-family: var(--dm-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: #7FD3F2; text-decoration: none; }
a:hover { color: #C9EEFB; }
:focus-visible { outline: 2px solid var(--dm-cyan); outline-offset: 3px; border-radius: 4px; }

.dm-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--dm-blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.dm-skip:focus { top: 12px; color: #fff; }
.dm-container { width: 100%; max-width: var(--dm-max); margin: 0 auto; padding: 0 24px; }
.dm-mono { font-family: var(--dm-mono); }
.dm-accent { color: var(--dm-cyan); }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-cyan); flex: none; }

/* ---------- Przyciski ---------- */
.dm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 22px; border-radius: 12px;
	font-family: var(--dm-font); font-weight: 600; font-size: 15px; line-height: 1;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.dm-btn--sm { border-radius: 10px; font-size: 14px; }
.dm-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.dm-btn--primary { background: var(--dm-blue); color: #fff; }
.dm-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 40px -12px var(--dm-blue); }
.dm-btn--ghost { border-color: rgba(255,255,255,.22); color: #fff; }
.dm-btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); }
.dm-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }

.dm-h2 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; color: #fff; max-width: 680px; }

/* ---------- Nagłówek strony ---------- */
.dm-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 0 24px;
	background: rgba(6,17,31,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(127,211,242,.1);
}
.admin-bar .dm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dm-header { top: 46px; } }
.dm-nav { max-width: 1280px; margin: 0 auto; height: var(--dm-header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dm-brand { display: flex; align-items: center; }
.dm-brand__link { display: flex; align-items: center; gap: 12px; color: #fff; }
.dm-brand__link:hover { color: #fff; }
.dm-brand__name { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.dm-brand .custom-logo { max-height: 46px; width: auto; display: block; }
.dm-brand__img { height: 42px; width: auto; display: block; }
@media (max-width: 480px) { .dm-brand__img { height: 34px; } }
.dm-nav__menu { display: flex; align-items: center; gap: 32px; }
.dm-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.dm-menu > li { position: relative; }
.dm-menu a { color: #C5D1DE; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.dm-menu a:hover, .dm-menu .current-menu-item > a, .dm-menu .current_page_item > a { color: var(--dm-cyan); }
.dm-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: -10px; min-width: 220px;
	background: var(--dm-panel); border: 1px solid rgba(127,211,242,.14); border-radius: 12px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.dm-menu li:hover > .sub-menu, .dm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.dm-menu .sub-menu a { font-size: 14px; padding: 0 10px; width: 100%; }
.dm-nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
	background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.dm-nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.dm-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dm-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dm-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Wprowadzenie — układ statyczny (baza)
   ========================================================================== */
.dm-intro { position: relative; overflow: hidden; background: var(--dm-ink); padding: calc(var(--dm-header) + 32px) 0 110px; }
.dm-intro__stage { position: relative; }
.dm-hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.dm-intro__glow {
	position: absolute; width: 1000px; height: 1000px; right: -260px; top: -120px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(40,114,250,.22), rgba(40,114,250,0)); pointer-events: none;
}
.dm-intro__hero {
	position: relative; max-width: 1280px; margin: 0 auto; padding: 0 32px;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
	min-height: calc(100vh - var(--dm-header) - 32px);
}
.dm-intro__copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 600px; }
.dm-intro__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #7FD3F2; }
.dm-hero__title { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.dm-hero__lead { margin: 0; max-width: 500px; font-size: 18px; line-height: 1.65; color: var(--dm-muted); }
.dm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.dm-cluster-box { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.dm-orbit { position: absolute; width: 560px; height: 560px; }
.dm-cluster { position: relative; flex: none; }
.dm-hex, .dm-core {
	position: absolute; width: 100px; height: 116px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.dm-hex {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	text-align: center; padding: 0 10px; will-change: transform; cursor: default;
}
.dm-hex__small { font-size: 9px; font-weight: 600; letter-spacing: .1em; opacity: .75; }
.dm-hex__label { font-size: 13px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; overflow-wrap: anywhere; }

/* Rodziny modułów: kolor = przynależność (legenda w hero i w sekcji modułów) */
.dm-hex--his    { background: #0E2340; color: #E6EDF5; }
.dm-hex--his .dm-hex__small { color: var(--dm-cyan); opacity: 1; }
.dm-hex--clinic { background: #2D63A8; color: #FFFFFF; }
.dm-hex--clinic .dm-hex__small { color: #CFE4FF; opacity: 1; }
.dm-hex--lab    { background: var(--dm-cyan); color: #06111F; }
.dm-hex--lab .dm-hex__small { color: #0E2340; opacity: 1; }
/* Kafel integracji zewnętrznych (wersja z trasami): obrys w kolorze akcentu, ciemne wnętrze */
.dm-hex--ext { background: var(--dm-cyan); color: #CFEFFB; }
.dm-hex--ext::before { content: ""; position: absolute; inset: 2px; background: #071628; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dm-hex--ext > * { position: relative; }
.dm-hex--ext .dm-hex__small { color: var(--dm-cyan); opacity: 1; }
.dm-hex--ext .dm-hex__label { font-size: 18px; font-weight: 800; }
.dm-hex__note { font-size: 9px; font-weight: 500; line-height: 1.2; opacity: .85; }

/* Trasy zlecenia i wyniku nad plastrem */
.dm-routes { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; transform-origin: 50% 50%; }
.dm-routes__line { fill: none; stroke-width: 2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; opacity: .75; }
.dm-routes__route--order .dm-routes__line { stroke: var(--dm-cyan); }
.dm-routes__route--result .dm-routes__line { stroke: #fff; }
.dm-routes__route--order .dm-routes__dot { fill: var(--dm-cyan); }
.dm-routes__route--result .dm-routes__dot { fill: #fff; }
.dm-routes__label { font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .02em; paint-order: stroke; stroke: var(--dm-ink); stroke-width: 8px; stroke-linejoin: round; }
.dm-routes__route--order .dm-routes__label { fill: var(--dm-cyan); }
.dm-routes__route--result .dm-routes__label { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .dm-routes__dot { display: none; } }

/* Legenda w hero: podczas fal podświetlona jest wchodząca rodzina */
.dm-legend li { transition: opacity .3s ease; }
.dm-legend.is-waving li { opacity: .4; }
.dm-legend.is-waving li.is-active { opacity: 1; }

/* Kafle rodzin: jaśniejszy odcień i większy podpis */
.dm-hex--family .dm-hex__label { font-size: 19px; font-weight: 800; }
.dm-hex--family.dm-hex--his    { background: #24507E; }
.dm-hex--family.dm-hex--clinic { background: #5A93DC; }
.dm-hex--family.dm-hex--lab    { background: #9FE3F7; }

.dm-hex__big { font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: .02em; }
.dm-hex__mono { font-size: 9px; font-weight: 600; letter-spacing: .02em; text-align: center; padding: 0 8px; line-height: 1.2; }

.dm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--dm-muted); }
.dm-legend li { display: flex; align-items: center; gap: 10px; }
.dm-legend strong { color: #fff; font-weight: 700; }
.dm-legend__dot { width: 14px; height: 16px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dm-legend__dot.dm-hex--his { background: #24507E; box-shadow: inset 0 0 0 20px #24507E; }

/* Sekcja modułów SZOK */
.dm-modules__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 32px; }
.dm-modules__lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--dm-slate); max-width: 560px; }
.dm-modules__facts { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dm-modules__facts li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid #DCE2EE; font-size: 14px; font-weight: 600; color: var(--dm-navy); }
.dm-modules__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.dm-modules__group { background: #fff; border: 1px solid #DCE2EE; border-radius: 20px; padding: 26px; }
.dm-modules__ghead { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #E4E8F1; margin-bottom: 6px; }
.dm-modules__ghead h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--dm-navy); }
.dm-modules__ghead p { margin: 2px 0 0; font-size: 13px; color: var(--dm-slate); line-height: 1.4; }
.dm-modules__hex { width: 34px; height: 39px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dm-modules__list { list-style: none; margin: 0; padding: 0; }
.dm-modules__list li { padding: 12px 0; border-top: 1px solid #EEF0F7; display: flex; flex-direction: column; gap: 3px; }
.dm-modules__list li:first-child { border-top: 0; }
.dm-modules__list strong { font-size: 15px; color: var(--dm-navy); }
.dm-modules__list span { font-size: 14px; line-height: 1.5; color: var(--dm-slate); }
@media (max-width: 1000px) {
	.dm-modules__head { grid-template-columns: 1fr; gap: 16px; }
	.dm-modules__groups { grid-template-columns: 1fr; }
}

.dm-core { background: var(--dm-panel); overflow: hidden; will-change: transform, width, height; }
.dm-core__blue { position: absolute; inset: 0; background: var(--dm-blue); }
.dm-core__logo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; }
.dm-core__ui { position: absolute; inset: 0; display: none; flex-direction: column; }

.dm-intro__caption { display: none; }
.dm-intro__hint { display: none; }

/* Prezentacja produktów (statycznie: lista + okno, przełączanie kliknięciem) */
.dm-showcase {
	position: relative; max-width: 1280px; margin: 0 auto; padding: 96px 32px 0;
	display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 56px; align-items: center;
}
.dm-showcase__list { display: flex; flex-direction: column; gap: 22px; }
.dm-showcase__title { margin: 0 0 6px; font-size: clamp(30px, 3vw, 40px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.dm-showcase__item {
	position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
	padding: 18px 0 4px; border: 0; border-top: 1px solid var(--dm-line); background: none;
	font: inherit; color: inherit; cursor: pointer;
}
.dm-showcase__bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; }
.dm-showcase__bar span { display: block; height: 100%; width: 0; background: var(--dm-cyan); transition: width .4s ease; }
.dm-showcase__item.is-active .dm-showcase__bar span { width: 100%; }
.dm-showcase__name { font-size: 22px; font-weight: 700; color: #5D7189; transition: color .3s ease; }
.dm-showcase__desc { font-size: 15px; line-height: 1.55; color: #41556C; transition: color .3s ease; }
.dm-showcase__item.is-active .dm-showcase__name, .dm-showcase__item:hover .dm-showcase__name { color: #fff; }
.dm-showcase__item.is-active .dm-showcase__desc { color: var(--dm-muted); }

.dm-app {
	position: relative; height: 540px; border-radius: 18px; overflow: hidden; background: var(--dm-panel);
	box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); display: flex; flex-direction: column;
}
.dm-app__bar { display: flex; align-items: center; gap: 8px; height: 40px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--dm-line-2); background: var(--dm-panel-2); }
.dm-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #1E4670; display: block; }
.dm-app__bar span { margin-left: 12px; font-size: 12px; color: var(--dm-muted-2); }
.dm-app__body { position: relative; flex: 1; min-height: 0; }
.dm-screen { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease, transform .45s ease; transform: translateY(16px); }
.dm-screen.is-active { opacity: 1; transform: none; }
.dm-screen__img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

/* Makiety ekranów */
.dm-mock { position: absolute; inset: 0; display: flex; font-size: 13px; color: #E6EDF5; }
.dm-mock__side { width: 64px; flex: none; border-right: 1px solid var(--dm-line-2); display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 18px; }
.dm-mock__side span { width: 28px; height: 28px; border-radius: 8px; background: var(--dm-line); display: block; }
.dm-mock__side .is-on { background: var(--dm-blue); }
.dm-mock__main { flex: 1; min-width: 0; padding: 22px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-content: start; }
.dm-mock__main--col { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.dm-mock__list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dm-mock__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; color: var(--dm-muted-2); font-size: 12px; }
.dm-mock__head strong { font-size: 16px; color: #fff; }
.dm-mock__row { display: grid; grid-template-columns: 40px 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: var(--dm-panel-2); }
.dm-mock__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--dm-line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #B9E9FF; }
.dm-mock__time { color: var(--dm-muted-2); }
.dm-mock__pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--dm-line); color: var(--dm-muted); white-space: nowrap; }
.dm-mock__pill.is-ok { background: rgba(61,191,232,.15); color: #7FD3F2; }
.dm-mock__pill.is-now { background: rgba(40,114,250,.22); color: #A9C6FF; }
.dm-mock__aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dm-mock__card { border-radius: 12px; background: var(--dm-panel-2); padding: 16px; display: flex; flex-direction: column; gap: 4px; line-height: 1.45; }
.dm-mock__muted { font-size: 12px; color: var(--dm-muted-2); margin-bottom: 6px; }
.dm-mock__accent { color: #7FD3F2; }
.dm-mock__bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.dm-mock__bars span { flex: 1; border-radius: 3px; background: var(--dm-line); }
.dm-mock__bars .is-blue { background: var(--dm-blue); }
.dm-mock__bars .is-cyan { background: var(--dm-cyan); }
.dm-mock--slide { display: block; background: #F3CBD8; }
.dm-mock--slide > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-mock__zoom { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; gap: 6px; }
.dm-mock__zoom span, .dm-mock__mag { width: 36px; height: 36px; border-radius: 8px; background: #fff; color: var(--dm-navy); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.dm-mock__mag { position: absolute; right: 16px; top: 16px; width: auto; padding: 0 12px; font-size: 13px; }
.dm-mock__mini { position: absolute; left: 16px; bottom: 16px; width: 150px; height: 90px; border-radius: 8px; background: #F2F5F9; padding: 8px; }
.dm-mock__mini svg { display: block; width: 100%; height: 100%; }
.dm-mock__scale { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--dm-navy); font-size: 12px; font-weight: 700; }
.dm-mock__scale span { width: 100px; height: 5px; background: var(--dm-navy); display: block; }
.dm-mock__progress { height: 6px; border-radius: 3px; background: var(--dm-line); }
.dm-mock__progress span { display: block; width: 38%; height: 100%; border-radius: 3px; background: var(--dm-cyan); }
.dm-mock__q { font-size: 19px; line-height: 1.35; color: #fff; max-width: 520px; }
.dm-mock__answers { display: flex; flex-direction: column; gap: 10px; }
.dm-mock__answers span { padding: 13px 16px; border-radius: 10px; border: 1px solid #1E4670; font-size: 14px; }
.dm-mock__answers .is-on { border-color: var(--dm-cyan); background: rgba(61,191,232,.12); color: #fff; }
.dm-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dm-cyan); box-shadow: 0 0 14px var(--dm-cyan); }

/* ==========================================================================
   Wprowadzenie — tryb ruchu (desktop, .is-motion dodaje main.js)
   ========================================================================== */
.dm-intro.is-motion { padding: 0; }
.is-motion .dm-intro__stage { height: 100vh; overflow: hidden; }
.is-motion .dm-intro__hero,
.is-motion .dm-showcase { position: static; display: block; min-height: 0; padding: 0; max-width: none; margin: 0; }
.is-motion .dm-cluster-box,
.is-motion .dm-cluster { position: static; width: auto; height: auto; display: block; transform: none; margin: 0; }
.is-motion .dm-intro__copy { position: absolute; z-index: 2; }
.is-motion .dm-intro__glow,
.is-motion .dm-orbit { right: auto; }
.is-motion .dm-core__ui { display: flex; }
.is-motion .dm-intro__caption {
	display: block; position: absolute; left: 0; right: 0; margin: 0; padding: 0 24px; text-align: center;
	font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: #fff; opacity: 0;
}
.is-motion .dm-showcase__list { position: absolute; z-index: 2; opacity: 0; }
.is-motion .dm-app { position: absolute; height: auto; opacity: 0; }
.is-motion .dm-screen { transition: none; }
.is-motion .dm-showcase__bar span { transition: none; }
.is-motion .dm-intro__hint {
	display: flex; position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
	flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: #6B7F96;
}
.dm-mouse { width: 22px; height: 34px; border: 1.5px solid #6B7F96; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.dm-mouse span { width: 3px; height: 7px; border-radius: 2px; background: var(--dm-cyan); }

/* ---------- Jak pracujemy ---------- */
.dm-how {
	position: relative; background: var(--dm-ink-2); overflow: hidden;
	min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px;
	padding: calc(var(--dm-header) + 24px) 0 64px;
}
.dm-how__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.dm-how__eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: #7FD3F2; }
.dm-how__progress { width: 220px; height: 3px; border-radius: 2px; background: var(--dm-line); overflow: hidden; }
.dm-how__bar { width: 100%; height: 100%; background: var(--dm-cyan); transform-origin: 0 50%; }
.dm-how__track { display: flex; gap: 28px; width: max-content; will-change: transform; padding: 0 max(24px, calc((100vw - var(--dm-max)) / 2 + 24px)); }
.dm-panel {
	width: 520px; min-height: 360px; border-radius: 24px; padding: 38px;
	background: var(--dm-panel); border: 1px solid rgba(127,211,242,.14);
	display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.dm-panel--blue { background: var(--dm-blue); border-color: transparent; color: #fff; }
.dm-panel--outline { width: 400px; background: transparent; border-style: dashed; border-color: rgba(127,211,242,.35); justify-content: center; gap: 18px; }
.dm-panel__step { font-size: 14px; font-weight: 600; color: var(--dm-cyan); }
.dm-panel--blue .dm-panel__step { color: #DCE8FF; }
.dm-panel__art { width: 100%; height: 110px; }
.dm-panel__title { margin: 0 0 10px; font-size: 28px; font-weight: 700; color: #fff; line-height: 1.15; }
.dm-panel--outline .dm-panel__title { margin: 0; }
.dm-panel__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dm-muted); }
.dm-panel--blue .dm-panel__text { color: #E1EBFF; }
.dm-panel__code { font-family: var(--dm-mono); font-size: 13px; line-height: 1.9; padding: 16px 18px; border-radius: 12px; background: rgba(6,17,31,.3); }
.dm-panel__code span { color: #B9E9FF; }
.dm-panel__bars { display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.dm-panel__bars span { flex: 1; border-radius: 6px; background: var(--dm-line); }
.dm-panel__bars .is-mid { background: #1E4670; }
.dm-panel__bars .is-blue { background: var(--dm-blue); }
.dm-panel__bars .is-cyan { background: var(--dm-cyan); }

/* ---------- Sekcje jasne ---------- */
.dm-section { padding: 110px 0; }
.dm-section--light { background: var(--dm-light); color: var(--dm-navy); }
.dm-section--tight { padding-top: 0; }

/* ---------- Partnerzy ---------- */
.dm-partners-section { background: var(--dm-light); color: var(--dm-navy); padding: 104px 0; }
.dm-partners { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.dm-partners__text {
	margin: 0; max-width: 22ch; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 700;
	letter-spacing: -0.02em; color: var(--dm-navy); text-wrap: balance;
}
.dm-partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.dm-partner {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	min-height: 168px; padding: 26px 22px 20px; border-radius: 18px; text-align: center;
}
.dm-partner--light { background: #fff; border: 1px solid #DCE2EE; }
.dm-partner--dark { background: var(--dm-navy); border: 1px solid var(--dm-navy); }
.dm-partner__logo { display: flex; align-items: center; justify-content: center; height: 76px; width: 100%; }
.dm-partner__logo img { max-height: 76px; max-width: min(100%, 200px); width: auto; height: auto; display: block; }
.dm-partner__name { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--dm-slate); }
.dm-partner--dark .dm-partner__name { color: #C9D5E1; }
.dm-partner--text { min-height: 120px; }
.dm-partner--text .dm-partner__name { font-size: 18px; font-weight: 700; color: var(--dm-navy); }
.dm-partner--dark.dm-partner--text .dm-partner__name { color: #fff; }

/* ---------- CTA ---------- */
.dm-cta { position: relative; padding: 140px 0; overflow: hidden; background: var(--dm-ink); }
.dm-cta__art { position: absolute; width: 820px; right: -200px; top: 50%; transform: translateY(-50%); opacity: .45; pointer-events: none; }
.dm-cta__inner { position: relative; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.dm-cta__title { margin: 0; max-width: 800px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.dm-cta__lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--dm-muted); }
.dm-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.dm-cta__layout { position: relative; }
.dm-cta__layout.has-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; }

/* ---------- Formularz kontaktowy ---------- */
.dm-form { background: #0B1A2C; border: 1px solid #1C3554; border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 18px; color: #E6EDF5; }
.dm-form-wrap { margin: 32px 0; }
.dm-form__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.dm-form__intro { margin: -8px 0 0; font-size: 15px; color: var(--dm-muted); }
.dm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.dm-form__field { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dm-form__field--wide { grid-column: 1 / -1; }
.dm-form label { font-size: 14px; font-weight: 600; color: #C5D1DE; }
.dm-form__req { color: var(--dm-cyan); }
.dm-form input[type="text"], .dm-form input[type="email"], .dm-form input[type="tel"], .dm-form textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #2A4767; background: #06111F;
	color: #fff; font: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s ease, box-shadow .2s ease;
}
.dm-form textarea { min-height: 132px; resize: vertical; }
.dm-form ::placeholder { color: #7489A1; }
.dm-form input:focus, .dm-form textarea:focus { outline: none; border-color: var(--dm-cyan); box-shadow: 0 0 0 3px rgba(61,191,232,.25); }
.dm-form__consent { margin: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.dm-form__consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dm-cyan); }
.dm-form__consent label { font-weight: 400; font-size: 13.5px; line-height: 1.55; color: var(--dm-muted); }
.dm-form__consent a { color: var(--dm-cyan); text-decoration: underline; text-underline-offset: 2px; }
.dm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.dm-form__foot .dm-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.dm-form__note { font-size: 13px; color: #7489A1; }
.dm-form__msg { margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.dm-form__msg--ok { background: rgba(61,191,232,.14); border: 1px solid rgba(61,191,232,.5); color: #CFEFFB; }
.dm-form__msg--err { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.55); color: #FFD6D6; }
.dm-form__captcha { max-width: 280px; }
.dm-form__cq { color: #fff; font-weight: 800; white-space: nowrap; }
.dm-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1000px) {
	.dm-cta__layout.has-form { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 560px) {
	.dm-form { padding: 22px 18px; }
	.dm-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Stopka ---------- */
.dm-footer { background: #040C17; border-top: 1px solid rgba(127,211,242,.1); padding: 56px 0 32px; font-size: 14px; color: var(--dm-muted-2); }
.dm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.dm-footer__company { display: flex; flex-direction: column; gap: 6px; }
.dm-footer__name { font-weight: 700; font-size: 18px; color: #fff; }
.dm-footer__logo { height: 36px; max-height: 40px; width: auto; margin-bottom: 8px; display: block; align-self: flex-start; }
.dm-footer__legal { font-family: var(--dm-font); font-size: 13px; }
.dm-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.dm-footer__col { display: flex; flex-direction: column; gap: 8px; }
.dm-footer__col a, .dm-footer__menu a { color: var(--dm-muted-2); }
.dm-footer__col a:hover, .dm-footer__menu a:hover { color: #fff; }
.dm-footer__head { color: #fff; font-weight: 600; margin-bottom: 4px; }
.dm-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dm-footer__eu { width: 100%; background: #fff; border-radius: 12px; padding: 16px 24px; text-align: center; }
.dm-footer__eu img { max-height: 70px; width: auto; display: inline-block; }
.dm-footer__bottom { width: 100%; padding-top: 24px; border-top: 1px solid rgba(127,211,242,.08); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Podstrony ---------- */
.dm-page-hero { position: relative; padding: calc(var(--dm-header) + 80px) 0 72px; overflow: hidden; background: var(--dm-ink); }
.dm-page-hero__inner { position: relative; }
.dm-page-hero__title { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: #fff; max-width: 900px; }
.dm-page-hero__sub { margin: 16px 0 0; color: var(--dm-muted); font-size: 18px; }
.dm-prose { max-width: 820px; font-size: 17px; line-height: 1.75; color: var(--dm-navy); }
.dm-prose h2, .dm-prose h3, .dm-prose h4 { color: var(--dm-navy); line-height: 1.2; margin: 1.8em 0 .6em; letter-spacing: -0.02em; }
.dm-prose h2 { font-size: 32px; font-weight: 800; }
.dm-prose h3 { font-size: 24px; font-weight: 700; }
.dm-prose a { color: #1559ED; text-decoration: underline; text-underline-offset: 3px; }
.dm-prose a.dm-btn { color: #fff; text-decoration: none; }
.dm-prose img { border-radius: 16px; }
.dm-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--dm-blue); color: var(--dm-slate); }
.dm-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dm-prose th, .dm-prose td { border-bottom: 1px solid #DCE2EE; padding: 10px 12px; text-align: left; }
.dm-prose__thumb { margin-bottom: 32px; }

/* ---------- Podstrona: Instrukcje (PDF) ---------- */
.dm-manual-hero__count { margin: 14px 0 0; font-size: 17px; color: #9DB0C6; }
.dm-manuals { padding-top: 64px; }
.dm-manuals__intro { margin-bottom: 36px; }
.dm-manuals__empty { background: #fff; border: 1px solid #DCE2EE; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; color: var(--dm-slate); font-size: 17px; }
.dm-manuals__empty p { margin: 0; }
.dm-manuals__layout.has-list { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.dm-manuals__list { position: sticky; top: calc(var(--dm-header) + 24px); }
.dm-manuals__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dm-manuals__item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid #DCE2EE; background: #fff; color: var(--dm-navy); transition: border-color .2s ease, box-shadow .2s ease; }
.dm-manuals__item:hover { border-color: #9DB7E0; color: var(--dm-navy); }
.dm-manuals__item[aria-current="page"] { border-color: #1559ED; box-shadow: inset 3px 0 0 #1559ED; }
.dm-manuals__cat { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #1559ED; }
.dm-manuals__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.dm-manuals__meta { font-size: 13px; color: var(--dm-slate); }
.dm-manual { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dm-manual__head { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: flex-end; }
.dm-manual__info { display: flex; flex-direction: column; gap: 8px; max-width: 640px; min-width: 0; }
.dm-manual__title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--dm-navy); }
.dm-manual__desc { margin: 0; font-size: 16px; line-height: 1.6; color: #2B3D52; }
.dm-manual__facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-manual__facts li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #DCE2EE; font-size: 13px; font-weight: 600; color: var(--dm-slate); }
.dm-manual__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-manual__actions .dm-btn { gap: 8px; }
.dm-btn--ghost-dark { border: 1px solid #B9C6D8; color: var(--dm-navy); background: transparent; }
.dm-btn--ghost-dark:hover { border-color: var(--dm-navy); color: var(--dm-navy); }

/* Czytnik */
.dm-pdf { background: #0B1A2C; border-radius: 20px; overflow: hidden; border: 1px solid #1C3554; display: flex; flex-direction: column; }
.dm-pdf__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; background: #0E2340; border-bottom: 1px solid #1C3554; color: #C5D1DE; }
.dm-pdf__group { display: flex; align-items: center; gap: 4px; }
.dm-pdf__btn, .dm-pdf__zoom { min-width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: #E6EDF5; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: 600 14px/1 inherit; }
.dm-pdf__zoom { min-width: 64px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.dm-pdf__btn:hover, .dm-pdf__zoom:hover { background: rgba(255,255,255,.08); }
.dm-pdf__btn:focus-visible, .dm-pdf__zoom:focus-visible, .dm-pdf__page input:focus-visible, .dm-pdf__pages:focus-visible { outline: 2px solid var(--dm-cyan); outline-offset: 2px; }
.dm-pdf__page { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dm-pdf__page input { width: 3.2em; height: 34px; border-radius: 8px; border: 1px solid #2A4767; background: #06111F; color: #fff; text-align: center; font: inherit; }
.dm-pdf__pages { height: min(82vh, 1100px); overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; overscroll-behavior: contain; scroll-behavior: auto; }
.dm-pdf__sheet { flex: none; background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.35); position: relative; overflow: hidden; }
.dm-pdf__sheet:not(.is-ready)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #F2F5F9 30%, #E6ECF3 50%, #F2F5F9 70%); background-size: 200% 100%; animation: dm-sheet 1.4s linear infinite; }
.dm-pdf__sheet canvas { display: block; width: 100%; height: 100%; }
@keyframes dm-sheet { to { background-position: -200% 0; } }
.dm-pdf__status { margin: auto; padding: 40px 24px; text-align: center; color: #9DB0C6; font-size: 15px; max-width: 46ch; }
.dm-pdf__status.is-error { color: #FFD6D6; }
.dm-pdf.is-full { border-radius: 0; border: 0; }
.dm-pdf.is-full .dm-pdf__pages { height: auto; flex: 1; }
@media (prefers-reduced-motion: reduce) { .dm-pdf__sheet:not(.is-ready)::after { animation: none; } }
@media (max-width: 960px) {
	.dm-manuals__layout.has-list { grid-template-columns: minmax(0, 1fr); }
	.dm-manuals__list { position: static; }
	.dm-manuals__list ul { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
	.dm-manuals__item { flex: none; width: 240px; }
}
@media (max-width: 560px) {
	.dm-pdf__pages { padding: 12px; gap: 12px; height: 72vh; }
	.dm-pdf__bar { padding: 8px; }
	.dm-manual__actions .dm-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Podstrona: Informacje RODO ---------- */
.dm-legal-hero { padding-bottom: 88px; }
.dm-legal { padding-top: 80px; }
.dm-legal__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 64px; align-items: start; }
.dm-legal__text { max-width: 66ch; font-size: 18px; line-height: 1.75; color: #2B3D52; }
.dm-legal__text p { margin: 0 0 1.2em; }
.dm-legal__text p:first-child { font-size: 20px; line-height: 1.65; color: var(--dm-navy); }
.dm-legal__extra { grid-column: 1 / -1; margin-top: 16px; }
.dm-iod { background: #fff; border: 1px solid #DCE2EE; border-radius: 24px; padding: 32px; position: sticky; top: calc(var(--dm-header) + 24px); }
.dm-iod__head { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #E4EAF2; }
.dm-iod__badge { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #E8F0FE; color: #1559ED; display: flex; align-items: center; justify-content: center; }
.dm-iod__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--dm-slate); }
.dm-iod__name { margin: 2px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--dm-navy); }
.dm-iod__list { list-style: none; margin: 0; padding: 0; }
.dm-iod__item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid #EEF2F7; }
.dm-iod__item:last-child { border-bottom: 0; padding-bottom: 0; }
.dm-iod__icon { width: 40px; height: 40px; border-radius: 12px; background: #F2F5F9; color: var(--dm-navy); display: flex; align-items: center; justify-content: center; }
.dm-iod__how { display: block; font-size: 14px; color: var(--dm-slate); margin-bottom: 2px; }
.dm-iod__value { display: inline-flex; align-items: center; min-height: 32px; font-size: 18px; font-weight: 700; color: #1559ED; font-style: normal; overflow-wrap: anywhere; }
a.dm-iod__value:hover { color: #0E3FB0; text-decoration: underline; text-underline-offset: 3px; }
.dm-iod__address { display: block; color: var(--dm-navy); line-height: 1.5; padding-top: 4px; }
.dm-iod__note { display: block; margin-top: 4px; font-size: 14px; color: var(--dm-slate); }
@media (max-width: 960px) {
	.dm-legal__grid { grid-template-columns: 1fr; gap: 36px; }
	.dm-iod { position: static; padding: 24px; }
	.dm-legal__text { font-size: 17px; }
	.dm-legal__text p:first-child { font-size: 18px; }
}

/* ---------- Podstrona: Fundusze Europejskie ---------- */
.dm-funds-hero { position: relative; overflow: hidden; background: var(--dm-ink); padding: calc(var(--dm-header) + 88px) 0 120px; }
.dm-funds-hero__inner { position: relative; }
.dm-funds-hero__title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.dm-funds-hero__lead { margin: 22px 0 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: var(--dm-muted); }
.dm-funds-toc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.dm-funds-toc a {
	display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 18px 12px 16px;
	border: 1px solid rgba(127,211,242,.22); border-radius: 12px; color: #fff; background: rgba(14,35,64,.6);
	transition: border-color .2s ease, background .2s ease;
}
.dm-funds-toc a:hover { color: #fff; border-color: var(--dm-cyan); background: var(--dm-panel); }
.dm-funds-toc__years { font-size: 13px; color: #7FD3F2; }
.dm-funds-toc__name { font-size: 16px; font-weight: 700; }

/* Pasek logotypów: biała karta nachodząca na hero, żeby logotypy były czytelne i dobrze widoczne */
.dm-funds-logos { position: relative; z-index: 2; margin-top: -56px; background: linear-gradient(to bottom, transparent 56px, var(--dm-light) 56px); }
.dm-funds-logos__card {
	background: #fff; border-radius: 16px; padding: 22px 32px; min-height: 112px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	box-shadow: 0 24px 60px -30px rgba(6,17,31,.45);
}
.dm-funds-logos__card img { display: block; max-width: 100%; height: auto; max-height: 96px; width: auto; }
.dm-funds-logos__text { margin: 0; font-size: 16px; font-weight: 600; color: var(--dm-navy); text-align: center; }
.dm-funds-logos__hint { margin: 0; font-size: 13px; color: #8A5300; text-align: center; }

.dm-funds { padding-top: 72px; }
.dm-funds__empty { margin: 0; font-size: 18px; color: var(--dm-slate); }
.dm-fund {
	display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 0;
	background: #fff; border: 1px solid #DCE2EE; border-radius: 24px; overflow: hidden;
	scroll-margin-top: calc(var(--dm-header) + 24px);
}
.dm-fund + .dm-fund { margin-top: 32px; }
.dm-fund__main { padding: 44px 48px; }
.dm-fund__short {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
	font-size: 14px; font-weight: 700; color: #1559ED; letter-spacing: .02em;
}
.dm-fund__short::before { content: ""; width: 14px; height: 16px; background: #1559ED; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.dm-fund__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--dm-navy); max-width: 720px; }
.dm-fund__program { margin: 16px 0 0; padding-left: 14px; border-left: 3px solid #C9D6EA; font-size: 15px; line-height: 1.55; color: var(--dm-slate); max-width: 680px; }
.dm-fund__summary { margin-top: 26px; max-width: 680px; font-size: 17px; line-height: 1.7; color: #2B3D52; }
.dm-fund__summary p { margin: 0; }
.dm-fund__more { margin-top: 14px; }
.dm-fund__more summary {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
	font-size: 15px; font-weight: 700; color: #1559ED; list-style: none;
}
.dm-fund__more summary::-webkit-details-marker { display: none; }
.dm-fund__more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.dm-fund__more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.dm-fund__more p { margin-top: 10px; }

.dm-fund__facts { margin: 0; padding: 44px 40px; background: #F5F8FC; border-left: 1px solid #E4EAF2; display: flex; flex-direction: column; gap: 26px; }
.dm-fund__fact dt { font-size: 13px; font-weight: 600; color: var(--dm-slate); margin-bottom: 4px; }
.dm-fund__fact dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--dm-navy); font-variant-numeric: tabular-nums; }
.dm-fund__fact--eu dd { font-size: 26px; color: #0E3FB0; }
.dm-fund__partners { font-size: 15px !important; font-weight: 600 !important; line-height: 1.5; }
.dm-fund__bar { margin-top: 12px; height: 8px; border-radius: 4px; background: #DCE4EF; overflow: hidden; }
.dm-fund__bar span { display: block; height: 100%; border-radius: 4px; background: #1559ED; }
.dm-fund__share { margin: 8px 0 0; font-size: 14px; color: var(--dm-slate); }
.dm-funds__extra { margin-top: 56px; }

@media (max-width: 900px) {
	.dm-funds-hero { padding: calc(var(--dm-header) + 48px) 0 96px; }
	.dm-fund { grid-template-columns: 1fr; }
	.dm-fund__main { padding: 30px 24px; }
	.dm-fund__facts { padding: 26px 24px; border-left: 0; border-top: 1px solid #E4EAF2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.dm-fund__fact--eu, .dm-fund__fact:has(.dm-fund__partners) { grid-column: 1 / -1; }
	.dm-funds-logos__card { padding: 18px; }
}
@media (max-width: 480px) {
	.dm-fund__facts { grid-template-columns: 1fr; }
}
.dm-prose .wp-block-button__link { background: var(--dm-blue); color: #fff; border-radius: 12px; text-decoration: none; }
.dm-postnav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #DCE2EE; }
.dm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.dm-post-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #DCE2EE; color: var(--dm-navy); }
.dm-post-card:hover { color: var(--dm-navy); border-color: var(--dm-blue); }
.dm-post-card__thumb img { border-radius: 12px; display: block; }
.dm-post-card__date { font-size: 13px; color: #1559ED; font-family: var(--dm-font); }
.dm-post-card__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.dm-post-card__excerpt { margin: 0; color: var(--dm-slate); font-size: 15px; }
.dm-pagination { margin-top: 48px; }
.dm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dm-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid #DCE2EE; color: var(--dm-navy); }
.dm-pagination .current { background: var(--dm-blue); color: #fff; border-color: var(--dm-blue); }
.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-form .search-field { flex: 1; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #C9D1E0; font: inherit; }
.search-form .search-submit { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--dm-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Animacje ambientowe ---------- */
@keyframes dm-spin { to { transform: rotate(360deg); } }
@keyframes dm-pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes dm-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dm-dash { to { stroke-dashoffset: -200; } }
@keyframes dm-scan { 0% { top: 0; } 100% { top: 100%; } }
.dm-orbit { animation: dm-spin 70s linear infinite; }
.dm-pulse { animation: dm-pulse 2.4s ease-in-out infinite; }
.dm-mouse span { animation: dm-drift 1.8s ease-in-out infinite; }
.dm-flow { animation: dm-dash 6s linear infinite; }
.dm-scan { animation: dm-scan 4s cubic-bezier(.6,0,.4,1) infinite; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
	.dm-cluster-box { transform: scale(.82); }
}
/* Menu: etykiety w jednej linii; na węższych ekranach mniejsze odstępy, poniżej 1140 px menu rozwijane. */
.dm-menu a, .dm-nav .dm-btn { white-space: nowrap; }
@media (max-width: 1320px) {
	.dm-nav { gap: 20px; }
	.dm-nav__menu { gap: 22px; }
	.dm-menu { gap: 20px; }
	.dm-menu a { font-size: 14px; }
}
@media (max-width: 1140px) {
	.dm-nav-toggle { display: inline-flex; }
	.dm-nav__menu {
		position: absolute; top: var(--dm-header); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 8px; padding: 16px 24px 24px;
		background: rgba(6,17,31,.97); border-bottom: 1px solid rgba(127,211,242,.1); display: none;
	}
	.dm-nav__menu.is-open { display: flex; }
	.dm-menu { flex-direction: column; gap: 0; }
	.dm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; padding: 0 0 0 16px; }
	.dm-menu a { font-size: 15px; }
	.dm-nav .dm-btn { align-self: flex-start; margin-top: 8px; }
}
@media (max-width: 900px) {
	:root { --dm-header: 68px; }

	.dm-intro { padding-bottom: 80px; }
	.dm-intro__hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding: 24px 24px 0; }
	.dm-cluster-box { height: 380px; transform: scale(var(--dm-fit, .66)); margin: -30px 0 -50px; }
	.dm-intro__copy { max-width: 100%; }
	.dm-cluster-box { min-width: 0; }
	.dm-showcase { grid-template-columns: 1fr; gap: 28px; padding: 64px 24px 0; }
	.dm-app { height: 420px; }
	.dm-mock__main { grid-template-columns: 1fr; }
	.dm-mock__aside { display: none; }
	.dm-mock__side { width: 48px; }

	.dm-how { min-height: 0; padding: 88px 0; }
	.dm-how__progress { display: none; }
	.dm-how__track { flex-direction: column; width: 100%; padding: 0 24px; gap: 18px; }
	.dm-panel, .dm-panel--outline { width: 100%; min-height: 0; padding: 28px; }
	.dm-panel__title { font-size: 24px; }

	.dm-section { padding: 80px 0; }
	.dm-section--tight { padding-top: 0; }
	.dm-partners-section { padding: 72px 0; }
	.dm-partners { grid-template-columns: 1fr; gap: 28px; }
	.dm-partners__text { max-width: none; }
	.dm-partners__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
	.dm-partner { min-height: 140px; padding: 20px 14px 16px; }
	.dm-partner__logo { height: 60px; }
	.dm-partner__logo img { max-height: 60px; }
	.dm-cta { padding: 96px 0; }
}
@media (max-width: 480px) {
	.dm-cluster-box { transform: scale(var(--dm-fit, .56)); margin: -70px -40px -90px; }
	.dm-brand__name { font-size: 20px; }
	.dm-mock__row { grid-template-columns: 34px minmax(0, 1fr) auto; }
	.dm-mock__time { display: none; }
}
