/* ============================================================
   SHOPELENS – Style strony głównej
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
/* Nav transparent przy górze, biały po scrollu – tylko na stronie głównej */
body.is-home .navbar {
  background: transparent;
  border-bottom: none;
  transition: background .25s ease, box-shadow .25s ease;
}
body.is-home .navbar.scrolled {
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.hero {
  background: url('../images/bg.jpg') top left / auto no-repeat;
  padding: 0;
  overflow: visible;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: center;
}

.hero-content {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: .3px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: #0D3EFF;
  color: #fff;
  padding: 4px 16px 8px;
  border-radius: 0;
  display: block;
}

.hero-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-actions .btn-primary {
  background: #0D3EFF;
  border-color: #0D3EFF;
}
.hero-actions .btn-primary:hover {
  background: #0A32D9;
  border-color: #0A32D9;
}

.hero-partners {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-partners-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.partners-swiper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.partners-swiper {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.partners-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
}

.partners-swiper .swiper-slide img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.partner-swiper-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
}
.partner-swiper-btn:hover { color: var(--color-primary); }

/* Floating point badges */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-left: -35px;
}

.hero-visual img.hero-img {
  width: 885px;
  max-width: none;
  height: auto;
  display: block;
}

.point-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.point-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
}

.point-badge-1 { top: 20%; right: -24px; }
.point-badge-2 { bottom: 30%; left: -24px; }

/* ── Sekcja "Jak to działa" ───────────────────────────────── */
.steps-section { background: var(--color-bg); }

.steps-wrap {
  max-width: 900px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.step-row-reverse { flex-direction: row-reverse; }

/* Krok 4 – większy margines na desktopie */
.step-row-step4 { margin-top: 40px; }
.step-row-step4 .step-block-left { padding: 56px 64px 56px 120px; }

/* ── Blok z obrazkiem tła ── */
.step-block {
  flex: 1;
  position: relative;
  padding: 30px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.step-block-left {
  padding: 36px 44px 36px 100px;
}

.step-block-light {
  flex: 2;
  min-width: 700px;
}

.step-block-light .step-num { color: var(--color-text); }


/* ── Paski ////////////// ── */
.step-slashes {
  position: absolute;
  top: -7px;
  left: 73%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: rgba(255,255,255,.75);
  letter-spacing: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.step-slashes-dark { color: rgba(0,0,0,.12); }

/* ── Numer ── */
.step-num {
  font-size: 44px;
  font-weight: var(--font-weight-black);
  color: #fff;
  line-height: 1;
  MARGIN-LEFT:30PX;
}

.step-num-dark { color: var(--color-text); }

/* ── Tekst ── */
.step-text {
  width: 100%;
  text-align: center;
  margin-top:-30px;
}

.step-text h3 {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: 4px;
  line-height:20px;
}

.step-text p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.85);
}

.step-text-dark h3 { color: var(--color-text); }
.step-text-dark p  { color: var(--color-text-muted); }

/* ── Ikona PNG (prawy górny róg) ── */
.step-icon {
  position: absolute;
  top: 18px;
  right: 24px;

  object-fit: contain;
}

/* ── Odznaka zysku ── */
.step-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  margin-top: 12px;
  align-self: flex-start;
  margin-top:-20px;
}

/* ── Zdjęcie obok bloku ── */
.step-img {
  width: 300px;
  flex-shrink: 0;
  position: relative;
  align-self: flex-end;
}

.step-img img {
  width: 100%;
  height: auto;
  display: block;
}

.step-img-with-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.step-img-with-badge img { order: 2; }
.step-badge-float { order: 1; }

/* ── Partnerzy ────────────────────────────────────────────── */
.partners-section {
  background: linear-gradient(to bottom, #02047A, #0407E0);
  padding: 80px 0;
}

.partners-section .section-title { color: #fff; }
.partners-section .section-subtitle { color: rgba(255,255,255,.6); }

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.partners-grid > .partner-card-dark {
  flex: 0 1 calc((100% - 16px * 4) / 5);
  min-width: 160px;
}

.partner-card-dark {
  background: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.partner-card-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.partner-card-dark .partner-logo-wrap {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-md);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.partner-card-dark .partner-logo-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card-dark .pname {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.partner-card-dark .pcashback {
  font-size: 11px;
  color: var(--color-success);
}

.partner-card-dark .plink {
  font-size: 10px;
  color: var(--color-secondary);
  margin-top: 6px;
  display: block;
  text-decoration: underline;
}

/* ── CTA inline (wewnątrz sekcji partnerów) ───────────────── */
.cta-inline {
  text-align: center;
  color: #fff;
  padding: 56px 0 0;
}

.cta-inline h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
}

.cta-inline p {
  color: rgba(255,255,255,.8);
  font-size: var(--font-size-lg);
  margin-bottom: 28px;
}

/* ── Zdjęcia siatka ───────────────────────────────────────── */
.photos-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  height: 338px;
  overflow: hidden;
}

.photos-strip .photo-item {
  overflow: hidden;
}

/* desktop: tylko pierwsze 5 widocznych */
.photos-strip .photo-item-6 { display: none; }

.photos-strip .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.photos-strip .photo-item:hover img { transform: scale(1.05); }

/* ── Benefity ─────────────────────────────────────────────── */
.benefits-section { background: var(--color-bg); }

.benefit-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.benefit-card-highlight { background: #eaedff; }
.benefit-card-plain     { background: transparent; }

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.benefit-card h3 {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.5;
}

/* ── FAQ – Bootstrap accordion nadpisanie stylu ───────────── */
#faqAccordion .accordion-item {
  background: transparent;
  border-radius: 0 !important;
}

#faqAccordion .accordion-button {
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  padding: 20px 0;
  box-shadow: none;
  font-family: var(--font-family);
}

#faqAccordion .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
}

#faqAccordion .accordion-button::after {
  background-image: none;
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  transform: none;
  width: auto;
  height: auto;
}

#faqAccordion .accordion-button:not(.collapsed)::after {
  content: '−';
  color: var(--color-primary);
  transform: none;
}

#faqAccordion .accordion-body {
  padding: 0 0 20px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .partners-grid > .partner-card-dark { flex: 0 1 calc((100% - 16px * 3) / 4); }
  .photos-strip  { grid-template-columns: repeat(3, 1fr); height: auto; }
}

@media (max-width: 768px) {
  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-content { padding: 64px 0 40px; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-partners { flex-direction: column; align-items: center; gap: 10px; }
  .hero-partners-label { flex-shrink: 0; }
  .partners-swiper-wrap { width: 100%; }

  /* Steps – zdjęcie na górze, pełna szerokość, solidny kolor */
  .step-row,
  .step-row-reverse { flex-direction: column; }

  .step-img {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    order: -1;
    align-self: center;
  }

  .step-block {
    background: var(--color-primary) !important;
    min-height: auto;
    min-width: 0;
    width: 100%;
    padding: 28px 24px !important;
  }
  .step-block-left {
    background: var(--color-secondary) !important;
  }
  .step-block-light {
    background: var(--color-primary-light) !important;
    min-width: 0;
  }
  .step-block-light .step-num      { color: var(--color-primary); }
  .step-block-light .step-text h3  { color: var(--color-text); }
  .step-block-light .step-text p   { color: var(--color-text-muted); }
  .step-block-light .step-slashes  { color: rgba(26,62,212,.12); }
  .step-block-accent {
    background: #7AB8FF !important;
    padding: 28px 24px !important;
  }

  .step-num { margin-left: 0; line-height: inherit; }
  .step-badge { margin-top: 0; }
  .step-text { text-align: left; margin-top: -16px; }
  .step-icon { display: none; }
  .step-slashes { display: none; }

  /* Partnerzy, zdjęcia */
  .partners-grid > .partner-card-dark { flex: 0 1 calc((100% - 16px * 2) / 3); }
  .photos-strip  { grid-template-columns: repeat(2, 1fr); height: auto; }
  .photos-strip .photo-item-6 { display: block; }
  .photos-strip .photo-item img { aspect-ratio: 1 / 1; }
}

@media (max-width: 480px) {
  .partners-grid > .partner-card-dark { flex: 0 1 calc((100% - 16px) / 2); min-width: 0; }
}
