/* ==========================================================================
   OnliRise — style.css
   Mobile-first · Light/Dark · WCAG 2.2 AA · bez zależności
   ========================================================================== */

/* ---------- Fonty (self-hosted, RODO-friendly) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeny ---------- */
:root {
  --color-background: #F0F5F5;
  --color-surface: #FFFFFF;
  --color-surface-2: #E8F4F4;
  --color-text: #1A1A2E;
  --color-muted: #545E6B;
  --color-primary: #1A1A2E;          /* ciemne przyciski */
  --color-on-primary: #FFFFFF;
  --color-secondary: #1F7A70;        /* teal o kontraście AA dla tekstu */
  --color-accent: #4ECDC4;           /* akcent dekoracyjny / neon */
  --color-accent-strong: #2A9D8F;
  --color-blue: #4A90D9;
  --color-amber: #F5B041;            /* pasek postępu czytania */
  --color-border: #E1E7EB;
  --color-success: #0E7A50;
  --color-error: #B42318;
  --color-tag-bg: #DDF1EF;
  --icon-teal-bg: #D1FAE5; --icon-teal-fg: #1F7A70;
  --icon-blue-bg: #DBEAFE; --icon-blue-fg: #2F6DB5;
  --icon-purple-bg: #EDE9FE; --icon-purple-fg: #6D28D9;
  --gradient-teal: linear-gradient(135deg, #1F8A7F 0%, #2FB3A8 100%);
  --hero-glow: radial-gradient(60% 60% at 75% 30%, rgba(78, 205, 196, .22), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(74, 144, 217, .10), transparent 70%);
  --glass: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(176,224,230,.35) 50%, rgba(78,205,196,.25) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(26, 26, 46, .08), 0 2px 6px rgba(26, 26, 46, .05);
  --container-width: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-background: #0B1118; --color-surface: #121B25; --color-surface-2: #15222D; --color-text: #E8EEF2;
    --color-muted: #A3B0BD; --color-primary: #4ECDC4; --color-on-primary: #0B1118; --color-secondary: #5FD8CF;
    --color-border: #24323F; --color-success: #4ADE9B; --color-error: #FF8A80; --color-tag-bg: #12302F;
    --icon-teal-bg: #12302F; --icon-teal-fg: #5FD8CF; --icon-blue-bg: #13263D; --icon-blue-fg: #7DB4F0;
    --icon-purple-bg: #251B3D; --icon-purple-fg: #B9A2FA;
    --gradient-teal: linear-gradient(135deg, #0F5C55 0%, #17807A 100%);
    --hero-glow: radial-gradient(60% 60% at 75% 30%, rgba(78, 205, 196, .16), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(74, 144, 217, .12), transparent 70%);
    --glass: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(120,200,210,.12) 50%, rgba(78,205,196,.16) 100%);
    --shadow-sm: 0 0 0 1px rgba(255,255,255,.04);
    --shadow-md: 0 12px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-background: #0B1118; --color-surface: #121B25; --color-surface-2: #15222D; --color-text: #E8EEF2;
  --color-muted: #A3B0BD; --color-primary: #4ECDC4; --color-on-primary: #0B1118; --color-secondary: #5FD8CF;
  --color-border: #24323F; --color-success: #4ADE9B; --color-error: #FF8A80; --color-tag-bg: #12302F;
  --icon-teal-bg: #12302F; --icon-teal-fg: #5FD8CF; --icon-blue-bg: #13263D; --icon-blue-fg: #7DB4F0;
  --icon-purple-bg: #251B3D; --icon-purple-fg: #B9A2FA;
  --gradient-teal: linear-gradient(135deg, #0F5C55 0%, #17807A 100%);
  --hero-glow: radial-gradient(60% 60% at 75% 30%, rgba(78, 205, 196, .16), transparent 70%), radial-gradient(40% 50% at 10% 0%, rgba(74, 144, 217, .12), transparent 70%);
  --glass: linear-gradient(135deg, rgba(255,255,255,.14) 0%, rgba(120,200,210,.12) 50%, rgba(78,205,196,.16) 100%);
  --shadow-sm: 0 0 0 1px rgba(255,255,255,.04);
  --shadow-md: 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--color-secondary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--color-accent); color: #0B1118; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-tight { padding-block: clamp(24px, 4vw, 48px); }
.section + .section, .stats + .section { padding-top: 0; }
.stats + .section { padding-top: clamp(48px, 7vw, 88px); }
.muted { color: var(--color-muted); }
.small { font-size: .875rem; }
.caption { margin-top: 20px; font-size: .8125rem; color: var(--color-muted); }

/* ---------- Typografia ---------- */
.display, .display-sm, .h2, .post-title {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; color: var(--color-text);
}
.display { font-size: clamp(2.375rem, 5.2vw, 3.875rem); line-height: 1.08; margin-bottom: 24px; }
.display-sm { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
.h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.15; }
.h3, .card h3 { font-size: 1.25rem; font-weight: 600; }
.h-sm { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 10px; }
.display em, .display-sm em, .h2 em { font-style: italic; color: var(--color-secondary); }
.display em { display: block; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--color-muted); max-width: 62ch; }
.center .lead, .lead.center { margin-inline: auto; }
.kicker { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-secondary); margin-bottom: 12px; }
.kicker.light { color: rgba(255,255,255,.85); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 2px 8px rgba(26,26,46,.2); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(26,26,46,.28); color: var(--color-on-primary); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-secondary); color: var(--color-text); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; margin-right: -8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--color-secondary); }

/* ---------- Tagi, ikony ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin-bottom: 24px;
  border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
  font-size: .8125rem; font-weight: 500; color: var(--color-text); text-decoration: none; box-shadow: var(--shadow-sm);
}
.badge:hover { border-color: var(--color-accent); }
.badge-new { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-tag-bg); color: var(--color-secondary); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--color-tag-bg); color: var(--color-secondary); font-size: .75rem; font-weight: 600; text-decoration: none;
}
a.tag:hover { background: var(--color-accent); color: #0B1118; }
.icon-circle { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.icon-circle.sm { width: 30px; height: 30px; }
.icon-circle.lg { width: 56px; height: 56px; }
.icon-circle.xl { width: 80px; height: 80px; margin: 0 auto 24px; }
.icon-teal { background: var(--icon-teal-bg); color: var(--icon-teal-fg); }
.icon-blue { background: var(--icon-blue-bg); color: var(--icon-blue-fg); }
.icon-purple { background: var(--icon-purple-bg); color: var(--icon-purple-fg); }

/* ---------- Karty ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 32px);
}

/* ---------- Pasek postępu czytania ---------- */
.reading-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: var(--color-amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--color-background) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: 0 6px 24px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.brand b { font-weight: 600; color: var(--color-secondary); }
.brand img { width: 36px; height: 36px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--color-text); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-secondary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.nav-cta-mobile { display: none; }

.lang-pill { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); }
.lang-pill a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: var(--radius-pill); color: var(--color-muted); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.lang-pill a:hover { color: var(--color-text); }
.lang-pill a[aria-current="true"] { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 60%, transparent); }
.lang-pill-sm a { min-height: 32px; font-weight: 500; letter-spacing: 0; }

.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

/* Mobile: menu */
@media (max-width: 959.98px) {
  .js .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 16px var(--gutter) 32px; background: var(--color-surface);
    border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .primary-nav li a { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; border-bottom: 1px solid var(--color-border); }
  .js .nav-cta-mobile { display: inline-flex; width: 100%; margin-top: 20px; }
  .js .menu-toggle { display: inline-grid; }
  /* Bez JS: menu jako zawijana lista pod logo */
  .no-js .site-header { height: auto; position: static; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .primary-nav { order: 3; width: 100%; }
  .no-js .primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .no-js .primary-nav a { display: inline-block; padding: 10px 0; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .primary-nav { margin-inline: auto; }
  .primary-nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
  .primary-nav a { position: relative; padding: 8px 0; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .25s var(--ease); }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { margin-left: 0; }
  .menu-toggle { display: none !important; }
}
@media (min-width: 1200px) { .header-cta { display: inline-flex; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* Sugestia języka */
.lang-suggest { background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.lang-suggest-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 10px; }
.lang-suggest p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9375rem; flex: 1 1 220px; }
.lang-suggest .icon-btn { width: 40px; height: 40px; }

/* Okruszki */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--color-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-secondary); }
.breadcrumbs [aria-current] { color: var(--color-text); font-weight: 500; display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 80px) clamp(32px, 5vw, 64px); background: var(--hero-glow); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1 / .82; max-width: 560px; width: 100%; margin-inline: auto; }
.g { position: absolute; display: block; }
.g-ribs {
  right: 12%; top: 0; width: 26%; height: 70%; border-radius: 14px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 2px, rgba(176,224,230,.35) 2px 12px, rgba(255,255,255,.15) 12px 16px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 20px 40px rgba(42,157,143,.12);
}
.g-sphere-lg {
  left: 10%; top: 4%; width: 54%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(214,240,240,.6) 45%, rgba(78,205,196,.28) 100%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset -10px -20px 40px rgba(42,157,143,.18), inset 10px 10px 30px rgba(255,255,255,.7), 0 30px 60px rgba(42,157,143,.15);
}
.g-rect {
  left: 34%; top: 40%; width: 40%; height: 36%; border-radius: var(--radius-lg);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.55); box-shadow: 0 8px 32px rgba(42,157,143,.18), inset 0 1px 0 rgba(255,255,255,.6);
}
.g-arch {
  right: 0; bottom: 14%; width: 30%; height: 34%;
  border: clamp(18px, 3.2vw, 30px) solid transparent; border-bottom: 0; border-radius: 200px 200px 0 0;
  background: linear-gradient(180deg, #8EC5F5, #3B7FD6) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
  filter: drop-shadow(0 14px 18px rgba(59,127,214,.3)); opacity: .92;
}
.g-sphere-sm {
  left: 8%; bottom: 14%; width: 17%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #B8EDE6 40%, #4ECDC4 100%);
  box-shadow: 0 18px 30px rgba(42,157,143,.25);
}
.g-sphere-sm.blue { background: radial-gradient(circle at 35% 30%, #fff, #B4D3F8 40%, #4A90D9 100%); }
.g-path { position: absolute; left: 4%; bottom: 6%; width: 62%; overflow: visible; }
.g-path path { stroke: var(--color-accent-strong); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 0; }
.g-path circle { fill: var(--color-surface); stroke: var(--color-accent-strong); stroke-width: 3; }
.hero-logo { position: absolute; left: 26%; top: 18%; width: 22%; height: auto; filter: drop-shadow(0 10px 20px rgba(42,100,160,.25)); }
.hero-bubble {
  position: absolute; right: 0; top: 10%; width: clamp(140px, 30%, 180px); aspect-ratio: 1; margin: 0;
  display: grid; place-content: center; padding: 22px; border-radius: 50%; text-align: left;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent); box-shadow: var(--shadow-md);
  font-size: .875rem; line-height: 1.45; color: var(--color-text);
}
.hero-bubble .icon { position: absolute; top: 22%; right: 22%; color: var(--color-muted); transform: rotate(-45deg); }
:root[data-theme="dark"] .g-ribs, :root[data-theme="dark"] .g-sphere-lg { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .g-ribs, :root:not([data-theme="light"]) .g-sphere-lg { opacity: .55; } }

@media (prefers-reduced-motion: no-preference) {
  .js .g-sphere-sm { animation: float 7s ease-in-out infinite; }
  .js .g-sphere-lg { animation: float 11s ease-in-out infinite reverse; }
  .js .g-path path { stroke-dashoffset: 520; animation: draw 2.2s .3s var(--ease) forwards; }
  .hero-art .g { transition: transform .6s var(--ease); }
  .hero-art:hover .g-arch { transform: scale(1.04) rotate(-2deg); }
}
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero-art { margin-inline: 0 0; }
}

/* ---------- Statystyki ---------- */
.stats-row {
  list-style: none; margin: 0; padding: 20px; display: grid; gap: 4px;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.stat { display: flex; align-items: center; gap: 14px; padding: 12px; }
.stat strong { display: block; font-size: 1.625rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.stat small { display: block; font-size: .8125rem; color: var(--color-muted); }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); padding: 28px 32px; }
  .stat + .stat { border-left: 1px solid var(--color-border); padding-left: 28px; }
}

/* ---------- Intro / sekcje ---------- */
.intro { text-align: center; max-width: 860px; padding-bottom: clamp(24px, 4vw, 56px); }
.intro .lead { margin-inline: auto; }
.section-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head .muted { margin: 0; }

/* Split: panel + filary */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-list a {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-md);
  color: var(--color-text); text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.feature-list a:hover { background: var(--color-surface); border-color: var(--color-border); }
.feature-list strong { display: block; font-weight: 600; }
.feature-list small { display: block; color: var(--color-muted); font-size: .875rem; }
.round-arrow { margin-left: auto; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-muted); transition: transform .2s, color .2s, border-color .2s; }
.feature-list a:hover .round-arrow { transform: translateX(3px); color: var(--color-secondary); border-color: var(--color-secondary); }

/* Panel (makieta dashboardu) */
.panel {
  margin: 0; display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  font-size: .8125rem;
}
.panel-side { display: none; }
.panel-main { padding: 20px; background: var(--color-surface-2); }
.panel-hello { font-size: 1.125rem; font-weight: 600; margin: 0; }
.panel-sub { color: var(--color-muted); margin: 0 0 16px; }
.panel-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.panel-card { background: var(--color-surface); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; align-content: start; }
.panel-label { font-weight: 600; }
.panel-small { color: var(--color-muted); }
.up { color: var(--color-success); font-weight: 600; }
.ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--color-accent) 0 75%, var(--color-border) 75% 100%); }
.ring span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--color-surface); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 14px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--color-accent) 55%, transparent); }
.bar em { font-style: normal; font-size: .6875rem; color: var(--color-muted); }
.b0 i { height: 35%; } .b1 i { height: 55%; } .b2 i { height: 42%; } .b3 i { height: 80%; background: var(--color-accent-strong); } .b4 i { height: 62%; } .b5 i { height: 30%; } .b6 i { height: 70%; }
.prog { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.prog i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--color-accent-strong) var(--w, 50%), var(--color-border) var(--w, 50%)); }
.prog .w80 { --w: 80%; } .prog .w60 { --w: 60%; } .prog .w45 { --w: 45%; }
.prog b { font-weight: 600; color: var(--color-muted); }
.step { display: flex; align-items: center; gap: 10px; }
.step small { display: block; color: var(--color-muted); font-size: .6875rem; }
@media (min-width: 560px) {
  .panel { grid-template-columns: 150px 1fr; }
  .panel-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--color-border); }
  .panel-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 14px; }
  .panel-nav { padding: 8px 10px; border-radius: 8px; color: var(--color-muted); }
  .panel-nav.is-active { background: var(--color-tag-bg); color: var(--color-secondary); font-weight: 600; }
  .panel-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Karty wpisów ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border)); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; color: var(--color-muted); }
.post-card-title { font-size: 1.1875rem; line-height: 1.35; margin: 0; }
.post-card-title a { color: var(--color-text); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.post-card .tag { position: relative; z-index: 1; }
.post-card-title a:focus-visible { outline: none; }
.post-card:has(.post-card-title a:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.post-card-body p { margin: 0; color: var(--color-muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--color-muted); }
.arrow-link { color: var(--color-secondary); transition: transform .2s; }
.post-card:hover .arrow-link { transform: translateX(4px); }
.img-placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--color-surface-2), var(--color-tag-bg)); }

/* Skeleton */
.skeleton { border-radius: var(--radius-md); background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface) 37%, var(--color-surface-2) 63%); background-size: 400% 100%; min-height: 360px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s ease infinite; } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Korzyści / wartości ---------- */
.benefit-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit .icon-circle { margin-bottom: 16px; }
.benefit p { margin: 0; color: var(--color-muted); font-size: .9375rem; }
.h2.center { margin-bottom: 36px; }

/* ---------- Newsletter ---------- */
.newsletter-band {
  display: grid; gap: 28px; align-items: center; padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%); box-shadow: var(--shadow-sm);
}
@media (min-width: 960px) { .newsletter-band { grid-template-columns: 1fr 1fr; gap: 48px; } }
.newsletter-band > *, .split > *, .hero-grid > *, .two-col > *, .founder > *, .contact-grid > *, .post-layout > *, .footer-grid > * { min-width: 0; }
.newsletter-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.nl-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .nl-row { grid-template-columns: 1fr 1fr; } }
.input-pill { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); }
.input-pill:focus-within { border-color: var(--color-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.input-pill input { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border: 0; background: transparent; outline: none; }
.input-pill .btn { flex: none; }
.nl-compact .btn { width: 44px; height: 44px; min-height: 44px; padding: 0; }
.form-status { margin: 0; font-size: .875rem; min-height: 1.2em; }
.form-status.ok { color: var(--color-success); }
.form-status.err { color: var(--color-error); }

/* ---------- Formularze ---------- */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.req { font-weight: 400; color: var(--color-muted); font-size: .8125rem; }
.field input, .field select, .field textarea, .filter-form input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent); }
[aria-invalid="true"] { border-color: var(--color-error) !important; }
.field-error { margin: 0; color: var(--color-error); font-size: .8125rem; font-weight: 500; }
.field-error::before { content: "⚠ "; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--color-muted); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-accent-strong); }
.check a { color: var(--color-secondary); }
.notice { padding: 12px 16px; border-radius: 12px; font-size: .9375rem; font-weight: 500; border: 1px solid; }
.notice.success { color: var(--color-success); border-color: currentColor; background: color-mix(in srgb, var(--color-success) 8%, transparent); }
.notice.error { color: var(--color-error); border-color: currentColor; background: color-mix(in srgb, var(--color-error) 8%, transparent); }
.notice.success::before { content: "✓ "; }
.notice.error::before { content: "⚠ "; }

/* ---------- CTA split ---------- */
.container.cta-split { padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container-width) - 2 * var(--gutter)); }
.cta-split { display: grid; margin-block: clamp(32px, 6vw, 64px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .cta-split { grid-template-columns: 1fr 1.25fr; } }
.cta-left { margin: 0; padding: clamp(28px, 5vw, 48px); background: var(--gradient-teal); color: #fff; }
.quote-mark { display: block; font-family: var(--font-serif); font-size: 4rem; line-height: .6; height: 32px; color: rgba(255,255,255,.75); }
.cta-left blockquote { margin: 12px 0 24px; }
.cta-left blockquote p { font-size: 1.1875rem; line-height: 1.5; color: #fff; }
.cta-left figcaption { display: flex; align-items: center; gap: 12px; }
.cta-left figcaption img { border-radius: 50%; background: rgba(255,255,255,.9); padding: 4px; }
.cta-left strong { display: block; }
.cta-left small { display: block; color: rgba(255,255,255,.85); }
.cta-right { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 48px); background: var(--color-surface-2); min-height: 300px; }
.cta-right .h2, .cta-right .kicker, .cta-right .btn { position: relative; z-index: 1; max-width: 420px; }
.cta-right .h2 em { display: inline; }
.cta-art { position: absolute; right: -20px; bottom: -10px; width: min(48%, 300px); aspect-ratio: 1; pointer-events: none; }
.g-disc { right: 10%; top: 10%; width: 80%; aspect-ratio: 1; border-radius: 50%; transform: rotate(-30deg) scaleY(.55);
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.9), rgba(160,225,220,.55) 55%, rgba(78,205,196,.35));
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 20px 40px rgba(42,157,143,.25); }
.g-ribs.sm { right: 0; top: 20%; width: 34%; height: 70%; }
.cta-art .g-sphere-sm { left: 18%; bottom: 8%; width: 26%; }
@media (max-width: 899.98px) { .cta-art { opacity: .5; } }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(32px, 6vw, 72px) clamp(16px, 3vw, 32px); }
.page-hero .lead { margin-bottom: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-size: .875rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--color-secondary); }
.chip[aria-current="page"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }

/* ---------- O nas ---------- */
.two-col { display: grid; gap: 40px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.mv-cards { display: grid; gap: 20px; }
.mv-cards .icon-circle { margin-bottom: 14px; }
.founder { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.photo-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--gradient-teal); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.photo-placeholder::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.15); }
.photo-placeholder img { width: 120px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); background: rgba(255,255,255,.92); border-radius: 50%; padding: 14px; }
.founder-role { color: var(--color-secondary); font-weight: 600; }
.cta-band { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.cta-band .muted { margin: 0; }

/* ---------- Usługi ---------- */
.service-list { display: grid; gap: 24px; padding-block: 24px; }
.service { scroll-margin-top: calc(var(--header-h) + 16px); display: grid; gap: 24px; }
.service-head { display: flex; gap: 18px; align-items: flex-start; }
.service-head p { margin: 0; color: var(--color-muted); }
.service-body { display: grid; gap: 24px; }
@media (min-width: 900px) { .service-body { grid-template-columns: repeat(3, 1fr); } }
.check-list, .dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .icon { flex: none; margin-top: 4px; color: var(--color-secondary); }
.dot-list li { position: relative; padding-left: 16px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent-strong); }
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }
.process p { margin: 0; color: var(--color-muted); }

/* ---------- Blog: filtry, paginacja ---------- */
.filter-form { display: grid; gap: 14px; align-items: end; padding: 18px; }
@media (min-width: 800px) { .filter-form { grid-template-columns: 1fr 200px 160px auto; } }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.input-icon input { padding-left: 42px; }
.results-count { font-family: var(--font-sans); font-size: .9375rem; font-weight: 500; color: var(--color-muted); margin-bottom: 20px; }
.empty { text-align: center; display: grid; gap: 12px; justify-items: center; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.pagination ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination ol a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); text-decoration: none; font-weight: 600; }
.pagination ol a[aria-current="page"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
[aria-busy="true"] .card-grid { opacity: .4; }

/* ---------- Wpis ---------- */
.post-header { max-width: 900px; padding-top: clamp(24px, 4vw, 48px); }
.post-title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; margin: 16px 0 16px; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: .875rem; }
.post-byline .avatar { border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-border); padding: 4px; }
.post-byline strong { display: block; }
.post-byline span { color: var(--color-muted); }
.read-other { margin-left: auto; }
.post-cover { max-width: 1140px; margin-block: 32px; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-md); }
.post-layout { display: grid; gap: 32px; max-width: 1140px; }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc details { padding: 18px 20px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.toc summary { cursor: pointer; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--color-border); color: var(--color-muted); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--color-secondary); border-left-color: var(--color-accent-strong); }
.toc .toc-l3 a { padding-left: 22px; font-size: .85rem; }
.post-main { min-width: 0; max-width: 720px; }

.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.625rem, 3vw, 2rem); letter-spacing: -.01em; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--color-accent-strong); }
.prose blockquote { margin-inline: 0; padding: 16px 22px; border-left: 4px solid var(--color-accent); background: var(--color-surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--color-surface-2); font-size: .9em; }
.prose pre { padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; background: #111827; color: #E5E7EB; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: left; }
.prose .callout { padding: 18px 20px; border-radius: var(--radius-md); background: var(--color-tag-bg); border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); }
.legal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; }
.legal h2:first-child { margin-top: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding-block: 20px; border-block: 1px solid var(--color-border); }
.share h2 { margin: 0; }
.share ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.read-other-inline { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

.comments { margin-top: 48px; display: grid; gap: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comment { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); }
.comment p { margin: 0; }
.comment-meta { font-size: .875rem; color: var(--color-muted); margin-bottom: 4px !important; }
.comment-meta strong { color: var(--color-text); }
.comment-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--icon-teal-bg); color: var(--icon-teal-fg); font-weight: 700; }

/* ---------- Zasoby ---------- */
.resource-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } }
.resource { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.resource p { margin: 0; color: var(--color-muted); font-size: .9375rem; }
.resource-top { display: flex; justify-content: space-between; align-items: center; }
.resource-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 0; padding: 12px 0; border-block: 1px solid var(--color-border); font-size: .8125rem; }
.resource-meta dt { color: var(--color-muted); }
.resource-meta dd { margin: 0; font-weight: 600; }
.resource-form { margin-top: auto; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.resource-form > .btn { justify-self: start; }
.seg { display: inline-flex; gap: 4px; margin: 0; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); justify-self: start; }
.seg label { position: relative; display: inline-grid; place-items: center; min-width: 48px; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 700; cursor: pointer; color: var(--color-muted); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--color-primary); color: var(--color-on-primary); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.resource-form .input-pill .btn span { display: none; }
@media (min-width: 420px) { .resource-form .input-pill .btn span { display: inline; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 24px; padding-block: 16px 24px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; } }
.form-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.info-item p { margin: 0; color: var(--color-muted); font-size: .9375rem; }
.info-item .h-sm { margin-bottom: 4px; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-list a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-text); background: var(--color-surface); }
.social-list a:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.faq-list { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { padding: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--color-border); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--color-muted); }

/* ---------- Status / 404 ---------- */
.status-page { padding-block: clamp(48px, 10vw, 120px); }
.status-page .lead { margin-inline: auto; margin-bottom: 28px; }
.big-404 { font-family: var(--font-serif); font-style: italic; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--color-accent-strong), var(--color-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search-404 { max-width: 480px; margin: 0 auto 24px; }

/* ---------- Stopka ---------- */
.site-footer { margin-top: clamp(32px, 6vw, 64px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.8fr; gap: 40px; } }
.footer-brand p { color: var(--color-muted); font-size: .9375rem; margin: 14px 0 18px; max-width: 36ch; }
.footer-col h2, .footer-news h2 { font-size: .875rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col a { display: inline-block; padding: 6px 0; color: var(--color-muted); text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: var(--color-secondary); text-decoration: underline; }
.footer-news p { color: var(--color-muted); font-size: .9375rem; }
.footer-news .check { font-size: .8125rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 40px; padding-block: 20px 28px; position: relative; font-size: .8125rem; color: var(--color-muted); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--color-border); }
.footer-bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; z-index: 300; right: 16px; bottom: 16px; left: 16px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 14px 16px;
  border-radius: 14px; background: var(--color-text); color: var(--color-background); box-shadow: var(--shadow-md); font-size: .9375rem;
}
.toast.err { background: var(--color-error); color: #fff; }
.toast button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: inherit; display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .35s var(--ease); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Animacje wejścia (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Szerokie ekrany / 4K ---------- */
@media (min-width: 1800px) { :root { --container-width: 1400px; } body { font-size: 1.0625rem; } }
@media (min-width: 2560px) { html { font-size: 125%; } }

/* ---------- Druk ---------- */
@media print {
  .site-header, .site-footer, .share, .comments, .toc, .newsletter-band, .reading-progress, .lang-suggest, .toast-region { display: none !important; }
  body { background: #fff; color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
