/* --- СЕТКА ПРОЕКТОВ (projects.css) --- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Оставляем 20px для ПК, так как блоки большие */
    gap: 12px; 
    width: 100%;
    margin: 12px 0 0 0 !important; 
}

.project-category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 6px solid #eee;
    display: flex;
    flex-direction: column;
}

/* СТИЛЬ ДЛЯ КРУЖКОВ (Иконок) */
.project-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.project-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.project-category-card h3 { 
    margin: 0; 
    font-size: 1.15rem; 
    color: var(--text-color);
}

.project-category-card p {
    font-size: 0.85rem; 
    color: #666; 
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-item-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    margin-top: auto; 
}

.project-item-list li { margin-bottom: 8px; }

.project-item-list a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.project-item-list a:hover { 
    background: #eee; 
    color: #000; 
    transform: translateX(5px);
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
        /* На мобилке ставим 12px или 15px, чтобы не было слишком широко */
        gap: 12px;
    }
}
