.prodject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prodject-but {
    border-radius: 12px;
    font-weight: 300;
    font-size: 13px;
    padding: 9px 20px;
    background-color: rgb(31, 31, 31);
    color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
    margin: 10px 30px;
}

.prodject-title {
    font-size: 20px;
    font-weight: 500;
    text-align: left; 
    margin: 0px 30px;
}

.container-prodject {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 30px;
    padding: 0 20px;
}

.card-prodject {
    position: relative;
    background-color: #ccc; /* Placeholder color */
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.large-card {
    margin-bottom: 10px;
    width: 53%;
    padding-bottom: 60%; 
}

.small-card {
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 10px; 
}

.right-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44%;
}

.overlay {
    position: absolute;
    padding: 20px;
}

.card-Name {
    margin: auto;
    font-size: 42px;
    color: #E1E1E1;
    font-weight: bold;
}

.large-card {
    background-image: url('/Image/Белаз.jpg');
}

.small-card:nth-child(1) {
    background-image: url('/Image/2тэ25км.jpg');
}

.small-card:nth-child(2) {
    background-image: url('/Image/3ТЭ28.jpg');
}

@media (min-width: 961px) and (max-width: 1200px) {
    .container-prodject {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .large-card, .small-card {
        width: 100%;
        padding-bottom: 60%;
    }

    .right-cards {
        width: 100%;
        flex-direction: row;
    }

    .small-card {
        width: 49%;
        margin-bottom: 10px;
    }
}

@media (max-width: 960px) {
    .container-prodject {
        flex-direction: column;
        align-items: center;
    }

    .card-Name{
        font-size: 32px;
    }

    .large-card, .small-card {
        width: 100%;
        padding-bottom: 60%;
    }

    .right-cards {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .small-card {
        width: 49%;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .container-prodject {
        flex-direction: column;
        align-items: center;
    }

    .large-card, .small-card {
        width: 100%;
        padding-bottom: 60%;
    }

    .right-cards {
        width: 100%;
        flex-direction: column;
    }

    .small-card {
        width: 100%;
        margin-bottom: 10px;
    }

    .card-Name {
        font-size: 32px;
    }
}
