.page--storage-detail .solar-detail-intro {
  padding-bottom: 92px;
}

.storage-benefits {
  padding-top: 0;
  padding-bottom: 188px;
}

.storage-benefits__grid {
  --storage-benefit-card-min-height: 124px;
  --storage-benefit-card-expanded-height: 206px;
  --storage-benefit-grid-reserve: var(--storage-benefit-card-expanded-height);
  align-items: start;
}

.storage-benefit-card {
  min-height: var(--storage-benefit-card-min-height);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 28px 20px;
  overflow: hidden;
  transition:
    min-height 0.46s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.46s cubic-bezier(0.4, 0, 0.2, 1);
}

.storage-benefit-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.storage-benefit-card h2 {
  font-size: clamp(24px, 2.08vw, 30px);
  line-height: 1.04;
}

.storage-benefit-card__text {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.6;
  transform: translateY(-8px);
  transition:
    max-height 0.46s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.46s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.46s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .storage-benefits__grid {
    min-height: var(--storage-benefit-grid-reserve);
  }

  .storage-benefit-card:hover,
  .storage-benefit-card:focus-visible {
    min-height: var(--storage-benefit-card-expanded-height);
    padding-bottom: 26px;
  }

  .storage-benefit-card:hover .storage-benefit-card__text,
  .storage-benefit-card:focus-visible .storage-benefit-card__text {
    max-height: 5em;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
  }
}

#bateriove-uloziste,
#realizace,
#kontakt {
  scroll-margin-top: 120px;
}

@media (max-width: 1200px) {
  .page--storage-detail .solar-detail-intro {
    padding-bottom: 70px;
  }

  .storage-benefits {
    padding-bottom: 152px;
  }

  .storage-benefits__grid {
    --storage-benefit-card-min-height: 118px;
    --storage-benefit-card-expanded-height: 194px;
    --storage-benefit-grid-reserve: calc(var(--storage-benefit-card-expanded-height) * 2 + 14px);
  }

  .storage-benefit-card h2 {
    font-size: clamp(23px, 2.3vw, 28px);
  }

  .storage-benefit-card__text {
    font-size: 18px;
  }
}

@media (max-width: 820px) {
  .page--storage-detail .solar-detail-intro {
    padding-bottom: 54px;
  }

  .storage-benefits {
    padding-bottom: 112px;
  }

  .storage-benefits__grid {
    --storage-benefit-card-min-height: 0px;
    --storage-benefit-card-expanded-height: 0px;
    --storage-benefit-grid-reserve: 0px;
    min-height: 0;
  }

  .storage-benefit-card {
    min-height: auto;
    padding: 18px 22px;
  }

  .storage-benefit-card h2 {
    font-size: 20px;
  }

  .storage-benefit-card__text {
    max-height: none;
    margin-top: 12px;
    opacity: 1;
    font-size: 15px;
    line-height: 1.6;
    transform: none;
  }
}
