/* Unified home layout grid (header aligns with hero / quick-nav) */
body.home {
    --hevkad-layout-max: 1440px;
    --hevkad-layout-pad: 32px;
}

/* Compact header — desktop one-line layout */
@media (min-width: 1181px) {
    #header {
        padding: 12px 16px;
        background: #fff;
        box-shadow: 0 14px 40px rgba(10, 26, 53, 0.06);
    }

    #header.front {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 12px 16px 0;
        background: transparent;
        box-shadow: none;
        z-index: 1000;
    }

    body.home #header.front {
        padding-left: 0;
        padding-right: 0;
    }

    body.home #header.front > .container {
        max-width: var(--hevkad-layout-max);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--hevkad-layout-pad);
        padding-right: var(--hevkad-layout-pad);
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(11, 23, 48, 0.06);
        border-radius: 24px;
        box-shadow: 0 14px 40px rgba(10, 26, 53, 0.08);
    }

    #header .container {
        max-width: 2000px;
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        align-items: center;
        gap: 22px;
        min-height: 96px;
        padding: 10px 14px;
    }

    #header .container a.logo__holder {
        width: 84px;
        height: 84px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    #header .container a.logo__holder img {
        max-height: 78px;
        max-width: 78px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    #header .container .menu__holder {
        flex-grow: 0;
        margin: 0;
        min-width: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
        overflow: hidden;
    }

    #header .container .menu__holder > li {
        flex: 0 0 auto;
    }

    #header .container .menu__holder li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 9px;
        border-radius: 999px;
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1;
        color: rgba(11, 23, 48, 0.86);
        white-space: nowrap;
        transition: 0.18s ease;
    }

    #header .container .menu__holder li a:hover,
    #header .container .menu__holder li.has-childs:hover > a {
        color: #5e7fa9;
        background: rgba(94, 127, 169, 0.08);
    }

    #header .container .menu__holder li.active > a,
    #header .container .menu__holder li.current-menu-item > a,
    #header .container .menu__holder li.menu-item-home.active > a {
        background: rgba(94, 127, 169, 0.1);
        color: #5e7fa9;
        font-weight: 700;
    }

    #header .container .menu__holder li.has-childs > a:after {
        width: 14px;
        height: 14px;
        margin-left: 5px;
    }

    #header .container .menu__holder li.has-childs ul.sub-menu {
        z-index: 1001;
    }

    #header .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    #header .container > .btns__holder,
    #header .header-right > .btns__holder {
        position: static;
        bottom: auto;
        right: auto;
        margin: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 6px 8px;
        border: 1px solid rgba(11, 23, 48, 0.08);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(10, 26, 53, 0.06);
    }

    #header .header-right > .btns__holder .head__btn,
    #header .container > .btns__holder .head__btn {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        border: 1px solid rgba(11, 23, 48, 0.08);
        background: #fff;
        box-shadow: 0 4px 14px rgba(10, 26, 53, 0.04);
    }

    #header .header-right > .btns__holder .head__btn:hover,
    #header .container > .btns__holder .head__btn:hover {
        background: #fafcff;
        border-color: rgba(94, 127, 169, 0.24);
    }

    #header .header-right > .btns__holder .head__btn .count,
    #header .container > .btns__holder .head__btn .count {
        background-color: #5e7fa9;
    }

    #header .container .phones__holder {
        margin: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #header .container .phones__holder .phones__city {
        display: none !important;
    }

    #header .container .phones__holder .phone__item.header-phone-btn {
        min-height: 48px;
        padding: 0 16px;
        border-radius: 999px;
        background: #5e7fa9;
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        box-shadow: 0 14px 28px rgba(94, 127, 169, 0.22);
        transition: 0.18s ease;
    }

    #header .container .phones__holder .phone__item.header-phone-btn:hover {
        background: #4f6f98;
        color: #fff;
        transform: translateY(-1px);
    }

    #header > .btns__holder.fixed {
        display: none !important;
    }

    #header .burger.open_menu {
        display: none;
    }
}

@media (min-width: 1181px) and (max-width: 1480px) {
    #header .container {
        grid-template-columns: 78px minmax(0, 1fr) auto;
        gap: 18px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.home #header.front > .container {
        padding-left: var(--hevkad-layout-pad);
        padding-right: var(--hevkad-layout-pad);
    }

    #header .container a.logo__holder {
        width: 78px;
        height: 78px;
    }

    #header .container a.logo__holder img {
        max-height: 69px;
        max-width: 69px;
    }

    #header .container .menu__holder li a {
        padding: 0 7px;
        font-size: 13px;
    }

    #header .header-right {
        gap: 6px;
    }

    #header .header-right > .btns__holder {
        gap: 6px;
        padding: 6px;
    }

    #header .header-right > .btns__holder .head__btn {
        width: 44px;
        height: 44px;
    }

    #header .container .phones__holder .phone__item.header-phone-btn {
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 1180px) {
    #header .header-right {
        display: contents;
    }

    #header .container .phones__holder .phones__city {
        display: none !important;
    }

    #header .container .phones__holder .phone__item.header-phone-btn {
        font-size: 14px;
        font-weight: 700;
        color: #1e1e1e;
        text-decoration: none;
    }

    #header .container .phones__holder .phone__item.header-phone-btn:hover {
        color: #5e7fa9;
    }
}
