/* ==========================================================================
   Transitional header styles — старая дизайн-система (ds2025)
   Только для хедера на main_2026. Подключается ПОСЛЕ ds2026/base.css.
   Источник: assets/css/ds2025/header.css +
             assets/css/ds2025/transition_header_footer.css (header-часть).
   Селекторы header.css уже под неймспейсом .header / .header__* / #header__*.
   ========================================================================== */

:root {
    /* шрифты */
    --font_raleway: 'Raleway', 'Arial', sans-serif;
    --font_roboto: 'Roboto', 'Arial', sans-serif;

    /* отступы контейнера */
    --indent_xs: 20px;

    /* цвета */
    --titles: #2E2E3C;
    --titles_op75: #2E2E3Cbf;
    --white: #FFFFFF;
    --full_black: #000;
    --body: #4C4C59;
    --body_on_color: #CBCBE0;
    --body2: #8D8DA8;
    --body2_on_color: #C8C8DA;
    --muted: #C8C8DA;
    --inputs: #D8D8E7;
    --inputs_active: #2E2E3C;
    --accent_blue: #498EF5;
    --black: #1E1E23;
    --success: #58C755;
    --error: #D1053B;
    --border_lite: #F0F0F3;

    /* кнопки */
    --button_white: #FFFFFF;
    --button_black: #1E1E23;
    --button_black_hover: #4C4C59;
    --button_blue: #498EF5;
    --button_blue_hover: #1F65CC;
    --button_muted: #CBCBE0;
    --button_red: #F03B5C;
    --button_red_hover: #C60437;

    /* тени */
    --shadow_m: 0px 10px 16px 0px rgba(46, 46, 60, 0.10);
}

/* контейнер и типографика (старая ДС) */
.header .container {
    width: 100%;
    max-width: 1292px;
    padding-left: var(--indent_xs);
    padding-right: var(--indent_xs);
    margin-right: auto;
    margin-left: auto;
}
.header .txt {
    color: var(--body);
}
.header .txt_medium {
    font-size: 16px;
}
.header .txt_title {
    color: var(--titles);
}

/* header transition (ds2025/transition_header_footer.css, header-часть) */
.header img,
.header video,
.header svg {
    max-width: 100%;
    height: auto;
}
.header a {
    line-height: 150%;
    font-weight: 400;
    text-decoration: none;
    color: var(--body);
}
.header .button_tertiary {
    line-height: normal;
    height: auto;
    padding: 0;
    background: transparent;
}
.header .button,
.header .button_line,
.header .button_tertiary {
    font-family: var(--font_roboto);
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--button_white);
    white-space: nowrap;
    flex-shrink: 0;
}
.header .button_black:hover {
    background: transparent;
}
.header .button,
.header .button_line {
    line-height: 48px;
    height: 48px;
    padding: 0 20px;
}
.header .button_tertiary.button_black {
    color: var(--button_black);
}
.header .button_tertiary.button_black:hover {
    color: var(--button_black_hover);
}
.header .button.button_blue {
    border-radius: 4px;
    background: var(--button_blue);
}
.header .button.button_blue:hover {
    background: var(--button_blue_hover);
}
/* Старые эффекты кнопок (старая ДС: без теней и плавных переходов) */
.header .button,
.header .button_line,
.header .button_tertiary {
    transition: none;
    box-shadow: none;
}
.header .button:hover,
.header .button_line:hover {
    box-shadow: none;
}
.header .button:disabled,
.header .button[href=""],
.header a.button:not([href]),
.header .button.button_disabled {
    box-shadow: none !important;
}
@media (min-width: 992px) {
    .header .txt {
        font-size: 18px;
    }
    .header .button_tertiary {
        line-height: normal;
        height: auto;
        padding: 0;
    }
    .header .button {
        padding: 0 24px;
    }
}
.header__mitem:hover > .header__msubs {
    z-index: 10;
}

/* ==========================================================================
   ds2025/header.css
   ========================================================================== */
@-webkit-keyframes showSubMenu {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes showSubMenu {
    from {opacity: 0;}
    to {opacity: 1;}
}
/*РћС‚РєСЂС‹С‚РѕРµ РјРµРЅСЋ*/
@media (max-width: 1199px){
    body.body_activemenu{
        overflow: hidden;
    }
    body.body_activemenu .header__nav, .header__activemenu .header__nav{
        display: block;
    }
    .header__mitem.header__mlink_noclickactive .header__msubs{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .header__mitem.header__mlink_noclickactive .header__mlink{
        color: var(--white);
        background: var(--accent_blue);
    }
    .header__mitem.header__mlink_noclickactive .header__mlink svg path{
        fill: var(--white);
        stroke: var(--white);
    }
}

.header{
    border-bottom: 1px solid var(--body2_on_color);
    background: var(--white);
    z-index: 99;
}
header.header_fixed {
    position: fixed;
    width: 100%;
    top: 0;
}


/*РҐР­Р”Р•Р  РўРћРџ*/
.header__top{
    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;
    -ms-flex-item-align: stretch;
        -ms-grid-row-align: stretch;
        align-self: stretch;
    padding: 10px 0;
}
.header__logos{
    width: 100px;
    height: 24px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
.header__logos .header__logo_lad{width: 43px;}
.header__logos .header__logo_1c{width: 36px;}
.header__lline {
    height: 100%;
    width: 0;
    border-right: 1px solid var(--inputs);
    background-color: var(--inputs);		
    margin: 0 10px;
}
.header__top_left{
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
}
.header__city{
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    gap: 4px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-width: 0;
}
.header__city .city__name{
    -ms-flex-negative: 1;
        flex-shrink: 1;
    overflow: hidden;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
    white-space: nowrap;
}
.header__city svg{
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
.header__city:hover .city__name{
    color: var(--accent_blue);
}
.header__city:hover svg path{
    stroke: var(--accent_blue);
}
.header__phone{
    display: none;
}
.header__phone:hover{
    color: var(--accent_blue)
}
.header__nlink{
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}
.header__nlink svg{
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
.header__buttons{			
    display: none;
}
/*РњР•РќР®*/
.header__nav{
    display: none;
    position: absolute;
    /*width: 100vw;*/
    width: 100%;
    height: 100vh;
    top: 0;
    z-index: 5;			
    overflow: auto;
    padding: 24px 0 48px;
    background: var(--white);
}
.header__nwrap{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    min-height: 100%;
}
.header__nav_close{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}
.header__mitem{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.header__msubs{
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.header__mlink, .header__mslink{
    line-height: 140%;
    padding: 10px 48px;
    color: var(--inputs_active);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 6px;
}
/*hover*/
.header__mitem:hover .header__mlink{
    color: var(--accent_blue);
}
.header__mitem:hover .header__mitem_icon path{
    fill: var(--accent_blue);
}

/*sub hover*/
.header__mslink:hover{
    color: var(--white);
    background: var(--accent_blue);
}
/*open hover*/
.header__mitem:hover .header__msubs{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.header__nav_buttons{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 32px;
}
@media (min-width: 576px){
    .header__top {
        padding: 16px 0;
    }
    .header_fixed .header__top {
        padding: 10px 0;
    }
    .header__logos{
        width: 174px;
        height: 36px;
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .header__logos .header__logo_lad{width: 64px;}
    .header__logos .header__logo_1c{width: 54px;}
    .header__lline {
        margin: 0 24px;	
    }
    .header__city{
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        gap: 8px;
    }
    .header__phone{
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
    }
}
/*@media (min-width: 992px){*/
@media (min-width: 1200px){
    .header{
        border-bottom: none;
    }
    .header__top {
        padding: 18px 0 16px;
    }
    header.header_fixed .header__top{
        display: none;
    }
    header.header_fixed .header__mlink {
        height: 48px;
        line-height: 48px;
    }
    /*РҐСЌРґРµСЂ РўРћРџ*/
    .header__top{
        border-bottom: 1px solid var(--body2_on_color);
    }
    .header__top_left{
        width: auto;
        gap: 38px;
    }
    .header__lline {
        margin: 0 28px;	
    }
    .header__nlink{
        display: none;
    }

    .header__buttons{
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 32px;
    }
    /*РјРµРЅСЋ*/
    .header__nav_close, .header__nav_buttons{
        display: none;
    }
    .header__nav{
        display: block;
        height: auto !important;
        position: static !important;
        padding: 0;
        overflow: visible;
        width: 100%;
    }
    .header__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;
        -ms-flex-item-align: stretch;
            -ms-grid-row-align: stretch;
            align-self: stretch;
    }
    .header__mlink{
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 6px;
        height: 55px;
        line-height: 55px;
        padding: 0;
    }
    .header__mitem{
        position: relative;
    }
    .header__mitem:hover > .header__mlink {
        color: var(--accent_blue);
    }
    .header__mitem:hover > .header__mlink svg path{
        /*fill: var(--accent_blue);*/
        stroke: var(--accent_blue);
    }

    .header__msubs{
        display: none;			
    }
    .header__mitem:hover > .header__msubs{
        -webkit-animation: showSubMenu 250ms ease-in-out both;
                animation: showSubMenu 250ms ease-in-out both;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        position: absolute;
        padding: 16px 0;			
        border-radius: 4px;
        background: var(--white);
        width: 220px;
        -webkit-box-shadow: var(--shadow_m);
                box-shadow: var(--shadow_m);
        left: 50%;
        -webkit-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
                transform: translateX(-50%);
        top: 63px;			
    }
    .header_fixed .header__mitem:hover > .header__msubs{
        top: 56px;			
    }
    .header__msubs:before {
        content: '';
        height: 8px;
        width: 100%;
        display: block;
        position: absolute;
        top: -8px;
    }
    .header__mslink {
        padding: 6.5px 16px;
        color: var(--inputs_active);
        line-height: 140%;
    }

    .header__mslink:hover {
        color: var(--white);
        background: var(--accent_blue);
    }
}

/*search*/
.header__nlink_wrap{
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}
@media(min-width: 1200px){
    .header__nlink_wrap{
        display: none;
    }
}


#header__sWrapTab{
    display: none;
}
#header__search_desktop{
    display: none;
}
.header__search{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 32px 0;
    z-index: 2;
}
.header__sInput{
    padding: 11.5px 76px 11.5px 12px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #CFDEF5;
    background: #FFF;
    width: 100%;
    outline: none;
    font-family: 'Raleway', 'Arial', sans-serif;
    color: #2E2E3C;
}
.header__sBtn{
    display: flex;
    position: absolute;
    right: 12px;
}
.header__sBtnTab, .header__sBtnTabClose{
    display: none;
}
.header__sBtn_clean{
    display: none;
    flex-shrink: 0;
    position: absolute;
    right: 44px;
    padding: 2px 12px 2px 0;
    border-right: 1px solid #D8D8E7;
}
.header__sBtn_clean.header__sBtn_clean_show{
    display: flex;
}
.header__sBtn_clean svg{
    flex-shrink: 0;
}
.poiskF_result{
    display: none;
    max-height: calc(-180px + 100vh);
    overflow-y: auto;
}
.header__sResaultWrap{
    position: absolute;
    top: 100%;
    left: -20px;
    width: 100vw;

    border-bottom: 1px solid #CFDEF5;
    background: #FFF;
    box-shadow: 0 20px 32px 0 rgba(30, 30, 35, 0.06), 0 20px 24px 0 rgba(30, 30, 35, 0.06);
    padding: 16px 20px;
    
    z-index: 20;
}
.header__sHistoryTag{
    display: flex;
    gap: 8px;
    flex-direction: column-reverse;
}
.header a.header__sCelanHistory{
    color: #F03B5C;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: 'Raleway', 'Arial', sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border-radius: 8px;
    background: #FBEFEF;
    line-height: 20px !important;
    padding: 0 8px;
    width: fit-content;
    display: flex;
    height: 20px;
}
.header a.header__sCelanHistory:hover{
    background: #FEDEDE;
}
.header__sResaultList{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.header__sResaultListWrap{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.header__sResaultWrap > .header__sResaultListWrap{
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: solid 1px #CFDEF5;
}
.header__sResaultWrap > .header__sResaultListWrap:last-child{
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.header__sResault .header__sResaultListWrap{
    margin-top: 16px;
    padding-top: 16px;
    border-top: solid 1px #CFDEF5;
}
.header__sResault .header__sResaultListWrap:first-child{
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.header__sResaultItem{
    color: #2E2E3C;
    position: relative;
}
.header__sResaultItem:hover::before{
    content: '';
    position: absolute;
    /*top: 0;
    left: 0;*/
    top: -5px;
    left: -16px;
    width: 100%;
    height: 100%;
    background: #FBEFEF;
    padding: 5px 16px;
    z-index: -1;
}
.header_sTag{
    color: #8D8DA8;
    font-variant-numeric: lining-nums proportional-nums;
    font-family: 'Raleway', 'Arial', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 0;
}
.header__sEmptyImg{
    width: min-content;
    height: 146px;
    margin: auto;
}
@media(min-width: 576px){
    #header__search_mob{
        display: none;
    }
    #header__sWrapTab{
        display: block;
        background: #FFF;
        position: absolute;
        width: 100%;
        z-index: 5;
    }
    #header__sWrapTab::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(46, 46, 60, 0.20);
        pointer-events: none; /* Р§С‚РѕР±С‹ РєР»РёРєРё РїСЂРѕС…РѕРґРёР»Рё СЃРєРІРѕР·СЊ РїРѕРґР»РѕР¶РєСѓ */
        z-index: 1; /* РџРѕРґРЅРёРјРµРј РЅР°Рґ СЃРѕРґРµСЂР¶РёРјС‹Рј, РЅРѕ РЅРёР¶Рµ РїРѕРїР°РїР° */
    }
    .header__sContainer{
        background: #FFF;
        position: relative;
        z-index: 5;
    }
    .header__search{
        margin: 0;
        flex-direction: column;
    }
    .header__sInputWrap{
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
    }
    .header__sInputWrap{
        padding: 13px 0;
    }
    .header__sBtnTab, .header__sBtnTabClose{
        display: flex;
        position: relative;
        right: unset;
        flex-shrink: 0;
        padding: 6px;
    }
    .header__sBtn:hover svg>circle, .header__sBtn:hover svg>path{
        stroke: #498EF5
    }
    .header__sBtnTabClose{
        padding: 8px;
    }
    .header__sBtn_clean:hover svg path{
        stroke: #F03B5C;
    }
    .header__sResaultWrap{
        width: 100%;
        left: unset;
        position: relative;
        box-shadow: none;
        border-bottom: 0;
        margin-bottom: 24px;			
    }
    .header__sHistoryTag{
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }
    .header__sEmptyImg{
        width: 489px;
        height: 256px;
    }
}
@media(min-width: 1200px){
    .header{
        position: relative;
    }
    #header__search_desktop{
        display: block;
    }
    #header__search_desktop .header__sInput,
    #header__search_desktop .header__sBtn_clean{
        display: none;
    }
    #header__search_desktop.header__search_open .header__sInput{
        display: block;
    }
    #header__search_desktop.header__search_open .header__sBtn_clean.header__sBtn_clean_show{
        display: flex;
    }
    .header.header__sOverlay::after{
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(46, 46, 60, 0.20);
        pointer-events: none;
    }
    .header__sInput{
        width: 521px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    .header__sResaultWrap{
        position: absolute;
    }
    .header__sBtn{
        position: relative;
        right: none;
        z-index: 2;
    }
    .header__sResaultWrap{
        width: 521px;
        right: 0;
        top: 100%;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid #CFDEF5;
        background: #FFF;
    }
}
