One of my current jobs is to design hardened electronics for lightning immunity.
I use some of the more aggressive specs for my tests.
For instance, my surge generator delivers 4kV pulses with a 330Amp maximum level in common mode, and 2kV pulse with 1000Amp in differential mode. These are the kinds of levels measured on actual utility lines during nearby strikes. This is NOT the level if such a strike lands DIRECTLY on your cord.
To pass such a near-strike; it takes maybe $20 or so of raw parts cost.
Note that using a isolation transformer is highly effective in stopping most all common mode surges. This leaves then, the normal mode surges that can be effectively clamped using easily available surge suppressors. Best done in two stages, at the panel and then at the load.
Yes, an actual bolt of lightning contains an overwhelming amount of energy, but unless a direct strike is taken, mitigation is not particularly difficult, for even nearby strikes.
For completeness; there are effective methods to handle direct strikes to buildings with electronics within, but, not to the actual electronics directly. Lots of grounding and copper will be required to divert the energy to somewhere less expensive.