@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import './reset.css';

:root {
    --primary-color:#770c0c;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
.title{
    font-size: 50px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
}
.title span{
    color: var(--primary-color);
}

/* Навигациялық тақта */

header {
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2) inset;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}
.logo {
    font-size: 24px;
    font-weight: 500;
}
.logo span {
    color:var(--primary-color)
}
.links {
    display: flex;
    gap: 30px;
}
.link {
    color: #000;
    font-weight: 500;
    transition: color 0.2s linear;
}
.link:hover {
    color:var(--primary-color);
}
.hero {
    margin-top: 120px;
    height: 80vh;
}
.car{
    width: 50%;
}
.hero_section{
     display: flex;
     justify-content: space-between;
     gap: 30px;
     /* align-items: center; */
}

.hero_title {
    font-size: 70px;
    font-weight: 600;
}

.text p {
    font-size: 20px;
    margin-top: 15px;
}

.action {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}



.btn {
    padding: 8px  20px;
    border-radius:50px;
    background-color:  var(--primary-color);
    color: #fff;
    font-size: 32px;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.5;
    color: #4287f4;
    border: 1px solid #4287f4;
    background-color: #fff;
}

/* Popular section */
.card  {
    overflow: hidden;
    width: 30%;
    border-radius: 20px;
    box-shadow: 0px 5px 10px 2px #635757;
}

.img_wrapper{
    height: 220px;
    overflow: hidden;

}

.card_title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.card img {
    border-radius: 20px 20px 0 0;
    height: 200px;
    object-fit: cover;
    width: 100%;

}

.card img:hover{
    transform: scale(1.1);
}

.card_text{
    padding: 20px;
}
.card_text p{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.popular_cars{
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.card_actions img {
    width: 40px;
    height: 40px;
}x

.card_actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*contact Us*/

.contact_us {
    margin-top: 150px;
}

.contact_form {
   margin: 0 auto;
   width: 50%;
   padding: 60px;
   box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2) inset;
   border-radius: 20px;
}

input,textarea {
    width: 100%;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #999;
    margin-bottom: 20px;
    font-size: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 500;
}

/*Review cards*/

/* Review cards */

.review_cards {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.review_card {
    text-align: center;
}

.review_text {
    margin-top: 20px;
}

.review_card img {
    width: 250px;
    height: 250px;
    border-radius: 100%;
}

.review_text {
    padding: 15px;
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2) inset;
    border-radius: 20px;
}
  
.review_text h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
} 

.review_text p {
    font-size: 14px;
    color: #999;
}

