/* ---------------------------------------------------------------------------
   ebook.zamile.pl — landing e-booka
   Paleta i promienie jak na zamile.pl (premium travel-tech): primary #1E5EFF,
   navy #081A3A, tło #F7F9FC. Przyciski 10 px, karty 14 px, pigułki tylko na badge'ach.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #1E5EFF;
  --blue-600: #1348E0;
  --blue-soft: #90B2FF;
  --blue-50: #EEF4FF;
  --navy: #081A3A;
  --navy-950: #04122B;
  --navy-700: #1D3356;
  --canvas: #F7F9FC;
  --text: #0B1530;
  --muted: #6B7280;
  --border: #E5E7EB;
  --green: #16A34A;
  --coral: #DC2626;

  --r-btn: 10px;
  --r-card: 14px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(8, 26, 58, .04), 0 8px 24px rgba(8, 26, 58, .06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-btn);
}
.skip:focus { top: 12px; }

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

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.wrap--narrow { max-width: 820px; }

/* --- Przyciski --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  background: var(--blue);
  color: #fff;
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(30, 94, 255, .28);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 94, 255, .36);
}
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 14px; font-size: 14px; box-shadow: none; }
.btn--lg { padding: 16px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn--light:hover { background: var(--blue-50); }

/* --- Pasek górny ------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: var(--r-btn);
  background: #fff;
}
.logo img { width: auto; height: 22px; }
.topbar .btn { opacity: 0; pointer-events: none; transform: translateY(-4px); }
.topbar.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.topbar.is-solid .logo { padding-left: 0; background: none; }
.topbar.is-solid .btn { opacity: 1; pointer-events: auto; transform: none; }

/* --- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 72px;
  background: var(--navy);
  color: #fff;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 94, 255, .35), transparent 70%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 140px 0 110px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font: 700 12.5px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--blue-soft); }

.hero h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hl {
  color: #7FA2FF;
  background: linear-gradient(90deg, #7FA2FF, #B6C9FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}
/* Cena premierowa: hero (ciemne tło) i karta oferty (.promo--light) */
.promo { margin-top: 30px; }
.promo__badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font: 700 12.5px/1.3 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 12px;
}
.promo__new {
  font: 800 44px/1 var(--font-display);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.promo__old {
  color: rgba(255, 255, 255, .5);
  font: 600 24px/1 var(--font-display);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coral);
  white-space: nowrap;
}
.promo__note { margin-top: 10px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.promo + .hero__cta { margin-top: 22px; }

.promo--light { margin-top: 18px; }
.promo--light .promo__new { font-size: 48px; }
.promo--light .promo__old { color: #94A3B8; }
.promo--light .promo__note { color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}
.facts strong { color: #fff; font-weight: 600; }

/* Okładka 3D */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
  perspective: 1400px;
}
.book {
  --rx: 4deg;
  --ry: -16deg;
  position: relative;
  width: min(340px, 72vw);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.book__cover {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .3),
    24px 40px 70px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .06);
}
.book__spine {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 14px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .25) 60%, rgba(255, 255, 255, .06));
  pointer-events: none;
}
@keyframes float {
  50% { translate: 0 -10px; }
}

.chip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  animation: float 7s ease-in-out infinite;
}
.chip__label { color: var(--muted); font-size: 12px; font-weight: 500; }
.chip__value { font: 700 16px/1.2 var(--font-display); white-space: nowrap; }
.chip__value s { margin-left: 4px; color: var(--muted); font-weight: 500; font-size: 13px; }
.chip--route { left: 0; bottom: 14%; animation-delay: -2s; }
.chip--ratio { right: 0; top: 12%; animation-delay: -4s; }
@media (max-width: 480px) {
  .chip { padding: 8px 10px; }
  .chip__value { font-size: 14px; }
  .chip--route { left: -4px; }
  .chip--ratio { right: -4px; }
}

/* --- Sekcje ------------------------------------------------------------ */

.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section--canvas { background: var(--canvas); }
.section--dark { background: var(--navy); color: #fff; overflow: hidden; }

.head { max-width: 680px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.sub { margin-top: 14px; color: var(--muted); font-size: 18px; }
.head--dark .sub { color: rgba(255, 255, 255, .66); }

/* Porównanie cen */
.compare {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } }
.price-card {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--canvas);
  border: 1px solid var(--border);
}
.price-card--accent {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 20px 50px rgba(30, 94, 255, .28);
}
.price-card__tag {
  font: 700 12.5px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card--accent .price-card__tag { color: rgba(255, 255, 255, .78); }
.price-card__value {
  margin-top: 14px;
  font: 800 clamp(44px, 7vw, 64px)/1 var(--font-display);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-card__value--muted {
  color: #94A3B8;
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: rgba(148, 163, 184, .7);
}
.price-card__note { margin-top: 12px; color: var(--muted); font-size: 15px; }
.price-card--accent .price-card__note { color: rgba(255, 255, 255, .82); }

.verdict {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--navy);
  color: rgba(255, 255, 255, .86);
}
.verdict strong { color: #fff; }
.verdict__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.fineprint { margin-top: 16px; color: var(--muted); font-size: 13.5px; }

/* Schemat */
.flow { position: relative; }
.flow__line,
.flow__plane { display: none; }
.flow__steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 26px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font: 700 17px/1 var(--font-display);
  box-shadow: 0 0 0 6px var(--blue-50);
}
.step h3 { font-size: 21px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

@media (min-width: 860px) {
  .flow { padding-top: 6px; }
  .flow__steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .flow__line {
    display: block;
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 40px;
    overflow: visible;
  }
  .flow__line path {
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    vector-effect: non-scaling-stroke;
    transition: stroke-dashoffset 1.8s var(--ease) .2s;
  }
  .flow.is-in .flow__line path { stroke-dashoffset: 0; }
  .flow__plane {
    display: block;
    position: absolute;
    top: 13px;
    left: 4%;
    z-index: 2;
    color: var(--blue);
    rotate: 90deg;
    opacity: 0;
    transition: left 1.8s var(--ease) .2s, opacity .3s .2s;
  }
  .flow.is-in .flow__plane { left: 94%; opacity: 1; }
  .step { background: transparent; border: 0; box-shadow: none; padding: 0 12px 0 0; }
  .step__num { position: relative; z-index: 1; }
}

.tip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: baseline;
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
}
.tip__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font: 700 12px/1.4 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tip p { flex: 1 1 360px; color: #374151; }

/* Spis treści */
.chapters {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 680px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chapters { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.chapter {
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.chapter:hover {
  border-color: var(--blue-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.chapter__num {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font: 800 15px/1 var(--font-display);
  letter-spacing: .04em;
}
.chapter h3 { font-size: 19px; }
.chapter p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.chapter--featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.chapter--featured .chapter__num { color: var(--blue-soft); }
.chapter--featured p { color: rgba(255, 255, 255, .72); }

/* Podgląd stron */
.pages {
  display: flex;
  gap: 20px;
  padding: 8px max(16px, calc((100vw - 1160px) / 2 + 28px)) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(16px, calc((100vw - 1160px) / 2 + 28px));
  scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }
.page {
  flex: none;
  width: min(300px, 74vw);
  margin: 0;
  scroll-snap-align: start;
}
.page img {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  transition: transform .35s var(--ease);
}
.page:hover img { transform: translateY(-6px) rotate(-.6deg); }
.page figcaption { margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.pages__nav { display: flex; gap: 10px; margin-top: 8px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.round-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* Dla kogo */
.fit { display: grid; gap: 16px; }
@media (min-width: 800px) { .fit { grid-template-columns: 1fr 1fr; gap: 20px; } }
.fit__col {
  padding: 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
}
.fit__col--yes { background: var(--blue-50); border-color: #DBE6FF; }
.fit__col h3 { font-size: 20px; }
.fit__col ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fit__col li { position: relative; padding-left: 32px; color: #374151; }
.fit__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.fit__col--no li::before {
  background: #E5E7EB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%236B7280' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Aktualizacje + autor */
.duo { display: grid; gap: 16px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; gap: 20px; } }
.panel {
  padding: 30px;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.panel__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--r-btn);
  background: var(--blue-50);
  color: var(--blue);
}
.panel h3 { font-size: 21px; }
.panel p { margin-top: 10px; color: var(--muted); }

/* Oferta */
.offer {
  display: grid;
  gap: 32px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 26, 58, .1);
}
@media (min-width: 820px) {
  .offer { grid-template-columns: 300px 1fr; gap: 48px; padding: 44px; }
}
.offer__cover {
  max-width: 260px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--canvas);
}
@media (min-width: 820px) { .offer__cover { max-width: none; } }
.offer__cover img { border-radius: 4px; box-shadow: 0 18px 40px rgba(8, 26, 58, .3); }
.offer h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.checks { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%231E5EFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.offer__note { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--blue-soft); }
.faq summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font: 700 17px/1.4 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: #4B5563; }

/* Końcowe CTA */
.final {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.final::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 94, 255, .3), transparent 70%);
}
.final__in { position: relative; display: grid; justify-items: center; gap: 28px; }
.final__quote {
  max-width: 760px;
  font: 700 clamp(22px, 3.2vw, 32px)/1.3 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.final__note { margin-top: -14px; color: rgba(255, 255, 255, .6); font-size: 15px; }
.final__note s { text-decoration-color: var(--coral); }

/* Stopka */
.footer {
  padding: 40px 0 120px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}
@media (min-width: 760px) { .footer { padding-bottom: 40px; } }
.footer__in { display: grid; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__legal { max-width: 760px; line-height: 1.55; }

/* Przyklejony przycisk na telefonie */
.sticky-buy {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-card);
  background: rgba(8, 26, 58, .96);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  transform: translateY(140%);
  transition: transform .35s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__price { display: grid; line-height: 1.25; }
.sticky-buy__price strong { font: 800 19px/1.2 var(--font-display); white-space: nowrap; }
.sticky-buy__price s {
  margin-left: 4px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: var(--coral);
}
.sticky-buy__price span { color: rgba(255, 255, 255, .6); font-size: 13px; }
@media (min-width: 760px) { .sticky-buy { display: none; } }

/* --- Pojawianie się przy przewijaniu ------------------------------------
   Klasa .js trafia na <html> dopiero z main.js, więc bez skryptu wszystko
   jest widoczne od razu. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero__copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .8s var(--ease) forwards;
}
.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5) { animation-delay: .32s; }
.js .hero__visual { opacity: 0; animation: rise 1s var(--ease) .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .hero__copy > *,
  .js .hero__visual { opacity: 1; transform: none; }
  .flow__line path { stroke-dashoffset: 0; }
  .flow__plane { left: 94% !important; opacity: 1 !important; }
}

/* --- Strony prawne: /regulamin, /polityka-prywatnosci ------------------- */

.legal-top {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.legal-top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.legal-top .logo { padding-left: 0; }
.legal-top__back { color: var(--muted); font-size: 15px; text-decoration: none; }
.legal-top__back:hover { color: var(--blue); }

.legal { padding: 56px 0 96px; background: #fff; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4.6vw, 42px); font-weight: 800; }
.legal__meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal__intro {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--canvas);
  border: 1px solid var(--border);
  color: #374151;
}
.legal__toc { margin-top: 28px; padding-left: 20px; color: var(--muted); font-size: 15px; columns: 2 240px; }
.legal__toc a { color: var(--text); text-decoration: none; }
.legal__toc a:hover { color: var(--blue); }
.legal h2 {
  margin-top: 48px;
  padding-top: 8px;
  font-size: 22px;
  scroll-margin-top: 24px;
}
.legal h3 { margin-top: 24px; font-size: 17px; }
.legal p,
.legal li { color: #374151; font-size: 16.5px; }
.legal p { margin-top: 12px; }
.legal ol,
.legal ul { margin: 12px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.legal ol ol,
.legal ol ul { margin-top: 8px; }
.legal strong { color: var(--text); }
.legal address { font-style: normal; }
.legal table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: #374151;
}
.legal th { background: var(--canvas); color: var(--text); font-weight: 600; }
.legal__table-wrap { overflow-x: auto; }
.legal__form {
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed #C3D2E6;
  border-radius: var(--r-card);
  background: var(--canvas);
}
.legal__form p:first-child { margin-top: 0; }
