/* ============================================================
   NOW-BUS — style.css
   Paleta: granat + czerwień i błękit z logo
   Fonty: Poppins (nagłówki), Open Sans (tekst)
   ============================================================ */

:root {
  /* Kolory marki */
  --navy-950: #081426;
  --navy-900: #0B1B33;
  --navy-800: #13294B;
  --red-600: #C8102E;
  --red-700: #A50D26;
  --red-50:  #FCEAEE;
  --blue-600: #1E56C8;
  --blue-700: #17439E;
  --blue-50:  #EAF0FC;

  /* Neutralne */
  --ink: #14213A;
  --text: #3E4C63;
  --text-light: #52657E;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --border: #E3E9F2;

  /* Typografia */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  /* Odstępy / promienie / cienie */
  --radius: 24px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 27, 51, .08);
  --shadow-md: 0 6px 22px rgba(11, 27, 51, .10);
  --shadow-lg: 0 16px 44px rgba(11, 27, 51, .16);

  --header-h: 76px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-700); }

.container {
  width: min(100% - 2.5rem, 1160px);
  margin-inline: auto;
}

/* kotwice nie mogą chować się pod pływającym nagłówkiem */
[id] { scroll-margin-top: 90px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.only-desktop { display: none; }
@media (min-width: 768px) { .only-desktop { display: inline; } }

/* Skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .8rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, .3);
}
.btn-primary:hover { background: var(--red-700); box-shadow: 0 10px 26px rgba(200, 16, 46, .38); }

.btn-secondary {
  background: var(--navy-900);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-800); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .65);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-phone {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: transparent;
  padding: .55rem 1.1rem;
  min-height: 44px;
  font-size: .95rem;
  white-space: nowrap;
}
.btn-phone:hover { background: var(--blue-600); color: #fff; }

/* ---------- Płynny nagłówek i liquid glass ---------- */
.site-nav { position: fixed; inset: 0 0 auto; z-index: 100; padding-top: max(12px, env(safe-area-inset-top)); pointer-events: none; }
.nav-shell {
  --nav-progress: 0;
  position: relative;
  width: calc(100% - 48px - var(--nav-progress) * 32px);
  max-width: calc(1240px - var(--nav-progress) * 120px);
  margin-inline: auto;
  padding-inline: calc(24px - var(--nav-progress) * 4px);
  border-radius: 999px;
  isolation: isolate;
  pointer-events: auto;
  box-shadow:
    0 8px 30px rgb(25 49 83 / calc(.06 + var(--nav-progress) * .08)),
    0 0 48px rgb(55 124 235 / calc(.10 + var(--nav-progress) * .04));
}
.nav-shell::before {
  content: "";
  position: absolute;
  z-index: -4;
  inset: -24px -18px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 28% 50%, rgb(61 132 239 / .18), rgb(117 170 244 / .08) 48%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}
.glass-layer { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.glass-warp { z-index: -3; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.glass-tint { z-index: -2; background: linear-gradient(120deg, rgb(255 255 255 / .88), rgb(238 246 255 / .75)); }
.glass-shine { z-index: -1; border: 1px solid rgb(157 190 230 / .34); box-shadow: inset 0 1px 2px white, inset 0 -1px 1px rgb(124 159 200 / .2); }
.nav-shell .glass-layer { opacity: calc(.72 + var(--nav-progress) * .28); }
.nav-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: calc(18px - var(--nav-progress) * 7px); }
.nav-left { display: flex; align-items: center; gap: clamp(24px, 3.5vw, 48px); min-width: 0; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { width: auto; height: 45px; }
.nav-burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; color: var(--ink); background: rgb(255 255 255 / .6); border: 1px solid rgb(145 171 204 / .2); border-radius: 50%; cursor: pointer; }
.nav-burger .icon { position: absolute; inset: 0; margin: auto; width: 21px; height: 21px; transition: transform .4s ease, opacity .25s ease; }
.nav-burger .icon-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.site-nav[data-state="active"] .icon-menu { opacity: 0; transform: rotate(90deg) scale(.6); }
.site-nav[data-state="active"] .icon-x { opacity: 1; transform: none; }
.nav-links { display: flex; gap: clamp(16px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-heading); font-size: .84rem; text-decoration: none; color: var(--text); white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--blue-600); }
.nav-menu { display: flex; }
.nav-links-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-sm { min-height: 46px; padding: .75rem 1.2rem; font-size: .88rem; white-space: nowrap; }
.btn-outline-dark { color: var(--ink); }
.btn-outline-dark:hover { background: rgb(255 255 255 / .7); }
.nav-backdrop { position: fixed; inset: 0; z-index: 99; background: rgb(15 33 58 / .22); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-backdrop { opacity: 1; visibility: visible; }
@media (min-width: 1024px) and (max-width: 1150px) { .nav-actions .btn-outline-dark { display: none; } }
@media (max-width: 1023px) {
  .site-nav { padding-top: max(10px, env(safe-area-inset-top)); }
  .nav-shell { width: calc(100% - 28px); max-width: 720px; padding-inline: 16px; }
  .nav-shell .glass-layer { opacity: .95; }
  .nav-row { display: block; padding-block: calc(12px - var(--nav-progress) * 3px); }
  .nav-left { width: 100%; justify-content: space-between; }
  .brand-logo { height: 40px; }
  .nav-burger { display: block; }
  .nav-links { display: none; }
  .nav-menu {
    position: absolute; top: calc(100% + 14px); left: -16px; right: -16px;
    display: block; padding: 24px; border-radius: 28px;
    background: linear-gradient(135deg, rgb(255 255 255 / .98), rgb(239 246 255 / .97));
    border: 1px solid rgb(255 255 255 / .95);
    box-shadow: 0 20px 60px rgb(14 40 77 / .17), inset 0 1px 0 white;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.97); transform-origin: top center;
    transition: opacity .28s ease, transform .4s cubic-bezier(.22, 1, .36, 1), visibility .4s;
  }
  .site-nav[data-state="active"] .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links-mobile { display: grid; list-style: none; padding: 0; margin: 0 0 20px; }
  .nav-links-mobile a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 8px 4px; border-bottom: 1px solid var(--border); color: var(--ink); text-decoration: none; font: 500 1.12rem var(--font-heading); }
  .nav-links-mobile a::after { content: "↗"; font-size: 1rem; color: #8398b1; }
  .nav-links-mobile a:hover { color: var(--blue-600); }
  .nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav-actions .btn { padding-inline: 8px; font-size: .86rem; }
}
@media (max-width: 359px) { .nav-menu { padding: 18px; } .nav-actions { grid-template-columns: 1fr; } }

/* ---------- Hero inspirowany przekazanym komponentem ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 48.5fr) minmax(420px, 51.5fr);
  min-height: max(680px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 78%, rgb(54 123 235 / .13) 0, rgb(102 157 240 / .07) 22%, transparent 48%),
    radial-gradient(ellipse at 30% 2%, rgb(71 139 238 / .12) 0, rgb(174 207 250 / .08) 32%, transparent 60%),
    #f7f9fc;
  color: var(--ink);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(150px, 17vh, 190px) clamp(44px, 4vw, 76px) 44px max(40px, calc((100vw - 1540px) / 2));
}
.hero-main { max-width: 610px; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--blue-700);
  font: 700 .7rem/1.4 var(--font-heading);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-eyebrow > span {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--red-600); box-shadow: 0 0 0 5px rgb(200 16 46 / .08);
}
.hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.3rem, 5.3vw, 5.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.06em;
}
.hero h1 em { color: var(--blue-600); font-style: normal; }
.hero-accent {
  width: 76px; height: 4px; margin: 30px 0 26px;
  border-radius: 99px; background: var(--red-600);
  transform-origin: left; animation: hero-line .7s .5s both cubic-bezier(.22,1,.36,1);
}
.hero-sub {
  max-width: 480px;
  margin: 0 0 30px;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.85;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  color: var(--red-600);
  font: 700 .95rem/1.2 var(--font-heading);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap .25s ease, color .25s ease;
}
.hero-cta:hover { gap: 26px; color: var(--red-700); }
.hero-cta span { font-size: 1.2rem; }
.hero-contact {
  display: grid;
  grid-template-columns: .85fr .9fr 1.3fr;
  gap: clamp(16px, 2.2vw, 34px);
  max-width: 700px;
  margin-top: 54px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}
.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: .75rem;
  line-height: 1.35;
  text-decoration: none;
}
.hero-contact-item svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--blue-600); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-contact-item span { min-width: 0; overflow-wrap: anywhere; }
.hero-contact-item small {
  display: block;
  margin-bottom: 2px;
  color: #8795a9;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  background: #dfe7f1;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  animation: hero-reveal 1.15s cubic-bezier(.22,1,.36,1) both;
}
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 63% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(9 30 56 / .1), transparent 35%), linear-gradient(0deg, rgb(8 20 38 / .25), transparent 35%);
}
.hero-image-caption {
  position: absolute; z-index: 1; right: 32px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  color: white; font: 500 .7rem var(--font-heading);
  letter-spacing: .08em; text-transform: uppercase;
}
.hero-image-caption span {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid rgb(255 255 255 / .6); border-radius: 50%;
  background: rgb(9 30 56 / .18); backdrop-filter: blur(10px);
}
@keyframes hero-reveal {
  from { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); }
  to { clip-path: polygon(14% 0,100% 0,100% 100%,0 100%); }
}
@keyframes hero-line { from { transform: scaleX(0); } }
.hero-main > *:not(.hero-accent) { animation: hero-rise .55s both ease-out; }
.hero-main > :nth-child(1) { animation-delay: .12s; }
.hero-main > :nth-child(2) { animation-delay: .2s; }
.hero-main > :nth-child(4) { animation-delay: .32s; margin-bottom: 12px;}
.hero-main > :nth-child(5) { animation-delay: .4s; }
.hero-contact { animation: hero-rise .55s .55s both ease-out; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-mobile-reveal {
  from {
    opacity: .35;
    transform: translate3d(-12px, 0, 0);
    clip-path: polygon(0 10%, 0 10%, 0 100%, 0 100%);
  }
  58% { opacity: 1; }
  to {
    opacity: 1;
    transform: none;
    clip-path: polygon(0 10%, 100% 0, 100% 88%, 0 100%);
  }
}

@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); min-height: 720px; }
  .hero-content { padding: 135px 36px 34px 32px; }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.25rem); }
  .hero-contact { grid-template-columns: 1fr; gap: 13px; margin-top: 38px; }
  .hero-media { clip-path: polygon(15% 0,100% 0,100% 100%,0 100%); }
  @keyframes hero-reveal {
    from { clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); }
    to { clip-path: polygon(15% 0,100% 0,100% 100%,0 100%); }
  }
}
@media (max-width: 699px) {
  .site-nav { padding-top: max(7px, env(safe-area-inset-top)); }
  .nav-shell { width: calc(100% - 24px); padding-inline: 14px; }
  .nav-row { padding-block: calc(8px - var(--nav-progress) * 2px); }
  .brand-logo { height: 36px; }
  .nav-burger { width: 40px; height: 40px; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100svh;
    align-content: start;
    padding-top: clamp(66px, 8.7svh, 74px);
    overflow: clip;
  }
  .hero-content { display: contents; }
  .hero-main {
    order: 1;
    max-width: none;
    padding: clamp(11px, 1.7svh, 14px) 20px clamp(7px, 1svh, 10px);
    padding-left: clamp(22px, 6vw, 28px);
    padding-right: clamp(38px, 11vw, 52px);
  }
  .hero-eyebrow { margin-bottom: clamp(6px, .9svh, 8px); font-size: .6rem; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(2.36rem, 10vw, 2.95rem); line-height: 1; }
  .hero-accent { width: 52px; height: 3px; margin: clamp(8px, 1svh, 10px) 0 clamp(7px, .9svh, 9px); }
  .hero-sub { margin-bottom: clamp(6px, .9svh, 8px); font-size: .85rem; line-height: 1.42; }
  .hero-cta { min-height: 34px; font-size: .74rem; letter-spacing: .08em; }
  .hero-media {
    order: 2;
    height: clamp(350px, calc(38dvh + 56px), 406px);
    min-height: 0;
    aspect-ratio: auto;
    width: 100%;
    margin: -12px 0 0;
    border-radius: 0;
    overflow: hidden;
    clip-path: polygon(0 10%, 100% 0, 100% 88%, 0 100%);
    box-shadow: none;
    transform-origin: left center;
    animation: hero-mobile-reveal .9s .18s both cubic-bezier(.22, 1, .36, 1);
  }
  .hero-media img { object-position: 61% 52%; }
  .hero-image-caption { left: 16px; right: auto; top: 43px; bottom: auto; font-size: .56rem; }
  .hero-image-caption span { width: 30px; height: 30px; }
  .hero-contact {
    order: 3;
    position: relative;
    z-index: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    margin: -22px 20px 28px;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 32px rgba(11, 27, 51, .13);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .hero-contact-item {
    align-items: flex-start; gap: 7px; font-size: .64rem;
  }
  .hero-contact-item svg { width: 17px; height: 17px; }
  .hero-contact-item small { font-size: .52rem; }
}
@media (max-width: 380px) {
  .hero-main { padding-left: 22px; padding-right: 38px; }
  .hero-media { height: clamp(336px, calc(38dvh + 56px), 366px); margin-inline: 0; aspect-ratio: auto; }
  .hero-contact { grid-template-columns: 1fr 1fr; margin-inline: 14px; }
  .hero-contact-item:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media, .hero-main > *, .hero-contact { animation: none !important; }
}


/* ---------- Sekcje ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg); }

.section-kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: .5rem;
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-lead { color: var(--text-light); font-size: 1.06rem; }

/* ---------- O firmie (split) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
}

.split-media { position: relative; }
.split-media picture, .split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split-media img.about-bus-image { object-position: 62% 56%; }

.split-media-card {
  position: absolute;
  left: 1.25rem;
  bottom: -1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .9rem 1.4rem;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.split-media-card strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FF8FA3;
}
.split-media-card span { font-size: .88rem; opacity: .85; }

.checklist {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  display: grid;
  gap: .7rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--blue-50) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2317439E" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 60% no-repeat;
}

/* ---------- Karty oferty ---------- */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD8EC;
}

/* Spotlight/glow za kursorem (port GlowCard) — tylko mysz/precyzyjny wskaźnik.
   Zmienne --x/--y (viewport px) i --xp (0..1) ustawia JS na .cards-grid;
   background-attachment: fixed pozycjonuje gradienty w układzie viewportu. */
@media (hover: hover) and (pointer: fine) {
  .cards-grid .card {
    position: relative;
    --spot: 260px;
    --glow-hue: calc(212 + var(--xp, 0) * 40); /* pasmo niebieskie marki */
    background-image: radial-gradient(
      var(--spot) var(--spot) at calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
      hsl(var(--glow-hue) 90% 55% / .075), transparent 70%
    );
    background-attachment: fixed;
    background-repeat: no-repeat;
  }

  .cards-grid .card::before,
  .cards-grid .card::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -1px;
    border: 2px solid transparent;
    border-radius: calc(var(--radius) + 1px);
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* świeci tylko ramka: maska = przecięcie border-box \ padding-box */
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
  }

  .cards-grid .card::before {
    background-image: radial-gradient(
      calc(var(--spot) * .75) calc(var(--spot) * .75) at calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
      hsl(var(--glow-hue) 95% 48% / .9), transparent 100%
    );
  }

  .cards-grid .card::after {
    background-image: radial-gradient(
      calc(var(--spot) * .4) calc(var(--spot) * .4) at calc(var(--x, -999) * 1px) calc(var(--y, -999) * 1px),
      hsl(0 0% 100% / .95), transparent 100%
    );
  }
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-light); font-size: .96rem; }

/* ---------- Atuty ---------- */
.features-grid {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
  align-items: start;
}
.feature-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-50);
  color: var(--red-600);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { color: var(--text-light); font-size: .95rem; margin: 0; }

/* ---------- Zoom Parallax („W trasie") ----------
   Port komponentu ZoomParallax (React/framer-motion) na czysty CSS+JS.
   JS ustawia --p (0..1 = postęp scrolla w sekcji); skale liczone w calc(). */
.zoom-parallax {
  --p: 0;
  display: none;
  position: relative;
  height: 300vh;
  background: var(--navy-950);
}

.zp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.zp-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* skale docelowe jak w oryginale: 4, 5, 6, 5, 6, 8, 9 */
.zp-item-0 { transform: scale(calc(1 + var(--p) * 3)); }
.zp-item-1 { transform: scale(calc(1 + var(--p) * 4)); }
.zp-item-2 { transform: scale(calc(1 + var(--p) * 5)); }
.zp-item-3 { transform: scale(calc(1 + var(--p) * 4)); }
.zp-item-4 { transform: scale(calc(1 + var(--p) * 5)); }
.zp-item-5 { transform: scale(calc(1 + var(--p) * 7)); }
.zp-item-6 { transform: scale(calc(1 + var(--p) * 8)); }

.zp-frame {
  position: relative;
  width: 25vw;
  height: 25vh;
  overflow: hidden;
}
.zp-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* pozycje ramek — przeniesione 1:1 z komponentu */
.zp-item-1 .zp-frame { top: -30vh; left: 5vw;     height: 30vh; width: 35vw; }
.zp-item-2 .zp-frame { top: -10vh; left: -25vw;   height: 45vh; width: 20vw; }
.zp-item-3 .zp-frame {             left: 27.5vw;  height: 25vh; width: 25vw; }
.zp-item-4 .zp-frame { top: 27.5vh; left: 5vw;    height: 25vh; width: 20vw; }
.zp-item-5 .zp-frame { top: 27.5vh; left: -22.5vw; height: 25vh; width: 30vw; }
.zp-item-6 .zp-frame { top: 22.5vh; left: 25vw;   height: 15vh; width: 15vw; }

/* podpowiedź na starcie — znika wraz ze scrollem */
.zp-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
  background: rgba(8, 20, 38, .5);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: .55rem 1.2rem;
  backdrop-filter: blur(6px);
  opacity: calc(1 - var(--p) * 8);
  pointer-events: none;
  white-space: nowrap;
}
.zp-hint .icon { animation: zp-bounce 1.6s ease-in-out infinite; }
@keyframes zp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* finał — hasło + CTA wyłaniają się, gdy centralne zdjęcie wypełnia ekran */
.zp-finale {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(8, 20, 38, .3), rgba(8, 20, 38, .62));
  opacity: calc((var(--p) - 0.82) * 5.5);
  pointer-events: none;
}
.zp-finale.visible { pointer-events: auto; }
.zp-finale h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  text-shadow: 0 2px 24px rgba(8, 20, 38, .55);
  margin: 0;
}

/* fallback: preferencja ograniczenia ruchu → statyczna wersja bez efektu */
.zoom-parallax.zp-static { height: auto; }
.zp-static .zp-sticky {
  position: static;
  height: auto;
  overflow: visible;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.zp-static .zp-item { display: none; }
.zp-static .zp-item-0 {
  position: static;
  display: flex;
  transform: none;
}
.zp-static .zp-item-0 .zp-frame {
  width: min(100% - 2.5rem, 900px);
  height: auto;
  border-radius: var(--radius);
}
.zp-static .zp-item-0 img { aspect-ratio: 4 / 3; }
.zp-static .zp-hint { display: none; }
.zp-static .zp-finale {
  position: static;
  opacity: 1;
  pointer-events: auto;
  background: none;
  padding-top: 2.5rem;
}

/* mobile: większa ramka centralna, chowamy najmniejszą */
@media (max-width: 767px) {
  .zp-item-6 { display: none; }
  .zp-item-0 .zp-frame { width: 48vw; height: 24vh; }
  .zp-hint { font-size: .85rem; }
}

/* ---------- Mobilna karuzela „W trasie” ---------- */
.mobile-route-carousel {
  display: block;
  padding: clamp(72px, 8vw, 112px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgb(104 163 255 / .18), transparent 30%),
    linear-gradient(180deg, #f6f9fe, #eaf1fa);
}
.mrc-shell {
  width: min(100% - 28px, 520px);
  margin-inline: auto;
}
.mrc-heading {
  margin-bottom: 22px;
}
.mrc-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--red-600);
  font: 700 .68rem var(--font-heading);
  letter-spacing: .14em;
}
.mrc-heading .eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.mrc-heading h2 {
  max-width: 330px;
  margin: 0;
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  line-height: 1.08;
}
.mrc-viewport {
  --mrc-index: 0;
  --mrc-drag-x: 0px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #cbd9e9;
  box-shadow: 0 18px 48px rgb(15 45 85 / .16);
  touch-action: pan-y;
  cursor: grab;
}
.mrc-viewport.is-dragging { cursor: grabbing; }
.mrc-track {
  display: flex;
  transform: translate3d(calc(var(--mrc-index) * -100% + var(--mrc-drag-x)), 0, 0);
  transition: transform .58s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.mrc-viewport.is-dragging .mrc-track { transition: none; }
.mrc-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(380px, 112vw, 500px);
  margin: 0;
  overflow: hidden;
}
.mrc-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mrc-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.mrc-slide::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgb(6 19 38 / .72));
  pointer-events: none;
}
.mrc-slide figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 600 .78rem var(--font-heading);
  letter-spacing: .03em;
}
.mrc-slide figcaption span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .55);
  border-radius: 50%;
  font-size: .62rem;
}
.mrc-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / .5);
  border-radius: 50%;
  color: var(--navy-950);
  background: rgb(255 255 255 / .8);
  box-shadow: 0 8px 24px rgb(8 20 38 / .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity .25s, transform .25s, background .25s;
}
.mrc-arrow svg { width: 20px; height: 20px; }
.mrc-prev { left: 12px; }
.mrc-next { right: 12px; }
.mrc-arrow:active { transform: translateY(-50%) scale(.9); }
.mrc-arrow:disabled { opacity: .28; }
.mrc-thumbnails {
  display: flex;
  gap: 4px;
  height: 80px;
  margin-top: 12px;
  padding: 2px 1px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.mrc-thumbnails::-webkit-scrollbar { display: none; }
.mrc-thumb {
  flex: 0 0 35px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  opacity: .58;
  background: #cbd9e9;
  transition: flex-basis .38s cubic-bezier(.22, 1, .36, 1), opacity .25s, border-radius .25s, box-shadow .25s;
}
.mrc-thumb.is-active {
  flex-basis: 120px;
  border-radius: 14px;
  opacity: 1;
  box-shadow: 0 6px 18px rgb(15 45 85 / .18);
}
.mrc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (min-width: 700px) {
  .mobile-route-carousel {
    padding: clamp(50px, 7svh, 74px) 0 clamp(42px, 6svh, 66px);
  }
  .mrc-shell {
    width: min(100% - 96px, 900px);
  }
  .mrc-heading {
    margin-bottom: 22px;
  }
  .mrc-heading h2 {
    max-width: 560px;
    font-size: clamp(2.7rem, 4.1vw, 4.1rem);
    line-height: 1.02;
  }
  .mrc-viewport {
    border-radius: 28px;
    box-shadow: 0 26px 64px rgb(15 45 85 / .16);
  }
  .mrc-slide {
    height: clamp(410px, 45vw, 560px);
  }
  .mrc-slide figcaption {
    right: 32px;
    bottom: 28px;
    left: 32px;
    gap: 14px;
    font-size: .96rem;
  }
  .mrc-slide figcaption span {
    width: 40px;
    height: 40px;
    font-size: .72rem;
  }
  .mrc-arrow {
    width: 48px;
    height: 48px;
  }
  .mrc-arrow svg {
    width: 23px;
    height: 23px;
  }
  .mrc-prev { left: 22px; }
  .mrc-next { right: 22px; }
  .mrc-thumbnails {
    gap: 9px;
    height: 74px;
    margin-top: 14px;
    padding-bottom: 5px;
  }
  .mrc-thumb {
    flex-basis: 70px;
    height: 66px;
    border-radius: 12px;
  }
  .mrc-thumb.is-active {
    flex-basis: 150px;
    border-radius: 16px;
  }
}

/* ---------- Pas CTA ---------- */
.cta-band {
  background:
    linear-gradient(120deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.contact-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.contact-value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
a.contact-value:hover { color: var(--red-600); }

/* Formularz */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .35rem;
}
.req { color: var(--red-600); }

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  min-height: 48px;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 86, 200, .15);
}

.form-field.invalid input,
.form-field.invalid textarea { border-color: var(--red-600); }

.field-error {
  color: var(--red-600);
  font-size: .84rem;
  margin: .35rem 0 0;
  min-height: 0;
}
.field-error:empty { display: none; }

.form-note {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: .9rem;
  text-align: center;
}
.netlify-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-privacy {
  margin: .65rem 0 0;
  color: var(--text-light);
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}
.form-privacy a { font-weight: 700; }

.form-success {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: #F0FAF4;
  border: 1px solid #BBE5C8;
  color: #14532D;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
}
.form-success .icon { width: 26px; height: 26px; color: #16A34A; margin-top: .1rem; }
.form-success p { margin: .2rem 0 0; font-size: .93rem; }
.form-success a { color: inherit; font-weight: 700; }

/* ---------- Stopka ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4rem) 0 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .18s ease;
}
.site-footer a:hover { color: #fff; }

.footer-logo-plate {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  margin-bottom: 1.1rem;
}
.footer-logo-plate img { height: 44px; width: auto; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.1rem 0;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom p a { margin-left: .65rem; }

/* ---------- Polityka prywatności ---------- */
.privacy-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgb(80 145 238 / .14), transparent 28%),
    linear-gradient(180deg, #eef4fc, #f8fafc 38%, #fff);
}
.privacy-header { padding: 18px 0; }
.privacy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 980px);
  margin-inline: auto;
  padding: 10px 18px;
  border: 1px solid rgb(180 204 234 / .45);
  border-radius: 999px;
  background: rgb(255 255 255 / .78);
  box-shadow: 0 14px 38px rgb(29 67 116 / .1);
  backdrop-filter: blur(18px);
}
.privacy-header img { width: auto; height: 42px; }
.privacy-header a:first-child { display: inline-flex; }
.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 600 .82rem var(--font-heading);
  text-decoration: none;
}
.privacy-back span { color: var(--red-600); font-size: 1rem; }
.privacy-main {
  width: min(100% - 40px, 900px);
  margin: clamp(28px, 5vw, 64px) auto clamp(64px, 8vw, 104px);
}
.privacy-card {
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 4vw, 38px);
  background: rgb(255 255 255 / .94);
  box-shadow: 0 24px 70px rgb(21 53 94 / .1);
}
.privacy-card h1 {
  max-width: 720px;
  margin-bottom: .25em;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.privacy-updated {
  color: #7d8ba0;
  font-size: .82rem;
}
.privacy-lead {
  max-width: 720px;
  margin: 28px 0 46px;
  color: var(--text-light);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}
.privacy-card section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.privacy-card section:last-child { padding-bottom: 0; }
.privacy-card section h2 {
  margin-bottom: .7em;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
}
.privacy-card section p {
  max-width: 740px;
  color: var(--text);
  line-height: 1.8;
}
.privacy-footer {
  padding: 26px 0;
  color: rgb(255 255 255 / .78);
  background: var(--navy-950);
}
.privacy-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.privacy-footer p { margin: 0; }
.privacy-footer a { color: #fff; }
@media (max-width: 599px) {
  .privacy-header-inner { width: calc(100% - 24px); padding: 8px 12px; }
  .privacy-header img { height: 36px; }
  .privacy-back { font-size: .72rem; }
  .privacy-main { width: calc(100% - 24px); margin-top: 22px; }
  .privacy-card { padding: 26px 20px; }
  .privacy-lead { margin: 22px 0 34px; }
  .privacy-card section { padding: 23px 0; }
  .privacy-footer .container { align-items: flex-start; flex-direction: column; }
}

/* ---------- Strona podziekowania ---------- */
.thanks-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  background:
    radial-gradient(circle at 18% 12%, rgb(31 98 213 / .16), transparent 30%),
    linear-gradient(180deg, #edf5ff, #fff 58%, #f4f7fc);
}
.thanks-main {
  width: min(100%, 780px);
  display: grid;
  justify-items: center;
  gap: clamp(22px, 4vw, 34px);
}
.thanks-logo {
  display: inline-flex;
  padding: 10px 24px;
  border: 1px solid rgb(180 204 234 / .55);
  border-radius: 999px;
  background: rgb(255 255 255 / .82);
  box-shadow: 0 16px 42px rgb(29 67 116 / .12);
  backdrop-filter: blur(18px);
}
.thanks-logo img { width: auto; height: 54px; }
.thanks-card {
  width: 100%;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: clamp(24px, 4vw, 38px);
  background: rgb(255 255 255 / .94);
  box-shadow: 0 24px 70px rgb(21 53 94 / .1);
  text-align: center;
}
.thanks-card .eyebrow { justify-content: center; }
.thanks-card h1 {
  max-width: 620px;
  margin: 0 auto .55em;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1.05;
}
.thanks-card p:not(.eyebrow) {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-light);
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.75;
}
.thanks-card a:not(.btn) { font-weight: 700; }
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 599px) {
  .thanks-logo img { height: 42px; }
  .thanks-card { padding: 28px 20px; text-align: left; }
  .thanks-card .eyebrow { justify-content: flex-start; }
  .thanks-card h1,
  .thanks-card p:not(.eyebrow) { margin-inline: 0; }
  .thanks-actions { justify-content: flex-start; }
  .thanks-actions .btn { width: 100%; }
}

/* ---------- Mobilna wyspa kontaktu (FAB, liquid glass) ---------- */
.fab {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 95;
  width: 60px;
  height: 60px;
}
@media (max-width: 767px) {
  .fab { display: block; }
}

/* wyspy FAB mają szkło zawsze widoczne (nie zależą od .is-scrolled) */
.fab .glass-layer { opacity: 1; }

.fab-main,
.fab-mini {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(11, 27, 51, .08);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 6px rgba(11, 27, 51, .16), 0 0 20px rgba(11, 27, 51, .09);
  touch-action: manipulation;
}

.fab-main {
  inset: 0;
  width: 60px;
  height: 60px;
  padding: 0;
}
.fab-main .icon {
  position: relative;
  z-index: 3;
  width: 26px;
  height: 26px;
  transition: transform .5s cubic-bezier(.175, .885, .32, 2.2);
}
.fab.open .fab-main .icon { transform: rotate(45deg); } /* plus -> x */

.fab-mini {
  inset: 4px;
  width: 52px;
  height: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(.4);
  transition:
    transform .5s cubic-bezier(.175, .885, .32, 2.2),
    opacity .25s ease;
}
.fab-mini .icon {
  position: relative;
  z-index: 3;
  width: 22px;
  height: 22px;
}
.fab-phone .icon { color: var(--red-600); }
.fab-mail .icon { color: var(--blue-700); }

.fab.open .fab-mini {
  opacity: 1;
  pointer-events: auto;
}
.fab.open .fab-phone { transform: translate(0, -66px) scale(1); }  /* nad plusikiem */
.fab.open .fab-mail  { transform: translate(-66px, 0) scale(1); }  /* po lewej */

/* ---------- Animacje reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { flex-wrap: wrap; width: auto; gap: 1.5rem 3rem; justify-content: center; }
  .strip-marquee { cursor: auto; }
  .pblur { display: none; }
  .fab-main .icon, .fab-mini { transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Spójne wykończenie sekcji ---------- */
html { scroll-padding-top: 108px; }
[id] { scroll-margin-top: 12px; }
.container { width: min(100% - 80px, 1160px); }
h2 { letter-spacing: -.04em; line-height: 1.25; font-size: clamp(1.9rem, 3.2vw, 2.65rem); }
h3 { letter-spacing: -.025em; }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section-kicker { font-size: .7rem; letter-spacing: .16em; margin-bottom: 14px; }
.section-kicker::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.section-lead { font-size: 1rem; line-height: 1.8; }
.section-head { margin-bottom: 44px; max-width: 700px; }
#o-firmie { background: linear-gradient(180deg, white 75%, #f5f8fd); }
.split-media picture { display: block; overflow: hidden; box-shadow: none; border-radius: 28px; }
.split-media img { width: 100%; aspect-ratio: 1.08; object-fit: cover; border-radius: 28px; box-shadow: none; }
.split-media-card { bottom: 22px; left: 22px; padding: 16px 21px; border-radius: 18px; background: rgb(255 255 255 / .85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgb(255 255 255 / .9); color: var(--ink); }
.split-media-card strong { color: var(--blue-700); }
.split-body > p:not(.section-kicker), .checklist { font-size: .92rem; }
#oferta { background: radial-gradient(ellipse at 90% 35%, #eaf0fc 0, transparent 55%), linear-gradient(180deg, #f5f8fd, #f5f8fd 75%, white); }
.cards-grid { gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; padding: 28px; box-shadow: 0 4px 15px rgb(33 61 98 / .025); background-color: rgb(255 255 255 / .85); }
.card-number { position: absolute; top: 30px; right: 28px; color: #8395af; font: 500 .78rem var(--font-heading); }
.card-icon { width: 50px; height: 50px; border-radius: 16px; margin-bottom: 25px; background: linear-gradient(145deg, #f0f5ff, #e5edfd); border: 1px solid #e2eafb; }
.card h3 { font-size: 1.12rem; line-height: 1.45; }
.card p { font-size: .88rem; line-height: 1.85; margin-bottom: 24px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; min-height: 44px; border-top: 1px solid var(--border); padding-top: 14px; font: 500 .76rem var(--font-heading); text-decoration: none; color: var(--blue-700); }
.card-link span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); transition: transform .25s; }
.card:hover .card-link span { transform: rotate(45deg); }
.offer-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; font-size: .82rem; color: var(--text-light); }
.offer-note strong { color: var(--ink); font-weight: 600; }
.offer-note a { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
#atuty { padding-top: 60px; }
.features-grid { gap: 28px; }
.feature { border-top: 1px solid var(--border); padding-top: 25px; gap: 5px 16px; }
.feature-icon { background: #f4f6fa; color: var(--blue-700); border-radius: 16px; }
.feature h3 { font-size: .93rem; line-height: 1.5; }
.feature p { font-size: .84rem; line-height: 1.8; }
.zoom-parallax { height: 240svh; border-radius: 36px; margin: 0 20px; background: #e9f0f8; }
.zp-sticky { border-radius: 36px; }
.zp-frame { border-radius: calc(20px * (1 - var(--p))); }
.zp-frame picture { display: block; height: 100%; }
.zp-finale { opacity: clamp(0, calc((var(--p) - .6) / .35), 1); }
.gallery-grid { gap: 16px; }
.gallery-item { border-radius: 18px; }
.gallery-item::after { opacity: 1; background: linear-gradient(180deg, transparent 65%, rgb(8 20 38 / .2)); pointer-events: none; }
.cta-band { margin: 12px 20px 0; border-radius: 30px; background: radial-gradient(ellipse at 95% 10%, #284974, transparent 65%), #10233e; }
.cta-band h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.cta-band p { font-size: .92rem; }
#kontakt { background: linear-gradient(180deg, white, #f4f7fc); }
.contact-form { border-radius: 28px; box-shadow: 0 12px 45px rgb(30 57 91 / .06); }
.form-field { min-width: 0; }
.form-field input, .form-field textarea { min-width: 0; }
.form-success[hidden] { display: none; }
.contact-value { overflow-wrap: anywhere; }
.footer-grid > * { min-width: 0; }
.footer-contact, .footer-legal { overflow-wrap: anywhere; }
.fab { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s; }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
body.menu-open .fab { opacity: 0; visibility: hidden; }
.fab-main, .fab-mini { isolation: isolate; background: rgb(244 248 255 / .7); box-shadow: 0 6px 24px rgb(11 27 51 / .12); }
@media (max-width: 1023px) {
  .container { width: calc(100% - 48px); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .zoom-parallax { display: none; }
  .mobile-route-carousel {
    display: block;
    padding: 54px 0 42px;
    overflow: hidden;
    background:
      radial-gradient(circle at 88% 12%, rgb(104 163 255 / .22), transparent 30%),
      linear-gradient(180deg, #f6f9fe, #eaf1fa);
  }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 60px; }
  .section-head { text-align: left; margin-bottom: 28px; }
  h2 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  .section-lead { font-size: .92rem; }
  .split { gap: 30px; }
  .split-media img { aspect-ratio: 1.2; }
  .split-media-card { bottom: 16px; left: 16px; padding: 13px 17px; }
  .split-media-card strong { font-size: 1.25rem; }
  .split-media-card span { font-size: .75rem; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 24px; }
  .card-icon { margin-bottom: 20px; }
  .card p { margin-bottom: 16px; }
  .card-number { top: 27px; right: 24px; }
  .offer-note { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 22px; }
  .offer-note strong { display: block; }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #atuty { padding-top: 30px; }
  .feature { padding-top: 20px; }
  .feature h3 { font-size: 1rem; }
  .feature p { font-size: .88rem; }
  .zoom-parallax { margin-inline: 8px; height: 190svh; border-radius: 24px; }
  .zp-sticky { border-radius: 24px; }
  .zp-finale h2 { font-size: 1.9rem; }
  .zp-hint { font-size: .68rem; padding: 10px 12px; }
  .gallery-grid { gap: 10px; }
  .gallery-item { border-radius: 14px; }
  .cta-band { margin-inline: 10px; border-radius: 24px; }
  .cta-band .container { width: calc(100% - 40px); }
  .cta-band-inner { gap: 24px; }
  .cta-band .btn { width: 100%; }
  .contact-form { padding: 22px; }
  .contact-value { font-size: .94rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .zoom-parallax.zp-static { height: auto; }
  .mrc-track,
  .mrc-thumb { transition-duration: .01ms; }
}

@media (min-width: 360px) and (max-width: 699px) {
  .hero-actions { display: grid; grid-template-columns: 1.4fr 1fr; }
  .hero-actions .btn { font-size: .76rem; padding-inline: .65rem; }
  .hero-actions .btn-ghost-dark span { margin-left: 2px; }
}

/* Informacja o dostępności formularza nie jest potwierdzeniem wysyłki. */
.form-success { background: #edf3fc; border-color: #d4e1f6; color: var(--navy-800); }
.form-success .icon { color: var(--blue-700); }
@media (max-width: 699px) {
  .fact div > span { font-size: .73rem; }
  .hero-note { font-size: .73rem; }
}

@media (max-width: 699px) {
  .zp-item-0 { transform: scale(calc(1 + var(--p) * 1.5)); }
  .zp-item-0 .zp-frame { width: 68vw; height: 44svh; }
  .zp-static .zp-item-0 { transform: none; }
  .zp-static .zp-item-0 .zp-frame { width: min(100% - 2.5rem, 900px); height: auto; }
}

/* ---------- Ruchomy pasek atutów w hero ---------- */
.hero-strip {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  animation: hero-rise .55s .55s both ease-out;
}
.hero-strip .strip-label {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.hero-strip .strip-label p {
  margin: 0;
  color: var(--ink);
  font: 600 .7rem/1.45 var(--font-heading);
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}
.hero-strip .strip-marquee {
  position: relative;
  --strip-fade: 42px;
  min-width: 0;
  padding-block: 15px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--strip-fade), #000 calc(100% - var(--strip-fade)), transparent);
}
.hero-strip .strip-marquee.is-dragging { cursor: grabbing; }
.hero-strip .strip-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  padding-left: 28px;
  will-change: transform;
}
.hero-strip .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--text);
  font: 500 .74rem/1 var(--font-heading);
  white-space: nowrap;
  user-select: none;
}
.hero-strip .strip-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-strip .strip-edge {
  display: none;
}
.hero-strip .strip-edge-left {
  left: 0;
  background: linear-gradient(90deg, #f7f9fc 18%, transparent);
}
.hero-strip .strip-edge-right {
  right: 0;
  background: linear-gradient(270deg, #f7f9fc 18%, transparent);
}

@media (max-width: 699px) {
  .hero-strip {
    order: 3;
    position: relative;
    z-index: 3;
    grid-template-columns: 88px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0 0 max(18px, env(safe-area-inset-bottom));
    padding: 5px 0;
    border-top: 1px solid rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(255,255,255,.92);
    border-radius: 0;
    background: rgba(255,255,255,.93);
    box-shadow: 0 12px 32px rgba(11,27,51,.13);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .hero-strip .strip-label { padding: 2px 12px; }
  .hero-strip .strip-label p { font-size: .57rem; line-height: 1.4; text-align: left; }
  .hero-strip .strip-marquee { --strip-fade: 28px; padding-block: 8px; }
  .hero-strip .strip-track { gap: 38px; padding-left: 18px; }
  .hero-strip .strip-item { gap: 7px; font-size: .67rem; }
  .hero-strip .strip-item svg { width: 18px; height: 18px; }
  .hero-strip .strip-edge { width: 28px; }
  .hero-strip .strip-edge-left { background: linear-gradient(90deg, rgba(255,255,255,.98), transparent); }
  .hero-strip .strip-edge-right { background: linear-gradient(270deg, rgba(255,255,255,.98), transparent); }
}
@media (max-width: 380px) {
  .hero-strip { grid-template-columns: 88px minmax(0, 1fr); margin-inline: 0; }
  .hero-strip .strip-label { padding-inline: 10px; }
  .hero-strip .strip-label p { font-size: .53rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-strip { animation: none; }
  .hero-strip .strip-track {
    width: auto;
    padding-right: 18px;
    overflow-x: auto;
  }
}

/* ---------- Przejscie stacked-cover: hero -> O firmie ---------- */
.hero-stack {
  --hero-cover: 0;
  position: relative;
}

@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  .hero-stack {
    z-index: 0;
    height: calc(max(680px, 100svh) + max(680px, 100svh));
    background: #eef4fc;
  }
  .hero-stack .hero {
    position: sticky;
    top: 0;
    z-index: 1;
    height: max(680px, 100svh);
    min-height: 0;
  }
  .hero-stack .hero-content {
    transform: translate3d(0, calc(var(--hero-cover) * -32px), 0) scale(calc(1 - var(--hero-cover) * .018));
    transform-origin: 28% 20%;
    opacity: calc(1 - var(--hero-cover) * .34);
    will-change: transform, opacity;
  }
  .hero-stack .hero-media picture {
    transform: scale(calc(1 + var(--hero-cover) * .065));
    transform-origin: 58% 48%;
    filter: saturate(calc(1 - var(--hero-cover) * .1)) brightness(calc(1 - var(--hero-cover) * .07));
    will-change: transform, filter;
  }
  .hero-stack .hero-image-caption {
    opacity: calc(1 - var(--hero-cover) * .45);
  }
  .hero-stack + #o-firmie {
    position: relative;
    z-index: 3;
    margin-top: calc(0px - max(680px, 100svh));
    border: 1px solid rgb(164 193 228 / .28);
    border-bottom: 0;
    border-radius: clamp(28px, 3vw, 46px) clamp(28px, 3vw, 46px) 0 0;
    min-height: max(680px, 100svh);
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 -24px 64px rgb(18 54 102 / .14);
    isolation: isolate;
  }
  .hero-stack + #o-firmie::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(180px, 28vw);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgb(48 113 220 / .38), transparent);
    transform: translateX(-50%);
  }
}

@media (min-width: 700px) and (max-height: 780px) {
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 49fr) minmax(390px, 51fr);
  }
  .hero-content {
    padding-top: clamp(102px, 15svh, 126px);
    padding-right: clamp(34px, 3.4vw, 56px);
    padding-bottom: clamp(22px, 4svh, 34px);
  }
  .hero-main { max-width: 540px; }
  .hero-eyebrow { margin-bottom: clamp(14px, 2.4svh, 22px); }
  .hero h1 {
    max-width: 560px;
    font-size: clamp(2.9rem, 4.6vw, 4.45rem);
    line-height: 1.02;
  }
  .hero-accent {
    margin: clamp(16px, 2.8svh, 23px) 0 clamp(14px, 2.4svh, 21px);
  }
  .hero-sub {
    max-width: 430px;
    margin-bottom: clamp(18px, 3.2svh, 26px);
    font-size: .94rem;
    line-height: 1.68;
  }
  .hero-strip {
    max-width: 650px;
    margin-top: clamp(24px, 4.8svh, 38px);
    padding-top: 12px;
  }
  .hero-strip .strip-marquee { padding-block: 10px; }
  .hero-strip .strip-track { gap: 42px; }
  .hero-media img {
    object-position: 68% center;
  }
}

@media (min-width: 700px) and (max-height: 650px) {
  .hero-content {
    padding-top: clamp(86px, 15svh, 104px);
    padding-bottom: 18px;
  }
  .hero h1 { font-size: clamp(2.45rem, 4.25vw, 3.75rem); }
  .hero-eyebrow {
    margin-bottom: 12px;
    font-size: .64rem;
  }
  .hero-accent {
    width: 68px;
    margin: 13px 0 12px;
  }
  .hero-sub {
    max-width: 390px;
    margin-bottom: 14px;
    font-size: .88rem;
    line-height: 1.55;
  }
  .hero-cta.btn.flow-button {
    min-height: 42px;
    padding: .72rem 1.45rem;
    font-size: .78rem;
  }
  .hero-strip {
    max-width: 585px;
    margin-top: 18px;
    padding-top: 9px;
    grid-template-columns: 106px minmax(0, 1fr);
  }
  .hero-strip .strip-label p { font-size: .62rem; }
  .hero-strip .strip-marquee { padding-block: 7px; }
  .hero-strip .strip-track { gap: 32px; padding-left: 22px; }
  .hero-strip .strip-item { font-size: .68rem; }
  .hero-strip .strip-item svg { width: 18px; height: 18px; }
}

@media (min-width: 700px) and (max-height: 780px) and (prefers-reduced-motion: no-preference) {
  .hero-stack {
    height: 200svh;
  }
  .hero-stack .hero {
    height: 100svh;
  }
  .hero-stack + #o-firmie {
    min-height: 100svh;
    margin-top: -100svh;
  }
}

@media (min-width: 700px) and (max-height: 780px) {
  .mobile-route-carousel {
    padding: clamp(42px, 7svh, 64px) 0;
  }
  .mrc-shell {
    width: min(100% - 96px, 900px);
  }
  .mrc-heading {
    margin-bottom: clamp(18px, 3svh, 26px);
  }
  .mrc-heading h2 {
    max-width: 560px;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  }
  .mrc-slide {
    height: clamp(340px, calc(100svh - 188px), 520px);
  }
  .mrc-slide picture,
  .mrc-slide img {
    background: #dce7f4;
  }
  .mrc-slide img {
    object-fit: contain;
  }
  .mrc-thumbnails {
    height: 82px;
    margin-top: 10px;
  }
  .mrc-thumb {
    flex-basis: 66px;
    height: 74px;
  }
  .mrc-thumb.is-active {
    flex-basis: 140px;
  }
}

/* ---------- Mobilne stacked-cover ---------- */
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  .hero-stack {
    z-index: 0;
    height: var(--mobile-hero-stack-height, auto);
    background: #eef4fc;
  }
  .hero-stack .hero {
    position: sticky;
    top: 0;
    z-index: 1;
    height: var(--mobile-hero-height, auto);
  }
  .hero-stack .hero-main {
    transform: translate3d(0, calc(var(--hero-cover) * -24px), 0) scale(calc(1 - var(--hero-cover) * .012));
    transform-origin: 28% 18%;
    opacity: calc(1 - var(--hero-cover) * .3);
    will-change: transform, opacity;
  }
  .hero-stack .hero-media picture {
    transform: scale(calc(1 + var(--hero-cover) * .055));
    transform-origin: 58% 48%;
    filter: saturate(calc(1 - var(--hero-cover) * .08)) brightness(calc(1 - var(--hero-cover) * .06));
    will-change: transform, filter;
  }
  .hero-stack .hero-strip {
    clip-path: inset(0 calc(var(--hero-cover) * 7%) 0 calc(var(--hero-cover) * 7%) round calc(var(--hero-cover) * 16px));
    opacity: calc(1 - var(--hero-cover) * .4);
    will-change: clip-path, opacity;
  }
  .hero-stack .hero-image-caption {
    opacity: calc(1 - var(--hero-cover) * .4);
  }
  .hero-stack + #o-firmie {
    position: relative;
    z-index: 3;
    min-height: max(100svh, var(--mobile-hero-height, 0px));
    margin-top: var(--mobile-hero-overlap, 0px);
    border: 1px solid rgb(164 193 228 / .28);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 -18px 46px rgb(18 54 102 / .14);
    isolation: isolate;
  }
  .hero-stack + #o-firmie::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 120px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgb(48 113 220 / .34), transparent);
    transform: translateX(-50%);
  }
}

/* ---------- Natywny FlowButton ---------- */
.btn.flow-button {
  --flow-bg: transparent;
  --flow-fill: #111;
  --flow-fg: #111;
  --flow-hover-fg: #fff;
  --flow-border: rgb(51 51 51 / .4);
  --flow-hover-border: transparent;
  position: relative;
  isolation: isolate;
  gap: 4px;
  overflow: hidden;
  padding: 12px 32px;
  min-height: 47px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: none;
  border-width: 1.5px;
  border-color: var(--flow-border);
  border-radius: 100px;
  background: var(--flow-bg);
  color: var(--flow-fg);
  transition: border-color 600ms cubic-bezier(.23, 1, .32, 1), color 600ms cubic-bezier(.23, 1, .32, 1), border-radius 600ms cubic-bezier(.23, 1, .32, 1), transform 600ms cubic-bezier(.23, 1, .32, 1);
}
.flow-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 16px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--flow-fill);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 800ms cubic-bezier(.19, 1, .22, 1), opacity 800ms cubic-bezier(.19, 1, .22, 1);
}
.flow-button .flow-label {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  transform: translateX(-12px);
  transition: transform 800ms ease-out;
}
.flow-button .flow-arrow {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--flow-fg);
  pointer-events: none;
  transition: left 800ms cubic-bezier(.34, 1.56, .64, 1), right 800ms cubic-bezier(.34, 1.56, .64, 1), stroke 800ms cubic-bezier(.34, 1.56, .64, 1);
}
.flow-button .flow-arrow-left { left: -25%; }
.flow-button .flow-arrow-right { right: 1rem; }
.btn.flow-button:is(:hover, :focus-visible, :active, .flow-activating) {
  border-color: var(--flow-hover-border);
  border-radius: 12px;
  background: var(--flow-bg);
  color: var(--flow-hover-fg);
  box-shadow: none;
}
.flow-button:is(:hover, :focus-visible, :active, .flow-activating)::before {
  width: max(220px, calc(100% + 48px));
  opacity: 1;
}
.flow-button:is(:hover, :focus-visible, :active, .flow-activating) .flow-label { transform: translateX(12px); }
.flow-button:is(:hover, :focus-visible, :active, .flow-activating) .flow-arrow { stroke: var(--flow-hover-fg); }
.flow-button:is(:hover, :focus-visible, :active, .flow-activating) .flow-arrow-left { left: 1rem; }
.flow-button:is(:hover, :focus-visible, :active, .flow-activating) .flow-arrow-right { right: -25%; }
.flow-button.flow-activating { pointer-events: none; }
.btn.flow-button:active { transform: scale(.95); }

.btn-primary.flow-button,
.btn-secondary.flow-button {
  --flow-bg: transparent;
  --flow-fg: #fff;
}
.btn-primary.flow-button {
  --flow-fill: var(--red-600);
  --flow-hover-fg: var(--red-600);
  --flow-border: var(--red-600);
  --flow-hover-border: var(--red-600);
}
.btn-secondary.flow-button {
  --flow-fill: var(--navy-900);
  --flow-hover-fg: var(--navy-900);
  --flow-border: var(--navy-900);
  --flow-hover-border: var(--navy-900);
}
.btn-primary.flow-button::before,
.btn-secondary.flow-button::before {
  width: max(220px, calc(100% + 48px));
  opacity: 1;
}
.btn-primary.flow-button:is(:hover, :focus-visible, :active, .flow-activating)::before,
.btn-secondary.flow-button:is(:hover, :focus-visible, :active, .flow-activating)::before {
  width: 16px;
  opacity: 0;
}

.cta-band .btn.flow-button,
.zp-finale .btn.flow-button,
.btn.flow-button.btn-ghost {
  --flow-fg: #fff;
  --flow-hover-fg: #111;
  --flow-border: rgb(255 255 255 / .65);
  --flow-hover-border: rgb(255 255 255 / .65);
}
.cta-band .btn-primary.flow-button,
.zp-finale .btn-primary.flow-button {
  --flow-fill: var(--red-600);
  --flow-hover-fg: #fff;
}
.btn-block.flow-button { width: 100%; }

.hero-cta.btn.flow-button {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-cta.btn.flow-button .flow-label { font-size: inherit; }

@media (max-width: 699px) {
  .hero-cta.btn.flow-button {
    min-height: 40px;
    max-width: 100%;
    padding: 8px 22px;
    font-size: .74rem;
    letter-spacing: .065em;
  }
  .hero-media > .hero-cta.btn.flow-button {
    position: absolute;
    z-index: 4;
    left: clamp(22px, 6vw, 28px);
    bottom: 54px;
    margin: 0;
    box-shadow: 0 10px 26px rgba(154, 8, 34, .3);
  }
}

@media (max-width: 420px) {
  .nav-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-button,
  .flow-button::before,
  .flow-button .flow-label,
  .flow-button .flow-arrow { transition: none !important; }
}
