/* How It Works Section — wymaga: redesign-base.css, redesign-components.css (.btn) */

.how-it-works {
  background-color: var(--color-white);
  padding: 80px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  gap: 32px;
}

.how-it-works__heading {
  font-family: var(--font-secondary);
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--color-night);
  text-align: center;
  margin: 0;
}

.how-it-works__steps {
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 0;
}

.how-it-works__step {
  max-width: 286px;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  gap: 26px;
}

.how-it-works__step-number {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 400;
  line-height: 33.6px;
}

.how-it-works__step-text {
  font-family: var(--font-secondary);
  font-size: 17px;
  color: var(--color-night);
  text-align: center;
}

.how-it-works__step-text p,
.how-it-works__step-text strong { font-family: var(--font-secondary); }
.how-it-works__step-text strong { font-weight: 500; }

.how-it-works__arrow {
  width: 91px;
  height: 89px;
  align-self: center;
}

.how-it-works__arrow--second {
  transform: scaleY(-1) rotate(-7.834deg);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media only screen and (max-width: 1099px) {
  .how-it-works { gap: 24px; }
  .how-it-works__steps { flex-direction: column; gap: 32px; }
  .how-it-works__arrow { display: none; }
  .how-it-works__step  { gap: 16px; }
  .how-it-works__heading { font-size: 31px; max-width: 286px; }
  .how-it-works__step-number { font-size: 24px; line-height: 28.8px; }
}

/* Shops Section — wymaga: redesign-base.css, redesign-components.css (.shop-tile, .btn, .carousel-btn) */

.shops-section {
  background-color: var(--color-white);
  padding: 0 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 24px;
}

.shops-section__heading {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 400;
  line-height: 33.6px;
  color: var(--color-night);
  margin: 0;
  max-width: 720px;
  text-align: center;
}

.shops-section__nav {
  flex-shrink: 0;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-flow: row nowrap;
  gap: 8px;
}

.shops-section__grid {
  display: grid;
  width: 100%;
  max-width: 1200px;
  gap: 24px;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shops-section__grid::-webkit-scrollbar { display: none; }

/* Desktop 3-col snap: co 9 kafelków (3 kolumny × 3 wiersze) */
.shops-section__grid .shop-tile:nth-child(9n+1) { scroll-snap-align: start; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media only screen and (max-width: 640px) {
  .shops-section { padding: 0 16px; }
}

@media only screen and (max-width: 991px) {
  .shops-section__heading { font-size: 24px; line-height: 28.8px; }
  .shops-section__nav { justify-content: center; }
}

@media only screen and (max-width: 1099px) {
  .shops-section__grid { grid-auto-columns: calc((100% - 24px) / 2); }
  /* Tablet 2-col snap */
  .shops-section__grid .shop-tile:nth-child(9n+1) { scroll-snap-align: none; }
  .shops-section__grid .shop-tile:nth-child(6n+1) { scroll-snap-align: start; }
}

@media only screen and (max-width: 768px) {
  .shops-section__grid { grid-auto-columns: 100%; }
  /* Mobile 1-col snap */
  .shops-section__grid .shop-tile:nth-child(6n+1) { scroll-snap-align: none; }
  .shops-section__grid .shop-tile:nth-child(3n+1) { scroll-snap-align: start; }
  .shops-section__grid .shop-tile { max-width: 100%; }
}

@keyframes donations-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.donations-bar {
  overflow: hidden;
  max-width: 100%;
  padding: 0 0 64px;
}

.donations-bar__track {
  width: fit-content;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 12px;
  animation: donations-ticker 180s linear infinite;
}

.donations-bar:hover .donations-bar__track {
  animation-play-state: paused;
}

@media only screen and (max-width: 359px) {
  .donations-bar { display: none; }
}

.org-faq {
  padding: 0 0 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 32px;
}

.org-faq__heading {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
}

.accordion {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 0;
}

.accordion__item {
  width: 100%;
  border-bottom: 1px solid #dfe1e6;
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.accordion__header:hover {
  opacity: 0.8;
}

.accordion__title {
  font-family: 'Parkinsans', Helvetica Neue, Arial;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.accordion__icon {
  flex-shrink: 0;
}

.accordion__icon--minus {
  display: none;
}

.accordion__header[aria-expanded="true"] .accordion__icon--plus {
  display: none;
}

.accordion__header[aria-expanded="true"] .accordion__icon--minus {
  display: block;
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.accordion__header[aria-expanded="true"] + .accordion__body {
  grid-template-rows: 1fr;
}

.accordion__body-inner {
  overflow: hidden;
}

.accordion__body-inner p {
  font-family: 'DMSans', Helvetica Neue, Arial;
  color: #22252a;
  max-width: 995px;
  padding-bottom: 24px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 19.6px;
}

@media only screen and (max-width: 991px) {
  .org-faq {
    padding: 0 16px 48px;
  }

  .org-faq__heading {
    font-size: 24px;
    line-height: 28.8px;
  }

  .accordion__header {
    padding: 16px 0;
  }

  .accordion__title {
    font-size: 14px;
    line-height: 19.6px;
  }

  .accordion__body-inner p {
    padding-bottom: 16px;
  }
}

.landing-hero {
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
}

.landing-hero__banner {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.landing-hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.landing-hero__banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-white) 100%);
  pointer-events: none;
}

.landing-hero__body {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 48px;
}

.landing-hero__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.landing-hero__title {
  font-family: var(--font-secondary);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--color-night);
  margin: 0;
}

.landing-hero__description {
  align-self: stretch;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: var(--color-night);
}

.landing-hero__description p {
  margin: 0;
}

.landing-hero__stats {
  align-self: stretch;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-night);
  margin: 0;
}

.zhr-landing-page .landing-hero__stats {
  display: none;
}

.landing-hero__stats-amount {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.br-mobile {
  display: none;
}

.landing-hero__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 16px;
  margin-top: 16px;
}

.landing-page-redesign .landing-steps {
  padding-top: 24px;
}

.landing-hero__logo {
  flex: 0 0 auto;
}

.landing-hero__logo img {
  width: 240px;
  height: auto;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .landing-hero__banner {
    height: 200px;
  }

  .landing-hero__banner::after {
    height: 80px;
  }

  .landing-hero__body {
    padding: 32px 16px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .landing-hero__content {
    align-items: flex-start;
    text-align: left;
  }

  .landing-hero__logo {
    display: none;
  }

  .br-mobile {
    display: inline;
  }

  .sprytni-landing-page .landing-hero__logo {
    display: block;
    order: -1;
    width: 100%;
  }

  .sprytni-landing-page .landing-hero__logo img {
    width: 100%;
  }

  .sprytni-landing-page .landing-hero__body {
    padding-top: 0;
  }

  .landing-hero__title {
    font-size: 32px;
  }

  .landing-hero__stats {
    align-self: stretch;
    text-align: center;
    font-size: 24px;
  }

  .landing-hero__actions {
    align-self: stretch;
    flex-flow: column nowrap;
    align-items: center;
  }

  .landing-hero__actions .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
  }
}

.landing-shops {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-shops .shops-section__grid {
  grid-template-rows: repeat(2, auto);
}

.sprytni-landing-page .landing-shops .shop-tile:first-child {
  background-color: var(--color-night);
  border-color: var(--color-night);
}

.sprytni-landing-page .landing-shops .shop-tile:first-child::before {
  content: "Partner programu";
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16.8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.7;
}

.sprytni-landing-page .landing-shops .shop-tile:first-child .shop-tile__name {
  color: var(--color-white);
}

.sprytni-landing-page .landing-shops .shop-tile:first-child .shop-tile__support-label {
  color: var(--color-white);
}

.sprytni-landing-page .landing-shops .shop-tile:first-child .shop-tile__logo {
  width: 100%;
}

.landing-shops .shops-section__grid .shop-tile {
  scroll-snap-align: none;
}

.landing-shops .shops-section__grid .shop-tile:nth-child(6n+1) {
  scroll-snap-align: start;
}

@media only screen and (max-width: 991px) {
  .landing-shops {
    padding: 0 16px;
  }
}

@media only screen and (max-width: 1099px) {
  .landing-shops .shops-section__grid .shop-tile:nth-child(6n+1) {
    scroll-snap-align: none;
  }
  .landing-shops .shops-section__grid .shop-tile:nth-child(4n+1) {
    scroll-snap-align: start;
  }
}

@media only screen and (max-width: 768px) {
  .landing-shops .shops-section__grid {
    grid-template-rows: repeat(3, auto);
  }
  .landing-shops .shops-section__grid .shop-tile:nth-child(4n+1),
  .landing-shops .shops-section__grid .shop-tile:nth-child(2n+1) {
    scroll-snap-align: none;
  }
  .landing-shops .shops-section__grid .shop-tile:nth-child(3n+1) {
    scroll-snap-align: start;
  }
}

.landing-cta {
  padding: 80px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column nowrap;
  gap: 32px;
}

.landing-cta__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-cta__title {
  font-family: var(--font-secondary);
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--color-night);
  margin: 0;
}

.landing-cta .donations-bar {
  align-self: stretch;
  width: 100%;
  padding: 0;
}

.landing-cta__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 16px;
}

.landing-page-redesign .org-faq {
  padding: 0 24px 64px;
}

@media only screen and (max-width: 991px) {
  .landing-cta {
    padding: 48px 0;
  }

  .landing-cta__inner {
    padding: 0 16px;
  }

  .landing-cta__title {
    font-size: 28px;
    line-height: 33.6px;
    text-align: center;
  }

  .landing-cta__actions {
    flex-flow: column nowrap;
    align-items: center;
  }

  .landing-cta__actions .btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
  }

  .landing-page-redesign .org-faq {
    padding: 0 16px 48px;
  }
}
