.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 2.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.project-card {
    height: 440px;
    overflow: hidden;
}

.project-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-image-wrapper {
    width: 350px;
    height: 350px;
    background: #f5f5f5;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-content {
    padding: 0.6rem 0;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 0.2rem 0;
    line-height: 1.1;
    color: #333;
}

.project-description {
    color: #555;
    line-height: 1.1;
    font-size: 1rem;
    font-weight: 100;
    margin: 0 0 1rem 0;
}

.project-link {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Мобильные устройства в вертикальной ориентации - одна колонка */
@media (max-width: 768px) and (orientation: portrait) {
    .projects-grid {
        grid-template-columns: 280px;
        gap: 1.5rem;
        justify-content: center;
    }

    .project-card {
        width: 280px;
        height: auto;
    }

    .project-image-wrapper {
        width: 280px;
        height: 300px;
    }

    .project-title {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
    }
}

/* Мобильные устройства в горизонтальной ориентации - две колонки по 300px */
@media (max-width: 768px) and (orientation: landscape) {
    .projects-grid {
        grid-template-columns: repeat(2, 280px);
        gap: 1rem;
        justify-content: center;
    }

    .project-card {
        width: 250px;
        height: 280px;
    }

    .project-image-wrapper {
        width: 250px;
        height: 200px;
    }

    .project-title {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .project-description {
        font-size: 0.8rem;
    }
}

