/* =====================================================================
   Nie pukać — arkusz stylów strony produktowej
   Jeden plik, zero builda. Sekcje w kolejności występowania na stronie.
   ===================================================================== */

/* ---------- Fonty (lokalne, OFL) ---------- */
@font-face {
  font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-var-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap;
  src: url("../fonts/manrope-var-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;
}
@font-face {
  font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-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;
}
@font-face {
  font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/instrument-serif-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/instrument-serif-400-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;
}
@font-face {
  font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/jetbrains-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/jetbrains-mono-400-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;
}

/* ---------- Tokeny ---------- */
:root {
  --paper: #f6f4ee;
  --paper-2: #ece8dd;
  --white: #ffffff;
  --ink: #10201f;
  --ink-2: #2a3938;
  --muted: #5d6d6b;
  --line: rgba(16, 32, 31, .1);
  --line-strong: rgba(16, 32, 31, .18);

  --brand: #0e7b6c;
  --brand-hover: #0b6659;
  --brand-deep: #083f38;
  --brand-ink: #052722;
  --mint: #c9f2e2;
  --mint-2: #e6f8f0;

  --accent: #ff6a45;
  --accent-hover: #ea5632;
  --accent-soft: #ffe4dc;

  /* Kolory statusów. Zieleń i czerwień jak domyślne we wtyczce; szary
     rozjaśniony wobec domyślnego #94a3b8 na #11151c, bo „nieczynne" ma
     wyglądać na wyłączone, a nie na zgaszony ekran. */
  --st-green: #22c55e; --st-green-bg: #0c2417;
  --st-red: #ef4444;   --st-red-bg: #250a0a;
  --st-gray: #b6c6d8;  --st-gray-bg: #1b2430;

  /* Wysokość nagłówka — nadpisywana przez JS, tu wartość zapasowa. */
  --header-h: 75px;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --shadow-lg: 0 40px 80px -40px rgba(5, 39, 34, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip przycina to, co wystaje w poziomie (poświaty w tle),
   nie tworząc kontenera przewijania — inaczej niż `hidden`, które zepsułoby
   przyklejony nagłówek. Starsze przeglądarki po prostu pominą tę linię. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .15em; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--brand-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Słowo z charakterem w nagłówku */
.em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.dark .em { color: var(--mint); }
.light .em { color: var(--brand); }

/* ---------- Układ ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.dark { background: var(--brand-ink); color: #fff; }
.dark--ink { background: var(--ink); }
.soft { background: var(--paper-2); }

/* Sekcje z poświatą muszą ją przyciąć, inaczej rozpychają stronę w bok. */
.grain { position: relative; isolation: isolate; overflow: hidden; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.glow--teal { background: rgba(14, 123, 108, .55); }
.glow--coral { background: rgba(255, 106, 69, .35); }

/* Nagłówek sekcji */
.head { max-width: 46rem; }
.head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dark .kicker { color: var(--mint); }
.h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.lead { margin-top: 1.375rem; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.dark .lead { color: rgba(255, 255, 255, .72); }
.dark .h2, .dark .h3 { color: #fff; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .9375rem; line-height: 1; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 106, 69, .7); }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.dark .btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: .7rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* ---------- Nagłówek strony ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-block: .875rem;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-stuck {
  background: rgba(246, 244, 238, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.on-dark:not(.is-stuck) { color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; font-weight: 800; letter-spacing: -.03em; font-size: 1.125rem; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand .dot { color: var(--accent); }
.brand small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-top: 1px; }

.nav { display: none; gap: 1.75rem; }
.nav a { font-size: .9375rem; font-weight: 600; color: inherit; text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header-cta { display: none; }
.burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer; opacity: .8;
}
.burger svg { width: 20px; height: 20px; }
.burger .close { display: none; }
.burger[aria-expanded="true"] .open { display: none; }
.burger[aria-expanded="true"] .close { display: block; }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 70; background: var(--paper);
  padding: 5.5rem var(--gutter) 2rem; flex-direction: column; gap: .25rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1.5rem; align-self: flex-start; }
.mobile-nav .close-btn { position: absolute; top: 1rem; right: var(--gutter); }
body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}

/* ---------- Hero ---------- */
/* Hero wsuwa się pod przyklejony nagłówek, żeby ciemne tło sięgało samej góry.
   Wysokość nagłówka bierzemy ze zmiennej ustawianej przez JS — sztywna liczba
   rozjeżdżała się, gdy nagłówek zmieniał wysokość (własne logo, wąski ekran). */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero .glow--teal { width: 44rem; height: 44rem; top: -14rem; right: -10rem; }
.hero .glow--coral { width: 30rem; height: 30rem; bottom: -14rem; left: -8rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero .lead { max-width: 34rem; }
.hero-note { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; font-size: .875rem; color: rgba(255, 255, 255, .6); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 34rem; }
.stat b { display: block; font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
/* Gdy zamiast liczby jest hasło, mniejszy stopień — inaczej łamie się brzydko. */
.stat--phrase b { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); letter-spacing: -.02em; line-height: 1.15; }
.stat span { display: block; margin-top: .5rem; font-size: .8125rem; line-height: 1.4; color: rgba(255, 255, 255, .6); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
}

/* ---------- Makieta ekranu gabinetu ---------- */
.device { padding: 10px; border-radius: 26px; background: linear-gradient(160deg, #1e2a2a, #070d0d); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08); }
.screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  color: #fff; background: var(--base); container-type: inline-size;
  transition: background .5s var(--ease);
}
/* --acc to kolor napisu na ciemnym tle; --acc-surface to ten sam status użyty
   jako duża płaszczyzna tła (układy Split, Minimal, Sidebar), gdzie napis jest
   biały. Dla „nieczynne" musi być ciemniejszy, inaczej biel na nim ginie. */
/* --acc  — kolor napisu na ciemnym tle,
   --acc-surface — ten sam status jako duża płaszczyzna pod białym napisem,
   --acc-ink — wersja przyciemniona, na jasne tło (układ Jasny). */
.screen[data-status="green"] { --base: var(--st-green-bg); --acc: var(--st-green); --acc-surface: #16a34a; --acc-ink: #15803d; }
.screen[data-status="red"]   { --base: var(--st-red-bg);   --acc: var(--st-red);   --acc-surface: var(--st-red);   --acc-ink: #b91c1c; }
.screen[data-status="gray"]  { --base: var(--st-gray-bg);  --acc: var(--st-gray);  --acc-surface: #47566b;         --acc-ink: #475569; }

.screen .facet { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.screen .facet .fb { fill: var(--base); transition: fill .5s var(--ease); }
.screen .facet .fa { fill: var(--acc); transition: fill .5s var(--ease); }
.screen .stage { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1.45fr 1fr; }
.screen .left { display: flex; flex-direction: column; justify-content: space-between; padding: 8% 5% 7% 6%; }
.screen .right { display: flex; flex-direction: column; justify-content: center; padding: 6%; border-left: 2px solid rgba(255, 255, 255, .18); }
.screen .cap { font-size: 3cqw; letter-spacing: .22em; text-transform: uppercase; opacity: .75; border-bottom: 2px solid rgba(255, 255, 255, .25); padding-bottom: .6cqw; align-self: flex-start; }
.screen .num { font-size: 19cqw; font-weight: 800; line-height: .85; letter-spacing: -.03em; }
/* Zdjęcie lekarza — koło z jasną obwódką, tak jak na ekranie z wtyczki. */
.screen .photo {
  display: block; width: 12.4cqw; height: 12.4cqw; margin-bottom: 1.6cqw;
  border-radius: 50%; overflow: hidden; border: .55cqw solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
}
.screen .photo svg, .screen .photo img { width: 100%; height: 100%; object-fit: cover; }
.screen .doc b { display: block; font-size: 3.4cqw; font-weight: 700; }
.screen .doc span { font-size: 2.4cqw; opacity: .8; }
.screen .lbl { font-size: 9cqw; font-weight: 800; line-height: .95; color: var(--acc); transition: color .5s var(--ease); letter-spacing: -.02em; }
/* „NIECZYNNE" to jedno długie słowo — przy 9cqw nie mieści się w kolumnie. */
.screen[data-status="gray"] .lbl { font-size: 6.2cqw; }
.screen .msg { font-size: 2.7cqw; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin-top: 1cqw; }
.screen[data-status="red"] .msg { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .9 } 50% { opacity: .45 } }
.screen .logo { position: absolute; z-index: 2; top: 5%; right: 5%; font-size: 2.1cqw; letter-spacing: .18em; text-transform: uppercase; opacity: .55; font-weight: 700; }

.screen[data-theme="split"] { background: var(--acc-surface); }
.screen[data-theme="split"] .facet { display: none; }
.screen[data-theme="split"] .lbl { color: #fff; }
.screen[data-theme="minimal"] { background: var(--acc-surface); }
.screen[data-theme="minimal"] .facet, .screen[data-theme="minimal"] .left { display: none; }
.screen[data-theme="minimal"] .stage { grid-template-columns: 1fr; }
.screen[data-theme="minimal"] .right { align-items: center; text-align: center; border: 0; }
.screen[data-theme="minimal"] .lbl { color: #fff; font-size: 13cqw; }
.screen[data-theme="sidebar"] { background: #0f172a; }
.screen[data-theme="sidebar"] .facet { display: none; }
.screen[data-theme="sidebar"] .stage { grid-template-columns: .85fr 1fr; }
.screen[data-theme="sidebar"] .left { background: var(--acc-surface); transition: background .5s var(--ease); }
.screen[data-theme="sidebar"] .right { border: 0; }
.screen[data-theme="sidebar"] .lbl { color: #fff; }
.screen[data-theme="photo"] .facet { display: none; }
.screen[data-theme="photo"] {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .25)),
    radial-gradient(120% 90% at 78% 22%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 62%),
    linear-gradient(155deg, #1c2a3c, #0a1119);
}
.screen[data-theme="photo"] .lbl, .screen[data-theme="photo"] .num, .screen[data-theme="photo"] .doc b { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.screen[data-theme="photo"] .lbl { color: #fff; }

/* ---------- Układ: JASNY (jasna tabliczka do jasnych wnętrz) ---------- */
.screen[data-theme="jasny"] { background: #f3f5f7; color: #10201f; }
.screen[data-theme="jasny"] .facet { display: none; }
.screen[data-theme="jasny"] .right { border-left-color: rgba(16, 32, 31, .12); }
.screen[data-theme="jasny"] .cap { border-bottom-color: rgba(16, 32, 31, .22); opacity: .55; }
.screen[data-theme="jasny"] .lbl { color: var(--acc-ink); }
.screen[data-theme="jasny"] .msg { opacity: .6; }
.screen[data-theme="jasny"] .photo { border-color: rgba(16, 32, 31, .14); background: rgba(16, 32, 31, .06); }
.screen[data-theme="jasny"] .logo { opacity: .35; }

/* ---------- Układ: PAS (kolorowy pas u dołu, czytelny z daleka) ---------- */
.screen[data-theme="pas"] { background: #0f1720; }
.screen[data-theme="pas"] .facet { display: none; }
.screen[data-theme="pas"] .stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.screen[data-theme="pas"] .left { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 4%; padding: 6% 6% 3%; }
.screen[data-theme="pas"] .doc { text-align: right; }
.screen[data-theme="pas"] .photo { margin-left: auto; }
.screen[data-theme="pas"] .right {
  flex-direction: row; align-items: baseline; gap: 3cqw;
  border-left: 0; background: var(--acc-surface); padding: 3.5% 6%;
  transition: background .5s var(--ease);
}
.screen[data-theme="pas"] .lbl { color: #fff; font-size: 7cqw; }
.screen[data-theme="pas"] .msg { margin-top: 0; }

/* ---------- Układ: TWÓJ (przykład projektu szytego na miarę) ---------- */
.screen[data-theme="twoj"] { background: radial-gradient(120% 130% at 14% 8%, #12463d, #061a17 62%); }
.screen[data-theme="twoj"] .facet { display: none; }
.screen[data-theme="twoj"]::after {
  content: ""; position: absolute; inset: 3.5%; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 2.5cqw;
}
.screen[data-theme="twoj"] .stage { padding: 2%; }
.screen[data-theme="twoj"] .cap { border-bottom-color: var(--accent); opacity: .9; }
.screen[data-theme="twoj"] .num { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.screen[data-theme="twoj"] .right { border-left-color: rgba(255, 255, 255, .14); }
.screen[data-theme="twoj"] .logo { color: var(--accent); opacity: .8; }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .875rem; margin-top: 1rem; }
/* Przy ośmiu układach przyciski nie mieszczą się w jednym rzędzie, więc
   przełącznik dostaje pełną szerokość i łagodniejsze rogi — dwa rzędy w
   kształcie pigułki wyglądały jak błąd. */
.demo-bar--stack { flex-direction: column; align-items: stretch; gap: .5rem; }
/* Osiem układów układa się w równą siatkę 4×2 — przy zwykłym zawijaniu
   ostatni przycisk zostawał sam w drugim rzędzie i wyglądało to na błąd. */
.seg.seg--wide { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; border-radius: 1rem; gap: .25rem; }
.seg--wide button { padding: .6rem .5rem; }
@media (max-width: 400px) { .seg.seg--wide { grid-template-columns: repeat(2, 1fr); } }
.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.seg button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px; font-size: .8125rem; font-weight: 700;
  transition: background .2s;
}
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.light .seg { background: rgba(16, 32, 31, .05); border-color: var(--line); }
.light .seg button { color: var(--muted); }
.light .seg button:hover { color: var(--ink); }
.light .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo-hint { font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.light .demo-hint { color: var(--muted); }

/* Pilot 7" */
.pilot {
  aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; container-type: inline-size;
  background: #0f172a; display: grid; grid-template-rows: auto 1fr; color: #fff;
}
.pilot-head { padding: 4cqw 5cqw 2cqw; font-size: 3cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .55; font-weight: 700; }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 0 5cqw 5cqw; }
.pilot-btn {
  border-radius: 2.5cqw; display: grid; place-content: center; text-align: center; gap: 1cqw;
  font-weight: 800; font-size: 5cqw; line-height: 1; padding: 6cqw 2cqw; border: 2px solid transparent; letter-spacing: -.02em;
}
.pilot-btn small { display: block; font-size: 2.3cqw; font-weight: 600; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.pilot-btn[data-s="green"] { background: color-mix(in srgb, var(--st-green) 20%, #0f172a); color: var(--st-green); border-color: color-mix(in srgb, var(--st-green) 45%, transparent); }
.pilot-btn[data-s="red"] { background: color-mix(in srgb, var(--st-red) 20%, #0f172a); color: var(--st-red); border-color: color-mix(in srgb, var(--st-red) 45%, transparent); }
.pilot-btn[data-s="gray"] { background: color-mix(in srgb, var(--st-gray) 16%, #0f172a); color: var(--st-gray); border-color: color-mix(in srgb, var(--st-gray) 38%, transparent); }
.pilot-btn[data-active] { box-shadow: 0 0 0 .9cqw color-mix(in srgb, currentColor 28%, transparent); }

/* Panel placówki */
.panel { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); container-type: inline-size; display: grid; grid-template-rows: auto 1fr; }
.panel-bar { display: flex; align-items: center; gap: 1.6cqw; padding: 2.6cqw 3.4cqw; background: var(--paper); border-bottom: 1px solid var(--line); }
.panel-bar i { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--line-strong); }
.panel-bar code { margin-left: 2cqw; font-family: var(--font-mono); font-size: 2.3cqw; color: var(--muted); }
.panel-body { padding: 3.4cqw; }
.panel-title { display: flex; justify-content: space-between; font-size: 2.4cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4cqw; }
.panel-title em { font-style: normal; color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.tile { border-radius: 2cqw; border: 1px solid; padding: 3cqw 1cqw; text-align: center; }
.tile b { display: block; font-size: 4cqw; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tile span { display: block; margin-top: 1.2cqw; font-size: 1.9cqw; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.tile[data-s="green"] { background: rgba(34, 197, 94, .12); color: #15803d; border-color: rgba(34, 197, 94, .35); }
.tile[data-s="red"] { background: rgba(239, 68, 68, .12); color: #b91c1c; border-color: rgba(239, 68, 68, .35); }
.tile[data-s="gray"] { background: rgba(16, 32, 31, .05); color: var(--muted); border-color: var(--line); }

/* ---------- Karty i siatki ---------- */
/* Elementy siatki domyślnie nie kurczą się poniżej swojej treści, więc jeden
   długi wiersz kodu potrafi rozepchnąć kolumnę i całą stronę. min-width: 0
   pozwala im się zwęzić — kod przewija się wtedy we własnej ramce. */
.grid > *, .two-col > *, .bento > *, .plans > *, .hero-grid > *,
.contact > *, .foot > *, .flow > *, .steps > * { min-width: 0; }
.code { max-width: 100%; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(16, 32, 31, .35); border-color: var(--line-strong); }
.card .h3 { margin-top: .25rem; }
.card p { margin-top: .75rem; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #fff; }
.dark .card p { color: rgba(255, 255, 255, .68); }
.dark .card:hover { border-color: rgba(255, 255, 255, .25); box-shadow: none; }

.idx { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--brand); }
.dark .idx { color: var(--mint); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-2); color: var(--brand); margin-bottom: 1.125rem; }
.ico svg { width: 22px; height: 22px; }
.dark .ico { background: rgba(201, 242, 226, .12); color: var(--mint); }

.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .6rem; font-size: .9375rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.dark .checks li::before { border-color: var(--mint); }

/* Bento */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 3.5rem; }
.bento .card { display: flex; flex-direction: column; }
.bento .card--tall { justify-content: space-between; }
.bento .fig { margin-top: 1.5rem; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 4; }
}

/* Duże liczby */
.bignum { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.bignum small { font-size: .45em; font-weight: 700; letter-spacing: -.02em; }

/* ---------- Kod / integracje ---------- */
.code {
  margin: 0; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.75; color: #dbe9e4;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm);
  padding: 1.125rem 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.code .k { color: var(--mint); }
.code .v { color: #ffb59e; }
.code .c { color: rgba(255, 255, 255, .4); }
.code-label { display: block; margin: 1.5rem 0 .5rem; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

.marquee { overflow: hidden; margin-top: 3rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: .75rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }
.pill { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); font-size: .875rem; font-weight: 600; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Schemat przepływu */
.flow { display: grid; gap: 1rem; margin-top: 3rem; }
.flow-node { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); padding: 1.125rem 1.25rem; }
.flow-node b { display: block; font-size: 1rem; }
.flow-node span { display: block; margin-top: .3rem; font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.flow-node .t { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: .5rem; display: block; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
  .flow-arrow { width: 44px; height: 24px; color: var(--mint); opacity: .7; }
}
@media (max-width: 1023px) { .flow-arrow { display: none; } }

/* ---------- Segmenty ---------- */
.seg-list { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid var(--line); }
.seg-row { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.seg-row b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.seg-row p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 768px) { .seg-row { grid-template-columns: 16rem 1fr; gap: 2rem; } }

/* ---------- Kroki ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8125rem; color: var(--brand); letter-spacing: .1em; padding-top: .35rem;
}
.step b { display: block; font-size: 1.125rem; letter-spacing: -.02em; }
.step p { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.scope { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--mint-2); border: 1px solid rgba(14, 123, 108, .18); }
.scope .kicker { margin-bottom: .5rem; }
.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; align-items: start; } }

/* ---------- Pakiety ---------- */
.plans { display: grid; gap: 1.25rem; margin-top: 3.5rem; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; }
.plan .name { font-size: 1.625rem; font-weight: 800; letter-spacing: -.03em; }
.plan .for { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.plan .checks { flex: 1; margin-top: 1.5rem; }
.plan .btn { margin-top: 2rem; }
.plan--hot { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.plan--hot .for { color: rgba(255, 255, 255, .65); }
.plan--hot .checks li::before { border-color: var(--mint); }
.plan--hot:hover { box-shadow: var(--shadow-lg); }
.badge { display: inline-flex; align-self: flex-start; padding: .35rem .7rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 500; transition: transform .25s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .a { padding: 0 0 1.5rem; color: var(--muted); max-width: 44rem; font-size: .9875rem; }
.faq .a p + p { margin-top: .75rem; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; } }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 123, 108, .15); }
.field textarea { min-height: 8rem; resize: vertical; }
.field--row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field--row { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; color: var(--muted); }
.consent input { margin-top: .25rem; accent-color: var(--brand); }
.form-note { font-size: .8125rem; color: var(--muted); }

/* Contact Form 7 w naszej siatce */
.form .wpcf7-form { display: grid; gap: 1rem; }
.form .wpcf7-form p { display: grid; gap: .4rem; margin: 0; }
.form .wpcf7-form br { display: none; }

/* Etykieta i pole w jednej kolumnie — działa i dla <label class="field">, i dla
   akapitów, które Contact Form 7 dorabia sam. */
.form .wpcf7-form .field { display: grid; gap: .4rem; }
.form .wpcf7-form .field > span:first-child { font-size: .8125rem; font-weight: 700; }
.form .wpcf7-form .field--row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .wpcf7-form .field--row { grid-template-columns: 1fr 1fr; } }

.form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]),
.form .wpcf7-form textarea,
.form .wpcf7-form select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form .wpcf7-form textarea { min-height: 8rem; resize: vertical; }
.form .wpcf7-form input:focus, .form .wpcf7-form textarea:focus, .form .wpcf7-form select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 123, 108, .15);
}
.form .wpcf7-form .wpcf7-form-control-wrap { display: block; }

/* Zgoda na kontakt */
.form .wpcf7-form .consent, .form .wpcf7-form .wpcf7-acceptance {
  display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; color: var(--muted);
}
.form .wpcf7-form .wpcf7-list-item { margin: 0; }
.form .wpcf7-form input[type="checkbox"] { accent-color: var(--brand); margin-top: .2rem; }

.form .wpcf7-form input[type="submit"] {
  justify-self: start; padding: .95rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9375rem; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(255, 106, 69, .7); transition: background .2s;
}
.form .wpcf7-form input[type="submit"]:hover { background: var(--accent-hover); }

/* Komunikaty wtyczki: sukces na miętowo, błąd na koralowo — bez ramek rodem z 2010 roku. */
.form .wpcf7-response-output {
  margin: 0 !important; border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm); padding: .9rem 1.1rem !important; font-size: .9375rem;
}
.form .wpcf7 form.sent .wpcf7-response-output { background: var(--mint-2); border-color: rgba(14, 123, 108, .3) !important; color: var(--brand-deep); }
.form .wpcf7 form.invalid .wpcf7-response-output,
.form .wpcf7 form.failed .wpcf7-response-output { background: var(--accent-soft); border-color: rgba(255, 106, 69, .4) !important; color: #8c2c12; }
.form .wpcf7-not-valid-tip { font-size: .8125rem; color: #b3300f; }
.form .wpcf7-form .wpcf7-not-valid { border-color: #e0602f; }
.form .wpcf7-spinner { margin: 0 0 0 .5rem; }

.aside { display: grid; gap: 1.25rem; align-content: start; }
.aside .card { padding: 1.5rem; }
.aside .card .t { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aside .card b { display: block; margin-top: .4rem; font-size: 1.25rem; letter-spacing: -.02em; }
.aside .card a { color: inherit; text-decoration: none; }
.aside .card a:hover { color: var(--brand); }
.aside .card p { margin-top: .35rem; }

/* ---------- Pasek CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band .glow--teal { width: 30rem; height: 30rem; top: -12rem; left: -8rem; }
.cta-band .glow--coral { width: 22rem; height: 22rem; bottom: -12rem; right: -6rem; }
.cta-band .h2 { max-width: 30ch; margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 4rem 2.5rem; font-size: .9375rem; }
.foot { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .brand { color: #fff; }
.foot p { margin-top: 1rem; max-width: 26rem; line-height: 1.6; }
.foot h4 { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .8125rem; color: rgba(255, 255, 255, .45); }
.foot-bottom a { color: inherit; }

/* ---------- Wejścia przy scrollu ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Treść podstron ---------- */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: var(--brand); }
