/* Fonty lokalne. Wersja B nie odpytuje fonts.googleapis.com.
   Inter: plik zmienny 100-900. Montserrat: plik zmienny 100-900, na życzenie
   właściciela z 2026-07-28 zastąpił Space Grotesk w nagłówkach (chunkowy,
   zaokrąglony wygląd z referencyjnego landingu Świadome Nawyki).
   Space Grotesk zostaje wyłącznie dla SVG pętli w sekcji Sedno, które woła
   go bezpośrednio przez atrybut font-family, niezależnie od --font-heading. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("montserrat-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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("montserrat-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;
}

:root {
  color-scheme: dark;
  --black: #050506;
  --black-soft: #0a0b0d;
  --surface: #111317;
  --surface-raised: #171a20;
  /* Czerwień podniesiona do #FF1744 na życzenie właściciela z 2026-07-28.
     Ma być neonowa i nasycona, nie przygaszony róż. */
  --red: #b80000;
  --red-deep: #7a1026;
  --red-glow: rgba(184, 0, 0, 0.28);
  --white: #f5f2ed;
  --gray: #a7a7ad;
  --gray-dark: #6e7178;
  /* Paleta sekcji 03: karty na czystej czerni, ramki w ciemnej czerwieni. */
  --work-card: #0b0c10;
  --work-border: #7a1026;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-size-h1: clamp(2.375rem, 1.4rem + 3.6vw, 4.25rem);
  --font-size-h2: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --font-size-h3: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);
  --font-size-h4: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --font-size-lead: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --font-size-body: 1.0625rem;
  --font-size-card: 1rem;
  --font-size-small: 0.875rem;
  --font-size-micro: 0.75rem;
  --line-height-h1: 1.02;
  --line-height-h2: 1.08;
  --line-height-h3: 1.2;
  --line-height-h4: 1.3;
  --line-height-body: 1.65;
  --tracking-h1: -0.045em;
  --tracking-h2: -0.035em;
  --tracking-h3: -0.02em;
  --tracking-label: 0.1em;
  --container: 1240px;
  --section-space: clamp(4rem, 6vw, 6rem);
  --radius-sm: 3px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    var(--black) url("tlo.png") no-repeat center center fixed;
  background-size: cover;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

body.modal-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

/* Akcenty w treści. Pogrubienie na ciemnym tle musi rozjaśniać tekst,
   samo zwiększenie grubości jest w tej palecie prawie niewidoczne.
   Reguła celuje wyłącznie w bloki tekstowe, nie rusza komponentów,
   które mają własne style dla <strong> (karty, podpisy, stopka). */
.hero-lead strong,
.service-boundary strong,
.cta-microcopy strong,
.loop-intro strong,
.loop-card-body strong,
.loop-return-body strong,
.history-prose strong,
.work-lead strong,
.work-step-body strong,
.case-intro strong,
.route-column strong,
.result-copy-list strong,
.final-cta-copy strong {
  color: var(--white);
  font-weight: 700;
}

p,
h1,
h2,
h3,
h4,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 900;
  line-height: var(--line-height-h1);
  letter-spacing: var(--tracking-h1);
}

h2 {
  max-width: 53.75rem;
  font-size: var(--font-size-h2);
  font-weight: 800;
  line-height: var(--line-height-h2);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: 800;
  line-height: var(--line-height-h3);
  letter-spacing: var(--tracking-h3);
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: 700;
  line-height: var(--line-height-h4);
  letter-spacing: -0.01em;
}

::selection {
  color: var(--white);
  background: var(--red-deep);
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--black);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  position: relative;
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  padding-block: var(--section-space);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.875rem;
  color: var(--red);
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.section-number {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 23, 68, 0.62);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.13);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.text-accent {
  color: var(--red);
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 3.625rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 0.85rem 1.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 34px rgba(255, 23, 68, 0.2);
}

.button-primary:hover {
  background: var(--red);
  box-shadow: 0 16px 42px rgba(255, 23, 68, 0.3);
}

.button-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.button:hover .button-arrow {
  transform: translateX(0.2rem);
}

.cta-image-link {
  display: inline-block;
  width: min(100%, 360px);
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 12px;
}

.cta-image-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.cta-image-link:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 12px 34px rgba(255, 23, 68, 0.4)) brightness(1.05);
}

.cta-microcopy {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--gray-dark);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #000000;
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.42), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.header-inner {
  display: grid;
  width: min(var(--container), calc(100% - 3rem));
  min-height: 5.25rem;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  justify-self: start;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-image {
  width: auto;
  height: 100px;
  margin-top: -25px; /* Niweluje puste tło z góry obrazka */
  margin-bottom: -5px; /* Niweluje puste tło z dołu obrazka */
  margin-left: -20px;
  display: block;
  mix-blend-mode: screen;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.desktop-nav a {
  position: relative;
  color: #b9b8b4;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-self: end;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.header-cta:hover {
  background: #d00025;
  transform: translateY(-1px);
}

/* Hero */

.hero {
  width: min(1390px, calc(100% - 2rem));
  min-height: calc(100svh - 5.25rem);
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: 2rem;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100svh - 10rem));
  grid-template-columns: minmax(0, 58fr) minmax(24rem, 42fr);
  grid-template-areas: "copy media";
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
  background:
    linear-gradient(110deg, rgba(17, 19, 23, 0.78), rgba(5, 5, 6, 0.15) 67%),
    var(--black-soft);
  box-shadow: var(--shadow-panel);
}


.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  max-width: 49rem;
  padding: clamp(3rem, 5.6vw, 6.25rem) clamp(2rem, 5.3vw, 5.25rem);
  grid-area: copy;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: min(56.25rem, 13.5ch);
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.4rem);
  font-weight: 900;
  line-height: var(--line-height-h1);
}

.hero-lead {
  max-width: 47.5rem;
  margin-bottom: 1.5rem;
  color: #e0ddd7;
  font-family: var(--font-body);
  font-size: var(--font-size-lead);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.service-boundary {
  max-width: 43rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 1px solid rgba(255, 23, 68, 0.8);
}

.service-boundary p {
  margin-bottom: 0.7rem;
  color: var(--gray);
  font-size: var(--font-size-card);
  font-weight: 400;
  line-height: 1.6;
}

.service-boundary p:last-child {
  margin-bottom: 0;
}

.cta-stack {
  margin-top: 2rem;
}

.hero-media {
  position: relative;
  z-index: 2;
  min-height: 100%;
  grid-area: media;
}

.portrait-glow {
  position: absolute;
  z-index: 0;
  inset: 20% -18% 7% -18%;
  border-radius: 50%;
  background: rgba(255, 23, 68, 0.26);
  filter: blur(64px);
}

.portrait-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.portrait-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--black-soft), transparent 23%),
    linear-gradient(0deg, var(--black-soft), transparent 23%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.22), transparent 30%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 42%;
  filter: saturate(0.78) contrast(1.06);
  transform: scale(1.01);
}

.hero-decision-line {
  position: absolute;
  z-index: 6;
  top: 8%;
  bottom: 8%;
  left: 58%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--red) 12%, var(--red) 86%, transparent);
  box-shadow: 0 0 18px rgba(255, 23, 68, 0.78);
}

.hero-decision-line span {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px var(--red), 0 0 20px var(--red);
  transform: translate(-50%, -50%);
}

.portrait-note {
  position: absolute;
  z-index: 7;
  left: 1.05rem;
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.portrait-note-plan {
  top: 12%;
  color: var(--gray-dark);
}

.portrait-note-reaction {
  bottom: 12%;
  color: var(--red);
}

.trust-rail {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  background: rgba(10, 11, 13, 0.9);
}

.trust-item {
  position: relative;
  padding: 1.4rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  content: "";
  background: var(--red);
}

.trust-item strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2.125rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.trust-item > span {
  color: var(--gray);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* History */

.history::before,
.case-study::before,
.pilot::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.42), transparent);
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.history-visual {
  position: sticky;
  top: 8rem;
  min-height: 45rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (hover: hover) and (pointer: fine) {
  .history-visual:hover {
    transform: scale(1.02);
  }
  
  .history-visual:hover .history-image {
    box-shadow: 
      0 0 30px rgba(224, 17, 58, 0.3),
      var(--shadow-panel);
    border-color: rgba(224, 17, 58, 0.5);
  }
}

.history-image {
  position: absolute;
  top: 0;
  right: 8%;
  bottom: 4rem;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}



.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.loss-marker {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(18rem, 76%);
  padding: 1.3rem 1.45rem;
  border: 1px solid rgba(255, 23, 68, 0.38);
  border-radius: var(--radius-sm);
  background: rgba(10, 11, 13, 0.96);
  box-shadow: var(--shadow-panel);
}

.loss-marker span,
.loss-marker small {
  display: block;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.history-copy {
  position: relative;
  padding-left: clamp(1.4rem, 3vw, 3rem);
}

.history-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(var(--red), rgba(255, 23, 68, 0.1));
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.25);
}

.history h2 {
  max-width: 53.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

.history-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 2rem;
}

.history-prose p {
  color: #c3c1bc;
  font-size: var(--font-size-card);
  font-weight: 400;
  line-height: 1.65;
}

/* Case study */

.case-study {
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "art"
    "copy"
    "testimonial"
    "evidence"
    "risk";
  align-items: start;
  row-gap: clamp(2rem, 5vw, 3.5rem);
}

.case-copy {
  min-width: 0;
  grid-area: copy;
}

.case-art-card {
  grid-area: art;
}

.case-testimonial {
  grid-area: testimonial;
}

.evidence-panel {
  min-width: 0;
  grid-area: evidence;
}

.risk-note {
  grid-area: risk;
}

.case-study .section-label {
  margin-bottom: clamp(1.5rem, 2.5vw, 1.75rem);
}

.case-study h2 {
  width: min(100%, 29.375rem);
  max-width: 29.375rem;
  margin-bottom: 1.125rem;
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

.case-route {
  position: relative;
  margin: 1.25rem 0 2rem;
  padding-left: 1.25rem;
}

.case-route::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 23, 68, 0.75);
}

.route-item {
  position: relative;
  display: grid;
  padding: 1.25rem 0 1.375rem;
  grid-template-columns:
    minmax(7.5rem, 8.5rem)
    minmax(0, 1fr)
    minmax(0, 1fr);
  align-items: start;
  gap: 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.route-item::before {
  position: absolute;
  top: 1.25rem;
  left: -1.5rem;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  border-radius: 50%;
  background: #b80000;
  box-shadow: 0 0 12px rgba(184, 0, 0, 0.75);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(184, 0, 0, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(184, 0, 0, 1);
    transform: scale(1.15);
  }
}

.route-label {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-column {
  min-width: 0;
}

.route-column p {
  margin: 0;
  color: var(--gray);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
}

.route-column p + p {
  margin-top: 0.8rem;
}

.result-copy {
  position: relative;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--red);
  border-radius: 0.625rem;
  background: 
    radial-gradient(ellipse at top right, rgba(184, 0, 0, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(184, 0, 0, 0.18) 0%, transparent 60%),
    var(--surface);
}

.result-copy::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  background: var(--black);
}

.result-copy-eyebrow {
  color: var(--red);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.result-copy-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 3rem;
}

.result-copy-title .accent {
  color: var(--red);
}

.result-copy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-copy-list li {
  position: relative;
  padding-left: 2.5rem;
  color: #b6b4b0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.result-copy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.25rem;
  height: 1px;
  background-color: var(--red);
}

.case-testimonial {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--red);
  border-radius: 0.625rem;
  background: 
    radial-gradient(ellipse at top right, rgba(184, 0, 0, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(184, 0, 0, 0.18) 0%, transparent 60%),
    var(--surface);
}

.case-testimonial::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  background: var(--black);
}

.case-testimonial img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.case-testimonial blockquote {
  margin: 0;
}

.case-testimonial blockquote p {
  margin: 0;
  color: #c6c3be;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
}

.case-testimonial blockquote p + p {
  margin-top: 0.85rem;
}

.case-testimonial figcaption {
  display: grid;
  margin-top: 1.25rem;
  padding-top: 1rem;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
}

.case-testimonial figcaption strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.case-testimonial figcaption span,
.case-testimonial figcaption small {
  color: var(--gray);
  font-size: 0.75rem;
  line-height: 1.5;
}

.case-testimonial figcaption small {
  margin-top: 0.35rem;
  color: var(--red);
}

.case-art-card {
  margin: 0;
  overflow: hidden;
  border: 2px solid #b80000;
  border-radius: 0.75rem;
  background: #050506;
  box-shadow:
    0 0 5px rgba(184, 0, 0, 0.95),
    0 0 16px rgba(184, 0, 0, 0.55),
    inset 0 0 16px rgba(184, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .case-art-card.case-art-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  }
}

.case-art-bar {
  display: flex;
  min-height: 2.875rem;
  padding-inline: clamp(1.25rem, 3vw, 1.5rem);
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  color: #d4d2ce;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-art-bar strong {
  color: var(--red);
  font-weight: 600;
}

.case-art-card img {
  width: 100%;
  height: auto;
}

.evidence-panel {
  padding:
    clamp(1.25rem, 2.5vw, 1.5rem)
    clamp(1rem, 2vw, 1.125rem)
    1.25rem;
  border: 2px solid #b80000;
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(184, 0, 0, 0.07), transparent 45%),
    #080809;
  box-shadow:
    0 0 5px rgba(184, 0, 0, 0.95),
    0 0 16px rgba(184, 0, 0, 0.55),
    inset 0 0 16px rgba(184, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .evidence-panel.evidence-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  }
}

.evidence-heading {
  margin-bottom: 1rem;
  text-align: center;
}

.evidence-heading h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4375rem, 1.35rem + 0.2vw, 1.5rem);
  text-transform: uppercase;
}

.evidence-heading p {
  margin: 0;
  color: #b7b5b1;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  line-height: 1.45;
}

.payout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.3vw, 0.875rem);
}

.payout-card {
  display: grid;
  min-width: 0;
  padding: 0.9rem 0.55rem;
  place-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: rgba(17, 19, 23, 0.82);
  text-align: center;
}

.payout-amount {
  color: #00FF55; /* żywy, neonowy zielony */
  text-shadow: 0 0 12px rgba(0, 255, 85, 0.4);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.12rem + 0.32vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payout-label {
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payout-source {
  color: var(--gray);
  font-size: 0.75rem;
  line-height: 1.3;
}

.certificate-zoom {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0.4375rem;
  background: #050506;
  cursor: zoom-in;
}

.certificate-zoom img {
  width: 100%;
  height: auto;
}

.certificate-zoom:hover {
  border-color: rgba(255, 23, 68, 0.78);
}

.certificate-zoom:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.evidence-caption {
  margin: 0.875rem 0 0;
  color: var(--gray);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.risk-note {
  display: grid;
  margin: 0;
  padding-top: 0.875rem;
  grid-template-columns: minmax(7.5rem, 8rem) minmax(0, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.5;
}

.risk-note-label {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .case-grid {
    grid-template-columns:
      minmax(0, 0.86fr)
      minmax(30rem, 1.14fr);
    grid-template-areas:
      "copy art"
      "testimonial art"
      "risk evidence";
    gap:
      clamp(1.75rem, 3vw, 2.5rem)
      clamp(2.5rem, 4.5vw, 3.75rem);
  }
}

@media (max-width: 1023px) {
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "art"
      "copy"
      "evidence"
      "testimonial"
      "risk";
  }
}

@media (max-width: 699px) {
  .route-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.625rem;
  }

  .risk-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 430px) {
  .payout-grid {
    gap: 0.5rem;
  }

  .payout-card {
    padding-inline: 0.35rem;
  }

  .payout-amount {
    font-size: clamp(1.05rem, 4.4vw, 1.2rem);
  }

  .payout-source {
    font-size: 0.6875rem;
  }
}

@media (max-width: 349px) {
  .payout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pilot */

/* Brief 2026-07-28: czysta czerń bez szarej poświaty na całym tle.
   Czerwony blask zostaje tylko lokalnie, przy ikonach i numerach. */
.pilot {
  width: min(1390px, calc(100% - 2rem));
  margin-bottom: 2rem;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  overflow: hidden;
  background: transparent;
}

.pilot h2 {
  max-width: 53.75rem;
  margin-bottom: 0;
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
}

.final-cta {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  margin: clamp(5rem, 10vw, 9rem) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  align-items: center;
  flex-direction: column;
  color: var(--white);
  text-align: center;
}

.final-cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 23, 68, 0.5);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 23, 68, 0.08);
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.25;
  text-transform: uppercase;
}

.final-cta-badge .cta-badge-icon {
  flex: 0 0 auto;
  color: var(--red);
}

.final-cta .cta-heading {
  max-width: none;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: clamp(2.2rem, 1.55rem + 1.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
  margin: -0.5rem auto 2.5rem;
}

.cta-divider::before,
.cta-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.4));
}

.cta-divider::after {
  background: linear-gradient(-90deg, transparent, rgba(255, 23, 68, 0.4));
}

.cta-divider-icon {
  flex: 0 0 auto;
  color: var(--red);
}

.final-cta-copy {
  width: min(640px, 100%);
  margin-inline: auto;
}

.final-cta-copy p {
  margin: 0 0 0.85rem;
  color: #aaa8a4;
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
}

.final-cta-copy p:first-child {
  color: #d2d0cc;
  font-size: var(--font-size-body);
}

.final-cta .button {
  width: min(620px, 100%);
  min-height: 4rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-inline: 1.5rem;
  box-shadow: 0 14px 40px rgba(255, 23, 68, 0.24);
  font-size: 1.1rem;
}

.cta-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: #aaa8a4;
  font-size: 0.9rem;
}

.cta-feature-icon {
  color: var(--red);
}

.cta-feature-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--line-strong);
}
/* Footer */

.site-footer {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  padding-bottom: 2.5rem;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

.footer-name {
  margin-bottom: 0.2rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}

.footer-grid p:not(.footer-name) {
  margin: 0;
  color: var(--gray);
  font-size: var(--font-size-small);
  line-height: 1.55;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.footer-contact span {
  color: var(--gray-dark);
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.footer-contact a {
  font-size: var(--font-size-small);
  line-height: 1.55;
  text-underline-offset: 0.25rem;
}

.footer-bottom {
  display: grid;
  padding-top: 1.5rem;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--gray-dark);
  font-size: var(--font-size-micro);
  line-height: 1.55;
}

.footer-bottom p:first-child {
  max-width: 56rem;
}

.footer-bottom p:last-child {
  white-space: nowrap;
}

/* Proof modal */

.proof-modal[hidden] {
  display: none;
}

.proof-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 2rem;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 3, 0.9);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(70rem, 100%);
  max-height: calc(100svh - 4rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  flex-direction: column;
}

.modal-topbar {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.modal-topbar p {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.modal-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.modal-close span {
  font-size: 1.6rem;
  line-height: 1;
}

.modal-image-wrap {
  min-height: 0;
  padding: 1rem;
  overflow: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--black-soft);
  background-size: 36px 36px;
}

.modal-image {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  margin-inline: auto;
  object-fit: contain;
}

.modal-caption {
  margin: 0;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* Reveal */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Responsive */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 56fr) minmax(22rem, 44fr);
  }

  .hero-decision-line {
    left: 56%;
  }

  .mechanism-grid {
    gap-inline: 1.6rem;
  }

  .loop-card {
    padding: 1.05rem;
  }
}

@media (max-width: 1080px) {
  .mechanism-grid {
    width: min(44rem, calc(100% - 4rem));
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.1rem;
  }

  .loop-connectors {
    display: none;
  }

  .loop-stage {
    width: min(100%, 35rem);
    margin: 0 auto 1.5rem;
    grid-column: 1;
    grid-row: auto;
    order: -1;
  }

  .loop-card[data-step] {
    min-height: 0;
    margin-left: 0.7rem;
    grid-column: 1;
    grid-row: auto;
  }

  .loop-card:not([data-step="6"])::after {
    position: absolute;
    z-index: -1;
    top: 100%;
    left: 2.95rem;
    width: 1px;
    height: 1.15rem;
    content: "";
    background: rgba(255, 23, 68, 0.48);
  }

  .loop-card[data-step="1"] {
    order: 1;
  }

  .loop-card[data-step="2"] {
    order: 2;
  }

  .loop-card[data-step="3"] {
    order: 3;
  }

  .loop-card[data-step="4"] {
    order: 4;
  }

  .loop-card[data-step="5"] {
    order: 5;
  }

  .loop-card[data-step="6"] {
    order: 6;
  }
}

@media (max-width: 920px) {
  :root {
    --line-height-h1: 1.04;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    width: min(100%, calc(100% - 1rem));
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy";
  }

  .hero-media {
    min-height: clamp(23rem, 75vw, 36rem);
  }

  .portrait-frame::before {
    background:
      linear-gradient(0deg, var(--black-soft), transparent 30%),
      linear-gradient(180deg, rgba(5, 5, 6, 0.18), transparent 30%);
  }

  .portrait-frame img {
    object-position: 50% 34%;
  }

  .hero-copy {
    max-width: none;
    margin-top: -4rem;
    padding: 2rem clamp(1.5rem, 6vw, 4rem) 3rem;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-decision-line {
    top: 3rem;
    bottom: 3rem;
    left: 1.5rem;
  }

  .portrait-note {
    display: none;
  }

  .trust-rail {
    margin-top: 0.6rem;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-visual {
    position: relative;
    top: auto;
    width: min(38rem, 100%);
    min-height: 38rem;
  }

  .history-copy {
    padding-left: 1.5rem;
  }

  .mechanism-heading {
    grid-template-columns: 1fr;
  }

  .mechanism-intro {
    max-width: 40rem;
  }.pilot-heading{
    grid-template-columns: 1fr;
  }

  .pilot-intro {
    max-width: 42rem;
  }

}

@media (max-width: 767px) {
  :root {
    --font-size-h1: 2.375rem;
    --font-size-h2: 1.875rem;
    --font-size-h3: 1.25rem;
    --font-size-h4: 1.0625rem;
    --font-size-body: 1rem;
    --line-height-h1: 1.06;
    --tracking-h1: -0.035em;
    --tracking-label: 0.08em;
  }.section-label, .technical-label, .mechanism .eyebrow{
    font-size: 0.6875rem;
  }

  .button-primary {
    width: 100%;
    min-height: 3.5rem;
    padding-inline: 1.25rem;
    font-size: 0.9375rem;
  }

}

@media (max-width: 720px) {
  .section-shell,
  .site-footer,
  .header-inner {
    width: min(100% - 2rem, var(--container));
  }

  .section-label {
    align-items: flex-start;
  }

  .hero {
    width: calc(100% - 0.75rem);
    padding-top: 1.25rem;
  }

  .hero-media {
    min-height: clamp(21rem, 98vw, 30rem);
  }

  .hero-copy {
    margin-top: -2.8rem;
    padding: 1.5rem 1.3rem 2rem 2.7rem;
  }

  .hero h1 {
    margin-bottom: 1.35rem;
  }

  .button {
    width: 100%;
    min-height: 3.5rem;
  }

  .hero-decision-line {
    left: 1.2rem;
  }

  .trust-item {
    padding: 1rem 0.75rem;
  }

  .history-visual {
    min-height: 33rem;
  }

  .history-copy {
    padding-left: 1rem;
  }

  .history-prose {
    grid-template-columns: 1fr;
  }

  .mechanism {
    width: calc(100% - 0.75rem);
  }

  .mechanism-heading,
  .score-callout,
  .score-bridge,
  .loop-return {
    width: calc(100% - 2.6rem);
  }

  .score-callout {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .score-callout p:last-child {
    text-align: left;
  }

  .score-callout > span {
    width: 2.5rem;
    height: 1px;
  }

  .mechanism-grid {
    width: calc(100% - 2.4rem);
  }

  .loop-card {
    padding: 1.1rem;
  }

  .pilot {
    width: calc(100% - 0.75rem);
    padding-inline: 1.3rem;
  }

  .final-cta {
    margin-top: 4rem;
    padding: 2rem 0;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
  }

  .proof-modal {
    padding: 0.75rem;
  }

  .modal-panel {
    max-height: calc(100svh - 1.5rem);
  }
}

@media (max-width: 430px) {
  .header-inner {
    min-height: 4.6rem;
  }

  .header-cta {
    min-height: 2.65rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 21rem;
  }

  .hero-copy {
    padding-right: 1rem;
  }

  .service-boundary {
    padding-left: 0.9rem;
  }

  .history-visual {
    min-height: 29rem;
  }

  .loss-marker {
    width: 80%;
  }

  .mechanism-grid {
    width: calc(100% - 1.6rem);
  }

  .loop-card {
    margin-left: 0.3rem !important;
  }

  .loop-card:not([data-step="6"])::after {
    left: 2.6rem;
  }

  .loop-num {
    width: 2.2rem;
    height: 2.2rem;
  }

}

@media (max-width: 359px) {
  :root {
    --font-size-h1: 2.125rem;
    --font-size-h2: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mechanism-video {
    display: none;
  }

  .mechanism-fallback {
    display: block;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Source-led Sedno section: SEKCJA_SEDNO_dla_Codex.md */

.block.mechanism {
  position: relative;
  width: min(1420px, calc(100% - 2rem));
  margin-inline: auto;
  padding: calc(var(--section-space) * 0.75) 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 53%, rgba(184, 0, 0, 0.12), transparent 26rem),
    linear-gradient(145deg, rgba(20, 20, 22, 0.86), rgba(5, 5, 6, 0.96));
  box-shadow: var(--shadow-panel);
  --text: #f4f2ef;
  --muted: #9a9a9e;
  --accent: #b80000;
  --accent-strong: #960000;
  --surface-2: #17171b;
  --accent-line: rgba(184, 0, 0, 0.55);
  --accent-glow: rgba(184, 0, 0, 0.3);
}

.mechanism .wrap {
  width: min(1240px, calc(100% - 4rem));
  max-width: 1240px;
  margin-inline: auto;
}

.mechanism .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--red);
  font-family: var(--font-body);
  font-size: var(--font-size-micro);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.mechanism .eyebrow::before {
  display: inline-block;
  width: 26px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.mechanism h2 {
  max-width: 53.75rem;
  margin: 0 0 1.25rem;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 800;
  line-height: var(--line-height-h2);
  letter-spacing: var(--tracking-h2);
}

.mechanism .accent {
  color: var(--accent);
}

.loop-intro {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.7;
}

.loop-diagram {
  --card-radius: 16px;
  --card-min-h: 72px;
  position: relative;
  display: grid;
  margin: 36px 0 32px;
  grid-template-columns: minmax(260px, 1.2fr) minmax(360px, 1.5fr) minmax(260px, 1.2fr);
  grid-template-rows: repeat(3, auto);
  align-items: center;
  gap: 16px 24px;
}

.loop-stage {
  position: relative;
  z-index: auto;
  width: 100%;
  aspect-ratio: 1000 / 600;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
}

.loop-stage-bg {
  position: absolute;
  z-index: 0;
  inset: -22% -14%;
  background: radial-gradient(ellipse 58% 54% at 50% 49%, rgba(184, 0, 0, 0.32), rgba(130, 0, 0, 0.12) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.loop-brain-vid {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(224, 17, 58, 0.4)) blur(0.4px);
  -webkit-mask: radial-gradient(ellipse 52% 58% at 50% 49%, #000 12%, rgba(0, 0, 0, 0.6) 42%, transparent 70%);
  mask: radial-gradient(ellipse 52% 58% at 50% 49%, #000 12%, rgba(0, 0, 0, 0.6) 42%, transparent 70%);
}

.loop-svg {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loop-node-dot .loop-node-ring {
  fill: none;
  stroke: rgba(255, 120, 140, 0.35);
  stroke-width: 2;
}

.loop-node-dot .loop-node-core {
  fill: #1a0509;
  stroke: #ff6b7e;
  stroke-width: 3.4;
  filter: drop-shadow(0 0 9px rgba(224, 17, 58, 1));
}

.loop-node-dot text {
  fill: #fff1f3;
}

.loop-card {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: var(--card-min-h);
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(224, 17, 58, 0.45);
  border-radius: var(--card-radius);
  background: var(--surface-2);
  box-shadow:
    0 0 0 1px rgba(224, 17, 58, 0.22),
    0 0 30px rgba(224, 17, 58, 0.26),
    inset 0 0 24px rgba(224, 17, 58, 0.1),
    0 18px 42px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .loop-card:hover {
    border-color: rgba(224, 17, 58, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    transform: translateY(-4px);
  }
}

.loop-card-body {
  min-width: 0;
}

.loop-card .loop-num {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #ff6b7e;
  border-radius: 50%;
  color: #fff1f3;
  background: #1a0509;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(224, 17, 58, 0.14), 0 0 12px rgba(224, 17, 58, 0.7);
}

.loop-card h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--tracking-h3);
}

.loop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.loop-card[data-step="1"] { grid-column: 1; grid-row: 1; }
.loop-card[data-step="2"] { grid-column: 1; grid-row: 2; }
.loop-card[data-step="3"] { grid-column: 1; grid-row: 3; }
.loop-card[data-step="6"] { grid-column: 3; grid-row: 1; }
.loop-card[data-step="5"] { grid-column: 3; grid-row: 2; }
.loop-card[data-step="4"] { grid-column: 3; grid-row: 3; }

.loop-connectors {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.conn-glow {
  fill: none;
  stroke: #e0113a;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0.3;
  filter: blur(2.5px);
}

.conn-line {
  fill: none;
  stroke: #ff6b7e;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.conn-dot {
  fill: #ffd0d8;
  filter: drop-shadow(0 0 6px rgba(224, 17, 58, 0.95));
}

.conn-gold.conn-glow {
  stroke: #ff8c1a;
  stroke-opacity: 0.4;
}

.conn-gold.conn-line {
  stroke: #ffb457;
}

.conn-gold.conn-dot {
  fill: #ffcf99;
  filter: drop-shadow(0 0 6px rgba(255, 140, 26, 0.95));
}

.loop-back {
  display: none;
}

.loop-return {
  display: flex;
  width: auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 20px 26px;
  border: 1px solid rgba(224, 17, 58, 0.4);
  border-radius: 14px;
  color: var(--text);
  background: rgba(224, 17, 58, 0.08);
  box-shadow: inset 0 0 26px rgba(224, 17, 58, 0.1);
  font-size: var(--font-size-card);
  font-weight: 400;
  line-height: 1.55;
}

.loop-return-icon {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
}

.loop-node-dot {
  animation: loopNodePulse 3.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.loop-node-dot:nth-of-type(2n) { animation-delay: 1.1s; }
.loop-node-dot:nth-of-type(3n) { animation-delay: 2s; }
.loop-return-arc { animation: loopReturnDash 1.4s linear infinite; }

@keyframes loopFlow {
  to { stroke-dashoffset: 2760; }
}

@keyframes loopNodePulse {
  0%,
  100% { opacity: 0.9; }
  50% { opacity: 1; }
}

@keyframes loopReturnDash {
  to { stroke-dashoffset: -32; }
}

.loop-callout {
  margin: 26px 0 6px;
  padding: 22px 26px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: rgba(224, 17, 58, 0.06);
  box-shadow: inset 0 0 30px rgba(224, 17, 58, 0.08);
}

.loop-callout p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.55;
}

.loop-callout p + p {
  margin-top: 6px;
}

.loop-node-dot--hot .loop-node-ring {
  stroke: rgba(255, 90, 120, 0.6);
}

.loop-node-dot--hot .loop-node-core {
  stroke: #ff4d68;
  stroke-width: 3.8;
  filter: drop-shadow(0 0 15px rgba(224, 17, 58, 1));
}

.loop-node-dot .loop-node-core,
.loop-node-dot text {
  transition:
    stroke 0.25s ease,
    stroke-width 0.25s ease,
    fill 0.25s ease,
    filter 0.25s ease;
}

.loop-node-dot.node-lit .loop-node-core {
  stroke: #fff;
  stroke-width: 4.6;
  filter: drop-shadow(0 0 18px rgba(255, 80, 110, 1)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.9));
}

.loop-node-dot.node-lit .loop-node-ring {
  stroke: rgba(255, 255, 255, 0.85);
}

.loop-node-dot.node-lit text {
  fill: #fff;
}

/* New copy modules inside the existing Pilot section */

.loss-marker p {
  margin: 0.45rem 0 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--font-size-card);
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .loop-connectors {
    display: none;
  }

  .loop-diagram {
    margin-bottom: 26px;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }

  .loop-stage {
    order: -1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 30px;
    grid-column: 1;
    grid-row: auto;
  }

  .loop-card {
    margin-left: 8px !important;
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .loop-card + .loop-card {
    margin-top: 24px;
  }

  .loop-card[data-step]::after {
    content: none;
  }

  .loop-card:not(:last-of-type)::after {
    position: absolute;
    z-index: 0;
    top: 100%;
    left: 46px;
    width: 2px;
    height: 24px;
    content: "";
    background: rgba(224, 17, 58, 0.55);
  }

  /* Pulsowanie odznaki numeru na mobile, gdzie orbita z desktopu jest
     ukryta. Technika zapożyczona z sekcji „Pętla schematu" na landingu
     Świadome Nawyki: opóźnienie rośnie wraz z numerem karty, tak żeby
     wyglądało to na sygnał przechodzący przez cały cykl. */
  .loop-card .loop-num {
    animation: loop-mobile-pulse 5s ease-in-out infinite;
  }

  .loop-card[data-step="1"] .loop-num { animation-delay: 0s; }
  .loop-card[data-step="2"] .loop-num { animation-delay: 0.6s; }
  .loop-card[data-step="3"] .loop-num { animation-delay: 1.2s; }
  .loop-card[data-step="4"] .loop-num { animation-delay: 1.8s; }
  .loop-card[data-step="5"] .loop-num { animation-delay: 2.4s; }
  .loop-card[data-step="6"] .loop-num { animation-delay: 3s; }

  .loop-back {
    display: none;
  }
}

@keyframes loop-mobile-pulse {
  0%, 75%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(255, 214, 222, 0)); }
  12% { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(255, 214, 222, 0.85)); }
}

@media (max-width: 920px) {
}

@media (max-width: 720px) {
  .mechanism .wrap {
    width: min(100% - 2rem, 1240px);
  }

  .block.mechanism {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 767px) {
  .loop-card h3 {
    font-size: 1.0625rem;
  }
}

@media (max-width: 480px) {
  .loop-card {
    padding: 16px;
  }

  .loop-card:not(:last-of-type)::after {
    left: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loop-flow,
  .loop-node-dot,
  .loop-return-arc,
  .loop-card .loop-num {
    animation: none;
  }

  .loop-flow {
    display: none;
  }
}

/* ============================================================
   WIZYTÓWKA v2. Style wymuszone nową strukturą.
   Komponowane z istniejących klas, bez nowego systemu.
   ============================================================ */

/* Sedno. Zamknięcie rozszerzone do dwóch akapitów. */
.loop-return {
  align-items: flex-start;
}

.loop-return-body {
  display: grid;
  gap: 0.85rem;
}

.loop-return-body p {
  margin: 0;
  color: var(--muted);
}

.loop-return-body p:first-child {
  color: var(--text);
}

.loop-relief {
  color: var(--text);
  font-weight: 700;
}

/* Sekcja 03. Jak pracuję.
   Wszystkie cztery bloki dzielą jeden układ: nagłówek w lewej kolumnie,
   treść w prawej. Bez tego sekcja rozjeżdża się na cztery różne rytmy. */
/* Sekcja 02. Kim jestem.
   Siatka dwukolumnowa wyrównywała wiersze do najdłuższego akapitu, przez co
   między krótkimi akapitami powstawały dziury. Narracja idzie jedną kolumną. */
.history-prose {
  display: block;
  max-width: 60ch;
}

.history-prose p {
  margin: 0 0 1.1rem;
}

.history-prose p:last-child {
  margin-bottom: 0;
}

/* Sekcja 04. Wstęp przed ścieżką Kamila. */
.case-intro {
  margin-bottom: 1.5rem;
}

.case-intro p {
  margin: 0 0 0.85rem;
  color: #c3c1bc;
  font-size: var(--font-size-card);
  font-weight: 400;
  line-height: 1.65;
}

.case-intro p:last-child {
  margin-bottom: 0;
}

/* Ścieżka Kamila. Jedna kolumna treści zamiast dwóch. */
.route-item {
  grid-template-columns:
    minmax(7.5rem, 8.5rem)
    minmax(0, 1fr);
}

/* Sekcja 04. Panel wypłat wraca do góry.
   W układzie "risk evidence" panel lądował w trzecim wierszu, pod najwyższą
   kolumną, przez co pod grafiką zostawało 839 px pustki. Dowód idzie teraz
   pełną szerokością zaraz po narracji, jako jeden spójny blok. */
/* Poniżej 1024 px wrapper znika z układu i obie karty wracają do siatki
   sekcji, dzięki czemu kolejność zostaje: grafika, narracja, wypłaty. */
.case-proof {
  display: contents;
}

@media (min-width: 1024px) {
  /* Kolumna dowodu. Grafika i certyfikaty tej samej szerokości, jedno pod
     drugim, bez pustki między nimi. Lewa kolumna niesie narrację i opinię,
     przez co obie kolumny kończą się mniej więcej na tej samej wysokości.
     Sticky top:8rem jest tą samą wartością co .history-visual w sekcji
     "Kim jestem": obraz zostaje w miejscu, tekst przewija się obok, aż
     kolumna z narracją się skończy. */
  .case-proof {
    display: grid;
    position: sticky;
    top: 8rem;
    grid-area: proof;
    align-content: start;
    row-gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .case-proof > * {
    grid-area: auto;
    width: 100%;
    margin-inline: 0;
  }

  .case-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(24rem, 1fr);
    grid-template-areas:
      "copy proof"
      "testimonial proof"
      "risk proof";
    row-gap: clamp(1.75rem, 3vw, 2.5rem);
  }
}

/* Kwoty wypłat. Najdłuższa kwota wychodziła poza kartę, bo ma wyłączone
   nawijanie przy rozmiarze niezależnym od szerokości karty. Problem zależał
   od szerokości karty, nie ekranu, więc skala jest liczona z samej karty.
   Dzięki temu trzy kwoty trzymają jeden rozmiar i mieszczą się na każdej
   szerokości. Zapasowy wariant dla przeglądarek bez zapytań kontenerowych. */
@media (max-width: 560px) {
  .payout-card {
    padding: 0.85rem 0.3rem;
  }

  .payout-amount {
    font-size: clamp(0.92rem, 4.08vw, 1.25rem);
  }

  .payout-source {
    font-size: 0.6875rem;
  }
}

@supports (container-type: inline-size) {
  .payout-card {
    container-type: inline-size;
  }

  .payout-amount {
    font-size: clamp(0.76rem, 14.8cqi, 1.5rem);
  }
}

/* Kapsuła kontaktu. Zamyka stronę poza sekcjami.
   Nagłówek ma własny podział wiersza przez <br>, więc nie narzucamy mu
   max-width, który wymuszałby dodatkowe zawijanie. */
.final-cta {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

@media (max-width: 700px) {
  .route-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   SEKCJA 03. Jak może wyglądać praca.
   Przebudowa wg briefu właściciela z 2026-07-28: czarne tło, intensywna
   czerwień, krótkie karty bez list punktowanych, trzy szerokie panele.
   ============================================================ */

.work-intro {
  max-width: 54rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.work-title-accent {
  display: block;
  color: var(--red);
}

.work-lead {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--gray);
  font-size: var(--font-size-body);
  line-height: 1.7;
}

.work-note,
.work-wide-note {
  display: flex;
  width: fit-content;
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.15rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--work-border);
  border-radius: var(--radius-sm);
  background: var(--work-card);
  color: var(--gray);
  font-size: var(--font-size-card);
  line-height: 1.55;
}

.work-note-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--red);
}

.work-note-icon svg {
  width: 100%;
  height: 100%;
}

/* Karuzela sześciu kroków. Karta środkowa jest aktywna, sąsiednie widać
   przygaszone po bokach. Ruch idzie wyłącznie transformem na torze, więc
   przewijanie jest płynne i nie przelicza układu przy każdej klatce. */
.steps-carousel {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* Bez maski wygaszającej brzegi: karty wypełniają viewport co do piksela,
   więc maska przygaszała tekst skrajnych kart zamiast tylko krawędzi. */
.steps-viewport {
  overflow: hidden;
  padding-block: 0.5rem;
}

/* Karty leżą na sobie w jednym punkcie, a JS rozstawia je transformem
   względem karty aktywnej, licząc odległość po okręgu. Dzięki temu przejście
   z karty 06 na 01 jest zwykłym ruchem, bez przeskoku i bez klonów. */
.steps-track {
  position: relative;
}

.steps-track > .work-step {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--steps-slide-w, 33%);
  margin-left: calc(var(--steps-slide-w, 33%) / -2);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Karta środkowa jest większa i w pełni czytelna, boczne cofnięte. */
.steps-track > .work-step.is-side {
  opacity: 0.5;
  z-index: 1;
}

.steps-track > .work-step.is-current {
  opacity: 1;
  z-index: 3;
}

/* Strzałki. Okrąg 54 px, tak jak we wzorcu z Świadomych Nawyków. */
.steps-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 23, 68, 0.45);
  border-radius: 50%;
  color: var(--red);
  background: rgba(10, 6, 8, 0.82);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

/* Strzałki siedzą w marginesie sekcji, nie na treści karty. Sekcja ma
   padding-inline do 5rem, więc przy szerokim ekranie jest na nie miejsce. */
.steps-nav--prev { left: -1.75rem; }
.steps-nav--next { right: -1.75rem; }

.steps-nav:hover {
  border-color: rgba(255, 23, 68, 0.85);
  background: rgba(30, 6, 12, 0.95);
  transform: translateY(-50%) scale(1.07);
}

.steps-nav:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Karuzela jest zapętlona, więc strzałki nigdy nie są wyłączane. */

/* Kropki. */
.steps-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.25rem;
}

.steps-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    width 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background 320ms ease;
}

.steps-dots button[aria-selected="true"] {
  width: 28px;
  background: var(--red);
}

.steps-dots button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}



@media (max-width: 1024px) {
  .steps-nav--prev { left: -0.25rem; }
  .steps-nav--next { right: -0.25rem; }
}

@media (max-width: 700px) {
  .steps-nav {
    width: 44px;
    height: 44px;
  }
}

/* Bez animacji: karty wracają do statycznej siatki, karuzela znika. */
@media (prefers-reduced-motion: reduce) {
  .steps-track > .work-step,
  .steps-nav,
  .steps-dots button {
    transition: none;
  }

  .steps-track {
    display: grid;
    height: auto !important;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(0.9rem, 1.8vw, 1.25rem);
  }

  /* JS ustawia opacity i pointer-events inline, więc tutaj muszą je przebić,
     inaczej w siatce zostałyby widoczne tylko karty aktywne. */
  .steps-track > .work-step {
    position: static;
    width: auto;
    margin-left: 0;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    cursor: auto !important;
  }

  .steps-nav,
  .steps-dots {
    display: none;
  }
}

/* Karty żyją tak samo jak w Sednie: czerwona poświata w ramce, delikatne
   unoszenie pod kursorem. Bez tego sekcja wyglądała sztywno. */
.work-step {
  display: flex;
  padding: clamp(1.4rem, 2.2vw, 1.75rem);
  flex-direction: column;
  border: 1px solid rgba(255, 23, 68, 0.45);
  border-radius: var(--radius-md);
  background: var(--work-card);
  box-shadow:
    0 0 0 1px rgba(255, 23, 68, 0.2),
    0 0 26px rgba(255, 23, 68, 0.22),
    inset 0 0 22px rgba(255, 23, 68, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  /* Specyficzność podbita przez podwojoną klasę: .work-step i .work-wide
     mają też klasę .reveal, a ".js .reveal.is-visible" (trzy klasy) inaczej
     wygrywałoby z samym ":hover" i blokowało unoszenie transformem 0. */
  .work-step.work-step:hover,
  .work-wide.work-wide:hover {
    border-color: rgba(255, 23, 68, 0.7);
    box-shadow:
      0 0 0 1px rgba(255, 23, 68, 0.3),
      0 0 34px rgba(255, 23, 68, 0.34),
      inset 0 0 24px rgba(255, 23, 68, 0.1),
      0 20px 44px rgba(0, 0, 0, 0.42);
    transform: translateY(-6px);
  }

  /* Wnętrze karty też reaguje, żeby ruch nie wyglądał na sam cień. */
  .work-step:hover .work-step-icon {
    transform: scale(1.12) rotate(-4deg);
  }

  .work-step:hover .work-step-num {
    text-shadow: 0 0 16px rgba(255, 23, 68, 0.65);
  }

  .work-step:hover .work-step-body {
    border-top-color: rgba(255, 23, 68, 0.55);
  }
}

.work-step-top {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.work-step-num {
  margin: 0;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: text-shadow 0.35s ease;
}

.work-step-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--red);
  transition: transform 0.35s ease;
}

.work-step-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 7px rgba(255, 23, 68, 0.3));
}

.work-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1.375rem;
  line-height: 1.2;
}

.work-step-sub {
  margin: 0 0 1.1rem;
  min-height: 2.7em;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-step-body {
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--work-border);
  transition: border-top-color 0.35s ease;
}

.work-step-body > p {
  margin: 0 0 0.85rem;
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.65;
}

.work-step-body > p:last-child {
  margin-bottom: 0;
}

/* Etykieta obszarów zapowiada listę. Ma być cichsza od czerwonego podtytułu,
   żeby w karcie pozostał jeden mocny akcent, nie dwa konkurujące. */
.work-step-scope-label {
  margin: 0 0 0.6rem;
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.work-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  /* Ciaśniejszy interlinia niż w akapicie: lista trzech pozycji nie może
     rozciągać najdłuższej karty, bo jej wysokość wyrównuje wszystkie. */
  line-height: 1.5;
}

.work-step-list:last-child {
  margin-bottom: 0;
}

.work-step-list li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 1.5rem;
}

.work-step-list li:last-child {
  margin-bottom: 0;
}

.work-step-list li:last-child {
  margin-bottom: 0;
}

.work-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff1744' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Szerokie panele 04, 05 i 06. */
.work-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
}

.work-split .work-wide {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.work-wide {
  margin-top: clamp(0.9rem, 2vw, 1.25rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 23, 68, 0.45);
  border-radius: var(--radius-md);
  background: var(--work-card);
  box-shadow:
    0 0 0 1px rgba(255, 23, 68, 0.2),
    0 0 26px rgba(255, 23, 68, 0.22),
    inset 0 0 22px rgba(255, 23, 68, 0.08),
    0 16px 38px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.work-wide-num {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.work-wide h3 {
  margin: 0 0 1.5rem;
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
}

.work-wide-accent {
  color: var(--red);
}

/* Panel 04. Siatka narzędzi. */
/* Osobne kafelki zamiast jednej tabelki. Każdy oddzielony odstępem,
   z własną ramką i zaokrągleniem, reaguje na kursor jak reszta sekcji. */
.tool-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.6rem, 1.4vw, 0.9rem);
  list-style: none;
}

.tool-grid li {
  display: grid;
  padding: clamp(0.7rem, 1.2vw, 1rem) 0.5rem;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid rgba(255, 23, 68, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(255, 23, 68, 0.03);
  box-shadow: inset 0 0 18px rgba(255, 23, 68, 0.05);
  color: var(--gray);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .tool-grid li:hover {
    border-color: rgba(255, 23, 68, 0.65);
    box-shadow:
      inset 0 0 20px rgba(255, 23, 68, 0.08),
      0 0 24px rgba(255, 23, 68, 0.22);
    transform: translateY(-3px);
  }
}

.tool-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  color: var(--red);
}

.tool-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 7px rgba(255, 23, 68, 0.3));
}

.work-wide-note {
  width: 100%;
  margin-top: 1.25rem;
}

/* Panel 05. Pomiar zmiany. */
.measure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.measure-grid > p {
  margin: 0;
  color: var(--gray);
  font-size: var(--font-size-card);
  line-height: 1.7;
}

.measure-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.6rem;
  list-style: none;
}

.measure-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--gray);
  font-size: var(--font-size-card);
  line-height: 1.5;
}

.measure-list li::before {
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  border: 1px solid var(--red);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, var(--red) 46%, var(--red) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--red) 46%, var(--red) 54%, transparent 54%);
  background-size: 55% 55%;
  background-position: center;
  background-repeat: no-repeat;
}

.measure-question {
  margin: auto 0 0;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.2vw, 1.6rem);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(255, 23, 68, 0.07);
  box-shadow: 0 0 22px rgba(255, 23, 68, 0.12);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Panel 06. Poufność. */
.privacy-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.privacy-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
}

.privacy-list p {
  margin: 0;
  color: var(--gray);
  font-size: var(--font-size-card);
  line-height: 1.6;
}

.privacy-icon {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--work-border);
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 23, 68, 0.05);
}

.privacy-icon svg {
  width: 58%;
  height: 58%;
}

@media (max-width: 860px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .measure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-note,
  .work-wide-note {
    width: 100%;
    align-items: flex-start;
  }
}

/* Panel 06. Lista po lewej, sieć kłódek po prawej. */
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.privacy-network {
  display: grid;
  place-items: center;
}

.privacy-network svg {
  width: 100%;
  max-width: 20rem;
  height: auto;
}

.privacy-lock circle:first-child {
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.25));
}

/* Animacja sieci. Sygnał wychodzi ze środka do kolejnych kłódek, każda
   zapala się w swojej kolejności, a pierścień rdzenia oddycha. Cały cykl
   trwa 6 s, po jednej sekundzie na kłódkę. */
.privacy-spokes path {
  stroke-dasharray: 20 110;
  stroke-dashoffset: 130;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 23, 68, 0.9));
  animation: privacy-pulse 6s linear infinite;
}

.privacy-spokes path:nth-child(1) { animation-delay: 0s; }
.privacy-spokes path:nth-child(2) { animation-delay: 1s; }
.privacy-spokes path:nth-child(3) { animation-delay: 2s; }
.privacy-spokes path:nth-child(4) { animation-delay: 3s; }
.privacy-spokes path:nth-child(5) { animation-delay: 4s; }
.privacy-spokes path:nth-child(6) { animation-delay: 5s; }

.privacy-lock {
  animation: privacy-lock-glow 6s ease-in-out infinite;
}

/* Jawne klasy zamiast :nth-of-type. SVG ma inne elementy <g> przed
   kłódkami (kropki, ikona osoby), więc liczenie pozycji trafiało w nie,
   a nie w kolejne kłódki, i animacja nie szła po kolei. */
.privacy-lock-1 { animation-delay: 0.35s; }
.privacy-lock-2 { animation-delay: 1.35s; }
.privacy-lock-3 { animation-delay: 2.35s; }
.privacy-lock-4 { animation-delay: 3.35s; }
.privacy-lock-5 { animation-delay: 4.35s; }
.privacy-lock-6 { animation-delay: 5.35s; }

.privacy-core-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: privacy-core 6s ease-out infinite;
}

@keyframes privacy-pulse {
  0% { stroke-dashoffset: 122; opacity: 0; }
  3% { opacity: 1; }
  14% { stroke-dashoffset: 0; opacity: 1; }
  20%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes privacy-lock-glow {
  0%, 12%, 100% { filter: none; }
  4% { filter: drop-shadow(0 0 9px rgba(255, 23, 68, 0.9)); }
}

@keyframes privacy-core {
  0% { opacity: 0.85; transform: scale(1); }
  12% { opacity: 0; transform: scale(1.28); }
  100% { opacity: 0; transform: scale(1.28); }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-spokes path,
  .privacy-lock,
  .privacy-core-ring {
    animation: none;
  }

  .privacy-spokes path,
  .privacy-core-ring {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .work-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-network {
    order: -1;
  }

  .privacy-network svg {
    max-width: 15rem;
  }
}
