
.card-hover{
    bottom: auto;
    top: 0;

   
}


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

    text-transform: none;
}


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

    margin-top: 60px;
}

.history__container{
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

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

    color: #121313;

    display: flex;
    align-items: center;
}

.history__title img{
    display: inline;

    margin-right: 14px;
}

.history__item{
    margin-top: 60px;
}

.history__item-upper{
    display: grid;
    grid-template-columns: 767fr 587fr 6fr;

    align-items: center;

    column-gap: 14px;

    cursor: pointer;
}


.history__item-upper-number{
    font-size: 20px;
    font-weight: 400;
    line-height: 24.2px;
    text-align: left;

    color: #121313;

    white-space: nowrap;
}

.history__item-upper-number span{
    font-weight: 700;
}

.history__item-upper-date{
    font-size: 20px;
    font-weight: 400;
    line-height: 24.2px;
    text-align: left;
}

.history__content{
    margin-top: 60px;
}

.history__captions{
    display: grid;
    grid-template-columns: 172fr 364fr 232fr 269fr 206fr 116fr;


    column-gap: 10px;
}

.history__captions-part-text{
    font-size: 14px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: left;

    color: #121313;
}

.history__sides{
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 1px solid #121313;
    border-bottom: 1px solid #121313;

    display: grid;
    grid-template-columns: 172fr 364fr 232fr 269fr 206fr 116fr;

    align-items: center;

    column-gap: 14px;
}

.history__size{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    min-width: 45px;
    width: fit-content;
    height: 34px;

    border-radius: 3px;

    font-size: 16px;
    font-weight: 500;
    line-height: 24px;

    color: #FFFFFF;
    background: #121313;

    padding-left: 12px;
    padding-right: 12px;
}

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

    color: #BEBEBE;
}

.history__item-title{
    margin-top: 30px;

    font-size: 20px;
    font-weight: 500;
    line-height: 24.2px;
    text-align: left;

    color: #121313;

    max-width: 255px;
}

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

    border-radius: 3px;
    border: 1px solid #121313;

    padding: 5px 11px;

    width: fit-content;

    background: #F2F3F4;

    width: 107px;
    height: 34px;
}

.history__counter span{
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  
    text-align: left;
}

.history__counter-number{
  
}

.history__counter-button{
    cursor: pointer;
}

.history__item-price{
    font-size: 24px;
    font-weight: 500;
    line-height: 29.05px;
    text-align: left;

    color: #121313;

    white-space: nowrap;
}

.history__item-img{
    max-width: 132px;
    width: 100%;
}

.history__item-pack{
    width: 100%;
    max-width: 67px;
}

.history__arrow{
    transform: rotate(0deg);

    transition: .3s ease;
}




/* earlier */


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

    margin-top: 60px;

    width: 100%;
}

.earlier__container{
    width: 100%;
}


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

    color: #121313;


    padding-left: 40px;
}

.earlier__items{
    margin-top: 40px;

    display: flex;

    width: 100%;
}

.earlier__item-upper{
    position: relative;

    width: 100%;
}

.earlier__item-upper-upper{
    display: flex;
    align-items: center;
    justify-content: space-between;

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

    margin-top: 22px;

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
}

.earlier__item-upper-upper-tag{
    padding: 2px 8px;
    
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
    line-height: 14.52px;
    text-align: center;

    color: #F2F3F4;

    background: #121313;

    text-transform: uppercase;

    border-radius: 3px;
}

.earlier__item-text{
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;

    color: #121313;

    padding-left: 8px;
    padding-right: 8px;
    
}

.earlier__item-title{
    margin-top: 14px;
}

.earlier__item-outer, .earlier__item{
    width: 100%;
}

.earlier__item-price{
    font-weight: 600;
}

.earlier__item-upper-upper-like{
    cursor: pointer;

    transition: .3s linear;
}

.earlier__item-upper-upper-like:hover{
    filter: brightness(0%);
    -webkit-filter: brightness(0%);
}

.earlier__item-img{
    width: 100%;

    min-width: 196px;
}

.earlier__item-upper-upper-tag.hidden{
    visibility: hidden;
}




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

.history__item-row{
    display: none;
}

.history__item-price--mobile{
    display: none;
}

@media screen and (max-width: 991px){
    .cards4__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
    }

    .earlier__title{
        padding-left: 20px;
    }

    
    .history__container{
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}


@media screen and (max-width: 800px){
.history__item-price--mobile{
    display: block;
}

    .history__title{
        font-size: 24px;
        font-weight: 400;
        line-height: 29.05px;
        text-align: left;
    }



    .earlier__title{
        padding-left: 20px;

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

    }

    .history__item-row{
        display: flex;
        justify-content: space-between;

        margin-top: 24px;
        width: 100%;
        max-width: 205px;

        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        text-align: left;

        color: #bebebe;
    }

    .history__item-row span{
        color: #121313;
    }


    .earlier__item-title{
        margin-top: 10px;
    }

    .earlier__item-title,  .earlier__item-text{
        font-size: 10px;
        line-height: 15px;
    }

    .history__content{
        margin-top: 30px;
    }

    .history__captions{
        display: none;
    }

    .history__sides{
        border-bottom: none;
        border-top:  none;
    }

    .history__articles{
        font-size: 12px;
        font-weight: 500;
        line-height: 14.52px;
        text-align: left;
    }

    .history__item-title{
        font-size: 12px;
        font-weight: 500;
        line-height: 14.52px;
        text-align: left;

        margin-top: 24px;
    }

    .history__item-price{
        font-size: 14px;
        font-weight: 600;
        line-height: 16.94px;
        text-align: left;

        margin-top: 21px;
    }

    .history__part:nth-child(3),
    .history__part:nth-child(4),
    .history__part:nth-child(5),
    .history__part:nth-child(6){
        display: none;
    }

    .history__sides{
        display: flex;
    }

    .history__item-img{
        width: 92px;
    }

    .history__item-upper{

    }

    .history__item-upper-number{
        font-size: 16px;
        font-weight: 400;
        line-height: 19.36px;
        text-align: left;
    }

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

    }

    .history__item{
        margin-top: 40px;
    }
   
}

@media screen and (max-width: 375px){
    .history__item-upper-number{
        font-size: 12px;
        line-height: 14px;
    }

    .history__item-upper-date{
        font-size: 12px;
        line-height: 14px;
    }
}