/* Hinnastosivun hero */
.price-hero {
  background-color: #181818 !important;
  background-image: url('/images/hinnasto/hero.png?v=20261031-2') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  position: relative;
  overflow: hidden;
}

.price-hero__inner {
  position: relative;
  z-index: 1;
}

.price-hero__copy {
  position: relative;
  z-index: 2;
}

/* Desktop */
@media (min-width: 768px) {
  .price-hero {
    background-size: 100% auto !important;
    background-position: center center !important;
  }

  .price-hero__inner {
    min-height: 300px !important;
    grid-template-columns: minmax(0, 1fr) 390px;
  }

  .tila-help {
    min-height: 300px !important;
  }

  .tila-help__bubble {
    position: absolute !important;
    top: 18px !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    width: 205px !important;
  }
}

/* Mobiili – nykyiset asetukset säilyvät */
@media (max-width: 767px) {
  .price-hero {
    background-position: 65% center !important;
  }

  .price-hero__inner {
    min-height: 650px !important;
  }

  .tila-help__bubble {
    top: 15px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
}

/* Desktop: hieman pienempi hero-kuva, tumma oikea reuna */
@media (min-width: 768px) {
  .price-hero {
    background-color: #080808 !important;
    background-size: 95% auto !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
  }
}

/* HINNASTOHERO – desktopin viimeistely 31.10.2026 */
@media (min-width: 768px) {

  /* Pienempi kuva ja oikean reunan pehmeä häivytys */
  .price-hero {
    background-image:
      linear-gradient(
        to right,
        #080808 0%,
        rgba(8, 8, 8, 0.95) 5%,
        rgba(8, 8, 8, 0.65) 12%,
        rgba(8, 8, 8, 0.25) 19%,
        transparent 25%,
        transparent 83%,
        rgba(8, 8, 8, 0.35) 89%,
        rgba(8, 8, 8, 0.85) 95%,
        #080808 100%
      ),
      url('/images/hinnasto/hero.png?v=20261031-2') !important;

    background-size:
      100% 100%,
      min(88%, 1300px) auto !important;

    background-position:
      center center,
      center center !important;

    background-repeat: no-repeat !important;
    background-color: #080808 !important;
  }

  /* Puhekupla pienemmäksi ja parempaan kohtaan */
  .tila-help__bubble {
    top: 12px !important;
    right: -12px !important;
    left: auto !important;

    width: 178px !important;
    min-height: 0 !important;
    padding: 9px 11px !important;

    transform: none !important;
    border-radius: 13px !important;
  }

  .tila-help__bubble strong {
    line-height: 1.2 !important;
  }

  .tila-help__bubble > span {
    line-height: 1.3 !important;
    margin-top: 3px !important;
  }

  .tila-help__bubble a {
    line-height: 1.2 !important;
    margin-top: 6px !important;
  }

  /* Puhekuplan kärki */
  .tila-help__bubble::after {
    left: 12px !important;
    bottom: -17px !important;
    width: 32px !important;
    height: 19px !important;
  }
}

/* TESTI: desktop-puhekuplan koko ja sijainti */
@media (min-width: 768px) {
  .price-hero .tila-help .tila-help__bubble {
    box-sizing: border-box !important;
    width: 180px !important;
    max-width: 180px !important;
    padding: 8px 10px !important;
    top: 8px !important;
    right: 75px !important;
    left: auto !important;
    transform: none !important;
  }

  .price-hero .tila-help__bubble strong {
    font-size: 12px !important;
  }

  .price-hero .tila-help__bubble > span {
    font-size: 11px !important;
  }

  .price-hero .tila-help__bubble a {
    font-size: 12px !important;
  }
}
