/* =========================================================
   ШАПКА САЙТА
========================================================= */

:root {
    --nh-blue: #0878b7;
    --nh-blue-hover: #005f95;
    --nh-cyan: #16b8e4;
    --nh-yellow: #ffd43b;
    --nh-text: #333;
}

.nh,
.nh *,
.nh-nav-wrap,
.nh-nav-wrap * {
    box-sizing: border-box;
}

/* =========================================================
   ОСНОВНАЯ ОБЁРТКА
========================================================= */

.nh-head {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    transform: translate3d(0, 0, 0);
    transition:
        transform .3s ease,
        box-shadow .25s ease;
    will-change: transform;
}


.nh-space {
    width: 100%;
}

.nh-head.is-mini {
    box-shadow: 0 7px 22px #0000001f;
}

.nh-cap,
.nh-cap .nh-c,
.nh-top-in,
.nh-logo,
.nh-info a,
.nh-info svg,
.nh-soc a,
.nh-btn,
.nh-nav-in,
.nh-menu a {
    transition: height .25s ease,padding .25s ease,width .25s ease,opacity .2s ease,transform .25s ease,font-size .25s ease,min-height .25s ease,top .25s ease;
}

.nh-head.is-mini .nh-cap {height:0;overflow:hidden;opacity:0}
.nh-head.is-mini .nh-cap .nh-c {height:0}
.nh-head.is-mini .nh-top-in {height:66px}
.nh-head.is-mini .nh-logo {top:5px;width:82px}
.nh-head.is-mini .nh-info a {font-size:15px}
.nh-head.is-mini .nh-info svg {width:17px;height:17px;flex-basis:17px}
.nh-head.is-mini .nh-soc a {width:32px;height:32px}
.nh-head.is-mini .nh-btn {min-height:44px;padding:7px 10px;font-size:13px}
.nh-head.is-mini .nh-btn-main {min-width:220px}
.nh-head.is-mini .nh-btn-second {min-width:145px}
.nh-head.is-mini .nh-nav-in {padding:13px 0}
.nh-head.is-mini .nh-menu a {font-size:14px}
.nh-head.is-mini .nh-menu {padding: 0px 0px 0px 90px;}

.nh-head.is-hidden {
    transform: translate3d(0, -100%, 0);
}

.nh-head.is-open {
    transform: translate3d(0, 0, 0);
}

.nh {
    background: #fff;
    font-family: "Lora", Georgia, serif;
}

.nh img {
    display: block;
}

.nh-c {
    width: min(1240px, calc(100% - 32px));
    margin: auto;
}

/* =========================================================
   ВЕРХНЯЯ ЖЁЛТАЯ ПОЛОСА
========================================================= */

.nh-cap {
    background: var(--nh-yellow);
}

.nh-cap .nh-c {
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   СИНЯЯ ПОЛОСА
========================================================= */

.nh-top {
    background: var(--nh-blue);
}

.nh-top-in {
    position: relative;
    height: 96px;
    display: flex;
    align-items: center;
    padding-left: clamp(135px, 15vw, 195px);
}

/* Логотип */

.nh-logo {
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 2;
    width: 140px;
    text-decoration: none;
}

.nh-logo img {
    width: 100%;
    height: auto;
}

/* Контакты */

.nh-info,
.nh-soc,
.nh-btns {
    display: flex;
    align-items: center;
}

.nh-info {
    gap: clamp(8px, .9vw, 14px);
}

.nh-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.nh-info a + a {
    padding-left: clamp(8px, .9vw, 14px);
    border-left: 1px solid #ffffffa6;
}

.nh-info svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    transition: transform .2s ease;
}

.nh-info a:hover svg {
    transform: scale(1.15);
}

/* Социальные сети */

.nh-soc {
    gap: 10px;
    margin-left: clamp(8px, 1.2vw, 18px);
}

.nh-soc a {
    width: clamp(32px, 2.6vw, 40px);
    height: clamp(32px, 2.6vw, 40px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s ease;
}

.nh-soc a:hover {
    transform: translateY(-2px);
}

.nh-soc svg {
    width: 58%;
    height: 58%;
    fill: currentColor;
}

.nh-wa {
    background: #25d366;
}

.nh-tg {
    background: #27a6e5;
}

/* =========================================================
   КНОПКИ
========================================================= */

.nh-btns {
    gap: 8px;
    margin-left: auto;
}

.nh-btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    color: #000;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease;
}

.nh-btn-main {
    min-width: clamp(230px, 20vw, 300px);
    background: var(--nh-cyan);
}

.nh-btn-second {
    min-width: clamp(145px, 13vw, 200px);
    background: var(--nh-yellow);
}

.nh-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px #00000029;
}

.nh-btn-main:hover {
    background: var(--nh-blue-hover);
}

.nh-btn-second:hover {
    background: #e6ac00;
}

/* =========================================================
   НАВИГАЦИЯ
========================================================= */

.nh-nav-wrap {
    background: #fff;
    box-shadow: 0 5px 14px #0000000d;
}

.nh-nav-in {
    display: flex;
    align-items: center;
    padding: 25px 0 20px;
}

.nh-nav {
    width: 100%;
}

.nh-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nh-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nh-menu a {
    display: block;
    color: var(--nh-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.nh-menu a:hover {
    color: var(--nh-blue);
}

/* Подменю */

.nh-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 220px;
    display: none;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    list-style: none;
    box-shadow: 0 10px 25px #00000026;
}

.nh-menu li:hover > .sub-menu {
    display: block;
}

.nh-menu .sub-menu a {
    padding: 10px 16px;
}

/* Мобильные элементы */

.nh-mob-contact,
.nh-mob-btns,
.nh-bur {
    display: none;
}

/* =========================================================
   ПЛАНШЕТ И МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 1024px) {

    .nh-head.is-mini .nh-cap {display:block;height:0;overflow:hidden;opacity:0}
    .nh-head.is-mini .nh-cap .nh-c {height:0}
    .nh-head.is-mini .nh-top-in {height:62px}
    .nh-head.is-mini .nh-logo {position:static;width:45px;flex-basis:45px}
    .nh-head.is-mini .nh-nav-in {padding:10px 0 16px}

    .nh-head {
        box-shadow: 0 8px 22px #0000001a;
    }

    .nh-cap .nh-c {
        height: 40px;
        font-size: 13px;
    }

    .nh-top-in {
        height: 78px;
        padding: 0;
        gap: 14px;
    }

    .nh-logo {
        position: static;
        width: 90px;
        flex: 0 0 90px;
    }

    .nh-info,
    .nh-soc,
    .nh-btns {
        display: none;
    }

    /* Мобильные контакты */

    .nh-mob-contact {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
    }

    .nh-mob-contact a {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.1;
        text-decoration: none;
        white-space: nowrap;
    }

    .nh-mob-contact a:last-child {
        font-size: 13px;
        font-weight: 600;
    }

    /* Бургер */

    .nh-bur {
        display: flex;
        align-items: center;
        gap: 9px;
        flex: 0 0 auto;
        min-width: 102px;
        height: 46px;
        margin-left: auto;
        padding: 0 14px;
        border: 1px solid #ffffff66;
        border-radius: 8px;
        background: #ffffff14;
        color: #fff;
        cursor: pointer;
    }

    .nh-bur b {
        font: 600 15px/1 "Lora", Georgia, serif;
    }

    .nh-bur-lines {
        width: 24px;
        display: block;
    }

    .nh-bur i {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        border-radius: 2px;
        background: #fff;
        transition:
            transform .2s ease,
            opacity .2s ease;
    }

    .nh-bur.is-open i:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .nh-bur.is-open i:nth-child(2) {
        opacity: 0;
    }

    .nh-bur.is-open i:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Мобильное меню */

    .nh-nav-wrap {
        display: none;
        border-top: 1px solid #e8e8e8;
    }

    .nh-nav-wrap.is-open {
        display: block;
    }

    .nh-nav-in {
        display: block;
        max-height: calc(100vh - 118px);
        padding: 10px 0 18px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nh-menu {
        display: block;
    }

    .nh-menu li {
        border-bottom: 1px solid #e7e7e7;
    }

    .nh-menu a {
        padding: 12px 4px;
        font-size: 16px;
        white-space: normal;
    }

    .nh-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 8px 16px;
        background: transparent;
        box-shadow: none;
    }

    .nh-menu .sub-menu li {
        border: 0;
    }

    .nh-menu .sub-menu a {
        padding: 7px 4px;
        font-size: 14px;
    }

    .nh-mob-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-top: 16px;
    }

    .nh-mob-btns .nh-btn {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 600px) {

    .nh-c {
        width: min(100% - 24px, 1240px);
    }

    .nh-cap .nh-c {
        height: 38px;
        font-size: 12px;
    }

    .nh-top-in {
        height: 72px;
        gap: 9px;
    }

    .nh-logo {
        width: 78px;
        flex-basis: 78px;
    }

    .nh-mob-contact {
        align-items: center;
        text-align: center;
    }

    .nh-mob-contact a {
        font-size: 12px;
    }

    .nh-mob-contact a:last-child {
        font-size: 11px;
    }

    .nh-bur {
        min-width: 48px;
        width: 48px;
        padding: 0;
        justify-content: center;
    }

    .nh-bur b {
        display: none;
    }

    .nh-mob-btns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {

    .nh-logo {
        width: 70px;
        flex-basis: 70px;
    }

    .nh-mob-contact a {
        font-size: 11px;
    }

    .nh-mob-contact a:last-child {
        font-size: 10px;
    }
}

/* WordPress admin bar */

@media (min-width: 783px) {

    .admin-bar .nh-head {
        top: 32px;
    }
}

@media (max-width: 782px) {

    .admin-bar .nh-head {
        top: 46px;
    }
}

/* Отключение анимаций */

@media (prefers-reduced-motion: reduce) {

    .nh-head,
    .nh-bur i {
        transition: none;
    }
}