/* --- How It Works Section ("Jak to działa") --- */
.how-it-works-section {
  position: relative;
  width: 100%;
  height: calc(var(--stage-height) * var(--scene-scale));
  overflow: hidden;
  background: #ffffff;
  margin-top: -1px;
}

.how-mobile-new {
  display: none;
}

/* Invisible anchor placed in normal flow so browser scroll-to works correctly.
   Positioned at ~47% of the section height — where the map card aisually begins. */
.scroll-anchor-map {
  position: absolute;
  top: 47%;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.how-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--stage-width);
  height: var(--stage-height);
  transform: translate(-50%, 0) scale(var(--scene-scale));
  transform-origin: top center;
  background: #ffffff;
}

/* Card base styles */
.how-card-steps,
.how-card-pickup {
  position: absolute;
  left: 36px;
  width: 1845px;
  transition: 
    opacity 800ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 800ms cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
}

.how-card-steps {
  top: 22px;
  height: 464px;
  transform: translateY(30px);
}

.how-card-pickup {
  top: 509px;
  height: 532px;
  overflow: hidden;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.49);
  transform: translateY(35px);
}

/* Stagger entrance reveal classes triggered by IntersectionObserver */
.how-it-works-section.is-visible .how-card-steps {
  opacity: 1;
  transform: translateY(0);
}

.how-it-works-section.is-visible .how-card-pickup {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

/* --- Card 1: Steps Styling --- */

.how-card-steps .how-title {
  position: absolute;
  left: 58px;
  top: 59px;
  margin: 0;
  color: #000000;
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.48px;
  line-height: normal;
}

.how-card-steps .how-title span {
  color: var(--lime);
}

.how-steps-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.how-step {
  position: absolute;
  width: 330px;
  text-align: center;
  pointer-events: auto;
}

.how-step:nth-child(1) {
  left: 117px;
  top: 151px;
}
.how-step:nth-child(3) {
  left: 569px;
  top: 151px;
}
.how-step:nth-child(5) {
  left: 1018px;
  top: 151px;
}
.how-step:nth-child(7) {
  left: 1450px;
  top: 151px;
}

/* Step Circle Wrappers */
.how-step-circle-wrap {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 0 auto;
}

.how-step-circle {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 
    transform 250ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

.how-step-circle-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  display: block;
}

.how-step-icon-apply {
  width: 70px;
  height: 79px;
}

.how-step-icon-file {
  width: 76px;
  height: 90px;
}

.how-step-icon-key,
.how-step-icon-bike,
.how-step-icon-smile {
  width: 82px;
  height: 82px;
}

.how-step-badge {
  position: absolute;
  left: -9px;
  top: -1px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background-color: var(--lime);
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgb(var(--lime-rgb) / 0.3);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}



.how-step-label {
  margin: 23px 0 0 0;
  font-size: 25px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.25px;
  line-height: normal;
}

.how-step-desc {
  margin: 12px 0 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.4px;
  line-height: 1.35;
}

.how-arrow {
  position: absolute;
  top: 218px;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
}

.how-arrow>* {
  width: 100%;
  height: 100%;
}

.how-arrow:nth-child(2) {
  left: 490px;
}

.how-arrow:nth-child(4) {
  left: 943px;
}

.how-arrow:nth-child(6) {
  left: 1380px;
}

/* Step Hover Animations */
@media (hover: hover) and (pointer: fine) {
  .how-step:hover .how-step-circle {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgb(var(--lime-rgb) / 0.12);
  }

  .how-step:hover .how-step-badge {
    transform: scale(1.1) rotate(5deg);
  }
}

/* --- Card 2: Pickup details Styling --- */
.pickup-details {
  position: absolute;
  z-index: 3;
  left: 42px;
  top: 42px;
  width: 510px;
  height: 448px;
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.pickup-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.8px;
  line-height: 1.08;
}

.pickup-title span {
  color: var(--lime);
}

.pickup-icons-column {
  position: absolute;
  left: 0;
  top: 97px;
  width: 73px;
  height: 210px;
  pointer-events: none;
}

.pickup-text-group {
  position: absolute;
  left: 102px;
  display: flex;
  flex-direction: column;
}

.pickup-group-address {
  top: 101px;
}

.pickup-group-hours {
  top: 219px;
}

.pickup-group-parking {
  top: 377px;
  display: none;
}

.pickup-item-title {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.17px;
  line-height: 1.2;
}

.pickup-item-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.16px;
  line-height: 1.36;
}

.pickup-line-divider {
  position: absolute;
  left: 0;
  width: 502px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.pickup-line-1 {
  top: 195px;
}

.pickup-line-2 {
  top: 349px;
}

/* Contact — third pickup item (matches the mobile pickup card) */
.pickup-group-contact {
  top: 363px;
}

.pickup-contact-icon {
  position: absolute;
  left: 17px;
  top: 382px;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.pickup-contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pickup-contact-link:hover {
    color: var(--lime);
  }
}

.pickup-overlay-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.pickup-overlay-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pickup-overlay-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.pickup-route-button {
  min-height: 54px;
  margin-top: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  background: var(--lime);
  color: #111111;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.pickup-route-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transition: transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pickup-route-button:hover {
    background: var(--lime-hover);
  }

  .pickup-route-button:hover svg {
    transform: translateX(3px);
  }
}

.pickup-route-button:active {
  transform: scale(0.985);
}

.pickup-route-button:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

/* Map Wrap & Iframe */
.pickup-map-wrap {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 1809px;
  height: 500px;
  border-radius: 32px;
  overflow: hidden;
  background: #eeeeee;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pickup-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 32px;
  filter: grayscale(1) contrast(1.05) opacity(0.85);
  transition: 
    filter 350ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 350ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pickup-map-wrap:hover .pickup-map-iframe {
    filter: grayscale(0) contrast(1) opacity(1);
  }
}
