Aleks,
The data element code is running the first time it is called. In this case, it is called when the rule containing eVar51 = "%Carousel Button Name%" fires. Unfortunately, the way CSS selectors work results in the first instance of an element with a match to the CSS selector is read. In this case, "Plans & Pricing" is the text of the first element that matches the CSS selector.
In order to get around this, you'll likely need to use javascript to help DTM understand which element you're trying to capture.
Cheers,
Jantzen