/* ==========================================================================
   Ogonek — strona główna
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.25rem, 1rem + 4.5vw, 5.5rem));
  padding-bottom: clamp(7rem, 4rem + 9vw, 12rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  gap: clamp(4rem, 3rem + 4vw, 6rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2.5rem, 4vw, 5.5rem);
  }
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  color: var(--ink-2);
}
.hero__kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 77, 157, 0.18);
}

.hero__title {
  max-width: 15.5ch;
}
.hero__title .wrap {
  white-space: nowrap;
}

/* zdjęcia w kapsułkach wstawione w tekst nagłówka */
.pill-img {
  position: relative;
  display: inline-block;
  width: 1.46em;
  height: 0.72em;
  margin: 0 0.06em;
  border-radius: var(--r-pill);
  overflow: hidden;
  vertical-align: baseline;
  top: 0.02em;
  background: var(--bg-2);
  box-shadow: 0 0 0 0.045em var(--ink);
  transition: rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
}
.pill-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.pill-img:hover {
  rotate: -7deg;
  scale: 1.1;
}
.pill-img:hover img {
  transform: scale(1.18);
}
.pill-img--tail:hover {
  rotate: 7deg;
  animation: wag-pill 0.5s ease-in-out 2;
}
@keyframes wag-pill {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -9deg;
  }
  75% {
    rotate: 9deg;
  }
}
.motion [data-split] .pill-img {
  transform: scale(0) rotate(-24deg);
  transition: transform 1s var(--ease-spring), rotate 0.5s var(--ease-spring), scale 0.5s var(--ease-spring);
  transition-delay: calc(var(--wi, 0) * 42ms + 260ms), 0s, 0s;
}
.motion [data-split].is-in .pill-img {
  transform: none;
}

.hero__lead {
  margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
}
.hero__notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.hero__notes li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__notes .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--ink);
}
@media (min-width: 1181px) {
  .hero__status {
    display: none !important;
  }
}

/* pas bandaża za kartami */
.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
}
.hero__band {
  position: absolute;
  left: -14%;
  right: -60vw;
  top: 44%;
  height: clamp(58px, 6.2vw, 84px);
  border-radius: 3px;
  transform: rotate(-9deg);
  box-shadow: 0 16px 30px -18px rgba(20, 21, 26, 0.5);
}
.motion .hero__band {
  clip-path: inset(0 100% 0 0);
  animation: band-wrap 1.4s var(--ease-in-out) 0.5s forwards;
}
@keyframes band-wrap {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Karty pacjentów ---------- */
.patients {
  position: relative;
  z-index: 1;
  width: min(392px, 100%);
}
.patients__stack {
  position: relative;
  aspect-ratio: 392 / 572;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 26px;
  cursor: grab;
}
.patients__stack:active {
  cursor: grabbing;
}
.patients__stack:focus-visible {
  outline-offset: 12px;
}
.patient {
  position: absolute;
  inset: 0;
  padding-top: 32px;
  transform-origin: 50% 92%;
}
.patient:nth-child(2) {
  transform: translate(16px, -8px) rotate(4deg) scale(0.97);
}
.patient:nth-child(3) {
  transform: translate(-16px, -14px) rotate(-5deg) scale(0.94);
}
.patient:nth-child(4) {
  transform: translate(24px, -20px) rotate(7deg) scale(0.91);
}
.patient:nth-child(1) {
  z-index: 4;
}
.patient:nth-child(2) {
  z-index: 3;
}
.patient:nth-child(3) {
  z-index: 2;
}
.patient:nth-child(4) {
  z-index: 1;
}
.patient__tab {
  position: absolute;
  top: 1px;
  left: calc(20px + var(--tab-x, 0) * 80px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 33px;
  padding: 0 0.85rem 3px 0.7rem;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--sp);
  color: var(--ink);
}
.patient__tab .icon {
  width: 1.15rem;
  height: 1.15rem;
}
.patient__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(20, 21, 26, 0.45), 0 2px 0 rgba(20, 21, 26, 0.04);
  overflow: hidden;
}
.patient__sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--sp);
}
.patient__head {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 10px;
  color: var(--ink-3);
}
.patient__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
}
.patient__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.patient__id {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 12px 4px 10px;
  border-bottom: 1.5px dashed var(--line-2);
}
.patient__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: 2.05rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.patient__breed {
  color: var(--ink-2);
  font-size: 0.875rem;
  white-space: nowrap;
}
.patient__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding: 10px 4px 12px;
  font-size: 0.875rem;
  line-height: 1.3;
}
.patient__data dt {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.patient__data dd {
  font-weight: 600;
}
.patient__note {
  grid-column: 1 / -1;
}
.patient__note dd {
  font-weight: 500;
  font-style: italic;
}
.patient__ecg {
  position: relative;
  margin-top: auto;
  height: 50px;
  border-radius: 10px;
  background-color: #fff6fa;
  background-image: linear-gradient(rgba(255, 77, 157, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 77, 157, 0.15) 1px, transparent 1px);
  background-size: 8px 8px;
  background-position: -1px -1px;
  overflow: hidden;
}
.ecg {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 4px;
  width: calc(100% - 84px);
  height: calc(100% - 6px);
  overflow: visible;
}
.ecg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ecg__base {
  stroke: rgba(194, 24, 94, 0.2);
  stroke-width: 1.6;
}
.ecg__live {
  stroke: var(--pink-ink);
  stroke-width: 2.4;
  stroke-dasharray: 170 1000;
  stroke-dashoffset: 170;
  animation: ecg 3.5s linear infinite;
}
@keyframes ecg {
  from {
    stroke-dashoffset: 170;
  }
  to {
    stroke-dashoffset: -1000;
  }
}
.patient__bpm {
  position: absolute;
  right: 10px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transform: translateY(-50%);
  color: var(--pink-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.patient__bpm b {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
}
.patient__bpm .icon {
  width: 15px;
  height: 15px;
  animation: beat var(--beat, 0.65s) ease-out infinite;
}
@keyframes beat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.32);
  }
  30% {
    transform: scale(1);
  }
}
.patient__stamp {
  position: absolute;
  right: 22px;
  top: 47%;
  z-index: 3;
  font-size: 1.12rem;
  pointer-events: none;
}
.js .patient:not(.is-stamped) .patient__stamp {
  opacity: 0;
}
.patient.is-stamped .patient__stamp {
  animation: stamp 0.5s var(--ease-out) both;
}

.patient:not(.is-top) .ecg__live,
.patient:not(.is-top) .patient__bpm .icon {
  animation-play-state: paused;
}

.patients__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}
.patients__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.15rem;
}
.patients__btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.patients__fact {
  margin-top: 1rem;
  max-width: 44ch;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Ślady łap ---------- */
.paw-trail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(150px, 16vw, 250px);
  pointer-events: none;
  color: var(--ink);
  overflow: visible;
}
.paw-trail__path {
  stroke: none;
}
.paw-trail use {
  opacity: 0.5;
}

/* ---------- Gdzie boli? ---------- */
.where {
  padding-block: var(--section-y);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.where__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.where__head .lead {
  margin-top: 1.1rem;
  max-width: 48ch;
}
.where__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .where__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
  }
}
.where__stage {
  position: relative;
}
.anatomy {
  position: relative;
  aspect-ratio: 640 / 440;
}
.anatomy__art {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.anatomy.is-entering .anatomy__art {
  animation: pop-in 0.7s var(--ease-spring);
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}
.anatomy__tail--dog {
  transform-box: view-box;
  transform-origin: 184px 214px;
  animation: dog-wag 0.9s ease-in-out infinite alternate;
}
.anatomy__tail--cat {
  transform-box: view-box;
  transform-origin: 202px 236px;
  animation: cat-sway 3.2s ease-in-out infinite alternate;
}
.anatomy__ear {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.anatomy:hover .anatomy__ear {
  animation: ear-flap 0.6s ease-in-out;
}
@keyframes dog-wag {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(14deg);
  }
}
@keyframes cat-sway {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(7deg);
  }
}
@keyframes ear-flap {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(9deg);
  }
  70% {
    transform: rotate(-4deg);
  }
}

.spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.spot::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--ink);
  transition: transform 0.45s var(--ease-spring), background-color var(--d-2);
}
.spot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  animation: spot-ring 2.4s var(--ease-out) infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
}
@keyframes spot-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
.spot:hover::before {
  transform: scale(1.25);
}
.spot[aria-pressed="true"]::before {
  background: var(--pink);
  transform: scale(1.3);
}
.spot[aria-pressed="true"]::after {
  border-color: var(--pink);
}
.spot__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity var(--d-2) var(--ease-out), transform 0.4s var(--ease-spring);
  pointer-events: none;
}
.spot:hover .spot__label,
.spot:focus-visible .spot__label,
.spot[aria-pressed="true"] .spot__label {
  opacity: 1;
  transform: translate(-50%, 0);
}
.spot[aria-pressed="true"] .spot__label {
  background: var(--pink);
}

.diagnosis {
  position: relative;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  --focus: var(--blue);
}
.diagnosis::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 2rem;
  width: 96px;
  height: 26px;
  rotate: -4deg;
  background-color: var(--pink);
  background-image: var(--wrap-paws), var(--wrap-crepe);
  background-size: 56px 56px, auto;
  border-radius: 3px;
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.5);
}
.diagnosis__q {
  margin-bottom: 1.4rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 80%;
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.diagnosis__area {
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}
.diagnosis__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.diagnosis__text {
  color: var(--ink-2);
  font-size: 0.98rem;
}
.diagnosis__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--line-2);
}
.diagnosis__price .label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-3);
}
.diagnosis__price strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.55rem;
  line-height: 1;
}
.diagnosis .btn--light {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
}
.diagnosis .btn--light .btn__orb {
  background: var(--pink);
  color: var(--ink);
}
.diagnosis.is-swapping > * {
  animation: diag-in 0.55s var(--ease-out) both;
}
.diagnosis.is-swapping > :nth-child(2) {
  animation-delay: 0.04s;
}
.diagnosis.is-swapping > :nth-child(3) {
  animation-delay: 0.08s;
}
.diagnosis.is-swapping > :nth-child(4) {
  animation-delay: 0.12s;
}
.diagnosis.is-swapping > :nth-child(5) {
  animation-delay: 0.16s;
}
@keyframes diag-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.where__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: rgba(244, 244, 240, 0.66);
}
.where__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 1024px) {
  .where__list {
    display: none;
  }
}

/* ---------- Wizyta oczami pacjenta ---------- */
.journey {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.journey__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (min-width: 900px) {
  .journey__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 3rem;
  }
}
.journey__track {
  display: grid;
  gap: 4.5rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: calc(var(--container) + var(--gutter) * 2);
  list-style: none;
}
.step {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.step__photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  max-width: 460px;
}
.step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step__num {
  margin-bottom: 0.9rem;
  color: var(--ink-3);
}
.step h3 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  margin-bottom: 1rem;
}
.step__body > p:not(.step__num) {
  max-width: 44ch;
  color: var(--ink-2);
}
.thought {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.2rem 1rem;
  align-items: center;
  max-width: 440px;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem 1rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 24px 24px 24px 6px;
  background: var(--surface);
}
.thought img {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--sp);
}
.thought p {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: 1.2rem;
  line-height: 1.2;
}
.thought footer {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
@media (min-width: 640px) and (max-width: 1023px) {
  .step {
    grid-template-columns: 0.8fr 1fr;
    gap: 2.5rem;
  }
}

.journey__progress {
  display: none;
}

/* bez animacji (ograniczony ruch, brak skryptów) na dużych ekranach: siatka zamiast jednej wąskiej kolumny */
@media (min-width: 1024px) {
  .journey:not(.is-horizontal) .journey__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 5vw, 6rem);
    row-gap: clamp(3.5rem, 3rem + 2vw, 5rem);
  }
  .journey:not(.is-horizontal) .step {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 2vw, 2.5rem);
  }
  .journey:not(.is-horizontal) .step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(3rem, 5vw, 6rem) / 2);
  }
}

/* tryb poziomy — włączany przez JS na dużych ekranach */
@media (min-width: 1024px) {
  .journey.is-horizontal {
    padding-bottom: 0;
  }
  .journey.is-horizontal .journey__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    padding-top: calc(var(--header-h) * 0.6);
    overflow: hidden;
  }
  .journey.is-horizontal .journey__head {
    width: 100%;
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
  }
  .journey.is-horizontal .journey__track {
    display: flex;
    gap: clamp(3rem, 5vw, 6rem);
    width: max-content;
    max-width: none;
    margin: 0;
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    padding-right: 24vw;
    will-change: transform;
  }
  .journey.is-horizontal .step {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 3vw, 3.5rem);
    width: min(860px, 66vw);
  }
  .journey.is-horizontal .step__photo {
    height: min(52vh, 520px);
    width: auto;
    aspect-ratio: 4 / 4.8;
  }
  .journey.is-horizontal .journey__progress {
    display: block;
    position: relative;
    width: calc(100% - var(--gutter) * 2);
    max-width: var(--container);
    height: 46px;
    margin: clamp(1.5rem, 4vh, 3rem) auto 0;
  }
}
.journey__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.journey__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.walker {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 58px;
  will-change: transform;
}
.walker svg {
  width: 100%;
  height: auto;
  overflow: visible;
  transition: transform 0.3s var(--ease-out);
}
.walker.is-back svg {
  transform: scaleX(-1);
}
.walker__leg {
  transform-box: fill-box;
  transform-origin: 50% 10%;
}
.walker.is-walking .walker__leg--f1,
.walker.is-walking .walker__leg--b2 {
  animation: leg 0.32s ease-in-out infinite alternate;
}
.walker.is-walking .walker__leg--f2,
.walker.is-walking .walker__leg--b1 {
  animation: leg 0.32s ease-in-out infinite alternate-reverse;
}
.walker__tail {
  transform-box: fill-box;
  transform-origin: 100% 100%;
}
.walker.is-walking .walker__tail {
  animation: dog-wag 0.25s ease-in-out infinite alternate;
}
@keyframes leg {
  from {
    transform: rotate(-24deg);
  }
  to {
    transform: rotate(24deg);
  }
}

/* ---------- Paragon + opinie ---------- */
.proof__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .proof__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 3.5rem;
    align-items: start;
  }
  .proof__intro {
    grid-column: 1 / 6;
  }
  .receipt-wrap {
    grid-column: 1 / 6;
    grid-row: 2;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .reviews {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    padding-top: 1rem;
  }
}
.proof__intro .lead {
  margin-top: 1rem;
}

.receipt-wrap {
  position: relative;
  max-width: 410px;
  padding-top: 12px;
}
.receipt-slot {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -14px;
  right: -14px;
  height: 24px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: inset 0 -7px 10px rgba(0, 0, 0, 0.6);
}
.receipt-clip {
  overflow: hidden;
  padding: 0 10px 18px;
  margin: 0 -10px;
}
.receipt {
  position: relative;
  margin-top: 6px;
  padding: 1.6rem 1.4rem 1.6rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 18px 30px -22px rgba(20, 21, 26, 0.5);
}
.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  background: linear-gradient(135deg, #fff 33%, transparent 34%) 0 0 / 14px 10px repeat-x, linear-gradient(225deg, #fff 33%, transparent 34%) 0 0 / 14px 10px repeat-x;
}
.motion .receipt {
  transform: translateY(-104%);
  transition: transform 2.4s steps(22, end);
}
.motion .receipt-wrap.is-in .receipt {
  transform: none;
}
.receipt__shop {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.receipt__shop strong {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.receipt__title {
  margin: 1rem 0 0.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.receipt__meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1.5px dashed var(--ink);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.receipt__rows {
  display: grid;
  gap: 0.4rem;
}
.receipt__rows div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.receipt__rows dt {
  flex: none;
}
.receipt__rows div::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 2px dotted rgba(20, 21, 26, 0.35);
  transform: translateY(-4px);
}
.receipt__rows dd {
  order: 2;
  font-weight: 700;
}
.receipt__rows small {
  font-weight: 500;
  color: var(--ink-3);
}
.receipt__sum,
.receipt__rating {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.receipt__sum {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1.5px dashed var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.receipt__sum span:last-child {
  text-transform: none;
  background: var(--lime);
  padding: 0 0.2em;
}
.receipt__rating {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.receipt__rating span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--ink);
}
.receipt__rating .icon {
  width: 1em;
  height: 1em;
}
.receipt__barcode {
  height: 44px;
  margin: 1.1rem 0 0.6rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
}
.receipt__thanks {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.reviews {
  display: grid;
  gap: 1.75rem;
}
.review {
  position: relative;
  padding: 1.9rem 1.75rem 1.6rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.6s var(--ease-spring), translate 0.6s var(--ease-spring), box-shadow var(--d-3);
}
.review:hover {
  rotate: 0deg;
  translate: 0 -4px;
  box-shadow: var(--sh-2);
}
.review::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 24px;
  translate: -50% 0;
  rotate: -3deg;
  border-radius: 2px;
  background-color: var(--tape, var(--pink));
  background-image: var(--wrap-paws), var(--wrap-crepe);
  background-size: 56px 56px, auto;
  box-shadow: 0 4px 10px -6px rgba(20, 21, 26, 0.5);
  opacity: 0.95;
}
.review:nth-child(2) {
  --tape: var(--lime);
}
.review:nth-child(3) {
  --tape: var(--sky);
}
@media (min-width: 1024px) {
  .review:nth-child(2) {
    margin-left: 3.5rem;
  }
  .review:nth-child(3) {
    margin-left: 1.25rem;
  }
}
.review__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.review__stars .icon {
  width: 1.05rem;
  height: 1.05rem;
}
.review blockquote p {
  font-size: 1.06rem;
  line-height: 1.55;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.3rem;
  font-size: 0.95rem;
}
.review figcaption img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.review figcaption small {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.reviews__more {
  justify-self: start;
  margin-top: 0.5rem;
}

/* ---------- Czy to trujące? ---------- */
.sniff {
  background: var(--lime);
  --focus: var(--ink);
}
.sniff .lead {
  color: var(--ink-2);
}
.sniff__inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .sniff__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 6rem);
  }
  .sniff__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.sniff__head .lead {
  margin-top: 1rem;
}
.sniff__box {
  padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 34px 60px -34px rgba(20, 21, 26, 0.55);
}
.sniff__search .input {
  min-height: 66px;
  padding-left: 3.75rem;
  font-size: 1.125rem;
  border-color: var(--ink);
}
.sniff__nose {
  left: 1.05rem;
  width: 30px;
  height: 30px;
  color: var(--ink);
}
.sniff__search.is-sniffing .sniff__nose {
  animation: sniff 0.22s ease-in-out 4;
}
@keyframes sniff {
  50% {
    transform: translateY(-50%) scale(1.14, 0.92);
  }
}
.sniff__help {
  margin: 1.1rem 0 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.sniff__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sniff__result:not(:empty) {
  margin-top: 1.5rem;
}
.sniff__more {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* ---------- Skierowanie ---------- */
.referral {
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.slip {
  position: relative;
  display: grid;
  max-width: 1080px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .slip {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.slip__main {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.6vw, 3.25rem);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.slip__stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
  padding: 2rem clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: var(--ink);
  color: #f4f4f0;
  --focus: var(--lime);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease-spring);
}
.slip__stub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  border-top: 2.5px dashed rgba(244, 244, 240, 0.4);
}
@media (min-width: 900px) {
  .slip__main {
    border-radius: var(--r-lg) 0 0 var(--r-lg);
  }
  .slip__stub {
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    transform-origin: 0 50%;
  }
  .slip__stub::before {
    top: 18px;
    bottom: 18px;
    left: 0;
    right: auto;
    border-top: 0;
    border-left: 2.5px dashed rgba(244, 244, 240, 0.4);
  }
  .slip:hover .slip__stub,
  .slip:focus-within .slip__stub {
    transform: rotate(2.2deg) translateX(8px);
  }
  .slip::before,
  .slip::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: calc(300px - 15px);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
  }
  .slip::before {
    top: -15px;
  }
  .slip::after {
    bottom: -15px;
  }
}
.slip__no {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
  border-bottom: 2px solid var(--ink);
  color: var(--ink-3);
}
.slip h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 1.35rem + 1.8vw, 2.8rem);
}
.slip__field {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.slip__field > label:not(.slip__opt),
.slip__field > legend {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: var(--fs-label);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.slip__field > legend {
  float: left;
  width: 100%;
}
.slip__field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 2px dotted var(--ink-3);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.6rem;
  color: var(--ink);
  outline: none;
}
.slip__field input[type="text"]::placeholder {
  color: #a3a6ad;
  font-weight: 500;
}
.slip__field input[type="text"]:focus-visible {
  border-bottom: 2px solid var(--pink-ink);
}
.slip__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}
.slip__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.slip__opt input {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.slip__opt input::before {
  content: "";
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, transparent 42%, var(--pink-ink) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--pink-ink) 42% 58%, transparent 58%);
  transform: scale(0) rotate(-30deg);
  transition: transform 0.35s var(--ease-spring);
}
.slip__opt input:checked::before {
  transform: scale(1) rotate(0);
}
.slip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.slip__meta dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 75%;
  font-size: var(--fs-label);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.slip__meta dd {
  font-weight: 600;
}
.slip__sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.9rem;
  margin-top: 1.25rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}
.slip__sign svg {
  width: 150px;
  height: 38px;
  color: var(--blue);
}
.slip__stub-label {
  color: rgba(244, 244, 240, 0.6);
}
.slip__or {
  font-size: 0.9375rem;
  color: rgba(244, 244, 240, 0.72);
  line-height: 1.4;
}
.slip__or a {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.slip__or a:hover {
  color: var(--lime);
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  .receipt {
    transform: none !important;
  }
}

@media (max-width: 479px) {
  .hero__cta .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .hero__cta .btn--ghost {
    justify-content: center;
  }
}

/* wizyta oczami pacjenta — na mniejszych ekranach przewijany pas z kartami */
@media (max-width: 1023px) {
  .journey__track {
    display: flex;
    gap: 1rem;
    padding: 0.5rem var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .journey__track::-webkit-scrollbar {
    display: none;
  }
  .step {
    flex: 0 0 min(84vw, 720px);
    align-content: start;
    scroll-snap-align: center;
  }
  .step__photo {
    max-width: none;
    aspect-ratio: 4 / 3.3;
    border-radius: 180px 180px var(--r-lg) var(--r-lg);
  }
  .journey__progress {
    display: block;
    position: relative;
    height: 46px;
    margin: 0.75rem var(--gutter) 0;
  }
}
@media (max-width: 639px) {
  .step h3 {
    font-size: 1.9rem;
  }
  .thought p {
    font-size: 1.08rem;
  }
}
