/* =========================================================
   HERO-ISO â€” Ð‘Ð£Ð¢Ð«Ð›ÐšÐ, Ð¡Ð’Ð•Ð§Ð•ÐÐ˜Ð•, Ð¡Ð›ÐžÐ˜
   ========================================================= */

.hero-iso {
    --bottle-shift: -38%;
    --title-overlap: 6dvh;
}

.hero-iso__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.hero-iso__glow {
    position: absolute;
    top: 44%;
    left: 50%;
    width: min(140vw, 1400px);
    height: min(140vw, 1400px);
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        color-mix(in srgb, var(--flavor-glow, #00E676) 45%, transparent) 0%,
        color-mix(in srgb, var(--flavor-glow, #00E676) 22%, transparent) 22%,
        color-mix(in srgb, var(--flavor-glow, #00E676) 8%,  transparent) 45%,
        transparent 68%
    );
    filter: blur(60px);
    opacity: 1;
    transition: background .6s ease;
    animation: heroGlowPulse 6s ease-in-out infinite;
    will-change: transform;
}

:root:not([data-theme="dark"]) .hero-iso__glow {
    opacity: 0.7;
    filter: blur(70px);
}

[data-theme="dark"] .hero-iso__glow {
    opacity: 1;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    }
    50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.hero-iso__bottle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: clamp(180px, 24vw, 380px);
    transform: translate(-50%, var(--bottle-shift));
    opacity: 0;
    transition:
        opacity   .9s cubic-bezier(.22,.61,.36,1),
        transform .9s cubic-bezier(.16,.84,.44,1);
    will-change: transform, opacity;
    pointer-events: none;
}

.hero-iso__bottle-img {
    display: block;
    width: 100%;
    height: auto;

    -webkit-mask-image: linear-gradient(to bottom,
        #000 0%, #000 58%, rgba(0,0,0,.35) 78%, transparent 100%);
            mask-image: linear-gradient(to bottom,
        #000 0%, #000 58%, rgba(0,0,0,.35) 78%, transparent 100%);
}

.hero-iso__bottle-floor {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: 130%;
    height: 40%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        color-mix(in srgb, var(--flavor-glow, #00E676) 40%, transparent) 0%,
        transparent 65%
    );
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

.hero-iso.is-stage-1 .hero-iso__bottle {
    opacity: 0;
    transform: translate(-50%, calc(var(--bottle-shift) + 8%));
}

.hero-iso.is-stage-2 .hero-iso__bottle,
.hero-iso.is-stage-3 .hero-iso__bottle,
.hero-iso.is-stage-4 .hero-iso__bottle,
.hero-iso.is-stage-5 .hero-iso__bottle {
    opacity: 1;
    transform: translate(-50%, var(--bottle-shift));
}

.hero-iso__bottle-img.is-switching {
    opacity: 0;
    transform: scale(.96);
    transition:
        opacity   .3s cubic-bezier(.22,.61,.36,1),
        transform .3s cubic-bezier(.22,.61,.36,1);
}

/* Ð¡ÐºÑ€Ñ‹Ð²Ð°ÐµÐ¼ Ð±ÑƒÑ‚Ñ‹Ð»ÐºÑƒ Ð½Ð° ÑÑ‚Ð°Ð´Ð¸ÑÑ… Ñ Ñ‚ÐµÐºÑÑ‚Ð¾Ð²Ñ‹Ð¼Ð¸ Ð¿Ð°Ð½ÐµÐ»ÑÐ¼Ð¸ Ð½Ð° Ð´ÐµÑÐºÑ‚Ð¾Ð¿Ðµ,
   Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð½Ðµ Ð¿ÐµÑ€ÐµÐºÑ€Ñ‹Ð²Ð°Ð»Ð° ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð¿Ð¾ Ñ†ÐµÐ½Ñ‚Ñ€Ñƒ */
@media (min-width: 1025px) {
    .hero-iso.is-stage-3 .hero-iso__bottle {
        opacity: .18;
        transform: translate(-50%, var(--bottle-shift)) scale(.92);
    }
}

@media (max-width: 1024px) {
    .hero-iso {
        --bottle-shift: -46%;
        --title-overlap: 6dvh;
    }
    .hero-iso__bottle {
        width: clamp(160px, 26vw, 300px);
    }
    .hero-iso__glow {
        width: min(150vw, 1100px);
        height: min(150vw, 1100px);
    }
}

@media (max-width: 768px) {
    .hero-iso {
        --bottle-shift: -46%;
        --title-overlap: 5dvh;
    }
    .hero-iso__bottle {
        width: clamp(140px, 34vw, 220px);
    }
    .hero-iso__glow {
        width: min(170vw, 900px);
        height: min(170vw, 900px);
        filter: blur(50px);
    }
}

@media (max-width: 600px) {
    .hero-iso {
        --bottle-shift: -46%;
        --title-overlap: 4dvh;
    }
    .hero-iso__bottle {
        width: clamp(120px, 38vw, 190px);
    }
    .hero-iso__glow {
        width: min(180vw, 760px);
        height: min(180vw, 760px);
        filter: blur(45px);
    }
}

@media (max-width: 400px) {
    .hero-iso {
        --bottle-shift: -46%;
        --title-overlap: 4dvh;
    }
    .hero-iso__bottle {
        width: clamp(105px, 40vw, 165px);
    }
    .hero-iso__glow {
        width: min(190vw, 640px);
        height: min(190vw, 640px);
        filter: blur(40px);
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .hero-iso {
        --bottle-shift: -34%;
        --title-overlap: 3dvh;
    }
    .hero-iso__bottle {
        width: clamp(110px, 16vw, 190px);
    }
    .hero-iso__glow {
        width: min(90vh, 700px);
        height: min(90vh, 700px);
        filter: blur(40px);
    }
}

/* ÐÐ° Ð¼Ð¾Ð±Ð¸Ð»ÑŒÐ½Ñ‹Ñ… Ð¿Ð°Ð½ÐµÐ»Ð¸ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚Ð° (ÑÑ‚Ð°Ð´Ð¸Ð¸ 3-5) Ð¿ÐµÑ€ÐµÐºÑ€Ñ‹Ð²Ð°ÑŽÑ‚ Ð±ÑƒÑ‚Ñ‹Ð»ÐºÑƒ â€” Ð¿Ñ€ÑÑ‡ÐµÐ¼ ÐµÑ‘,
   Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ñ‚ÐµÐºÑÑ‚ Ð½Ðµ ÑÐ»Ð¸Ð²Ð°Ð»ÑÑ Ñ ÐºÐ°Ñ€Ñ‚Ð¸Ð½ÐºÐ¾Ð¹ */
@media (max-width: 1024px) {
    .hero-iso.is-stage-3 .hero-iso__bottle,
    .hero-iso.is-stage-4 .hero-iso__bottle,
    .hero-iso.is-stage-5 .hero-iso__bottle {
        opacity: .14;
        transform: translate(-50%, var(--bottle-shift)) scale(.85);
    }
}

@media (hover: none) and (pointer: coarse) {
    .hero-iso__glow {
        animation-duration: 8s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-iso__glow {
        animation: none;
    }
    .hero-iso__bottle,
    .hero-iso__bottle-img {
        transition-duration: .3s;
    }
}
