.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  padding-block: var(--space-lg);
  padding-top: 1rem;
  overflow: hidden;
  background: #323232;
  justify-content: center;
  align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items:center;
    gap: var(--space-md);
    color: var(--color-secondary);
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video.is-loaded {
  opacity: 1;
}

.hero-image {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}


.hero-logo {
    align-items: center;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.hero-logo img {
  width: min(35vw, 140px); /* ← SKALOWANIE */
  height: auto;
}


.hero-badge {
    display: inline-block;
    width: 200%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text);
    background: var(--color-bg);
}

.hero-title {
    padding: 1rem;
    font-size: var(--font-size-title);
    letter-spacing: 0.08em;
    border: 1px solid var(--color-bg);
    border-radius: 8px;
}

.hero-subtitle {
    font-size: var( --font-size-subtitle);
    padding: 0rem 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-subtitle strong {
  color: green;
}

.hero-actions {
    margin-top: auto;
    font-weight: 700;
}

@media (min-width: 1024px) {

  .hero-media video {
    display: none; 
  }

  .hero-media .hero-image {
    display: block;
    width: 100%;
    height: 110%;

    object-fit: cover;
    object-position: center bottom;
    animation: floatUp 12s ease-in-out infinite;
    will-change: transform;
  }

  @keyframes floatUp {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }

    100% {
        transform: translateY(0);
    }
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .hero-badge {
    padding: 0.5rem 0.75rem;
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    padding-bottom: 120px;
  }

.hero-title,
.hero-subtitle {
    max-width: 1000px;
}

.hero-subtitle {
    font-size: 1.6rem;
}
}

@media (orientation: landscape) and (max-height: 500px) {

    .hero {
        max-height: unset;
    }

    .hero-content {
        padding-bottom: 40px;
    }

    .hero-title {
        padding-top: 1rem;
    }

}

@media (orientation: portrait) and (min-width: 768px) {

   .hero {
        min-height: unset;
    }

   .hero-content {
       min-height: unset;
       padding-bottom: 40px;
    }
}

