.hero-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 18px;

    padding: 30px 20px 20px;
    box-sizing: border-box;
}

.hero-showcase-item {
    position: relative;

    height: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    color: inherit;
    text-decoration: none;

    cursor: pointer;

    isolation: isolate;
}

.hero-showcase-visual {
    position: relative;
    z-index: 3;

    width: 190px;
    height: 190px;

    margin-bottom: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.hero-showcase-visual img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.hero-showcase-platform {
    position: absolute;

    left: 50%;
    bottom: 58px;

    width: 180px;
    height: auto;

    transform: translateX(-50%);

    z-index: 1;

    display: block;

    pointer-events: none;

    object-fit: contain;
}

.hero-showcase-platform::after {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    border: 1px solid rgba(255, 145, 120, 0.5);

    box-shadow:
        0 0 15px rgba(255, 97, 125, 0.4),
        0 0 35px rgba(255, 97, 125, 0.2);
}

.hero-showcase-label {
    position: relative;
    z-index: 4;

    margin-top: 8px;

    text-align: center;

    color: #fff;
}

.hero-showcase-label strong {
    display: block;

    font-size: 18px;
    font-weight: 700;
}

.hero-showcase-label span {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.65);
}



.hero-showcase-item:hover .hero-showcase-platform {
    opacity: 1;

    transform: translateX(-50%) scale(1.08);
}


/* ==========================
   HERO SHOWCASE ANIMATION
========================== */

.hero-showcase-item.is-floating
.hero-showcase-visual {
    animation:
        heroFloat
        var(--float-duration, 4s)
        ease-in-out
        var(--float-delay, 0s)
        infinite;
}

.hero-showcase-item.is-floating
.hero-showcase-platform {
    animation:
        platformPulse
        var(--float-duration, 4s)
        ease-in-out
        var(--float-delay, 0s)
        infinite;
}


/* Парение объекта */

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform:
            translateY(
                calc(var(--float-amplitude, 8px) * -1)
            );
    }

}


/* Пульсация платформы */

@keyframes platformPulse {

    0%,
    100% {
        opacity: 0.65;
        transform:
            translateX(-50%)
            scale(0.95);
    }

    50% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1.08);
    }

}


/* Hover поверх парения */

.hero-showcase-item:hover .hero-showcase-visual {
    animation-play-state: running;
}

.hero-showcase-item:hover .hero-showcase-visual img {
    transform: scale(1.08);
    
    filter:
        drop-shadow(
            0 0 14px
            rgba(255, 97, 125, 0.65)
        );
}

.hero-showcase-item:hover
.hero-showcase-platform {
    animation-play-state: paused;

    opacity: 1;

    transform:
        translateX(-50%)
        scale(1.12);
}






/* ==========================
   CLICK ANIMATION
========================== */

.hero-showcase-item.is-clicked .hero-showcase-visual {
    animation: showcaseClick 0.65s cubic-bezier(.22, .8, .25, 1);
}

.hero-showcase-item.is-clicked .hero-showcase-platform {
    animation: platformClick 0.65s ease-out;
}


/* Объект мягко поднимается и возвращается */

@keyframes showcaseClick {

    0% {
        transform:
            translateY(0)
            scale(1)
            rotate(0deg);
    }

    35% {
        transform:
            translateY(-14px)
            scale(1.035)
            rotate(-1deg);
    }

    65% {
        transform:
            translateY(-9px)
            scale(1.02)
            rotate(0.5deg);
    }

    100% {
        transform:
            translateY(0)
            scale(1)
            rotate(0deg);
    }

}


/* Платформа НЕ исчезает и НЕ увеличивается */

@keyframes platformClick {

    0% {
        opacity: 0.75;
        transform:
            translateX(-50%)
            scale(1);
        filter:
            brightness(1);
    }

    35% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1.04);
        filter:
            brightness(1.35)
            drop-shadow(
                0 0 14px
                rgba(255, 97, 125, 0.65)
            );
    }

    65% {
        opacity: 1;
        transform:
            translateX(-50%)
            scale(1.02);
        filter:
            brightness(1.15)
            drop-shadow(
                0 0 9px
                rgba(255, 97, 125, 0.45)
            );
    }

    100% {
        opacity: 0.75;
        transform:
            translateX(-50%)
            scale(1);
        filter:
            brightness(1);
    }

}

/* ==========================
   INDIVIDUAL SHOWCASE HOVER
========================== */

/* Танк */
.hero-showcase-tank:hover .hero-showcase-visual {
    transform: translateY(-12px) scale(1.06);
}

/* 3D */
.hero-showcase-3d:hover .hero-showcase-visual {
    transform: translateY(-14px) scale(1.13);
}

/* Анимация */
.hero-showcase-animation:hover .hero-showcase-visual {
    transform: translateY(-14px) scale(1.11);
}

/* Фоны */
.hero-showcase-background:hover .hero-showcase-visual {
    transform: translateY(-15px) scale(1.13);
}

/* =================================
   MOBILE HERO SHOWCASE
================================= */

@media (max-width: 768px) {

    .hero-showcase {

        width: 100%;
        min-height: 360px;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;

        padding: 10px 8px 30px;

        box-sizing: border-box;

    }


    .hero-showcase-item {

        width: 100%;
        height: 170px;

    }


    .hero-showcase-visual {

        width: 135px;
        height: 135px;

        margin-bottom: 30px;

    }


    .hero-showcase-platform {

        width: 130px;

        bottom: 42px;

    }


    .hero-showcase-label {

        margin-top: 4px;

    }


    .hero-showcase-label strong {

        font-size: 15px;

    }


    .hero-showcase-label span {

        font-size: 10px;

    }

}