/* ═══════════════════════════════════════════════════════════════════
   PODSTRONY MODUŁÓW (/moduly/…) + interaktywne demo
   Ładowane PO /styles.css — korzysta z jego tokenów (--primary, --blue,
   --border…) i klas (.section, .btn-primary, .faq-*, .mod-pill).
   Demo to uproszczone, ale wierne odwzorowanie ekranów aplikacji —
   kolory statusów i etykiety 1:1 z app.lingodesk.pl.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero podstrony ── */
.m-hero { padding: 116px 0 56px; background: #fff; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.m-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 85% 0%, rgba(37,99,235,.07) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 0% 100%, rgba(124,58,237,.05) 0%, transparent 60%); }
.m-hero .wrap { position: relative; }
.m-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.m-hero-ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--blue-light); margin-bottom: 18px; color: var(--blue); }
.m-hero-ico.addon { background: #f5f3ff; color: #7c3aed; }
.m-hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.06; color: var(--fg); margin: 12px 0 16px; }
.m-hero-lead { font-size: 17px; line-height: 1.65; color: var(--fg-2); max-width: 560px; }
.m-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-stat { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.m-stat b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: var(--primary); }
.m-stat span { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; }

/* ── Spis treści (pigułki pod hero) ── */
.m-toc { position: sticky; top: 60px; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.m-toc .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.m-toc .wrap::-webkit-scrollbar { display: none; }
.m-toc a { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--fg-muted); padding: 6px 12px; border-radius: 9999px; border: 1px solid transparent; }
.m-toc a:hover, .m-toc a.on { color: var(--fg); background: var(--bg-muted); border-color: var(--border); }

/* ── Problem → rozwiązanie ── */
.m-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.m-compare-col { border-radius: 18px; padding: 26px; border: 1px solid var(--border); background: #fff; }
.m-compare-col.before { background: #fffbfa; border-color: #fde2dd; }
.m-compare-col.before h3 .lc { color: #dc2626; }
.m-compare-col.after h3 .lc { color: #059669; }
.m-compare-col.after { background: #f6fdf9; border-color: #c6f0da; }
.m-compare-col h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.m-compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.m-compare-col li { font-size: 14px; color: var(--fg-2); line-height: 1.55; display: flex; gap: 10px; }
.m-compare-col li::before { flex-shrink: 0; font-weight: 900; }
.m-compare-col.before li::before { content: '✕'; color: #dc2626; }
.m-compare-col.after li::before { content: '✓'; color: #059669; }

/* ── Ramka demo (browser chrome) ── */
.m-demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.m-demo-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.03em; color: var(--fg); }
.m-demo-head p { font-size: 14.5px; color: var(--fg-muted); max-width: 620px; margin-top: 6px; line-height: 1.6; }
.m-try { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.m-try span { font-size: 12px; font-weight: 700; color: #1d4ed8; background: var(--blue-light); border: 1px solid #bfdbfe; border-radius: 9999px; padding: 5px 11px; }
.m-try span::before { content: '👉 '; }
.d-frame { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-xl); overflow: hidden; }
.d-bar { height: 38px; background: #f3f4f6; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.d-dot { width: 10px; height: 10px; border-radius: 50%; }
.d-url { margin-left: 12px; flex: 1; max-width: 360px; height: 22px; background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; color: var(--fg-subtle); display: flex; align-items: center; padding: 0 10px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.d-body { padding: 18px; min-height: 360px; position: relative; font-size: 13px; color: var(--fg); }
.d-noscript { padding: 28px; text-align: center; color: var(--fg-muted); font-size: 14px; }
.m-demo-note { font-size: 12.5px; color: var(--fg-subtle); margin-top: 12px; text-align: center; }

/* ── Kit UI demo ── */
.d-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.d-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-col { display: flex; flex-direction: column; gap: 10px; }
.d-title { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.d-sub { font-size: 12px; color: var(--fg-muted); }
.d-label { font-size: 11px; font-weight: 800; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; display: block; }
.d-input, .d-select, .d-textarea { font-family: inherit; font-size: 13px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--fg); min-width: 0; }
.d-input:focus, .d-select:focus, .d-textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--blue); }
.d-textarea { width: 100%; resize: vertical; min-height: 70px; }
.d-btn { font-family: inherit; font-size: 12.5px; font-weight: 800; border-radius: 8px; padding: 7px 13px; border: 1px solid transparent; cursor: pointer; background: var(--primary); color: #fff; transition: background .14s, transform .1s; white-space: nowrap; }
.d-btn:hover { background: #243d53; }
.d-btn:active { transform: translateY(1px); }
.d-btn:disabled { opacity: .45; cursor: not-allowed; }
.d-btn.ghost { background: #fff; color: var(--fg-2); border-color: var(--border-strong); }
.d-btn.ghost:hover { background: var(--bg-subtle); }
.d-btn.green { background: #059669; } .d-btn.green:hover { background: #047857; }
.d-btn.red { background: #fff; color: #dc2626; border-color: #fecaca; } .d-btn.red:hover { background: #fef2f2; }
.d-btn.blue { background: var(--blue); } .d-btn.blue:hover { background: #1d4ed8; }
.d-btn.purple { background: #7c3aed; } .d-btn.purple:hover { background: #6d28d9; }
.d-btn.sm { padding: 4px 9px; font-size: 11.5px; }
.d-chip { font-family: inherit; font-size: 12px; font-weight: 700; border-radius: 9999px; padding: 5px 12px; border: 1px solid var(--border); background: #fff; color: var(--fg-muted); cursor: pointer; }
.d-chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.d-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; border-radius: 9999px; padding: 2px 9px; white-space: nowrap; border: 1px solid transparent; }
.b-red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.b-amber { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.b-green { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.b-blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.b-gray { background: #f3f4f6; color: #374151; border-color: #e5e7eb; }
.b-purple { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.d-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; }
.d-card.soft { background: var(--bg-subtle); }
.d-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.d-tile { border-radius: 12px; padding: 12px; border: 1px solid var(--border); background: #fff; }
.d-tile small { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); }
.d-tile b { display: block; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; margin-top: 4px; transition: color .2s; }
.d-tile.red { background: #fef2f2; border-color: #fecaca; } .d-tile.red b { color: #b91c1c; }
.d-tile.green { background: #ecfdf5; border-color: #a7f3d0; } .d-tile.green b { color: #047857; }
.d-tile.blue { background: #eff6ff; border-color: #bfdbfe; } .d-tile.blue b { color: #1d4ed8; }
.d-tile.amber { background: #fffbeb; border-color: #fde68a; } .d-tile.amber b { color: #b45309; }
.d-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.d-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.d-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); padding: 9px 12px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.d-table td { padding: 10px 12px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; }
.d-table tr:last-child td { border-bottom: none; }
.d-table tr.click { cursor: pointer; }
.d-table tr.click:hover td { background: #f8fafc; }
.d-table tr.sel td { background: #eff6ff; }
.d-av { width: 28px; height: 28px; border-radius: 50%; background: rgba(45,74,101,.1); color: var(--primary); font-size: 10.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-person { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.d-muted { color: var(--fg-muted); }
.d-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.d-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.d-tab { font-family: inherit; background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 12px; font-size: 12.5px; font-weight: 800; color: var(--fg-muted); cursor: pointer; white-space: nowrap; }
.d-tab.on { color: var(--fg); border-bottom-color: var(--primary); }
.d-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; font-weight: 700; user-select: none; }
.d-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.d-switch-track { width: 36px; height: 20px; border-radius: 9999px; background: #d1d5db; position: relative; transition: background .18s; flex-shrink: 0; }
.d-switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s; }
.d-switch input:checked + .d-switch-track { background: #059669; }
.d-switch input:checked + .d-switch-track::after { transform: translateX(16px); }
.d-switch input:focus-visible + .d-switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.d-progress { height: 8px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; }
.d-progress span { display: block; height: 100%; background: var(--blue); border-radius: 9999px; transition: width .3s; }
.d-banner { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; border: 1px solid; }
.d-banner.red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.d-banner.amber { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.d-banner.green { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.d-banner.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
.d-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); background: #111827; color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg); z-index: 20; max-width: calc(100% - 32px); text-align: center; }
.d-toast.show { opacity: 1; transform: translate(-50%, 0); }
.d-empty { text-align: center; color: var(--fg-muted); padding: 22px; font-size: 12.5px; }
.d-hl { animation: d-flash 1.2s ease; }
@keyframes d-flash { 0% { background: #fef9c3; } 100% { background: transparent; } }
.d-fade { animation: d-in .25s ease; }
@keyframes d-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Kalendarz tygodniowy (grafik) */
.d-cal { display: grid; grid-template-columns: 46px repeat(5, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 560px; }
.d-cal-h { background: var(--bg-subtle); font-size: 11px; font-weight: 800; color: var(--fg-muted); text-align: center; padding: 7px 4px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.d-cal-h.today { color: #1d4ed8; background: #eff6ff; }
.d-cal-t { font-size: 10.5px; color: var(--fg-subtle); text-align: right; padding: 3px 6px 0 0; height: 44px; border-bottom: 1px solid #f1f2f4; }
.d-cal-c { height: 44px; border-left: 1px solid var(--border); border-bottom: 1px solid #f1f2f4; position: relative; }
.d-cal-c.today { background: #fefce8; }
.d-ev { position: absolute; left: 3px; right: 3px; top: 3px; border-radius: 6px; padding: 3px 6px; font-size: 10.5px; line-height: 1.25; font-weight: 700; border-left: 3px solid; cursor: pointer; overflow: hidden; z-index: 2; text-align: left; font-family: inherit; }
.d-ev small { display: block; font-weight: 600; opacity: .8; }
.ev-confirmed { background: #dcfce7; color: #14532d; border-left-color: #16a34a; }
.ev-completed { background: #f3f4f6; color: #374151; border-left-color: #6b7280; }
.ev-late { background: #fee2e2; color: #7f1d1d; border-left-color: #dc2626; }
.ev-ontime { background: #fef9c3; color: #713f12; border-left-color: #ca8a04; }
.ev-external { background: #ede9fe; color: #4c1d95; border-left-color: #7c3aed; cursor: default; }
.ev-new { animation: d-pop .4s ease; }
@keyframes d-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.d-scroll { overflow-x: auto; }

/* Mini sidebar (role) */
.d-side { background: #1a2942; border-radius: 12px; padding: 12px 8px; color: #cbd5e1; min-height: 300px; }
.d-side-item { font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.d-side-item.active { background: rgba(255,255,255,.1); color: #fff; }
.d-side-grp { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 10px 10px 4px; }

/* Podgląd maila */
.d-mail { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.d-mail-meta { background: #fff; padding: 10px 12px; font-size: 11.5px; color: var(--fg-muted); border-bottom: 1px solid var(--border); line-height: 1.6; }
.d-mail-meta b { color: var(--fg); }
.d-mail-head { background: var(--primary); color: #fff; padding: 14px; font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.d-mail-head.warn { background: #d97706; }
.d-mail-card { background: #fff; margin: 12px; border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.6; color: var(--fg-2); }
.d-mail-card a { color: var(--blue); text-decoration: underline; }
.d-mail-foot { text-align: center; font-size: 10.5px; color: var(--fg-subtle); padding: 0 12px 12px; }
.d-editor-bar { display: flex; gap: 4px; padding: 6px; border: 1px solid var(--border-strong); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--bg-subtle); }
.d-editor-bar button { font-family: inherit; width: 28px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--fg-2); }
.d-editor { min-height: 110px; border: 1px solid var(--border-strong); border-radius: 0 0 8px 8px; padding: 10px; font-size: 13px; line-height: 1.55; outline: none; }
.d-editor:focus { border-color: var(--blue); }
.d-editor a { color: var(--blue); text-decoration: underline; }

/* Odtwarzacz / nagrywarka */
.d-player { background: #0f172a; border-radius: 12px; aspect-ratio: 16 / 8; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.d-player-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 70%; }
.d-player-face { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg,#334155,#1e293b); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.d-player-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; align-items: center; gap: 10px; color: #fff; font-size: 11.5px; font-weight: 700; }
.d-player-ctrl button { font-family: inherit; width: 30px; height: 30px; border-radius: 50%; border: none; background: #fff; color: #0f172a; cursor: pointer; font-size: 12px; font-weight: 900; flex-shrink: 0; }
.d-player-bar { flex: 1; height: 5px; background: rgba(255,255,255,.3); border-radius: 9999px; overflow: hidden; cursor: pointer; }
.d-player-bar span { display: block; height: 100%; background: #fff; width: 0; }
.d-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; display: inline-block; animation: pulse 1.2s infinite; }

/* Pasek dopasowania poziomu */
.d-match { height: 6px; border-radius: 9999px; background: #e5e7eb; overflow: hidden; width: 100%; margin-top: 4px; }
.d-match span { display: block; height: 100%; }

/* ── Sekcje funkcji ── */
.m-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.m-feature { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.m-feature-ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--blue-light); color: var(--blue); margin-bottom: 14px; }
.m-feature h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 8px; }
.m-feature p { font-size: 14px; color: var(--fg-2); line-height: 1.65; }
.m-feature ul { margin-top: 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-feature li { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }
.m-feature li::marker { color: var(--blue); }

/* ── Scenariusze (przykłady z życia) ── */
.m-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-scenario { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; }
.m-scenario-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #7c3aed; margin-bottom: 8px; }
.m-scenario h3 { font-size: 16px; font-weight: 800; color: var(--fg); margin-bottom: 12px; line-height: 1.35; }
.m-scenario ol { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 9px; }
.m-scenario li { counter-increment: s; font-size: 13.5px; color: var(--fg-2); line-height: 1.55; display: flex; gap: 10px; }
.m-scenario li::before { content: counter(s); flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-light); color: #1d4ed8; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.m-scenario-result { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: #047857; }

/* ── Role ── */
.m-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.m-role { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; }
.m-role b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.m-role span { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* ── Powiązane moduły / przegląd ── */
.m-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.m-mod-link { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.m-mod-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.m-mod-link .nav-dd-ico { width: 40px; height: 40px; font-size: 19px; }
.m-mod-link.addon .nav-dd-ico { background: #f5f3ff; }
.m-mod-link b { display: block; font-size: 15px; font-weight: 800; color: var(--fg); }
.m-mod-link span { display: block; font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin-top: 3px; }
.m-mod-link em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--blue); margin-top: 8px; }
.m-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-overview .m-mod-link { flex-direction: column; padding: 22px; }

.m-section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 8px; }
.m-section-sub { font-size: 15px; color: var(--fg-muted); margin-bottom: 28px; max-width: 640px; line-height: 1.6; }

/* ── Responsywność ── */
@media (max-width: 900px) {
  .m-hero-grid, .m-compare, .m-features, .d-split, .d-grid2 { grid-template-columns: 1fr; }
  .m-scenarios, .m-related, .m-overview { grid-template-columns: 1fr; }
  .d-tiles { grid-template-columns: 1fr 1fr; }
  .m-hero { padding-top: 96px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .d-body { padding: 12px; }
  .m-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-new, .d-fade, .d-hl, .d-rec-dot { animation: none; }
}

/* Ikona w kafelku linku do modułu — nadpisuje `.m-mod-link span { display:block }` */
.m-mod-link .nav-dd-ico { display: flex; margin-top: 0; }

/* Kotwice spisu treści nie chowają się pod stałą nawigacją + paskiem TOC */
section[id], header[id] { scroll-margin-top: 112px; }
