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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0d;
    color: white;
    line-height: 1.6;
}

header {
    min-height: 75px;
    background: #050505;
    border-bottom: 1px solid #292929;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 7%;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: white;
}

nav a.active {
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

.hero {
    min-height: 650px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.8)
        ),
        url("images/hero.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 60px 10%;
}

.hero-content {
    max-width: 650px;
}

.subtitle {
    color: #ccc;
    letter-spacing: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 70px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content > p:not(.subtitle) {
    color: #ddd;
    font-size: 19px;
    margin-bottom: 35px;
}

.button,
.contact-form button {
    display: inline-block;

    background: white;
    color: black;

    border: none;
    padding: 14px 28px;

    text-decoration: none;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.button:hover,
.contact-form button:hover {
    background: #bbb;
    transform: translateY(-2px);
}

.welcome {
    max-width: 1100px;
    margin: auto;
    padding: 80px 30px;
    text-align: center;
}

.welcome h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.welcome > p {
    max-width: 750px;
    margin: auto;
    color: #bbb;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.feature {
    background: #151518;
    padding: 35px 25px;
    border: 1px solid #292929;
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-7px);
    border-color: #666;
}

.feature span {
    font-size: 35px;
}

.feature h3 {
    margin: 15px 0 10px;
}

.feature p {
    color: #999;
}

.page-title {
    text-align: center;
    padding: 80px 20px 50px;

    background: linear-gradient(
        180deg,
        #171719,
        #0b0b0d
    );
}

.page-title h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-title p {
    color: #aaa;
}

.models {
    max-width: 1100px;
    margin: auto;
    padding: 20px 30px 80px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.car-card {
    background: #151518;
    border: 1px solid #292929;
    overflow: hidden;
    transition: 0.3s;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: #666;
}

.car-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.car-info {
    padding: 25px;
}

.car-info h2 {
    margin-bottom: 12px;
}

.car-info p {
    color: #aaa;
    margin-bottom: 15px;
}

.car-info ul {
    list-style-position: inside;
    color: #ddd;
}

.car-info li {
    margin: 5px 0;
}

.history {
    max-width: 900px;
    margin: auto;
    padding: 20px 30px 80px;
}

.history-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;

    padding: 30px 0;
    border-bottom: 1px solid #292929;
}

.year {
    font-size: 28px;
    font-weight: bold;
}

.history-item h2 {
    margin-bottom: 10px;
}

.history-item p {
    color: #aaa;
}

.contact {
    max-width: 1000px;
    margin: auto;
    padding: 20px 30px 80px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: #aaa;
    margin-bottom: 30px;
}

.contact-line {
    padding: 15px 0;
    border-bottom: 1px solid #292929;
}

.contact-line strong {
    display: block;
    margin-bottom: 4px;
}

.contact-line span {
    color: #aaa;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
    background: #151518;
    border: 1px solid #333;
    color: white;

    padding: 13px;
    margin-bottom: 20px;

    font-family: inherit;
    font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #888;
}

.contact-form button {
    align-self: flex-start;
}

footer {
    background: #050505;
    border-top: 1px solid #292929;

    text-align: center;
    padding: 25px;

    color: #777;
    font-size: 14px;
}

@media (max-width: 800px) {

    header {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        min-height: 550px;
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .features,
    .models,
    .contact {
        grid-template-columns: 1fr;
    }

    .history-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-title h1 {
        font-size: 38px;
    }
}
