const items = Array.from(document.querySelectorAll('.cost__elem'));
for (let i = 0; i < items.length; i++) {
if (!items[i].className.includes('cost__elem--current')) {
items[i].classList.add('cost__elem--success');
} else {
return;
}
}