/* =========================================================
   HERO (strona główna)
   ========================================================= */

.hero {
  height: auto;
  min-height: clamp(520px, 80vh, 820px);
  padding-bottom: 0;

  /* menu fixed nachodzi na hero */
  margin-top: calc(-1 * var(--menu-h));
  padding-top: var(--menu-h);

  position: relative;
  overflow: hidden;
  color: #fff;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 35%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,0,0,0.0) 85%
    ),
    url('../images/hero/hero-sup-1920.jpg') center top / cover no-repeat;

  /* gradient + zdjęcie */
  background-position: 0 0, center 97%;
}

/* overlaye */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.05) 25%,
    rgba(0,0,0,0.0) 40%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.26) 0%,
    rgba(0,0,0,0.16) 40%,
    rgba(0,0,0,0.0) 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* kontener treści */
.hero__inner {
  height: 100%;
  position: relative; /* WAŻNE: quick-paths absolutny będzie liczony od tego */
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding-top: 360px;
  padding-bottom: 34px;
  padding-left: 30px;
  padding-right: 0;
}

/* układ */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
}

.hero__left {
  justify-self: start;
}

.hero__right {
  /* celowo puste */
}

/* tytuł + kicker */
.hero__headline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  white-space: normal;
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  opacity: 0.92;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.45),
    0 0 1px rgba(0,0,0,0.6);
}

.hero__kicker {
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.45),
    0 0 1px rgba(0,0,0,0.6);
}

.hero__desc {
  margin-top: 10px;
  max-width: 420px;

  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.35;
  opacity: 0.88;

  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.logo-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* =========================================================
   MOBILE
   Cel: pokazać więcej kadru (contain), a wysokość kontrolować
   tylko na .hero (żeby bottom dla quick-paths nie “pływał”).
   ========================================================= */

@media (max-width: 900px) {
  .hero {
  
    /* to trzyma cały blok w ryzach */
    min-height: clamp(360px, 58svh, 520px);
    /* padding-bottom: 12px; -- bo problem na iphone */
    overflow: visible; /* pozwala quick-pathom wystawać poza hero */
    padding-bottom: calc(50px + env(safe-area-inset-bottom));

    /* pokazujemy więcej zdjęcia */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 0, center top;
  }

  .hero__inner {
    /* NIE ustawiamy tu min-height, bo to rozwala “punkt odniesienia” */
    padding-top: calc(var(--menu-h) + 65px);
    padding-left: 18px;
    padding-right: 18px;

    /* dajemy miejsce na kafle, które są na dole hero */
    padding-bottom: 210px;
  }

   .hero__headline {
    gap: 0px; /* było 16px */
  }

  .hero__grid {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
  }

  .hero__right {
    display: none;
  }

  .hero__title {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.05;
    margin: 0 0 6px 0;
  }

  .hero__kicker {
    font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
    opacity: 0.72;
  }

  .hero__desc {
    display: none;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.22;
    margin: 0;
    max-width: 34ch;
    opacity: 0.9;
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: clamp(28px, 8.2vw, 34px);
  }

 .hero__inner {
    /* NIE ustawiamy tu min-height, bo to rozwala “punkt odniesienia” */
    padding-top: calc(var(--menu-h) + 35px);
    padding-left: 18px;
    padding-right: 18px;

    /* dajemy miejsce na kafle, które są na dole hero */
    padding-bottom: 210px;
  }
  .hero__kicker {
    font-size: 12px;
    letter-spacing: 0.10em;
  }

  .quick-paths__card {
    padding: 12px 14px;
  }

  .quick-paths__title {
    font-size: 1rem;
  }

  .quick-paths__text {
    font-size: 0.9rem;
    line-height: 1.25;
  }
}

/* desktop: zostawiamy miejsce na “wiszące” kafle */
@media (min-width: 901px) {
  .hero {
    padding-bottom: 190px;
  }
}

/* ultrawide */
@media (min-width: 1400px) {
  .hero { background-position: center 97%; }
}
@media (min-width: 1800px) {
  .hero { background-position: center 97%; }
}
@media (min-width: 2400px) {
  .hero { background-position: center 60%; }
}