Hello @lukash4,
Setting the exact dimensions is not correct, you must not set the height. This will be set automatically.
For example, if your image has a 350px width, then you need to set only the max width for the logo:350px, and the height would be auto.
Furthermore, you can put the CSS below in Customizing > Custom CSS/JS > CSS Code(without editing HTML):
#site-logo #site-logo-inner a img {
max-width: 350px !important;
width: 350px !important;
height: auto !important;
}
Please read this link for more information about the CSS/JS code on the customizer: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website.
Note: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).
I hope that helps.
Best Regards