<?php
/*
 * Template name: Страница Скачать
 */
?>

<?php get_header(); ?>

<section class="setup">
<div class="container">
	<h1 class="setup__title"><?php the_field( 'zagalovok_sk_1' ); ?></h1>
	<p class="setup__text"><?php the_field( 'tekst_pod_zagolovkom_sk_1' ); ?></p>
	<a href="<?php the_field( 'ssylka_na_knopkah', 'option' ); ?>" class="setup__button animated-fade-in">Установить через Telegram</a>
	</div>
</section>

<section class="plat-down">
<div class="container">
	<div class="plat-down__wrapper">
		<?php if ( have_rows( 'kartochki_platform_sk_1' ) ) : ?>
	<?php while ( have_rows( 'kartochki_platform_sk_1' ) ) : the_row(); ?>
		<div class="plat-down__item">
			<?php if (get_sub_field( 'lejbl' )) { ?>
			<div class="plat-down__badge"><?php the_sub_field( 'lejbl' ); ?></div>
			<?php } ?>
			<div class="plat-down__top">
				<div class="plat-down__icon"><?php the_sub_field( 'tekst_v_ikonke_sk_1' ); ?></div>
				<h3><?php the_sub_field( 'nazvanie_platformy_sk_1' ); ?></h3>
				<p><?php the_sub_field( 'operaczionnaya_sistema_sk_1' ); ?></p>
			</div>
			<div class="plat-down__main">
				<ul>
					<?php if ( have_rows( 'spisok_preimushhestv_sk_1' ) ) : ?>
			<?php while ( have_rows( 'spisok_preimushhestv_sk_1' ) ) : the_row(); ?>
					<li><?php the_sub_field( 'tekst_preimushhestva_sk_11' ); ?></li>
					<?php endwhile; ?>
		<?php else : ?>
			<?php // No rows found ?>
		<?php endif; ?>
				</ul>
			</div>			
		</div>
		<?php endwhile; ?>
<?php else : ?>
	<?php // No rows found ?>
<?php endif; ?>
		
	</div>
	</div>
</section>

<section class="pc-why-us">
<div class="container">
	<h2 class="h2"><?php the_field( 'zagolovok_bloka_sk' ); ?></h2>
	<div class="pc-why-us__sinh-block">
		<?php if ( have_rows( 'kartochki_bloka_sk' ) ) : ?>
	<?php while ( have_rows( 'kartochki_bloka_sk' ) ) : the_row(); ?>
		<div class="pc-why-us__sinh-item">
			<h3><?php the_sub_field( 'zagolovok_it_sk' ); ?></h3>
			<p><?php the_sub_field( 'tekst_it_sk' ); ?></p>
		</div>
		<?php endwhile; ?>
<?php else : ?>
	<?php // No rows found ?>
<?php endif; ?>
	</div>
	</div>
</section>

<?php get_footer(); ?>