<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?><!doctype html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="yandex-verification" content="6aa2286cd1339676" />
    <meta name="google-site-verification" content="SxnCqqF2KfMczFG_8EY3r0rTBOglS_DJCi7zsUnVEr0" />
    <!-- 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?id=110392701', 'ym');

    ym(110392701, 'init', {ssr:true, webvisor:true, clickmap:true, ecommerce:"dataLayer", referrer: document.referrer, url: location.href, accurateTrackBounce:true, trackLinks:true});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/110392701" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<header class="site-header" data-site-header>
	<div class="site-header__top">
		<div class="site-header__inner site-header__inner--top">
			<span class="site-header__tagline">Торт на заказ в Севастополе - доставка и самовывоз</span>
			<a class="site-header__phone" href="<?php echo esc_url( sev_tort_site_phone_href() ); ?>"><?php echo esc_html( sev_tort_site_phone() ); ?></a>
		</div>
	</div>
	<div class="site-header__main">
		<div class="site-header__inner site-header__inner--main">
			<a class="site-header__logo" href="<?php echo esc_url( home_url( '/' ) ); ?>" aria-label="На главную">
				<img class="site-header__logo-image" src="<?php echo esc_url( sev_tort_logo_url() ); ?>" alt="Логотип кондитерской студии" width="65" height="65">
				<span class="site-header__logo-text">Создаем повод<br>для праздника</span>
			</a>
			<nav class="site-header__nav" aria-label="Основная навигация">
				<ul class="site-header__menu">
					<li class="site-header__menu-item site-header__menu-item--catalog">
						<button class="site-header__menu-link site-header__menu-button" type="button" aria-expanded="false">Каталог</button>
						<div class="site-header__catalog">
							<a class="site-header__catalog-link" href="<?php echo esc_url( home_url( '/' ) ); ?>">Все торты на заказ</a>
							<?php foreach ( array( 'bento', 'detskie', 'svadebnye', 'korporativnye', 'na-den-rozhdeniya', 'srochnyj-zakaz', 'nachinki' ) as $slug ) : ?>
								<?php $item = sev_tort_pages()[ $slug ]; ?>
								<a class="site-header__catalog-link" href="<?php echo esc_url( home_url( '/' . $item['slug'] . '/' ) ); ?>"><?php echo esc_html( $item['label'] ); ?></a>
							<?php endforeach; ?>
						</div>
					</li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/ceny/' ) ); ?>">Цены</a></li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/dostavka-i-oplata/' ) ); ?>">Доставка и оплата</a></li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/portfolio/' ) ); ?>">Портфолио</a></li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/otzyvy/' ) ); ?>">Отзывы</a></li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/faq/' ) ); ?>">FAQ</a></li>
					<li class="site-header__menu-item"><a class="site-header__menu-link" href="<?php echo esc_url( home_url( '/kontakty/' ) ); ?>">Контакты</a></li>
				</ul>
			</nav>
			<button class="site-header__cta" type="button" data-lead-open data-lead-source="Заказать торт: шапка">Заказать торт</button>
			<button class="site-header__burger" type="button" aria-label="Открыть меню" aria-expanded="false" data-menu-toggle>
				<span class="site-header__burger-line"></span>
				<span class="site-header__burger-line"></span>
				<span class="site-header__burger-line"></span>
			</button>
		</div>
	</div>
</header>
	<div class="mobile-menu" data-mobile-menu aria-hidden="true">
		<div class="mobile-menu__overlay" data-menu-close></div>
		<div class="mobile-menu__panel" role="dialog" aria-modal="true" aria-label="Мобильное меню">
			<div class="mobile-menu__head">
				<span class="mobile-menu__title">Меню</span>
				<button class="mobile-menu__close" type="button" aria-label="Закрыть меню" data-menu-close>×</button>
			</div>
			<nav class="mobile-menu__nav" aria-label="Мобильная навигация">
				<a class="mobile-menu__link" href="<?php echo esc_url( home_url( '/' ) ); ?>">Главная</a>
				<div class="mobile-menu__catalog">
					<button class="mobile-menu__link mobile-menu__catalog-toggle" type="button" aria-expanded="false" aria-controls="mobile-catalog-list" data-mobile-catalog-toggle>Каталог</button>
					<div class="mobile-menu__catalog-list" id="mobile-catalog-list" data-mobile-catalog hidden>
						<a class="mobile-menu__catalog-link" href="<?php echo esc_url( home_url( '/' ) ); ?>">Все торты на заказ</a>
						<?php foreach ( array( 'bento', 'detskie', 'svadebnye', 'korporativnye', 'na-den-rozhdeniya', 'srochnyj-zakaz', 'nachinki' ) as $slug ) : ?>
							<?php $item = sev_tort_pages()[ $slug ]; ?>
							<a class="mobile-menu__catalog-link" href="<?php echo esc_url( home_url( '/' . $item['slug'] . '/' ) ); ?>"><?php echo esc_html( $item['label'] ); ?></a>
						<?php endforeach; ?>
					</div>
				</div>
				<?php foreach ( array( 'ceny', 'dostavka-i-oplata', 'portfolio', 'otzyvy', 'faq', 'kontakty' ) as $slug ) : ?>
					<?php $item = sev_tort_pages()[ $slug ]; ?>
					<a class="mobile-menu__link" href="<?php echo esc_url( home_url( '/' . $item['slug'] . '/' ) ); ?>"><?php echo esc_html( $item['label'] ); ?></a>
				<?php endforeach; ?>
			</nav>
			<div class="mobile-menu__contacts">
				<button class="mobile-menu__contact" type="button" data-lead-open data-lead-source="Заказать торт: мобильное меню">Заказать торт</button>
				<a class="mobile-menu__contact" href="<?php echo esc_url( sev_tort_site_phone_href() ); ?>"><?php echo esc_html( sev_tort_site_phone() ); ?></a>
			</div>
		</div>
	</div>
