Smart contracts are collection of functions and as such they can not solve anything.
The functions of a smart contract are called by a decentralized app - Dapp. Dapp-s are well suited with dealing with digital items - like for ex. NFT-s.
Dapp-s are not well suited for real / physical world problems. The physical world has to interact with the Dapp to provide feedback on what is happening.
A while ago I did look at a marriage smart contract template - I find it ridiculous…