A strange bug with resistances was found

I decided to experiment a little on a sorcerer with equipment. I changed all the equipment to unique. First I got 200 armor and 71% resistance to elements. Then 945 armor with 71% resistance, while HP dropped to 4600. It is interesting that the damage from elemental effects on the character increased sharply. It turned out to be impossible to pass the 55th pit. With 6k HP, 58% damage resistance and 1300 armor, less damage is received.
Do our elemental resistances still depend on armor?