.repair-case {
  padding-block: var(--section-gap, 88px) 0;
  background: var(--paper);
  color: #171d15;
  scroll-margin-top: 80px;
}

.repair-case__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  grid-template-areas:
    "intro prices"
    "film prices"
    "film metric"
    "film .";
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: 22px;
}

.repair-case__intro { grid-area: intro; }

.repair-case__intro h2 {
  margin: 0 0 16px;
  font-size: var(--section-heading-size, clamp(34px, 4.2vw, 64px));
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.repair-case__intro p,
.repair-case__revenue-caption {
  max-width: 52ch;
  color: #394338;
  font-size: var(--section-lead-size, 17px);
  line-height: 1.5;
}

.repair-case__metric {
  grid-area: metric;
  align-self: end;
}

.repair-case__revenue {
  margin: 0 0 12px;
  font-weight: 500;
  line-height: 1.05;
}

.repair-case__revenue > span {
  display: block;
  margin-bottom: 8px;
  color: #394338;
  font-size: 15px;
}

.repair-case__revenue strong {
  font-size: clamp(46px, 5.7vw, 82px);
  font-weight: 500;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.repair-case__figure {
  display: grid;
  grid-area: film;
  grid-template-rows: subgrid;
  margin: 0;
}

.repair-case__business {
  grid-area: prices;
  align-self: start;
}

.repair-case__media {
  position: relative;
  display: block;
  grid-row: 1 / 3;
  align-self: end;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  border-radius: var(--radius);
  background: #192019;
  overflow: hidden;
}

.repair-case__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 17, .42), transparent 36%);
  content: "";
  pointer-events: none;
}

.repair-case__media:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.repair-case__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.repair-case__labels {
  position: absolute;
  z-index: 1;
  inset: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px) auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.repair-case__labels span,
.repair-case__play {
  border-radius: 4px;
  font-weight: 500;
}

.repair-case__labels span {
  padding: 5px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.repair-case__play {
  position: absolute;
  z-index: 1;
  bottom: clamp(10px, 1.4vw, 18px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.repair-case__media:hover .repair-case__play { background: #fff; }

.repair-case__play-icon {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.repair-case__duration {
  border-left: 1px solid #c8c9c1;
  padding-left: 9px;
  color: #4f594c;
  font-size: 13px;
}

.repair-case__figure figcaption {
  color: #424d40;
  font-size: 13px;
  line-height: 1.4;
}

.repair-case__examples {
  margin: 0 0 12px;
  border-top: 1px solid #bdc8ba;
}

.repair-case__examples > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-block: 13px;
  border-bottom: 1px solid #bdc8ba;
}

.repair-case__examples dt { font-size: 15px; line-height: 1.4; }
.repair-case__examples dd { margin: 0; text-align: right; }
.repair-case__examples strong { display: block; font-size: 15px; white-space: nowrap; }
.repair-case__examples span { color: #424d40; font-size: 13px; white-space: nowrap; }
.repair-case__offer { margin-block: 16px 8px; font-size: 15px; line-height: 1.5; }
.repair-case__note { color: #424d40; font-size: 13px; line-height: 1.5; }

.repair-case__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, calc((100dvh - 90px) * .5625));
  aspect-ratio: 9 / 16;
  max-height: 100%;
}

.repair-case__video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 90px);
  object-fit: contain;
}

.repair-case__feedback {
  position: absolute;
  inset: auto 0 52px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}

.repair-case__status:not(:empty) {
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--paper);
  font-size: 13px;
}

.repair-case__retry { pointer-events: auto; }
.repair-case__retry[hidden] { display: none; }

@media (min-width: 701px) and (max-width: 900px) {
  .repair-case__layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

@media (max-width: 700px) {
  .repair-case__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "prices" "film" "metric";
    grid-template-rows: auto;
  }
  .repair-case__intro h2 { font-size: var(--section-heading-size, clamp(32px, 8.7vw, 40px)); }
  .repair-case__intro p, .repair-case__revenue-caption { font-size: 15px; }
  .repair-case__figure { display: block; }
  .repair-case__figure figcaption { margin-top: 9px; }
  .repair-case__play { font-size: 14px; }
}
