I use Google Translate so I hope you understand then the next thing.
I replaced batteries in both remotes and in both the described problem still exists. While I was arranging things in the car, one of the keys was in the back of the trunk and the other key was in my pocket, and guess what? The car starts! So I made another attempt, I left one key in a hidden place in the trunk, I left the other key at home to make sure the car didn't open when there was a key in the trunk and I couldn't open it, after that I brought the key from home again and the car opened normally and started even when it was in my pocket.
It only confuses me even more, until now I thought the problem was the transmitter in the car, but now I don't think so. Maybe something disrupts the frequency? I'm at a loss again.
I hope you understand and I would be happy for more ideas
Thanks