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

.hello-page {
    width: 100%;
    height: 100vh;
    color: rgb(202, 200, 200);
    line-height: 1.5;
    font-size: 1.1rem;
    background-image: url("./assets/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.head {
    margin: 0 15rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(155, 155, 155);
}

.nav-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    padding: 0 10%;
}
.logo {
    width: 28vw;
    height: 9vh;
}

.nav-items {
    text-decoration: none;
    /* padding: 0 6rem; */
    color: rgb(202, 200, 200);
    letter-spacing: 0.08em;
    box-sizing: border-box;
}

.nav-items:hover {
    cursor: pointer;
    color: white;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10rem 15rem;
}

.main-text {
    text-transform: uppercase;
    color: white;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
}

.description {
    margin: 1.5rem 0;
}

.button {
    text-transform: uppercase;
    background-color: rgb(73, 114, 226);
    color: white;
    font-size: 1rem;
    padding: 1.2em;
    border: none;
    border-radius: 8px;
    text-decoration: none;
}

.button:hover {
    cursor: pointer;
    background-color: rgb(55, 91, 190);
    color: rgb(211, 211, 211);
}


/* Секция каталога */
.catalog-section {
    padding: 2rem 15rem; /* Выравниваем отступы по бокам, как у хедера и майна */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #1c2023 0%, #3a3f44 15%, #898989 100%)
    /* background-color: #222529; */
}

.catalog-title {
    font-size: 2rem;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Сетка для карточек (4 колонки) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Сама карточка */
.card {
    background: #2b3034;
    border: 1px solid rgba(155, 155, 155, 0.25); /* Тонкая рамка */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4), 
        0 1px 0px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Эффект приподнимания при наведении */
    border-color: rgba(73, 114, 226, 0.6);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6), 
        0 0 15px rgba(255, 255, 255, 0.1); 
    /* border-color: rgba(255, 255, 255, 0.15); */
}

/* Контейнер для картинки авто */
.card-image-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.card-img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Текстовый блок карточки */
.card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.card-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-type {
    font-size: 0.85rem;
    color: rgb(202, 200, 200);
    margin-top: 0.3rem;
}

.card-price {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    margin: 1rem 0;
}

/* Нижняя часть карточки */
.card-footer {
    margin-top: auto; /* Прижимает футер карточки к низу */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(155, 155, 155, 0.2);
    padding-top: 1rem;
}

.card-button {
    width: 100%;
    font-size: 1em;
    padding: 0.9em;
}








/* --- Стили модального окна --- */
.modal {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); /* Размытие заднего фона */
    align-items: center;
    justify-content: center;
}

/* Класс, который мы будем добавлять через JS для показа */
.modal.active {
    display: flex;
}

.modal-content {
    background: #2b3034;
    border: 1px solid rgba(155, 155, 155, 0.25);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: rgb(202, 200, 200);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-car-name {
    color: rgb(73, 114, 226); /* Выделяем авто синим цветом */
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(155, 155, 155, 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: rgb(73, 114, 226);
}

.modal-submit-btn {
    width: 100%;
    font-weight: 700;
    margin-top: 0.5rem;
}