<section class="icon4">
      <div class="bg container">
            <div class="title-center">
            <?php the_field('tit-icon4', get_option('page_on_front')); ?> 
            </div>

        <?php if( have_rows('icon4', get_option('page_on_front')) ): ?>
          <?php while( have_rows('icon4', get_option('page_on_front')) ): the_row(); ?>


            <div class="block">
                  <i><img src="<?php the_sub_field('img'); ?>" alt=""></i>
                  <div>
                        <h4><?php the_sub_field('name'); ?></h4>
                        <p><?php the_sub_field('text'); ?></p>
                  </div>
            </div>
            

          <?php endwhile; ?>
          <?php endif; ?> 

      </div>
</section>