/* Sekcia zážitkov zložená zo samostatných responzívnych vrstiev. */
.experiences {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: clamp(530px, 39vw, 670px);
  margin: -1px auto 0;
  padding: clamp(20px, 1.8vw, 30px) 0 0 !important;
  overflow: hidden;
  background-color: #fffaf0 !important;
  background-image:
    url("../assets/images/experiences-trees.png"),
    url("../assets/images/experiences-dashed-route.png"),
    url("../assets/images/experiences-footprints.png"),
    url("../assets/images/experiences-symbol-plant.png") !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-position:
    right 3.2% top 4px,
    left 3.2% top 48px,
    left 2.1% bottom 5px,
    right 2.1% bottom 5px !important;
  background-size:
    clamp(58px, 5.7vw, 92px) auto,
    clamp(68px, 6.6vw, 106px) auto,
    clamp(84px, 7.8vw, 126px) auto,
    clamp(78px, 7.2vw, 116px) auto !important;
}

/* Jemný prechod z hero sekcie do pozadia zážitkov. */
.experiences::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(24px, 2.2vw, 38px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    #fffaf0 0%,
    rgba(255, 250, 240, 0.68) 42%,
    rgba(255, 250, 240, 0) 100%
  );
}

/* Samostatný transparentný pás fotografií. */
.experiences::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -92px;
  left: 0;
  height: clamp(245px, 22vw, 360px);
  pointer-events: none;
  background-image: url("../assets/images/experiences-photos.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 90% auto;
}

.experiences > .container {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 92px), 1540px);
}

.experiences .section-heading {
  margin-bottom: clamp(14px, 1.15vw, 20px);
}

.experiences .section-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(31px, 2.45vw, 42px) !important;
  line-height: 1.08 !important;
}

.experiences .section-heading p {
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.35 !important;
}

.experiences .experience-grid {
  width: min(90%, 1360px);
  margin-inline: auto;
  gap: clamp(9px, 0.75vw, 13px);
}

/* Ručne vložené obrázkové karty. */
.experiences .experience-card {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1.46 / 1;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: clamp(16px, 1.3vw, 22px) !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 110% 110% !important;
  box-shadow: none !important;
}

.experiences .experience-card:nth-child(1) {
  background-image: url("../assets/images/experience-detective.webp") !important;
}

.experiences .experience-card:nth-child(2) {
  background-image: url("../assets/images/experience-escape.webp") !important;
}

.experiences .experience-card:nth-child(3) {
  background-image: url("../assets/images/experience-creativity.webp") !important;
}

.experiences .experience-card:nth-child(4) {
  background-image: url("../assets/images/experience-friends.webp") !important;
  background-size: 114% 114% !important;
}

/* Ikony sú už súčasťou obrázkového pozadia. */
.experiences .large-icon {
  display: none !important;
}

.experiences .experience-card h3 {
  position: absolute;
  z-index: 1;
  top: 25%;
  right: 8%;
  left: 36%;
  margin: 0 !important;
  text-align: left;
  font-size: clamp(20px, 1.35vw, 25px) !important;
  line-height: 1.08 !important;
}

.experiences .experience-card p {
  position: absolute;
  z-index: 1;
  top: 60%;
  right: 10%;
  left: 10%;
  max-width: none;
  margin: 0 !important;
  text-align: center;
  font-size: clamp(14px, 0.98vw, 17px) !important;
  line-height: 1.42 !important;
}

/* Pôvodný HTML pás fotografií ostáva skrytý na desktope. */
.experiences .photo-strip {
  display: none !important;
}

/* Plynulé napojenie koláže na nadpis programu. */
.story {
  margin-top: -1px;
  padding-top: clamp(6px, 0.7vw, 12px) !important;
  background-color: #fffaf0;
}

.story .section-heading.compact {
  margin-bottom: clamp(16px, 1.25vw, 22px);
}

@media (max-width: 980px) {
  .experiences {
    height: auto;
    min-height: 0;
    margin-top: -1px;
    padding: 28px 0 clamp(300px, 49vw, 460px) !important;
    background-position:
      right 18px top 8px,
      left 18px top 54px,
      left 12px bottom 8px,
      right 12px bottom 8px !important;
    background-size:
      70px auto,
      82px auto,
      94px auto,
      88px auto !important;
  }

  .experiences::before {
    height: 26px;
  }

  .experiences::after {
    bottom: -58px;
    height: clamp(270px, 44vw, 420px);
    background-size: 105% auto;
  }

  .experiences > .container {
    width: min(calc(100% - 48px), 860px);
  }

  .experiences .experience-grid {
    width: min(94%, 780px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiences .experience-card h3 {
    font-size: clamp(20px, 2.7vw, 24px) !important;
  }

  .experiences .experience-card p {
    font-size: clamp(14px, 1.9vw, 17px) !important;
  }

  .story {
    padding-top: 10px !important;
  }
}

@media (max-width: 620px) {
  .experiences {
    padding: 26px 0 24px !important;
    background-position:
      right 10px top 8px,
      left 8px top 66px,
      left 5px bottom 5px,
      right 5px bottom 5px !important;
    background-size:
      52px auto,
      58px auto,
      66px auto,
      62px auto !important;
  }

  .experiences::before {
    height: 20px;
  }

  /* Na mobile sa široký spojený obrázok vypne. */
  .experiences::after {
    display: none;
  }

  .experiences > .container {
    width: min(calc(100% - 28px), 560px);
  }

  .experiences .section-heading {
    margin-bottom: 18px;
  }

  .experiences .section-heading h2 {
    font-size: clamp(29px, 8vw, 38px) !important;
  }

  .experiences .experience-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .experiences .experience-card {
    width: min(100%, 400px);
    margin-inline: auto;
  }

  .experiences .experience-card h3 {
    font-size: clamp(20px, 5.4vw, 24px) !important;
  }

  .experiences .experience-card p {
    font-size: clamp(14px, 4vw, 17px) !important;
  }

  /* Samostatné fotografie sa prispôsobia šírke obrazovky. */
  .experiences .photo-strip {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px auto 0;
    padding: 0 2px 4px;
  }

  .experiences .photo-strip figure {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-width: 5px;
    border-radius: 16px;
    transform: none !important;
  }

  .experiences .photo-strip figure:last-child {
    width: calc(50% - 4px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .experiences .photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story {
    padding-top: 12px !important;
  }

  .story .section-heading.compact {
    margin-bottom: 18px;
  }
}

@media (max-width: 360px) {
  .experiences .photo-strip {
    grid-template-columns: 1fr;
  }

  .experiences .photo-strip figure:last-child {
    width: 100%;
    grid-column: auto;
  }
}
