Card-mod doesn't work correctly

Hello!

I had this construction in card-mod 2 and it worked perfectly.
After update to the version card-mod 3.2.2 it doesn’t work anymore (like any changes to h1 at all).

How can I change h1 tags now?
The construction which doesn’t work anymore:

...
    card_mod:
      style: |
...
        h1.card-header {
          font-size: 12px;
          margin: -15px 10px 0px;
          line-height: 15px;
          text-align: center;
        }

This is an example of the h1.card-header style which doesn’t change by the card-mod 3:
image

For Example I can change ‘–ha-card-header-font-size’ value in ‘ha-card’ style and this will change the text size in H1 tag too, but it’s a global change and I don’t want to change text size in all card (only for H1).

I’ve found that the problem exists in the card-mod versions 3.2.0 and higher.
Downgrading to the version 3.1.5 solved it.

I think it’s a big bug in the latest card-mod versions (which are mostly fixes for 2023.4 HA)

P.S.
My HA version is 2023.5.3