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

<?php get_header(); ?>

<section class="download">
<div class="container">
	<h1 class="h1"><?php the_field( 'zagolovok_pc' ); ?></h1>
	<p class="download__in-p"><?php the_field( 'tekst_pod_zagolovkom_pc' ); ?></p>
	<a href="<?php the_field( 'ssylka_na_knopkah', 'option' ); ?>" class="setup__button animated-fade-in">Установить через Telegram</a>
	<div class="download__b">
		<h3>Выберите платформу:</h3>
		<div class="download__item">
			<div class="download__item-img">WIN</div>
			<div class="download__item-text">
				<h4>Windows</h4>
				<p>Windows 10/11 • 64-bit</p>
                <p>Версия 3.2.1 • 45 МБ	</p>				
			</div>
			<div class="download__item-button">
				<a href="<?php the_field( 'ssylka_na_knopkah', 'option' ); ?>" class="download__item-but">Скачать для Windows</a>
			</div>
		</div>
		
		<div class="download__item">
			<div class="download__item-img">MAC</div>
			<div class="download__item-text">
				<h4>macOS</h4>
				<p>macOS 10.15+ • Universal</p>
                <p>Версия 3.2.1 • 52 МБ	</p>				
			</div>
			<div class="download__item-button">
				<a href="<?php the_field( 'ssylka_na_knopkah', 'option' ); ?>" class="download__item-but">Скачать для Mac</a>
			</div>
		</div>
	</div>	
	</div>
</section>

<section class="pc-why-us">
<div class="container">
	<h2 class="h2"><?php the_field( 'zagolovok_pc_why-us' ); ?></h2>
	<div class="pc-why-us__block">
		<?php if ( have_rows( 'kartochki_pc' ) ) : ?>
	<?php while ( have_rows( 'kartochki_pc' ) ) : the_row(); ?>
		<div class="pc-why-us__card">
			<div class="pc-why-us__ic"><?php the_sub_field( 'tekst_v_ikonke_pc' ); ?></div>
			<h3><?php the_sub_field( 'zagolovok_kartochki_pc' ); ?></h3>
			<p><?php the_sub_field( 'tekst_v_kartochke_pc' ); ?></p>
		</div>
		<?php endwhile; ?>
<?php else : ?>
	<?php // No rows found ?>
<?php endif; ?>
	</div>
	</div>
</section>

<?php get_footer(); ?>