/* Układ: portal quizów – biały pasek, ciepły gradient w nagłówku, rzędy kart z okładkami. Jeden, jasny wygląd. */
:root {
  --bg: #fbf6f3;
  --card: #ffffff;
  --ink: #2c1d3a;
  --muted: #7a6d86;
  --line: #eee3dd;
  --brand: #ef5a4c;
  --brand-dark: #d4443a;
  --sun: #ffb84d;
  --plum: #6b3fa0;
  --f-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-body); }
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }

/* Pasek górny */
.top { background: var(--card); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font: 700 21px/1 var(--f-head); color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--sun)); display: grid; place-items: center; color: #fff; font-size: 17px; }
.logo b { color: var(--brand); font-weight: 700; }
.nav { display: flex; gap: 20px; font: 500 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: 0.03em; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-cta { margin-left: auto; }
@media (max-width: 720px) { .nav { display: none; } }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--f-head); color: #fff; background: var(--brand);
  border: 0; border-radius: 8px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .card:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }

/* Gradient nagłówka */
.hero { background: linear-gradient(160deg, #ff7e67 0%, #ff9f5a 45%, #ffc65c 100%); color: #fff; }
.hero-in { padding-block: 48px 40px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; }
.hero p { margin: 0; font-size: 18px; opacity: .95; max-width: 52ch; }
.search { display: flex; gap: 8px; width: 100%; max-width: 760px; background: var(--card); padding: 8px; border-radius: 12px; box-shadow: 0 10px 30px rgba(120, 40, 20, .18); }
.search input { flex: 1; min-width: 0; border: 0; font: 400 16px var(--f-body); padding: 10px 12px; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.chip {
  display: grid; justify-items: center; gap: 6px; min-width: 96px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 10px; color: #fff; text-decoration: none;
  font: 500 13px/1.2 var(--f-body); background: rgba(255,255,255,.08); transition: background .15s;
}
.chip:hover { background: rgba(255,255,255,.22); }
.chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sekcje z kartami */
.shelf { padding-block: 36px 8px; }
.shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.shelf-head h2 { font-size: 26px; font-weight: 700; }
.shelf-head span { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(60, 30, 50, .07);
  transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 30, 50, .13); }
.card-body { display: grid; gap: 10px; align-content: space-between; padding: 12px 14px 14px; }
.card-body h3 { font: 600 16px/1.3 var(--f-body); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.badge { font: 600 11px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 6px; background: #f3ecf9; color: var(--plum); }
.badge-new { background: #fff0e0; color: #b4560f; }
.is-soon { opacity: .6; }

/* Okładki kart (zamiast zdjęć) */
.cover { aspect-ratio: 16 / 9; max-width: 100%; display: grid; align-content: end; padding: 14px; position: relative; overflow: hidden; color: #fff; }
.cover b { font: 800 clamp(20px, 2.4vw, 26px)/1.05 var(--f-head); text-transform: uppercase; letter-spacing: -0.01em; position: relative; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -30%; background: rgba(255,255,255,.16); }
.cover::after { content: attr(data-big); position: absolute; right: 12px; top: 6px; font: 800 44px/1 var(--f-head); opacity: .35; }
.c1 { background: linear-gradient(135deg, #6b3fa0, #ef5a4c); }
.c2 { background: linear-gradient(135deg, #1f8a70, #9bd36a); }
.c3 { background: linear-gradient(135deg, #e36c2b, #ffc65c); }
.c4 { background: linear-gradient(135deg, #2d4b9a, #57b8d8); }
.c5 { background: linear-gradient(135deg, #b23a6d, #ff9f8a); }

/* Pasek z nagłówkiem na podstronach */
.band { background: linear-gradient(160deg, #ff7e67 0%, #ff9f5a 55%, #ffc65c 100%); color: #fff; }
.band-in { padding-block: 34px 70px; display: grid; gap: 10px; }
.band h1 { font-size: clamp(26px, 4.4vw, 36px); }
.band p { margin: 0; max-width: 60ch; opacity: .95; font-size: 17px; }
.crumbs { font-size: 14px; opacity: .9; }
.crumbs a { color: #fff; }
.lift { margin-top: -46px; margin-bottom: 56px; }

/* Kwestionariusz */
.sheet { background: var(--card); border-radius: 14px; box-shadow: 0 4px 20px rgba(60, 30, 50, .08); overflow: hidden; }
.progress-wrap { position: sticky; top: 62px; z-index: 5; background: var(--card); padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.progress-row b { color: var(--ink); }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--sun)); transition: width .3s; }
.questions { list-style: none; margin: 0; padding: 0; }
.q { padding: 26px 20px; border-bottom: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: flex; gap: 12px; font: 600 18px/1.4 var(--f-body); padding: 0; margin-bottom: 18px; }
.q-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff0e8; color: var(--brand); font: 600 13px/1 var(--f-head); }
.scale-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.scale-end { font-size: 13px; font-weight: 600; color: var(--muted); }
.scale-end.no { color: var(--brand); }
.scale-end.yes { color: #1f8a70; }
.scale { display: flex; justify-content: space-between; align-items: center; gap: 6px; max-width: 360px; width: 100%; justify-self: center; }
.dot input { appearance: none; -webkit-appearance: none; margin: 0; display: block; border-radius: 50%; background: var(--card); cursor: pointer; transition: background .15s, transform .15s; }
.dot-1 input { width: 46px; height: 46px; border: 3px solid var(--brand); }
.dot-2 input { width: 38px; height: 38px; border: 3px solid #f58e7f; }
.dot-3 input { width: 30px; height: 30px; border: 3px solid #c9bfd0; }
.dot-4 input { width: 38px; height: 38px; border: 3px solid #6cc0a4; }
.dot-5 input { width: 46px; height: 46px; border: 3px solid #1f8a70; }
.dot-1 input:checked { background: var(--brand); }
.dot-2 input:checked { background: #f58e7f; }
.dot-3 input:checked { background: #c9bfd0; }
.dot-4 input:checked { background: #6cc0a4; }
.dot-5 input:checked { background: #1f8a70; }
.dot input:hover { transform: scale(1.08); }
.dot input:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
@media (max-width: 520px) {
  .scale-row { grid-template-columns: 1fr 1fr; }
  .scale { grid-column: 1 / -1; grid-row: 1; }
  .scale-end.yes { text-align: right; }
}
.submit-bar { display: flex; justify-content: flex-end; padding: 22px 20px; }

/* Wynik */
.result-card { background: var(--card); border-radius: 14px; box-shadow: 0 4px 20px rgba(60, 30, 50, .08); overflow: hidden; }
.result-top { display: grid; grid-template-columns: 220px 1fr; }
.result-top .cover { aspect-ratio: auto; min-height: 200px; align-content: center; justify-items: center; }
.result-top .cover b { font-size: 46px; letter-spacing: .04em; }
.result-text { padding: 24px; display: grid; gap: 10px; align-content: center; }
.result-text h1 { font-size: clamp(26px, 4vw, 34px); }
.result-text p { margin: 0; font-size: 17px; color: var(--muted); }
@media (max-width: 620px) { .result-top { grid-template-columns: 1fr; } .result-top .cover { min-height: 140px; } }
.axes { display: grid; gap: 16px; margin: 0; padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.axis dt { font: 600 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.axis dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.pole { color: var(--muted); font-variant-numeric: tabular-nums; }
.pole-b { text-align: right; }
.pole.is-win { color: var(--ink); font-weight: 700; }
.bar { height: 10px; border-radius: 5px; background: #f6d9cf; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--sun)); border-radius: 5px; }
@media (max-width: 480px) { .axis dd { grid-template-columns: 1fr 1fr; } .bar { grid-column: 1 / -1; grid-row: 1; } }

/* Zajawki raportu */
.teasers { margin-top: 28px; display: grid; gap: 14px; }
.teasers > h2 { font-size: 22px; }
.teaser { background: var(--card); border-radius: 12px; box-shadow: 0 2px 10px rgba(60, 30, 50, .07); padding: 18px 20px 16px; display: grid; gap: 10px; }
.teaser-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.teaser-l { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--sun)); color: #fff; font: 700 15px/1 var(--f-head); }
.teaser-head h3 { font-size: 18px; }
.teaser-axis { margin-left: auto; font: 600 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.teaser p { margin: 0; font-size: 16px; }
.cut { background: linear-gradient(90deg, var(--ink) 30%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.locked { position: relative; display: grid; gap: 7px; padding-top: 2px; }
.locked i { display: block; height: 10px; border-radius: 5px; background: #f1e7e2; }
.locked i:nth-child(2) { width: 88%; }
.locked i:nth-child(3) { width: 64%; }
.locked span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 13px/1.2 var(--f-head); color: var(--plum); text-align: center; }
.locked span { background: linear-gradient(90deg, transparent, var(--card) 25%, var(--card) 75%, transparent); justify-self: center; padding: 0 24px; }

.unlock { margin-top: 20px; background: var(--card); border-radius: 14px; box-shadow: 0 4px 20px rgba(60, 30, 50, .08); padding: 26px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; border: 2px dashed #f5b9a8; }
.unlock h2 { font-size: 22px; }
.unlock p { margin: 0; color: var(--muted); }
.unlock ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.unlock li::marker { color: var(--brand); }
.unlock-cta { display: grid; gap: 8px; justify-items: center; text-align: center; }
.unlock-cta small { color: var(--muted); font-size: 13px; }
.unlock.is-paid { border: 2px solid #9fd9c3; background: #f3fbf7; }
@media (max-width: 680px) { .unlock { grid-template-columns: 1fr; } .unlock-cta { justify-items: stretch; } }
.note { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: #fff0e0; color: #8a4510; font-size: 15px; }

.foot { margin-top: 48px; background: var(--ink); color: #d9cfe2; font-size: 14px; }
.foot-in { padding-block: 28px 36px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot p { margin: 0 0 4px; max-width: 60ch; }
.foot .logo { color: #fff; font-size: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
