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

.hero-section {
  max-width: 100%;
  padding-top: 26px;
  overflow: hidden;
}

.hero-section__content {
  max-width: 907px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 28px;
}

.hero-section__heading {
  margin: 0;
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 0;
}

.hero-section__heading-row {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 14px;
}

.hero-section__heading-text {
  font-family: var(--font-secondary);
  color: var(--color-night);
  font-size: 70px;
  font-weight: 400;
  line-height: 84px;
}

/* Hero images (desktop) */
.hero-section__hero-image-wrapper {
  width: 215px;
  height: 118px;
  position: relative;
}

.hero-section__hero-image-1 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.hero-section__hero-image-2 {
  width: 168px;
  height: 87px;
  object-fit: contain;
  display: block;
  transform: rotate(-2deg);
  flex-shrink: 0;
}

.hero-section__logo {
  position: absolute;
  top: -26px;
  right: -68px;
  width: 182px;
  height: 94px;
}

/* Mobile hero visual — ukryty na desktopie */
.hero-section__mobile-hero-visual         { display: none; }
.hero-section__mobile-hero-image-primary  { display: none; }
.hero-section__mobile-hero-logo           { display: none; }
.hero-section__mobile-hero-image-secondary { display: none; }

/* Opis */
.hero-section__description {
  color: var(--color-night);
  width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 19px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -0.4px;
}

.hero-section__description strong {
  font-family: var(--font-secondary);
  font-weight: 500;
}

.hero-section__description-highlight {
  font-family: var(--font-secondary);
  color: var(--color-primary);
}

/* Ukryty na ≤lg (1365px) */
@media only screen and (max-width: 1365px) {
  .hero-section__description--stats { display: none; }
}

/* Social proof pill */
.hero-section__social-proof {
  border: 1px solid var(--color-platinum);
  border-radius: 29px;
  height: 30px;
  padding: 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  gap: 7px;
}

.hero-section__avatars {
  width: fit-content;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  gap: 0;
  isolation: isolate;
}

.hero-section__avatar {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-white);
  margin-right: -8px;
}

.hero-section__avatar:last-child { margin-right: 0; }

.hero-section__social-proof-text {
  font-size: 12px;
  font-weight: 700;
  line-height: 16.8px;
  margin: 0;
  min-width: 0;
}

/* Marquee pasek z logo sklepów */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-section__shop-logos {
  padding: 56px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hero-section__shop-logos-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 66px;
  width: max-content;
  animation: marquee 100s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section__shop-logos-track { animation: none; }
}

.hero-section__shop-logo {
  height: fit-content;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

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

@media only screen and (max-width: 991px) {
  .hero-section { position: relative; padding-top: 16px; }

  .hero-section__content { gap: 16px; }

  .hero-section__heading { max-width: 250px; }

  .hero-section__heading-row:first-child { justify-content: flex-start; }
  .hero-section__heading-row:last-child  { justify-content: flex-end; }
  .hero-section__heading-row { gap: 8px; }

  .hero-section__heading-text {
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .hero-section__hero-image-wrapper,
  .hero-section__hero-image-1,
  .hero-section__hero-image-2,
  .hero-section__logo { display: none; }

  .hero-section__mobile-hero-visual {
    display: block;
    position: relative;
    width: 270px;
    height: 160px;
    margin: 2px auto 0;
  }

  .hero-section__mobile-hero-image-primary {
    display: block;
    position: absolute;
    left: 0; bottom: 36px;
    width: 194px; height: 100px;
    object-fit: contain;
  }

  .hero-section__mobile-hero-logo {
    display: block;
    position: absolute;
    right: 0; top: 0;
    width: 163px; height: 84px;
    object-fit: contain;
    z-index: 2;
  }

  .hero-section__mobile-hero-image-secondary {
    display: block;
    position: absolute;
    right: 37px; bottom: 0;
    width: 124px; height: 64px;
    object-fit: contain;
    z-index: 3;
  }

  .hero-section__description {
    font-size: 16px;
    max-width: 316px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section__social-proof {
    height: fit-content;
    padding: 5px 13px;
    margin: 0 22px;
  }

  .hero-section__avatar { margin-right: -12px; }

  .hero-section__shop-logos { padding: 32px 0; }
}

/* Stats Strip — HeroStatsStrip — wymaga: redesign-base.css */

.stats-strip {
  width: 100%;
  max-width: min(100%, 2100px);
  margin: 0 auto;
  padding: 0 16px 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 8px;
}

.stats-strip__group {
  width: 100%;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  gap: 12px;
}

.stats-strip__group--right { justify-content: flex-end; }
.stats-strip__group--left  { justify-content: flex-start; }

.stats-strip__card {
  flex-shrink: 0;
  width: 181px;
  height: 223px;
  background-color: var(--color-seasalt);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
}

.stats-strip__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stats-strip__card--tilt-left  { transform: rotate(-1.627deg); }
.stats-strip__card--tilt-right { transform: rotate(3.38deg); }

.stats-strip__card--total-collected {
  background-color: var(--color-tertiary);
  width: 262px;
}
.stats-strip__card--total-collected .stats-strip__card-label,
.stats-strip__card--total-collected .stats-strip__card-value { color: var(--color-white); }

.stats-strip__card--organizations {
  background-color: var(--color-alert-green);
  width: 181px;
}
.stats-strip__card--organizations .stats-strip__card-label,
.stats-strip__card--organizations .stats-strip__card-value { color: var(--color-white); }

.stats-strip__card--shops {
  background-color: var(--color-quaternary);
  width: 210px;
}

.stats-strip__card-value {
  font-family: var(--font-secondary);
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.stats-strip__card-label {
  font-family: var(--font-secondary);
  font-size: 19px;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

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

@media only screen and (max-width: 991px) {
  .stats-strip {
    padding-top: 16px;
    padding-inline: 16px;
    min-width: 327px;
  }
  .stats-strip__group {
    overflow: hidden;
    padding-bottom: 8px;
  }
}

/* Kompaktowy mobile (≤640px): pokaż tylko 2 karty na grupę */
@media only screen and (max-width: 640px) {
  .stats-strip { gap: 8px; }
  .stats-strip__group { gap: 8px; padding-bottom: 0; }

  .stats-strip__group--right .stats-strip__card:has(img) { height: 161px; width: 136px; }
  .stats-strip__group--right .stats-strip__card { display: none; }
  .stats-strip__group--right .stats-strip__card:nth-child(4),
  .stats-strip__group--right .stats-strip__card:nth-child(5) {
    display: flex; width: auto; min-width: 0; transform: none; height: 161px;
  }
  .stats-strip__group--right .stats-strip__card:nth-child(4) { flex: 1.45 1 0; }
  .stats-strip__group--right .stats-strip__card:nth-child(5) { flex: 1 1 0; }

  .stats-strip__group--left .stats-strip__card:has(img) { height: 167px; width: 136px; }
  .stats-strip__group--left .stats-strip__card { display: none; }
  .stats-strip__group--left .stats-strip__card:nth-child(1),
  .stats-strip__group--left .stats-strip__card:nth-child(2) {
    display: flex; width: auto; min-width: 0; transform: none; height: 167px;
  }
  .stats-strip__group--left .stats-strip__card:nth-child(1) { flex: 1 1 0; }
  .stats-strip__group--left .stats-strip__card:nth-child(2) { flex: 1.35 1 0; }

  .stats-strip__card--total-collected { width: 189px; height: 161px; }
  .stats-strip__card--organizations   { width: 130px; height: 161px; }
  .stats-strip__card--shops           { width: 184px; height: 167px; }

  .stats-strip__card-value,
  .stats-strip__card-label { font-size: 14px; padding: 0 12px; }
}

/* Desktop: grupy obok siebie */
@media only screen and (min-width: 992px) {
  .stats-strip {
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 12px;
  }
  .stats-strip__group { width: 50%; }
}

/* 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; }
}

/* Organizations Section — wymaga: redesign-base.css, redesign-components.css (.beneficiary-tile, .supporter-badge, .carousel-btn) */

.beneficiaries-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 40px;
}

.beneficiaries-section__heading {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 400;
  line-height: 33.6px;
  color: var(--color-night);
  margin: 0 154px;
  display: block;
  text-align: center;
}

.beneficiaries-section__heading-highlight {
  display: block;
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 500;
  line-height: 33.6px;
  color: var(--color-primary);
}

.beneficiaries-section__carousel-controls {
  margin: 0 120px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-flow: row nowrap;
  gap: 8px;
}

.beneficiaries-section__carousel-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: column nowrap;
  gap: 24px;
}

.beneficiaries-section__carousel {
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row nowrap;
  gap: 24px;
}
.beneficiaries-section__carousel::-webkit-scrollbar { display: none; }

.beneficiaries-section__org-logo {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.beneficiaries-section .beneficiary-tile__logo-wrapper {
  padding-top: 12px;
}

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

@media only screen and (max-width: 991px) {
  .beneficiaries-section__heading { margin: 0 24px; }
  .beneficiaries-section__carousel-controls { justify-content: center; margin: 0; }
  .beneficiaries-section__carousel { scroll-snap-type: x mandatory; }
  .beneficiaries-section__carousel .beneficiary-tile { scroll-snap-align: center; }
}

@media only screen and (max-width: 359px) {
  .beneficiaries-section__ticker-wrapper { display: none; }
}

@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 600s linear infinite;
}

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

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

/* 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%; }
}

/* Apps Section — wymaga: redesign-base.css, redesign-components.css (.btn, .store-btn) */

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

.apps-section__heading {
  font-family: var(--font-secondary);
  font-size: 31px;
  font-weight: 400;
  line-height: 37.2px;
  letter-spacing: -1px;
  color: var(--color-night);
}

.apps-section__cards {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row wrap;
  gap: 24px;
}

.apps-section__card {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--color-white);
  border: 8px solid var(--color-seasalt);
  max-width: 588px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
}

/* Karta tylko dla iOS — ukryta domyślnie, odkrywana przez JS */
.apps-section__card--ios-only { display: none; }

.apps-section__screenshot {
  width: 100%;
  height: 297px;
  background-color: var(--color-seasalt);
  border-radius: 0 0 20px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.apps-section__screenshot-image-first {
  width: 522px;
  height: auto;
  object-fit: contain;
  position: absolute;
  top: 36px;
  left: 21px;
}

.apps-section__screenshot-image-second {
  width: auto;
  height: 226px;
  object-fit: contain;
  position: absolute;
  top: 61px;
  left: 395px;
}

.apps-section__card-content {
  padding: 24px 40px 40px;
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.apps-section__card-title {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 400;
  line-height: 33.6px;
  margin: 0;
}

.apps-section__card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}

.apps-section__browsers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apps-section__browsers-label {
  font-size: 14px;
  color: var(--color-cadet-gray);
}

.apps-section__browser-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apps-section__store-buttons {
  display: flex;
  align-items: center;
  flex-flow: column nowrap;
  gap: 8px;
}

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

@media only screen and (max-width: 991px) {
  .apps-section { padding: 60px 16px 0; }
  .apps-section__cards {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    gap: 16px;
  }
  .apps-section__card { width: 100%; }
  .apps-section__card-content { padding: 24px; }
}

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

.about-section {
  margin: 64px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
}

.about-section__container {
  background-color: var(--color-tertiary);
  border-radius: 20px;
  padding: 64px 40px;
  max-width: 1200px;
  width: 100%;
  color: var(--color-white);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.about-section__heading {
  font-family: var(--font-secondary);
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  margin: 0;
}

.about-section__subheading {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
  max-width: 749px;
  margin: 0;
}

.about-section__content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 40px;
}

.about-section__image {
  flex-shrink: 1;
  width: 258px;
  height: 177px;
  border-radius: 20px;
  object-fit: cover;
}

.about-section__text-col {
  flex: 1;
  max-width: 660px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 32px;
}

.about-section__description {
  max-width: 589px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
  margin: 0;
}

.about-section__description strong {
  font-weight: 600;
}

.about-section__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: row wrap;
  gap: 10px;
}

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

@media only screen and (max-width: 991px) {
  .about-section { margin: 40px 16px; }
  .about-section__container {
    padding: 32px 24px;
    max-width: 588px;
  }
  .about-section__heading {
    font-size: 31px;
    line-height: 37.2px;
  }
  .about-section__subheading {
    font-size: 24px;
    line-height: 28.8px;
    max-width: 100%;
  }
  .about-section__text-col { max-width: 100%; }
  .about-section__description { max-width: 100%; }
}

@media only screen and (max-width: 360px) {
  .about-section__image {
    width: 100%;
    height: auto;
  }
}

.testimonials-section {
  margin-bottom: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 24px;
}

.testimonials-section__heading {
  font-family: var(--font-secondary);
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--color-night);
  max-width: 560px;
  text-align: center;
  margin: 0;
}

.testimonials-section__container {
  overflow: hidden;
  width: 100%;
}

.testimonials-section__desktop {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  gap: 24px;
}

.testimonials-section__row {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.testimonials-section__row::-webkit-scrollbar {
  display: none;
}

.testimonials-section__track {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 24px;
  padding: 0 24px;
  width: max-content;
}

.testimonials-section__tile {
  flex-shrink: 0;
}

.testimonials-section__mobile {
  display: none;
}

@media only screen and (max-width: 991px) {
  .testimonials-section__desktop { display: none; }

  .testimonials-section__mobile {
    display: block;
    width: 100%;
  }

  .testimonials-section__track--mobile {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
  }
  .testimonials-section__track--mobile::-webkit-scrollbar { display: none; }

  .testimonials-section__tile {
    width: min(588px, calc(100vw - 48px));
    min-width: min(588px, calc(100vw - 48px));
    height: auto;
    min-height: 284px;
    overflow: visible;
    scroll-snap-align: center;
  }
}

/* Blog Section — wymaga: redesign-base.css, redesign-components.css (.blog-tile, .btn, .tag-chip) */

.blog-section {
  background-color: var(--color-white);
  padding-bottom: 160px;
  margin: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column nowrap;
  gap: 40px;
}

/* Nawigacja mobile (ukryta na desktopie) */
.blog-section__nav {
  display: none;
}

.blog-section__nav-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-night);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row nowrap;
  padding: 0;
}

.blog-section__nav-btn:hover:not(:disabled) {
  background-color: var(--color-seasalt);
}

.blog-section__nav-btn img {
  width: 16px;
  height: 16px;
}

.blog-section__nav-btn--prev img { transform: rotate(90deg); }
.blog-section__nav-btn--next img { transform: rotate(-90deg); }

.blog-section__header {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
  flex-wrap: wrap;
}

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

.blog-section__posts {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: row nowrap;
  gap: 24px;
}

.blog-section__tile {
  flex: 1 1 0;
  min-width: 0;
}

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

@media only screen and (max-width: 991px) {
  .blog-section { gap: 24px; padding-bottom: 80px; }
  .blog-section__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row nowrap;
    gap: 8px;
    width: 100%;
    padding: 0 12px;
  }
  .blog-section__header { padding: 0 12px; }
  .blog-section__posts {
    box-sizing: border-box;
    padding: 0 16px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .blog-section__posts::-webkit-scrollbar { display: none; }
  .blog-section__tile {
    flex: 0 0 auto;
    width: calc(100vw - 52px);
    max-width: 384px;
    scroll-snap-align: start;
  }
}

/* ── Blog tile (BlogTile ze src) — inline, bo produkcyjny redesign-components.css bywa niekompletny ── */

.blog-tile {
  max-width: 384px;
  max-height: 590px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.blog-tile__image-wrapper {
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
}

.blog-tile__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.blog-tile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.blog-tile__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-tile__title {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-night);
  margin: 0;
}

.blog-tile__title a {
  font-size: 28px;
  color: inherit;
  text-decoration: none;
  line-height: 1.2em;
}

.blog-tile__description {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media only screen and (max-width: 991px) {
  .blog-tile {
    width: calc(100vw - 52px);
    max-width: 384px;
  }
}

/* Kreska pod blogiem — renderowana tylko gdy blog_divider (travelhub), homepage bez niej */
.blog-section__divider {
  max-width: 1200px;
  width: 100%;
  height: 1px;
  background-color: var(--color-platinum);
  margin-top: 24px;
}
