<script src="https://smartcaptcha.yandexcloud.net/captcha.js" defer></script>
<fieldset>
  <legend>{{ text_captcha }}</legend>
  <div class="form-group required">
    {% if route|slice(0, 9) == 'checkout/' %}
      <label class="control-label">{{ entry_captcha }}</label>
      <div class="smart-captcha"
           data-sitekey="{{ site_key }}">
      </div>
      {% if error_captcha %}
        <div class="text-danger">{{ error_captcha }}</div>
      {% endif %}
    {% else %}
      <label class="col-sm-2 control-label">{{ entry_captcha }}</label>
      <div class="col-sm-10">
        <div class="smart-captcha"
             data-sitekey="{{ site_key }}">
        </div>
        {% if error_captcha %}
          <div class="text-danger">{{ error_captcha }}</div>
        {% endif %}
      </div>
    {% endif %}
  </div>
</fieldset>