/* header.css — только стили шапки, extracted from arbaxAssets/main.css */

body.product-page {
    font-family: 'Qanelas', Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

/* ─── Header structure ─── */

.header__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    border-style: solid;
    border-width: 0;
    border-color: #e7e7e7;
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header__right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header__phone a {
    color: #009BDE;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-decoration: none;
}

.header__phone svg {
    display: none;
}

.header__callback a {
    font-size: 17px;
    background-color: #017dc7;
    border-style: solid;
    border-width: 0;
    padding: 15px 23px;
    color: #fff;
    border-radius: 84px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__callback svg {
    width: 17.5px;
    height: 18px;
    fill: #fff;
}

/* ─── Nav menu ─── */

.header__menu {
    border-style: solid;
    border-width: 1px 0 0;
    border-color: rgba(0, 155, 222, .42);
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0 1px 4px #ddd;
    position: relative;
}

.header__menu ul {
    display: flex;
    gap: 0;
    list-style-type: none;
    margin: 0;
    min-height: 47px;
    padding: 0;
    align-items: center;
}

.header__menu ul li {
    font-size: 14px;
    font-weight: 400;
    padding-bottom: 0;
    position: initial;
}

.header__menu ul li:after {
    display: none;
}

.header__menu ul li a {
    text-decoration: none;
    color: #54595f;
    padding: 13px 16px;
}

.header__menu ul li a:hover {
    color: #0073bf;
}

.header__menu-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header__menu-dropdown svg {
    width: 18px;
    height: 18px;
    fill: #54595f;
}

.header__menu ul li a:hover svg {
    fill: #0073bf;
}

.header__menu-dropdown-list {
    background: #fff;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    padding-bottom: 40px;
    box-shadow: 0 11px 12px -7px rgba(182, 182, 182, .5);
    z-index: 2;
    display: none;
}

.header__menu-dropdown-list.active {
    display: block;
}

@media (min-width: 1025px) {
    .header__menu ul li:hover > .header__menu-dropdown-list {
        display: block;
    }
}

.header__menu-dropdown-list-wrap {
    padding: 0 !important;
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box;
    gap: 20px !important;
}

.header__menu-dropdown-list a {
    text-transform: uppercase;
}

/* ─── Burger ─── */

.header__burger {
    display: none;
}

.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ham path {
    stroke: #0073BF;
}

.hamRotate.active {
    transform: rotate(45deg);
}

.hamRotate180.active {
    transform: rotate(180deg);
}

.line {
    fill: none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke: #000;
    stroke-width: 5.5;
    stroke-linecap: round;
}

.ham1 .top {
    stroke-dasharray: 40 139;
}

.ham1 .bottom {
    stroke-dasharray: 40 180;
}

.ham1.active .top {
    stroke-dashoffset: -98px;
}

.ham1.active .bottom {
    stroke-dashoffset: -138px;
}

/* ─── Fixed header ─── */

.fixed__header {
    top: -70px;
    transition: top .6s ease;
    position: fixed;
    width: 100%;
    background-color: #fff;
    border-style: solid;
    border-width: 0;
    border-color: #e7e7e7;
    box-shadow: 0 1px 4px #ddd;
    z-index: 999999;
}

.fixed__header ul li > a {
    flex-wrap: initial;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
}

.fixed__header .header__menu {
    border: unset;
    box-shadow: unset;
    position: static;
}

@media (min-width: 1025px) {
    .fixed__header .header__menu-dropdown-list {
        width: 100%;
        left: 0;
        top: 60px;
    }
}

/* ─── Nav-group dropdown columns ─── */

.header__menu-dropdown-list-wrap li.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 240px;
}

.header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown {
    font-weight: 700;
    font-size: 14px;
    color: #54595f;
    text-transform: none;
    letter-spacing: 0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    cursor: default;
    pointer-events: none;
}

.header__menu-dropdown-list-wrap li.nav-group .nav-group-caret {
    display: none;
}

/* На сенсорных/планшетных устройствах разрешаем тап по sub-dropdown
   (JS handler в main.js использует max-width 1024px) */
@media (max-width: 1024px) {
    .header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown {
        pointer-events: auto;
        cursor: pointer;
    }
}

.header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown-list a {
    display: block;
    padding: 6px 20px !important;
    font-size: 14px;
    font-weight: 400;
    color: #54595f;
    text-decoration: none;
}

.header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown-list a:hover {
    color: #0073bf;
}

/* ─── Mobile ─── */

@media (max-width: 767px) {
    header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 999999;
        border-style: solid;
        border-color: #e7e7e7;
        border-width: 0 0 1px;
    }

    .fixed__header {
        display: none;
    }

    .header__menu {
        position: absolute;
        width: 100%;
        z-index: 2;
        left: 0;
        padding: 0;
        display: none;
    }

    .header__menu ul {
        flex-direction: column;
        background-color: #fff;
    }

    .header__menu ul li {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #e0e0e0;
        flex-direction: column;
        box-sizing: border-box;
    }

    .header__menu ul li a {
        font-size: 16px !important;
        text-transform: uppercase !important;
        padding-top: 13px !important;
        padding-bottom: 13px !important;
        padding-left: 20px;
        padding-right: 20px;
        justify-content: space-between;
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .header__menu-dropdown-list {
        position: inherit;
        box-shadow: unset;
        padding-bottom: 0;
    }

    .header__menu-dropdown-list-wrap {
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: unset !important;
        padding-left: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .header__right {
        gap: 20px;
    }

    .header__phone span {
        display: none;
    }

    .header__phone svg {
        display: block;
        fill: #017dc7;
        color: #017dc7;
        border: 3px solid #017dc7;
        width: 24px;
        height: 24px;
        padding: 3px;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .header__burger {
        display: block;
    }

    .header__burger .ham {
        width: 35px;
        margin-top: 2px;
    }

    .header__callback {
        display: none;
    }

    .header__logo img {
        width: 175px;
    }

    .header__menu-dropdown-list-wrap li.nav-group {
        min-width: 0;
        width: 100%;
    }

    .header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown {
        pointer-events: auto;
        cursor: pointer;
        padding: 10px 20px;
        border-bottom: 1px solid #e0e0e0;
        font-weight: 400;
    }

    .header__menu .container {
        padding: 0;
    }

    .header__menu-dropdown-list-wrap li.nav-group .nav-group-caret {
        display: inline-block;
        width: 14px;
        height: 14px;
        fill: #54595f;
        transition: transform .2s;
    }

    .header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown-list {
        display: none;
        padding-left: 10px;
    }

    .header__menu-dropdown-list-wrap li.nav-group .header__menu-sub-dropdown-list a {
        display: block;
        padding: 10px 20px !important;
        font-size: 14px;
        font-weight: 400;
        color: #54595f;
        text-decoration: none;
    }

    .container {
        padding: 0 25px;
        width: 100%;
    }
}
