Buck converter 3.3v (from usb 5v., 3.7v lipo)

Why do you need 3.3V? The ATmega will run @8MHz fine between 2.7V-5.5V.

For charging and protecting the Li-Ion: There are cheap protection ICs or modules on eBay