<?php get_header(); ?>
<?php
$subtitle = get_field('subtitle_404','options');
$title = get_field('title_404','options');
$button_404 = get_field('button_404','options');
?>
<section class="error-404-section">
    <div class="wrap">
        <?php if($subtitle):?>
            <p class="large"><?= $subtitle ?></p>
        <?php endif;?>
        <?php if($title):?>
            <h1><?= $title ?></h1>
        <?php endif;?>
        <?php if($button_404):?>
            <a class="btn btn__primary btn__primary__small" href="<?= $button_404['url']?>" target="<?= $button_404['target'] ? '_blank' : ''?>"><?= $button_404['title']?></a>
        <?php endif;?>
    </div>
</section>

<?php get_footer();