/* Jasny motyw Pracowni - tokeny z _zrodla/landing/style.css.
   Promienie: papier 4, pola 8, przyciski 12, okna 14, bloki CTA 16 px.
   Hairline oddziela treść; mocniejszy neutralny obrys identyfikuje pola.
   Warstwy: zwykły dokument + natywny top layer <dialog>, bez z-index. */
:root {
  --bg:#f6f5f2; --s1:#ffffff; --s2:#eeece7; --line:rgba(0,0,0,.08);
  --txt:#111214; --mut:#5c5f66; --coral:#c0313a; --control-line:#85857f;
  --f:"Satoshi",system-ui,sans-serif; --mono:"JetBrains Mono",ui-monospace,monospace;
  --r-paper:4px; --r-field:8px; --r-btn:12px; --r-win:14px; --r-card:16px;
  color-scheme:light;
}
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100dvh; font-family:var(--f); color:var(--txt); background:var(--bg); font-size:17px; line-height:1.5; -webkit-font-smoothing:antialiased; }
h1,h2,p { margin:0; }
h1 { font-size:clamp(32px,3.1vw,44px); font-weight:900; letter-spacing:-.035em; line-height:1.12; text-wrap:balance; }
h2 { font-size:clamp(25px,3vw,34px); font-weight:900; letter-spacing:-.03em; line-height:1.16; text-wrap:balance; }
a { color:inherit; text-underline-offset:4px; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
img { display:block; max-width:100%; height:auto; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid var(--txt); outline-offset:4px; }
dialog :focus-visible { outline-color:var(--coral); }
.topbar { padding:14px 20px; background:var(--txt); color:#fff; text-align:center; }
.topbar .brand { font-weight:900; font-size:18px; letter-spacing:-.03em; }
.topbar .brand i { font-style:normal; color:#ff6363; }
.eyebrow { font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--coral); margin:0 0 14px; }
main { margin:0 auto; padding:0 20px; max-width:1200px; }
.hero { padding:40px 0 0; text-align:center; }
.subtitle { color:var(--mut); margin:24px auto; max-width:65ch; text-wrap:pretty; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:52px; border:1px solid transparent; border-radius:var(--r-btn); padding:14px 22px; font-size:16px; line-height:1.25; font-weight:700; white-space:nowrap; text-decoration:none; max-width:100%; transition:transform .15s; }
.primary { background:var(--coral); color:#fff; }
.secondary { background:var(--s2); border-color:var(--line); }
.btn:active:not(:disabled) { transform:translateY(1px); }
.btn:disabled { background:var(--s2); color:var(--mut); border-color:var(--line); cursor:default; }
form[aria-busy=true] .btn:disabled { border-color:var(--control-line); cursor:progress; }
@media (hover:hover) {
  .primary:hover:not(:disabled) { filter:brightness(.92); }
  .secondary:hover:not(:disabled) { background:var(--s1); }
}
.details { display:grid; grid-template-columns:minmax(0,1fr); gap:32px; padding:32px 0 0; margin:40px auto 0; border-top:1px solid var(--line); max-width:1000px; align-items:center; }
.cover-wrap { width:min(100%,320px); justify-self:center; }
.cover { display:block; width:100%; height:auto; }
.benefits { min-width:0; }
.benefits ul { list-style:none; margin:0 0 32px; padding:0; display:grid; gap:24px; }
.benefits li { display:grid; grid-template-columns:20px minmax(0,1fr); gap:12px; }
.benefits li>span { font-size:20px; font-weight:700; line-height:1.5; }
.benefits strong { font-weight:700; }
.benefits .btn { width:100%; }
.footer { max-width:1160px; margin:48px auto 0; padding:24px 20px 32px; border-top:1px solid var(--line); text-align:center; color:var(--mut); font-size:12px; }
.footer a { display:inline-flex; min-height:44px; align-items:center; }
.thanks { max-width:960px; }
.thanks .hero h1 { max-width:760px; margin:0 auto 28px; }
.thanks .subtitle { max-width:65ch; }
.thanks-cover { width:260px; margin:24px auto 32px; }
.next-step { border:1px solid var(--line); background:var(--s1); border-radius:var(--r-card); padding:32px 24px; }
.next-step h2 { max-width:27ch; margin-bottom:24px; }
.next-step p { margin:16px 0; max-width:65ch; }
.next-step ul { padding-left:22px; margin:16px 0; }
.next-step li+li { margin-top:12px; }
.next-step .btn { margin-top:12px; width:100%; }
.confirmation { max-width:900px; padding-top:48px; padding-bottom:40px; }
.confirmation h1 { max-width:750px; margin:0 auto 32px; text-align:center; }
.confirmation-copy { max-width:62ch; margin:auto; }
.confirmation-copy p+p { margin-top:24px; }
.confirmation-copy p { color:var(--mut); }
.confirmation-copy strong { color:var(--txt); overflow-wrap:anywhere; }
#kalendarz:not(:empty) { margin-top:40px; }
dialog { width:calc(100% - 32px); max-width:520px; max-height:calc(100dvh - 32px); margin:auto; padding:56px 24px 32px; border:1px solid var(--line); border-radius:var(--r-win); background:var(--s1); color:var(--txt); overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; box-shadow:0 40px 120px rgba(92,95,102,.18); }
dialog::backdrop { background:rgba(17,18,20,.48); }
body:has(dialog[open]) { overflow:hidden; }
/* Przy otwartym oknie koral zostaje tylko na jego CTA i fokusie. */
body:has(dialog[open]) main .primary { background:var(--txt); color:var(--s1); }
dialog h2 { margin-bottom:24px; }
.close { position:absolute; right:12px; top:8px; width:44px; height:44px; border:0; border-radius:var(--r-field); background:transparent; font-size:28px; color:var(--mut); line-height:1; }
.close:hover { background:var(--s2); }
.field { display:grid; gap:8px; margin-bottom:24px; }
.field label { font-weight:700; font-size:15px; }
input:not([type=checkbox]):not([type=radio]),select,textarea { width:100%; min-width:0; min-height:52px; padding:12px 14px; border:1px solid var(--control-line); border-radius:var(--r-field); background:var(--bg); font-size:16px; }
input::placeholder,textarea::placeholder { color:var(--mut); opacity:1; }
textarea { resize:vertical; max-width:100%; }
select { text-overflow:ellipsis; }
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] { border:2px solid var(--txt); }
.full { width:100%; }
.privacy { margin:20px 0 0; font-size:12px; color:var(--mut); line-height:1.6; overflow-wrap:anywhere; }
.error { margin:16px 0; font-size:14px; border-left:2px solid var(--txt); padding-left:12px; overflow-wrap:anywhere; }
.honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.survey-dialog { max-width:660px; }
.survey-intro { color:var(--mut); font-size:15px; margin-top:-8px; }
.progress-meta { display:flex; justify-content:flex-end; margin:24px 0 8px; color:var(--mut); font-family:var(--mono); font-size:12px; }
progress { appearance:none; display:block; width:100%; height:4px; border:0; border-radius:4px; background:var(--s2); margin-bottom:28px; }
progress::-webkit-progress-bar { background:var(--s2); border-radius:4px; }
progress::-webkit-progress-value { background:var(--txt); border-radius:4px; }
progress::-moz-progress-bar { background:var(--txt); border-radius:4px; }
.step { min-width:0; border:0; padding:0; margin:0; }
.step legend { padding:0; font-size:20px; line-height:1.35; font-weight:700; margin-bottom:18px; }
.hint { color:var(--mut); font-size:14px; margin:-6px 0 16px; }
.choices { display:grid; gap:10px; }
.choice { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); border-radius:var(--r-field); padding:12px; font-size:15px; cursor:pointer; min-height:48px; }
.choice span { min-width:0; overflow-wrap:break-word; }
.choice:has(input:checked),.choice:focus-within { background:var(--s2); border-color:var(--txt); }
.choice input { flex:none; margin:3px 0 0; width:20px; height:20px; accent-color:var(--txt); }
#inne-field { margin:16px 0 0; }
.step-actions { display:flex; justify-content:space-between; gap:12px; margin-top:32px; }
.step-actions .btn { min-width:100px; }
noscript p { padding:20px; background:var(--s1); border:1px solid var(--line); }
@media (min-width:768px) {
  body { font-size:18px; }
  .topbar { font-size:12px; padding:12px; }
  .hero { padding-top:56px; }
  .landing h1 { max-width:1160px; margin:auto; }
  .landing .subtitle { max-width:none; font-size:17px; }
  .details { grid-template-columns:minmax(0,440px) minmax(0,1fr); column-gap:40px; max-width:1080px; margin-top:40px; padding-top:40px; }
  .cover-wrap { width:440px; }
  .benefits .btn { width:auto; }
  .thanks-cover { width:340px; }
  .next-step { padding:48px; }
  .next-step .btn { width:auto; }
  .confirmation { padding-top:64px; }
  dialog { padding:56px 40px 32px; }
}
@media (max-width:380px) {
  main { padding-inline:16px; }
  h1 { font-size:30px; }
  .btn { padding-inline:16px; font-size:15px; }
  .step-actions .btn { min-width:84px; }
}
@media (max-width:600px) {
  .landing h1 { font-size:26px; letter-spacing:-.03em; line-height:1.15; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

.consent { display:flex; gap:10px; align-items:flex-start; margin:18px 0 4px; font-size:14px; line-height:1.45; color:var(--mut); cursor:pointer; }
.consent input { flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--txt); }
.consent input[aria-invalid=true] { outline:2px solid var(--coral); outline-offset:2px; }
.consent a { color:var(--txt); }

.cta-line { margin:24px 0 16px; max-width:60ch; }

.btn.cta { text-transform:uppercase; letter-spacing:.02em; font-weight:900; }
.btn.cta::before { content:"›"; margin-right:.55em; font-size:1.2em; line-height:1; }
.btn.cta::after { content:"‹"; margin-left:.55em; font-size:1.2em; line-height:1; }
.details { border-top:2px dotted rgba(17,18,20,.25); }
.guide-title { display:inline-block; margin:6px auto 22px; padding:8px 14px; border:1px solid var(--coral); border-radius:6px; font-size:15px; color:var(--txt); max-width:640px; }
.thumb { display:block; max-width:760px; margin:0 auto 20px; border-radius:12px; overflow:hidden; box-shadow:0 24px 48px -16px rgba(17,18,20,.35); }
.thumb img { display:block; width:100%; height:auto; }
.thanks .hero .btn.secondary { margin-bottom:8px; }
.thanks .hero .cta-line { margin:28px auto 14px; font-weight:700; text-align:center; }
@media (max-width:600px) { .btn.cta { font-size:14px; padding-inline:14px; white-space:normal; } .topbar .brand { font-size:16px; } }

/* Rytm pionowy: jedna skala 16 / 24 / 32 / 48 / 64 px */
.hero { padding:48px 0 0; }
.eyebrow { margin:0 0 16px; }
.hero h1 { margin:0 auto; }
.subtitle, .landing .subtitle { margin:24px auto 32px; }
.details { margin:64px auto 0; padding:64px 0 0; row-gap:32px; }
.footer { margin-top:64px; padding:24px 0 32px; }
.thanks .hero h1 { margin:0 auto 24px; }
.guide-title { margin:0 auto 32px; }
.thumb { margin:0 auto 24px; }
.thanks .hero .btn.secondary { margin:0; }
.thanks .hero .cta-line { margin:48px auto 16px; }
.next-step { margin-top:64px; }
.next-step h2 { margin-bottom:24px; }
.next-step p, .next-step ul { margin:0 0 16px; }
.next-step .btn { margin-top:16px; }
.confirmation h1 { margin:0 auto 32px; }
@media (max-width:767px) {
  .hero { padding-top:32px; }
  .details { margin-top:48px; padding-top:48px; }
  .thanks .hero .cta-line { margin-top:32px; }
  .next-step { margin-top:48px; }
  .footer { margin-top:48px; }
}
.guide-title { max-width:760px; font-size:16px; padding:10px 18px; }
.calendar { max-width:62ch; margin:48px auto 0; padding-top:40px; border-top:1px solid var(--line); text-align:center; }
.calendar h2 { margin:0 0 12px; font-size:clamp(24px,4vw,32px); line-height:1.15; letter-spacing:-.02em; }
.calendar p { color:var(--mut); margin:0 auto 24px; text-wrap:pretty; }
.calendar iframe { display:block; width:100%; min-height:640px; border:0; overflow:hidden; }

/* Rytm w modalach: każdy blok formularza oddzielony 24 px (ta sama skala co strona) */
dialog h2 { margin:0 0 24px; }
.survey-intro { margin:-8px 0 0; }
.progress-meta { margin:24px 0 8px; }
progress { margin-bottom:24px; }
.step legend { margin-bottom:16px; }
.hint { margin:-8px 0 16px; }
#inne-field { margin:16px 0 0; }
.field { margin:0 0 24px; }
#survey-fields { margin:0 0 24px; }
.error { margin:0 0 24px; }
.consent { margin:0 0 24px; }
.step-actions { margin:0; }
.privacy { margin:24px 0 0; }
