

.projects {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 14.20rem;
}


.projects-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 43rem;
    text-align: center;
    margin: 5rem auto;
    text-align: center;
}


.projects-text {
    margin-bottom: 2.3rem;
}


.projects-title {
    font-weight: 600;
    font-size: 3rem;
    line-height: 3rem;
    Color: #000000;
}

.projects-info-text {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    Color: #000000;
    margin: 0;
}




.projects-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* По умолчанию 4 колонки */
    max-width: 88%;
    margin: 0 auto;
    gap: 1rem; /* Отступы между карточками */
    padding: 0;
}

@media (max-width: 1200px) { /* Средний экран (3 колонки) */
    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) { /* Планшеты (2 колонки) */
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) { /* Мобильные устройства (1 колонка) */
    .projects-container {
        grid-template-columns: 1fr;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%; /* Растягиваем карточку на всю ширину колонки */
    height: 308px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемненный фон */
    color: white;
    padding: 10px;
    text-align: center;
}
