/* HLA4 Transplant: strona główna: zdjęcie na całą szerokość, pasek liczb, sekcje (czerń, biel, czerwień), manifest, misja, zaproszenie. */

/* Zdjęcie główne (telefon: zdjęcie u góry, tekst nachodzi na jego dół) */
.h4-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.h4-hero__media {
  position: relative;
  aspect-ratio: 1 / 0.92;
  max-height: 78vh;
}

.h4-hero__media picture,
.h4-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.h4-hero__media img {
  object-fit: cover;
  object-position: 50% 24%;
}

.h4-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.88) 24%, rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}

.h4-hero__inner {
  position: relative;
  z-index: 2;
  margin-top: clamp(-70px, -14vw, -40px);
  padding-bottom: 34px;
}

.h4-site .h4-hero__title {
  margin: 0 0 0.25em;
  font-size: clamp(3.1rem, 15vw, 5rem);
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.h4-hl {
  color: var(--h4-red);
}

.h4-site .h4-hero__lead {
  max-width: 34ch;
  margin: 0 0 1.3em;
  font-size: 1.1rem;
  color: #fff;
}

.h4-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.h4-site .h4-hero__credit {
  position: absolute;
  right: var(--h4-pad);
  top: 12px;
  z-index: 2;
  margin: 0;
  padding: 2px 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
}

/* Pasek liczb (czerwony) */
.h4-statsbar {
  position: relative;
  z-index: 3;
  padding-block: 6px;
}

/* Sekcje */
.h4-section {
  padding-block: clamp(46px, 7.5vw, 104px);
}

.h4-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(20px, 3vw, 38px);
}

.h4-more {
  font-family: var(--h4-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--h4-accent);
}

.h4-site .h4-more:hover {
  color: var(--h4-text);
}

/* Manifest (czerwony pas) */
.h4-manifesto {
  position: relative;
  padding-block: clamp(54px, 9vw, 120px);
}

.h4-manifesto__inner {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.h4-manifesto__quote {
  margin: 0;
  padding: 0;
}

.h4-manifesto__quote p {
  margin: 0;
  font-family: var(--h4-font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 7.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.h4-manifesto .h4-prose p {
  color: #fff;
}

.h4-manifesto .h4-title::after {
  background: #fff;
}

/* Misja i rodzina projektów */
.h4-mission__inner {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.h4-mission__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.4em 0 0;
}

/* Zaproszenie (czerwony pas) */
.h4-booking {
  padding-block: clamp(40px, 6vw, 76px);
}

.h4-booking .h4-title {
  color: #fff;
}

.h4-booking__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 36px;
}

.h4-site .h4-booking__text {
  max-width: 56ch;
  margin: 0.5em 0 0;
  font-size: 1.1rem;
  color: #fff;
}

.h4-site .h4-red .h4-btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--h4-red-deep);
}

.h4-site .h4-red .h4-btn--primary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.h4-site .h4-red .h4-btn--ghost {
  border-color: #fff;
  color: #fff;
}

.h4-site .h4-red .h4-btn--ghost:hover {
  background: #fff;
  color: var(--h4-red-deep);
}

/* Pojawianie się sekcji (tylko z JS; bez JS wszystko widoczne) */
.h4-js .h4-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.h4-js .h4-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 480px) {
  .h4-site .h4-hero__lead {
    font-size: 1.2rem;
  }
}

@media (min-width: 720px) {
  .h4-hero {
    display: flex;
    align-items: flex-end;
    min-height: clamp(560px, 80vh, 820px);
  }

  .h4-hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    max-height: none;
  }

  .h4-hero--split .h4-hero__media {
    left: auto;
    width: min(82%, 1500px);
  }

  .h4-hero__media img {
    object-position: 70% 30%;
  }

  .h4-hero__shade {
    background:
      linear-gradient(90deg, #000 0%, #000 30%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0) 60%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%);
  }

  .h4-hero--full .h4-hero__shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 70%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 36%);
  }

  .h4-hero__inner {
    margin-top: 0;
    padding-block: clamp(96px, 14vw, 170px) clamp(44px, 6vw, 80px);
  }

  .h4-site .h4-hero__title {
    font-size: clamp(4.4rem, 9vw, 8.6rem);
  }

  .h4-site .h4-hero__lead {
    max-width: 40ch;
  }

  .h4-manifesto__inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .h4-mission__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .h4-hero__inner {
    padding-bottom: clamp(60px, 7vw, 96px);
  }
}
