/* "Жидкое" навигационное меню (js/tabs-liquid.js) */

/* Фон активного пункта рисует плашка-индикатор — у самих пунктов фон убираем */
.tabs__swiper.tabs-liquid-on .tabs__slide,
.tabs__swiper.tabs-liquid-on .tabs__slide:hover,
.tabs__swiper.tabs-liquid-on .tabs__slide._tab-active {
    position: relative;
    z-index: 1;
    background: transparent;
    transition: color .35s ease;
}

.tabs__swiper.tabs-liquid-on .tabs__slide:hover:not(._tab-active) {
    color: var(--color-alt);
}

.tabs__swiper.tabs-liquid-on .tabs__slide._tab-active {
    color: var(--color-whte);
}

.tabs-liquid {
    position: absolute;
    top: -20px;
    right: -30px;
    bottom: -20px;
    left: -30px;
    z-index: 0;
    pointer-events: none;
    filter: url(#tabs-goo);
}

.tabs-liquid__blob,
.tabs-liquid__drop {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: var(--color-alt);
    will-change: transform;
}

.tabs-liquid__hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 999px;
    background: rgba(143, 198, 38, .16);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

/* Появление: пункты выезжают волной */
.tabs__swiper.tabs-liquid-pending .tabs__slide {
    opacity: 0;
}

.tabs__swiper.tabs-liquid-enter .tabs__slide {
    animation: tabsLiquidIn .55s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--tabs-i, 0) * 60ms);
}

@keyframes tabsLiquidIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.92);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}
