/* domaai blog v4 (18.11.2026): jasny nagłówek z agentami jak w aplikacji, wyszukiwarka, przyklejony pasek kategorii, karty z zaokrągloną okładką.
   Agenci: style .orb skopiowane z produkt-2026.css (blog go nie ładuje), ruch z orby-zywe.js i orby-plyn.js. */
@property --ciecie { syntax: "<percentage>"; inherits: false; initial-value: 260%; }
.orb {
  --c: 124, 92, 255;
  position: absolute; left: var(--x); top: var(--y); width: var(--s, 120px); height: var(--s, 120px);
  font-size: calc(var(--s, 120px) / 10);
  transform: translate(-50%, -50%);
}
.orb-cialo, .orb-obrot { position: absolute; inset: 0; display: block; }
.orb-cialo { will-change: transform; }
/* 12.10.2026: połysk i pierścień szkła rysuje shader (orby-plyn.js) i są wypalone w obrazach zapasowych, bez osobnej warstwy blasku */
.orb-kula { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* płyn w kuli jak w aplikacji (js/orby-plyn.js, WebGL); obraz kuli zostaje jako zapas do pierwszej klatki */
.orb-plyn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 50%; opacity: 0; transition: opacity .5s ease; }
.orb.plyn .orb-plyn { opacity: 1; }
.orb.plyn .orb-kula { opacity: 0; transition: opacity .5s ease; }
.orb-cien {
  position: absolute; left: 17%; right: 17%; top: 100.5%; height: 13%; border-radius: 50%;
  /* 12.10.2026: szklana kula — miękki cień kontaktowy, a w nim jasna kaustyka (światło skupione przez kulę,
     zabarwione szkłem agenta); same gradienty, bez filter */
  background: radial-gradient(34% 46% at 55% 45%, rgba(255, 255, 255, .5), rgba(var(--c), .32) 55%, rgba(var(--c), 0) 88%),
    radial-gradient(closest-side, rgba(14, 16, 34, .3), rgba(14, 16, 34, .12) 62%, rgba(14, 16, 34, 0));
  will-change: transform, opacity;
}
/* oczy: białe świecące pigułki 0,142 x 0,285 średnicy, rozstaw 0,085, środek 0,035 nad środkiem kuli */
.orb-oczy {
  position: absolute; left: 31.55%; top: 32.25%; width: 36.9%; height: 28.5%;
  display: flex; justify-content: space-between; will-change: transform;
  filter: drop-shadow(0 0 .1em rgba(255, 255, 255, .55)) drop-shadow(0 0 .45em rgba(var(--c), .75));
}
.orb-oczy i {
  position: relative; display: block; width: 38.48%; height: 100%; border-radius: 99em;
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--c)) 9%, #fff) 0%, #fdfdff 46%, color-mix(in srgb, rgb(var(--c)) 26%, #fff) 100%);
  box-shadow: inset 0 0 .07em .02em rgba(var(--c), .26), inset 0 -.12em .2em rgba(var(--c), .18);
  transform-origin: 50% 56%;
  /* radość: dół oka wycięty łukiem (oczy-łuki), --ciecie przejeżdża z 260% (nic) do 84% */
  -webkit-mask: radial-gradient(62% 42% at 50% var(--ciecie), transparent 96%, #000 100%);
          mask: radial-gradient(62% 42% at 50% var(--ciecie), transparent 96%, #000 100%);
  transition: --ciecie .26s cubic-bezier(.3, 1.3, .5, 1);
}
.orb-oczy i::after {
  content: ""; position: absolute; left: 22%; top: 12%; width: 22%; height: 32%; border-radius: 99em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0)); filter: blur(.01em);
}
/* Miny jak w aplikacji (MinaOczu): górna powieka (--gora), uśmiech oczami (--ciecie), skala i skos oka.
   Klasy mina-* ustawia js/orby-zywe.js; zmiany przelewają się sprężyście. */
@property --gora { syntax: "<number>"; inherits: false; initial-value: 0; }
.orb-oczy i {
  clip-path: inset(calc(var(--gora) * 100%) -20% -20% -20%);
  transition: --ciecie .3s cubic-bezier(.3, 1.3, .5, 1), --gora .32s cubic-bezier(.3, 1.25, .5, 1),
    scale .42s cubic-bezier(.3, 1.45, .5, 1), rotate .42s cubic-bezier(.3, 1.3, .5, 1);
}
.orb.mina-radosna .orb-oczy i { --ciecie: 84%; scale: 1.06; }
.orb.mina-glaskana .orb-oczy i { --ciecie: 80%; scale: 1.08 .92; }
.orb.mina-zadowolona .orb-oczy i { --ciecie: 98%; scale: .97; }
.orb.mina-zdziwiona .orb-oczy i:first-child { scale: 1.28; }
.orb.mina-zdziwiona .orb-oczy i:last-child { scale: 1.12; }
.orb.mina-mysli .orb-oczy i { --gora: .18; scale: .95; }
.orb.mina-mysli .orb-oczy i:first-child { rotate: -8deg; }
.orb.mina-mysli .orb-oczy i:last-child { rotate: 8deg; }
.orb.mina-senna .orb-oczy i:first-child { --gora: .52; }
.orb.mina-senna .orb-oczy i:last-child { --gora: .58; }
.orb.mina-oczko .orb-oczy i:first-child { scale: 1.05; }
.orb.mina-oczko .orb-oczy i:last-child { --ciecie: 60%; scale: 1 .5; }
/* rumieńce przy radości i głaskaniu: miękkie różowe owale pod oczami */
.orb-oczy::before, .orb-oczy::after {
  content: ""; position: absolute; top: 82%; width: 58%; height: 28%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 112, 156, .95), rgba(255, 112, 156, 0));
  opacity: 0; scale: .55; transition: opacity .5s ease, scale .55s cubic-bezier(.3, 1.45, .5, 1);
}
.orb-oczy::before { left: -34%; }
.orb-oczy::after { right: -34%; }
.orb.rumience .orb-oczy::before, .orb.rumience .orb-oczy::after { opacity: .85; scale: 1; }
.orb.glass.rumience .orb-oczy::before, .orb.glass.rumience .orb-oczy::after { opacity: .95; }
/* serduszko nad orbem (głaskanie, stuknięcie) */
.orb-serce { position: absolute; bottom: 86%; width: clamp(12px, 24%, 26px); aspect-ratio: 1; pointer-events: none; z-index: 2; }
.orb-serce svg { display: block; width: 100%; height: 100%; fill: #ff5f93; filter: drop-shadow(0 2px 4px rgba(255, 79, 154, .45)); }
/* głębia: dalsze orby mniejsze, rozmyte i przygaszone, bez cienia */
.orb.far { opacity: .78; filter: blur(1.5px) saturate(.9); }
.orb.dal { opacity: .58; filter: blur(3px) saturate(.85); }
.orb.far .orb-cien, .orb.dal .orb-cien { display: none; }
@media (prefers-reduced-motion: reduce) { .orb-oczy i { transition: none; } }

/* ── nagłówek ── */
html body.bl4 { background: #fbfbfa; }
html body.bl4 .bl-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); }
html body.bl4 .bl-hero-w { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
html body.bl4 .bl-hero h1 { margin: 0; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; color: #0c0c0f; text-wrap: balance; }
html body.bl4 .bl-hero h1 .dim { color: #9a99a0; }
html body.bl4 .bl-lead { margin: 22px 0 0; max-width: 34em; font-size: 17.5px; line-height: 1.6; color: #4c4b52; }
html body.bl4 .bl-szukaj { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 28px; padding: 0 8px 0 18px; height: 56px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px #e9e8e4, 0 18px 40px -28px rgba(30, 24, 60, .35); transition: box-shadow .25s; }
html body.bl4 .bl-szukaj:focus-within { box-shadow: 0 0 0 2px #0c0c0f, 0 18px 40px -28px rgba(30, 24, 60, .45); }
html body.bl4 .bl-szukaj svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8a8990; stroke-width: 2; stroke-linecap: round; }
html body.bl4 .bl-szukaj input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: #0c0c0f; }
html body.bl4 .bl-scena { position: relative; aspect-ratio: 1.2; border-radius: 36px; overflow: hidden; clip-path: inset(0 round 36px); isolation: isolate; background: #eef0fb; }
html body.bl4 .bl-pl { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1.2; border-radius: 50%; filter: blur(48px); opacity: .85; will-change: transform; animation: bl-plyn 22s ease-in-out infinite alternate; }
html body.bl4 .bl-pl1 { left: -20%; top: -20%; background: #b9a6ff; }
html body.bl4 .bl-pl2 { right: -25%; top: 10%; background: #9fc4ff; animation-duration: 27s; animation-delay: -6s; }
html body.bl4 .bl-pl3 { left: 10%; bottom: -35%; background: #ffc4d6; animation-duration: 31s; animation-delay: -12s; }
@keyframes bl-plyn { 50% { transform: translate(14%, 10%) scale(1.12); } 100% { transform: translate(-8%, 14%) scale(.94); } }
html body.bl4 .bl-o { position: absolute; display: block; container-type: inline-size; }
html body.bl4 .bl-o .orb { --s: 100cqi; left: 50%; top: 50%; font-size: 10cqi; pointer-events: auto; }
html body.bl4 .bl-o1 { left: 36%; top: 22%; width: 30%; aspect-ratio: 1; }
html body.bl4 .bl-o2 { left: 12%; top: 58%; width: 17%; aspect-ratio: 1; }
html body.bl4 .bl-o3 { left: 70%; top: 50%; width: 20%; aspect-ratio: 1; }
html body.bl4 .bl-o4 { left: 76%; top: 12%; width: 11%; aspect-ratio: 1; }
html body.bl4 .bl-ks { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 18px; background: #fff; box-shadow: 0 16px 34px -20px rgba(30, 20, 70, .4); font-size: 13px; color: #8a8990; }
html body.bl4 .bl-ks b { font-size: 15px; color: #0c0c0f; font-weight: 600; }
html body.bl4 .bl-ks1 { left: 6%; top: 10%; }
html body.bl4 .bl-ks2 { right: 6%; bottom: 8%; }

/* ── wyróżniony wpis ── */
html body.bl4 .blog-list .featured { grid-template-columns: 1.15fr .85fr; gap: 0; padding: 10px; border: 0; border-radius: 32px; background: #fff; box-shadow: 0 1px 2px rgba(20, 18, 30, .04), 0 24px 60px -36px rgba(30, 24, 60, .28); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s; }
html body.bl4 .blog-list .featured:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20, 18, 30, .04), 0 34px 70px -36px rgba(30, 24, 60, .38); }
html body.bl4 .blog-list .featured .post-art { border: 0; border-radius: 24px; overflow: hidden; min-height: 360px; }
html body.bl4 .blog-list .featured h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.035em; }

/* ── pasek kategorii, przyklejony pod nawigacją ── */
html body.bl4 .filter-row { position: sticky; top: calc(var(--nav-h, 64px) + 8px); z-index: 5; margin: clamp(40px, 5vw, 56px) -8px 22px; padding: 8px; border-radius: 99px; background: rgba(251, 251, 250, .92); }
html body.bl4 .tabs { display: flex; gap: 6px; padding: 0; border: 0; background: none; box-shadow: none; }
html body.bl4 .tabs button { height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #e9e8e4; color: #4c4b52; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
html body.bl4 .tabs button:hover { color: #0c0c0f; box-shadow: inset 0 0 0 1px #cfcdc8; }
html body.bl4 .tabs button[aria-selected="true"] { background: #0c0c0f; color: #fff; box-shadow: none; }
html body.bl4 .filter-row .count { padding-right: 10px; }

/* ── siatka wpisów ── */
html body.bl4 .posts { gap: 18px; }
html body.bl4 .posts a.post { padding: 8px; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 1px 2px rgba(20, 18, 30, .04), 0 20px 50px -38px rgba(30, 24, 60, .35); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .35s; }
html body.bl4 .posts a.post:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 18, 30, .04), 0 30px 60px -34px rgba(30, 24, 60, .45); }
html body.bl4 .posts .post-art { border: 0; border-radius: 19px; overflow: hidden; }
html body.bl4 .posts .post-body { padding: 16px 12px 12px; gap: 8px; }
html body.bl4 .posts h3 { font-size: 1.12rem; line-height: 1.28; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
html body.bl4 .posts p { font-size: 14.5px; line-height: 1.5; color: #6a6970; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html body.bl4 .post-meta { display: flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12.5px; color: #8a8990; }
html body.bl4 .post-meta span:first-child { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 99px; background: #f3f2ef; color: #4c4b52; font-weight: 500; }
html body.bl4 .post-meta span:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kk, #8a8990); }
html body.bl4 [data-cat="Agenci SI"] { --kk: #7c5cff; }
html body.bl4 [data-cat="Pierwsze kroki"] { --kk: #ff6b4a; }
html body.bl4 [data-cat="Poradnik"] { --kk: #f2a93b; }
html body.bl4 [data-cat="Funkcje"] { --kk: #1faf6e; }
html body.bl4 [data-cat="Zastosowania"] { --kk: #ff4f9a; }
html body.bl4 [data-cat="Biznes"] { --kk: #13b5c8; }
html body.bl4 [data-cat="Bezpieczeństwo"] { --kk: #4f7dff; }
html body.bl4 [data-cat="Technologia"] { --kk: #2c2a6b; }
html body.bl4 [data-cat="Porównanie"] { --kk: #b455f5; }
html body.bl4 .bl-pusto { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: #8a8990; }

/* ── newsletter ── */
html body.bl4 .nl-band { background: none; }
html body.bl4 .nl { padding: clamp(24px, 3vw, 36px); border-radius: 32px; background: linear-gradient(120deg, #efeafe, #e6f0ff 50%, #fde9f1); }

/* ── ciemny motyw ── */
html[data-theme="dark"] body.bl4 { background: #111113; }
html[data-theme="dark"] body.bl4 .bl-hero h1 { color: #f4f4f5; }
html[data-theme="dark"] body.bl4 .bl-lead { color: #b4b4bb; }
html[data-theme="dark"] body.bl4 .bl-szukaj, html[data-theme="dark"] body.bl4 .posts a.post, html[data-theme="dark"] body.bl4 .blog-list .featured, html[data-theme="dark"] body.bl4 .tabs button { background: #18181b; box-shadow: 0 0 0 1px #2a2a30; color: #d4d4d8; }
html[data-theme="dark"] body.bl4 .bl-szukaj input { color: #f4f4f5; }
html[data-theme="dark"] body.bl4 .tabs button[aria-selected="true"] { background: #f4f4f5; color: #111; }
html[data-theme="dark"] body.bl4 .filter-row { background: rgba(17, 17, 19, .92); }
html[data-theme="dark"] body.bl4 .bl-scena { background: #1b1a26; }
html[data-theme="dark"] body.bl4 .post-meta span:first-child { background: #222226; color: #d4d4d8; }
html[data-theme="dark"] body.bl4 .posts p { color: #9d9da5; }
html[data-theme="dark"] body.bl4 .nl { background: linear-gradient(120deg, #1f1a33, #18213a 50%, #2a1824); }

@media (max-width: 900px) {
  html body.bl4 .bl-hero-w { grid-template-columns: 1fr; }
  html body.bl4 .bl-scena { aspect-ratio: 1.6; }
  html body.bl4 .blog-list .featured { grid-template-columns: 1fr; }
  html body.bl4 .blog-list .featured .post-art { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  html body.bl4 .bl-scena { border-radius: 26px; clip-path: inset(0 round 26px); }
  html body.bl4 .bl-ks { padding: 8px 12px; font-size: 11.5px; } html body.bl4 .bl-ks b { font-size: 13px; }
  html body.bl4 .filter-row { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { html body.bl4 .bl-pl { animation: none; } }
html body.bl4 .filter-row .count { font-family: inherit; font-size: 13px; }
