/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} */

.all-model .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    /* Регулируем расстояние между блоками */
    padding: 20px;
    align-items: flex-start;

}

.all-model .car-block {
    flex: 1;
    min-width: 200px;
    /* Минимальная ширина блока */
    /* max-width: 25%; */
    max-width: 200px;
    /* Чтобы было 4 блока на полной ширине */
    padding: 15px;
    text-align: left;
}

.all-model h3 {
    margin-bottom: 10px;
    color: #000;
    font-weight: normal;
    font-size: 24px;
}

.all-model .car-block a {
    font-size: 16px;
    color: #838383;
    display: block;
    text-decoration: none;
    padding: 5px 0;
}


/* Новые */

/* h2 {
    font-weight: 500;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -0.02rem;
    text-align: left;
    color: #000;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
} */

.block-caption {
    color: #000;
    font-weight: normal;
}

.block-description {
    color: #838383;
}

.block-description p {
    margin-bottom: 15px;
}




/* Название */
.container-name {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
    width: 100%;
    padding-bottom: 32px;
    border-bottom: 1px solid #cecdcd;
    justify-content: space-between;
    /* По умолчанию */
}

.left-content-name {
    order: 1;
    display: flex;
    flex-direction: column;
}

.right-content-name {
    order: 2;
    margin-left: 90px;
}

.right-content-name img {
    object-fit: contain;
    /* max-width: 100%; */
    max-height: 100%;
    border-radius: 20px;
}

.text-name {
    margin-top: auto;
    /* Прижимает текст к нижнему краю */
}

/* Меняем порядок при уменьшении экрана */
@media (max-width: 768px) {
    .container-name {
        flex-direction: column;
        /* Делаем элементы вертикальными */
    }

    .right-content-name img {
        max-width: 100%;
    }

    .right-content-name {
        margin: auto;
        order: 1;
        /* Перемещаем вверх */
    }

    .left-content-name {
        order: 2;
        margin-top: 15px;
        /* Перемещаем вниз */
    }
}

/* Описание */

.container-text {
    display: flex;
    align-items: center;
    margin: 90px 0px;
    /* Выравнивание по вертикали */
}

.container-left-text {
    flex: 0 1 auto;
    margin-right: 50px;
    align-items: center;
    align-self: flex-start;
    /* Занимает доступное пространство */
}

.container-left-text img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
}

.container-right-text {
    flex: 1;
    /* Занимает доступное пространство */
    /* text-align: right;  */
}

.button-href-text {
    border: 1px solid #080707;
    border-radius: 22px;
    padding: 9px 12px;
    color: #000;
    font-size: 18px;
    letter-spacing: -0.00em;
    text-align: center;
    /* margin-right: calc((100vw - 1215px) * 0.5); */
    position: relative;
    top: -6px;
    transition: 0.3s ease-out all;
    margin-top: 33px;
    float: left;
}

.button-href-text:hover {
    border: 1px solid #000;
    background-color: #000;
    color: #FFFFFF;
    text-decoration: none;
}

.button-container span {
    float: left;
    margin-top: 33px;
    font-size: 22px;
    padding: 9px 0px;
}

.right {
    float: right;
    margin-right: 5px;
}

.button-href-text a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* Меняем порядок при уменьшении экрана */
@media (max-width: 768px) {
    .container-text {
        flex-direction: column;
        /* Делаем элементы вертикальными */
    }

    .container-left-text {
        margin: auto;
    }

    .container-right-text {
        margin-top: 15px;
    }
}



/* .service-tree {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-tree[title]::before {
    content: attr(title);
    display: block;
    padding: 15px 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.service-name {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

.service-price {
    font-size: 16px;
    color: #d32f2f;
    font-weight: bold;
    margin-left: 15px;
    white-space: nowrap;
}

.parent>.service-item {
    position: relative;
    cursor: pointer;
}

.parent>.service-item::after {
    content: ">";
    color: #999;
    position: absolute;
    right: 20px;
}

.parent.expanded>.service-item::after {
    content: "∨";
}

.parent>ul {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fafafa;
}

.parent.expanded>ul {
    display: block;
}

.parent>ul>li>.service-item {
    padding-left: 35px;
}

.parent>.service-item>.service-name>.service-price,
.parent>.service-item>.service-price {
    display: none;
} */