/* =========================================================
   Banner slider (sekcja .index1) – 1:1 wg edurela-banner1.html
   Style zawężone pod .index1, żeby nie kolidować z main.min.css.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

/* =========================================================
   Sticky header (globalnie)
   Pasek promocyjny (.header__bar) scrolluje się w górę,
   a nagłówek (.header) przykleja się do góry ekranu.
   ========================================================= */

/* Motyw ma html,body{height:100%} → body ma wysokość tylko 1 ekranu,
   przez co sticky „ucieka" po przescrollowaniu jednego ekranu.
   Pozwalamy body rosnąć z treścią (min-height:100% trzyma pełny ekran na krótkich stronach). */
html { height: 100%; }
body { height: auto; min-height: 100%; }

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 12px rgba(16, 23, 23, .06);
}

/* =========================================================
   Menu mobilne (<=1024px) – smuklejsze wiersze i mniejsze
   wcięcia kolejnych poziomów. Nadpisuje main.min.css.
   ========================================================= */
@media only screen and (max-width: 1024px) {
  .header__menu ul.menu > li a {
    padding: 11px 20px;
    line-height: 1.35;
  }

  /* Poziom 2 */
  .header__menu ul.menu > li > ul > li > a {
    padding: 9px 20px 9px 34px;
  }

  /* Poziom 3 – lista traci domyślne wcięcie przeglądarki,
     odstęp robi wyłącznie padding linku */
  .header__menu ul.menu > li > ul ul {
    padding-left: 0;
  }

  .header__menu ul.menu > li > ul > li > ul > li > a {
    padding: 9px 20px 9px 48px;
  }
}

.index1 {
  --edurela-pink: #de0d57;
  --edurela-pink-dark: #b80746;
  --edurela-pink-soft: #fff0f5;
  --edurela-ink: #080808;
  --edurela-muted: #5f5b60;
  --edurela-paper: #ffffff;
  --edurela-shadow: 0 24px 70px rgba(24, 12, 18, .14);
}

.index1 *,
.index1 *::before,
.index1 *::after {
  box-sizing: border-box;
}
section.index1 .scn__paddings {
    padding-top: 20px;
}
/* ---------- Rama banera (statyczna) ---------- */
.index1 .banner {
  position: relative;
  isolation: isolate;
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 700px;
  overflow: hidden;
  border: 1px solid rgba(26, 12, 18, .06);
  border-radius: 28px;
  background: var(--edurela-paper);
  box-shadow: var(--edurela-shadow);
}

/* Slider – swiper (fade). Nie zmieniamy mechaniki układania slajdów. */
.index1 .index1__slider {
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.index1 .swiper-wrapper {
  min-height: 700px;
}

/* Każdy slajd = płótno banera (copy po lewej + zdjęcie po prawej) */
.index1 .index1__slide {
  position: relative;
  isolation: isolate; /* własny kontekst stackingu – z-index dzieci działa spójnie */
  display: block;
  min-height: 700px;
  background: var(--edurela-paper);
  overflow: hidden;
}

/* Zdjęcie slajdu */
.index1 .banner__visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: 56%;
  height: 100%;
  margin: 0;
}

.index1 .banner__visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.index1 .banner__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
}

.index1 .banner__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.16) 31%, transparent 55%),
    linear-gradient(0deg, rgba(8,8,8,.09), transparent 40%);
  pointer-events: none;
}

/* Biały gradient pod tekstem (czytelność) */
.index1 .index1__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #fff 38%,
      rgba(255,255,255,.99) 44%,
      rgba(255,255,255,.90) 49%,
      rgba(255,255,255,.48) 56%,
      rgba(255,255,255,.05) 66%,
      transparent 73%
    );
}

/* ---------- Dekoracje (w rogach slajdu, pod treścią: z-index 3 < 4) ---------- */
.index1 .decoration {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.index1 .decoration--curve {
  top: -184px;
  right: -112px;
  width: 390px;
  height: 390px;
  border: 2px solid var(--edurela-pink);
  border-radius: 50%;
  opacity: .8;
}

.index1 .decoration--dots {
  top: 40px;
  right: 31px;
  width: 94px;
  height: 94px;
  opacity: .38;
  background-image: radial-gradient(var(--edurela-pink) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 88%);
          mask-image: linear-gradient(135deg, #000, transparent 88%);
}

/* Pierścień w lewym dolnym rogu – per slajd, żeby siedział pod treścią (z-index 3 < 4) */
.index1 .index1__slide::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -145px;
  bottom: -305px;
  width: 510px;
  height: 510px;
  border: 2px solid rgba(222, 13, 87, .75);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Treść ---------- */
.index1 .banner__content {
  position: relative;
  z-index: 4;
  min-height: 700px;
  width: 56%;
  padding: 78px 48px 48px 66px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.index1 .hero-copy {
  width: min(675px, 100%);
}

.index1 .eyebrow {
  margin: 0 0 14px;
  color: var(--edurela-pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.index1 .hero-title {
  margin: 0;
  max-width: 660px;
  color: var(--edurela-ink);
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: clamp(60px, 5.1vw, 82px);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.index1 .hero-title__line {
  display: block;
}

.index1 .hero-title__accent-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.index1 .hero-title__accent {
  display: inline-block;
  color: var(--edurela-pink);
  white-space: nowrap;
}

.index1 .lead {
  width: min(610px, 100%);
  margin: 32px 0 0;
  color: #181518;
  font-size: clamp(21px, 1.78vw, 27px);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -.018em;
}

.index1 .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 36px;
}

.index1 .button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 23px;
  border-radius: 15px;
  color: #fff;
  background: var(--edurela-pink);
  box-shadow: 0 9px 22px rgba(222, 13, 87, .25);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.index1 .button svg {
  width: 18px;
  height: 18px;
  transition: transform .18s ease;
}

.index1 .button:hover {
  transform: translateY(-2px);
  background: var(--edurela-pink-dark);
  box-shadow: 0 13px 28px rgba(222, 13, 87, .3);
}

.index1 .button:hover svg {
  transform: translateX(3px);
}

.index1 .button:focus-visible,
.index1 .text-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(222, 13, 87, .2);
}

.index1 .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--edurela-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--edurela-pink);
}

.index1 .text-link:hover {
  color: var(--edurela-pink-dark);
}

.index1 .trust-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--edurela-muted);
  font-size: 13px;
  font-weight: 600;
}

.index1 .trust-note svg {
  width: 17px;
  height: 17px;
  color: var(--edurela-pink);
}

/* ---------- Wiersz odbiorców (statyczny, repeater pcpl_audience) ---------- */
.index1 .audience {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 5;
  width: min(620px, calc(100% - 64px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(222, 13, 87, .72);
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(21, 9, 15, .16);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: opacity .4s ease, visibility .4s ease;
}

/* Wiersz odbiorców widoczny tylko przy pierwszym slajdzie */
.index1 .audience.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.index1 .audience__item {
  min-width: 0;
  min-height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 14px;
  border-radius: 15px;
  color: var(--edurela-ink);
  text-align: center;
  background: transparent;
  animation: index1AudiencePulse 8s infinite ease-in-out;
  will-change: transform, background-color, box-shadow;
}

.index1 .audience__item:nth-child(1) { animation-delay: 0s; }
.index1 .audience__item:nth-child(2) { animation-delay: 2s; }
.index1 .audience__item:nth-child(3) { animation-delay: 4s; }
.index1 .audience__item:nth-child(4) { animation-delay: 6s; }

.index1 .audience__icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 8px;
}

.index1 .audience__label {
  max-width: 128px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
  text-transform: uppercase;
}

@keyframes index1AudiencePulse {
  0%, 18%, 100% {
    transform: scale(1);
    background: transparent;
    box-shadow: none;
  }
  7%, 12% {
    transform: scale(1.10);
    background: var(--edurela-pink-soft);
    box-shadow: 0 10px 24px rgba(222, 13, 87, .14);
  }
}

/* ---------- Nawigacja slidera ---------- */
.index1 .index1__arrows {
  position: absolute;
  left: 66px;
  bottom: 32px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.index1 .index1__prev,
.index1 .index1__next {
  cursor: pointer;
  transition: transform .18s ease;
}

.index1 .index1__prev:hover,
.index1 .index1__next:hover {
  transform: translateY(-2px);
}

.index1 .index1__dots {
  position: absolute;
  left: 66px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 6px;
}

.index1 .index1__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(222, 13, 87, .3);
  opacity: 1;
  transition: width .2s ease, background-color .2s ease;
}

.index1 .index1__dots .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 4px;
  background: var(--edurela-pink);
}

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1180px) {
  .index1 .banner,
  .index1 .banner__content,
  .index1 .index1__slide,
  .index1 .swiper-wrapper {
    min-height: 730px;
  }

  .index1 .banner__visual {
    width: 59%;
  }

  .index1 .banner__content {
    width: 59%;
    padding-left: 46px;
    padding-top: 64px;
  }

  .index1 .hero-title {
    font-size: clamp(55px, 6vw, 72px);
  }

  .index1 .lead {
    font-size: 22px;
  }

  .index1 .audience {
    right: 22px;
    bottom: 22px;
    width: min(590px, calc(100% - 44px));
  }
}

@media (max-width: 900px) {
  .index1 .banner {
    min-height: auto;
    border-radius: 22px;
  }

  .index1 .index1__slide,
  .index1 .swiper-wrapper {
    min-height: auto;
  }

  .index1 .index1__slide::before {
    display: none;
  }

  .index1 .index1__slide::after {
    left: -290px;
    bottom: 170px;
  }

  .index1 .banner__visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(300px, 48vw, 430px);
    z-index: auto;
    overflow: hidden;
  }

  .index1 .banner__visual::after {
    background: linear-gradient(0deg, rgba(8,8,8,.16), transparent 45%);
  }

  .index1 .banner__content {
    min-height: auto;
    width: 100%;
    padding: 34px 34px 30px;
  }

  .index1 .hero-title {
    max-width: 720px;
    font-size: clamp(52px, 9vw, 78px);
  }

  .index1 .lead {
    max-width: 700px;
    font-size: clamp(20px, 3vw, 25px);
  }

  /* Wiersz odbiorców w normalnym flow pod treścią */
  .index1 .audience {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 24px 72px;
    background: #fff;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }

  /* W normalnym flow ukrycie musi zwijać miejsce */
  .index1 .audience.is-hidden {
    display: none;
  }

  .index1 .index1__arrows {
    left: 24px;
    bottom: 20px;
  }

  .index1 .index1__dots {
    left: auto;
    right: 24px;
    bottom: 32px;
  }
}

@media (max-width: 650px) {
  .index1 .banner {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .index1 .decoration--curve {
    top: -228px;
    right: -205px;
  }

  .index1 .decoration--dots {
    top: 22px;
    right: 8px;
  }

  .index1 .banner__content {
    padding: 26px 20px 26px;
    background: #ffffffb5;
  }

  .index1 .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .index1 .hero-title {
    font-size: clamp(44px, 13.5vw, 64px);
    line-height: 1.01;
  }

  .index1 .hero-title__accent-row {
    gap: 8px;
  }

  .index1 .lead {
    margin-top: 24px;
    font-size: 19px;
    line-height: 1.48;
  }

  .index1 .actions {
    align-items: stretch;
    margin-top: 28px;
  }

  .index1 .button {
    width: 100%;
    min-height: 56px;
  }

  .index1 .text-link {
    width: 100%;
    justify-content: center;
  }

  .index1 .trust-note {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .index1 .banner__visual {
    height: 330px;
  }

  .index1 .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 14px 72px;
    padding: 8px;
    border-radius: 18px;
  }

  .index1 .audience__item {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index1 .audience__item,
  .index1 .button,
  .index1 .button svg {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
