@keyframes progress {
  from {
    left: -100%;
  }
  to {
    left: 0;
  }
}

@keyframes scroll_down_running {
  from {
    left: 50%;
  }
  to {
    left: -100%;
  }
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  overflow: hidden;
  padding-bottom: 40px;
}

.hero__title {
  color: var(--chocolad, #593630);
  font-family: "Great Vibes";
  font-size: 140px;
  font-style: normal;
  font-weight: 400;
  line-height: 140px;
  letter-spacing: 2.8px;
  position: absolute;
  top: 90px;
  left: 0;
  z-index: 3;
}
.hero__title span {
  display: block;
  transform: translate(95px, -70px);
}
.hero__subtitle {
  position: absolute;
  right: 145px;
  top: 134px;
}
.hero__subtitle p {
  max-width: 415px;
  color: var(--Black, #2e2e2e);
}
.hero__center-frame {
  position: relative;
  z-index: 2;
  width: 560px;
  height: 802px;
  flex-shrink: 0;
  border-radius: 500px 500px 0px 0px;
  background: var(
    --Pink-gradient,
    linear-gradient(180deg, #fdc7d7 0%, #fde4dc 100%)
  );
}
.hero__center-frame::before {
  content: url("../assets/img/hero-decor.svg");
  position: absolute;
  left: -100px;
  bottom: 0;
  z-index: 3;
}
.hero__center-frame::after {
  content: url("../assets/img/hero-decor.svg");
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 3;
}
.hero__button-flatbread {
  transform: rotate(-20deg);
  position: absolute;
  top: 100px;
  left: -40px;
  z-index: 3;
}
.hero__slider {
  position: absolute;
  bottom: -40px;
  left: 0;
  overflow: hidden;
  width: 100%;
  z-index: 1;
}
.hero__slide-img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}
.hero__slider-controls {
  position: absolute;
  bottom: 230px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}
.hero__slider-progress {
  height: 2px;
  width: 80px;
  background-color: #fdc7d7;
  border-radius: 0.6rem;
  position: relative;
  overflow: hidden;
}
.hero__slider-tail {
  width: 14400px;
  overflow: hidden;
  position: absolute;
  left: -164px;
  top: calc(100% + 80px);
  z-index: 1;
}
.hero__slider-tail:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 144px;
  height: 100%;
  background-color: #ffeee9;
  z-index: 2;
}
.hero__slider-tail-swiper {
  width: 144px;
}
.hero__slide-lt {
  height: 189px;
  background: var(--Pink-gradient, linear-gradient(180deg, #fdc7d7 0%, #fde4dc 100%));
  border-radius: 100px;
  background-repeat: no-repeat;
  background-position: center;
}
.hero__slider-progress-fill {
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(0deg, var(--main-pink-1), var(--main-pink-1)),
    linear-gradient(0deg, var(--main-pink-2), var(--main-pink-2)),
    linear-gradient(0deg, var(--main-pink-3), var(--main-pink-3));
}
.hero__slider-progress-fill_filling {
  will-change: transform;
  animation: progress 15s linear infinite;
}
.hero__running {
  position: absolute;
  bottom: 90px;
  right: -12px;
  overflow: hidden;
  width: 137px;
  height: 120px;
  flex-shrink: 0;
  z-index: 3;
}
.hero__running-ellipse {
  position: absolute;
  top: 0;
  left: 0;
}
.hero__running-ellipse_upper {
  position: absolute;
  top: 0;
  left: 0;
}
.hero__running-text {
  position: absolute;
  left: 5px;
  bottom: 30px;
  width: 125px;
  height: 30px;
  overflow: hidden;
}
.hero__running-text-content {
  color: var(--Chocolad, #593630);
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-family: Comfortaa;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px;
  display: flex;
  gap: 40px;
  position: absolute;
  left: 0;
  bottom: 0;
  animation: scroll_down_running 8s linear infinite;
}
.hero__running-text span {
  white-space: nowrap;
}

@media (max-width: 1919px) {
  .hero__title,
  .hero__slider-controls {
    left: 66px;
  }
}

@media (max-width: 1749px) {
  .hero {
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 58px;
    position: relative;
  }
  .hero__title {
    font-size: 120px;
    line-height: 100px;
    letter-spacing: 2.4px;
    top: 33px;
    left: 763px;
  }
  .hero__title span {
    transform: translate(95px, -30px);
  }
  .hero__subtitle {
    left: 763px;
    top: 283px;
    width: 100%;
  }
  .hero__subtitle p {
    max-width: 418px;
  }
  .hero__center-frame {
    position: relative;
    width: 564px;
  }
  .hero__center-frame::before {
    left: auto;
    right: -75px;
  }
  .hero__center-frame::after {
    right: auto;
    left: 0;
  }
  .hero__button-flatbread {
    top: 20px;
    left: auto;
    right: -45px;
  }
  .hero__slider-controls {
    bottom: 40px;
    left: 763px;
  }
  .hero__running {
    bottom: 90px;
    right: 0;
  }
}

@media screen and (max-width: 1259px) {
  .hero__slider-tail-swiper {
    display: none;
  }
  .hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .content-wrapper.hero {
    padding-bottom: 120px;
  }
  .hero__subtitle,
  .hero__title {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
  }
  .hero__title {
    font-size: 80px;
    line-height: 80px;
    align-self: flex-end;
  }
  .hero__center-frame {
    grid-row: 1 / 3;
    width: 100%;
    height: 700px;
  }
  .hero__slider-controls {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    justify-content: space-between;
  }
  .hero__button-flatbread {
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(-20deg) scale(0.7);
  }

}

@media screen and (max-width: 767px) {
  .content-wrapper.hero {
    margin-bottom: 140px;
    padding-bottom: 0;
  }
  .hero {
    padding-bottom: 0;
    margin-bottom: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }
  .hero__slider-lt {
    display: none;
  }
  .hero__subtitle,
  .hero__title {
    position: relative;
  }
  .hero__title {
    font-size: 80px;
    line-height: 80px;
    top: 40px;
    left: unset;
    transform: translateX(-30px);
    align-self: auto;
  }
  .hero__subtitle {
    width: 320px;
    margin-top: 20px;
  }
  .hero__subtitle p {
    max-width: 100%;
  }
  .hero__running {
    display: none;
  }
  .hero__center-frame {
    width: 320px;
    margin-top: 60px;
    height: 474px;
    border-radius: 285.457px 285.457px 0px 0px;
  }
  .hero__center-frame::before {
    display: none;
  }
  .hero__center-frame::after {
    content: url(../assets/img/hero-decor-m.svg);
    right: 0;
    left: auto;
    top: 17px;
  }
  .hero__button-flatbread {
    top: -50px;
  }
  .hero__slider {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
  }
  .hero__slide {
    width: 320px;
    min-height: unset;
    height: 340px;
  }
  .hero__slide.swiper-slide-active {
    width: 320px !important;
  }
  .hero__slide:not(.swiper-slide-active) {
    background-image: url(../assets/img/hero-slide-bg.png);
    background-repeat: no-repeat;
    background-position: center;
  }
  .hero__slider-controls {
    bottom: -90px;
  }
}
