/* v3 medicover. Figma: Medicover Sport 11203:16718 (1440; Default and Variant2 = scrolled state with the photo pinned), mobile 11325:13135 (430). */
.v3-med {
  --md-dash: repeating-linear-gradient(180deg, var(--v3-gray-50) 0 3px, transparent 3px 5px);
  background: var(--v3-bg-light);
  overflow-x: clip;               /* clip, not hidden: no x-overflow, and position: sticky below keeps working */
  isolation: isolate;
}
.v3-med::before,
.v3-med::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.v3-med::before {                 /* 3 dashed guide lines */
  max-width: var(--v3-container-max);
  margin-inline: auto;
  background:
    var(--md-dash) 3.47% 0 / 1px 100% no-repeat,
    var(--md-dash) 26.94% 0 / 1px 100% no-repeat,
    var(--md-dash) 50% 0 / 1px 100% no-repeat;
}
.v3-med::after {
  opacity: 0.03;
  background: url("../../../images/v3/hero/noise.webp") 0 0 / 256px;
}

/* ---- layout: content (rows 1-3) | pinned photo (col 2) ---- */
.v3-med__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(min(714px, 49.58vw) - var(--v3-gutter));   /* photo is 714px wide from 1440, fluid below */
  align-items: start;
}
.v3-med__head,
.v3-med__body,
.v3-med__cta { grid-column: 1; max-width: 572px; }
.v3-med__head { margin-bottom: 60px; }
.v3-med__body { display: flex; flex-direction: column; gap: 40px; margin-bottom: 40px; }

.v3-med__photo {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  margin: calc(var(--v3-section-pad) * -1) calc(var(--v3-gutter) * -1);   /* full section height, bleeds to the right edge of the 1440 frame */
  margin-left: 0;
}
.v3-med__pin {
  position: sticky;
  top: var(--v3-header-h, 62px);
  height: min(648px, calc(100vh - var(--v3-header-h, 62px)));
  min-height: 420px;
  overflow: hidden;
  background: var(--v3-dark);
}
.v3-med__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v3-med__logo { position: absolute; top: 7px; right: 0; width: 25.8%; max-width: 184px; height: auto; }

/* ---- header ---- */
.v3-med__label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 40px;
  font-size: var(--v3-fs-caption);
  font-weight: 700;
  line-height: var(--v3-lh-tight);
  text-transform: uppercase;
}
.v3-med__label::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--v3-primary); }
.v3-med__title { max-width: 457px; margin-bottom: 24px; color: var(--v3-dark); }
.v3-med__accent { color: var(--v3-primary); display: block; }
.v3-med__lead { max-width: 504px; margin: 0; font-size: 16px; font-weight: 600; line-height: var(--v3-lh-body-m); color: var(--v3-gray-200); }

/* ---- stats ---- */
.v3-med__stats { display: flex; gap: 60px; margin: 0; padding: 0; list-style: none; }
.v3-med__stat { display: flex; flex-direction: column; gap: 12px; width: 189px; }
.v3-med__num { margin: 0; font-size: clamp(32px, 10.2vw, 44px); font-weight: 700; line-height: 1.16; letter-spacing: -0.02em; white-space: pre; }
.v3-med__num span { color: var(--v3-gray-100); }
.v3-med__stat-label { margin: 0; font-size: 16px; font-weight: 700; line-height: var(--v3-lh-body-m); white-space: nowrap; }

/* ---- benefits ---- */
.v3-med__benefits-title { margin: 0 0 20px; font-size: 12px; line-height: var(--v3-lh-tight); color: var(--v3-gray-100); }
.v3-med__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v3-med__list li { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 16px; line-height: var(--v3-lh-body-m); }
.v3-med__check { display: grid; flex: none; place-items: center; width: 18px; height: 18px; border-radius: 100px; background: var(--v3-primary-10); }

/* ---- CTA ---- */
.v3-med__cta { display: flex; flex-direction: column; gap: 20px; }
.v3-med__cta-lead { max-width: 531px; margin: 0; font-size: 12px; line-height: var(--v3-lh-tight); color: var(--v3-gray-200); }
.v3-med__cta-lead strong { color: var(--v3-gray-400); font-weight: 700; }
.v3-med__btn { width: 320px; max-width: 100%; }
.v3-med__btn-m { display: none; }

/* ---- <=1024: one column (head, stats, benefits, photo, button) ---- */
@media (max-width: 1024px) {
  .v3-med::before {
    max-width: none;
    background:
      var(--md-dash) 16px 0 / 1px 100% no-repeat,
      var(--md-dash) calc(100% - 16px) 0 / 1px 100% no-repeat;
  }
  .v3-med__inner { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
  .v3-med__head,
  .v3-med__body,
  .v3-med__cta { max-width: none; margin: 0; }
  .v3-med__head { order: 1; }
  .v3-med__body { order: 2; }
  .v3-med__photo { order: 3; margin: 0; }
  .v3-med__cta { order: 4; }
  .v3-med__pin { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 390 / 300; border-radius: var(--v3-radius-md); }
  .v3-med__logo { display: none; }
  .v3-med__cta-lead { display: none; }
  .v3-med__btn { width: 100%; }
  .v3-med__btn-d { display: none; }
  .v3-med__btn-m { display: inline; }
  .v3-med__label { height: 20px; margin-bottom: 12px; }
  .v3-med__title { margin-bottom: 0; max-width: none; }
  .v3-med__lead { display: none; }
  .v3-med__stats { gap: 32px; }
  .v3-med__stat { width: auto; flex: 1; min-width: 0; }
  .v3-med__stat-label { white-space: normal; }
  .v3-med__benefits-title { margin-bottom: 12px; font-size: 16px; line-height: var(--v3-lh-body-m); }
  .v3-med__list { gap: 12px; }
  .v3-med__list li { align-items: flex-start; min-height: 0; }
  .v3-med__check { margin-top: 2px; }
}

@media (max-width: 480px) {
  .v3-med__stats { gap: 16px; }
  .v3-med__num { white-space: normal; }
}
