Rendering grey image

Hello i can’t render my project in cycles, everything is set as in youtube tutorials…
I can easily render the viewport image but if i change it to viewport shading - with lights and shadows it jut renders black square and nothing happens? What can i do?

IMGUR BOTH SCREENSHOOTS LINK: https://imgur.com/a/XTICT35

Hi.

Are you using any HDRi - and is it correctly set up in your World?

I already tried rendering by pressing F12 shortcut - it works. But if i want to render it manually it stil doesnt work.

So, i fixed it but it doesnt work the way it should i guess.