*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header{
    background-color: #111;
    padding: 20px 0;
}

.logo{
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav ul{
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a{
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover{
    color: #e63946;
}

.hero{
    height: 100vh;
    background: url(./img/banner.jpg) center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content{
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 20px;
    max-width: 600px;
}

.hero-content h2{
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p{
    font-size: 18px;
    margin-bottom: 25px;
}

.btn{
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
    cursor: pointer;
}

.btn:hover{
    background-color: #c92f3c;
}

.section-title{
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.cars{
    padding: 80px 0;
}

.cars-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.car-card{
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.car-card img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.car-card h3{
    font-size: 20px;
    margin-bottom: 8px;
}

.car-card p{
    font-size: 14px;
    color: #666;
}

.car-card span{
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 15px;
    color: #e63946;
}

.featured-car{
    padding: 80px 0;
    background: #f8f8f8;
}

.featured-carousel{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-window{
    width: 650px;
    overflow: hidden;
}

.carousel-tracks{
    display: flex;
    transition: transform 0.4s ease;
}

.featured-card{
    min-width: 650px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
}

.featured-card img{
    width: 50%;
    min-width: 320px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.badge{
    position: absolute;
    background: #e63946;
    color: #fff;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

.featured-info{
    text-align: left;
    flex: 1;
}

.featured-info h3{
    font-size: 22px;
    margin-bottom: 8px;
}

.featured-info p{
    color: #666;
    margin-bottom: 15px;
}

.price{
    margin: 10px 0;
}

.old-price{
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.new-price{
    color: #e63946;
    font-weight: 600;
    font-size: 18px;
}

.carousel-btnn{
    background: #111;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
}

.carousel-btnn:hover{
    background: #e63946;
}

.prevt{
    margin-right: 15px;
}

.nexts{
    margin-left: 15px;
}

.carousel{
    padding: 80px 0;
    background-color: #f5f5f5;
}

.carousel .section-title{
    text-align: center;
    margin-bottom: 40px;
}

.carousel-container{
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.carousel-track{
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-track img{
    min-width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover{
    background: rgba(0, 0, 0, 0.85);
}

.carousel-btn.prev{
    left: 15px;
}

.carousel-btn.next{
    right: 
    15px;
}

.benefits{
    background-color: #111;
    color: #fff;
    padding: 80px 0;
}

.benefits-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit{
    background-color: #1c1c1c;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.4s ease;
}

.benefit:hover{
    transform: scale(1.05);
}

.benefit h3{
    margin-bottom: 15px;
    font-size: 20px;
}

.about{
    padding: 80px 0;
}

.about-content{
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image img{
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-text{
    max-width: 600px;
}

.about p{
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.contact{
    background-color: #f0f0f0;
    padding: 80px 0;
}

.contact-info{
    text-align: center;
    font-size: 16px;
}

.contact-info p{
    margin-bottom: 10px;
}

.footer{
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

@media(max-width: 500px){
    .header .container{
        flex-direction: column;
        gap: 15px;
    }

    .hero{
        height: 90vh;
    }

    .hero-content h2{
        font-size: 26px;
    }

    .section-title{
        font-size: 26px;
    }

    .carousel-track img{
        height: 260px;
        border-radius: 8px;
    }

    .carousel-btn{
        font-size: 22px;
        padding: 8px 12px;
    }

    .about-content{
        flex-direction: column-reverse;
    }

    .carousel-track{
        display: flex;
    }

    .featured-card{
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        flex: 0 0 100%;
        min-width: 105%;
        border-radius: 5px;
    }

    .featured-card img{
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .carousel-window{
        width: 100%;
        overflow: hidden;
    }

    .badge{
        top: 15px;
        left: 15px;
    }

    .featured-info{
        text-align: center;
        padding: 10px;
    }
}

/*
.featured-card{
        flex-direction: column;
        min-width: 293px;
        padding: 20px;
    }

    .carousel-window{
        width: 100%;
        overflow: hidden;
    }

    .badge{
        top: 15px;
        left: 15px;
    }

    .featured-info{
        text-align: center;
    }
*/