.history__item-size-mobile-button{
    background: none !important;
}

.history__item-count img{
    margin-left: 14px;
}

.upper{
    display: flex;
    justify-content: center;

    margin-top: 60px;

    padding-left: 40px;
    padding-right: 40px;


}

.upper__container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.upper__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: left;
}

.upper__text{
    font-size: 14px;
    font-weight: 400;
    line-height: 16.94px;

    max-width: 679px;

    margin-right: 225px;
}


.photos{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;

    margin-top: 60px;

    width: 100%;
}

.photos__photo{
    width: 100%;
}


/* BENEFIT */


.benefit{
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2px;

    margin-top: 25px;
}

.benefit__upper{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;

    color: #121313;
}

.benefit__upper1{
    display: flex;
    align-items: center;
}

.benefit__upper img{
    display: inline;

    margin-right: 19px;
}

.benefit__block{
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 40px 40px 60px 40px;

    background: #F2F3F4;
}


.benefit__text{
    font-size: 14px;
    font-weight: 400;
    line-height: 16.94px;
    text-align: left;

    margin-top: 26px;
    color: #121313;
}

.benefit__button-holder{
    width: 100%;
    display: flex;
    justify-content: center;

    margin-top: 60px;
}

.benefit__button{
    padding: 18px 36px;
    background: #121313;
    color: #F2F3F4;

    border-radius: 3px;


    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;

    width: fit-content;

    transition: .3s linear;

    border: 1px solid #121313;
}

.benefit__button:hover{
    background: #F2F3F4;
    color: #121313;
}


/* LOOKS */


.looks{
    margin-top: 60px;

    width: 100%;
}

.looks__title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: left;
    color: #121313;

    margin-left: 40px;
}

.looks__photos{
    margin-top: 60px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.looks__photo{
    width: 100%;
}


/* CAPSULE */



.capsule{
    width: 100%;

    padding: 40px;
    padding-bottom: 0;
}

.capsule__block{
    background: #F2F3F4;

    padding: 50px;
}

.capsule__block-title{
    font-size: 35px;
    font-weight: 400;
    line-height: 42.36px;
    text-align: center;

    color: #121313;
}

.capsule__block-text-holder{
    display: flex;
    justify-content: center;
    width: 100%;
}

.capsule__block-text{
    margin-top: 52px;

    font-size: 14px;
    font-weight: 400;
    line-height: 16.94px;
    text-align: center;

    color: #121313;

    max-width: 739px;
}

.capsule__block-buttons{
    margin-top: 40px;

    display: flex;
    justify-content: center;
}

.capsule__block-button{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 252px;
    height: 55px;


    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;

    color: #FFFFFF;

    background: #121313;
    border-radius: 3px;

    transition: .3s linear;

    box-shadow: 0px 1px 2px 0px #0000001A;

    cursor: pointer;
}

.capsule__block-button-page{
    color: #121313;

    background: #FFFFFF;
}

.capsule__block-button:not(.capsule__block-button.capsule__block-button-page){
    margin-left: 54px;
    margin-right: 54px;
}

.capsule__block-button:hover{

}

.capsule__block-back{
    width: 100%;

    display: flex;
    justify-content: center;

    margin-top: 50px;
}

.capsule__block-back a{
    font-size: 14px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: center;
    color: #121313;

    text-decoration: underline !important;
}





@media screen and (max-width: 1680px){
    .upper__text{
        margin-right: 0;
    }
}


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

    .upper{
        padding-left: 20px;
        padding-right: 20px;
    }

    .upper__container{
        flex-direction: column;
        align-items: start;
    }

    .upper__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
    }

    .upper__text{
        font-size: 14px;
        font-weight: 400;
        line-height: 16.94px;
        text-align: left;

        margin-top: 20px;
    }


    .benefit__upper{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
    }

    .benefit__button{
        font-size: 14px;
        font-weight: 500;
        line-height: 15.48px;
        text-align: center;

        padding-top: 14px;
        padding-bottom: 14px;

    }

    .looks__title{
        margin-left: 20px;

        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;

    }

    .looks__photos{
        margin-top: 40px;
    }

    .capsule{
        padding-left: 0;
        padding-right: 0;
        padding-top: 60px;
    }

    .capsule__block{
        padding-top: 35px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }

    .capsule__block-title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
    }

    .capsule__block-text{
        margin-top: 40px;
    }

    .capsule__block-buttons{
        margin-top: 40px;

        flex-direction: column;
        align-items: center;
    }

    .capsule__block-button{
        margin-left: 0;
        margin-right: 0;

        width: 100%;

        font-size: 14px;
        font-weight: 500;
        line-height: 15.48px;

        padding-top: 14px;
        padding-bottom: 14px;
    }

    .capsule__block-button:not(.capsule__block-button.capsule__block-button-page){
        margin-top: 14px;
        margin-bottom: 14px;
    }
}

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



    .photos{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .looks__photos{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .benefit__block{
        padding: 28px 20px;
    }

    .benefit{
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .capsule__block-back{
        margin-top: 40px;
    }
}

@media screen and (max-width: 550px){
    .looks__photos{
        grid-template-columns: 1fr 1fr;
    }

    .benefit__text{

    }
}

.history__item-size{
    white-space: nowrap;
}

@media screen and (max-width: 374px){
    .history__item-row{
        flex-direction: column;
    }
}


.history__size-button{
    user-select: none;
}

.disabled {
    pointer-events: none; /* Чтобы кнопка не была кликабельной */
    opacity: 0.5;
}

.history__content{
    margin-top: 0 !important;
}

.history__item  .history__sides{
    border-top: 0;

}

.history__item:not(.history__item:first-child){
    margin-top: 0px;
}

.history__captions{
    margin-top: 60px;

    padding-bottom: 14px;
    border-bottom: 1px solid #121313;
}

