.ce-acc{
    display: flex;
    gap: 24px;
    align-items: stretch;
    counter-reset: ceacc;
}

.ce-acc-wrap {
    max-width: 1511px;
    margin: 0 auto;
    padding: 0 20px;
}

.ce-acc__item{
    counter-increment: ceacc;
    display: flex;
    align-items: stretch;
    min-height: 550px;
    border: 1px solid rgba(255,255,255,.10);
    background: #10090D;
    overflow: hidden;
    flex: 0 0 101px;
    transition: flex .55s ease, border-color .55s ease, background .55s ease;
    will-change: flex;
}

.ce-acc__spine{
    position: relative;
    width: 101px;
    flex: 0 0 101px;
    overflow: hidden;
}

.ce-acc__item.is-active{
    flex: 1 1 0;               
    border-color: rgba(255,255,255,.16);
}

.ce-acc__panel{
    flex: 1 1 auto;            
    min-width: 0;            
    opacity: 0;
    transform: translateX(-16px);
    pointer-events: none;
    transition: opacity .25s ease, transform .55s ease;
}

.ce-acc__item.is-active .ce-acc__panel{
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    overflow: hidden;
}

.ce-acc__bg{
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.ce-acc__shade{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.65) 100%);
}


.ce-acc__label{
    position: absolute;
    top: 24px;
    left: 32%;
    writing-mode: vertical-rl;
    transform: rotate(180deg) translate(0, 0);
    letter-spacing: 0;
    color: #FFF;
    z-index: 3;
    font-family: "SF UI Display", sans-serif;
    font-weight: 200;
    font-size: 32px;
    line-height: 120%;
    text-align: right;
    vertical-align: middle;
    text-transform: uppercase;
}

.ce-acc__num{
    position: absolute;
    left: auto;
    right: -27px;
    bottom: 24px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.25;
}
.ce-acc__num::before{
    content: counter(ceacc);
    font-size: 180px;
    line-height: 1;
    font-weight: 300;
    color: rgb(255 255 255);
}

.ce-acc__hit{
    position: absolute;
    inset: 0;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

.ce-acc__bottom{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px;
    background: #E51467;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .55s ease, opacity .55s ease;
    z-index: 5;
}

.ce-acc__item.is-active .ce-acc__bottom{
    transform: translateY(0);
    opacity: 1;
}

.ce-acc__text{
    color: #FFF;
    font-family: "SF UI Display", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
}

@media (min-width: 768px){
    .ce-acc{
        display: none;
    }
}

@media (max-width: 1024px){

    .ce-acc{
        display: flex;
        flex-direction: column;
        gap: 14px;
        overflow: visible;
        padding-bottom: 0;
    }

    .ce-acc__item{
        flex: none !important;
        width: 100%;
        min-height: 0;
        display: block;
    }

    .ce-acc__item.is-active{
        flex: none !important;
    }

    .ce-acc__spine{
        width: 100%;
        height: 88px;
        flex: none;
    }

    .ce-acc__label{
        writing-mode: horizontal-tb;
        transform: none;
        left: 18px;
        top: 18px;
        font-size: 20px;
        line-height: 120%;
        text-align: left;
    }

    .ce-acc__num{
        right: -10px;
        bottom: 8px;
        opacity: .18;
    }

    .ce-acc__num::before{
        font-size: 72px;
        line-height: 1;
    }

    .ce-acc__panel{
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 380px;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        flex: none !important;
        transition: max-height .55s ease, opacity .25s ease, transform .55s ease;
    }

    .ce-acc__item.is-active .ce-acc__panel{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .ce-acc__bg,
    .ce-acc__shade{
        position: absolute;
        inset: 0;
    }

    .ce-acc__bottom{
        padding: 14px 16px;
    }

    .ce-acc__text{
        font-size: 15px;
        line-height: 1.45;
        max-width: 100%;
    }
}