.modal-product{
    position: fixed;
    padding: 40px;
    height: 100%;
    width: 100%;
    z-index: 99999;
    top: 0;
    left: 0;
    display: none;
}

.modal-product.active{
    display:block;
}



.modal-product:before{
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
    background-color: rgba(0,0,0,.5);
    content: "";
    left: 0;
    top: 0;
}

.modal-product__container {
    position: relative;
    border-radius: 15px;
    box-shadow: 0px 30px 20px 0px rgba(0, 37, 93, 0.15);
    background-color: #fff;
    z-index: 20;
    height: 100%;
    display: flex;
    overflow: hidden;
    
}

.modal_button {
    position: absolute;
    top: 88%;
    left: 50%;
    font-size: 20px !important;
    transform: translateX(-50%);
}

.modal-product__container::-webkit-scrollbar { width: 7px; height: 3px;}
.modal-product__container::-webkit-scrollbar-button {  display: none; }
.modal-product__container::-webkit-scrollbar-track {  background-color: rgba(0,0,0,1);}
.modal-product__container::-webkit-scrollbar-track-piece { background-color: #ffffff;}
.modal-product__container::-webkit-scrollbar-thumb { height: 50px; background-color: rgba(0,0,0,1); border-radius: 10px;}
.modal-product__container::-webkit-scrollbar-corner { background-color: #999;}}
.modal-product__container::-webkit-resizer { background-color: #666;}

.modal-product__content{
    position: relative;
    overflow: auto;
    display: block;
    height: 100%;
    width: 75%;
    padding: 48px;
}

.modal-product__content::-webkit-scrollbar { width: 5px; height: 5px;}
.modal-product__content::-webkit-scrollbar-button {  display: none; }
.modal-product__content::-webkit-scrollbar-track {  background-color: rgba(0,0,0,1);}
.modal-product__content::-webkit-scrollbar-track-piece { background-color: #ffffff;}
.modal-product__content::-webkit-scrollbar-thumb { height: 50px; background-color: rgba(0,0,0,1); border-radius: 10px;}
.modal-product__content::-webkit-scrollbar-corner { background-color: #999;}}
.modal-product__content::-webkit-resizer { background-color: #666;}

.modal-product__img {
    width: 40%;
    overflow: hidden;
    position: relative;
}

.modal-product__img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 15px 0px 0 15px;
}

.card-list__title{
    font-weight: bold;
    color: #000000;
    padding-bottom: 8px;
    font-size: 18px;
}

.card-list__text{
    color: #555555;
    font-size: 14px;
    
}

.card-list__container{
     display: flex;
     flex-direction: row;
    flex-wrap: wrap;
    margin: -20px;
}
.card-list__container .card-list__item{
    width: calc(100%/2);
    padding: 20px;
}

.modal-product__title{
    display: flex;
    margin-bottom: 40px;
}
.modal-product__name{
    flex: 1;
    text-transform: uppercase;
    font-weight: bold;
    color: #000000;
    font-size: 24px;
    padding-right: 32px;
}


.modal-product__button {
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #000000;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999999;
}

.modal-product__button:before {
    position: relative;
    content: '';
    display: block;
    background-image: url(../images/krest.png);
    background-size: auto 100%;
    width: 70%;
    height: 70%;
    left: 15%;
    top: 15%;
}

.modal-product__button:hover {
    border-color: rgb(0,0,0);
    background-color: rgb(0,0,0);
}

.modal-product__button:hover:before {
    background-position: 100% 0;
}

.modal-product_mobile {
    position: absolute;
    right: 40px;
    top: 38px;
    z-index: 999999;
    display: none;
}

.modal-product__table{
    border: none;
    table-layout: fixed;
    width: 100%;
    color:#000000;
    width: auto;
    min-width: 100%;
}

.modal-product__table-container{
    overflow: auto;
    margin: 40px 0;
}

.modal-product__table-container::-webkit-scrollbar { width: 5px; height: 5px;}
.modal-product__table-container::-webkit-scrollbar-button {  display: none; }
.modal-product__table-container::-webkit-scrollbar-track {  background-color: rgba(0,0,0,1);}
.modal-product__table-container::-webkit-scrollbar-track-piece { background-color: #ffffff;}
.modal-product__table-container::-webkit-scrollbar-thumb { height: 50px; background-color: rgba(0,0,0,1); border-radius: 10px;}
.modal-product__table-container::-webkit-scrollbar-corner { background-color: #999;}}
.modal-product__table-container::-webkit-resizer { background-color: #666;}

.modal-product__tr{
    background-color: #f1f1f1;
    text-align: center;
    
}

.modal-product__tr td{
    padding: 14px 10px;
}

.modal-product__head th{
    padding: 14px 20px;
    white-space: nowrap;
}

.modal-product__tr:nth-child(odd){
    background-color: #ffffff;
}
.modal-product__head{
    background-color: #f1f1f1;
    text-transform: uppercase;
    text-align: center;
}

/*
 * Доп. хрень
 */

.modal-product__step {
    margin-bottom: 32px;
}

@media(max-width:991px){
    .modal-product__container {
        flex-direction: column;
        overflow: auto;
    }
    .modal-product__img {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding-top: 66.75%;
        
    }
    
    .modal-product__img img {
        object-fit: cover;
        border-radius: 15px 15px 0 0px;
        position: absolute;
        left:0;
        top:0;
    }
    .modal-product__content{
        width: 100%;
        overflow:visible;
        padding: 32px;
    }

    .modal-product__img {
        padding-top: 66.75%;
    }

    .modal-product_mobile{
        display: block;
    }

    .modal-product_pc{
        display: none;
    }
}

@media(max-width:768px){
    .card-list__container{
        display: flex;
        flex-direction: column;
       flex-wrap: wrap;
       margin: -20px;
   }

   .card-list__container .card-list__item{
    width: 100%;
    padding: 20px;
}
}

@media(max-width:480px){
    .modal-product{
        padding: 0px;
    }

    .modal-product__container {
        border-radius: 0px;
    }

    .modal-product__img img {
        border-radius: 0px;
    }

    .modal-product_mobile{
        display: block;
        position: absolute;
        right: 24px;
        top: 24px;
        z-index: 99;
    }

    .modal-product__title{
        margin-bottom: 32px;
    }

    .card-list__container{
       margin: -10px -20px;
   }
   .card-list__container .card-list__item{
       padding: 10px 20px;
   }
}

/* модальное окно для формы */

.modal-window-buy {
    position: fixed;
    padding: 40px;
    height: 100%;
    width: 100%;
    z-index: 999999;
    top: 0;
    left: 0;
    display: none;
}

.modal-window-buy:before {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10;
    background-color: rgba(0,0,0,.5);
    content: "";
    left: 0;
    top: 0;
}

.modal-window-buy__container {
    position: relative;
    border-radius: 15px;
    box-shadow: 0px 30px 20px 0px rgba(0, 37, 93, 0.15);
    background-color: #fff;
    z-index: 40;
    height: 400px;
    width: 330px;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.modal-window-buy.active {
    display:block;
}

.modal-product_buy {
    position: absolute;
    right: 30px;
    top: 30px;
    z-index: 999999;
}