/* ═══════════════════════════════════════════════════════════════
   ADBI STUDIO — arkusz glowny (projekt z 25.09.2026)
   Kierunek: ciepla czern, zloto marki, lupkowy blekit z logo jako drugi
   kolor, plakatowe naglowki (Big Shoulders Display), urzadzenia 3D
   pokazujace prawdziwe strony demo.
   Zadnych zasobow z zewnatrz: fonty, ikony i zdjecia leza na serwerze.
   Zadnych stylow inline — strona dziala z Content-Security-Policy
   bez 'unsafe-inline'.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  --bg: #0a0908;
  --bg-2: #100e0c;
  --surface: #171411;
  --surface-2: #201c18;
  --line: rgba(240, 214, 170, 0.10);
  --line-2: rgba(240, 214, 170, 0.22);

  --text: #f4eee5;
  --text-2: #bcb2a4;
  --text-3: #8f867b;

  --gold: #d4a574;
  --gold-hot: #f2b861;
  --gold-soft: rgba(212, 165, 116, 0.13);
  --gold-ink: #1a1206;
  --cashmere: #c7b8ad;
  --slate: #8ea7b3;
  --ok: #5fd49a;
  --err: #ff9f8a;

  --paper: #efe8dc;
  --paper-ink: #1c1813;
  --paper-2: #6b6258;
  --paper-3: #4a4239;

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  /* spacja w Plus Jakarta Sans ma tylko 0,17 em — „w jednej” zlewa sie w „wjednej” */
  word-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 900px; }

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

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 300;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.gold { color: var(--gold); }

.ic {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

/* ───────── typografia sekcji ───────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.hero .eyebrow::before { display: none; }

.sec-head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 58px); }

.sec-h {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.004em;
}

.sec-lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  max-width: 60ch;
}

.section { padding-block: clamp(72px, 10vw, 132px); }
.section-band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

/* ───────── przyciski ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.85em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 10px 30px -12px rgba(212, 165, 116, 0.55);
}
.btn-gold:hover { background: var(--gold-hot); box-shadow: 0 14px 34px -12px rgba(242, 184, 97, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn-sm { padding: 0.65em 1.05em; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ───────── naglowek ───────── */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head);
  background: rgba(10, 9, 8, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 9, 8, 0.9); }

.top-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; }
.brand-mark-bg { fill: var(--surface-2); stroke: rgba(212, 165, 116, 0.35); stroke-width: 1; }
.brand-mark-a { fill: var(--gold); }

.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--text);
}
.brand-word-sm { font-size: 1.25rem; }
.brand-s {
  background: linear-gradient(135deg, var(--cashmere) 0 48%, var(--slate) 52% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a {
  position: relative;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 10px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.top-act { display: flex; align-items: center; gap: 12px; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: color 0.2s;
}
.top-link:hover { color: var(--gold); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-btn .ic { width: 22px; height: 22px; }

/* menu mobilne (natywny <dialog>: pulapka fokusu i Esc bez dodatkowego kodu) */
.menu {
  margin: 0 0 0 auto;
  width: min(360px, 88vw);
  height: 100%;
  max-height: 100%;
  padding: 22px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-left: 1px solid var(--line);
}
.menu::backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.menu[open] { display: flex; flex-direction: column; animation: menu-wjazd 0.28s var(--ease); }
@keyframes menu-wjazd { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.menu-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-close .ic { width: 22px; height: 22px; }
.menu-nav { display: grid; }
.menu-nav a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.menu-nav a:hover { color: var(--gold); }
.menu-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 8px; }
.menu-foot a { color: var(--text-2); text-decoration: none; font-weight: 600; }

/* ───────── hero ───────── */
.hero {
  position: relative;
  padding-block: clamp(34px, 6vw, 88px) clamp(40px, 6vw, 84px);
  overflow: clip;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero .eyebrow { color: var(--text-2); letter-spacing: 0.14em; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.18);
}

.hero-h {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.3rem, 8.4vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0.004em;
}
.hero-h > span { display: block; }
.hero-accent { color: var(--gold); white-space: nowrap; }

.claw {
  display: inline-block;
  width: 0.95em;
  height: 0.62em;
  margin-left: 0.14em;
  vertical-align: 0.02em;
  fill: none;
  stroke: var(--gold-hot);
  stroke-width: 9;
  stroke-linecap: round;
  overflow: visible;
}
.claw path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.hero-lead {
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  max-width: 40ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-facts {
  list-style: none;
  padding: 22px 0 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-facts li { display: grid; gap: 4px; min-width: 0; }
.hero-facts strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-facts span { color: var(--text-3); font-size: 0.82rem; line-height: 1.35; }

/* ───────── scena 3D ───────── */
.hero-show {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3.15;
  perspective: 1700px;
  perspective-origin: 50% 35%;
  container-type: inline-size;
  --rx: 12;
  --ry: -15;
}

.stage-glow {
  position: absolute;
  inset: 4% 0 -6%;
  background: radial-gradient(ellipse 60% 55% at 52% 55%, rgba(212, 165, 116, 0.26), rgba(142, 167, 179, 0.06) 55%, transparent 72%);
  pointer-events: none;
}
.stage::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -2%;
  height: 12%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.stage-scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.stage-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: unos 9s ease-in-out infinite;
}
@keyframes unos {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -1.4cqw, 0); }
}

/* laptop */
.laptop {
  position: absolute;
  left: 3cqw;
  top: 3cqw;
  width: 72cqw;
  transform-style: preserve-3d;
}
.laptop-lid {
  position: relative;
  aspect-ratio: 16 / 10.2;
  padding: 1.3cqw 1.3cqw 1.9cqw;
  border-radius: 1.5cqw 1.5cqw 0.5cqw 0.5cqw;
  background: linear-gradient(180deg, #1d1b18, #0d0c0b);
  box-shadow:
    0 0 0 1px rgba(255, 245, 225, 0.09),
    inset 0 0 0 0.25cqw #050505,
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
}
.laptop-cam {
  position: absolute;
  top: 0.45cqw;
  left: 50%;
  width: 0.55cqw;
  height: 0.55cqw;
  border-radius: 50%;
  background: #1f2a2f;
  transform: translateX(-50%);
}

.laptop-base {
  position: absolute;
  left: -6.5%;
  right: -6.5%;
  top: 100%;
  height: 40cqw;
  border-radius: 0 0 2cqw 2cqw;
  background:
    radial-gradient(ellipse 24% 18% at 50% 76%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(180deg, #232019 0%, #17150f 60%, #131110 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 225, 0.08);
  transform-origin: 50% 0;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 9%; right: 9%; top: 9%;
  height: 46%;
  border-radius: 1cqw;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 0.25cqw, transparent 0.25cqw 3.6cqw),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0 0.25cqw, transparent 0.25cqw 3.4cqw),
    #100f0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.laptop-base::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.2cqw;
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(180deg, #2a261f, #0c0b0a);
  transform-origin: 50% 100%;
  transform: rotateX(-90deg);
}
.laptop-notch {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12cqw;
  height: 0.9cqw;
  border-radius: 1cqw 1cqw 0 0;
  background: #0c0b0a;
  transform: translateX(-50%);
}

/* telefon */
.phone {
  position: absolute;
  right: 3.5cqw;
  bottom: 0;
  width: 22cqw;
  transform-style: preserve-3d;
  transform: translateZ(9cqw) rotateY(-5deg) rotateZ(1.2deg);
}
.phone-body {
  position: relative;
  aspect-ratio: 9 / 19.3;
  padding: 0.85cqw;
  border-radius: 3.4cqw;
  background: linear-gradient(150deg, #2e2a24 0%, #121110 40%, #1f1c18 100%);
  box-shadow:
    0 0 0 1px rgba(255, 245, 225, 0.12),
    inset 0 0 0 0.3cqw #050505,
    0 3cqw 5cqw -1.2cqw rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
}
.phone-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a352d, #16140f);
  transform: translateZ(-1.1cqw);
}
.phone-island {
  position: absolute;
  top: 1.9cqw;
  left: 50%;
  width: 6.2cqw;
  height: 1.7cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%) translateZ(1px);
  z-index: 3;
}

/* ekrany */
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  transform: translateZ(0.5px);
}
.laptop-screen { border-radius: 0.5cqw; }
.phone-screen { border-radius: 2.6cqw; }

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 46%);
  pointer-events: none;
}

.screen-roll { position: absolute; inset: 0; }
.screen-roll img {
  width: 100%;
  height: auto;
  transition: opacity 0.28s ease;
  animation: przewijanie var(--czas, 24s) ease-in-out 1.6s infinite alternate;
  will-change: transform;
}
@keyframes przewijanie {
  0%, 7% { transform: translate3d(0, 0, 0); }
  93%, 100% { transform: translate3d(0, var(--dystans, 0px), 0); }
}
.screen.is-switching img { opacity: 0; }

.stage-caption { display: flex; justify-content: center; }
.live-url {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0.45em 1em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.live-url:hover { border-color: var(--gold); color: var(--text); }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 212, 154, 0.5);
  animation: puls 2.2s ease-out infinite;
}
@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(95, 212, 154, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(95, 212, 154, 0); }
}

.demo-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.demo-tab {
  min-height: 44px;
  padding: 0.45em 1.15em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.demo-tab:hover { border-color: var(--gold); color: var(--text); }
.demo-tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
}

/* ───────── pasek branz ───────── */
.marquee {
  overflow: hidden;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: 16px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  padding-inline: 0.28em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(212, 165, 116, 0.55);
  white-space: nowrap;
}
.marquee-track span:nth-child(3n + 1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track span::after {
  content: "/";
  margin-left: 0.56em;
  color: var(--gold);
  -webkit-text-stroke: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── teza ───────── */
.thesis { padding-block: clamp(70px, 11vw, 150px); }
.thesis-h {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 7.4vw, 7rem);
  line-height: 0.9;
  max-width: 15ch;
}
.thesis-p {
  margin-top: 26px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 50ch;
}

/* ───────── realizacje ───────── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.demo-shot {
  display: block;
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #1c1916;
}
.demo-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3a342d;
}
.demo-url {
  margin-left: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 70%;
  padding: 2px 10px;
  border-radius: 5px;
  background: #110f0d;
  color: var(--text-3);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-shot img {
  width: 100%;
  aspect-ratio: 806 / 504;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease);
}

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 22px 24px;
}
.demo-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tag {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.tag-gold { border-color: rgba(212, 165, 116, 0.6); color: var(--gold); background: var(--gold-soft); }

.demo-name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.demo-desc { color: var(--text-2); font-size: 0.97rem; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.ticks .tick-minus { color: var(--text-2); }
.ticks .tick-minus::before {
  top: 0.72em;
  width: 11px;
  height: 0;
  border-left: 0;
  border-bottom-color: var(--text-3);
  transform: none;
}

.demo-link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  align-self: flex-start;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
}
.demo-link:hover { color: var(--gold-hot); text-decoration: underline; text-underline-offset: 4px; }
/* cala karta dema klika sie jednym prawdziwym linkiem — zrzut nie jest osobnym, ukrytym linkiem */
.demo .demo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.demo-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(16px, 2.2vw, 26px);
}
.more-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 26px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}
.more-kind {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.more-h {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1;
}
.more-card p:not(.more-kind) { color: var(--text-2); font-size: 0.97rem; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .demo:hover { transform: translateY(-5px); border-color: var(--line-2); }
  .demo:hover .demo-shot img { transform: scale(1.035); }
}

/* ───────── kalkulator ───────── */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}
.calc-form { display: grid; gap: 16px; min-width: 0; }

.calc-step {
  margin: 0;
  min-width: 0;
  padding: 20px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.calc-step legend {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  margin-left: -8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5em 1em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip span:hover { border-color: var(--gold); color: var(--text); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hot); outline-offset: 3px; }

.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.opt {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 14px 16px 15px 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.opt:hover { border-color: rgba(212, 165, 116, 0.55); }
.opt input {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--gold);
}
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.opt-t { font-weight: 700; font-size: 0.98rem; }
.opt-d { color: var(--text-3); font-size: 0.86rem; line-height: 1.45; }
/* Na złotym tle zaznaczonej opcji --text-3 ma tylko 4,09:1 — jaśniejszy opis daje 7:1. */
.opt:has(input:checked) .opt-d { color: var(--text-2); }

.mods { display: grid; gap: 8px; margin-top: 12px; }
.mod {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.mod input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold); }
.mod-l { font-size: 0.93rem; line-height: 1.45; }
.mod-p {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mod.is-locked { cursor: default; }
.mod.is-locked .mod-p { color: var(--text-3); letter-spacing: 0.06em; }
.mod:not(.is-locked):hover { border-color: rgba(212, 165, 116, 0.5); }
.mod:not(.is-locked):has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.note { margin-top: 12px; color: var(--text-3); font-size: 0.9rem; }

/* rachunek: papier na ciemnej stronie, zabkowana dolna krawedz */
.receipt {
  position: sticky;
  top: calc(var(--head) + 20px);
  min-width: 0;
  padding: 26px 24px 38px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 4px 4px 0 0;
  --zab: 9px;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zab)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zab) * 2) var(--zab) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zab)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zab) * 2) var(--zab) repeat-x;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.55));
}
.receipt-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 2px dashed rgba(28, 24, 19, 0.35);
}
.receipt-list { margin: 0; }
.receipt-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(28, 24, 19, 0.2);
  font-size: 0.9rem;
}
.receipt-list dt { color: var(--paper-2); flex-shrink: 0; }
.receipt-list dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
}
.receipt-total span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.receipt-total strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.receipt-rec {
  margin: 4px 0 14px;
  text-align: right;
  color: var(--paper-3);
  font-size: 0.85rem;
  line-height: 1.45;
}
.receipt-notes {
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 18px;
  border-top: 2px dashed rgba(28, 24, 19, 0.35);
  display: grid;
  gap: 8px;
  color: var(--paper-3);
  font-size: 0.83rem;
  line-height: 1.5;
}
.receipt-notes strong { color: var(--paper-ink); }
.receipt .btn-gold {
  background: var(--paper-ink);
  color: var(--paper);
  box-shadow: none;
}
.receipt .btn-gold:hover { background: var(--bg); }
.receipt .btn-gold:focus-visible { outline-color: var(--paper-ink); }
.receipt-foot {
  margin-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--paper-2);
}

/* ───────── proces ───────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.step {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  min-width: 0;
}
.step-big {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4rem, 7.4vw, 6.4rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.02;
  margin-bottom: 10px;
}
.step p { color: var(--text-2); font-size: 0.97rem; }

/* ───────── gwarancje ───────── */
.guar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.guar-card {
  padding: 28px 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-width: 0;
}
.guar-ic {
  display: block;
  width: 46px; height: 46px;
  padding: 11px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 165, 116, 0.3);
  color: var(--gold);
}
.guar-card h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.7rem;
  line-height: 1.02;
  margin-bottom: 10px;
}
.guar-card p { color: var(--text-2); font-size: 0.97rem; }

/* ───────── cennik ───────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.plan-hot {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.11), var(--surface) 42%);
  box-shadow: 0 34px 70px -38px rgba(212, 165, 116, 0.45);
}
.plan-flag {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-name {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.8rem;
  line-height: 1.02;
}
.plan-desc { color: var(--text-2); font-size: 0.95rem; }
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 6px;
}
.plan-price strong {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 4.4vw, 3.8rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.plan-price span { color: var(--text-3); font-size: 0.88rem; }
.plan-rec {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
}
.plan .ticks { flex: 1; }
.plan .btn { margin-top: 10px; }

.table-wrap {
  margin-top: clamp(32px, 4vw, 48px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.compare caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.compare th, .compare td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare tbody th { font-weight: 600; color: var(--text); }
.compare td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.compare td:nth-child(3) { color: var(--text); }

/* ───────── opinie ───────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.review-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(240, 214, 170, 0.035) 14px 15px);
  color: var(--text-3);
  font-size: 0.88rem;
  text-align: center;
}
.review-note {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.review-note h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  margin-bottom: 14px;
}
.review-note p { color: var(--text-2); max-width: 70ch; }
.review-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ───────── pytania ───────── */
.faq { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  border-radius: var(--r);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic {
  width: 22px; height: 22px;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-body { padding: 0 20px 20px; color: var(--text-2); }
.faq-body a { color: var(--gold); text-underline-offset: 3px; }

/* ───────── kontakt ───────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-info { min-width: 0; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 22px; height: 22px; margin-top: 3px; color: var(--gold); }
.cl-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.contact-list a {
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
}
.contact-list a:hover { color: var(--gold); }
.contact-list li > span { color: var(--text-2); font-size: 0.95rem; min-width: 0; }

.form {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: clamp(22px, 3.2vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.form-h {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 2px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.88rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color 0.2s;
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(212, 165, 116, 0.45); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--gold-hot);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form [aria-invalid="true"] { border-color: var(--err); }
.req { color: var(--gold); }

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.55;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.check a { color: var(--gold); text-underline-offset: 3px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-err {
  padding: 11px 13px;
  border: 1px solid rgba(255, 140, 110, 0.35);
  border-radius: var(--r-sm);
  background: rgba(255, 110, 80, 0.08);
  color: var(--err);
  font-size: 0.9rem;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
}
/* informacja o administratorze danych (art. 13 RODO) pod przyciskiem wysylki */
.form-info { color: var(--text-3); font-size: 0.8rem; line-height: 1.55; }
.form-info a { color: var(--text-2); text-underline-offset: 3px; }

/* ───────── stopka ───────── */
.foot {
  padding-block: 58px 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 38px;
}
.foot-brand p { margin-top: 14px; color: var(--text-2); font-size: 0.92rem; max-width: 34ch; }
.foot-h {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.foot-id p { color: var(--text-2); font-size: 0.92rem; }
.foot-id p + p { margin-top: 10px; }
.foot-id a { color: var(--text); text-underline-offset: 3px; }
.foot-small { color: var(--text-3) !important; font-size: 0.8rem !important; line-height: 1.55; }
.foot-nav { display: flex; flex-direction: column; gap: 4px; }
.foot-nav a {
  padding: 5px 0;
  color: var(--text-2);
  font-size: 0.92rem;
  text-decoration: none;
}
.foot-nav a:hover { color: var(--gold); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ───────── komunikat ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  max-width: min(92vw, 470px);
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ok);
  border-radius: var(--r);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  color: var(--text);
  font-size: 0.95rem;
  transform: translateX(-50%);
}
.toast.is-err { border-left-color: var(--err); }

/* ═══════════ szerokosci ═══════════ */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.9rem; }
}

@media (max-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .hero-show { width: 100%; max-width: 760px; margin-inline: auto; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .receipt { position: relative; top: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 580px; margin-inline: auto; }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .guar { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review-empty { min-height: 84px; }
  .demo-more { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --head: 64px; }
  body { font-size: 16px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .top-cta { display: none; }
  .brand-word { font-size: 1.3rem; }

  .stage { aspect-ratio: 5 / 3.6; --rx: 7; --ry: -10; }
  .laptop { width: 74cqw; left: 1cqw; }
  .phone { width: 27cqw; right: 1cqw; }

  .demo-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex-shrink: 0; }
}

@media (max-width: 400px) {
  .top-link span { display: none; }
  .hero-facts { gap: 10px; }
  .hero-facts span { font-size: 0.76rem; }
  .btn-lg { width: 100%; }
  .receipt { padding-inline: 18px; }
  .calc-step { padding-inline: 16px; }
  .mod { grid-template-columns: auto minmax(0, 1fr); }
  .mod-p { grid-column: 2; justify-self: start; }
}

/* ═══════════ ograniczony ruch ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .stage-float, .screen-roll img, .marquee-track { animation: none !important; }
  .marquee-track { transform: none; }
  /* wylaczamy tylko ruch — kolory, obramowania i cienie dalej zmieniaja sie plynnie */
  .btn { transition-property: background-color, color, border-color, box-shadow; }
  .btn:active { transform: none; }
  .demo { transition-property: border-color; }
  .nav a::after, .stage-scene, .demo-shot img, .faq-item summary .ic { transition: none; }
}

/* ═══════════ druk ═══════════ */
@media print {
  .top, .menu, .hero-show, .marquee, .toast, .form { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ───────── animacje: pauza poza ekranem, drapniecie pazura ───────── */
.stage.is-paused .stage-float,
.stage.is-paused .screen-roll img,
.marquee.is-paused .marquee-track { animation-play-state: paused; }

.claw path {
  stroke-dasharray: 60;
  animation: pazur 0.42s cubic-bezier(0.6, 0, 0.3, 1) both;
}
.claw path:nth-child(1) { animation-delay: 0.55s; }
.claw path:nth-child(2) { animation-delay: 0.68s; }
.claw path:nth-child(3) { animation-delay: 0.81s; }
@keyframes pazur { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

/* ───────── poprawki po pierwszym renderze (25.09) ───────── */
/* naglowek: dwie potezne linie + mniejsza podlinia, zeby przyciski
   miescily sie nad krawedzia ekranu przy 900 px wysokosci */
.hero-h { font-size: clamp(3.4rem, 7.4vw, 7.4rem); }
.hero-sub {
  margin-top: 0.14em;
  font-size: 0.42em;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-2);
}
.claw { width: 0.6em; height: 0.44em; margin-left: 0.1em; vertical-align: 0.12em; }

/* zakladki: szesc w jednym rzedzie w kolumnie sceny */
.demo-tab { font-size: 1rem; padding: 0.42em 0.95em; letter-spacing: 0.05em; }
.demo-tabs { gap: 6px; }


/* ───────── poprawki po przegladzie sekcji (25.09) ───────── */
/* cennik: podpis zawsze pod kwota, tytuly na rowna wysokosc —
   ceny trzech pakietow stoja w jednej linii */
.plan-price { flex-direction: column; align-items: flex-start; gap: 6px; }
.plan-name { min-height: 2.04em; }

/* linia nad dolnym paskiem stopki wyrownana do tresci, nie do marginesow */
.foot-bottom {
  border-top: 0;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
