
  :root {
    --bg: #FAF9F6; --paper: #FFFFFF; --ink: #2D2D3D; --soft: #4A4A5E; --muted: #5C5C69;
    --line: #E8E5E0; --amber: #E8A838; --amber-deep: #8A6210; --amber-soft: #FFF8EB; --dark: #16161F; --yt: #FF0033; --red: #B3261E;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-padding: 76px 0 104px; }
  body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--dark); color: var(--ink); font-family: 'Figtree', -apple-system, 'Segoe UI', sans-serif; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  h1, h2 { font-family: 'Lora', Georgia, serif; font-weight: 700; line-height: 1.14; letter-spacing: -.01em; margin: 0; }
  .preview-bar { background: #000; color: #F5F5F3; font-size: 14px; text-align: center; padding: 8px 16px; }
  .preview-bar b { color: var(--amber); }

  /* Górny pasek jak na stronie, z postępem etapów */
  .topbar { position: sticky; top: 0; z-index: 5; background: #fff; }
  .topbar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
  .brand { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 23px; color: var(--ink); text-decoration: none; }
  .back { font-size: 16px; font-weight: 500; color: var(--soft); text-decoration: none; padding: 8px 0; }
  .back::before { content: "\2190\00a0"; }
  .back:hover { color: var(--ink); text-decoration: underline; }
  .progress { height: 4px; background: var(--line); display: none; }
  .progress i { display: block; height: 100%; background: var(--yt); transform-origin: 0 50%; transform: scaleX(.143); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .js .progress { display: block; }

  /* Ciemna scena, to samo światło co na stronie */
  /* overflow: clip, bo przy hidden przyciski etapu przestają trzymać się dołu ekranu */
  .stage { position: relative; flex: 1; overflow: hidden; overflow: clip; isolation: isolate; color: #fff; }
  .site-footer { border-top: 1px solid #373744; padding: 24px 16px 32px; color: #F5F5F3; text-align: center; font-size: 15px; overflow-wrap: anywhere; }
  .site-footer p { max-width: 960px; margin: 8px auto; }
  .site-footer a { color: var(--amber); }
  .stage::before, .stage::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
  .stage::before { width: 760px; height: 760px; left: -280px; top: -320px; background: radial-gradient(circle, rgba(232,168,56,.26), rgba(232,168,56,0) 68%); }
  .stage::after { width: 760px; height: 760px; right: -260px; bottom: -340px; background: radial-gradient(circle, rgba(216,27,96,.3), rgba(216,27,96,0) 68%); }
  .wrap { max-width: 680px; margin: 0 auto; padding: 24px 24px 40px; }
  .intro h1 { font-size: clamp(30px, 3.2vw, 36px); }
  .intro p { color: #E6E6EC; margin: 8px 0 18px; font-size: 17px; line-height: 1.45; }
  .req { color: var(--amber-deep); font-weight: 700; }
  .intro .req { color: var(--amber); }

  /* Karta etapu */
  .card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 26px 30px 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
  .status { display: none; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
  .js .status { display: flex; }
  .status-t { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber-deep); white-space: nowrap; }
  .dots { list-style: none; display: flex; gap: 5px; margin: 0; padding: 0; }
  .dots button { display: block; width: 26px; height: 24px; padding: 10px 0; border: 0; background: none; cursor: default; }
  .dots button::before { content: ""; display: block; height: 4px; border-radius: 9px; background: var(--line); transition: background-color .25s ease; }
  .dots li.done button::before { background: var(--amber); }
  .dots li.cur button::before { background: var(--ink); }
  .dots li.done button, .dots li.ok button { cursor: pointer; }
  .step { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
  .step h2 { font-size: 34px; margin-bottom: 18px; outline: none; }
  .js .step { display: none; margin: 0; }
  .js .step.on { display: block; animation: wejscie .3s cubic-bezier(.2,.7,.2,1); }
  .js .step.on.wstecz { animation-name: wejscie-wstecz; }
  @keyframes wejscie { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
  @keyframes wejscie-wstecz { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

  .q { margin-bottom: 18px; }
  .js .step .q:last-child { margin-bottom: 0; }
  .q > label, .q > .ql { display: block; font-weight: 700; margin-bottom: 7px; line-height: 1.32; }
  .help { display: block; font-weight: 400; font-size: 15px; color: var(--muted); margin-top: 2px; }
  input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; min-height: 50px; border: 1px solid #C9C4BB; border-radius: 12px; background: #fff; color: var(--ink);
  }
  textarea { min-height: 96px; resize: vertical; display: block; }
  input:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
  .opts { display: grid; gap: 8px; }
  .opts label { display: flex; gap: 10px; align-items: center; min-height: 48px; font-size: 17px; font-weight: 500; line-height: 1.28; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
  .opts label:hover { border-color: #C9C4BB; }
  .opts label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber); font-weight: 600; }
  .opts label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 1px; }
  .opts input { width: 18px; height: 18px; margin: 0; accent-color: var(--amber-deep); flex: none; }
  .opts.cols { grid-template-columns: 1fr 1fr; }
  @media (min-width: 601px) { .opts.cols-d { grid-template-columns: 1fr 1fr; } .opts.cols3 { grid-template-columns: 1fr 1fr 1fr; } }
  .confirm { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: var(--ink); font-weight: 500; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .confirm:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber); }
  .confirm input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--amber-deep); flex: none; }
  .privacy-note { font-size: 16px; color: var(--soft); margin: 0; }
  .privacy-note a { color: var(--amber-deep); font-weight: 700; }

  /* Błąd przy polu */
  .msg { display: none; margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--red); }
  .q.err .msg { display: block; }
  .q.err input[type=text], .q.err input[type=email], .q.err textarea { border-color: var(--red); }
  .q.err .opts label, .q.err .confirm { border-color: var(--red); }

  /* Przyciski */
  .nav { display: flex; gap: 10px; margin-top: 22px; }
  /* Przyciski zawsze na ekranie: nawet gdy etap jest dłuższy niż telefon, „Dalej” nie ucieka w dół */
  .js .nav { position: sticky; bottom: 0; z-index: 3; margin: 20px -30px -28px; padding: 14px 30px 18px; background: #fff; border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
  .btn { font: inherit; font-weight: 700; font-size: 18px; min-height: 58px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .15s ease; }
  .next { flex: 1; color: #16161F; background: linear-gradient(180deg, #F3B748, #E8A838); box-shadow: 0 12px 26px -14px rgba(184,132,26,1); }
  .next:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(184,132,26,1); }
  .prev { display: none; background: #fff; color: var(--ink); border: 1px solid #BDB7AC; }
  .prev:hover { background: var(--bg); }
  .js .prev.on { display: block; }
  .btn:focus-visible, .dots button:focus-visible { outline: 3px solid #2F6BFF; outline-offset: 2px; }

  /* Po wysłaniu */
  .thanks { display: none; text-align: center; padding: 24px 6px 18px; }
  .thanks.on { display: block; animation: wejscie .3s cubic-bezier(.2,.7,.2,1); }
  .thanks .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #E7F3EA; color: #2E7D4F; font-size: 34px; font-weight: 700; }
  .thanks h2 { font-size: 34px; margin-bottom: 12px; outline: none; }
  .thanks p { color: var(--soft); margin: 0 0 8px; }
  .thanks .note { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
  .thanks a { color: var(--amber-deep); font-weight: 700; }

  @media (max-width: 600px) {
    .topbar-in { padding: 9px 16px; }
    .brand { font-size: 21px; }
    .back { font-size: 15px; }
    .wrap { padding: 12px 10px 16px; }
    .intro { padding: 0 6px; }
    .intro h1 { font-size: 26px; }
    .intro p { font-size: 16px; margin: 6px 0 12px; line-height: 1.4; }
    .card { padding: 14px 16px 14px; border-radius: 18px; }
    .status { margin-bottom: 6px; }
    .status-t { font-size: 14px; }
    .dots { gap: 3px; }
    .dots button { width: 18px; }
    .step h2 { font-size: 26px; margin-bottom: 10px; }
    .q { margin-bottom: 12px; }
    .q > label, .q > .ql { font-size: 17px; margin-bottom: 5px; }
    .help { font-size: 14px; }
    input[type=text], input[type=email], input[type=tel], textarea { min-height: 46px; padding: 10px 12px; }
    textarea { min-height: 76px; }
    .opts { gap: 6px; }
    .opts label { font-size: 16px; min-height: 44px; padding: 6px 11px; }
    .js .nav { margin: 12px -16px -14px; padding: 10px 16px 12px; border-radius: 0 0 18px 18px; }
    .btn { min-height: 52px; padding: 0 16px; font-size: 17px; }
    .confirm { font-size: 16px; }
    .privacy-note { font-size: 15px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
