/* =========================================================
   ENERGIATÁROLÁS – TÖLTŐDŐ CELLÁK FEJLÉC
   ========================================================= */

.storage-category-hero {
    position: relative;
    height: clamp(620px, 72vh, 760px);
    overflow: hidden;
    isolation: isolate;
    background: #142a32;
    color: #fff;
}

.storage-category-hero__image,
.storage-category-hero__overlay,
.storage-category-hero__ambient {
    position: absolute;
    inset: 0;
}

.storage-category-hero__image { z-index: -5; }

.storage-category-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.44) saturate(.66) contrast(1.06);
    transform: scale(1.025);
}

.storage-category-hero__overlay {
    z-index: -3;
    background:
        radial-gradient(circle at 81% 48%, rgba(179, 220, 84, .17), transparent 31%),
        linear-gradient(90deg, rgba(7, 27, 34, .96) 0%, rgba(7, 27, 34, .82) 40%, rgba(7, 27, 34, .22) 73%, rgba(7, 27, 34, .55) 100%);
}

.storage-category-hero__ambient {
    z-index: -2;
    opacity: .32;
    background-image: radial-gradient(circle, rgba(217, 238, 119, .24) 1px, transparent 1.5px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent 33%, #000 76%);
}

.storage-category-hero__container {
    position: relative;
    z-index: 3;
    display: flex;
    height: 100%;
    align-items: center;
}

.storage-category-hero__content {
    width: min(720px, 58%);
    padding-top: 42px;
    opacity: 0;
    transform: translateY(27px);
}

.storage-category-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, .44);
    font-size: .72rem;
}

.storage-category-hero__breadcrumb a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.storage-category-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #d9ee77;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.storage-category-hero__eyebrow > span {
    width: 29px;
    height: 1px;
    background: #d9ee77;
}

.storage-category-hero h1 {
    max-width: 780px;
    margin: 18px 0 24px;
    color: #fff;
    font-size: clamp(3.2rem, 6.2vw, 6.3rem);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.055em;
}

.storage-category-hero h1 span {
    display: block;
    margin-top: 8px;
    color: #d9ee77;
    font-size: .57em;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.storage-category-hero__content > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: clamp(.95rem, 1.25vw, 1.08rem);
    line-height: 1.75;
}

.storage-category-hero__actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 33px;
}

.storage-category-hero__text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.storage-category-hero__text-link:hover { color: #d9ee77; }

.storage-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 10px 14px;
    border: 1px solid rgba(217, 238, 119, .15);
    border-radius: 12px;
    background: rgba(7, 30, 34, .58);
    backdrop-filter: blur(10px);
}

.storage-status__icon {
    display: inline-flex;
    width: 29px;
    height: 29px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(217, 238, 119, .08);
    color: #d9ee77;
}

.storage-status__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.storage-status > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.storage-status small {
    color: rgba(255, 255, 255, .4);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.storage-status strong { font-size: .72rem; }

.storage-visual {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 8%;
    width: clamp(310px, 31vw, 455px);
    height: 440px;
    opacity: 0;
    transform: translateY(-42%) translateX(50px);
}

.storage-visual__halo {
    position: absolute;
    inset: 3% -16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 238, 119, .16), transparent 67%);
    filter: blur(12px);
}

.storage-visual__cabinet {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 244px;
    height: 395px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(238, 247, 241, .2), rgba(79, 113, 109, .1));
    box-shadow: 0 38px 80px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .24);
    transform: translateX(-50%) perspective(800px) rotateY(-7deg);
    backdrop-filter: blur(12px);
}

.storage-visual__cabinet::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: linear-gradient(transparent, rgba(217, 238, 119, .3), transparent);
    content: "";
}

.storage-visual__header {
    display: flex;
    height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px 0 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .53);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .12em;
}

.storage-visual__header i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9ee77;
    box-shadow: 0 0 12px rgba(217, 238, 119, .7);
}

.storage-visual__cells {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    padding: 23px 24px 19px 32px;
}

.storage-visual__cells > span {
    position: relative;
    height: 53px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 9px;
    background: rgba(7, 27, 31, .52);
}

.storage-visual__cells > span i {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    height: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, #d9ee77, #67c7a3);
    box-shadow: 0 0 14px rgba(217, 238, 119, .24);
}

.storage-visual__meter {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 24px 0 32px;
}

.storage-visual__meter > span {
    position: relative;
    height: 7px;
    overflow: hidden;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.storage-visual__meter > span i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #67c7a3, #d9ee77);
}

.storage-visual__meter strong {
    min-width: 38px;
    color: #d9ee77;
    font-size: 13px;
}

.storage-visual__energy {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9ee77;
    box-shadow: 0 0 14px rgba(217, 238, 119, .8);
    opacity: 0;
}

.storage-visual__energy--one { top: 70px; left: 11px; }
.storage-visual__energy--two { top: 195px; right: 0; }
.storage-visual__energy--three { bottom: 55px; left: 35px; }

.storage-category-hero.is-active .storage-category-hero__content,
.storage-category-hero.is-active .storage-visual {
    opacity: 1;
    transform: none;
    transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

.storage-category-hero.is-active .storage-visual {
    transform: translateY(-50%);
    transition-delay: .18s;
}

.storage-category-hero.is-charged .storage-visual__cells > span i {
    height: calc(17% + (var(--cell-index) * 8%));
    max-height: calc(100% - 8px);
    transition: height .8s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(var(--cell-index) * .08s);
}

.storage-category-hero.is-charged .storage-visual__meter > span i {
    width: 84%;
    transition: width 1.5s cubic-bezier(.22, 1, .36, 1);
}

.storage-category-hero.is-charged .storage-visual__energy {
    animation: storageEnergy 2.2s ease-in-out infinite;
}

.storage-category-hero.is-charged .storage-visual__energy--two { animation-delay: .6s; }
.storage-category-hero.is-charged .storage-visual__energy--three { animation-delay: 1.2s; }

@keyframes storageEnergy {
    0%, 100% { opacity: 0; transform: translateY(15px) scale(.6); }
    45% { opacity: 1; }
    70% { opacity: .6; transform: translateY(-25px) scale(1); }
}

.storage-category-hero__scroll {
    position: absolute;
    z-index: 5;
    right: 38px;
    bottom: 27px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .5);
    font-size: .62rem;
    text-decoration: none;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.storage-category-hero__scroll i {
    width: 1px;
    height: 36px;
    background: linear-gradient(#d9ee77, transparent);
}

@media (max-width: 1000px) {
    .storage-visual { right: -4%; opacity: .5; }
    .storage-category-hero__content { width: min(680px, 72%); }
}

@media (max-width: 720px) {
    .storage-category-hero { height: auto; min-height: 690px; }
    .storage-category-hero__container { align-items: flex-start; padding-top: 110px; padding-bottom: 100px; }
    .storage-category-hero__content { width: 100%; padding-top: 0; }
    .storage-category-hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
    .storage-visual { top: auto; right: -95px; bottom: -215px; width: 350px; opacity: .18; transform: scale(.72); }
    .storage-category-hero.is-active .storage-visual { transform: scale(.72); }
    .storage-category-hero__actions { align-items: flex-start; flex-direction: column; gap: 16px; }
    .storage-category-hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .storage-category-hero *, .storage-category-hero *::before, .storage-category-hero *::after { animation: none !important; transition: none !important; }
}