I will answer you in English based on your previous message. As a friendly suggestion, posting in Polish may help your question reach a wider audience and increase the chances of receiving assistance from other community members.
Hi, @KamilDev
What you're seeing is how Surface handles cooling: the fan is controlled by firmware with temperature thresholds, not a user-adjustable curve, so it tends to kick in hard once a core hits roughly 70°C and stay at that level until things settle. Energy Saver limits CPU power, which delays when the fan starts, but it doesn't change the fan speed once it's running, which matches your two tests.
Here are some suggestions you can try:
Open the Surface app > Help & support and confirm firmware is "up to date." Microsoft has shipped several thermal and fan-control firmware updates for Snapdragon Surface Laptop 7 since launch, and some units ship with older firmware.
Settings > System > Power & battery > Power mode: keep it on Recommended for everyday work; Best performance raises the thermal ceiling and makes the fan busier.
Install the Surface Diagnostic Toolkit from the Microsoft Store and run the full check. If the fan or thermal sensor fails, you have a clear case for a warranty swap.
Check Task Manager for x86 apps running under emulation (PyCharm often is). The ARM64 build of PyCharm runs noticeably cooler.
Honestly, if the Toolkit passes, your unit is behaving like the others. The abrupt on/off is a design choice, not a defect, and there's no supported way to set a custom fan curve.
Reference: https://support.microsoft.com/surface/performance/fan-behavior-and-fan-noise-in-a-surface-device