/* ========== СТИЛИ ШАПКИ ========== */

/* Меню */
.header__nav {
    background: #fff;
    border-radius: 60px;
    border: 1px solid #a97c00;
    position: relative;
    z-index: 101;
    margin-top: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 1000px) {
    .header__nav {
        position: fixed;
        border-radius: 0;
        background: #F7F9F7;
        margin: 0;
    }
}

.menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 auto;
    font-size: 1.5rem;
    font-weight: normal;
    color: #1e1e1e;
}

@media screen and (max-width: 1000px) {
    .menu {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        max-width: none;
        padding: 0 0;
        border-bottom: 0;
        margin: 0;
        color: inherit;
        font-size: 15px;
    }
}

.menu>li {
    position: relative;
    text-align: center;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

@media screen and (min-width: 1000px) {
    .menu>li:first-child>a {
        border-radius: 60px 0 0 60px;
    }

    .menu>li:last-child>a {
        border-radius: 0 60px 60px 0;
    }

    .menu>li:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media screen and (max-width: 1000px) {
    .menu>li {
        width: 100%;
        margin: 0;
        text-align: left;
    }
}

.menu>li.current-menu-item>a,
.menu>li.current_page_item>a {
    color: #a97c00;
    background: transparent;
}

@media screen and (max-width: 1000px) {

    .menu>li.current-menu-item>a,
    .menu>li.current_page_item>a {
        background: transparent;
        color: #a97c00;
    }
}

.menu>li>a {
    text-transform: uppercase;
    font-weight: 700;
    height: 6rem;
    color: inherit;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    line-height: 1.2;
    padding: 0 15px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1000px) {
    .menu>li>a {
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        height: auto;
        padding: 10px 0;
        border-radius: 5px;
    }
}

@media (hover: hover) {
    .menu>li:hover>a {
        color: #a97c00;
        background: transparent;
    }

    .menu>li:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* Подменю */
.menu>li .sub-menu {
    background-color: #fff;
    -webkit-box-shadow: 0px 14px 14px 0px rgba(9, 14, 24, 0.1);
    box-shadow: 0px 14px 14px 0px rgba(9, 14, 24, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: 0.1s;
    transition: 0.1s;
    z-index: 10;
    padding: 10px 0 5px;
    border-radius: 12px;
}

@media screen and (max-width: 1000px) {
    .menu>li .sub-menu {
        border-top: 0;
        background: 0;
        padding-top: 0;
        position: relative;
        left: 0;
        width: 100%;
        -webkit-box-shadow: none;
        box-shadow: none;
        display: none;
        margin-top: 0;
        border-radius: 0;
    }

    .menu>li .sub-menu.active {
        padding: 0 0 0;
        visibility: visible;
        opacity: 1;
        height: auto;
        display: block;
    }
}

.menu>li .sub-menu li {
    width: 100%;
    font-size: 15px;
    padding-bottom: 12px;
    position: relative;
}

@media screen and (max-width: 767px) {
    .menu>li .sub-menu li {
        width: 100%;
        border: 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.menu>li .sub-menu li a {
    font-weight: 500;
    position: relative;
    display: block;
    text-align: left;
    color: #1e1e1e;
    padding: 5px 20px;
}

@media screen and (max-width: 1000px) {
    .menu>li .sub-menu li a {
        font-size: 14px;
        color: #1e1e1e;
    }
}

@media (hover: hover) {
    .menu>li .sub-menu li a:hover {
        color: #a97c00;
    }
}

.menu>li .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-top: 0;
}

@media screen and (max-width: 1000px) {
    .menu>li .sub-menu .sub-menu {
        left: 0;
        display: block;
        height: auto;
        visibility: visible;
        opacity: 1;
        padding-left: 20px;
        padding-top: 15px;
    }
}

/* Стрелка для пунктов с подменю */
.menu>.menu-item-has-children>a .show-sub-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 15px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    color: #fff;
    background: #a97c00;
    border-radius: 50%;
}

.menu>.menu-item-has-children>a .show-sub-menu.active {
    -webkit-transform: scale(1, -1);
    transform: scale(1, -1);
    padding-top: 2px;
}

@media screen and (min-width: 1000px) {
    .menu>.menu-item-has-children>a .show-sub-menu {
        display: none;
    }
}

.icon-instagram,
.icon-youtube {
    width: 50px;
    height: 50px;
}
/* MH-FIX 05.09.2026: горизонтальный скролл на главной.
   Выпадающее подменю (position:absolute; left:0; width:300px) у правых пунктов
   выходило за правый край окна и растягивало документ на 168 px даже будучи
   скрытым (visibility:hidden из scrollWidth не убирает). Открываем его влево. */
@media screen and (min-width: 1001px) {
    .menu > li:nth-last-child(-n+3) > .sub-menu {
        left: auto;
        right: 0;
    }
}
