Відправити по sms: Macroscopic entanglement and phase transitions