/* Propozycja adaptacji drzewa i okna ProcessVisual z audytu Dealyo.
   One coordinate system owns the connectors and the HTML card positions:
   330 × 264; source bottom (165,116), branch row y=148,
   destination tops (48,194), (165,194), (282,194).
   Horizontal percentages below are those exact SVG coordinates / 330. */
.spm-pv-02 .spm-pv-stage { padding: 0 12px; }
.spm-pv-tree.spm-sitemap {
  position: relative;
  width: 100%;
  max-width: 344px;
  height: 264px;
  text-align: center;
  --spm-sitemap-duration: 8s;
}
.spm-sitemap-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 264px;
  overflow: hidden;
  fill: none;
  pointer-events: none;
}
.spm-sitemap-rail {
  stroke: #c8cbc7;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.spm-sitemap-signal {
  stroke: #fe4a23;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 1000;
  stroke-dashoffset: 4;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  --spm-sitemap-animation: spm-sitemap-travel;
  --spm-sitemap-easing: linear;
}
.spm-sitemap-source,
.spm-sitemap-page {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid #d3d3d3;
  background: #fff;
  box-shadow: 0 9px 20px #25272308, 0 2px 5px #25272303;
}
.spm-sitemap-source {
  left: 25.75757576%;
  top: 12px;
  width: 48.48484848%;
  height: 104px;
  border-radius: 7px;
  overflow: hidden;
  --spm-sitemap-animation: spm-sitemap-source;
}
.spm-sitemap-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  box-sizing: border-box;
  padding: 0 10px;
  border-bottom: 1px solid #e7e7e7;
  background: #fcfcfc;
}
.spm-sitemap-toolbar > i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9cbc8;
}
.spm-sitemap-toolbar > b {
  width: 24px;
  height: 3px;
  margin-left: auto;
  border-radius: 2px;
  background: #dedfdd;
}
.spm-sitemap-source-body {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  height: 76px;
  padding: 0 12px;
}
.spm-sitemap-source-body > strong {
  color: #fe4a23;
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.spm-sitemap-content {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
}
.spm-sitemap-content > i {
  width: 80%;
  height: 3px;
  border-radius: 2px;
  background: #e0e1de;
}
.spm-sitemap-content > i + i { width: 56%; }
.spm-sitemap-page {
  top: 194px;
  width: 29.09090909%;
  height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 3px;
  border-radius: 5px;
  color: #6c7069;
}
.spm-sitemap-page > svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.spm-sitemap-page > strong {
  color: #444;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
}
.spm-sitemap-services { left: 0; --spm-sitemap-animation: spm-sitemap-services; }
.spm-sitemap-questions { left: 35.45454545%; --spm-sitemap-animation: spm-sitemap-questions; }
.spm-sitemap-contact { left: 70.90909091%; --spm-sitemap-animation: spm-sitemap-contact; }

/* The controller alone enables motion and supplies its inherited pause state.
   Cards and labels are complete and visible without JS and in reduced motion. */
body[data-spm-ready="true"] .spm-sitemap-motion {
  animation-name: var(--spm-sitemap-animation);
  animation-duration: var(--spm-sitemap-duration);
  animation-timing-function: var(--spm-sitemap-easing, ease);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-play-state: var(--spm-play, paused);
}
/* One continuous route walks the tree: source → services → questions → contact.
   The 713-unit route reaches the cards at 28.05%, 47.4% and 76% of the cycle.
   Returning along the shared rail keeps the signal continuous, without jumps. */
@keyframes spm-sitemap-travel {
  0%, 9% { stroke-dashoffset: 4; opacity: 0; }
  10% { stroke-dashoffset: 4; opacity: 1; }
  76% { stroke-dashoffset: -96; opacity: 1; }
  79% { stroke-dashoffset: -100; opacity: 0; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes spm-sitemap-source {
  0%, 3%, 96%, 100% { border-color: #d3d3d3; background: #fff; }
  8%, 88% { border-color: #fe4a2380; background: #fff8f5; }
}
@keyframes spm-sitemap-services {
  0%, 28.05%, 96%, 100% { border-color: #d3d3d3; background: #fff; color: #6c7069; }
  32%, 88% { border-color: #fe4a2380; background: #fff2ed; color: #fe4a23; }
}
@keyframes spm-sitemap-questions {
  0%, 47.4%, 96%, 100% { border-color: #d3d3d3; background: #fff; color: #6c7069; }
  51%, 88% { border-color: #fe4a2380; background: #fff2ed; color: #fe4a23; }
}
@keyframes spm-sitemap-contact {
  0%, 76%, 96%, 100% { border-color: #d3d3d3; background: #fff; color: #6c7069; }
  80%, 88% { border-color: #fe4a2380; background: #fff2ed; color: #fe4a23; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-spm-ready="true"] .spm-sitemap-motion { animation: none; }
}
@media print {
  body[data-spm-ready="true"] .spm-sitemap-motion { animation: none; }
}
