The cost can be calculated as a percentage of the maximum. This way, both logistics and intelligence units, as well as basic units, will suffer equally.
This is actually a good idea. Perhaps a bit more sophisticated than just a percentage of the maximum, but the idea is good; it could also be implemented so that the cost decreases with each hero level.