/* ==========================================================================
   Kreowid – kreowid.pl (v4, jasna)
   Plain CSS, mobile-first. Light pages, graphite text, one red accent, Lato type.
   Layout language borrowed from kopfundstift.de: centred section heads with
   a ruled kicker, two-tone headings, zig-zag blocks, tick lists, dark footer.
   ========================================================================== */

/* ---------- Fonts: Lato 2.0 Medium and Semibold, the two weights kopfundstift.de sets its
   text and headings in (self-hosted, SIL OFL). 400 falls back to Medium, 700 to Semibold. */
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/fonts/lato-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens */
:root {
  /* Brand palette */
  --papier: #ffffff;
  --lod-jasny: #f2f6f6;      /* alternate section background */
  --lod: #dce8e9;            /* ice grey: shapes, borders, text on graphite */
  --grafit: #172226;         /* text, footer, dark bands */
  --grafit-2: #1f2d32;       /* raised surface on graphite */
  --czerwony: #c81f20;       /* red on light backgrounds (5.9:1 on white) */
  --czerwony-hover: #a8191a;
  --sygnal: #f32b2c;         /* red on graphite, large text and shapes only */
  --sygnal-hover: #dc2324;
  --szary: #4e6266;          /* secondary text on light (6.3:1 on white) */
  --szary-na-grafit: #9db0b3;/* secondary text on graphite (7.2:1) */
  --ok: #1d7a4a;

  /* Type */
  --font-head: "Lato", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing (8px rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Shape */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 28px;
  --shadow-frame: 0 24px 48px -24px rgba(23, 34, 38, 0.35), 0 2px 6px rgba(23, 34, 38, 0.08);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 72px;
  --bottombar-h: 0px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;

  /* z-index scale */
  --z-bottombar: 40;
  --z-header: 50;
  --z-consent: 70;
  --z-skip: 100;

  /* Theme (light is the default; .on-dark flips these) */
  --bg: var(--papier);
  --fg: var(--grafit);
  --muted: var(--szary);
  --accent: var(--czerwony);
  --accent-hover: var(--czerwony-hover);
  --line: rgba(23, 34, 38, 0.14);
  --surface: var(--lod-jasny);
  --focus: var(--grafit);
}
.on-dark {
  --bg: var(--grafit);
  --fg: var(--lod);
  --muted: var(--szary-na-grafit);
  --accent: var(--sygnal);
  --accent-hover: var(--sygnal-hover);
  --line: rgba(220, 232, 233, 0.16);
  --surface: var(--grafit-2);
  --focus: var(--lod);
}
/* a light island inside a dark band (the form panel) */
.on-light {
  --bg: var(--papier);
  --fg: var(--grafit);
  --muted: var(--szary);
  --accent: var(--czerwony);
  --accent-hover: var(--czerwony-hover);
  --line: rgba(23, 34, 38, 0.14);
  --surface: var(--lod-jasny);
  --focus: var(--grafit);
}

/* ---------- Base */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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;
  background: var(--papier);
  color: var(--grafit);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--bottombar-h);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 4.4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.8vw, 3.6875rem); line-height: 1.04; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.2; }
p { text-wrap: pretty; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--grafit); color: var(--papier); }

/* ---------- Helpers */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  background: var(--grafit);
  color: var(--papier);
  border-radius: var(--r);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-2); }

/* the red phrase in a two-tone heading */
.hl { color: var(--accent); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--muted); }

/* ---------- Sections */
.sec {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-y);
}
.sec--ice { --bg: var(--lod-jasny); --surface: var(--papier); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.sec--flush-top { padding-top: 0; }
.sec--clear { background: none; position: relative; }

/* Centred head: ruled kicker, two-tone heading, optional lead */
.sec-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.sec-head > p:last-child:not(.kicker) {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 1.125rem;
}
.sec-head--left { margin-inline: 0; text-align: left; }

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
/* labels are centred, without the rules on both sides (the user removed them on 2026-11-19) */
.kicker { text-align: center; }

/* ---------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(200, 31, 32, 0.55);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { translate: 0 1px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* white text on #F32B2C only passes as large text, so dark bands use bigger, bolder labels */
.on-dark .btn { font-size: 1.1875rem; font-weight: 600; }
.on-dark .on-light .btn { font-size: 1.125rem; font-weight: 600; }

.btn--ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--fg);
  box-shadow: 0 4px 12px -6px rgba(23, 34, 38, 0.25);
}
.btn--ghost:hover { background: var(--bg); border-color: var(--fg); color: var(--fg); }
.on-dark .btn--ghost { font-weight: 600; font-size: 1.125rem; }

.btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--accent); }

/* ---------- Tick lists (the reference's green ticks, in brand terms) */
.ticks { list-style: none; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 600;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.1em;
  width: 1.3rem; height: 1.3rem;
  border-radius: 4px;
  background: var(--tick-bg, var(--grafit)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 78% no-repeat;
}
.on-dark .ticks { --tick-bg: var(--sygnal); }
/* Tick list with a small red line icon per item instead of the dark tick box (hero) */
.ticks--icons li { padding-left: 2.2rem; }
.ticks--icons li::before { content: none; }
.ticks--icons .li-ico { position: absolute; left: 0; top: 0.02em; width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--czerwony); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ticks--icons .li-ico { top: calc(0.5lh - 0.7rem); } /* centre on the first line of text */
.on-dark .ticks--icons .li-ico { stroke: var(--sygnal); }
.ticks--muted li { font-weight: 400; color: var(--muted); }
.ticks--muted li strong { color: var(--fg); font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--papier);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 34, 38, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--grafit); }
.logo { width: 132px; height: auto; overflow: visible; }
.logo-rest,
.logo-dot { transform-box: view-box; transition: transform 520ms var(--ease-out), opacity 360ms ease; }
.is-scrolled .logo-rest { opacity: 0; transform: translateX(-180px); }
/* the square moves from the "i" to the top-right of the "k", as in the favicon sign */
.is-scrolled .logo-dot { transform: translate(-2278px, -20px); }
/* hovering or focusing the collapsed logo shows the full name again */
.is-scrolled .brand:hover .logo-rest,
.is-scrolled .brand:focus-visible .logo-rest { opacity: 1; transform: none; }
.is-scrolled .brand:hover .logo-dot,
.is-scrolled .brand:focus-visible .logo-dot { transform: none; }
@media (prefers-reduced-motion: reduce) { .logo-rest, .logo-dot { transition: none; } }
.logo-dot { fill: var(--czerwony); }
.on-dark .logo-dot { fill: var(--sygnal); }

.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 1.1875rem;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: var(--czerwony);
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--t-fast) var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { scale: 1 1; }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-tel {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-tel svg { width: 1.1rem; height: 1.1rem; color: var(--czerwony); }
.header-tel:hover { text-decoration: underline; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--papier);
  color: var(--grafit);
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--papier);
  padding: var(--s-2) var(--gutter) var(--s-4);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin-bottom: var(--s-3); }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu nav a.is-active { color: var(--czerwony); }
.mobile-menu .btn { width: 100%; }
.mobile-menu .btn + .btn { margin-top: var(--s-1); }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1120px) {
  .header-tel { display: inline-flex; }
}

/* ==========================================================================
   Hero: copy left, "metamorfoza strony pod czerwoną linią" right
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero-copy .kicker { margin-bottom: var(--s-3); }
.hero-copy h1 { margin-bottom: var(--s-3); }
.hero-copy h1 .hl { display: block; }
.hero-copy .lead { margin-bottom: var(--s-2); max-width: 33rem; font-size: 1.1875rem; line-height: 1.65; color: var(--grafit); font-weight: 600; }
.hero-copy .lead + p { color: var(--muted); font-size: 1.1875rem; margin-bottom: var(--s-3); max-width: 34rem; }
.hero-copy .ticks { margin-bottom: var(--s-4); font-size: 1.1875rem; gap: 0.85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }


/* Portrait: where the reference floats site mock-ups on a cloud, Kreowid shows the
   person the site is for. Black and white, on a flat ice block, with the laser line. */
.hero-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--lod-jasny);
}
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: grayscale(1) contrast(1.06);
  mix-blend-mode: multiply; /* a light studio background melts into the ice block */
}
@media (min-width: 960px) {
  .hero { padding-block: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
  .hero-copy { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); align-self: center; }
  /* the block runs to the right edge of the window and to the bottom of the hero */
  /* the photo is the background of the whole first screen: it sits behind the text and the
     numbers strip, runs off the right edge and fades out on the left, top and bottom */
  .hero { overflow: visible; }
  .hero-grid { position: static; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-portrait {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(58vw, 1100px);
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    background: none;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.04) 8.8%, rgba(0,0,0,0.16) 17.6%, rgba(0,0,0,0.42) 28.6%, rgba(0,0,0,0.74) 39.6%, rgba(0,0,0,0.94) 48.4%, #000 57.2%), linear-gradient(to top, transparent 0, transparent 4%, rgba(0,0,0,0.05) 12%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.8) 40%, #000 50%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.3) 2%, rgba(0,0,0,0.8) 5%, #000 8%);
    -webkit-mask-composite: source-in, source-in;
    mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.04) 8.8%, rgba(0,0,0,0.16) 17.6%, rgba(0,0,0,0.42) 28.6%, rgba(0,0,0,0.74) 39.6%, rgba(0,0,0,0.94) 48.4%, #000 57.2%), linear-gradient(to top, transparent 0, transparent 4%, rgba(0,0,0,0.05) 12%, rgba(0,0,0,0.2) 20%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.8) 40%, #000 50%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.3) 2%, rgba(0,0,0,0.8) 5%, #000 8%);
    mask-composite: intersect, intersect;
    /* no tiling: a repeated sliver of the mask drew a faint line along the edges */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  /* 2026-11-19, the user's sketch and reference: the head sits just right of the middle of the window,
     the shirt runs down to the bottom of the first screen, and the photo "comes out of white": it runs
     off the top and the right edge of the window and dissolves like mist only on the left and bottom. */
  .hero-portrait {
    left: 0; width: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.12) 3%, rgba(0,0,0,0.35) 7%, rgba(0,0,0,0.65) 11%, rgba(0,0,0,0.88) 15%, #000 19%, #000 64%, rgba(0,0,0,0.82) 72%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.28) 88%, rgba(0,0,0,0.08) 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.12) 3%, rgba(0,0,0,0.35) 7%, rgba(0,0,0,0.65) 11%, rgba(0,0,0,0.88) 15%, #000 19%, #000 64%, rgba(0,0,0,0.82) 72%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.28) 88%, rgba(0,0,0,0.08) 95%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  /* the grey studio background is its own band: it starts after the text with a misty left edge and runs
     off the right edge of the window (colours sampled from the photo, after the grayscale + contrast filter) */
  .hero-portrait::before {
    content: "";
    position: absolute; top: 0; bottom: 0; right: 0; left: calc(50% - 48px);
    background: linear-gradient(to bottom, rgb(184,184,184) 0%, rgb(186,186,186) 14%, rgb(187,187,187) 33%, rgb(185,185,185) 45.5%, rgb(183,183,183) 58%, rgb(180,180,180) 70.5%, rgb(178,178,178) 83%, rgb(172,172,172) 95.5%, rgb(169,169,169) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.3) 9%, rgba(0,0,0,0.58) 14%, rgba(0,0,0,0.82) 19%, #000 25%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.1) 4%, rgba(0,0,0,0.3) 9%, rgba(0,0,0,0.58) 14%, rgba(0,0,0,0.82) 19%, #000 25%);
  }
  /* the photo stands on the bottom of the hero (the shirt runs to its edge) and the man stands in the
     middle of the grey band; its size follows the window width, so a taller hero does not blow the head up */
  .hero-portrait img {
    inset: auto;
    bottom: -8%; left: calc(75% - 44px); width: auto; height: max(110%, min(125%, 61vw)); /* 70px left of the band's middle, at the user's request */
    translate: -48.3% 0; /* the middle of his head is at 48.3% of the photo's width */
    aspect-ratio: 1122 / 1402;
    object-fit: cover; object-position: 50% 50%;
    mix-blend-mode: normal; /* the grey band must not darken it */
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 9%, rgba(0,0,0,0.08) 13%, rgba(0,0,0,0.22) 17%, rgba(0,0,0,0.45) 21%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.9) 29%, #000 33%, #000 85%, rgba(0,0,0,0.55) 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, transparent 9%, rgba(0,0,0,0.08) 13%, rgba(0,0,0,0.22) 17%, rgba(0,0,0,0.45) 21%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.9) 29%, #000 33%, #000 85%, rgba(0,0,0,0.55) 93%, transparent 100%);
  }
}
/* smallest desktops: the photo is smaller, so it does not reach the top; it mists in from above too */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-portrait::before { content: none; }
  .hero-portrait img {
    left: auto; right: 0; translate: none;
    height: 85%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 9%, rgba(0,0,0,0.08) 13%, rgba(0,0,0,0.22) 17%, rgba(0,0,0,0.45) 21%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.9) 29%, #000 33%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.2) 6%, rgba(0,0,0,0.6) 12%, #000 20%);
    mask-image: linear-gradient(to right, transparent 0, transparent 9%, rgba(0,0,0,0.08) 13%, rgba(0,0,0,0.22) 17%, rgba(0,0,0,0.45) 21%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.9) 29%, #000 33%), linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.2) 6%, rgba(0,0,0,0.6) 12%, #000 20%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Browser frame (hero demo, showcase) */
.browser {
  border-radius: var(--r-lg);
  background: var(--papier);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  border: 1px solid var(--line);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 38px;
  padding-inline: 0.875rem;
  background: #e9eff0;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #b9c7c9; }
.browser-url {
  flex: 1;
  min-width: 0;
  height: 22px;
  padding-inline: 0.75rem;
  border-radius: 999px;
  background: var(--papier);
  color: var(--szary);
  font-size: 0.75rem;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Comparison (the red laser line) */
.cmp { margin: 0; }
.cmp figcaption,
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.cmp figcaption::before,
.demo-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.45em; background: var(--accent); }

.cmp-frame {
  --pos: 50%;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f0;
  user-select: none;
  -webkit-user-select: none;
}
.cmp-layer { position: absolute; inset: 0; }
.cmp-head {
  position: absolute;
  inset: 0 0 auto 0;
  height: 11%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  padding-inline: 4cqi;
  white-space: nowrap;
  overflow: hidden;
}
.cmp-photo { position: absolute; left: 0; right: 0; top: 11%; height: 53%; overflow: hidden; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.cmp-panel {
  position: absolute;
  left: 0; right: 0; top: 64%; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4cqi;
  padding: 2.5cqi 4cqi;
}

/* PRZED: an ordinary site */
.cmp-before { background: #fff; font-family: Arial, Helvetica, sans-serif; color: #555; }
.cmp-before .cmp-head { background: #f3f3f3; border-bottom: 1px solid #ddd; }
.pb-name { font-size: max(9px, 2.3cqi); font-weight: 700; color: #444; overflow: hidden; text-overflow: ellipsis; }
.pb-nav { font-size: max(8px, 1.9cqi); color: #2a5db0; text-decoration: underline; }
.cmp-before .cmp-panel { justify-content: space-between; }
.pb-caption { font-size: max(9px, 2.3cqi); color: #555; }
.pb-tel { font-size: max(8px, 1.7cqi); color: #777; }

/* PO: the Kreowid way */
.cmp-after {
  background: var(--grafit);
  color: var(--lod);
  font-family: var(--font-body);
  clip-path: inset(0 0 0 var(--pos));
}
.cmp-after .cmp-head { background: var(--grafit); }
.pa-name {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqi;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: max(10px, 2.6cqi);
  letter-spacing: 0;
}
.pa-name::before { content: ""; width: 1.6cqi; height: 1.6cqi; min-width: 6px; min-height: 6px; background: var(--sygnal); }
.pa-nav { font-size: max(8px, 1.8cqi); color: var(--szary-na-grafit); }
.pa-caption {
  position: absolute;
  right: 2.4cqi; top: max(9cqi, 34px);
  max-width: calc(100% - 8cqi);
  padding: 0.55em 0.9em;
  border-radius: 4px;
  background: rgba(23, 34, 38, 0.86);
  color: var(--lod);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: max(9px, 2.3cqi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-after .cmp-panel { align-items: flex-end; text-align: right; }
.pa-list {
  list-style: none;
  display: grid;
  justify-items: end;
  gap: 0.35em;
  font-size: max(9px, 2.1cqi);
  color: var(--szary-na-grafit);
}
.pa-list li { display: inline-flex; align-items: center; gap: 0.5em; }
.pa-list li::before { content: ""; width: 0.45em; height: 0.45em; background: var(--lod); opacity: 0.7; }
.pa-actions { display: flex; align-items: center; gap: 1.6cqi; }
.pa-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.4em;
  border-radius: 6px;
  background: var(--sygnal);
  color: #fff;
  font-weight: 700;
  font-size: max(9px, 2.2cqi);
  white-space: nowrap;
}
.pa-call {
  display: inline-grid;
  place-items: center;
  width: max(26px, 6.4cqi);
  height: max(26px, 6.4cqi);
  border-radius: 6px;
  border: 1px solid rgba(220, 232, 233, 0.5);
  color: var(--lod);
}
.pa-call svg { width: 48%; height: 48%; }
@container (max-width: 380px) {
  .pa-nav, .pb-nav { display: none; }
}

.cmp-chip {
  position: absolute;
  top: calc(11% + 2.4cqi);
  z-index: 2;
  padding: 0.35em 0.7em;
  border-radius: 4px;
  background: rgba(23, 34, 38, 0.78);
  color: var(--lod);
  font-size: max(11px, 1.7cqi);
  font-weight: 600;
  pointer-events: none;
}
.cmp-chip--before { left: 2.4cqi; }
.cmp-chip--after { right: 2.4cqi; }

.cmp-line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  translate: -1px 0;
  background: var(--sygnal);
  box-shadow: 0 0 10px 1px rgba(243, 43, 44, 0.55);
  pointer-events: none;
}
.cmp-handle {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--sygnal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.cmp-handle svg { width: 22px; height: 22px; }

/* Transparent range on top: drag, click, arrow keys, screen readers */
.cmp-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 40px; }
.cmp-range::-moz-range-thumb { width: 2px; height: 40px; border: 0; }
.cmp-range:focus-visible + .cmp-line .cmp-handle { outline: 3px solid var(--papier); outline-offset: 3px; }

/* Segmented switch (Przed/Po on phones, Komputer/Telefon in the showcase) */
.switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r);
  background: var(--lod);
}
.switch button {
  min-height: 44px;
  min-width: 96px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--grafit);
  font-weight: 600;
  font-size: 1.0625rem;
}
.switch button[aria-pressed="true"] { background: var(--grafit); color: var(--papier); }

.cmp-toggle { display: none; }
@media (max-width: 899px) {
  .js .cmp-toggle { display: inline-flex; margin-bottom: var(--s-2); }
  .js .cmp-range, .js .cmp-line { display: none; }
  .js .cmp-after { clip-path: none; transition: opacity 300ms ease; }
  .js .cmp[data-view="before"] .cmp-after { opacity: 0; }
  .js .cmp[data-view="after"] .cmp-chip--before,
  .js .cmp[data-view="before"] .cmp-chip--after { display: none; }
}

/* ==========================================================================
   Facts strip (where the reference shows rating badges; here: the offer terms)
   ========================================================================== */
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
}
.facts li {
  padding: var(--s-3) var(--s-2);
  display: grid;
  gap: 0.15rem;
  align-content: start;
}
.facts li:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.facts strong {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}
.facts span { color: var(--muted); font-size: 1rem; line-height: 1.4; }
@media (min-width: 820px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts { border-top: 0; position: relative; }
  .facts li { padding: var(--s-4) var(--s-3); }
  .facts li:nth-child(n) { border-top: 0; border-right: 1px solid var(--line); padding-left: var(--s-3); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* ==========================================================================
   "Protokół odbioru": what every site includes, as a handover sheet
   ========================================================================== */
.protocol {
  background: var(--papier);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.protocol-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem var(--s-3);
  padding: var(--s-3) clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--grafit);
}
.protocol-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}
.protocol-title::before { content: ""; width: 0.6em; height: 0.6em; background: var(--czerwony); }
.protocol-meta { color: var(--muted); font-size: 1rem; }
.protocol-grid { display: grid; }
.protocol-group { padding: var(--s-4) clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.protocol-group h3 { font-size: 1.125rem; margin-bottom: var(--s-2); }
.protocol-group .ticks { gap: 0.6rem; }
.protocol-group .ticks li { font-weight: 500; }
.protocol-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--lod-jasny);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.protocol-foot p { max-width: 40rem; }
.protocol-foot strong { font-family: var(--font-head); }
@media (min-width: 760px) {
  .protocol-grid { grid-template-columns: 1fr 1fr; }
  .protocol-group:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .protocol-grid { grid-template-columns: repeat(4, 1fr); }
  .protocol-group { border-right: 1px solid var(--line); padding-inline: var(--s-4); }
  .protocol-group:last-child { border-right: 0; }
}

/* ==========================================================================
   Zig-zag path: 1. sprawdza, 2. widzi realizacje, 3. dzwoni
   ========================================================================== */
.path { display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.path-step { display: grid; gap: var(--s-4); align-items: center; }
.path-copy { max-width: 33rem; }
.path-copy h3 { font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.1; margin-bottom: var(--s-3); }
.path-copy p { margin-bottom: var(--s-2); }
.path-copy p:last-of-type { margin-bottom: var(--s-3); }
.path-copy .muted { color: var(--muted); }
.path-visual { margin: 0; width: 100%; max-width: 30rem; justify-self: center; }
@media (min-width: 900px) {
  .path-step { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
  .path-step:nth-child(even) .path-visual { order: 2; }
  .path-step:nth-child(even) .path-copy { justify-self: start; }
  .path-step:nth-child(odd) .path-copy { justify-self: end; }
}

/* shared look for the small product mock-ups */
.mock {
  background: var(--papier);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.45;
}

/* 1: link preview in a chat */
.mock-chat { padding: var(--s-3); background: #e8eeee; display: grid; gap: 0.75rem; }
.chat-bubble {
  justify-self: start;
  max-width: 88%;
  padding: 0.7rem 0.95rem;
  border-radius: 4px 14px 14px 14px;
  background: var(--papier);
}
.chat-bubble--out { justify-self: end; border-radius: 14px 4px 14px 14px; background: #d6ecdf; }
.chat-link { color: #155a82; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; }
.chat-link:hover { color: #0f4566; }
.chat-preview {
  justify-self: start;
  display: block;
  width: min(100%, 21rem);
  border-radius: 4px 14px 14px 14px;
  background: var(--papier);
  color: var(--grafit);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow var(--t-fast) ease;
}
.chat-preview:hover { box-shadow: 0 0 0 2px var(--grafit); }
.chat-preview:focus-visible { outline: 3px solid var(--grafit); outline-offset: 3px; border-radius: 4px 14px 14px 14px; }
.chat-preview img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.chat-preview-body { padding: 0.7rem 0.95rem 0.85rem; display: grid; gap: 0.15rem; }
.chat-domain { color: var(--szary); font-size: 0.8125rem; letter-spacing: 0.01em; }
.chat-preview strong { font-family: var(--font-head); font-size: 1.0625rem; }
.chat-desc { color: var(--szary); font-size: 0.9375rem; }
.chat-preview small { color: var(--szary); font-size: 0.875rem; }
.mock-title { margin-bottom: var(--s-2); font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; text-align: center; }

/* 2: one finished job with its facts */
.job img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.job-body { padding: var(--s-3); }
.job-body h4 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.job-facts { display: grid; grid-template-columns: auto 1fr; }
.job-facts dt, .job-facts dd { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.job-facts dt { color: var(--szary); padding-right: var(--s-3); }
.job-facts dd { font-weight: 600; text-align: right; }

/* 3: step-by-step quote form (interactive demo; js/main.js section 4b) */
.quote { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-3); min-height: 27.5rem; }
.quote-progress { display: grid; gap: 0.5rem; color: var(--szary); font-size: 0.9375rem; }
.quote-bar { height: 4px; background: var(--lod); }
.quote-bar i { display: block; width: 25%; height: 100%; background: var(--czerwony); transition: width 400ms var(--ease-out); }
.quote h4 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.quote-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quote-opts button {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--papier);
  color: var(--grafit);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.quote-opts button:hover { border-color: var(--grafit); }
.quote-opts button[aria-pressed="true"] { border-color: var(--grafit); background: var(--grafit); color: var(--papier); }
.quote-done p { color: var(--szary); }
.quote-summary { display: grid; grid-template-columns: auto 1fr; margin: var(--s-2) 0; }
.quote-summary dt, .quote-summary dd { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.quote-summary dt { color: var(--szary); padding-right: var(--s-3); text-transform: capitalize; }
.quote-summary dd { font-weight: 600; text-align: right; }
.quote-note { font-size: 0.9375rem; }
.quote-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-top: auto; }
.quote-nav [hidden] { display: none; }
.quote-back {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--szary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.quote-back:hover { color: var(--grafit); }
.quote-next {
  margin-left: auto;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--czerwony);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.quote-next:hover { background: var(--czerwony-hover); }
/* without JavaScript all four questions are simply listed */
.quote-step[hidden] { display: none; }
html:not(.js) .quote-step[hidden]:not(.quote-done) { display: block; }

/* ==========================================================================
   Dla kogo / nie dla kogo
   ========================================================================== */
.fit { display: grid; gap: var(--s-4); }
.fit-col { padding-top: var(--s-3); border-top: 2px solid var(--grafit); }
.fit-col h3 { margin-bottom: var(--s-3); }
.fit-col--no { border-top-color: var(--line); }
.fit-col--no h3 { color: var(--muted); }
.fit-list { list-style: none; display: grid; gap: var(--s-3); }
.fit-list strong { display: block; font-family: var(--font-head); font-size: 1.125rem; margin-bottom: 0.2rem; }
.fit-list span { color: var(--muted); }
.fit-col--no p + p { margin-top: var(--s-2); }
.fit-col--no p { color: var(--muted); }
@media (min-width: 900px) {
  .fit { grid-template-columns: 1.6fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
  .fit-col:first-child .fit-list { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
}

/* ==========================================================================
   Showcase: the demo client site (Łazienki Nowak, /przyklad/lazienki-nowak/) live in a browser frame,
   Komputer / Telefon switch, clickable notes, full-screen view (js/main.js section 4)
   ========================================================================== */
.showcase { display: grid; justify-items: center; gap: var(--s-3); }
.showcase .switch { display: none; }
@media (min-width: 760px) { .js .showcase .switch { display: inline-flex; } }
.showcase-stage { position: relative; width: 100%; display: grid; justify-items: center; gap: var(--s-4); }
.showcase .browser { width: 100%; max-width: 1000px; transition: max-width 320ms var(--ease-out); }
.showcase[data-device="phone"] .browser { max-width: 360px; border-radius: 34px; border: 8px solid var(--grafit); }
.showcase[data-device="phone"] .browser-bar { display: none; }
@media (prefers-reduced-motion: reduce) { .showcase .browser { transition: none; } }

/* the demo page is drawn at its real size (1280 px computer, 390 px phone) and scaled to the frame */
.demo-screen { position: relative; overflow: hidden; height: 560px; background: #1C2633; }
.demo-frame { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; background: #1C2633; }
.demo-cover { display: none; }
@media (max-width: 759px) {
  /* phones: a still preview; tapping opens the example full screen */
  .demo-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.25rem;
    border: 0;
    background: linear-gradient(180deg, rgba(23, 34, 38, 0) 55%, rgba(23, 34, 38, 0.6));
    cursor: pointer;
  }
  .demo-cover span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.125rem;
    border-radius: 999px;
    background: #fff;
    color: var(--grafit);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }
  .demo-cover svg { width: 18px; height: 18px; }
  .demo-cover span { white-space: nowrap; }
}

.showcase-foot { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-2); text-align: center; }
.showcase-foot .demo-note { margin-top: 0; justify-content: center; }
.showcase-pkg { max-width: 38rem; margin-top: calc(var(--s-2) * -0.5); font-size: 0.9375rem; line-height: 1.5; color: var(--szary); }
.showcase-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.showcase-actions .btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Notes: numbered buttons; clicking one shows that spot in the demo */
.annot-box { display: grid; gap: 0.75rem; width: 100%; max-width: 34rem; }
.annot-tip { font-size: 0.9375rem; color: var(--muted); }
.annot { list-style: none; display: grid; gap: 0.25rem; }
.annot-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.annot-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.annot-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--sygnal);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.annot-btn:hover .annot-n { transform: scale(1.12); }
/* wide screens, computer view: notes in a column right of the frame */
.showcase-stage.is-annotated { grid-template-columns: minmax(0, 1fr) 13.5rem; justify-items: stretch; align-items: center; column-gap: 3rem; }
.showcase-stage.is-annotated .browser { max-width: none; }
.showcase-stage.is-annotated .annot-box { max-width: none; }
.showcase-stage.is-annotated .annot { gap: 1.25rem; }

/* ---------- Full-screen view */
.fs {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #1C2633;
  color: #fff;
}
.fs[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.fs::backdrop { background: rgba(23, 34, 38, 0.7); }
.fs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.375rem 0.5rem 0.375rem 1rem;
  background: var(--grafit);
  font-size: 0.9375rem;
}
.fs-label { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.fs-label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--sygnal); }
.fs-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.fs-close:hover { background: rgba(255, 255, 255, 0.1); }
.fs-close svg { width: 16px; height: 16px; }
.fs-body { position: relative; min-height: 0; }
.fs-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.is-fs-open { overflow: hidden; }

/* ==========================================================================
   Process: five steps on a laser line (graphite band)
   ========================================================================== */
.process { position: relative; overflow: hidden; }
.process-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}
.process .container { position: relative; }
.steps { list-style: none; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 var(--s-4) 2.75rem; }
.step:last-child { padding-bottom: 0; }
/* the line */
.step::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.6rem; bottom: -0.6rem;
  width: 2px;
  background: var(--sygnal);
}
.step:last-child::before { display: none; }
/* the node */
.step::after {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 14px; height: 14px;
  background: var(--sygnal);
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 1.0625rem; }
.step-arrow { display: none; }
@media (min-width: 1000px) {
  /* the steps wander down the band: 1 in the middle, 2 left, 3 right, 4 left, 5 right,
     joined by loose hand-drawn arrows instead of a straight line */
  .steps { grid-template-columns: repeat(12, 1fr); column-gap: var(--s-3); row-gap: 5.5rem; padding-top: var(--s-3); }
  .step { padding: 0; max-width: 21rem; }
  .step::before, .step::after { display: none; }
  .step:nth-child(1) { grid-column: 4 / 9; grid-row: 1; }
  .step:nth-child(2) { grid-column: 1 / 6; grid-row: 2; }
  .step:nth-child(3) { grid-column: 7 / 13; grid-row: 2; margin-top: 5rem; }
  .step:nth-child(4) { grid-column: 3 / 8; grid-row: 3; margin-top: 1rem; }
  .step:nth-child(5) { grid-column: 8 / 13; grid-row: 3; margin-top: 6.5rem; }
  .step-num { font-size: 2.5rem; line-height: 1; color: var(--sygnal); margin-bottom: 0.6rem; }
  .step h3 { font-size: 1.5rem; font-weight: 600; }
  .step p { font-size: 1.0625rem; }
  .step-arrow {
    display: block;
    position: absolute;
    fill: none;
    stroke: var(--lod);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
  }
  .step-arrow--down { width: 9.5rem; right: calc(100% + 1rem); top: 55%; }
  .step-arrow--right { width: 13rem; left: calc(100% + 0.5rem); top: 0.5rem; }
  .step:nth-child(3) .step-arrow--down { rotate: -6deg; }
  .step:nth-child(4) .step-arrow--right { rotate: 4deg; top: -0.75rem; width: 10rem; }
}
.process-foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.process-foot p { color: var(--muted); max-width: 30rem; }

/* ==========================================================================
   Prices: one row per package, like positions on a quote
   ========================================================================== */
.founding {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--czerwony);
  border-radius: var(--r);
  background: var(--papier);
}
.founding strong { font-family: var(--font-head); }
.seats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-weight: 600; }
.seat-boxes { display: inline-flex; gap: 5px; }
.seat-boxes i { width: 16px; height: 16px; border: 2px solid var(--grafit); }
.seat-boxes i.is-free { background: var(--czerwony); border-color: var(--czerwony); }
@media (min-width: 820px) {
  .founding { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); }
}

.plans { display: grid; gap: var(--s-2); }
.plan {
  display: grid;
  gap: var(--s-3);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--papier);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.plan--main { background: var(--grafit); border-color: var(--grafit); }
.plan-name h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 1.5rem; margin-bottom: 0.4rem; }
.plan-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--fg); }
.plan-tag::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.plan-name p { color: var(--muted); }
.plan-items { list-style: none; display: grid; gap: 0.5rem; align-content: start; }
.plan-items li { position: relative; padding-left: 1.25rem; }
.plan-items li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent); }
.plan-items .plan-base { padding-left: 0; color: var(--muted); }
.plan-items .plan-base::before { display: none; }
.plan-price { display: grid; gap: 0.25rem; align-content: start; }
.price { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.price-note { color: var(--muted); font-size: 1rem; margin-bottom: var(--s-2); }
.price-note s { color: inherit; }
@media (min-width: 900px) {
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 17.5rem; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
}
.plans-notes { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.plans-notes h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.plans-notes p { color: var(--muted); }
.plans-notes > div { padding-top: var(--s-3); border-top: 2px solid var(--grafit); }
@media (min-width: 820px) { .plans-notes { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.center-cta { margin-top: var(--s-5); display: grid; justify-items: center; gap: var(--s-2); text-align: center; }

/* ==========================================================================
   Split: image + text (about)
   ========================================================================== */
.split { display: grid; gap: var(--s-4); align-items: center; }
.split-media { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--grafit); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media figcaption {
  position: absolute;
  left: var(--s-3); bottom: var(--s-3);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  background: rgba(23, 34, 38, 0.85);
  color: var(--lod);
  font-size: 0.9375rem;
  font-weight: 500;
}
.split-copy { max-width: 35rem; }
.split-copy h2 { margin-bottom: var(--s-3); }
.split-copy p + p { margin-top: var(--s-2); }
.split-copy .text-link { margin-top: var(--s-3); }
.split-copy .ticks { margin-top: var(--s-3); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
  .split--flip .split-media,
  .split--flip .mascot { order: 2; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 2px solid var(--grafit); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 64px;
  padding: var(--s-2) 0;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--czerwony); }
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 2px;
  background: var(--czerwony);
  transition: rotate 500ms var(--ease-out);
}
.pm::after { rotate: 90deg; }
details[open]:not(.is-closing) .pm::after { rotate: 0deg; }
.faq-list details.is-animating { overflow: hidden; }
.faq-list details p { padding: 0 2.5rem var(--s-3) 0; color: var(--muted); max-width: 44rem; }
.faq-more { max-width: 820px; margin: var(--s-4) auto 0; color: var(--muted); }
.faq-more a { color: var(--grafit); font-weight: 600; }

/* ==========================================================================
   Contact band: mini-audyt form (graphite, tiles drawing behind)
   ========================================================================== */
.contact { position: relative; overflow: hidden; }
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; gap: var(--s-5); align-items: start; }
.contact-copy h2 { margin-bottom: var(--s-3); }
.contact-copy > p { color: var(--muted); max-width: 30rem; font-size: 1.125rem; }
.contact-copy .ticks { margin-top: var(--s-3); }
.call-box { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: 0.25rem; justify-items: start; }
.call-box p { color: var(--muted); font-size: 1rem; }
.call-big {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.call-big svg { width: 0.85em; height: 0.85em; color: var(--accent); }
.call-big:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr minmax(0, 30rem); gap: clamp(3rem, 7vw, 6rem); }
}

.form-panel {
  background: var(--papier);
  color: var(--grafit);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.sec--ice .form-panel, .sec:not(.on-dark) > .container > .contact-grid .form-panel { border: 1px solid var(--line); }
.form-panel h3 { margin-bottom: 0.4rem; }
.form-panel > p { color: var(--szary); margin-bottom: var(--s-3); }
.form { display: grid; gap: var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.label { font-weight: 600; font-size: 1.0625rem; }
.opt { font-weight: 400; color: var(--szary); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #8a9a9d;
  border-radius: var(--r);
  background: var(--papier);
  color: var(--grafit);
  font-size: 1.125rem;
}
.field input::placeholder { color: #5a6d71; }
.field input:hover { border-color: var(--grafit); }
.field input:focus-visible { outline: 3px solid var(--grafit); outline-offset: 2px; border-color: var(--grafit); }
.field input[aria-invalid="true"] { border-color: var(--czerwony); border-width: 2px; }
.field-hint { color: var(--szary); font-size: 0.9375rem; }
.field-error { color: var(--czerwony); font-size: 1rem; font-weight: 600; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 0.85rem 1rem; border-radius: var(--r); background: var(--lod-jasny); font-weight: 500; }
.form-status.is-error { background: #fbe9e9; color: #8f1516; }
.form-note { font-size: 0.9375rem; color: var(--szary); line-height: 1.5; }
.thanks { display: grid; gap: var(--s-2); justify-items: start; }
.thanks .ok { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--ok); color: #fff; }
.thanks .ok svg { width: 26px; height: 26px; }
.thanks p { color: var(--szary); }

/* ---------- Closing band on subpages (no form) */
.closing-inner { position: relative; display: grid; gap: var(--s-4); align-items: center; }
.closing-inner h2 .hl { display: block; }
.closing-inner > div > p { margin-top: var(--s-2); color: var(--muted); font-size: 1.125rem; }
.closing-actions { display: grid; gap: var(--s-2); justify-items: start; }
@media (min-width: 900px) {
  .closing-inner { grid-template-columns: 1fr auto; gap: var(--s-6); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--grafit); color: var(--lod); padding-block: var(--s-6) var(--s-4); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: var(--s-5); }
.footer-brand img { width: 140px; margin-bottom: var(--s-3); }
.footer-brand p { color: var(--muted); max-width: 22rem; }
.footer-brand p + p { margin-top: var(--s-2); }
.footer-brand a { color: var(--lod); }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; display: grid; gap: 0.15rem; }
.site-footer li a, .footer-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--lod);
  text-decoration: none;
  font-weight: 500;
}
.site-footer li a:hover, .footer-link-btn:hover { text-decoration: underline; }
.footer-link-btn { background: none; border: 0; padding: 0; text-align: left; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  color: var(--muted);
  font-size: 1rem;
}
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-6); }
}

/* ---------- Mobile bottom bar */
.bottom-bar { display: none; }
@media (max-width: 899px) {
  :root { --bottombar-h: 76px; }
  .bottom-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-bottombar);
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0.625rem;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--papier);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(23, 34, 38, 0.08);
  }
  .bottom-bar .btn { min-height: 50px; padding-inline: 0.5rem; font-size: 1.0625rem; white-space: nowrap; }
}

/* ==========================================================================
   Consent panel (only shown when analytics is switched on in js/main.js)
   ========================================================================== */
.consent {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--bottombar-h) + 0.75rem);
  z-index: var(--z-consent);
  max-width: 30rem;
  padding: var(--s-3);
  background: var(--papier);
  color: var(--grafit);
  border: 1px solid var(--grafit);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-frame);
}
.consent h2 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.consent p { font-size: 1rem; color: var(--szary); line-height: 1.5; }
.consent p a { color: var(--grafit); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: var(--s-2); }
/* both choices look the same on purpose: refusing is as easy as agreeing */
.consent-actions .btn { box-shadow: none; min-height: 48px; background: var(--grafit); border-color: var(--grafit); color: #fff; font-size: 1.0625rem; padding-inline: 0.75rem; }
.consent-actions .btn:hover { background: #000; border-color: #000; }
@media (min-width: 900px) { .consent { right: auto; bottom: 1.25rem; } }

/* ==========================================================================
   Subpages
   ========================================================================== */
.page-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.125rem, 4.4vw, 3rem); max-width: 20ch; margin-bottom: var(--s-3); }
.page-hero .lead { max-width: 40rem; }
.page-hero .hero-actions { margin-top: var(--s-4); }
.crumbs { margin-bottom: var(--s-3); font-size: 1rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--grafit); }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: var(--s-5) 0 var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: var(--s-2); }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose a { color: var(--czerwony); font-weight: 500; }
.template-note {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 4px solid var(--czerwony);
  background: var(--lod-jasny);
  font-size: 1rem;
  max-width: 46rem;
}

.values { list-style: none; display: grid; gap: var(--s-4); counter-reset: none; }
.values li { padding-top: var(--s-3); border-top: 2px solid var(--grafit); }
.values h3 { margin-bottom: 0.5rem; }
.values p { color: var(--muted); }
@media (min-width: 820px) { .values { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); } }

.spec-list { list-style: none; display: grid; border-top: 2px solid var(--grafit); }
.spec-list li { display: grid; gap: 0.2rem; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec-list strong { font-family: var(--font-head); font-size: 1.125rem; }
.spec-list span { color: var(--muted); }
@media (min-width: 760px) { .spec-list li { grid-template-columns: 16rem 1fr; gap: var(--s-4); align-items: baseline; } }

.message { min-height: 60vh; display: grid; align-content: center; }
.message-code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 600; line-height: 1; letter-spacing: 0; color: var(--czerwony); margin-bottom: var(--s-2); }
.message h1 { margin-bottom: var(--s-3); }
.message .lead { max-width: 36rem; margin-bottom: var(--s-4); }

/* ---------- Print */
@media print {
  .site-header, .bottom-bar, .consent, .contact-bg, .process-bg { display: none !important; }
  body { padding-bottom: 0; }
  .sec { padding-block: 1.5rem; }
}

.cmp-wrap { max-width: 820px; margin-inline: auto; }

/* ==========================================================================
   Services: round icon, title, short text (as kopfundstift.de presents its services)
   ========================================================================== */
.services { list-style: none; display: grid; gap: var(--s-5) var(--s-4); text-align: center; }
.service-icon {
  width: 150px; height: 150px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--czerwony);
}
.service-icon svg { width: 100%; height: 100%; }
.services h3 { font-size: 1.75rem; font-weight: 500; margin-bottom: var(--s-2); }
.services p { color: var(--muted); max-width: 22rem; margin-inline: auto; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }
.services-foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; justify-items: center; gap: var(--s-2); text-align: center; }
.services-foot p { max-width: 40rem; color: var(--muted); }
.services-foot strong { color: var(--fg); }

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--lod); text-decoration: underline; }

/* ==========================================================================
   Mascot: the craftsman on a paint roller floats like kopfundstift.de's rocket man
   ========================================================================== */
.mascot { position: relative; margin: 0; width: 100%; max-width: 30rem; justify-self: center; padding-bottom: 2.5rem; }
.mascot img { position: relative; z-index: 1; width: 100%; height: auto; mix-blend-mode: multiply; }
.mascot-shadow {
  position: absolute;
  left: 22%; right: 22%; bottom: 0.5rem;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 34, 38, 0.28), rgba(23, 34, 38, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .mascot img { animation: mascot-float 4.2s ease-in-out infinite; }
  .mascot-shadow { animation: mascot-shadow 4.2s ease-in-out infinite; }
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-1.5deg); }
}
@keyframes mascot-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.78); opacity: 0.6; }
}

/* ==========================================================================
   Glossary terms: a red word you can click; a small bubble explains it in plain Polish
   ========================================================================== */
.term { position: relative; display: inline; }
.term-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  cursor: help;
}
.term-btn:hover, .term-btn[aria-expanded="true"] { text-decoration-style: solid; }
.term-tip {
  --shift: 0px;
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(17rem, calc(100vw - 2.5rem));
  transform: translateX(calc(-50% + var(--shift)));
  padding: 0.8rem 0.95rem;
  border-radius: var(--r);
  background: var(--grafit);
  color: var(--lod);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  box-shadow: var(--shadow-frame);
}
.term-tip[hidden] { display: none; }
/* the little tail pointing at the word */
.term-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--shift));
  translate: -50% 0;
  border: 8px solid transparent;
  border-top-color: var(--grafit);
}
@media (prefers-reduced-motion: no-preference) {
  .term-tip:not([hidden]) { animation: term-in 180ms var(--ease-out); }
}
@keyframes term-in { from { opacity: 0; translate: 0 6px; } }
/* on the graphite band the bubble turns light so it stands out */
.on-dark .term-tip { background: var(--papier); color: var(--grafit); }
.on-dark .term-tip::after { border-top-color: var(--papier); }

/* ==========================================================================
   Section with a drawn background (Dla kogo: light grid)
   ========================================================================== */
.sec--grid { position: relative; isolation: isolate; background: #ffffff; }
.sec-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
