<!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head itemscope itemtype="https://schema.org/WPHeader">
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="zen-verification" content="xdaKRGoPCQTgRYUKZ7tBq2pDm8JxN4zVv8KxInVPCyE11AQGYpdnVL5ocisUY6w7" />
    <meta name="google-site-verification" content="wKVjdTPQrw11PE9o4Blxqv7qbdFmxarn8ez4fCJd_po" />
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="manifest" href="/site.webmanifest">
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">
    <meta name="yandex-verification" content="209d13da5a697e41" />
    <?php wp_head(); ?>
    <!-- Yandex.Metrika counter -->
<script type="text/javascript" >
   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
   m[i].l=1*new Date();
   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

   ym(96621494, "init", {
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true
   });
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/96621494" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W6Z5FN8Z');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W6Z5FN8Z"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
</head>


<body <?php body_class(); ?>>
    <?php wp_body_open(); ?>
    <div id="app">
        <?if (function_exists('krutilka_placement')):?>
            <div class="banner banner--header desktop">
                <?=krutilka_placement( 'top-desktop' );?>
            </div> 
            <div class="banner banner--header mobile">
                <?=krutilka_placement( 'top-mob' );?>
            </div>
        <?endif?>       
        <header class="header-rfo">
            <div class="container">
                <div class="header__inner_rfo">
                    <div class="header-rfo-line">
                    <?php get_template_part('rfo/logoline'); ?>
    </div>
        
    <form action="https://wordpress.org/search/" method="get" target="_blank">
  <div class="search-container-rfo desktop">
    <input class="search-input-rfo" type="text" name="q" placeholder="Поиск..." required>
    <button type="submit" class="search-icon-rfo">
        <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path fill-rule="evenodd" clip-rule="evenodd" d="M14 6.77778C10.5636 6.77778 7.77778 9.56356 7.77778 13C7.77778 16.4364 10.5636 19.2222 14 19.2222C17.4364 19.2222 20.2222 16.4364 20.2222 13C20.2222 9.56356 17.4364 6.77778 14 6.77778ZM6 13C6 8.58172 9.58172 5 14 5C18.4183 5 22 8.58172 22 13C22 17.4183 18.4183 21 14 21C9.58172 21 6 17.4183 6 13Z" fill="black" />
            <path fill-rule="evenodd" clip-rule="evenodd" d="M18.2767 18.2767C18.6457 17.9078 19.244 17.9078 19.613 18.2767L23.7233 22.387C24.0922 22.756 24.0922 23.3543 23.7233 23.7233C23.3543 24.0922 22.756 24.0922 22.387 23.7233L18.2767 19.613C17.9078 19.244 17.9078 18.6457 18.2767 18.2767Z" fill="black" />
        </svg>
    </button>
  </div>
</form>

    </div>
    <div>
                    <nav class="header-rfo-menuline desktop">
                        <?php get_template_part('rfo/menu-rfo'); ?>                        
                    </nav>
                    <div class="header__burger">
                            <img src="<?= get_asset('/images/burger.svg') ?>" alt="" />
                            <img src="<?= get_asset('/images/burger_close.svg') ?>" alt="" />
                        </div>
                </div>    
        </header>
        <main class="main">
            <?php if (function_exists('yoast_breadcrumb') && !is_front_page()) : ?>
                <div class="breadcrumbs">
                    <div class="container">
                        <?php yoast_breadcrumb('<div class="breadcrumbs__list">', '</div>'); ?>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (is_front_page()) : ?>
                <div class="hero">
                    <div class="container hero__container">
                        <div class="hero__inner">
                            <?php get_template_part('partials/pinned-post'); ?>
                            <div class="most-read hero__most-read">
                                <div class="most-read__inner">
                                    <p class="most-read__title subtitle-20">Главное</p>
                                    <div class="most-read__links">
                                        <?php get_template_part('partials/most-read-posts'); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="menu">
                    <div class="container">
                        <div class="menu__inner">
                            <?php  get_template_part('partials/category-menu'); ?>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
            <?php if (!is_404() && !is_500()) : ?>
            <div class="container">
                
                    
            <? endif; ?>