<?php get_header(); 
$gallery = get_field('gallery');

 ?>
<section class="section about">
    <div class="container">
        <div class="services-row">
            <div class="breadcrumbs">
                <?php if(function_exists('bcn_display')) { bcn_display(); }?>
            </div>
            <?php if (have_posts()) { while (have_posts()) { the_post();  
            if ( has_post_thumbnail() ) { 
                        $url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'post');
                        $thmb = $url[0];
                          } else {
                            $thmb = TEMPLATE_DIR . "/img/main/placeholder.webp";
                      } ?>
                <div class="about-body">
                        <div class="about-top">
                            <h1 class="about__title">
                                <?php echo get_field('alt_tit') ? get_field('alt_tit') : the_title()?>   
                            </h1>
                            <div class="application-top__text">
                                <?php echo get_field('alt_desc') ? get_field('alt_desc') : '';?>   
                            </div>
                        </div>
                        <div class="about-content">
                            <div class="about-left" data-aos="fade-right" data-aos-duration="1200">
                                <?php if ($url) { ?><img class="page-thumb" src="<?php echo $thmb; ?>" alt="<?php the_title();?>"><?php } ?>
                            </div>
                            <div class="about-right">
                                <div class="about__text">
                                    <?php the_content()?>
                                </div>
                            </div>
                        </div>
                        <div class="about-bottom">
                            <div class="about-block">
                                <div class="about-block__top">
                                        <span class="about-block__number" data-target-count="2018">
                                            0
                                        </span>
                                    <span class="about-block__circle"></span>
                                </div>
                                <div class="about-block__content">
                                    <p>
                                    Year of foundation of Etilaцетат LLC
                                    </p>
                                </div>
                            </div>
                            <div class="about-block">
                                <div class="about-block__top">
                                        <span class="about-block__number" data-target-count="99.99">
                                            0
                                        </span>
                                    <span class="about-block__circle"></span>
                                </div>
                                <div class="about-block__content">
                                    <p>
                                    % Content of main substance
                                    </p>
                                </div>
                            </div>
                            <div class="about-block">
                                <div class="about-block__top">
                                        <span class="about-block__number" data-target-count="30000">
                                            0
                                        </span>
                                    <span class="about-block__circle"></span>
                                </div>
                                <div class="about-block__content">
                                    <p>
                                    tons Annual production capacity
                                    </p>
                                </div>
                            </div>
                            <div class="about-block">
                                <div class="about-block__top">
                                        <span class="about-block__number" data-target-count="8">
                                            0
                                        </span>
                                    <span class="about-block__circle"></span>
                                </div>
                                <div class="about-block__content">
                                    <p>
                                    countries where our products are supplied
                                    </p>
                                </div>
                            </div>
                        </div>

            </div>
        </div>
    </div>
</section>
<?php if ($gallery) {?>      
<section class="section certificates">
            <div class="container">
                <div class="certificates-row">
                    <div class="certificates-top">
                        <h2 class="certificates-top__title">
                        <?php echo get_field('gal_tit') ? get_field('gal_tit') : 'Галерея';?>
                        </h2>
                        <div class="certificates-top__text">
                        <?php echo get_field('gal_desc') ? get_field('gal_desc') : '';?>
                           
                        </div>
                    </div>
                    <div class="certificates-slider slider-container">
                        <div class="swiper-wrapper">
                            <?php foreach ($gallery as $g) { 
                                $img = $g['url'];
                                $gthumb = $g['sizes']['medium_large']; ?>
                            <div class="certificates-block swiper-slide">
                            <a data-glightbox="images-gallery" class="glightbox" href="<?php echo $img; ?>" class="">
                                <img src="<?php echo $gthumb; ?>" alt=" <?php echo get_field('gal_tit') ? get_field('gal_tit') : 'Галерея';?>">
                            </a>

                            </div>
                            <?php  } ?>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <?php } ?>
        <section class="section laboratory">
            <div class="laboratory-row">
                <div class="laboratory-left">
                        <div class="laboratory-content">
<p>Etilaцетат LLC is a unique example of the successful transformation of a traditional enterprise into a modern, knowledge-intensive holding. We do not just produce chemical products; we create a closed-loop ecosystem for the deep processing of agricultural raw materials.</p>
<p>Our biochemical cluster ensures maximum production efficiency with low cost and minimal environmental impact. This allows us to offer the market not only a flagship product - ethyl acetate of the highest purity - but also a whole portfolio of sought-after solutions.</p>
<p>Today, we not only meet the current needs of the market but are also actively investing in the future, developing new projects such as the production of fodder yeast, carbon dioxide, and citric acid. Etilaцетат LLC represents over 30,000 tons of high-quality products per year, hundreds of jobs, and confidence in the sustainable development of the domestic industry.</p>
                    </div>
                </div>
                <div class="laboratory-right" data-aos="fade-left" data-aos-duration="1200">
                    <img src="<?php echo TEMPLATE_DIR; ?>/img/main/laboratory01.jpg" alt="">
                </div>
            </div>
        </section>
<?php include_once('tpl-footerform.php'); ?>
<?php }} ?>
<?php get_footer(); ?>

