/* Zacznij projekt (/pl/zacznij/): trzy drogi startu, formularz krokowy z podglądem zarysu strony */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.st-top { padding: 28px 0 0; }
.st-top .breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.st-top .breadcrumbs a { color: var(--muted); }
.st-top h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.st-lead { font-size: 18px; color: #4b5450; max-width: 620px; margin: 0 0 36px; }

/* wybór drogi */
.st-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st-path {
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px; display: grid; gap: 3px; transition: background .2s, border-color .2s, color .2s;
}
.st-path b { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.st-path span { font-size: 14px; color: var(--muted); }
.st-path:hover { border-color: #b9c6bf; }
.st-path.is-on { background: var(--dark); border-color: var(--dark); color: #fff; }
.st-path.is-on span { color: #b9c9c1; }
.st-path:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.st-work { padding: 28px 0 80px; }
.st-panel[hidden] { display: none; }

/* formularz + podgląd */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.st-form, .st-done, .st-simple {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.st-done[hidden], .st-form[hidden] { display: none; }

.st-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 26px; counter-reset: s; }
.st-steps li { counter-increment: s; font-size: 13px; font-weight: 700; color: #9aa19c; padding-top: 10px; border-top: 3px solid var(--surface-2); transition: color .2s, border-color .2s; }
.st-steps li::before { content: counter(s) ". "; }
.st-steps li.is-on, .st-steps li.is-done { color: var(--ink); border-color: var(--accent); }
.st-steps li.is-done { color: var(--accent); }

.st-step { border: 0; padding: 0; margin: 0; display: none; }
.st-step.is-on { display: grid; gap: 18px; animation: st-in .25s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.st-step legend { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; padding: 0; margin-bottom: 18px; }

.st-field { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.st-field > span { display: block; }
.st-field small { font-weight: 400; color: var(--muted); }
.st-field input[type=text], .st-field input[type=email], .st-field input[type=tel], .st-field textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.st-field input:focus, .st-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.st-field input.is-bad { border-color: #c4553b; }
.st-hide { display: none !important; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.st-opts { display: grid; gap: 8px; }
.st-opts--2 { grid-template-columns: 1fr 1fr; }
.st-opts--3 { grid-template-columns: repeat(3, 1fr); }
.st-opt { position: relative; cursor: pointer; }
.st-opt input, .st-look input, .st-color input { position: absolute; opacity: 0; pointer-events: none; }
.st-opt span {
  display: block; height: 100%; font-weight: 500; font-size: 14px; line-height: 1.35;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; transition: border-color .15s, background .15s;
}
.st-opt:hover span { border-color: #b9c6bf; }
.st-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.st-opt input:focus-visible + span, .st-look input:focus-visible + span, .st-color input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* charakter strony: małe szkice */
.st-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.st-look { cursor: pointer; display: grid; gap: 7px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.st-look-art {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.st-look-art i { position: absolute; display: block; border-radius: 3px; background: #d9dfdb; }
.st-look-art i:nth-child(1) { left: 10%; top: 26%; width: 42%; height: 9%; background: #6b7a73; }
.st-look-art i:nth-child(2) { left: 10%; top: 42%; width: 32%; height: 6%; }
.st-look-art i:nth-child(3) { right: 8%; top: 22%; width: 34%; height: 50%; background: #c9d5ce; }
.st-look-art--zdjecie { background: linear-gradient(rgba(30,43,40,.35), rgba(30,43,40,.55)), url(/assets/hero/fizjoterapia-640.webp) center / cover; }
.st-look-art--zdjecie i:nth-child(1) { background: #fff; }
.st-look-art--zdjecie i:nth-child(2) { background: rgba(255,255,255,.6); }
.st-look-art--zdjecie i:nth-child(3) { display: none; }
.st-look-art--ciemny { background: #1f2624; }
.st-look-art--ciemny i:nth-child(1) { background: #e9e4da; }
.st-look-art--ciemny i:nth-child(2) { background: #59625e; }
.st-look-art--ciemny i:nth-child(3) { background: #39695a; }
.st-look-art--minimal i:nth-child(1) { left: 25%; width: 50%; top: 36%; }
.st-look-art--minimal i:nth-child(2) { left: 33%; width: 34%; top: 52%; }
.st-look-art--minimal i:nth-child(3) { display: none; }
.st-look input:checked + .st-look-art { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.st-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.st-color { cursor: pointer; position: relative; }
.st-color span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: box-shadow .15s; }
.st-color input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.st-color--auto span { width: auto; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; font-size: 13px; font-weight: 500; }
.st-color--auto input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

.st-terms { margin: 0; font-size: 14px; font-weight: 400; color: #4b5450; background: var(--accent-soft); border-radius: 12px; padding: 13px 15px; }
.st-terms a { color: var(--accent-dark); }

.st-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.st-nav .btn { margin-left: auto; }
.st-nav .btn[hidden], .st-back[hidden] { display: none; }
.st-back { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-count { font-size: 13px; color: var(--muted); }
.st-form .form-status:empty { display: none; }

.st-done h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.st-done p { color: #4b5450; margin: 0 0 14px; }
.st-done .btn { margin-top: 6px; }

/* podgląd zarysu */
.st-preview { position: sticky; top: 96px; }
.st-browser { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(30, 43, 40, .16); }
.st-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f3f1ec; border-bottom: 1px solid #e7e2d9; }
.st-dots { display: flex; gap: 6px; }
.st-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8d2c7; }
.st-url { flex: 1; max-width: 300px; margin: 0 auto; text-align: center; font-size: 12px; color: #6f756f; background: #fff; border-radius: 7px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-note { font-size: 13px; color: var(--muted); margin: 14px 4px 0; }

.pv { --c: #39695a; --bg: #fff; --tx: #1e2528; --mu: #66706b; --cd: #f6f4ef; font-family: var(--font-sans); background: var(--bg); color: var(--tx); transition: background .3s, color .3s; }
.pv-nav { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.pv-logo { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; color: var(--c); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.pv-menu { display: flex; gap: 14px; margin-left: auto; font-size: 12px; color: var(--mu); }
.pv-btn { display: inline-block; background: var(--c); color: #fff; border-radius: 999px; padding: 9px 15px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .3s; }
.pv-btn--sm { padding: 7px 12px; font-size: 11px; }
.pv-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 18px 22px 26px; align-items: center; min-height: 250px; position: relative; }
.pv-copy { display: grid; gap: 10px; position: relative; z-index: 1; }
.pv-k { font-size: 11px; font-weight: 700; color: var(--c); letter-spacing: .02em; }
.pv-h { font-family: var(--font-display); font-size: 26px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.pv-p { font-size: 13px; color: var(--mu); line-height: 1.5; }
.pv-acts { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.pv-link { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pv-img { align-self: stretch; min-height: 210px; border-radius: 14px; background: var(--cd) center / cover no-repeat; background-image: var(--ph); }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 22px 24px; }
.pv-cards div { background: var(--cd); border-radius: 12px; padding: 14px; display: grid; gap: 8px; font-size: 12px; min-width: 0; }
.pv-cards b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-cards i { width: 22px; height: 22px; border-radius: 7px; background: var(--c); opacity: .85; }
.pv-h, .pv-p, .pv-k, .pv-cards b { transition: opacity .2s; }

.pv.s-zdjecie .pv-hero { grid-template-columns: 1fr; min-height: 290px; padding: 30px 26px; margin: 0 12px 16px; border-radius: 14px; color: #fff; background: linear-gradient(90deg, rgba(20,26,24,.78), rgba(20,26,24,.25)), var(--ph) center / cover; }
.pv.s-zdjecie .pv-img { display: none; }
.pv.s-zdjecie .pv-copy { max-width: 70%; }
.pv.s-zdjecie .pv-k { color: #fff; opacity: .85; }
.pv.s-zdjecie .pv-p { color: rgba(255,255,255,.85); }
.pv.s-ciemny { --bg: #1b2120; --tx: #f1ece3; --mu: #a9b0ab; --cd: #252d2b; }
.pv.s-ciemny .pv-logo { color: #f1ece3; }
.pv.s-ciemny .pv-k { color: #c9d4ce; }
.pv.s-minimal .pv-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; min-height: 270px; }
.pv.s-minimal .pv-copy { justify-items: center; max-width: 80%; }
.pv.s-minimal .pv-img { display: none; }
.pv.s-minimal .pv-h { font-size: 30px; }
.pv.s-minimal .pv-cards div { background: transparent; border: 1px solid #e7e2d9; }

/* rozmowa i wiadomość */
.st-simple { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.st-simple h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; margin: 0; }
.st-simple > p { margin: 0; color: #4b5450; }
.st-simple .btn { justify-self: start; }
.st-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.st-list li { padding-left: 26px; position: relative; }
.st-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.st-msg .form-status:empty { display: none; }

/* co dalej: zielona sekcja */
.st-after { background: var(--dark); color: #fff; padding: 80px 0; }
.st-after h2, .st-faq h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; margin: 0 0 36px; }
.st-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: f; }
.st-flow li { counter-increment: f; border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.st-flow li::before { content: counter(f); font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #9fc2b3; }
.st-flow b { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.st-flow p { margin: 0; font-size: 14px; color: #c3cfca; }
.st-flow small { font-size: 13px; color: #9fc2b3; }
.st-flow li:last-child { border-top-color: var(--accent-2); }
.st-flow li:last-child::before, .st-flow li:last-child small { color: #f0b48f; }

.st-faq { padding: 80px 0; }
.st-faq .container { max-width: 820px; }
.st-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.st-faq details:last-child { border-bottom: 1px solid var(--line); }
.st-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.st-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); }
.st-faq details[open] summary::after { content: "−"; }
.st-faq details p { margin: 10px 0 0; color: #4b5450; }

@media (max-width: 1000px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-preview { position: static; }
  .st-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .st-paths { grid-template-columns: 1fr; }
  .st-form, .st-done, .st-simple { padding: 22px 18px; }
  .st-row, .st-opts--3 { grid-template-columns: 1fr; }
  .st-looks { grid-template-columns: 1fr 1fr; }
  .st-flow { grid-template-columns: 1fr; }
  .pv-menu { display: none; }
  .pv-hero { grid-template-columns: 1fr; min-height: 0; }
  .pv-img { min-height: 130px; }
  .pv-h { font-size: 22px; }
  .pv.s-zdjecie .pv-copy, .pv.s-minimal .pv-copy { max-width: 100%; }
  .pv-cards { grid-template-columns: 1fr 1fr; }
  .pv-cards div:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-step.is-on { animation: none; }
}
