#case-header{
    min-height: auto;
    flex-direction: column;
    padding: 120px 1rem 28px;
}
#case-header h1.box-title{
    font-weight: 600;
    padding: 0 0 0;
    margin-bottom: 0;
    text-transform: none;
}
.case-header-poster + .app-slide-full{
    min-height: auto;
}
.case-header-poster img{
    width: 100%;
    aspect-ratio: 16/13;
    max-height: 100vh;
    object-fit: cover;
}

#case-info  p{
    margin: 1em 0;
    min-height: auto !important;
    /* margin: 0; */
}

/* .case-info, .case-info-small{
    line-height: 120%;
    font-size: 18px;
} */

.case-info-expertise{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.case-info-year{
    opacity: 0.55;
}

#case-content .row .case-content-text{
    font-size: 20px;
}

.case-expertise-item{
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 0.75px solid #242424;    
}
#case-content .row.type-80, #case-content .row:is(.type-90, .type-100, .type-110) .swiper{
    /* чтобы видео работали */
    pointer-events: all;
}
#case-content .row:is(.type-90, .type-100) .case-content-text{
    min-width: auto;
}
#case-content .row:is(.type-90, .type-100) .swiper{
    aspect-ratio: 32/37;
    max-height: 100%;
}
#case-content .row:is(.type-110) .swiper{
    aspect-ratio: 32/26;
    max-height: 100%;
}
#case-content .swiper{
    --swiper-navigation-sides-offset: 12px;
}
#case-content .swiper .case-content-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#case-others{
  --slides-count: 1; /* пример, можно менять через медиа */
  --container-padding: 1.5rem; /* учитываем padding контейнера */
  --space-between: 24px;
  --aspect-ratio: 100 / 128; /* ширина / высота */
}
:is(#case-content, #case-others) .swiper :is(.swiper-button-next, .swiper-button-prev) {
    background: white;
    --swiper-navigation-size: 48px;
    width: var(--swiper-navigation-size); height: var(--swiper-navigation-size);
    border-radius: 50%;

}

:is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev) svg {
    width: 30px; height: 30px;
}

:is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev):after {
    display: none;
}

#case-others .swiper :is(.swiper-button-next, .swiper-button-prev){
    /* Половина высоты картинки = половина ширины слайда / aspect-ratio */
    top: calc(
    ((
      (100vw - 2 * var(--container-padding) - (var(--slides-count) - 1) * var(--space-between)) / var(--slides-count)
    ) * (128 / 100) / 2));
}
/* Отступы текстового блока */
.case-constructor-row:is(.type-60, .type-90, .type-100) .case-content-text{
    margin-top: 72px;
    margin-bottom: 0;
}
/* Блок с видео */
.case-constructor-row.type-80 .col-lg-12 .case-content-image.full-with{
    min-height: auto;
}


/* Список кейсов */
.row:has(.projects-tile){
    --bs-gutter-y: 24px;
}
.projects-tile{
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 18px;
}
.projects-tile-image{
    overflow: hidden;
}
.projects-tile-image img {
    max-width: 100%;
    /* aspect-ratio: 296 / 180; */
    aspect-ratio: 100 / 128;
    object-fit: cover;
    transition: .3s;
}
.projects-tile-content{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects-tile-descr{
    color: #24242480;
}

/* .projects-tile:hover{
    text-decoration: underline;
} */
.projects-tile:hover img{
    transform: scale(1.05);
}

/* Props of current case */

.case-info-props{
    /* color: red; */
    color: #242424;
    margin-top: 1.5rem;
    gap: 20px;
}
.case-info-props, .case-info-pair{
    display: flex; flex-direction: column;
}
.case-info-pair{
    gap: 8px;
}
.case-info-pair > *{
    font-size: 18px;
    line-height: 120%;
}
.case-info-props .case-info-small {
    margin: 0;
    color: black;
    font-weight: 700;
}


@media screen and (width < 992px) {

    /* на мобилках растягиваем картиночки */

    #case-content .row > *:has(.case-content-image, .swiper){
        /* background-color: red; */
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    #case-content .row .case-content-image, #case-content .row .swiper{
        width: calc(100% + 2rem);
    }
}

@media screen and (min-width: 576px){
    #case-others{
        --slides-count: 1;
    }
}

@media screen and (min-width: 768px){
    #case-others{
        --slides-count: 2;
    }
}


@media screen and (min-width: 992px){


    /* Props of current case */
    .case-info-props{gap:36px;}
    .case-info-pair{gap:12px}
    .case-info-pair > *{
        font-size: 24px;
        line-height: 120%;
    }

    #case-content .row.type-100{
        flex-direction: row-reverse;
    }
    /* на всём широком слайдер центруем */
    
    #case-content .row:has(.swiper) > *{
        /* background-color: aqua; */
        display: flex;
        align-items: center;
    }

    #case-content .row .case-content-text{
        font-size: 36px;
    }

    #case-content .swiper{
        --swiper-navigation-sides-offset: 24px;
    }

    #case-content .row:is(.type-110) .swiper{
        aspect-ratio: 1024 / 540;
    }

    /* широкий слайдер тянем как на мобилке без полей */
    /* , .type-100 */
    #case-content .row.type-110, #case-content .row.type-80, #case-content .row.type-10{
        padding: 0;
        --bs-gutter-x: 0px;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        /* margin-left: calc(var(--bs-gutter-x) * -0.5);
        margin-right: calc(var(--bs-gutter-x) * -0.5); */
    }
    #case-content .row.type-110 .swiper {
        /* width: calc(100% + var(--bs-gutter-x)); */
    }

    /* Отступы текстового блока */
    .case-constructor-row.type-60 .case-content-text{
        margin-top: 96px;
        margin-bottom: 24px;
    }
    .case-constructor-row:is(.type-90, .type-100) .case-content-text{
        margin-top: 48px;
        margin-bottom: 48px;
    }

    /* Список кейсов */

    #case-others{
        --slides-count: 3;
    }


    .row:has(.projects-tile){
        --bs-gutter-y: 48px;
    }

    .projects-tile{
        font-size: 24px;
        gap: 24px;
    }

}

@media screen and (min-width: 1200px){

    /* Props of current case */
    .case-info-props{gap:48px;}
    .case-info-pair{gap:20px}
    .case-info-pair > *{
        font-size: 32px;
        line-height: 120%;
    }


    
    #case-content .row .case-content-text{
        font-size: 44px;
    }

    /* стрелошка насяйника */

    #case-content  .swiper{
        --swiper-navigation-sides-offset: 24px;
    }

    :is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev) {
        --swiper-navigation-size: 64px;
    }

    :is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev) svg {
        width: 40px; height: 40px;
    }

    #case-content .row:is(.type-110) .swiper{
        aspect-ratio: 1280 / 640;
    }


    /* Отступы текстового блока */
    .case-constructor-row.type-60 .case-content-text{
        margin-top: 112px;
        margin-bottom: 48px;
    }


    /* Список кейсов */

    #case-others{
        --slides-count: 4;
    }


    .row:has(.projects-tile){
        --bs-gutter-y: 56px;
    }

    .projects-tile{
        font-size: 32px;
        gap: 32px;
    }


}

@media screen and (min-width: 1400px){

    /* Props of current case */
    /* .case-info-props{gap:48px;}
    .case-info-pair{gap:20px} */
    .case-info-pair > *{
        font-size: 36px;
        line-height: 120%;
    }




    #case-content .row .case-content-text{
        font-size: 44px;
    }

    /* стрелошка насяйника */

    #case-content .swiper{
        --swiper-navigation-sides-offset: 45px;
    }

    :is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev) {
        --swiper-navigation-size: 80px;
    }

    :is(#case-content, #case-others)  .swiper :is(.swiper-button-next, .swiper-button-prev) svg {
        width: 50px; height: 50px;
    }

    #case-content .row:is(.type-110) .swiper{
        aspect-ratio: 1920 / 900;
    }


    /* Отступы текстового блока */
    .case-constructor-row.type-60 .case-content-text{
        margin-top: 160px;
        margin-bottom: 48px;
    }



    /* Список кейсов */

    .row:has(.projects-tile){
        --bs-gutter-y: 64px;
    }

    .projects-tile{
        font-size: 36px;
        gap: 36px;
    }



}

@media screen and (min-width: 1760px){
    /* #case-content .row:is(.type-90, .type-100) .case-content-text */
    #case-content .row .case-content-text{
        font-size: 48px;
    }
}
