:root {
  --paper: #ead9cb;
  --navy: #071a2c;
  --cream: #f0dfcf;
  --pink: #ee4d78;
  --copper: #b96f49;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--navy);
  font-family: "Archivo", "Aptos", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
svg { display: block; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border: 1px solid var(--pink);
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.diagnosis-frame [tabindex="-1"]:focus {
  outline: none;
}

.diagnosis-story,
.story-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
}

.story-stage {
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.diagnosis-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.01);
  transition:
    opacity .58s ease,
    transform .9s var(--ease),
    visibility 0s linear .9s;
}

.diagnosis-frame.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity .62s ease,
    transform .9s var(--ease),
    visibility 0s;
}

.campaign-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(112px, 14.5vh, 136px);
  padding: 0 clamp(54px, 3.7vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  min-width: 154px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.wordmark img { width: clamp(142px, 9vw, 154px); display: block; }
.site-header nav {
  margin-right: 10vw;
  display: flex;
  gap: clamp(38px, 3.1vw, 56px);
}
.site-header nav a {
  position: relative;
  min-height: 44px;
  display: grid;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { transform: scaleX(1); }
.site-header-light nav a {
  text-shadow: 0 1px 9px rgba(247,238,229,.92), 0 0 3px rgba(247,238,229,.72);
}
.site-header-dark { color: var(--cream); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

/* Oryginalne otwarcie */
.opening-copy {
  position: absolute;
  z-index: 8;
  top: 25%;
  left: clamp(56px, 5vw, 84px);
  width: min(650px, 45vw);
}
.opening-copy h1 {
  margin: 14px 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(66px, 5.25vw, 90px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .92;
}
.opening-copy h1 em { color: var(--pink); font-style: normal; }
.opening-copy > p:not(.opening-privacy) {
  margin: 20px 0 0;
  color: #20313c;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.55;
}
.opening-scope {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  color: rgba(7,26,44,.72);
  font-size: clamp(10px, .68vw, 12px);
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.opening-scope span { display: inline-flex; align-items: center; }
.opening-scope span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline: 11px;
  border-radius: 50%;
  background: var(--pink);
}
.outline-cta {
  width: 255px;
  min-height: 50px;
  margin-top: 17px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--pink);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.outline-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.5;
}
.outline-cta:hover { color: white; background: var(--pink); }
.outline-cta:hover svg { stroke: white; }
.opening-privacy {
  margin: 10px 0 0;
  color: rgba(7,26,44,.52);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Zachowane świetlne przewody i anotacje */
.energy-shimmer,
.annotation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.energy-shimmer { z-index: 4; mix-blend-mode: screen; }
.energy-shimmer .glint {
  fill: none;
  stroke: rgba(255,249,224,.78);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: .006 .094;
  opacity: .42;
  vector-effect: non-scaling-stroke;
  animation: energy-glint 9s linear infinite;
}
.energy-shimmer .glint-b { stroke-width: 1.7; opacity: .32; animation-duration: 12.5s; }
.annotation-lines { z-index: 5; overflow: visible; }
.annotation-lines path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}
.annotation-wire path {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .56s var(--ease), opacity .15s ease;
}
.annotation-wire.is-open path { opacity: 1; stroke-dashoffset: 0; }
.annotation-callout {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
}
.annotation-dot {
  position: absolute;
  z-index: 3;
  top: var(--dot-y);
  left: var(--dot-x);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid var(--pink);
  border-radius: 50%;
  background: #fff8ea;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%,-50%);
  animation: annotation-pulse 2.7s ease-in-out infinite;
}
.annotation-copy {
  position: absolute;
  top: var(--copy-top);
  left: var(--copy-left, auto);
  right: var(--copy-right, auto);
  width: var(--copy-width, 230px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .26s ease .2s, transform .38s var(--ease) .16s;
}
.annotation-copy strong {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(17px,1.14vw,20px);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.annotation-copy span {
  display: block;
  margin-top: 7px;
  color: rgba(7,26,44,.76);
  font-size: clamp(11px,.74vw,13px);
  line-height: 1.45;
}
.annotation-callout.is-open .annotation-copy { opacity: 1; pointer-events: auto; transform: none; }
.annotation-dot:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.callout-symptom { --dot-x:64.8%;--dot-y:48.5%;--copy-left:53.6%;--copy-top:32.5%;--copy-width:240px; }
.callout-context { --dot-x:71%;--dot-y:58.1%;--copy-left:72.8%;--copy-top:47.5%;--copy-width:245px; }
.callout-source { --dot-x:91%;--dot-y:70.3%;--copy-left:79%;--copy-top:64%;--copy-width:235px; }
.note-facts { --dot-x:49.35%;--dot-y:56.25%;--copy-left:50.5%;--copy-top:61%;--copy-width:210px; }
.note-context { --dot-x:57.35%;--dot-y:32.05%;--copy-left:59.2%;--copy-top:18%;--copy-width:225px; }
.note-dependencies { --dot-x:72.4%;--dot-y:55%;--copy-left:61.8%;--copy-top:35%;--copy-width:240px; }
.note-priority { --dot-x:81.8%;--dot-y:74.4%;--copy-right:2.8%;--copy-top:59%;--copy-width:240px; }
.campaign-journey .annotation-copy { color: var(--cream); }
.campaign-journey .annotation-copy span { color: rgba(240,223,207,.7); }

/* Stały akt mapy z jednym modułem quizu */
.map-interface {
  position: absolute;
  z-index: 8;
  top: clamp(128px, 14.5vh, 146px);
  left: clamp(56px, 5vw, 84px);
  width: min(700px, 43vw);
  color: var(--cream);
}
.map-intro h2 {
  max-width: 18ch;
  margin: 9px 0 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 2.65vw, 45px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
}
.map-intro h2 em { color: var(--pink); font-style: normal; }
.map-intro p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: rgba(240,223,207,.68);
  font-size: clamp(10.5px,.72vw,12.5px);
  line-height: 1.42;
}
.quiz-shell {
  position: relative;
  min-height: 470px;
  margin-top: 14px;
}
.quiz-question {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .38s var(--ease), visibility 0s linear .38s;
}
.quiz-question.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .3s ease .05s, transform .42s var(--ease), visibility 0s;
}
.quiz-progress {
  display: grid;
  grid-template-columns: auto minmax(140px,280px);
  gap: 18px;
  align-items: center;
  color: var(--pink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.progress-track {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}
.progress-track i { height:1px; background:rgba(240,223,207,.24); }
.progress-track i.is-done { height:2px; background:var(--pink); }
.quiz-question h3 {
  max-width: 20ch;
  margin: 12px 0 0;
  font-size: clamp(28px,2.25vw,38px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .98;
}
.quiz-question > p {
  max-width: 64ch;
  margin: 8px 0 0;
  color: rgba(240,223,207,.7);
  font-size: clamp(11px,.75vw,13px);
  line-height: 1.42;
}
.answers {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}
.answers button {
  width: 100%;
  min-height: 46px;
  padding: 6px 13px 6px 0;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 20px;
  gap: 11px;
  align-items: center;
  border: 1px solid rgba(240,223,207,.28);
  border-radius: 0;
  background: rgba(240,223,207,.015);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  transition: border-color .24s ease, background .24s ease;
}
.answers button b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(240,223,207,.18);
  color: #d6926e;
  font-family: "Barlow Condensed","Arial Narrow",sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.answers button span { font-size: clamp(13px,.88vw,15px); font-weight:520; line-height:1.25; }
.answers button i {
  color: var(--pink);
  font-size: 18px;
  font-style: normal;
  transition: transform .3s var(--ease);
}
.answers button:hover,
.answers button[aria-pressed="true"] {
  border-color: var(--pink);
  background: rgba(240,223,207,.08);
}
.answers button:hover i,
.answers button[aria-pressed="true"] i { transform: translateX(4px); }
.answers button:focus-visible,
.quiz-back:focus-visible,
.result-controls button:focus-visible,
.result-cta:focus-visible,
.outline-cta:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
.quiz-back {
  min-height: 38px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(240,223,207,.72);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.quiz-back:hover { color:var(--pink); }
.quiz-privacy {
  margin: 0;
  color: rgba(240,223,207,.5);
  font-family: "Barlow Condensed","Arial Narrow",sans-serif;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Oryginalny jasny finał z dynamiczną rekomendacją */
.proof-bloom {
  position: absolute;
  z-index: 3;
  top: 75.5%;
  left: 71.8%;
  width: clamp(72px,6.2vw,108px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(255,250,226,.7) 0 2%,rgba(255,151,127,.28) 12%,rgba(238,77,120,.1) 30%,transparent 68%);
  mix-blend-mode: screen;
}
.result-content {
  position: absolute;
  z-index: 8;
  top: 13.5%;
  left: clamp(56px,5vw,84px);
  width: min(650px,47vw);
}
.result-content h1 {
  max-width: 13ch;
  margin: 18px 0 0;
  font-size: clamp(48px,3.75vw,62px);
  font-weight:600;
  letter-spacing:-.05em;
  line-height:.93;
}
.result-why {
  max-width:64ch;
  margin:16px 0 0;
  color:rgba(7,26,44,.76);
  font-size:clamp(12px,.82vw,14px);
  line-height:1.48;
}
.steps-label {
  margin:18px 0 0;
  color:var(--copper);
  font-family:"Barlow Condensed","Arial Narrow",sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.result-steps {
  margin:8px 0 0;
  padding:0;
  border-top:1px solid rgba(7,26,44,.24);
  list-style:none;
  counter-reset:step;
}
.result-steps li {
  min-height:43px;
  padding:7px 0;
  display:grid;
  grid-template-columns:46px 1fr;
  align-items:center;
  border-bottom:1px solid rgba(7,26,44,.18);
  color:rgba(7,26,44,.84);
  font-size:clamp(11.5px,.76vw,13.5px);
  line-height:1.38;
  counter-increment:step;
}
.result-steps li::before {
  content:"0" counter(step);
  color:var(--pink);
  font-family:"Barlow Condensed","Arial Narrow",sans-serif;
  font-size:18px;
}
.result-disclaimer { margin:11px 0 0;color:rgba(7,26,44,.58);font-size:10.5px; }
.result-actions { margin-top:15px;display:flex;flex-wrap:wrap;gap:10px; }
.result-cta {
  min-height:47px;
  padding:0 16px;
  display:inline-flex;
  gap:22px;
  align-items:center;
  justify-content:space-between;
  border:1px solid var(--pink);
  font-size:12px;
  font-weight:600;
  transition:background .25s ease,color .25s ease;
}
.result-primary { min-width:240px;background:var(--navy);color:var(--cream); }
.result-secondary { min-width:180px;background:transparent;color:var(--navy); }
.result-cta i { color:var(--pink);font-size:18px;font-style:normal; }
.result-cta:hover { background:var(--pink);color:white; }
.result-cta:hover i { color:white; }
.result-controls { margin-top:3px;display:flex;gap:22px; }
.result-controls button {
  min-height:40px;
  padding:0;
  border:0;
  background:transparent;
  color:rgba(7,26,44,.64);
  font-size:11px;
  font-weight:600;
  cursor:pointer;
}
.result-controls button:hover { color:var(--pink); }

@keyframes energy-glint { to { stroke-dashoffset:-1; } }
@keyframes annotation-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(238,77,120,.12),0 0 7px rgba(238,77,120,.5); }
  50% { box-shadow:0 0 0 5px rgba(238,77,120,.08),0 0 14px rgba(238,77,120,.72); }
}

@media (max-width: 1200px) and (min-width:821px) {
  .site-header { padding-inline:42px; }
  .site-header nav { margin-right:2vw;gap:26px; }
  .opening-copy,.map-interface,.result-content { left:42px; }
  .map-interface { width:48vw; }
  .answers button span { font-size:13px; }
}

@media (max-height: 780px) and (min-width:821px) {
  .diagnosis-story,.story-stage { min-height:620px; }
  .opening-copy { top:20%; }
  .map-interface { top:96px; }
  .map-intro h2 { font-size:32px; }
  .map-intro p { display:none; }
  .quiz-shell { min-height:430px;margin-top:9px; }
  .quiz-question h3 { margin-top:8px;font-size:31px; }
  .quiz-question > p { margin-top:5px; }
  .answers { margin-top:8px;gap:4px; }
  .answers button { min-height:40px; }
  .result-content { top:11%; }
  .result-content h1 { font-size:44px;margin-top:11px; }
  .result-why { margin-top:10px; }
  .steps-label { margin-top:11px; }
  .result-steps li { min-height:38px; }
}

@media (max-width:820px) {
  .diagnosis-story,.story-stage { min-height:100svh; }
  .diagnosis-frame { overflow-y:auto; }
  .site-header { height:82px;padding-inline:20px; }
  .wordmark { min-width:126px; }
  .wordmark img { width:126px; }
  .site-header nav { margin-right:0;gap:18px; }
  .site-header nav a { font-size:10px; }
  .site-header nav a:nth-child(2) { display:none; }
  .annotation-lines,.annotation-callout,.energy-shimmer { display:none; }

  .campaign-opening .campaign-art { object-position:73% center; }
  .campaign-journey .campaign-art { object-position:72% center; }
  .campaign-proof .campaign-art { object-position:80% center; }
  .campaign-opening::before,
  .campaign-journey::before,
  .campaign-proof::before {
    content:"";
    position:absolute;
    z-index:1;
    inset:0;
    pointer-events:none;
  }
  .campaign-opening::before,.campaign-proof::before {
    background:linear-gradient(90deg,rgba(238,223,209,.97) 0%,rgba(238,223,209,.9) 58%,rgba(238,223,209,.22) 100%);
  }
  .campaign-journey::before {
    background:linear-gradient(90deg,rgba(3,20,36,.97) 0%,rgba(3,20,36,.91) 60%,rgba(3,20,36,.2) 100%);
  }
  .opening-copy {
    top:auto;
    right:20px;
    bottom:48px;
    left:20px;
    width:auto;
  }
  .opening-copy h1 { font-size:clamp(48px,14vw,62px); }
  .opening-copy > p:not(.opening-privacy) br { display:none; }
  .outline-cta { width:100%; }

  .map-interface {
    position:relative;
    top:auto;
    left:auto;
    width:auto;
    min-height:100%;
    padding:103px 20px 28px;
  }
  .map-intro h2 { font-size:31px; }
  .map-intro p { font-size:10.5px; }
  .quiz-shell { min-height:545px;margin-top:12px; }
  .quiz-progress { grid-template-columns:auto minmax(90px,180px);gap:10px;font-size:10px; }
  .quiz-question h3 { margin-top:10px;font-size:clamp(29px,8.2vw,35px); }
  .quiz-question > p { font-size:10.5px; }
  .answers { margin-top:10px;gap:5px; }
  .answers button { min-height:48px;grid-template-columns:38px minmax(0,1fr) 18px;gap:8px;padding-right:8px; }
  .answers button span { font-size:13px; }
  .quiz-privacy { font-size:8.5px; }

  .result-content {
    position:relative;
    top:auto;
    left:auto;
    width:auto;
    min-height:100%;
    padding:103px 20px 34px;
  }
  .result-content h1 { font-size:clamp(39px,11vw,48px); }
  .result-why { font-size:11.5px; }
  .result-steps li { min-height:44px;grid-template-columns:38px 1fr;font-size:11px; }
  .result-actions { flex-direction:column; }
  .result-cta { width:100%;min-width:0; }
  .result-controls { flex-wrap:wrap;gap:12px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0s !important;
  }
  .diagnosis-frame,.quiz-question { transform:none !important; }
}
