/* Основные стили */
.main-content {
    max-width: 1512px;
    margin: 0 auto;
    padding: 0 72px;
}

/* Вступление */
.intro {
    margin-bottom: 80px;
}

.intro-title {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 500;
    color: #333;
}

/* Проекты */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 31px;
    margin-bottom: 80px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 2px solid #d0d0d0;
    border-radius: 54.5px;
    padding: 38px 37px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #333;
}

.project-title {
    font-size: 30px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 34px;
    color: #333;
}

.project-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.project-img {
    width: 48%;
    height: 289px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-img-secondary {
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .main-content {
        padding: 0 40px;
    }
    
    .intro-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .projects {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-card {
        padding: 30px;
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }
    
    .project-title {
        font-size: 26px;
    }
    
    .project-img {
        height: 200px;
    }
    
    .project-img-secondary {
        display: none;
    }
    
    .project-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 20px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .project-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .project-img {
        height: auto;
        max-height: 250px;
    }
    
    .project-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {   
    .intro-title {
        font-size: 20px;
    }
}