/* Freak Wyceniarka – premium, bez zależności */
.fw {
  --fw-bg: #FCFBF8; --fw-card: #FFFFFF; --fw-text: #111111; --fw-muted: #7A746C;
  --fw-border: #EDE8E1; --fw-soft: #F5F1EB; --fw-accent: #111111; --fw-gold: #B08D57;
  --fw-r: 16px; --fw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --fw-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fw-bg); color: var(--fw-text); font-family: var(--fw-sans);
  font-size: 16px; line-height: 1.55; border-radius: var(--fw-r);
  padding: clamp(20px, 4vw, 48px); max-width: 1040px; margin: 0 auto; box-sizing: border-box;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.fw *, .fw *::before, .fw *::after { box-sizing: border-box; }
.fw [hidden] { display: none !important; }
.fw-form { scroll-margin-top: 80px; }
.fw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* nagłówki */
.fw-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fw-muted); margin: 0 0 6px; font-weight: 500; }
.fw-h { font-family: var(--fw-serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 24px; letter-spacing: -.01em; color: var(--fw-text); }
.fw-serif { font-family: var(--fw-serif); font-weight: 500; }
.fw-sub { font-family: var(--fw-sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 32px 0 12px; color: var(--fw-text); }
.fw-sub small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fw-muted); margin-left: 8px; font-size: 13px; }
.fw-sub-0 { margin-top: 0; }
.fw-muted { color: var(--fw-muted); }
.fw-mt { margin-top: 20px; }

/* postęp */
.fw-progress { height: 2px; background: var(--fw-border); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.fw-progress span { display: block; height: 100%; width: 20%; background: var(--fw-accent); transition: width .4s ease; }
.fw-nav-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 36px; flex-wrap: wrap; }
.fw-nav-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fw-muted); margin: 0; }
.fw-nav-steps li + li::before { content: ""; width: 18px; height: 1px; background: var(--fw-border); }
.fw-nav-steps b { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--fw-border); display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--fw-card); }
.fw-nav-steps li.is-active { color: var(--fw-text); }
.fw-nav-steps li.is-active b, .fw-nav-steps li.is-done b { background: var(--fw-accent); border-color: var(--fw-accent); color: #fff; }

/* kroki */
.fw-step.is-active { animation: fw-in .35s ease both; }
@keyframes fw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fw-service-block { margin: 0 0 28px; padding: 22px; border: 1px solid var(--fw-border); border-radius: var(--fw-r); background: rgba(255,255,255,.55); }
.fw-service-title { margin: 0; font-size: 25px; }

/* siatki */
.fw-grid { display: grid; gap: 12px; }
.fw-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fw-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fw-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* kafelki */
.fw-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.fw-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fw-tb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%;
  background: var(--fw-card); border: 1px solid var(--fw-border); border-radius: var(--fw-r); padding: 16px 14px;
  text-align: center; font-size: 14px; font-weight: 500; transition: border-color .2s, box-shadow .2s, transform .2s; }
.fw-tile:hover .fw-tb { border-color: #D9D1C5; transform: translateY(-1px); box-shadow: 0 6px 20px -12px rgba(17,17,17,.25); }
.fw-tile input:checked + .fw-tb { border-color: var(--fw-accent); box-shadow: inset 0 0 0 1px var(--fw-accent); }
.fw-tile input:focus-visible + .fw-tb { outline: 2px solid var(--fw-gold); outline-offset: 2px; }
.fw-chip .fw-tb { flex-direction: row; padding: 13px 14px; min-height: 52px; }
.fw-inline { display: inline-block; }
.fw-decision .fw-tb { min-height: 128px; align-items: flex-start; text-align: left; padding: 24px; }
.fw-decision strong { font: 500 25px/1.15 var(--fw-serif); }
.fw-decision small { color: var(--fw-muted); font-size: 13px; font-weight: 400; }
.fw-decision input:checked + .fw-tb { background: var(--fw-accent); color: #fff; }
.fw-decision input:checked + .fw-tb small { color: rgba(255,255,255,.72); }
.fw-decision.is-disabled { cursor: not-allowed; }
.fw-decision.is-disabled .fw-tb { background: #F4F1EC; color: #A8A198; border-color: #EEE8DF; box-shadow: none; transform: none; }
.fw-decision.is-disabled .fw-tb small { color: #B7B0A7; }
.fw-hair-length { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--fw-border); border-radius: var(--fw-r); background: var(--fw-card); }
.fw-hair-length > span { font-weight: 600; }
.fw-hair-length > small { color: var(--fw-muted); font-size: 12px; }
.fw-tile-lg .fw-tb { padding: 32px 24px; gap: 8px; min-height: 190px; }
.fw-tile-lg strong { font-size: 30px; line-height: 1.1; }
.fw-tile-lg em { font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--fw-gold); font-weight: 600; }
.fw-tile-lg small { color: var(--fw-muted); font-size: 14px; font-weight: 400; max-width: 260px; }
.fw-tile-lg input:checked + .fw-tb { background: var(--fw-accent); color: #fff; }
.fw-tile-lg input:checked + .fw-tb small { color: rgba(255,255,255,.7); }
.fw-sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* zakres – proste kafelki typograficzne, bez ilustracji głowy */
.fw-zone .fw-tb { min-height: 122px; padding: 18px; align-items: flex-start; justify-content: flex-start; text-align: left; }
.fw-zone small { color: var(--fw-muted); font-size: 12px; font-weight: 400; }
.fw-zone i { width: 34px; height: 3px; border-radius: 999px; background: #D9D1C5; margin-bottom: 9px; }
.fw-zone input:checked + .fw-tb i { background: currentColor; }
/* tooltip */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  width: max-content; max-width: 220px; background: var(--fw-accent); color: #fff; font: 400 12px/1.45 var(--fw-sans);
  padding: 8px 10px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .18s; z-index: 5; text-align: left; text-transform: none; letter-spacing: 0; }
[data-tip]:hover::after, [data-tip]:focus::after, [data-tip]:focus-within::after { opacity: 1; transform: translate(-50%, 0); }
.fw-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor;
  font: italic 600 11px/1 var(--fw-serif); cursor: help; vertical-align: 1px; margin-left: 4px; }

/* inspiracje */
.fw-insp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fw-insp-item { margin: 0; border-radius: var(--fw-r); overflow: hidden; background: var(--fw-card); border: 1px solid var(--fw-border); }
.fw-insp-item img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.fw-insp-item > span { display: block; padding: 10px 12px; font-size: 13px; font-weight: 500; }
.fw-insp-item small { display: block; color: var(--fw-muted); font-weight: 400; }
.fw-insp-item input:checked + img { box-shadow: inset 0 0 0 4px var(--fw-accent); outline: 3px solid var(--fw-accent); outline-offset: -3px; }

/* zdjęcia */
.fw-photo { position: relative; display: block; aspect-ratio: 3/4; border: 1px dashed #D9D1C5; border-radius: var(--fw-r); background: var(--fw-card); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.fw-photo:hover { border-color: var(--fw-accent); }
.fw-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.fw-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.fw-photo.has-img img { display: block; }
.fw-photo.has-img { border-style: solid; border-color: var(--fw-accent); }
.fw-photo-l { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; }
.fw-photo-l b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fw-border); font-weight: 400; font-size: 22px; }
.fw-photo.has-img .fw-photo-l { inset: auto 10px 10px 10px; flex-direction: row; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; justify-content: flex-start; }
.fw-photo.has-img .fw-photo-l b { display: none; }
.fw-photo-size { position: absolute; top: 10px; right: 10px; font-size: 11px; background: rgba(17,17,17,.75); color: #fff; padding: 2px 8px; border-radius: 999px; }
.fw-photo-size:empty { display: none; }
.fw-photo.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(252,251,248,.7) linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent) no-repeat; background-size: 200% 100%; animation: fw-sh 1s linear infinite; }
@keyframes fw-sh { from { background-position: -100% 0; } to { background-position: 200% 0; } }

/* pola */
.fw-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; margin: 0; }
.fw-field input, .fw-field select { appearance: none; -webkit-appearance: none; width: 100%; font: 400 15px var(--fw-sans); color: var(--fw-text);
  background: var(--fw-card); border: 1px solid var(--fw-border); border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: border-color .2s; }
.fw-field select { background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fw-field input:focus, .fw-field select:focus { outline: none; border-color: var(--fw-accent); }
.fw-range { margin-top: 18px; }
.fw-range input { padding: 0; min-height: 28px; accent-color: var(--fw-accent); }
.fw-range output { font-weight: 600; }
.fw-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fw-muted); margin: 18px 0; cursor: pointer; }
.fw-check input { width: 18px; height: 18px; accent-color: var(--fw-accent); flex: none; margin: 1px 0 0; }
.fw-unknown { align-self: end; min-height: 50px; padding: 13px 14px; margin: 0; border: 1px solid var(--fw-border); border-radius: 12px; background: var(--fw-card); }
.fw-unknown small { display: block; }

/* alert */
.fw-alert { margin-top: 16px; background: #FFF8EC; border: 1px solid #EBD9B4; border-radius: var(--fw-r); padding: 14px 16px; font-size: 14px; }
.fw-alert strong { display: block; font-family: var(--fw-serif); font-size: 17px; margin-bottom: 2px; }

/* wynik */
.fw-card { background: var(--fw-card); border: 1px solid var(--fw-border); border-radius: var(--fw-r); padding: 22px; }
.fw-card p { margin: 0; }
.fw-card-dark { background: var(--fw-accent); border-color: var(--fw-accent); color: #fff; }
.fw-card-dark .fw-kicker { color: rgba(255,255,255,.6); }
.fw-big { font-family: var(--fw-serif); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 4px 0 8px !important; }
.fw-basis { background: var(--fw-card); border: 1px solid var(--fw-border); border-radius: var(--fw-r); padding: 18px 22px; }
.fw-basis dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; margin: 8px 0 0; }
.fw-basis dt { font-size: 12px; color: var(--fw-muted); }
.fw-basis dd { margin: 0; font-size: 14px; font-weight: 500; }
.fw-acc { margin-top: 12px; border: 1px solid var(--fw-border); border-radius: var(--fw-r); background: var(--fw-card); }
.fw-acc summary { cursor: pointer; padding: 15px 22px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.fw-acc summary::-webkit-details-marker { display: none; }
.fw-acc summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .2s; }
.fw-acc[open] summary::after { transform: rotate(45deg); }
.fw-acc ol { margin: 0; padding: 0 22px 18px 40px; font-size: 14px; color: var(--fw-muted); }
.fw-acc li { margin: 4px 0; }

/* produkty */
.fw-prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-prod { display: flex; flex-direction: column; gap: 4px; text-decoration: none !important; color: var(--fw-text) !important; background: var(--fw-card);
  border: 1px solid var(--fw-border); border-radius: var(--fw-r); padding: 10px 10px 14px; font-size: 14px; font-weight: 500; transition: border-color .2s; }
.fw-prod:hover { border-color: var(--fw-accent); }
.fw-prod img, .fw-prod-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--fw-soft); display: block; margin-bottom: 6px; }
.fw-prod em { font-style: normal; color: var(--fw-muted); font-weight: 400; font-size: 13px; }
.fw-set { position: relative; cursor: pointer; margin: 0; }
.fw-set input { position: absolute; opacity: 0; pointer-events: none; }
.fw-set input:checked ~ img { outline: 3px solid var(--fw-accent); outline-offset: -3px; }
.fw-set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 32px; }
.fw-set-head .fw-sub { margin: 0 0 12px; }
.fw-set-head > a { color: var(--fw-text); font-size: 13px; text-underline-offset: 3px; white-space: nowrap; }
.fw-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fw-set-grid .fw-set { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px; }
.fw-set-grid .fw-set img { width: 72px; height: 72px; aspect-ratio: 1; margin: 0; border-radius: 10px; }
.fw-set-grid .fw-set > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fw-set-grid .fw-set strong { font-size: 13px; line-height: 1.3; }
.fw-set-grid .fw-set em { font-size: 12px; }

/* przyciski */
.fw-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.fw-nav [data-next] { margin-left: auto; }
.fw-btn { appearance: none; border: 1px solid var(--fw-accent); background: var(--fw-accent); color: #fff; font: 500 15px var(--fw-sans);
  padding: 14px 30px; border-radius: 999px; cursor: pointer; transition: opacity .2s, transform .2s; letter-spacing: .01em; }
.fw-btn:hover { opacity: .88; transform: translateY(-1px); }
.fw-btn:disabled { opacity: .5; cursor: wait; transform: none; }
.fw-btn-ghost { background: transparent; color: var(--fw-text); border-color: var(--fw-border); }
.fw-btn-full { width: 100%; padding: 17px; font-size: 16px; }
.fw-err { color: #A1352B; font-size: 14px; min-height: 1.4em; margin: 16px 0 0; }
.fw-done { text-align: center; padding: 48px 0; }

/* mobile */
@media (max-width: 760px) {
  .fw-g4, .fw-insp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-g3, .fw-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-basis dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-nav-steps span { display: none; }
  .fw-tile-lg .fw-tb { min-height: 160px; padding: 22px 14px; }
  .fw-tile-lg strong { font-size: 24px; }
}
@media (max-width: 480px) {
  .fw { padding: 18px 16px; border-radius: 0; }
  .fw-g3, .fw-res-cards { grid-template-columns: 1fr; }
  .fw-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fw-prod-grid { grid-template-columns: 1fr; }
	.fw-decision-grid { grid-template-columns: 1fr; }
	.fw-decision .fw-tb { min-height: 104px; }
	.fw-set-head { align-items: flex-start; flex-direction: column; gap: 0; }
  .fw-photo-l { font-size: 12px; }
  .fw-photo.has-img .fw-photo-l { inset: auto 6px 6px 6px; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) { .fw * { animation: none !important; transition: none !important; } }
