/* Стили для прилипания блоков к верху при прокрутке */
.header-new__mob {
    position: relative;
    z-index: 998;
    transition: all 0.3s ease;
}

.header-new__mob.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-search {
    z-index: 999;
    transition: all 0.3s ease;
}

.header-search.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-search.sticky:after {
    height: 200vh;

}

.header-new {
    position: relative;
    z-index: 998;
    transition: all 0.3s ease;
}

.header-new.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Отступ для контента при прилипании */
body.has-sticky-header {
    padding-top: 0;
}

/* Анимация появления/исчезновения */
.header-new__mob.sticky,
.header-search.sticky,
.header-new.sticky {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .header-new__mob.sticky {
        position: fixed;
        top: -1px;
    }

    .header-search.sticky {
        position: fixed;
    }

    .header-new.sticky {
        position: fixed;
    }
}