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

<?php get_header(); ?>

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

<section class="plat-d">
<div class="container">
	<div class="plat-grid-block">
		<?php if ( have_rows( 'kartochki_platform_sk_1' ) ) : ?>
	<?php while ( have_rows( 'kartochki_platform_sk_1' ) ) : the_row(); ?>
		<div class="plat-d-item">
			<?php if (get_sub_field( 'lejbl' )) { ?>
			<div class="tops"><?php the_sub_field( 'lejbl' ); ?></div>
			<?php } ?>
			<div class="top-plat-block">
				<div class="plat-ic-t"><?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-spis">
				<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="why-pc">
<div class="container">
	<h2 class="title-h2"><?php the_field( 'zagolovok_bloka_sk' ); ?></h2>
	<div class="sinh-block">
		<?php if ( have_rows( 'kartochki_bloka_sk' ) ) : ?>
	<?php while ( have_rows( 'kartochki_bloka_sk' ) ) : the_row(); ?>
		<div class="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(); ?>