.works-slider {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 28px;
  margin-top: 46px;
  margin-bottom: 70px;
  --works-capsule-width: clamp(166px, 38vw, 484px);
  --works-capsule-offset-x: 0;
  --works-capsule-offset-y: 0px;
  --works-bottom-y: 120px;
  --works-filling-y: -320px;
  --works-body-y: -420px;
  --works-top-y: -520px;
  --works-filling-opacity: 0;
  --works-body-opacity: 0;
  --works-top-opacity: 0;
  --works-slider-sticky-top: 0px;
}

.works-slider:before {
  content: "";
  position: absolute;
  inset: 0;
  top: -290px;
  width: 100%;
  height: 180%;
  background: url(../../assets/img/decor/works-slider-bg.png) center -50px/100% 100% no-repeat;
}

.works-slider__nav-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 6px;
}

.works-slider__nav {
  width: 100%;
  height: auto;
  overflow: visible;
}

.works-slider__main {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.works-slider__main-shell {
  position: relative;
}

.works-slider__capsule {
  position: absolute;
  top: 50%;
  right: var(--works-capsule-offset-x);
  width: var(--works-capsule-width);
  -webkit-transform: translateY(calc(-50% + var(--works-capsule-offset-y)));
      -ms-transform: translateY(calc(-50% + var(--works-capsule-offset-y)));
          transform: translateY(calc(-50% + var(--works-capsule-offset-y)));
  pointer-events: none;
  display: grid;
  justify-items: center;
  z-index: 5;
  isolation: isolate;
}

.works-nav .swiper-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: 18px;
  counter-reset: works-nav;
}

.works-nav__item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: auto;
  max-width: 350px;
  gap: clamp(8px, 1.0322580645vw, 16px);
  cursor: pointer;
  opacity: 0.5;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.works-nav__item::before {
  counter-increment: works-nav;
  content: counter(works-nav);
  position: absolute;
  left: -6px;
  top: -6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: clamp(22px, 1.935483871vw, 30px);
  height: clamp(22px, 1.935483871vw, 30px);
  border-radius: 50%;
  background: var(--c-4f87a1);
  color: var(--c-white);
  font-weight: 300;
  font-size: clamp(12px, 1.0322580645vw, 16px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.works-nav__item img {
  width: clamp(55px, 4.9032258065vw, 76px);
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.works-nav__item .works-nav__title {
  font-weight: 600;
  font-size: clamp(12px, 1.0322580645vw, 16px);
  line-height: 130%;
  color: var(--c-080b1c);
  max-width: 195px;
}

.works-nav__item .works-nav__arrow {
  width: clamp(24px, 2.064516129vw, 32px);
  height: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  color: var(--c-242b38);
}

.works-nav__item.is-active {
  opacity: 1;
}

.works-nav__item.is-completed {
  opacity: 1;
}

.works-nav__item:last-child img {
  position: relative;
  top: -11px;
}

.works-nav__item:last-child .works-nav__arrow {
  display: none;
}

.works-main__item {
  max-width: 100%;
  display: grid;
  grid-template-columns: clamp(75px, 30.4761904762vw, 320px) minmax(360px, 1fr) minmax(360px, 1fr);
  grid-template-areas: "img eyebrow media" "img main-title media" "img title media" "img desc media" "img text media" "img btn media";
  gap: 14px 56px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-block: 195px;
  position: relative;
  padding-right: calc(var(--works-capsule-width) + var(--works-capsule-offset-x));
}

.works-main__img {
  grid-area: img;
}

.works-main__eyebrow {
  grid-area: eyebrow;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: clamp(35px, 6.6666666667vw, 70px);
  height: clamp(35px, 6.6666666667vw, 70px);
  border-radius: 50%;
  background: var(--c-4f87a1);
  backdrop-filter: blur(18.9px);
  color: var(--c-white);
  font-weight: 300;
  font-size: clamp(16px, 2.8571428571vw, 30px);
  letter-spacing: -0.01em;
  font-family: var(--font-bluecurve);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
          font-feature-settings: "lnum" 1, "tnum" 1;
}

.works-main__eyebrow span {
  -webkit-transform: translateY(1px);
      -ms-transform: translateY(1px);
          transform: translateY(1px);
}

.works-main__main-title {
  grid-area: main-title;
  font-weight: 600;
  font-size: clamp(18px, 5.4545454545vw, 30px);
  line-height: 100%;
  letter-spacing: -0.01em;
  max-width: 505px;
}

.works-main__title {
  grid-area: title;
  font-weight: 600;
  font-size: clamp(18px, 2.2857142857vw, 24px);
  line-height: 130%;
}

.works-main__desc {
  grid-area: desc;
  font-weight: 500;
  font-size: clamp(16px, 1.9047619048vw, 20px);
  line-height: 130%;
  margin-top: 2px;
}

.works-main__text {
  grid-area: text;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.01em;
  margin-top: 2px;
  color: var(--c-4f5265);
}

.works-main__btn {
  grid-area: btn;
  border: 1px solid var(--c-bbcbd2);
  border-radius: 20px;
  padding: clamp(16px, 2.3428571429vw, 24.6px) 30px;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.works-main__media {
  grid-area: media;
  min-width: 320px;
}

.works-capsule {
  display: grid;
  justify-items: center;
}

.works-capsule__part {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  margin-bottom: clamp(-120px, -9vw, -70px);
  -webkit-transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(var(--rotate, 0deg));
          transform: translate3d(var(--shift-x, 0), var(--shift-y, 0), 0) rotate(var(--rotate, 0deg));
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center;
  will-change: transform;
  -webkit-transition: opacity 0.45s ease, -webkit-transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: opacity 0.45s ease, -webkit-transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease, -webkit-transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.works-capsule__part img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.works-capsule__part--top {
  z-index: 4;
  --shift-x: -8px;
  --shift-y: var(--works-top-y);
  margin-bottom: clamp(-140px, -8vw, -90px);
  opacity: var(--works-top-opacity);
}

.works-capsule__part--body {
  z-index: 3;
  --shift-x: 0px;
  --shift-y: var(--works-body-y);
  opacity: var(--works-body-opacity);
}

.works-capsule__part--filling {
  z-index: 2;
  --shift-x: 6px;
  --shift-y: var(--works-filling-y);
  opacity: var(--works-filling-opacity);
}

.works-capsule__part--filling-min {
  z-index: 4;
  --shift-x: 6px;
  --shift-y: var(--works-filling-min-y);
  opacity: var(--works-filling-min-opacity);
  width: 305px;
  height: 135px;
}

.works-capsule__part--bottom {
  z-index: 1;
  --shift-x: -4px;
  --shift-y: var(--works-bottom-y);
  position: relative;
}

.works-capsule__part--bottom::before {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  width: clamp(260px, 70vw, 560px);
  aspect-ratio: 3/1.2;
  border-radius: 50%;
  background: radial-gradient(closest-side at 50% 45%, rgba(23, 31, 44, 0.35) 0%, rgba(0, 0, 0, 0.14) 75%);
  -webkit-filter: blur(32px);
          filter: blur(32px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.works-slider[data-works-stage="1"] {
  --works-capsule-offset-y: 0px;
  --works-bottom-y: 120px;
  --works-filling-y: -340px;
  --works-body-y: -430px;
  --works-top-y: -520px;
  --works-filling-opacity: 0;
  --works-body-opacity: 0;
  --works-top-opacity: 0;
  --works-filling-min-opacity: 0;
}

.works-slider[data-works-stage="2"] {
  --works-capsule-offset-y: -12px;
  --works-bottom-y: 170px;
  --works-filling-y: -150px;
  --works-body-y: -660px;
  --works-top-y: -960px;
  --works-filling-opacity: 1;
  --works-body-opacity: 0;
  --works-top-opacity: 0;
  --works-filling-min-opacity: 0;
}

.works-slider[data-works-stage="3"] {
  --works-capsule-offset-y: 130px;
  --works-bottom-y: 140px;
  --works-filling-y: -150px;
  --works-body-y: -440px;
  --works-top-y: -700px;
  --works-filling-opacity: 1;
  --works-body-opacity: 1;
  --works-top-opacity: 1;
  --works-filling-min-opacity: 0;
  --works-filling-min-y: -300px;
}

.works-slider[data-works-stage="4"] {
  --works-capsule-offset-y: 100px;
  --works-bottom-y: 100px;
  --works-filling-y: -110px;
  --works-filling-min-y: -121px;
  --works-body-y: -260px;
  --works-top-y: -470px;
  --works-filling-opacity: 1;
  --works-filling-min-opacity: 1;
  --works-body-opacity: 1;
  --works-top-opacity: 0;
}

.works-slider[data-works-stage="4"] .works-capsule__part--filling-min img {
  -webkit-transform: rotate(-1deg);
      -ms-transform: rotate(-1deg);
          transform: rotate(-1deg);
}

.works {
  margin-block: clamp(70px, 8.7096774194vw, 135px) clamp(70px, 3.2258064516vw, 50px);
  overflow: visible;
}

.works__container {
  overflow: visible;
}

.works__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 20px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 55px;
  position: relative;
  z-index: 1;
}

.works__text-wrapper {
  color: var(--c-080b1c);
  -webkit-box-flex: 0;
      -ms-flex: 0 1 855px;
          flex: 0 1 855px;
}

.works__text {
  font-weight: 600;
  font-size: clamp(18px, 1.5483870968vw, 24px);
  line-height: 130%;
  margin-bottom: 20px;
}

.works__subtext {
  font-weight: 500;
  font-size: clamp(16px, 1.2903225806vw, 20px);
  line-height: 130%;
}

.works__cta {
  position: relative;
  z-index: 1;
}

.works__slider {
  position: relative;
  overflow: visible;
}

.works__slider--sticky {
  /* override top offset via data-sticky-top on .works__slider or set this variable from outside */
  --works-slider-sticky-top: clamp(32px, 6vw, 78px);
  --works-slider-scroll-height: auto;
  --works-slider-scroll-range: auto;
  --works-slider-fixed-width: 100%;
  --works-slider-fixed-left: 0px;
  height: var(--works-slider-scroll-height);
  overflow: visible;
  position: relative;
}

.works__slider--sticky .works-slider {
  position: sticky;
  top: var(--works-slider-sticky-top);
}

.works__slider--fixed .works-slider {
  position: fixed;
  top: var(--works-slider-sticky-top);
  left: var(--works-slider-fixed-left);
  width: var(--works-slider-fixed-width);
}

.works__slider--fixed-end .works-slider {
  position: absolute;
  top: var(--works-slider-scroll-range);
  left: 0;
  right: 0;
}

@media (min-width: 576px) {
  .works-main__title {
    width: 90%;
  }

  .works-main__desc {
    width: 90%;
  }

  .works-main__text {
    width: 85%;
  }
}

@media (max-width: 1199px) {
  .works-main__item {
    grid-template-columns: clamp(75px, 14.2857142857vw, 150px) clamp(35px, 6.6666666667vw, 70px) minmax(360px, 400px);
    gap: 10px 16px;
    padding: 0;
    -ms-flex-line-pack: start;
        align-content: start;
    grid-template-areas: "media media media" "img eyebrow main-title" "title title title" "desc desc desc" "text text text" "btn btn btn";
  }

  .works-slider[data-works-stage="2"] {
    --works-capsule-offset-y: 0px;
  }

  .works-slider[data-works-stage="3"] {
    --works-capsule-offset-y: 228px;
  }

  .works-slider[data-works-stage="4"] {
    --works-filling-min-y: -80px;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--filling-min {
    max-width: 280px;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--filling-min img {
    -webkit-transform: rotate(-2deg);
        -ms-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
}

@media (max-width: 992px) {
  .works-slider__capsule {
    --works-capsule-width: min(165px, 86vw);
    position: relative;
    right: auto;
    top: auto;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
    margin-inline: auto;
    max-height: 286px;
    margin-bottom: 57px;
  }
}

@media (max-width: 991px) {
  .works-slider__main {
    margin-top: 20px;
  }

  .works-slider__main-shell {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 27px;
  }

  .works-main__item {
    grid-template-columns: minmax(0, 75px) minmax(0, 35px) minmax(0, 1fr);
  }

  .works-capsule__part {
    max-width: 165px;
  }

  .works-slider[data-works-stage="1"] {
    --works-bottom-y: 0px;
  }

  .works-slider[data-works-stage="1"] .works-capsule__part--filling-min {
    display: none;
  }

  .works-slider[data-works-stage="1"] .works-capsule__part--filling {
    display: none;
  }

  .works-slider[data-works-stage="1"] .works-capsule__part--body {
    display: none;
  }

  .works-slider[data-works-stage="2"] {
    --works-filling-y: -52px;
    --works-bottom-y: 11px;
  }

  .works-slider[data-works-stage="2"] .works-capsule__part--filling {
    max-width: 105px;
    left: -7px;
  }

  .works-slider[data-works-stage="2"] .works-capsule__part--filling-min {
    display: none;
  }

  .works-slider[data-works-stage="2"] .works-capsule__part--body {
    display: none;
  }

  .works-slider[data-works-stage="3"] {
    --works-top-y: -183px;
    --works-body-y: -107px;
    --works-filling-y: -0px;
    --works-bottom-y: 131px;
  }

  .works-slider[data-works-stage="3"] .works-capsule__part--filling {
    max-width: 105px;
    left: -7px;
  }

  .works-slider[data-works-stage="3"] .works-capsule__part--top {
    left: 5px;
  }

  .works-slider[data-works-stage="3"] .works-capsule__part--bottom {
    left: 2px;
  }

  .works-slider[data-works-stage="4"] {
    --works-top-y: -337px;
    --works-body-y: -75px;
    --works-filling-y: -143px;
    --works-filling-min-y: 20px;
    --works-bottom-y: 75px;
    --works-filling-opacity: 0;
  }

  .works-slider[data-works-stage="4"] .works-slider__capsule {
    margin-bottom: 0;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--filling {
    max-width: 105px;
    left: -7px;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--filling-min {
    max-width: 105px;
    left: -6px;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--filling-min img {
    -webkit-transform: rotate(-2deg);
        -ms-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--top {
    left: 4px;
    display: none;
  }

  .works-slider[data-works-stage="4"] .works-capsule__part--body {
    left: -3px;
  }
}

@media (max-width: 575px) {
  .works-nav__item::before {
    left: -10px;
  }

  .works-main__title {
    margin-top: 20px;
  }

  .works-main__desc {
    margin-bottom: 10px;
  }

  .works-main__text {
    margin-bottom: 10px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .works-main__main-title {
    padding-left: 25px;
  }
}
@supports (appearance:none){
.works-slider:before{background:url(../../assets/img/decor/works-slider-bg.png) center -50px/100% 100% no-repeat}
}

 @media (min-width: 576px){

@supports (appearance:none){

}

}

 @media (max-width: 1199px){

@supports (appearance:none){

}

}

 @media (max-width: 992px){

@supports (appearance:none){

}

}

 @media (max-width: 991px){

@supports (appearance:none){

}

}

 @media (max-width: 575px){

@supports (appearance:none){

}

}

 @media (min-width: 576px) and (max-width: 991px){

@supports (appearance:none){

}

}
