/* ======= Google font import -poppins ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* ====== Colors ======= */

:root {
    --red: #A50029;
    --white: #ffff;
    --black: #000;
    --gray: #858585;
    --light-gray: #F2F2F2;
    --main-width: 1500px;
}
body{
    height: 100vh;
}


/*============ start slider ====================*/


main{
    padding-top: 90px;
    margin: 0 3%;
}

main .slide_one{
    background-image: url(https://ru-japan.com/assets/interface_new/images/slider/new_slider/slider_01.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

main .slide_two{
    background-image: url(https://ru-japan.com/assets/interface_new/images/slider/new_slider/slider_02.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

main .slide_three{
    background-image: url(https://ru-japan.com/assets/interface_new/images/slider/new_slider/slide_3.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.swiper {
      width: 100%;
      height: 450px;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #444;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

/*============ end slider  ====================*/

/* ======== left menu  ===============*/
.menu_list{
    padding: 30px 0px;
    display: flex;/
}

.menu_list .left_menu{ 
    width: 20%;
    border: 1px solid var(--red);
    height: max-content;
}
.menu_list p{
    text-transform: uppercase;
    color: var(--red);
    padding: 10px 0px 0px 15px;
    margin-bottom: 0rem;
}

.car_brand{
    margin: 10px 15px 10px 15px;
    background-color: var(--light-gray);
    border-radius: 10px;
    a{
        text-decoration: none;
    }
    
}

/* car make and model */

.car_brand .car_make{
    padding: 10px;
}
.car_brand .car_make select{
    margin: 6px auto;
    color: var(--gray);
    font-size: 14px;
}

/* end car make and model */

/* car year */
.car_brand .car_year{
    display: flex;
    padding: 10px;
}

.car_brand .car_year select{
    margin: auto 3px ;
    color: var(--gray);
    font-size: 14px;
}

/* end car year */

/* car price */

.car_brand .car_price{
    display: flex;
    padding: 10px;
}

.car_brand .car_price select{
    margin: auto 3px ;
    color: var(--gray);
    font-size: 14px;
}


/* end car price */
.car_brand .car_vehicle_type{
    padding: 10px;
}

.car_brand .car_vehicle_type select{
    margin: auto 3px ;
    color: var(--gray);
    font-size: 14px;
}
/* car vehicle type */

.car_brand .car_stock{
    padding: 10px;
}

.car_brand .car_stock input{
    color: var(--gray);
    font-size: 14px;
}

/* end car vehicle type */

.car_brand .btn_search input{
    width: 100%;
    background-color: var(--red);
}

/* car brand logo */
.brand_logo{
    align-items: center;
    justify-content: start;
    display: flex;
}

.brand_logo img {
    height: 50px;
    padding: 10px;
}

.brand_logo span{
    color: var(--gray);
    font-size: 14px;
    padding-left: 18px;
}

/* end car brand logo */

hr{
    margin: 0 15px !important;
    border: 1px solid var(--red);
}

/* ============ end left menu ===============*/

/* ================ right menu =============*/
.car_menu_right{
    width: 80%;
}

.car_menu_right h3{
    text-transform: uppercase;
    color: var(--red);
    padding: 10px;
}

.car_list{
    padding: 15px;
    display: grid;
    gap: 1em;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
}

.car_list a{
    text-decoration: none;
    height: 300px;
}

.car_info{
    /* background-color: var(--gray); */
    color: var(--white);
    height:100%;
    width: 100%;
    border: 1px solid var(--gray);
    border-radius: 10px;
    overflow: hidden;
}
.car_info .image_car{
    width: 100%;
    height: 160px;
    object-fit: contain;
}
.car_detail{
    padding: 10px;
    font-size: 13px;
}
.car_detail .car_model_name span{
    color: var(--red);
}
.car_detail .ask_price{
    color: var(--red);
}
.car_detail span{
    display: flex;
    color: var(--gray);
}
.car_detail .engine_size{
    display: flex;
    span{
        padding-left: 30px;
    }
}
.car_detail .car_fule{
    display: flex;
    span{
        padding-left: 30px;
    }
}

.car_detail .car_sell_price{
    display: flex;
    justify-content: space-between;
}
.car_info .car_icon{
    width: 17px;
}


.info_contact{
    padding: 15px;
    display: flex;
    /* overflow: hidden;
    height: 400px; */
    .digalog_info{
        text-align: justify;
        span a{
            color: var(--red);
            text-decoration: none;
        }
    }
    .detail_info .icon img{
        width: 55px;
        height: 55px;
        
    }
    .image_info img{
        width: 400px;
        padding-left: 20px;
    }
    .detail_info{
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        .icon{
            display: flex;
            margin-bottom: 25px;
        }
        .text_info{
            padding: 0px 20px;
            h5{
                color: var(--red);
            }
            span{
                font-size: 15px;
            }
        }
    }
    
}



/* ================ end right menu =============*/
@media (min-width: 1582px ){
    main{
       margin: 0 10%;
    }
}

@media (max-width: 952px ){
    .menu_list{
        flex-direction: column;
        .left_menu{
            width: 100%;
        }
    }

    .car_menu_right{
        width: 100%;
    }
    .car_list{
        padding: 10px 0px;
        display: grid;
        gap: 1em;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .info_contact {
        width: 100%;
        padding: 15px;
        .digalog_info{
            width: 100%;
            text-align: justify;
        }
        .image_info .image_car{
            width: 100%;
            /* height: 500px; */
        }
    }

}

@media (max-width: 858px ){

    .mySwiper {
        height: 250px;
    }
    .brand_logo img {
        height: 32px;
        width: 45px;
        padding: 6px;
    }
    .brand_logo span {
        color: var(--gray);
        font-size: 12px;
        padding-left: 18px;
    }
    .car_brand{
        margin: 5px 15px 10px 15px;
    }
    .car_brand .car_make select {
        margin: 6px auto;
        color: var(--gray);
        font-size: 12px;
    }
    .car_brand .car_year select {
        margin: auto 3px;
        color: var(--gray);
        font-size: 12px;
    }
    .car_brand .car_price select {
        margin: auto 3px;
        color: var(--gray);
        font-size: 12px;
    }
    .car_brand .car_vehicle_type select {
        margin: auto 3px;
        color: var(--gray);
        font-size: 12px;
    }

    .car_brand .car_stock input {
        color: var(--gray);
        font-size: 12px;
    }
    .car_brand .btn_search input {
        width: 100%;
        font-size: 12px;
        background-color: var(--red);
    }
    .car_menu_right h3 {
        font-size: 17px;
    }
    .car_info .image_car{
        width: 100%;
        height: 160px;
        object-fit: contain;
        border-bottom: 1px solid var(--gray);
    }
    .info_contact{
        display: block;
        .detail_info{
            margin-top: 20px;
            display: flex;
            flex-direction: column;
        }

        .image_info img {
            width: 400px;
            padding-left: 0px;
        }
        .detail_info .icon img{
            width: 44px;
            height: 44px;
            
        }
        .digalog_info {
            width: 100%;
            text-align: justify;
            font-size: 12px;
            .text_info{
                padding: 0px 20px;
                h5{
                    color: var(--red);
                    font-size: 15px;
                }
                span{
                    font-size: 12px;
                }
            }
        }
        .image_info .image_car{
            width: 100%;
            height: 500px;
        }
    }
    
    
    
}


@media (max-width: 600px){
  
    .mySwiper {
        height: 200px;
    }

    .menu_list p {
        font-size: 13px;
        text-transform: uppercase;
        color: var(--red);
        padding: 6px 15px;
    }
    .info_contact{
        .image_info .image_car{
            width: 100%;
            height: 360px;
        }
    }

}



