Thank you for your support. I did everything as suggested. The display of the product on a product page is now as it should be, but this solution did not resolve the problem with product grid. Images are resized, but not in the proportions as defined in Woocommerce / Products / Display settings. Of course, I’ve cleared the cache.
Thank you for your assistance once more.