/* The WITCH Skin Test — styl dopasowany do motywu sklepu (v2)
   Fonty: Montserrat (nagłówki), Quicksand (teksty). Kolory z motywu. */

#twst-app.twst{
  --twst-bg:#f7f7f8;            /* szare sekcje sklepu */
  --twst-ink:#2e2e2e;           /* ciemniejszy */
  --twst-text:#424242;          /* kolor tekstu */
  --twst-muted:#757575;         /* drobne etykiety */
  --twst-line:#e4e4e6;
  --twst-card:#fff;
  --twst-black:#000;
  --twst-radius:4px;
  --twst-font-body:'Quicksand',sans-serif;
  --twst-font-head:'Montserrat',sans-serif;
  font-family:var(--twst-font-body);
  color:var(--twst-text);
  margin:40px 0;
}
#twst-app.twst *{box-sizing:border-box}

/* --- Kontener --- */
#twst-app .twst-shell{
  max-width:1100px;margin:0 auto;padding:72px 40px;
  background:border-radius:var(--twst-radius);
}
#twst-app .twst-intro,
#twst-app .twst-transition,
#twst-app .twst-result-head{text-align:center}

/* --- Typografia --- */
#twst-app .twst-kicker{
  font-family:var(--twst-font-body);
  font-size:12px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  margin:0 0 22px;color:var(--twst-muted);
}
#twst-app h2{
  font-family:var(--twst-font-head);
  font-size:clamp(26px,3.4vw,38px);line-height:1.25;
  letter-spacing:.04em;margin:0 0 22px;font-weight:400;
  color:var(--twst-black);text-transform:none;
}
#twst-app h3{
  font-family:var(--twst-font-head);
  font-size:clamp(20px,2.4vw,26px);line-height:1.3;
  letter-spacing:.08em;text-transform:uppercase;
  margin:0 0 16px;font-weight:400;color:var(--twst-black);text-align:center;
}
#twst-app .twst-lead,
#twst-app .twst-result-copy,
#twst-app .twst-section-intro{
  font-family:var(--twst-font-body);
  font-size:16px;line-height:1.75;color:var(--twst-text);font-weight:500;
  max-width:680px;margin:0 auto 30px;
}
#twst-app .twst-meta,
#twst-app .twst-help{font-size:13px;color:var(--twst-muted);margin:16px 0 0;font-weight:500}

/* --- Przyciski: prostokątne, ciemne, jak „Dodaj do koszyka” w sklepie --- */
#twst-app .twst-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 28px;border-radius:2px;
  border:1px solid var(--twst-text);
  font-family:Montserrat, sans-serif;font-size:12px;font-weight:500;
  letter-spacing:1.8px;text-transform:uppercase;text-decoration:none;
  line-height:27.2px;cursor:pointer;box-shadow:none;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
#twst-app .twst-btn-primary{background:var(--twst-text);color:#fff}
#twst-app .twst-btn-primary:hover{background:var(--twst-black);border-color:var(--twst-black);color:#fff}
#twst-app .twst-btn-secondary{background:#fff;color:var(--twst-text)}
#twst-app .twst-btn-secondary:hover{background:var(--twst-text);color:#fff}
#twst-app .twst-btn:focus-visible,
#twst-app .twst-link:focus-visible{outline:2px solid var(--twst-black);outline-offset:3px}
#twst-app .twst-link{
  background:none;border:0;padding:0;box-shadow:none;
  font-family:var(--twst-font-body);font-size:12px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  text-decoration:underline;text-underline-offset:4px;cursor:pointer;color:var(--twst-text);
}
#twst-app .twst-link:hover{color:var(--twst-black)}

/* --- Pasek postępu --- */
#twst-app .twst-progress-wrap{margin-bottom:40px}
#twst-app .twst-progress-meta{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--twst-muted);margin-bottom:12px;
}
#twst-app .twst-progress{height:2px;background:var(--twst-line);overflow:hidden}
#twst-app .twst-progress span{display:block;height:100%;background:var(--twst-text);width:12.5%;transition:width .3s ease}

/* --- Pytania --- */
#twst-app .twst-question h3{text-align:left;text-transform:none;letter-spacing:.03em;font-size:clamp(20px,2.2vw,24px);margin-bottom:26px}
#twst-app .twst-question label{
  display:flex;gap:14px;align-items:center;
  padding:18px 22px;border:1px solid var(--twst-line);border-radius:3px;
  background:var(--twst-card);margin:10px 0;cursor:pointer;
  font-size:15px;font-weight:500;line-height:1.5;color:var(--twst-text);
  transition:border-color .2s ease,box-shadow .2s ease;
}
#twst-app .twst-question label:hover{border-color:var(--twst-text)}
#twst-app .twst-question label:has(input:checked){border-color:var(--twst-text);color:var(--twst-black);box-shadow:0 0 0 1px var(--twst-text) inset}
#twst-app .twst-question input{margin:0;flex:none;accent-color:var(--twst-text)}
#twst-app .twst-actions{display:flex;justify-content:space-between;gap:12px;margin-top:32px}
#twst-app .twst-actions [data-action="next"]{margin-left:auto}
#twst-app .twst-error{color:#b3261e;margin-top:14px;font-size:14px;font-weight:600}

/* --- Wynik --- */
#twst-app .twst-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:22px 0 28px}
#twst-app .twst-badges span{
  border:1px solid var(--twst-text);border-radius:2px;padding:9px 16px;
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;
  background:#fff;color:var(--twst-text);
}
#twst-app .twst-section{margin-top:72px}

/* --- Karty produktów: układ pionowy jak w sklepie, ostatni rząd wyśrodkowany --- */
#twst-app .twst-products{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
#twst-app .twst-product-card{
  flex:0 1 calc(33.333% - 14px);min-width:240px;
  background:#fff;border:1px solid var(--twst-line);border-radius:3px;
  overflow:hidden;display:flex;flex-direction:column;
}
#twst-app .twst-product-image{
  background:#fff;display:flex;align-items:center;justify-content:center;
  padding:24px 24px 8px;height:240px;
}
#twst-app .twst-product-image img{
  width:100%;height:100%;object-fit:contain;display:block;margin:0;
}
#twst-app .twst-product-body{
  padding:16px 24px 28px;display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;
}
#twst-app .twst-product-step{
  font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--twst-muted);margin:0 0 10px;
}
#twst-app .twst-product-body h4{
  font-family:var(--twst-font-head);
  font-size:16px;line-height:1.45;margin:0 0 14px;font-weight:400;
  letter-spacing:.06em;color:var(--twst-black);text-transform:none;
}
#twst-app .twst-product-body p{
  color:var(--twst-text);font-size:14px;font-weight:500;line-height:1.7;margin:0 0 22px;
}
#twst-app .twst-product-body .twst-btn{margin-top:auto;min-height:40px;padding:0 22px;font-size:11px}
#twst-app .twst-soon{
  margin-top:auto;display:inline-block;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--twst-muted);border:1px dashed #c8c8cc;padding:12px 18px;border-radius:2px;
}

/* --- Dodatkowa wskazówka i nota --- */
#twst-app .twst-extra{background:#fff;border:1px solid var(--twst-line);border-radius:3px;padding:36px 40px}
#twst-app .twst-extra h3{text-align:left;font-size:20px}
#twst-app .twst-extra p{line-height:1.8;color:var(--twst-text);font-size:15px;font-weight:500;margin:0 0 14px}
#twst-app .twst-extra p:last-child{margin-bottom:0}
#twst-app .twst-note{font-size:12px;font-weight:500;line-height:1.6;color:var(--twst-muted);border-top:1px solid var(--twst-line);padding-top:20px;text-align:center}
#twst-app .twst-restart{display:block;margin:32px auto 0}
#twst-app [hidden]{display:none!important}

/* --- Mobile --- */
@media (max-width:760px){
  #twst-app .twst-shell{padding:44px 20px}
  #twst-app .twst-section{margin-top:48px}
  #twst-app .twst-product-card{flex:1 1 100%;min-width:0}
  #twst-app .twst-product-image{height:200px}
  #twst-app .twst-extra{padding:26px 20px}
  #twst-app .twst-actions .twst-btn{padding:0 20px}
}
