/* PASS 10 — calculator lifestyle hero and shipping-page responsive repair. */

/* Calculator hero: retain the real product assets while adding the approved
   dual-model lifestyle photography behind them. */
.calc10-hero-visual {
  position: relative;
  min-width: 0;
  height: 360px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  isolation: isolate;
}

.calc10-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(248,248,255,.12) 0%, transparent 24%),
              linear-gradient(180deg, transparent 58%, rgba(242,244,255,.92) 100%);
  pointer-events: none;
}

.calc10-models {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.calc10-hero-visual .calc5-product-stage {
  position: absolute;
  left: 4%;
  right: 2%;
  bottom: -1px;
  z-index: 2;
  height: 126px;
}

.calc10-hero-visual .calc5-product-stage::before {
  left: 4%;
  right: 0;
  bottom: 2px;
  height: 42px;
  opacity: .7;
}

.calc10-hero-visual .calc5-product {
  top: auto;
  bottom: 0;
  width: 27%;
}

.calc10-hero-visual .calc5-product-1 { left: 0; }
.calc10-hero-visual .calc5-product-2 { left: 24%; }
.calc10-hero-visual .calc5-product-3 { left: 48%; }
.calc10-hero-visual .calc5-product-4 { left: 72%; }

/* Shipping page: the first two operational cards may remain paired, but the
   two product-assisted service cards span the full row at tablet widths so
   their copy can never collapse into narrow newspaper-like columns. */
@media (max-width: 1180px) {
  .page-returns7 .returns7-product-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
    min-height: 300px;
    gap: clamp(26px, 4vw, 52px);
    padding: clamp(28px, 4vw, 46px);
  }

  .page-returns7 .returns7-product-card--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
  }

  .page-returns7 .returns7-product-card > img {
    width: 100%;
    height: 250px;
    max-width: 280px;
    justify-self: center;
  }

  .page-returns7 .returns7-product-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  }

  .page-returns7 .returns7-product-card p,
  .page-returns7 .returns7-product-card li {
    font-size: .98rem;
  }
}

@media (max-width: 900px) {
  .calc5-hero-grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 24px;
  }

  .calc10-hero-visual {
    height: 320px;
  }

  .page-returns7 .returns7-grid {
    grid-template-columns: 1fr;
  }

  .page-returns7 .returns7-product-card,
  .page-returns7 .returns7-product-card--reverse {
    grid-column: auto;
    grid-template-columns: minmax(170px, 30%) minmax(0, 1fr);
  }

  .page-returns7 .returns7-product-card--reverse > img {
    order: -1;
  }
}

@media (max-width: 720px) {
  .calc5-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .calc10-hero-visual {
    height: 390px;
    border-radius: 24px;
  }

  .calc10-models {
    object-position: 54% center;
  }

  .calc10-hero-visual .calc5-product-stage {
    left: 2%;
    right: 2%;
    height: 116px;
  }

  .page-returns7 .returns7-product-card,
  .page-returns7 .returns7-product-card--reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }

  .page-returns7 .returns7-product-card > img,
  .page-returns7 .returns7-product-card--reverse > img {
    order: -1;
    height: 210px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .calc10-hero-visual {
    height: 340px;
  }

  .calc10-models {
    object-position: 52% center;
  }

  .calc10-hero-visual .calc5-product-stage {
    height: 98px;
  }

  .calc10-hero-visual .calc5-product {
    width: 30%;
  }

  .calc10-hero-visual .calc5-product-1 { left: -3%; }
  .calc10-hero-visual .calc5-product-2 { left: 22%; }
  .calc10-hero-visual .calc5-product-3 { left: 47%; }
  .calc10-hero-visual .calc5-product-4 { left: 72%; }
}
