/* Prilej Olej – Hero
   Zachováva rozmery a správanie hero z odsúhlaseného HTML návrhu. */

.po-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #ddd;
}

.po-hero .hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
  background-image: var(--desktop);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.po-hero .hero-bg.active {
  opacity: 1;
  visibility: visible;
}

.po-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,.98) 25%,
    rgba(255,255,255,.84) 42%,
    rgba(255,255,255,.34) 58%,
    rgba(255,255,255,0) 74%
  );
}

.po-hero .hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-top: 55px;
  padding-bottom: 55px;
}

.po-hero .hero-copy {
  width: min(610px, 52vw);
}

.po-hero .hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.7vw, 4.9rem);
  line-height: .94;
  letter-spacing: -.06em;
}

.po-hero .hero-copy h1 span {
  display: block;
  color: var(--green, #00A651);
}

.po-hero .hero-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: #4f575e;
  font-size: 1.05rem;
}

.po-hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.po-hero .hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 30px;
}

.po-hero .hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #cfd7d1;
  background: #fff;
  cursor: pointer;
}

.po-hero .hero-dot.active {
  background: var(--green, #00A651);
  border-color: var(--green, #00A651);
}

@media (max-width: 780px) {
  .po-hero {
    min-height: 610px;
    height: auto;
    overflow: hidden;
    background: #fff;
  }

  .po-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    background-image: var(--mobile);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .po-hero::after {
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.08) 0%,
      rgba(255,255,255,.12) 30%,
      rgba(255,255,255,.48) 50%,
      rgba(255,255,255,.88) 68%,
      #fff 86%,
      #fff 100%
    );
  }

  .po-hero .hero-inner {
    min-height: 610px;
    display: flex;
    align-items: flex-end;
    padding-top: 220px;
    padding-bottom: 52px;
  }

  .po-hero .hero-copy {
    width: 100%;
    padding-top: 0;
    background: transparent;
  }

  .po-hero .hero-copy h1 {
    font-size: clamp(2.35rem, 11.2vw, 3.15rem);
    line-height: .94;
  }

  .po-hero .hero-copy p {
    display: none;
  }

  .po-hero .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .po-hero .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: .88rem;
    white-space: nowrap;
  }

  .po-hero .hero-dots {
    margin-top: 21px;
  }
}

@media (max-width: 430px) {
  .po-hero .hero-copy h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.9rem);
    line-height: .95;
  }
}
