/* Hero showcase: three catalog machines next to the headline. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 48px;
}

.hero__show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.show {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.show:hover {
  transform: translateY(-3px);
}

.show:first-child {
  grid-column: 1 / -1;
}

.show img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.show:first-child img {
  aspect-ratio: 16 / 9;
}

.show__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  padding: 10px 14px 12px;
}

.show__name {
  font-weight: 700;
}

.show__price {
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  /* Phone and tablet: machines right under the buttons, facts after them. */
  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero__in {
    display: contents;
  }

  .hero__show {
    order: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .hero__facts {
    order: 2;
    margin-top: 28px;
  }

  .show:first-child {
    grid-column: auto;
  }

  .show:first-child img {
    aspect-ratio: 4 / 3;
  }

  .show__text {
    flex-direction: column;
    padding: 8px 10px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .show__text {
    padding: 8px;
    font-size: 0.8rem;
  }
}
