
 
<header class="header pos-rel">
        <div class="container">
            <div class="header-menu d-flex justify-content-between align-items-center mx-auto">
                <div class="d-flex flex-column">
                    <div class="header-top">
                        <div class="header-menu__m">
                            <div class="nav__menu-btn">
                                <button type="button" class="btns nav__link">
                                    <img src="temp/assets/img/icon/menu.svg" width="25" alt="menu">
                                </button>
                            </div>
                            <a href="index.php" class="header__logo">
                                <img src="images/logo.png"
                                    alt="<?php echo $sitename?>" style="max-width: 150px;">
                            </a>
                            <div class="btns-block__m">
                                <a href="register.php" class="btns btn-cont mr-3">Registration</a>
                        <a href="login.php" class="btns btn-cont mr-3">Login</a>
                            </div>
                            <div class="lang-close lang-close__mt">
                                <div class="d-flex align-items-center language">
                                </div>
                            </div>
                        </div>

                             <?php 
                                function nav_active($active,$no){
                                    if($active == $no){
                                        echo 'nav__item--active';
                                    }
                                }
                            ?>


                        <nav class="header__nav">
                            <a class="header__logo header__logo-m">
                                <img src="temp/assets/img/logo.png" alt="logo: Mineex"
                                    style="max-width: 150px;">
                            </a>
                            <div class="close close-menu__m icon-close m-0">
                                <img src="temp/assets/img/icon/close.svg" alt="close">
                            </div>
                            <ul class="nav__list">
                                <li class="nav__item <?php nav_active($active,1)?>">
                                    <a href="index.php" class="nav__link">
                                        <span class="nav__link-text">Main</span>
                                        <svg class="nav__link-img">
                                            <use xlink:href="temp/assets/img/icon/sprite.svg#main">
                                            </use>
                                        </svg>
                                    </a>
                                </li>
                                <li class="nav__item <?php nav_active($active,2)?>">
                                    <a href="marketing.php" class="nav__link">
                                        <span class="nav__link-text">Marketing</span>
                                        <svg class="nav__link-img">
                                            <use xlink:href="temp/assets/img/icon/sprite.svg#mark">
                                            </use>
                                        </svg>
                                    </a>
                                </li>
                                <li class="nav__item <?php nav_active($active,3)?> ">
                                    <a href="calculator.php" class="nav__link">
                                        <span class="nav__link-text">Calculator</span>
                                        <svg class="nav__link-img">
                                            <use xlink:href="temp/assets/img/icon/sprite.svg#calc">
                                            </use>
                                        </svg>
                                    </a>
                                </li>
                                <li class="nav__item <?php nav_active($active,4)?>">
                                    <a href="partners.php" class="nav__link">
                                        <span class="nav__link-text">Partners</span>
                                        <svg class="nav__link-img">
                                            <use
                                                xlink:href="temp/assets/img/icon/sprite.svg#partners">
                                            </use>
                                        </svg>
                                    </a>
                                </li>
                                <li class="nav__item <?php nav_active($active,5)?>">
                                    <a href="statistics.php" class="nav__link">
                                        <span class="nav__link-text">Statistics</span>
                                        <svg class="nav__link-img">
                                            <use
                                                xlink:href="temp/assets/img/icon/sprite.svg#statistics">
                                            </use>
                                        </svg>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                    <div class="header-bottom">
                        <nav class="header__subnav">
                            <ul class="subnav__list">
                                <li class="subnav__item ">
                                    <a href="about.php" class="subnav__link ">
                                        <span class="subnav__link-text">About company</span>
                                    </a>
                                </li>
                                <li class="subnav__item ">
                                    <a href="faq.php" class="subnav__link">
                                        <span class="subnav__link-text">FAQ</span>
                                    </a>
                                </li>
                                <li class="subnav__item ">
                                    <a href="news.php" class="subnav__link">
                                        <span class="subnav__link-text">News</span>
                                    </a>
                                </li>
                                <li class="subnav__item ">
                                    <a href="support.php" class="subnav__link">
                                        <span class="subnav__link-text">Support</span>
                                    </a>
                                </li>

                            </ul>
                        </nav>
                    </div>
                </div>
                <div class="d-flex header-info ">
                    <div class="d-flex align-items-center mt-1 btns-block">
                        
                        <a href="register.php" class="btns btn-cont mr-3">Registration</a>
                        <a href="login.php" class="btns btn-cont mr-3">Login</a>
                    </div>
                    <div class="lang-close lang-close__m">
                        <div class="d-flex align-items-center language" style="width: 50px;">
                        </div>
                    </div>
                    <ul class="soc__list d-flex">
                        <li class="soc__item">
                            <a href="#">
                                <img src="temp/assets/img/icon/social/inst.png" alt="instagram">
                            </a>
                        </li>
                        <li class="soc__item">
                            <a href="#" target="_blank">
                                <img src="temp/assets/img/icon/social/fb.png" alt="facebook">
                            </a>
                        </li>
                        <li class="soc__item">
                            <a href="#" target="_blank">
                                <img src="temp/assets/img/icon/social/tel.png" alt="telegram">
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </header>