/* czcionka u siebie, bez Google Fonts */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/schibsted-grotesk-latin.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; }
/* bez dziedziczenia: zmiana przy przewijaniu nie przelicza całego hero */
@property --dim { syntax: "<number>"; inherits: false; initial-value: 0; }
/* Wspólne style makiet (strona główna, profil prawnika, EN). Tylko podgląd, nie produkcja. */
:root {
  /* kolor oberżyna #3F1D45 (decyzja 2026-11-03), jasny akcent z paragrafu w logo */
  --bg: oklch(0.99 0.002 320);
  --surface: oklch(0.965 0.004 320);
  --ink: oklch(0.19 0.012 320);
  --ink-muted: oklch(0.46 0.015 320);
  --line: oklch(0.88 0.006 320);
  --accent: #3F1D45;
  --lav: #DCCDDF;
  --on-accent: oklch(0.985 0.004 320);
  --dark: #27102B;
  --ph: oklch(0.88 0.003 320);
  --ph-shape: oklch(0.74 0.003 320);

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4.5vw, 88px);
  --header-h: 112px;
  --space-2: 8px; --space-3: 12px; --space-4: 20px; --space-5: 32px;
  --space-6: 52px; --space-7: 84px; --space-8: 136px;
  --radius-sm: 4px; --radius-md: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-muted); }
/* znaczniki robocze widać tylko z ?znaczniki w adresie; na stronie publicznej są ukryte */
html:not(.znaczniki) .todo { display: none; }
.todo { background: oklch(0.95 0.06 95); color: var(--ink); padding: 0 4px; border-radius: 3px; font-size: 0.85em; font-weight: 400; letter-spacing: 0; text-transform: none; }
.wrap { padding-inline: var(--gutter); }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); border-radius: var(--radius-md); background: transparent; color: var(--ink);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.btn .arr { transition: transform 300ms var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { transform: translateY(-2px); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* nagłówek (wzór: kancelariamroz.pl): logo z lewej, menu na środku, flaga z prawej.
   Nagłówek przejmuje kolor sekcji, która jest pod nim (klasy z JS): nad hero przezroczysty, .scrolled na jasnych sekcjach, .scrolled.on-dark na ciemnych; na profilu od razu .solid.
   Zmienia się tylko kolor, logo bierze go z tekstu, więc przechodzi razem z tłem i menu. */
.top {
  --top-bg: var(--bg);
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5);
  min-height: var(--header-h); padding-inline: var(--gutter);
  color: var(--on-accent);
  transition: background-color 350ms var(--ease-out);
}
.top.scrolled, .top.solid { background: var(--top-bg); }
.top.on-dark { --top-bg: var(--dark); }
/* miękkie wyjście spod nagłówka zamiast ostrej krawędzi nad treścią */
.top::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 28px; background: linear-gradient(to bottom, var(--top-bg), transparent); opacity: 0; pointer-events: none; transition: opacity 350ms var(--ease-out); }
.top.scrolled::after, .top.solid::after { opacity: 1; }
.top-logo { justify-self: start; display: inline-flex; text-decoration: none; color: var(--on-accent); transition: color 350ms var(--ease-out); }
.top.scrolled .top-logo, .top.solid .top-logo { color: var(--accent); }
.top.on-dark .top-logo { color: var(--on-accent); }
/* logo w nagłówku i stopce: „MP” i „PRAWNICY” to maski z pełnego logo (raster roboczy, po akceptacji wektor) */
.lockup { --u: 1px; display: inline-flex; align-items: center; gap: calc(14 * var(--u)); }
.lk-mp, .lk-pr { display: block; flex: none; background: currentColor; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.lk-mp { --m: url("logo/maska-mp.webp"); height: calc(50 * var(--u)); aspect-ratio: 781 / 312; }
.lk-pr { --m: url("logo/maska-prawnicy.webp"); width: calc(173 * var(--u)); aspect-ratio: 1093 / 107; }
.lk-rule { flex: none; width: 1px; height: calc(46 * var(--u)); background: currentColor; opacity: 0.55; }
.lk-col { display: grid; justify-items: start; gap: calc(8 * var(--u)); }
.lk-tx { font-size: calc(13 * var(--u)); font-weight: 500; line-height: 1; white-space: nowrap; }
.top nav { justify-self: center; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 14px 20px; text-decoration: none; color: var(--on-accent);
  font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 1px 12px oklch(0.1 0.01 320 / 0.55);
  transition: color 300ms var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.top.scrolled .nav a, .top.solid .nav a { color: var(--accent); text-shadow: 0 1px 12px transparent; }
.top.on-dark .nav a { color: var(--on-accent); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 18px; }
/* przełącznik na wersję angielską: okrągła flaga */
.lang-flag {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px oklch(1 0 0 / 0.85); transition: transform 400ms var(--ease-out), box-shadow 350ms var(--ease-out);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover { transform: scale(1.08); }
.top.scrolled .lang-flag, .top.solid .lang-flag { box-shadow: 0 0 0 2px var(--line); }
.top.on-dark .lang-flag { box-shadow: 0 0 0 2px oklch(1 0 0 / 0.85); }


/* hero: pełnoekranowe czarno-białe zdjęcie, nazwa z boku, CTA pod nazwą */
.hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden; isolation: isolate;
  min-height: 88svh;
  display: grid; align-items: center;
  color: var(--on-accent); background: var(--dark);
}
/* zdjęcia tymczasowe z Figmy (AI) przenikają się do czasu wyboru jednego; potem zdjęcie z sesji */
.hero-photos { position: absolute; inset: 0; z-index: -2; background: var(--dark); }
.hero-photo {
  position: absolute; inset: 0; opacity: 0;
  background: center / cover no-repeat;
  transform-origin: 70% 50%;
  /* powolny najazd tylko na widocznym zdjęciu, reszta nie pracuje */
  transition: opacity 1600ms var(--ease-out), transform 8s linear;
}
.hero-photo.on { opacity: 1; transform: scale(1.06) translateX(-1.2%); }
/* hero schowane pod treścią: przeglądarka go nie maluje */
.hero.gone { visibility: hidden; }
/* przy przewijaniu hero przygasa (--dim z JS), a portrety nachodzą na nie od dołu */
.hero::before { --dim: inherit; content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); opacity: calc(var(--dim, 0) * 0.75); }
.hero-text { opacity: calc(1 - var(--dim, 0) * 1.4); transform: translateY(calc(var(--dim, 0) * -60px)); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 65% 60% at 85% 85%, oklch(0.12 0.01 320 / 0.82), transparent 72%),
    linear-gradient(0deg, oklch(0.12 0.01 320 / 0.6) 0%, transparent 45%),
    linear-gradient(180deg, oklch(0.12 0.01 320 / 0.7) 0%, oklch(0.12 0.01 320 / 0.3) 14%, transparent 26%),
    linear-gradient(90deg, oklch(0.12 0.01 320 / 0.7) 0%, oklch(0.12 0.01 320 / 0.25) 45%, transparent 75%);
}
/* podpis slajdu: zwykły tekst w kroju strony, bez tła; czytelność daje przyciemnienie zdjęcia w prawym dolnym rogu */
.hero-cap {
  position: absolute; right: calc(var(--gutter) + 40px); bottom: calc(var(--space-7) + 28px); z-index: 2;
  display: grid; gap: 14px; width: min(860px, 50vw);
  color: var(--on-accent); text-decoration: none; text-shadow: 0 1px 18px oklch(0.1 0.01 320 / 0.7);
  opacity: 0; visibility: hidden; translate: 0 10px;
  transition: opacity 800ms var(--ease-out), translate 800ms var(--ease-out), visibility 0s linear 800ms;
}
.hero-cap.on { opacity: calc(1 - var(--dim, 0) * 1.4); visibility: visible; translate: 0 0; transition-delay: 300ms, 300ms, 0s; }
.hero-cap strong { font-size: clamp(2.5rem, 4.6vw, 5.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.hero-cap .cap-q { font-size: clamp(1.125rem, 1.45vw, 1.5rem); line-height: 1.4; color: oklch(0.88 0.004 320); }
.hero-cap .cap-go { justify-self: start; margin-top: 6px; font-size: 1.125rem; font-weight: 500; color: oklch(0.92 0.004 320); border-bottom: 1px solid oklch(1 0 0 / 0.4); transition: border-color 300ms var(--ease-out); }
.hero-cap:hover .cap-go { border-color: var(--on-accent); }
.hero-cap .cap-go span { display: inline-block; transition: transform 300ms var(--ease-out); }
.hero-cap:hover .cap-go span { transform: translateX(4px); }

/* przełącznik zdjęć (wzór: kancelariamroz.pl): jasne wcięcie przy prawej krawędzi, strzałki i numer */
.hero-pager {
  --r: 24px;
  position: absolute; right: 0; top: 50%; translate: 0 -50%; z-index: 2;
  display: flex; align-items: center; gap: 4px; padding: 12px 14px 12px 18px;
  background: var(--bg); color: var(--ink); border-radius: 44px 0 0 44px;
}
.hero-pager::before, .hero-pager::after { content: ""; position: absolute; right: 0; width: var(--r); height: var(--r); pointer-events: none; }
.hero-pager::before { bottom: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--r) - 0.5px), var(--bg) var(--r)); }
.hero-pager::after { top: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - 0.5px), var(--bg) var(--r)); }
.hero-pager b { min-width: 2.2ch; text-align: center; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-pager button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; transition: background-color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.hero-pager button:hover { background: var(--surface); }
.hero-pager .prev:hover { transform: translateX(-2px); }
.hero-pager .next:hover { transform: translateX(2px); }
.hero-text { padding: calc(var(--header-h) + var(--space-6)) var(--gutter) var(--space-8); }
/* logo w hero: plik z paragrafem w tle; przyciski pod spodem, wszystko na jednej osi */
.hero-brand { display: grid; justify-items: center; width: max-content; max-width: 100%; }
.hero-brand.rise { animation-name: rise-t; }
.hero h1.hero-logo { margin: 0; line-height: 0; }
.hero-logo-img { display: block; height: auto; width: min(36vw, 62svh, 560px); }
.hero-brand .actions { justify-content: center; }
.hero h1 { font-size: clamp(3.25rem, 9vw, 9.5rem); letter-spacing: -0.05em; line-height: 0.92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.hero .actions { align-items: center; gap: 36px; margin-top: var(--space-6); }
.hero .btn-main { min-height: 58px; padding: 8px 8px 8px 30px; gap: 16px; border-radius: 999px; background: var(--on-accent); border-color: var(--on-accent); color: var(--ink); font-weight: 600; }
.hero .btn-main:hover { background: var(--lav); border-color: var(--lav); }
/* strzałka w kółku, stale delikatnie się porusza */
.hero .btn-main .arr, .menu-end .btn .arr { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: arr-nudge 1.5s ease-in-out infinite; }
@keyframes arr-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }
.cta-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--on-accent); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1.5px no-repeat;
  transition: background-size 400ms var(--ease-out);
}
.cta-link:hover { background-size: 0 1.5px; background-position: 100% calc(100% - 8px); }
.scroll {
  position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.9 0.004 320);
}
.scroll .mouse { position: relative; width: 22px; height: 34px; border: 1.5px solid oklch(1 0 0 / 0.75); border-radius: 12px; }
.scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--on-accent); animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }

/* wejście hero */
.rise { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
/* nagłówek hero bez zanikania: opacity 0 opóźniałoby LCP i chowało nazwę, gdy animacje stoją */
.hero h1.rise { animation-name: rise-t; }
@keyframes rise-t { from { transform: translateY(22px); } }

/* zespół: przeplatanka, zdjęcie i tekst na zmianę; portret czarno-biały po najechaniu, panel po kliknięciu */
:where(main > section:not(.hero)) { position: relative; z-index: 1; background: var(--bg); }
/* kotwice z menu nie chowają się pod stałym nagłówkiem */
section[id], details[id] { scroll-margin-top: calc(var(--header-h) - 12px); }
/* karta z portretami: zaokrąglona ze wszystkich stron, równo odsunięta od obu krawędzi */
.hero + section { margin: -28px 12px 0; border-radius: 28px; box-shadow: 0 -30px 60px -34px oklch(0.1 0.01 320 / 0.7); }
.people { padding-block: var(--space-7) var(--space-8); }
/* nagłówek zespołu wypełnia pasek pod hero, portrety zaczynają się dopiero po przewinięciu */
.people:has(.team-head) { padding-top: 0; }
.team-head { display: grid; justify-items: center; gap: var(--space-3); padding-top: var(--space-6); margin-bottom: var(--space-7); text-align: center; }
/* nagłówki sekcji: duże, jedno słowo w kolorze */
.team-head h2, .cases-head h2, .about-head h2 { letter-spacing: -0.045em; line-height: 0.98; }
.team-head h2, .cases-head h2, .about-head h2 { font-size: clamp(2.75rem, 6vw, 6.5rem); }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.cases-head h2 em, .c-top h1 em { color: var(--lav); }
.sec-lead { max-width: 58ch; margin-inline: auto; font-size: clamp(1.0625rem, 1.3vw, 1.3125rem); color: var(--ink-muted); }
.people-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); margin-bottom: var(--space-6); }
.people-head h2 { font-size: clamp(2rem, 4vw, 3.75rem); margin-top: var(--space-3); }
.people-head p.note { max-width: 42ch; color: var(--ink-muted); }
/* przeplatanka: zdjęcie i tekst na zmianę, spięte linią biegnącą od portretu do portretu */
.team-rows { --tm-row: clamp(96px, 10vw, 176px); --tm-col: clamp(40px, 5vw, 112px); --tm-r: clamp(20px, 1.8vw, 32px); position: relative; isolation: isolate; display: grid; gap: var(--tm-row); max-width: clamp(1360px, 62vw, 1900px); margin-inline: auto; }
.tm { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--tm-col); align-items: center; }
.tm:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.tm:nth-child(even) .tm-photo { order: 2; }
/* linia: od środka tego portretu do środka następnego, pod zdjęciami */
.tm:not(:last-child)::after {
  content: ""; position: absolute; z-index: -1; top: calc(100% - 40px); height: calc(var(--tm-row) + 80px);
  left: calc((100% - var(--tm-col)) * 5 / 22); right: calc((100% - var(--tm-col)) * 5 / 22);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C0 62 100 38 100 100' fill='none' stroke='%23244A55' stroke-opacity='.28' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0; transition: opacity 1000ms var(--ease-out) 300ms;
}
.tm:nth-child(even):not(:last-child)::after { transform: scaleX(-1); }
.tm.in::after { opacity: 1; }
/* wejście: zdjęcie wsuwa się od swojej krawędzi, tekst dochodzi z opóźnieniem, linia po linii */
.tm.reveal { opacity: 1; transform: none; }
.tm .tm-photo { --from: -28px; opacity: 0; transform: translateX(var(--from)); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
.tm:nth-child(even) .tm-photo { --from: 28px; }
.tm-text > * { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.tm-text > :nth-child(2) { transition-delay: 70ms; }
.tm-text > :nth-child(3) { transition-delay: 140ms; }
.tm-text > :nth-child(4) { transition-delay: 210ms; }
.tm-text > :nth-child(5) { transition-delay: 280ms; }
.tm-text > :nth-child(6) { transition-delay: 350ms; }
.tm-text > :nth-child(7) { transition-delay: 420ms; }
.tm.in .tm-photo, .tm.in .tm-text > * { opacity: 1; transform: none; }
.tm-photo { display: block; border-radius: var(--tm-r); }
.tm .photo { border-radius: var(--tm-r); }
.tm-text h3 { margin-top: var(--space-3); font-size: clamp(2.25rem, 3.8vw, 3.75rem); letter-spacing: -0.04em; }
.tm-sub { margin-top: var(--space-3); max-width: 52ch; color: var(--ink-muted); font-size: 1.125rem; }
.tm-q { margin: var(--space-5) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.tm-q li { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.tm-q b { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tm-q p { margin-top: 6px; color: var(--ink-muted); max-width: 58ch; }
.tm-reg { margin-top: var(--space-4); font-size: 0.9375rem; color: var(--ink-muted); }
.tm-reg b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-reg a { margin-left: 6px; color: var(--accent); font-weight: 600; }
.tm-reg a.reg-num { margin-left: 0; text-decoration: none; border-bottom: 1px dotted currentColor; }
.reg-num b { color: inherit; }
.reg-hint { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-muted); }

.tm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--space-4); }
.tm-cta { margin-top: var(--space-4); }
.tm-cta .btn { border-color: var(--accent); border-radius: 999px; color: var(--accent); font-weight: 600; }
.tm-cta .btn:hover { background: var(--accent); color: var(--on-accent); }
.photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm);
  /* placeholder: sylwetka; zdjęcie w kolorze, czarno-białe po najechaniu */
  background:
    radial-gradient(circle at 50% 40%, var(--ph-shape) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 46% 30% at 50% 100%, var(--ph-shape) 0 98%, transparent 100%),
    var(--ph);
  transition: filter 600ms var(--ease-out);
}
/* w makiecie placeholder dostaje odcień, żeby było widać przejście w kolor */
.tm .photo { --ph: oklch(0.9 0.018 320); --ph-shape: oklch(0.7 0.035 320); }
.tm-photo:hover .photo, .tm-photo:focus-visible .photo { filter: grayscale(1); }
/* prawdziwe zdjęcie w ramce: kadr od głowy */
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
/* stale widoczne zaproszenie do profilu na zdjęciu */
.photo-hint {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  box-shadow: 0 10px 24px -14px oklch(0.1 0.01 320 / 0.7);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.photo-hint .arr { transition: transform 300ms var(--ease-out); }
.tm-photo:hover .photo-hint, .tm-photo:focus-visible .photo-hint { background: var(--accent); color: var(--on-accent); }
.tm-photo:hover .photo-hint .arr, .tm-photo:focus-visible .photo-hint .arr { transform: translateX(4px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* blok specjalizacji na profilu: pierwsze, co widać po wejściu */
.focus { margin-top: var(--space-4); padding: clamp(22px, 2.6vw, 44px); border-radius: clamp(20px, 2vw, 34px); background: var(--dark); color: var(--on-accent); }
.focus-k { font-size: clamp(0.9375rem, 1.1vw, 1.125rem); font-weight: 600; color: var(--lav); }
.focus-list { display: grid; gap: 0.18em; list-style: none; margin: var(--space-3) 0 0; padding: 0; font-size: clamp(1.625rem, 3vw, 3.125rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; }
.focus-trait { margin-top: var(--space-4); padding-top: var(--space-3); max-width: 62ch; border-top: 1px solid oklch(1 0 0 / 0.2); font-size: clamp(1.0625rem, 1.3vw, 1.3125rem); line-height: 1.4; color: oklch(0.92 0.012 320); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 500;
  transition: border-color 300ms var(--ease-out), background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
/* adres e-mail z przyciskiem kopiowania */
.mail-wrap { display: inline-flex; align-items: center; max-width: 100%; vertical-align: middle; }
.tm-actions .mail-wrap .chip { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.copy-mail { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-muted); cursor: pointer; transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out); }
.copy-mail:hover { background: var(--surface); color: var(--accent); }
.copy-mail svg { grid-area: 1 / 1; transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms var(--ease-out); }
.copy-mail .i-ok { opacity: 0; transform: scale(0.4); color: var(--accent); }
.copy-mail.done .i-copy { opacity: 0; transform: scale(0.4); }
.copy-mail.done .i-ok { opacity: 1; transform: none; }
.chip.main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.main:hover { background: var(--ink); border-color: var(--ink); }
.reg-card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: var(--space-4);
  padding: 16px 20px; border-radius: 14px; background: var(--surface);
}
.reg-card b { font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reg-card .reg-c { color: var(--ink-muted); font-size: 0.9375rem; }
.reg-card a { margin-left: auto; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.reg-card a:hover { text-decoration: underline; }
.reg-card a.reg-num { margin-left: 0; color: inherit; }
.reg-card .reg-hint { flex-basis: 100%; margin-top: 0; text-align: right; }

/* sprawy: pełnoszerokie wiersze na tle zdjęcia */
.cases { position: relative; overflow: hidden; background: var(--dark); color: var(--on-accent); }
.cases-inner { position: relative; padding-block: var(--space-8) var(--space-7); }
.cases-head { display: flex; justify-content: center; text-align: center; padding-inline: var(--gutter); margin-bottom: var(--space-6); }
.cases-head h2 { margin-top: var(--space-3); }
.cases-head .sec-lead { margin-top: var(--space-4); color: oklch(0.86 0.008 320); }
.cases-head .label { color: oklch(0.78 0.01 320); }
/* karty spraw 4:5, po 3 w rzędzie: kolorowe zdjęcie tematu z białym napisem, po najechaniu zdjęcie czarno-białe; niepełny rząd wyśrodkowany */
.case-grid { --cols: 4; --g: clamp(12px, 1.2vw, 20px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(1680px + 2 * var(--gutter)); }
.case-grid > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--g)) / var(--cols)); min-width: 0; }
/* 4 w rzędzie, żeby 19 spraw nie ciągnęło się tak długo (decyzja 2026-11-27) */
@media (max-width: 1360px) { .case-grid { --cols: 3; } }
@media (max-width: 1100px) { .case-grid { --cols: 2; } }
.scard {
  --r: clamp(20px, 1.8vw, 32px);
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5);
  height: 100%; min-height: fit-content; aspect-ratio: 4 / 5; padding: clamp(18px, 1.5vw, 28px); overflow: hidden;
  color: var(--on-accent); text-decoration: none; border: 1px solid transparent; border-radius: var(--r); background: var(--accent);
  transition: border-color 400ms var(--ease-out);
}
.scard-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.07); transition: filter 350ms var(--ease-out), transform 800ms var(--ease-out); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(0.14 0.02 320 / 0.92) 0%, oklch(0.14 0.02 320 / 0.72) 42%, oklch(0.14 0.02 320 / 0.1) 75%, oklch(0.14 0.02 320 / 0.3) 100%); }
.scard-top { display: flex; justify-content: space-between; align-items: center; }
.scard .n { font-size: 0.9375rem; color: var(--on-accent); font-variant-numeric: tabular-nums; }
.scard .go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid oklch(1 0 0 / 0.7); font-size: 1.125rem; transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 400ms var(--ease-out); }
.scard-body { display: grid; gap: 10px; }
.scard h3 { font-size: clamp(1.375rem, 1.7vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.scard-short { color: var(--on-accent); font-size: clamp(0.9375rem, 1vw, 1.0625rem); line-height: 1.4; }
.scard-who { display: grid; justify-items: start; gap: 8px; margin-top: 10px; font-size: 0.875rem; color: var(--on-accent); }
.avas { position: relative; display: flex; }
.ava { position: relative; display: grid; place-items: center; width: var(--ava, 64px); height: var(--ava, 64px); overflow: hidden; border-radius: 50%; background: var(--lav); color: var(--accent); font-size: 1rem; font-weight: 700; box-shadow: 0 0 0 3px var(--accent); transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.ava + .ava { margin-left: calc(var(--ava, 64px) * -0.22); }
.ava:hover { z-index: 9 !important; transform: translateY(-9px) scale(1.06); } /* !important: nadpisuje kolejność nakładania ustawioną w atrybucie style */
.scard:hover .ava, .scard:focus-visible .ava { box-shadow: 0 0 0 3px oklch(0.2 0.02 320); }
.ava-tip { position: absolute; left: 0; bottom: calc(100% + 16px); z-index: 10; padding: 6px 12px; border-radius: 8px; background: var(--on-accent); color: var(--ink); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(calc(var(--x, 0px) - 50%)) translateY(6px); transition: transform 350ms var(--ease-out), opacity 200ms var(--ease-out); }
.ava-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.tip-on .ava-tip { opacity: 1; transform: translateX(calc(var(--x, 0px) - 50%)) translateY(0); }
/* kwadratowy kadr twarzy z sesji, w małym kółku lekko przybliżony */
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.4); transform-origin: 50% 40%; }
.scard:hover, .scard:focus-visible { border-color: oklch(1 0 0 / 0.4); }
.scard:hover .scard-photo, .scard:focus-visible .scard-photo { filter: grayscale(1); transform: scale(1); }
.scard:hover .go, .scard:focus-visible .go { background: var(--on-accent); border-color: var(--on-accent); color: var(--ink); transform: translateX(3px); }
/* rozwijane wiersze z zakresem prac; pozostałe przygasają przy najechaniu */
:root { interpolate-size: allow-keywords; }

/* o nas: nagłówek na lewej osi, szerokie zdjęcie, tekst w dwóch kolumnach */
.about { padding-block: var(--space-8) var(--space-7); scroll-margin-top: 12px; }
.about-in { max-width: clamp(1360px, 62vw, 1900px); margin-inline: auto; }
.about-head h2 { margin-top: var(--space-3); }
.about-photo { aspect-ratio: 21 / 9; margin-top: var(--space-6); overflow: hidden; border-radius: clamp(24px, 2.8vw, 44px); background: color-mix(in oklch, var(--lav) 42%, var(--surface)); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.about-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); margin-top: var(--space-6); }
.about-lead { align-self: start; position: sticky; top: 120px; font-size: clamp(1.375rem, 2.2vw, 2.125rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22; color: var(--accent); }
.about-body p { max-width: 60ch; margin: 0; font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.65; }
/* cztery numerowane punkty zamiast ściany tekstu */
.about-card { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 8px; padding-block: clamp(20px, 2vw, 28px); border-top: 1px solid color-mix(in oklch, var(--accent) 20%, transparent); }
.about-card:first-child { border-top: 0; padding-top: 0; }
.about-num { grid-row: span 2; padding-top: 0.35em; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); opacity: 0.6; }
.about-card h3 { margin: 0 0 8px; font-size: clamp(1.1875rem, 1.45vw, 1.4375rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--accent); }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: var(--space-4); padding-left: calc(3.25rem + 8px); }
.about-cta .btn { border-radius: 999px; }
.about-cta .cta-link { color: var(--accent); }

/* FAQ w tej samej karcie co formularz: pytanie dużym tekstem, kafelki z kółkiem jak przy wyborze tematu */
.faq { padding-block: var(--space-7) var(--space-8); }
.faq-card { width: min(100%, 1160px); margin-inline: auto; padding: clamp(24px, 4.4vw, 72px); border: 1px solid var(--line); border-radius: clamp(24px, 2.8vw, 44px); background: var(--bg); box-shadow: 0 40px 80px -56px oklch(0.25 0.03 320 / 0.55); }
.faq-kicker { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-muted); }
.faq-q { margin-top: var(--space-4); font-size: clamp(1.875rem, 3.4vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.06; }
/* w środku rozmowa: pytanie w dymku z lewej, odpowiedź w kolorze z prawej, otwarta jedna naraz (details name) */
.faq-list { display: grid; gap: 12px; margin-top: var(--space-5); interpolate-size: allow-keywords; }
.faq summary {
  width: fit-content; max-width: 85%; padding: 14px 22px; border-radius: 24px 24px 24px 8px; cursor: pointer; list-style: none;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
  background: color-mix(in oklch, var(--lav) 42%, var(--surface));
  transition: background-color 250ms var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open]:not(.faq-closing) summary { background: var(--lav); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* wysokość animuje skrypt (działa też w Safari), tu tylko wejście i wyjście wiadomości */
.faq-a { display: flex; justify-content: flex-end; align-items: flex-end; gap: 12px; padding-block: 12px 8px; }
.faq details[open]:not(.faq-closing) .faq-a p { animation: faq-in 420ms cubic-bezier(0.3, 1.25, 0.5, 1) 40ms backwards; }
.faq details[open]:not(.faq-closing) .faq-ava { animation: faq-ava-in 320ms cubic-bezier(0.3, 1.4, 0.5, 1) 120ms backwards; }
.faq-closing .faq-a p, .faq-closing .faq-ava { opacity: 0; transform: translateY(6px) scale(0.98); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.faq-a p { max-width: min(85%, 62ch); padding: 18px 24px; border-radius: 24px 24px 8px 24px; background: var(--accent); color: var(--on-accent); font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.5; transform-origin: 100% 100%; }
.faq-ava { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--lav); }
.faq-ava::before { content: ""; position: absolute; inset: 13px 8px; background: var(--accent); -webkit-mask: url("logo/maska-mp.webp") center / contain no-repeat; mask: url("logo/maska-mp.webp") center / contain no-repeat; }
@keyframes faq-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } }
@keyframes faq-ava-in { from { opacity: 0; transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) {
  .hero-photo { transition: opacity 1ms; }
  .hero-photo.on { transform: none; }
  .faq details[open]:not(.faq-closing) .faq-a p, .faq details[open]:not(.faq-closing) .faq-ava { animation: none; }
}

/* kontakt */
.contact { background: var(--surface); padding-block: var(--space-7) var(--space-8); }
.contact-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-5); margin-bottom: var(--space-6); }
.contact-head h2 { font-size: clamp(2.25rem, 4vw, 4.25rem); margin-top: var(--space-3); }
/* kontakt: duże kółka na wspólnej linii, pod nimi telefon i e-mail */
.contact-people { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; row-gap: var(--space-6); list-style: none; margin: 0 0 var(--space-7); padding: 0; }
.contact-people.few { --cols: 3; max-width: 1180px; margin-inline: auto; }
.cp { flex: 0 0 calc(100% / var(--cols)); min-width: 0; display: grid; align-content: start; justify-items: center; text-align: center; }
.cp-line { position: relative; display: flex; justify-content: center; width: 100%; padding-inline: clamp(14px, 1.6vw, 30px); }
.cp-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in oklch, var(--accent) 28%, var(--surface)); }
.cp-disc { position: relative; display: block; width: min(100%, 320px); aspect-ratio: 1; border: 3px solid var(--accent); border-radius: 50%; }
.cp-disc::before, .cp-disc::after { content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--accent); }
.cp-disc::before { left: -7px; }
.cp-disc::after { right: -7px; }
.cp-img { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--ph); }
.cp-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: filter 500ms var(--ease-out); }
.cp-disc:hover .cp-img img, .cp-disc:focus-visible .cp-img img { filter: grayscale(1); }
.cp h3 { margin-top: var(--space-4); font-size: clamp(1.25rem, 1.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.cp-role { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-muted); }
.cp-tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: clamp(1.125rem, 1.3vw, 1.3125rem); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); text-decoration: none; }
.cp-tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.cp .mail-wrap { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding-inline: 8px; font-size: 0.9375rem; line-height: 1.3; }
.cp .mail-wrap a { min-width: 0; text-decoration: none; }
.cp .mail-wrap a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1200px) { .contact-people { --cols: 3; } }

/* formularz: najpierw wybór osoby, potem dane; wiadomość idzie wprost do niej */
/* formularz w dużej zaokrąglonej karcie (wzór: Questionnaire z animate-ui) */
.contact-form { width: min(100%, 1160px); margin: var(--space-7) auto 0; padding: clamp(24px, 4.4vw, 72px); border: 1px solid var(--line); border-radius: clamp(24px, 2.8vw, 44px); background: var(--bg); box-shadow: 0 40px 80px -56px oklch(0.25 0.03 320 / 0.55); }
.contact-form h3 { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-muted); }
.form-warn { margin-top: var(--space-4); max-width: 66ch; font-size: 1.0625rem; }
/* formularz krok po kroku */
.wz-progress { display: grid; gap: 10px; margin-top: var(--space-3); }
.wz-bar { display: block; height: 6px; overflow: hidden; border-radius: 4px; background: var(--line); }
.wz-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(calc(var(--p, 1) / 3)); transform-origin: left; transition: transform 450ms var(--ease-out); }
.wz-view { margin: var(--space-6) -4px 0; padding: 4px; overflow: hidden; transition: height 350ms var(--ease-out); }
.wz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wz-step legend { padding: 0; margin-bottom: var(--space-5); font-size: clamp(1.875rem, 3.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; outline: none; }
.wz-step legend + .todo { display: inline-block; margin-bottom: var(--space-4); }
.wz-step, .wz-done { transition: opacity 170ms ease-out, translate 170ms ease-out; }
.wz-out { opacity: 0; translate: calc(var(--dir, 1) * -24px) 0; }
.wz-in { animation: wz-in 380ms var(--ease-out); }
@keyframes wz-in { from { opacity: 0; translate: calc(var(--dir, 1) * 32px) 0; } }
.wz-sum { display: flex; flex-wrap: wrap; gap: 4px 28px; color: var(--ink-muted); font-size: 1.0625rem; }
.wz-sum b { color: var(--ink); font-weight: 600; }
.wz-err { min-height: 1.5em; margin-top: var(--space-3); color: oklch(0.45 0.16 25); font-weight: 600; }
.wz-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--space-3); }
.wz-nav .btn { min-height: 60px; padding-inline: 32px; border-radius: 999px; font-size: 1.125rem; }
.wz-nav .wz-next, .wz-nav .wz-send { margin-left: auto; }
.wz-nav .wz-back:hover .arr { transform: translateX(-4px); }
.wz-done { padding: var(--space-4) 0; outline: none; }
.wz-done p { max-width: 30ch; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.wz-done .btn { margin-top: var(--space-4); border-radius: 999px; }
[hidden] { display: none !important; } /* !important: .btn i inne bloki mają własne display */
.field.bad input, .field.bad textarea { border-color: oklch(0.5 0.17 25); box-shadow: inset 0 0 0 1px oklch(0.5 0.17 25); }
.rcpt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.rcpt { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 16px 20px 16px 60px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; transition: border-color 250ms var(--ease-out), background-color 250ms var(--ease-out); }
.rcpt:hover { border-color: var(--ink); }
.rcpt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in oklch, var(--accent) 6%, var(--bg)); }
.rcpt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.rcpt input { appearance: none; position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; border: 1.5px solid oklch(0.62 0.01 320); border-radius: 50%; background: var(--bg); transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.rcpt input:checked { border-color: var(--accent); box-shadow: inset 0 0 0 6px var(--accent); }
.rcpt b { display: block; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.rcpt-p { flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; min-height: 104px; }
.rcpt-p .ava { --ava: 68px; flex: none; box-shadow: none; }
.rcpt-p .ava:hover { transform: none; }
.rcpt small { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.wz-step .field { font-size: 1.0625rem; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid oklch(0.62 0.01 320); border-radius: var(--radius-sm); }
.field textarea { resize: vertical; }
.wz-step .field input, .wz-step .field textarea { min-height: 62px; padding: 16px 18px; font-size: 1.125rem; border-radius: 16px; }
.wz-step .field input:focus-visible, .wz-step .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-rodo { display: flex; gap: 14px; margin-top: var(--space-5); max-width: 78ch; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.form-rodo input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }

/* powiadomienie po wysłaniu: u góry na środku, duże: oberżyna przy sukcesie, czerwień przy błędzie */
.toast-host { position: fixed; top: calc(var(--header-h) + 12px); left: 0; right: 0; z-index: 40; display: grid; justify-items: center; padding-inline: 16px; pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; width: min(100%, 640px); padding: 16px; border-radius: 28px; background: var(--dark); color: var(--on-accent); box-shadow: 0 30px 60px -28px oklch(0.15 0.03 320 / 0.75); animation: toast-in 450ms var(--ease-out); transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out); }
.toast.out { opacity: 0; translate: 0 -14px; }
.toast-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; animation: toast-pop 500ms var(--ease-out); }
.toast-ico svg { width: 30px; height: 30px; }
.toast-ok .toast-ico { background: var(--lav); color: var(--accent); }
.toast-bad .toast-ico { background: oklch(0.56 0.19 25); color: oklch(0.99 0.004 25); }
.toast-txt b { display: block; font-size: clamp(1.1875rem, 1.5vw, 1.375rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.toast-txt p { margin-top: 4px; font-size: 1rem; line-height: 1.4; color: oklch(0.86 0.01 320); }
.toast-x { display: grid; place-items: center; align-self: start; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 400 1.5rem/1 var(--font); cursor: pointer; transition: background-color 200ms var(--ease-out); }
.toast-x:hover { background: oklch(1 0 0 / 0.14); }
.toast-x:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 2px; }
@keyframes toast-in { from { opacity: 0; translate: 0 -22px; scale: 0.97; } }
@keyframes toast-pop { from { scale: 0.5; } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast-ico { animation: none; }
  .toast { transition: none; }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* stopka: mała; logo i linki w jednym rzędzie, autor strony na środku */
.foot { position: relative; z-index: 1; background: var(--dark); color: oklch(0.8 0.008 320); padding-block: var(--space-6) var(--space-3); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); }
.foot-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-accent); text-decoration: none; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: center; margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid oklch(1 0 0 / 0.12); }
.made-by { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: oklch(0.86 0.008 320); text-decoration: none; font-size: clamp(1rem, 1.2vw, 1.125rem); }
.made-by img { display: block; height: clamp(30px, 2.6vw, 38px); width: auto; opacity: 0.9; transition: opacity 300ms var(--ease-out); }
.made-by:hover img { opacity: 1; }

/* wejścia sekcji przy przewijaniu */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* karty spraw na telefonie: pasek przewinięcia jak w formularzu */
.case-bar { height: 6px; margin: var(--space-4) var(--gutter) 0; overflow: hidden; border-radius: 4px; background: oklch(1 0 0 / 0.18); }
.case-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lav); transform: scaleX(0.2); transform-origin: left; transition: transform 180ms var(--ease-out); }
/* menu na telefonie */
.menu-btn { display: none; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: var(--on-accent); cursor: pointer; transition: color 350ms var(--ease-out); }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.top.scrolled .menu-btn, .top.solid .menu-btn { color: var(--accent); }
.top.on-dark .menu-btn { color: var(--on-accent); }
.menu-sheet { position: fixed; inset: 0; isolation: isolate; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 10px var(--gutter) var(--space-5); overflow: auto; border: 0; background: var(--dark); color: var(--on-accent); opacity: 0; transition: opacity 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete; }
.menu-sheet[open] { display: flex; flex-direction: column; opacity: 1; }
@starting-style { .menu-sheet[open] { opacity: 0; } }
html:has(.menu-sheet[open]) { overflow: hidden; }
/* paragraf z logo w tle, powoli się porusza */
/* paragraf 3D: warstwy jedna za drugą dają bryłę, ciemniejsze w głąb */
.menu-mark { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; overflow: hidden; perspective: 900px; pointer-events: none; }
.menu-mark-3d { display: grid; font: 400 min(104vw, 62svh) / 1 Georgia, "Times New Roman", serif; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-32deg); }
.menu-mark-3d i { grid-area: 1 / 1; font-style: normal; color: color-mix(in oklch, oklch(0.42 0.06 320), oklch(0.27 0.05 320) calc(var(--d) * 5%)); transform: translateZ(calc(var(--d) * -2.4px)); }
.menu-mark-3d i:first-child { color: oklch(0.5 0.06 320); }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.menu-top .lockup { --u: 0.68px; }
.menu-top .top-logo { color: var(--on-accent); }
.menu-sheet nav { flex: 1; display: grid; place-items: center; padding-block: var(--space-4); }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-sheet li, .menu-end { animation: menu-in 550ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
.menu-sheet li a { position: relative; display: inline-flex; align-items: center; min-height: 68px; font-size: clamp(2.25rem, 11vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; text-decoration: none; }
.menu-sheet li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--lav); transform: scaleX(0); transition: transform 350ms var(--ease-out); }
.menu-sheet li a:hover::after, .menu-sheet li a:focus-visible::after, .menu-sheet li a:active::after { transform: scaleX(1); }
@keyframes menu-in { from { opacity: 0; transform: translateY(20px); } }
.menu-end { display: grid; justify-items: center; gap: 10px; }
.menu-end .btn { min-height: 58px; padding: 8px 8px 8px 28px; gap: 16px; border-radius: 999px; background: var(--on-accent); border-color: var(--on-accent); color: var(--ink); font-weight: 600; }
.menu-lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; color: oklch(0.86 0.01 320); font-weight: 600; text-decoration: none; }
.menu-close { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: 400 1.5rem/1 var(--font); cursor: pointer; transition: transform 400ms var(--ease-out); }
.menu-close:hover { transform: rotate(90deg); }
/* powrót na początek: kółko z logo, delikatnie podskakuje */
.to-top { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 25; display: grid; place-items: center; align-content: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--lav), 0 16px 30px -12px oklch(0.2 0.04 320 / 0.7); cursor: pointer; opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out), visibility 300ms; }
.to-top.show { opacity: 1; visibility: visible; translate: 0 0; animation: to-top-hop 1.5s infinite; }
.to-top:hover, .to-top:focus-visible { animation: none; }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.to-top svg { width: 30px; height: 30px; }
/* ciągły bounce: u dołu lekko się spłaszcza, w górę zwalnia */
@keyframes to-top-hop {
  0%, 100% { transform: translateY(0) scale(1.05, 0.95); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  50% { transform: translateY(-12px) scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .to-top.show, .hero .btn-main .arr, .menu-end .btn .arr, .menu-sheet li, .menu-end { animation: none; }  .case-bar i { transition: none; }
}

@media (max-width: 1320px) {
  .nav a { padding: 12px 12px; font-size: 1.125rem; }
  .nav a::after { left: 12px; right: 12px; }
  .top .lockup { --u: 0.9px; }
  .hero-cap { width: 40vw; }
}

@media (max-width: 1100px) {
  .avas { --ava: 50px; }
  .nav a { padding: 10px 10px; font-size: 1rem; }
  .nav a::after { left: 10px; right: 10px; }
  .top .lockup { --u: 0.8px; }
  .nav a { white-space: nowrap; }
  /* obok logo i przycisków brakuje miejsca na duży podpis */
  .hero-cap { display: none; }
}

/* wąski tablet: przy pełnym menu dopisek zawodu nie mieści się w czytelnym rozmiarze */
@media (max-width: 900px) {
  .about-lead { position: static; }
  .about-card { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .about-cta { padding-left: 0; }
  .top .lockup { --u: 0.7px; }
  .top .lk-tx { display: none; }
  .nav a { padding: 10px 6px; font-size: 0.9375rem; }
  .nav a::after { left: 6px; right: 6px; }
}

/* telefon: osobny układ */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .top nav { display: none; }
  .top { grid-template-columns: 1fr auto auto; column-gap: 8px; }
  .top .lockup { --u: 0.68px; }
  .menu-btn { display: grid; }
  .top .lk-tx { display: block; }
  .hero-logo-img { width: min(78vw, 42svh); }
  .lang-flag { width: 38px; height: 38px; }
  .hero { min-height: 100svh; }
  .hero::after { background: linear-gradient(0deg, oklch(0.12 0.01 320 / 0.85) 0%, oklch(0.12 0.01 320 / 0.3) 60%, transparent 100%); }
  /* dół zostaje na opis slajdu */
  .hero-text { padding-block: calc(var(--header-h) + var(--space-6)) 210px; }
  .hero-pager { top: calc(var(--header-h) + 16px); translate: none; padding: 6px 6px 6px 10px; --r: 18px; }
  .hero-pager b { font-size: 1.375rem; }
  .hero-pager button { width: 40px; height: 40px; }
  .hero .actions { flex-direction: column; gap: 12px; }
  .hero .actions .cta-link { flex: 0 0 auto; }
  /* opis slajdu pod przyciskiem; kadr każdego zdjęcia ustawiony na to, co ma być widać */
  .hero-cap { display: grid; left: var(--gutter); right: var(--gutter); bottom: calc(var(--space-4) + 24px); gap: 6px; width: auto; justify-items: center; text-align: center; }
  .hero-cap strong { font-size: 1.5rem; }
  .hero-cap .cap-q { font-size: 1rem; line-height: 1.35; }
  .hero-cap .cap-go { display: none; }
  .hero-photo[style*="hero-1-"] { background-position: 78% center; }
  .hero-photo[style*="hero-8-"] { background-position: 62% center; }
  .hero-photo[style*="hero-7-"] { background-position: 70% center; }
  .hero-photo[style*="hero-9-"] { background-position: 91% center; }
  .hero-photo[style*="hero-10-"] { background-position: 80% center; }
  .hero-brand { width: 100%; }
  .hero-brand .actions { width: 100%; }
  .scroll { display: none; }
  .hero + section { margin: -20px 8px 0; border-radius: 20px; }
  .people { padding-block: var(--space-6) var(--space-7); }
  .people-head { flex-direction: column; align-items: start; }
  .tm, .tm:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .tm-actions .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .tm .tm-photo, .tm:nth-child(even) .tm-photo { --from: 0px; transform: translateY(14px); }
  .tm:nth-child(even) .tm-photo { order: 0; }
  .tm-q li { padding: var(--space-3) 0; }
  .form-grid { grid-template-columns: 1fr; }
  .rcpt-list { grid-template-columns: 1fr; }
  .tm:not(:last-child)::after { display: none; }
  .cases-inner { padding-block: var(--space-7) var(--space-6); }
  .cases-head { margin-bottom: var(--space-5); }
  .cases-head h2 { font-size: min(11.4vw, 2.75rem); }
  .cases-head .sec-lead { margin-top: var(--space-3); text-wrap: balance; }
  /* telefon: karty przesuwane palcem, następna wystaje przy krawędzi */
  .case-grid { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 4px; }
  .case-grid::-webkit-scrollbar { display: none; }
  .case-grid > li { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
  .scard { aspect-ratio: 9 / 16; }
  .avas { --ava: 60px; }
  /* panel osoby: mały portret w całości obok nazwiska, główną rolę gra treść */
  .reg-card a { margin-left: 0; }
  .reg-card .reg-hint { text-align: left; }
  .contact-head { flex-direction: column; align-items: start; }
  .contact-people, .contact-people.few { --cols: 1; }
  .cp-line::before, .cp-disc::before, .cp-disc::after { display: none; }
  .cp-disc { width: min(62vw, 240px); }
  .foot-row { flex-direction: column; align-items: start; }
  /* kółko powrotu stoi przy prawej krawędzi, więc podpis z lewej */
  .foot-bottom { justify-content: flex-start; }
  .about { padding-block: var(--space-7) var(--space-6); }
  .about-photo { aspect-ratio: 16 / 9; }
  .faq summary { max-width: 94%; }
  .faq-a p { max-width: none; padding: 14px 18px; }
  .faq-ava { width: 34px; height: 34px; }
  .faq-ava::before { inset: 10px 6px; }
  .toast-host { top: calc(var(--header-h) + 18px); padding-inline: 10px; }
  .toast { gap: 12px; padding: 12px; border-radius: 22px; }
  .toast-ico { width: 46px; height: 46px; border-radius: 14px; align-self: start; }
  .toast-ico svg { width: 24px; height: 24px; }
  .about-text { grid-template-columns: minmax(0, 1fr); }
  .faq { padding-block: var(--space-7); }
}

@media (prefers-reduced-motion: reduce) {
  .top, .top::after, .top-logo, .nav a { transition-duration: 1ms; }
  html { scroll-behavior: auto; }
  .rise, .hero-photo, .scroll .mouse::after { animation: none; }
  .hero-photo { transition: none; }
  .reveal, .tm .tm-photo, .tm-text > *, .tm:not(:last-child)::after { opacity: 1; transform: none; transition: none; }
  .scard-photo, .scard::after, .scard .go { transition: opacity 200ms linear; transform: none; }
  .ava, .ava-tip, .copy-mail svg { transition: opacity 150ms linear; }
  .wz-in { animation: none; }
  .wz-view, .wz-bar i { transition: none; }
  .ava:hover { transform: none; }
  .scard:hover .scard-photo, .scard:focus-visible .scard-photo, .scard:hover .go, .scard:focus-visible .go { transform: none; }
  .tm:nth-child(even):not(:last-child)::after { transform: scaleX(-1); }
  *, *::before, *::after { transition-duration: 0.01ms !important; } /* !important: wygrywa z przejściami z każdego selektora */
}

/* blog: sekcja na stronie głównej, lista wpisów i wpis */
.blog-home { padding-block: var(--space-7); }
#blog-home { width: min(100%, 1560px); margin-inline: auto; }
.bl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.bl-head h1, .bl-head h2 { margin-top: var(--space-3); max-width: 18ch; font-size: clamp(2.75rem, 6vw, 6.5rem); letter-spacing: -0.045em; line-height: 0.98; }
.bl-head em { font-style: normal; color: var(--accent); }
.bl-head .sec-lead { margin: var(--space-4) 0 0; max-width: 56ch; text-align: left; }
.bl-head .cta-link { color: var(--accent); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); margin-top: var(--space-6); }
.bl-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-5); }
.bl-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.bl-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(18px, 1.6vw, 28px); background: var(--surface); }
.bl-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.bl-link:hover .bl-img img, .bl-link:focus-visible .bl-img img { transform: scale(1.04); }
.bl-txt { display: block; padding-top: var(--space-4); }
.bl-card h3 { margin-top: var(--space-2); font-size: clamp(1.375rem, 1.7vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.12; }
.bl-link:hover h3 { color: var(--accent); }
.bl-lead { display: block; margin-top: var(--space-3); color: var(--ink-muted); line-height: 1.45; }
.bl-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--space-4); font-size: 0.9375rem; font-weight: 500; }
.bl-by .avas { --ava: 44px; }
.bl-by .ava, .bl-side-who .ava { box-shadow: none; }
.bl-link .ava:hover { transform: none; }
.bl-page { padding-block: calc(var(--header-h) + var(--space-6)) var(--space-8); }
.bl-page > *, .bl-post > * { width: min(100%, 1560px); margin-inline: auto; }
.bl-note { margin-top: var(--space-4); }
.bl-card.big { margin-top: var(--space-5); }
.bl-card.big .bl-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.bl-card.big .bl-txt { padding-top: 0; }
.bl-card.big h3 { font-size: clamp(1.875rem, 3.2vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.04; }
.bl-card.big .bl-lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.bl-post { padding-block: calc(var(--header-h) + var(--space-5)) var(--space-8); }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9375rem; color: var(--ink-muted); }
.bl-crumbs a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; }
.bl-post-head h1 { max-width: 20ch; margin-top: var(--space-4); font-size: clamp(2.5rem, 5.4vw, 5.5rem); letter-spacing: -0.045em; line-height: 1; }
.bl-post-lead { max-width: 62ch; margin-top: var(--space-4); font-size: clamp(1.1875rem, 1.7vw, 1.625rem); line-height: 1.35; letter-spacing: -0.012em; }
.bl-figure { margin-block: var(--space-6) 0; aspect-ratio: 16 / 7; overflow: hidden; border-radius: clamp(20px, 2vw, 34px); background: var(--surface); }
.bl-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; gap: clamp(32px, 7vw, 136px); margin-top: var(--space-6); }
.bl-body { max-width: 72ch; font-size: 1.125rem; line-height: 1.6; }
.bl-body > h2, .bl-faq h2, .bl-more h2 { margin-top: var(--space-6); font-size: clamp(1.625rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.12; }
.bl-body > h2:first-child { margin-top: 0; }
.bl-body > p { margin-top: var(--space-3); }
.bl-body > ul { margin: var(--space-3) 0 0; padding-left: 1.2em; }
.bl-body > ul li + li { margin-top: 6px; }
.bl-body > ul li::marker { color: var(--accent); }
.bl-faq { padding-block: 0; }
.bl-faq summary { max-width: 100%; }
.bl-clause { margin-top: var(--space-5); padding: 18px 22px; border-radius: 18px; background: var(--surface); color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.5; }
.bl-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--space-3); padding: clamp(20px, 2vw, 32px); border: 1px solid var(--line); border-radius: clamp(20px, 2vw, 32px); }
.bl-side-who { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.bl-side-who .avas { --ava: 72px; flex: none; }
.bl-side-who b { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.bl-side-who small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 0.9375rem; }
.bl-side .btn { justify-content: space-between; border-radius: 999px; }
.bl-side-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.bl-side-link:hover { text-decoration: underline; }
.bl-more { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.bl-more h2 { margin-top: 0; }
@media (max-width: 1100px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-post-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-side { position: static; order: 2; max-width: 560px; }
}
@media (max-width: 760px) {
  .blog-home { padding-block: var(--space-6); }
  .bl-head h1, .bl-head h2 { font-size: min(12vw, 2.75rem); }
  .bl-grid, .bl-grid.two { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-5); }
  .bl-card.big .bl-link { display: block; }
  .bl-card.big .bl-txt { padding-top: var(--space-4); }
  .bl-page { padding-block: calc(var(--header-h) + var(--space-5)) var(--space-7); }
  .bl-post { padding-block: calc(var(--header-h) + var(--space-4)) var(--space-7); }
  .bl-post-head h1 { font-size: min(10.5vw, 2.5rem); }
  .bl-figure { aspect-ratio: 16 / 10; margin-top: var(--space-5); }
  .bl-body { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-img img { transition: none; }
}

/* zajawka publikacji na blogu: typograficzna okładka zamiast zdjęcia i karta z cytowaniem */
.bl-pubcover { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2vw, 32px); background: var(--accent); color: var(--on-accent); }
.bl-pubcover .label { color: var(--lav); }
.bl-pubwhere { max-width: 22ch; font-size: clamp(1.25rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.bl-pubyear { font-size: clamp(2.5rem, 4.4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.bl-link:hover .bl-pubcover, .bl-link:focus-visible .bl-pubcover { background: var(--dark); }
.bl-pubcover { transition: background-color 300ms var(--ease-out); }
.bl-cite { display: grid; justify-items: start; gap: var(--space-3); margin-top: var(--space-6); padding: clamp(24px, 3vw, 48px); border-radius: clamp(20px, 2vw, 34px); background: var(--surface); }
.bl-cite-t { max-width: 48ch; font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.bl-cite-w { color: var(--ink-muted); }
.bl-cite .btn { border-radius: 999px; }

/* zgoda na cookies: karta w lewym dolnym rogu, na telefonie niski pasek na dole; obie odpowiedzi wyglądają tak samo */
.zgoda { position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 1000; border: 1px solid oklch(1 0 0 / 0.16); width: min(440px, calc(100vw - 24px)); padding: 22px 24px 20px; border-radius: 24px; background: var(--dark); color: var(--on-accent); box-shadow: 0 18px 48px -18px oklch(0.2 0.05 320 / 0.55); animation: zgoda-in 400ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both; }
.zgoda h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: inherit; }
.zgoda p { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.5; color: oklch(0.9 0.01 320); }
.zgoda a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.zgoda-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.zgoda-btn { min-height: 44px; padding: 10px 14px; border: 1px solid oklch(1 0 0 / 0.55); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 200ms, color 200ms; }
.zgoda-btn:hover, .zgoda-btn:focus-visible { background: var(--on-accent); color: var(--dark); }
.zgoda-btn:focus-visible, .zgoda a:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
.foot-zgoda { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot-zgoda:hover { text-decoration: underline; }
@keyframes zgoda-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 560px) {
  .zgoda { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 16px 16px 14px; border-radius: 20px; }
  .zgoda p { font-size: 0.8125rem; }
  .zgoda-btns { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .zgoda { animation: none; } }

/* pole-pułapka na boty w formularzach: niewidoczne i niedostępne dla ludzi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
