/* Hero — split layout; right visual fills column (reference-style) */

main > .hero.hero--split {
  padding-top: calc(var(--header-h) + 1.5rem) !important;
}

.hero--split {
  --hero-sky: #f7f9fc;
  --hero-sky-mid: #eef4fb;
  --hero-sky-deep: #e3edf8;
  position: relative;
  overflow: hidden;
  padding-bottom: 2.5rem;
  background: linear-gradient(118deg, var(--hero-sky) 0%, var(--hero-sky-mid) 48%, var(--hero-sky-deep) 100%);
}

.hero--split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 78% 35%, rgba(186, 215, 252, 0.45), transparent 62%),
    radial-gradient(ellipse 40% 35% at 95% 70%, rgba(219, 234, 254, 0.35), transparent 55%);
  pointer-events: none;
}

.hero--split .hero__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem 2rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero--split .hero__inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 1.25rem 1rem;
    min-height: clamp(380px, 42vh, 480px);
  }
}

/* Left — offer panel */
.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #0a0a0a;
  border-radius: 20px;
  color: #f8fafc;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.hero__panel-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
}

.hero__panel-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__panel-text {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.82);
}

.hero__panel-price {
  margin-bottom: 1.5rem;
}

.hero__panel-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.hero__panel-eligibility {
  margin: 0.65rem 0 0;
}

.hero__panel-eligibility__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d1fae5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.06));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero__panel-eligibility__badge strong {
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero__panel-eligibility__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(110, 231, 183, 0.45);
  position: relative;
}

.hero__panel-eligibility__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0.35rem;
  height: 0.35rem;
  margin: -0.2rem 0 0 -0.175rem;
  background: #6ee7b7;
  border-radius: 50%;
  box-shadow: -0.28rem 0.12rem 0 -0.05rem #6ee7b7, 0.28rem 0.12rem 0 -0.05rem #6ee7b7;
}

.hero__panel-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  border-radius: 10px;
}

.hero__panel-price-tag .hero__price-was {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 700;
}

.hero__panel-price-tag .hero__price-arrow {
  font-weight: 800;
  opacity: 0.7;
}

.hero__panel-price-note {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.75);
}

.hero__panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__panel-actions .btn--offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(145deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.hero__panel-actions .btn--offer:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.hero__panel-actions .btn--outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.hero__panel-actions .btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

/* Right — same row height as panel; image scales inside column */
.hero__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.hero__visual {
  display: block;
  width: auto;
  max-width: 112%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: none;
}

@media (min-width: 1024px) {
  .hero__media {
    min-height: 100%;
  }

  .hero__visual {
    object-position: 100% center;
  }
}

@media (min-width: 1280px) {
  .hero--split .hero__inner {
    width: min(1280px, 96vw);
    min-height: clamp(400px, 44vh, 500px);
  }
}

@media (max-width: 1023px) {
  .hero__panel {
    height: auto;
  }

  .hero__media {
    height: auto;
    min-height: 220px;
    justify-content: center;
    margin-top: 0.25rem;
  }

  .hero__visual {
    width: 100%;
    height: auto;
    max-height: min(52vw, 280px);
    object-position: center bottom;
  }
}
