/* Стили для блока запчастей */
.zp-section {
    padding: 40px 0;
}

.zp-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.zp-section .section-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.zp-section .section-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 10px;
}

.zp-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.zp-item {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.zp-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.zp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zp-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zp-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    text-align: center;
}

.zp-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .zp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .zp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .zp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zp-section .section-header h2 {
        font-size: 24px;
    }
    
    .zp-section .section-header p {
        font-size: 14px;
    }
    
    .zp-item {
        height: 180px;
    }
    
    .zp-title {
        font-size: 12px;
    }
}