Not sure if this is still the case, or not, but from experience buying from an apple store gives you a much longer warranty.
Please ask in store, however, as it’s not something they shout from the roof tops.
I bought a Macbook Air back in 2011 and like Triggers Broom, it’s had a new keyboard when certain keys kept sticking, a new screen and a new hard drive. All done under warranty, despite my original extended warranty having run out. I had to take it back to the original store but because of that the warranty was extended. Sorry but I can’t remember exactly how much the warranty was, although it has run out now.
As I say, please check with the store, as my experience may no longer be the case.
In case someone thinks my laptop is unreliable, having had all that work, it’s on all day, pretty much every day and goes everywhere with me. Not sure many other laptops would survive the abuse mine gets.