.header {
    position : relative;
}
body {
    overflow-x : clip;
}

/*OLD TEMPLATE*/
.topmenu {
}
.topmenu .topmenu__button {
    background      : url('../../../../../../local/templates/medeste/components/bitrix/menu/topmenu/i/burger.svg') no-repeat center center;
    background-size : cover;
    width           : 24px;
    height          : 24px;
    display         : block;
    border          : 0;
    padding         : 0;
}
.topmenu .topmenu__overlay {
    display          : none;
    position         : fixed;
    top              : 0;
    left             : 0;
    width            : 100%;
    height           : 100%;
    background-color : rgba(102, 102, 102, 0.64);
    z-index          : 99999;
}
.topmenu .topmenu__overlay_visible {
    display : block;
}
.topmenu__body {
    background    : #eff0f0;
    border-radius : 24px 24px 0px 0px;
    position      : absolute;
    width         : 100%;
    bottom        : 0;
    margin        : 0;
    padding       : 96px 24px 81px;
    box-sizing    : border-box;
    max-height    : 90%;
    overflow-y    : auto;
}
.topmenu .topmenu__list {
    display         : grid;
    row-gap         : 24px;
    list-style-type : none;
    padding         : 0;
    margin          : 0;
}
.topmenu .topmenu__close {
    background : transparent url('../../../../../../local/templates/medeste/components/bitrix/menu/topmenu/i/mobile-menu-close.svg') no-repeat center center;
    width      : 24px;
    height     : 24px;
    display    : block;
    position   : absolute;
    top        : 36px;
    right      : 24px;
    border     : 0;
    cursor     : pointer;
}
.topmenu .topmenu__link {
    font-family     : 'Halvar Breitschrift';
    font-style      : normal;
    font-weight     : 400;
    font-size       : 24px;
    line-height     : 1.33;
    color           : #000000;
    text-decoration : none;
}

@media screen and (min-width : 720px) {

    .topmenu .topmenu__button {
        display : none;
    }

    .topmenu .topmenu__overlay {
        display          : block;
        position         : static;
        width            : auto;
        height           : auto;
        background-color : transparent;
        z-index          : auto;
    }

    .topmenu__body {
        position         : static;
        width            : auto;
        background-color : transparent;
        padding          : 0;
        overflow         : unset;
        max-height       : unset;

    }

    .topmenu .topmenu__close {
        display : none;
    }

    .topmenu .topmenu__list {
        display : flex;
        row-gap : 0;
        margin  : 0 -15px 0;
    }

    .topmenu .topmenu__link {
        font-family    : 'Cera Pro', sans-serif;
        margin-left    : 11px;
        margin-right   : 11px;
        text-transform : uppercase;
        font-weight    : 500;
        font-size      : 15px;
        line-height    : 1.07;
        color          : #000000;
    }

    .topmenu .topmenu__link_mobile {
        display : none;
    }

    .topmenu .topmenu__link:hover {
        color : #a38800;
    }
}
@media screen and (min-width : 1280px) {
    .topmenu .topmenu__link {
        font-size    : 14px;
        margin-left  : 7px;
        margin-right : 7px;
    }
}
@media screen and (min-width : 1440px) {

    .topmenu .topmenu__link {
        margin-left  : 10px;
        margin-right : 10px;
        font-size    : 15px;
    }

    .header__row {
        display: grid;
    }

}
/* End */


/*NEW TEMPLATE*/

/* .menu-category */
.menu-category {
    position   : absolute;
    visibility : hidden;
    opacity    : 0;
    width      : 100%;
    right      : 0;
    height     : 0;
    top        : 100%;
    transition : top 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
    margin     : auto;
    z-index    : -1;
}
.topmenu .topmenu__link {
    color      : rgba(0, 0, 0, 1);
    transition : color ease .5s;
}
.topmenu__link_catalog.active {
    color : rgba(189, 161, 15, 1);
}
.menu-category.active {
    z-index    : 4;
    visibility : visible;
    opacity    : 1;
    height     : inherit;
}
.menu-category__box {
    position         : relative;
    display          : flex;
    box-shadow       : 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
    background-color : rgba(239, 240, 240, 1);
}
.menu-category__mob-nav {
    display : none;
}
.menu-category__content {
    color            : black;
    visibility       : hidden;
    opacity          : 0;
    position         : absolute;
    padding          : 10px 20px;
    top              : 0px;
    min-width        : 50%;
    left             : 50%;
    bottom           : 0px;
    z-index          : -1;
    border-top       : none;
    background-color : #eaebeb;
    transition       : visibility 0.3s ease-out, opacity 0.3s ease-out;
}
.menu-category__block-form {
    display          : flex;
    align-items      : center;
    justify-content  : center;
    padding-inline   : 20px;
    width            : 50%;
    background-color : #eaebeb;
}
.menu-category__group {
    display        : flex;
    flex-direction : column;
    gap            : 16px;
}
.menu-category__text {
    color : rgba(0, 0, 0, 0.7);
}
.menu-category__input {
    padding          : 12px 16px;
    border           : 2px solid rgba(0, 0, 0, 0.2);
    border-radius    : 32px;
    outline          : none;
    background-color : rgba(239, 240, 240, 1);
    transition       : border-color ease .5s;
}
.menu-category__input:focus-visible {
    border-color : #c7ac23;
}
.menu-category__input,
.menu-category__input::placeholder {
    font-weight : 400;
    font-size   : 15px;
    line-height : 20px;
    color       : rgba(0, 0, 0, 0.7);
}
.menu-category__btn {
    padding          : 12px;
    font-weight      : 500;
    font-size        : 15px;
    line-height      : 24px;
    text-transform   : uppercase;
    border           : none;
    border-radius    : 24px;
    background-color : rgba(189, 161, 15, 1);
    color            : rgba(255, 255, 255, 1);
    cursor           : pointer;
    transition       : all ease .5s;
}
.menu-category__sublink {
    transition : all ease .5s;
}
.topmenu__link_catalog {
    transition : all ease .5s;
}
.topmenu__link_catalog.active svg path,
.topmenu__link_catalog:hover svg path {
    stroke : rgba(189, 161, 15, 1);
}
.menu-category__btn:hover {
    background-color : #d7bc33;
    border-color     : #d7bc33;
}
.menu-category__form {
    display        : flex;
    flex-direction : column;
    width          : 100%;
    gap            : 32px;
    padding        : 32px;
    z-index        : 1;
}
.menu-category__suptitle {
    font-family    : 'Cera Pro', sans-serif;
    padding-top    : 8px;
    margin         : 0;
    font-weight    : 500;
    font-size      : 17px;
    line-height    : 18px;
    letter-spacing : 0px;
    color          : rgba(0, 0, 0, 1);
}
.menu-category__suplist {
    display        : flex;
    flex-direction : column;
    padding        : 0;
}
.menu-category__absolute {
    position : absolute;
    top      : 0;
    right    : 0;
}
.menu-category__sublink {
    padding     : 10px;
    height      : 100%;
    display     : block;
    font-size   : 15px;
    font-weight : 400;
    line-height : 20px;
    color       : rgba(0, 0, 0, 1);
}
.menu-category__menu {
    max-width        : 50%;
    width            : 100%;
    -webkit-box-flex : 1;
    flex-flow        : wrap;
    flex             : 1 1 auto;
}
.menu-category__list {
    column-count : 2;
    column-gap   : 20px;
    gap          : 0 20px;
    padding      : 20px;
    width        : initial;
    overflow-y   : auto;
}
.menu-category__link svg {
    display : none;
}
.menu-category__list li {
    display : block;
    width   : 100%;
    cursor  : pointer;
}
.menu-category .menu-category__link:hover .menu-category__text,
.menu-category__sublink:hover,
.topmenu__link_catalog.activ span,
.menu-category__list li.hover .menu-category__text,
.menu-category__list li.activ .menu-category__text {
    color : rgba(163, 136, 0, 1);
}
.menu-category__list li.activ .menu-category__content {
    z-index    : 0;
    opacity    : 1;
    visibility : visible;
}
.menu-category .menu-category__link .menu-category__text {
    cursor     : pointer;
    transition : all ease .5s;
}
.menu-category__list li.activ .menu-category__link {
    background-color : #f0f0f0;
    color            : rgba(163, 136, 0, 1);
    transition       : all ease .5s;
}
.menu-category__list li.activ .menu-category__link .icon {
    rotate     : -180deg;
    transition : rotate-color ease .5s;
}
.menu-category:not(.active) li.activ {
    display : none;
}
.menu-category [data-accordion-body] {
    overflow   : visible;
    max-height : initial;
}
.menu-category__link {
    display     : flex;
    align-items : center;
    padding     : 12px 15px;
    transition  : background-color ease .5s;
    gap         : 23px;
    font-size   : 15px;
    font-weight : 400;
    line-height : 20px;
}
.menu-category__link .icon {
    display : none;
}
.menu-category__sublink-main {
    display     : flex;
    align-items : center;
    gap         : 10px;
    padding     : 24px 10px;
}


/* .categori-link */
.categori-link__name {
    font-weight : 400;
    font-size   : 13px;
    line-height : 16px;
    color       : rgba(163, 136, 0, 1);
}
.categori-link__svg-block {
    display          : flex;
    align-items      : center;
    justify-content  : center;
    width            : 24px;
    height           : 24px;
    border-radius    : 50%;
    background-color : #c7ac23;
}
.categori-link__svg-block svg {
    width  : fit-content;
    height : 7px;
}
.topmenu__link_catalog {
    display          : flex;
    align-items      : baseline;
    gap              : 7px;
    padding          : 0;
    border           : 0;
    background-color : transparent;
}
.topmenu__link_catalog svg {
    width  : 14px;
    height : 8px;
}
.topmenu__link_catalog svg path {
    stroke     : black;
    transition : stroke ease .5s
}
.topmenu .topmenu__list li {
    display : flex;
    height  : fit-content;
}

/* .custom-checkbox */
.custom-checkbox {
    position : absolute;
    z-index  : -1;
    opacity  : 0;
}
.custom-checkbox + label {
    cursor      : pointer;
    display     : inline-flex;
    align-items : center;
    user-select : none;
    width       : 100%;
    font-size   : 15px;
    font-weight : 400;
    line-height : 20px;
}
.custom-checkbox + label:before {
    content             : "";
    display             : inline-block;
    flex-shrink         : 0;
    flex-grow           : 0;
    width               : 18px;
    height              : 18px;
    border-radius       : 4px;
    border              : 2px solid rgba(0, 0, 0, 0.3);
    margin-left         : 3px;
    margin-right        : 13px;
    background-repeat   : no-repeat;
    background-position : center center;
    background-size     : 50% 50%;
    box-sizing          : border-box;
    transition          : background 0.5s ease, border 0.5s ease, outline 0.5s ease;
}
.custom-checkbox:checked + label::before {
    background-image : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48px' height='48px'%3E%3Cpath fill='%23c7ac23' d='M40.6 12.1L17 35.7 7.4 26.1 4.6 29 17 41.3 43.4 14.9z'/%3E%3C/svg%3E");
    background-size  : 16px 16px;
}
.topmenu .iconsmenu_mob {
    display : none;
}
.header .iconsmenu__link_type_lk {
    font-weight : 500;
    font-size   : 15px;
    line-height : 16px;
}
.topmenu .topmenu__list {
    width : calc(692 / 660 * 100%);
}
.header__langmenu-link {
    font-weight : 500;
}
.header__topline .header__langmenu-item:last-child::before {
    margin : 0 10px;
}
.header .header__topline-container {
    max-width : 100%;
}

@media (max-width : 1600px) {
    .header__row {
        padding-top           : 28px;
        padding-bottom        : 28px;
        grid-template-columns : 9fr 2fr 9fr;
    }

    .topmenu .topmenu__list {
        width : calc(660 / 700 * 100%);
    }
}
@media (max-width : 1440px) {
    .header__row {
        grid-template-columns : 4fr 1fr 3fr;
    }

    .topmenu .topmenu__list {
        width : calc(735 / 688 * 100%);
    }
}
@media screen and (min-width : 1440px) {
    .topmenu .topmenu__link {
        margin : 0;
    }

    .topmenu .topmenu__list {
        justify-content : space-between;
    }

    .header__logo {
        height : 20px;
    }
}
@media (max-width : 1366px) {
    /*.topmenu .topmenu__list li.li-none {
        display : none;
    }*/
    .topmenu .topmenu__list {
        justify-content : flex-start;
        gap             : 30px;
    }

    .topmenu .topmenu__link {
        margin : 0;
    }

    .header__row {
        /*grid-template-columns : 9fr 4fr 9fr;*/
        grid-template-columns : 6fr 2fr 6fr;
    }

    .header__logo {
        width   : 145px;
        display : none;
    }

    .topmenu .topmenu__link {
        font-size   : 15px;
        line-height : 16px;
    }
}
@media (max-width : 1280px) {


    .menu-category__list li:nth-child(10) {
        break-after : column;
    }

    .menu-category__list li {
        break-inside : avoid;
    }

    .header__row {
        grid-template-columns : 6fr 2fr 6fr;
    }

}
@media (max-width : 1024px) {
    .menu-category__sublink,
    .menu-category__link {
        font-size      : 13px;
        line-height    : 16px;
        letter-spacing : -0.5px;
    }

    .header__row {
        padding-block : 16px;
    }
}
@media (max-width : 960px) {
    .menu-category__list {
        padding : 20px 10px;
        gap     : 0;
    }

    .menu-category__block-form {
        padding-inline : 10px;
    }
}
@media (max-width : 719px) {
    .topmenu .topmenu__body {
        padding        : 20px 20px 20px 20px;
        padding-bottom : 70px;
        top            : 0;
        bottom         : 0;
        max-height     : 100%;
        overflow-x     : hidden;
        border-radius  : 0;
    }

    .topmenu .topmenu__overlay {
        display    : block;
        visibility : hidden;
        top        : auto;
        opacity    : 0;
        transition : all 0.5s ease;
        z-index    : -1;
    }

    [data-sup-category].active svg,
    .topmenu__link.active svg {
        rotate : 181deg;
    }

    .topmenu .topmenu__overlay_visible {
        visibility : visible;
        opacity    : 1;
        z-index    : 999;
    }

    .topmenu .topmenu__list {
        margin-bottom : 40px;
        row-gap       : 0;
        width         : 100%;
    }

    .menu-category {
        max-height : 0px;
        overflow   : hidden;
    }

    .menu-category.active {
        position    : static;
        max-height  : inherit;
        overflow    : visible;
        will-change : max-height;
        transition  : max-height 0.3s ease;
    }

    .topmenu .topmenu__link {
        font-family    : 'Cera Pro', sans-serif;
        padding-bottom : 13px;
    }

    .menu-category__list {
        padding      : 0;
        padding-left : 15px;
    }

    .menu-category__box {
        box-shadow : none;
    }

    .menu-category__menu {
        max-width : 100%;
    }

    .menu-category__suplist {
        padding-left : 15px;
    }

    .menu-category__sublink-main {
        display : none;
    }

    .menu-category__link {
        padding         : 16px 15px;
        padding-bottom  : 15px;
        justify-content : space-between;
        border-bottom   : 1px solid rgba(0, 0, 0, 0.1);
    }

    .menu-category__sublink {
        padding        : 12px 15px;
        padding-bottom : 11px;
        border-bottom  : 1px solid rgba(0, 0, 0, 0.1);
        font-size      : 13px;
        line-height    : 16px;
        color          : rgba(0, 0, 0, 0.7);
    }

    .topmenu__link_catalog svg,
    .menu-category__link svg {
        display : block;
        width   : 14px;
        height  : 7px;
    }

    .topmenu__link_catalog svg path {
        stroke : rgba(0, 0, 0, 0.3);
    }

    .topmenu .topmenu__link {
        display         : flex;
        align-items     : center;
        justify-content : space-between;
        padding         : 14px 15px;
        padding-bottom  : 13px;
        border-bottom   : 1px solid rgba(0, 0, 0, 0.1);
        font-size       : 15px;
        line-height     : 20px;
    }

    .topmenu__link_catalog {
        width : 100%;
    }

    .menu-category__list {
        column-count : initial;
    }

    .menu-category [data-accordion-body] {
        position         : static;
        visibility       : visible;
        padding-left     : 15px;
        opacity          : 1;
        min-width        : 100%;
        overflow         : hidden;
        max-height       : 0px;
        will-change      : max-height;
        transition       : max-height 0.3s ease;
        z-index          : 1;
        padding          : 0;
        background-color : rgba(239, 240, 240, 1);
    }

    .topmenu .topmenu__list li.li-none {
        display : flex;
    }

    .menu-category__absolute {
        display : none;
    }

    .no-scroll {
        overflow : hidden;
    }

    .topmenu .iconsmenu_mob {
        display         : flex;
        flex-direction  : column;
        margin          : 0;
        justify-content : flex-start;
        padding-bottom  : 20px;
    }

    .topmenu .iconsmenu_mob .iconsmenu__link_type_docview {
        display : flex;
    }

    .topmenu .iconsmenu_mob .iconsmenu__link {
        padding : 12px 15px;
        margin  : 0;
    }

    .topmenu .iconsmenu_mob .iconsmenu__text {
        display        : flex;
        margin-left    : 16px;
        font-family    : Caveat Brush;
        font-weight    : 400;
        font-size      : 15px;
        line-height    : 16px;
        text-transform : uppercase;
    }

    .topmenu .topmenu__list {
        align-items : baseline !important;
    }

    .iconsmenu__link .iconsmenu__link_type_lk .iconsmenu__text {
        font-family : Cera Pro;
        font-weight : 500;
    }

    .menu-category__block-form {
        display : none;
    }

    /* .topmenu .topmenu__list li:last-child {
        display: none;
    } */
    .order-mob1 {
        order : 1;
    }

    .header__logo {
        width  : 123px;
        height : 15px;
    }

    .topmenu .topmenu__list li {
        display        : flex;
        flex-direction : column;
        width          : 100%;
    }

    .topmenu .topmenu__list {
        justify-content : normal;
    }

    .header__row {
        padding : 10px 20px;
    }
}
@media screen and (min-width : 720px) {
    .topmenu .topmenu__list {
        align-items : baseline;
        /* justify-content: space-between; */
        margin      : 0;
    }
}