Magnetism of intermetallics