/* Figma: parent auto-layout ma jednolity itemSpacing 120px między wszystkimi sekcjami. */
.zenref-audience {
  padding: 0 24px;
  margin-top: 120px;
  color: #FFF;
  background: transparent;
}

.zenref-audience__inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.zenref-audience__heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  text-align: center;
}

.zenref-audience__title {
  margin: 0;
  color: #FFF;
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 43px;
}

.zenref-audience__title .green {
  color: #22E243;
}

.zenref-audience__subhead {
  margin: 0;
  margin-bottom: 0 !important;
  max-width: 800px;
  color: #B3AA9D;
  text-align: center;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.zenref-audience__subhead strong {
  color: #FFF;
  font-weight: 700;
}

.zenref-audience__bullets {
  width: 100%;
  padding-bottom: 56px;
  border-bottom: 1px solid #2F312F;
}

.zenref-audience__row {
  display: flex;
  gap: 64px;
  width: 100%;
  flex-wrap: wrap;
}

.zenref-audience__item {
  display: flex;
  flex: 1 1 0;
  min-width: 220px;
  align-items: flex-start;
  gap: 16px;
}

/* Figma: kafelek równo 40×40, jednolity border rgba(111,104,94,.4) (stroke inside) —
   border 1px wliczamy w padding (7px + 1px = 8px wizualnego insetu jak w Figmie). */
.zenref-audience__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 32px;
  border: 1px solid rgba(111, 104, 94, 0.4);
  background: #222;
}

.zenref-audience__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.zenref-audience__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.zenref-audience__item-title {
  margin: 0;
  color: #FFF;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}

.zenref-audience__item-desc {
  margin: 0;
  margin-bottom: 0 !important;
  color: #B3AA9D;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

/* Kontrolki karuzeli — tylko mobile. */
.zenref-audience__controls {
  display: none;
}

/* Tablet — 2 kolumny 2x2. */
@media (max-width: 1024px) {
  .zenref-audience__row {
    gap: 40px 32px;
  }

  .zenref-audience__item {
    flex: 1 1 45%;
    min-width: 45%;
  }
}

/* Mobile — poziomy karuzel (1 kafel na ekran) + kontrolki (chevron + kropki). */
@media (max-width: 768px) {
  /* Figma mobile (lp.content.mobile): jednolity itemSpacing 40px między sekcjami. */
  .zenref-audience {
    margin-top: 40px;
  }

  .zenref-audience__bullets {
    margin-bottom: 40px;
  }

  .zenref-audience__inner {
    gap: 40px;
  }

  /* Figma mobile: tytuł→subhead 40px (nie 32 jak desktop). */
  .zenref-audience__heading-group {
    gap: 40px;
  }

  .zenref-audience__title {
    font-size: 32px;
  }

  /* Figma mobile: Bold 16/28, #888. */
  .zenref-audience__subhead {
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    color: #888;
  }

  /* Track — scroll-snap, jeden kafel widoczny, swipe. */
  .zenref-audience__row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .zenref-audience__row::-webkit-scrollbar {
    display: none;
  }

  /* .text rozpuszczamy (display:contents) → ikona, tytuł i opis stają się flex-itemami kafla.
     Ikona+tytuł zostają w jednym wierszu (wyśrodkowane), opis z flex-basis:100% spada niżej. */
  .zenref-audience__text {
    display: contents;
  }

  .zenref-audience__item {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    padding-top: 8px;
    text-align: center;
  }

  .zenref-audience__item-title {
    white-space: nowrap;
  }

  .zenref-audience__item-desc {
    flex: 0 0 100%;
    text-align: center;
  }

  /* Kontrolki: ‹  • • • •  › — Figma: 40px od karuzeli (gap 16 + padding-top 24). */
  .zenref-audience__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
  }

  .zenref-audience__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #22E243;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .zenref-audience__nav[disabled] {
    color: #4A4A4A;
    cursor: default;
  }

  .zenref-audience__nav-icon {
    display: block;
    width: 24px;
    height: 24px;
  }

  .zenref-audience__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(111, 104, 94, 0.4);
    border-radius: 64px;
  }

  .zenref-audience__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #6F685E;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .zenref-audience__dot.is-active {
    background: #22E243;
  }
}
