/* ==========================================================================
   WEREMCZUK.MARKETING — strona freelancerskiej agencji marketingowej
   ========================================================================== */

:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f6f3f1;
  --muted: #a29c9b;
  --accent: #ff3355;
  --accent-deep: #b3122f;
  --lime: #c6f432;

  --radius: 24px;
  --container: 1180px;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

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

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }

h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-size: 1.08em;
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-light { background: #fff; color: #0a0a0a; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255, 51, 85, .55); }

.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

.btn-sm { height: 40px; padding: 0 20px; font-size: .875rem; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1rem; }

/* ---------- Nawigacja ---------- */
.nav-wrap {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(820px, 100%);
  padding: 8px 8px 8px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 8, 10, .55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(10, 7, 8, .82); border-color: var(--line-strong); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .8); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: .9375rem; white-space: nowrap; }
.brand-tld { color: var(--accent); font-weight: 600; }
.brand-mark {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6a83, #c1122f);
  box-shadow: 0 0 20px rgba(255, 51, 85, .45);
}
.brand-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(246, 243, 241, .82);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: #fff; background: var(--surface-2); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 40px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

/* bordowa poświata u góry */
.hero::before {
  content: '';
  position: absolute;
  inset: -4% -10% auto -10%;
  height: 880px;
  z-index: -1;
  background:
    radial-gradient(42% 46% at 50% 0%, rgba(255, 44, 86, .95) 0%, rgba(196, 22, 54, .72) 32%, rgba(104, 9, 28, .42) 60%, transparent 82%),
    radial-gradient(75% 62% at 50% 0%, rgba(150, 15, 40, .6), transparent 78%);
  filter: blur(4px);
}
/* przyciemnienie ku dołowi */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 260px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* wykres wzrostu w tle */
.hero-chart {
  position: absolute;
  left: 0; right: 0;
  top: 84px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.hero-chart svg { display: block; width: 100%; height: auto; }
/* zanim skrypt przejmie sterowanie, wykres jest niewidoczny (skrypt od razu ustawia własną przezroczystość) */
.chart-live .hero-chart svg { opacity: 0; }

/* Domyślnie (bez JS / przy „reduced motion”) wykres jest statyczny i kompletny.
   Ruchem steruje script.js — dodaje klasę .is-live i sam odsłania kolejne elementy. */
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-chart.is-live .chart-line { stroke-dashoffset: 1; }
.hero-chart.is-live .chart-bar { transform: scaleY(0); }
.hero-chart.is-live .chart-bar.is-on { transform: none; transition: transform .8s var(--ease); }
.hero-chart.is-live .chart-dot { opacity: 0; }
.hero-chart.is-live .chart-dot.is-on { opacity: 1; transition: opacity .4s ease; }
.hero-chart.is-live .chart-arrow-group { opacity: 0; }

.hero-inner { max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(246, 243, 241, .9);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 51, 85, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 51, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 51, 85, 0); } }

.hero h1 em { display: inline-block; padding-right: .04em; }

.lead {
  max-width: 640px;
  margin: 28px auto 0;
  color: rgba(246, 243, 241, .74);
  font-size: clamp(1rem, 1.6vw, 1.175rem);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Karuzela branż ---------- */
.reels {
  --card-w: clamp(168px, 16vw, 216px);
  --gap: 18px;
  margin-top: 72px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  /* czysta dekoracja: nie da się jej kliknąć, zatrzymać ani zaznaczyć */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.reels-track {
  display: flex;
  width: max-content;
  animation: reels-scroll var(--dur, 70s) linear infinite;
  will-change: transform; /* własna warstwa GPU — ruch bez szarpania */
  backface-visibility: hidden;
}
/* przesuwamy dokładnie o jeden komplet kart — jego szerokość liczy script.js */
@keyframes reels-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--shift, -50%), 0, 0); }
}

.reel {
  position: relative;
  flex: none;
  container-type: inline-size;
  width: var(--card-w);
  aspect-ratio: 2 / 3;
  margin-right: var(--gap);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: #0b0708;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
}
.reel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* bardzo delikatne przyciemnienie góry zdjęcia — tylko żeby napis był czytelny na jasnym tle */
.reel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(5, 5, 5, .28) 0%, transparent 26%); }

/* napis branży — mała „pigułka” w lewym górnym rogu */
.reel-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  font-size: .625rem;
  font-size: clamp(.625rem, calc(100cqw / 14), .8125rem); /* skaluje się z kartą, „NIERUCHOMOŚCI” zawsze się mieści */
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Pasek platform ---------- */
.platforms { margin-top: 64px; text-align: center; }
.platforms-label { font-size: .875rem; color: var(--muted); }
/* trzy platformy zawsze w jednej linii */
.platforms-list { display: flex; flex-wrap: nowrap; justify-content: center; align-items: baseline; gap: 14px clamp(22px, 6vw, 64px); margin-top: 22px; }
.platforms-list li { font-size: clamp(1.05rem, 4.4vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; color: rgba(246, 243, 241, .55); transition: color .25s; }
.platforms-list li:nth-child(2) { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 5vw, 1.6rem); }
.platforms-list li:hover { color: #fff; }

/* ---------- Sekcje ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 108px) 0; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head--left { margin: 0; text-align: left; }
.section-lead { margin-top: 20px; color: var(--muted); font-size: 1.0625rem; }
.section-head .btn { margin-top: 32px; }

/* ---------- Blok „WAŻNE!” z filmem ---------- */
.notice-section { padding: 8px 0 0; }
.notice {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255, 90, 117, .4);
  border-radius: 32px;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255, 51, 85, .18), rgba(255, 51, 85, .04) 60%, transparent),
    rgba(255, 255, 255, .02);
  box-shadow: 0 40px 90px -50px rgba(255, 51, 85, .6);
  text-align: center;
}
.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4266, #c1122f);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .1em;
  box-shadow: 0 10px 30px -8px rgba(255, 51, 85, .85);
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #c1122f;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  animation: notice-pulse 2s ease-in-out infinite;
}
@keyframes notice-pulse { 50% { transform: scale(1.14); } }
.notice-title {
  margin: 22px auto 28px;
  text-wrap: balance;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0b0709;
  box-shadow: 0 30px 70px -30px #000;
}
/* gotowe na wstawienie prawdziwego filmu (<video> albo <iframe>) */
.video-frame > video, .video-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 16px);
  background:
    radial-gradient(60% 80% at 50% 45%, rgba(255, 51, 85, .3), transparent 70%),
    linear-gradient(160deg, #1d0d13, #0a0608);
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(70% 75% at 50% 50%, #000, transparent);
}
.play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(58px, 9vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 50px -10px rgba(255, 51, 85, .9);
}
.play svg { width: 36%; margin-left: 6%; fill: #0a0a0a; }
.play::before, .play::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  animation: play-ring 2.6s ease-out infinite;
}
.play::after { animation-delay: 1.3s; }
@keyframes play-ring { from { transform: scale(1); opacity: .75; } to { transform: scale(1.9); opacity: 0; } }

.video-label { position: relative; font-size: clamp(1.1rem, 2.8vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; }
.video-hint { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: clamp(.8rem, 1.6vw, .95rem); }
.video-hint svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-hint svg path:first-child { stroke: none; }
.video-hint svg path:not(:first-child) { fill: none; }
.notice-note { margin-top: 22px; color: rgba(246, 243, 241, .72); font-size: 1rem; }

/* ---------- Sekcje-panele: jasne i kolorowe „płyty” na ciemnym tle ---------- */
.section--panel {
  margin: 0 clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px);
  border-radius: clamp(28px, 4vw, 56px);
}
/* jasny motyw: nadpisujemy zmienne, więc cały tekst i elementy w środku same robią się ciemne */
.section--light {
  --text: #17110f;
  --muted: #5f5550;
  --line: rgba(23, 17, 15, .1);
  --line-strong: rgba(23, 17, 15, .18);
  --surface: #fff;
  --surface-2: #fff;
  color: var(--text);
}
.section--light h2 em { color: #e11d48; }
.section--light .kicker { background: #fff; }
.section--light .btn-light { background: #17110f; color: #fff; }
.section--light .btn-light:hover { box-shadow: 0 12px 40px -10px rgba(225, 29, 72, .6); }
.section--steel { padding-block: clamp(56px, 6.5vw, 88px); }
#korzysci h2 { text-wrap: balance; }
#korzysci h2 em { white-space: nowrap; } /* „duża agencja” zawsze w jednej linii */
.section--steel {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(255, 51, 85, .13), transparent 65%),
    radial-gradient(45% 60% at 0% 100%, rgba(23, 17, 15, .07), transparent 65%),
    #eceef1;
}

/* ---------- Usługi: kolorowe karty (układ „bento”) ---------- */
.section--services { isolation: isolate; }
.section--services::before {
  content: '';
  position: absolute;
  inset: -240px 0 0 0; /* wystaje ponad sekcję, żeby czerwień łagodnie „wpływała” spod bloku WAŻNE! */
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 30% at 8% 340px, rgba(255, 84, 104, .2), transparent 70%),
    radial-gradient(36% 30% at 95% 52%, rgba(202, 186, 255, .16), transparent 70%),
    radial-gradient(40% 26% at 25% 100%, rgba(120, 216, 209, .14), transparent 70%);
  /* zanika i u góry (brak ostrej linii), i u dołu (brak krawędzi przed Procesem) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 260px, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 260px, #000 60%, transparent 100%);
}

.grid { display: grid; gap: 18px; }
/* pięć kart: u góry duża (4) + mała (2), na dole trzy równe (2+2+2) */
.services { grid-template-columns: repeat(6, 1fr); }
.services .card { grid-column: span 2; }
.services .card--wide { grid-column: span 4; }

.card {
  --card-bg: #fff;
  --card-solid: #fff;
  --card-fg: #17110f;
  --card-muted: rgba(23, 17, 15, .74);
  --card-chip: rgba(23, 17, 15, .09);
  --card-glow: rgba(255, 255, 255, .2);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border-radius: 28px;
  background: var(--card-bg);
  color: var(--card-fg);
  overflow: hidden;
  box-shadow: 0 34px 60px -38px var(--card-glow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card > :not(.card-art):not(.card-num) { position: relative; z-index: 1; }
.card--coral { --card-bg: linear-gradient(140deg, #ff5f73, #e0264f); --card-solid: #e8304f; --card-fg: #fff; --card-muted: rgba(255, 255, 255, .9); --card-chip: rgba(255, 255, 255, .2); --card-glow: rgba(255, 60, 90, .75); min-height: 340px; }
.card--sun   { --card-bg: #ffd84d; --card-solid: #ffd84d; --card-glow: rgba(255, 216, 77, .6); }
.card--lav   { --card-bg: #cdbdff; --card-solid: #cdbdff; --card-glow: rgba(160, 130, 255, .55); }
.card--sky   { --card-bg: #7fdad3; --card-solid: #7fdad3; --card-glow: rgba(60, 190, 180, .55); }
.card--cream { --card-bg: #fff2e2; --card-solid: #ffb98f; --card-glow: rgba(255, 185, 143, .55); }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .4), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }

.card-art {
  position: absolute;
  right: -22px; bottom: -28px;
  width: 190px; height: 190px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .15;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.card:hover .card-art { transform: rotate(-2deg) scale(1.06); }
.card--wide .card-art { right: -10px; bottom: -44px; width: 260px; height: 260px; }

.card-num { position: absolute; top: 28px; right: 30px; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; opacity: .5; }
.icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--card-fg);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--card-solid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.card--wide h3 { font-size: 1.9rem; letter-spacing: -.025em; }
.card p { max-width: 46ch; color: var(--card-muted); font-size: 1rem; }
/* pierwsza linijka opisu — osobny wiersz, nieco mocniejszy */
.card-lead { display: block; margin-bottom: 4px; color: var(--card-fg); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.tags li { padding: 5px 13px; border-radius: 999px; background: var(--card-chip); font-size: .8125rem; font-weight: 500; color: var(--card-fg); }

/* ---------- Korzyści (jasnoszary panel, czarne kafelki) ---------- */
.benefit-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: #111114;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 26px 44px -30px rgba(17, 17, 20, .8);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.benefit > * { position: relative; z-index: 1; }
/* czerwona poświata w rogu kafelka */
.benefit::after {
  content: '';
  position: absolute;
  right: -30%; bottom: -55%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 51, 85, .4), transparent 65%);
  opacity: .7;
  transition: opacity .4s, transform .5s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: 0 32px 52px -28px rgba(255, 51, 85, .6); }
.benefit:hover::after { opacity: 1; transform: scale(1.15); }
.check { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff5a75, #c1122f); box-shadow: 0 8px 22px -6px rgba(255, 51, 85, .7); }
.check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
.benefits-cta { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* ---------- Proces (spokojna linia czasu na ciemnym tle, bez kart) ---------- */
.steps { --gap: clamp(20px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { position: relative; padding-top: 40px; }
/* cienka linia łącząca kroki */
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: calc(var(--gap) * -1);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 51, 85, .75), rgba(255, 255, 255, .14) 60%);
}
.step:last-child::before { right: 0; }
/* czerwony punkt na linii */
.step::after {
  content: '';
  position: absolute;
  top: -6px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 51, 85, .16), 0 0 22px rgba(255, 51, 85, .75);
}
.step-num { display: block; margin-bottom: 18px; font-family: var(--font-serif); font-style: italic; font-size: 3rem; line-height: 1; color: rgba(255, 255, 255, .38); }
.step h3 { margin-bottom: 10px; font-size: 1.3rem; }
.step p { max-width: 30ch; color: var(--muted); font-size: 1rem; }

/* ---------- FAQ (kompaktowy dodatek na ciemnym tle: nagłówek z lewej, pytania z prawej, bez pudełek) ---------- */
.section--faq { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 120px; margin: 0; text-align: left; }
.faq-layout h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.faq-list { border-top: 1px solid rgba(255, 255, 255, .14); }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, .14); transition: border-color .35s; }
.faq-item[open] { border-bottom-color: rgba(255, 51, 85, .65); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; transition: color .25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; transition: background .3s, border-color .3s; }
.faq-item summary:hover .faq-icon { border-color: #fff; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { padding: 0 52px 26px 0; max-width: 60ch; color: var(--muted); font-size: 1rem; animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Kontakt (panel na całą szerokość — jak Korzyści) ---------- */
.section--contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 80% at 12% 0%, rgba(255, 125, 145, .38), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(55, 5, 20, .55), transparent 65%),
    linear-gradient(135deg, #e0264f 0%, #b3122f 55%, #700f24 100%);
}
/* delikatne, koncentryczne okręgi w rogu */
.section--contact::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -160px; top: -160px;
  width: 460px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .04), 0 0 0 140px rgba(255, 255, 255, .03);
  pointer-events: none;
}
.section--contact > .container { position: relative; z-index: 1; }

.cta-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.cta-copy .kicker { background: rgba(0, 0, 0, .22); color: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .28); }
.cta-copy .section-lead { color: rgba(255, 255, 255, .86); }
.contact-list { display: grid; gap: 10px; margin-top: 32px; }
.contact-list a { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .45); font-size: 1.15rem; font-weight: 500; transition: border-color .25s; }
.contact-list a:hover { border-color: #fff; }

.form { display: grid; gap: 16px; align-content: start; }
/* pułapka na boty: fizycznie poza ekranem, a nie display:none — część botów ignoruje ukryte pola tylko tym drugim sposobem */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 8px; }
.field span { font-size: .875rem; font-weight: 600; color: #fff; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: #17110f;
  outline: none;
  resize: vertical;
  transition: box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(23, 17, 15, .45); }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .4); }
.field input.is-invalid, .field textarea.is-invalid { box-shadow: 0 0 0 3px #17110f; }
.section--contact .btn-light { background: #111114; color: #fff; }
.section--contact .btn-light:hover { box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-note { min-height: 1.4em; font-size: .9rem; color: rgba(255, 255, 255, .92); }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--muted); font-size: .9375rem; }
.footer-links a:hover { color: #fff; }
.copyright { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ---------- Przycisk WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366; /* oficjalny zielony WhatsApp */
  transition: transform .3s var(--ease);
}
.whatsapp:hover { transform: translateY(-3px) scale(1.06); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .card, .services .card--wide { grid-column: auto; }
  .services .card--wide { grid-column: 1 / -1; } /* duża karta na całą szerokość */
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2n)::before { right: 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-layout .section-head { position: static; }
  /* pięć kafelków: trzy w pierwszym rzędzie, dwa szersze w drugim */
  .benefit-list { grid-template-columns: repeat(6, 1fr); }
  .benefit { grid-column: span 2; }
  .benefit:nth-child(n + 4) { grid-column: span 3; }
  .cta-card { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { gap: 12px; padding: 8px 8px 8px 18px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: rgba(10, 7, 8, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1.0625rem; }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile .btn { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-top: 132px; }
  /* na telefonie pokazujemy prawą, „wznoszącą się” część wykresu ze strzałką */
  .hero-chart { top: 64px; }
  .hero-chart svg { width: 175%; max-width: none; margin-left: -75%; }
  .hero-actions .btn { width: 100%; }
  .reels { margin-top: 52px; --gap: 14px; --card-w: 156px; }
  .services { grid-template-columns: 1fr; }
  /* pionowa linia czasu */
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 40px; }
  .step:last-child { padding-bottom: 0; }
  .step::before, .step:nth-child(2n)::before, .step:last-child::before { top: 6px; bottom: -6px; left: 6px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(255, 51, 85, .75), rgba(255, 255, 255, .14)); }
  .step:last-child::before { display: none; }
  .step::after { top: 0; left: 0; }
  .step-num { font-size: 2.4rem; margin-bottom: 8px; }
  .step p { max-width: none; }
  .card { padding: 26px; min-height: 0; }
  .card--coral { min-height: 0; }
  .card--wide h3 { font-size: 1.6rem; }
  .card-art, .card--wide .card-art { width: 150px; height: 150px; right: -18px; bottom: -22px; }
  .section--process { padding-top: 24px; } /* bliżej sekcji Usługi */
  .benefit-list { grid-template-columns: 1fr; }
  .benefit, .benefit:nth-child(n + 4) { grid-column: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; min-height: 0; padding: 18px 20px; }
  .benefit::after { right: -10%; bottom: -80%; }
  .benefits-cta .btn { width: 100%; }
  .faq-item summary { padding: 20px 0; font-size: 1.1rem; }
  .faq-item p { padding: 0 0 22px; }
  .form .btn { width: 100%; justify-self: stretch; }
  .section--contact::before { width: 300px; right: -150px; top: -150px; }
  .whatsapp { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .whatsapp svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reels { overflow-x: auto; pointer-events: auto; -webkit-mask-image: none; mask-image: none; }
  .reels-track { animation: none; }
  .eyebrow .dot, .notice-icon, .play::before, .play::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
