.case__hero{
    background-image: url('../img/case-hero-bg.png');
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.case__hero-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100vh;
    padding-bottom: 320px;
}

.case__hero-subtitle{
    margin-bottom: 12px;
    color: #FFF;
    font-family: Montserrat;
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.case__hero-title{
    color: #FFF;
    font-size: 100px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -7px;
    width: 100%;
    max-width: 1393px;
}

.case__about-client{
    background-color: #010101;
    padding: 250px 0;
}

.case__about-client__logo{
    margin-bottom: 80px;
}

.case__about-client-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.case__about-client__description{
    color: #FFF;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 49px; /* 122.5% */
    letter-spacing: -2px;
    width: 100%;
    max-width: 1120px;
}

.case__image{
    background-color: #010101;
    padding: 80px 0;
}

.case__image-wraper img{
    display: block;
    width: 100%;
}

.case__description{
    position: relative;
    color: #FFFFFF;
    width: 100%;
}

.case__description_wrapper{
    display: flex;
    justify-content: space-between;
}

.case__description_black{
    display: block;
    background-color: #000000;
    width: 100%;
    padding: 233px 0;
    padding-left: 126px;
    padding-right: 98px;

}
.case__description_gray{
    display: block;
    background-color: #1D1D1B;
    width: 100%;
    max-width: 611px;
    padding: 188px 0;
    padding-left: 80px;
}

.case__description_black_wrapper{
    max-width: 1085px;
    width: 100%;
    font-size: 40px;
    margin: 0 auto;
}



.case__description_gray_item h3{
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
}

.case__description_gray_item ul{
    list-style: inside;
}

.case__description_gray_item ul li{
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', serif;
}

.case__description_gray_item p{
    font-family: 'Inter', serif;
}

.case__description_gray_item{
    margin-bottom: 40px;
}

.case__description_gray_item:last-child{
    margin-bottom: 0;
}


.case__description_img{
    width: 100%;
    margin: 0;
    overflow: hidden;
    background-image: url('../img/glass.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
}

.case__description_img img{
    display: block;
    width: 100%;
}


.case__description_gray_wrapper{
    width: 100%;
    max-width: 405px;
}
.case__description_gallery_text{
    color: #FFFFFF;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 277px 0;
}

.case__description_gallery_text-wrapper p{
    font-size: 40px;
    font-weight: 500;
}


.case__description_gallery_list{
    overflow: hidden;
}

.case__description_gallery_list_up{
    display: flex;
    width: 100%;
}

.case__description_gallery_list_up img{
    display: block;
    width: 50%;
}


.case__description_gallery_list_down img{
    width: 100%;
}

.case__description_black-header{
    color: #C9CACF;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    letter-spacing: -0.08px;
    margin-bottom: 12px;
}

.case__description_black-title{
    color: #FFF;
    font-size: 60px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
}

.case__description_black-subtitle{
    color: #FFF;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.case__description-reach{
    padding-top: 331px;
    padding-bottom: 331px;
    background-color: #000000;
}

.case__description-reach-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.case__description-reach-title{
    color: #FFF;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 49px; /* 122.5% */
    letter-spacing: -2px;
    margin-bottom: 70px;
}

.case__description-uni-reach p:first-child{
    color: #FFF;
    font-size: 100px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.case__description-uni-reach p:last-child{
    color: #FFF;
    text-align: right;
    font-family: Montserrat;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


.case__description-stories {
  background-color: #000000;
  padding-top: 53px;
  padding-bottom: 53px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center; /* Центрируем содержимое по вертикали */
}

.case__description-stories-items {
  display: flex;
  justify-content: space-between; /* Элементы равномерно распределяются по ширине */
  width: 100%;
  position: relative;
  height: auto; /* Убираем фиксированную высоту, чтобы элементы центрировались */
}

.case__description-stories-item {
  position: relative;
  width: 10%; /* Настройте ширину в зависимости от контента */
  text-align: center;
  transform-origin: center; /* Устанавливаем точку трансформации в центре */
}

.case__description-stories-item img{
    width: 100%;
}

.case__description-stories h2{
    position: absolute;
    z-index: 1;
    display: block;
    margin: 0 auto;
    color: #FFF;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 49px; /* 122.5% */
    letter-spacing: -2px;
    width: 100%;
    mix-blend-mode: difference;
}

/* 600–1023px: 5 сверху, 4 снизу, пустая середина; трансформы делает GSAP */
@media (max-width: 1023px) and (min-width: 600px) {
  .case__description-stories .case__description-stories-items{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 8px; /* row-gap учитывается в JS для центр-сдвига */
    align-items: start;
  }

  .case__description-stories .case__description-stories-item{
    width: 100%;
    transform: translateY(0);
  }

  .case__description-stories .case__description-stories-item img{
    display:block; width:100%;
    aspect-ratio: 9/16; object-fit: cover; /* стабилизируем высоту */
  }

  /* нижний ряд размещаем под колонками 1,2,4,5 (центр — пусто) */
  .case__description-stories .case__description-stories-item:nth-child(6){ grid-column: 1; }
  .case__description-stories .case__description-stories-item:nth-child(7){ grid-column: 2; }
  .case__description-stories .case__description-stories-item:nth-child(8){ grid-column: 4; }
  .case__description-stories .case__description-stories-item:nth-child(9){ grid-column: 5; }
}

/* <600px: 3×3. Сбрасываем ручные grid-column и делаем 3 колонки */
@media (max-width: 599px) {
  .case__description-stories .case__description-stories-items{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    align-items: start;
  }

  .case__description-stories .case__description-stories-item{
    width: 100%;
    transform: translateY(0);
    grid-column: auto; /* перекрываем правила 600–1023 */
  }
}


.case__description_black_wrapper ul{
    list-style: inside;
    margin-bottom: 40px;
}

.case__description_black_wrapper ul li{
    color: #FFF;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1px;
    margin-bottom: 12px;
}