tent = 'Отлично!';
      } else {
        input.classList.add('text-field__input_invalid');
        input.nextElementSibling.textContent = input.validationMessage;
      }
    }

    const checkValidityAll = () => {
      const inputs = form.querySelectorAll('input');
      inputs.forEach((input) => {
        checkValidity(input);
      });
    }

    const onCheckValidity = (e) => {
      const target = e.target;
      if (!target.classList.contains('text-field__input')) {
        return;
      }
  