.home-cert-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
}

.home-cert-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
}

.home-cert-card + .home-cert-card {
  border-left: 1px solid var(--line);
}

.home-cert-card__preview {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3eee6;
}

.home-cert-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3eee6;
}

.home-cert-card__type {
  margin-top: 20px;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-cert-card h3 {
  margin-top: 7px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.home-cert-card__name {
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.home-cert-card__scope {
  flex: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.home-cert-card__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: none;
}

.home-cert-card__link:hover,
.home-cert-card__link:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}

.home-cert-showcase__note {
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.home-cert-showcase__actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .home-cert-showcase {
    grid-template-columns: 1fr;
  }

  .home-cert-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 0 18px;
    padding: 20px 0;
  }

  .home-cert-card + .home-cert-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-cert-card__preview {
    grid-row: 1 / span 5;
    align-self: start;
  }

  .home-cert-card__type,
  .home-cert-card h3,
  .home-cert-card__name,
  .home-cert-card__scope,
  .home-cert-card__link {
    grid-column: 2;
  }

  .home-cert-card__type {
    margin-top: 0;
  }

  .home-cert-card__scope {
    flex: none;
  }

  .home-cert-card__link {
    min-height: 40px;
    margin-top: 4px;
    padding-top: 6px;
  }
}

@media (max-width: 520px) {
  .home-cert-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0 13px;
  }

  .home-cert-card h3 {
    font-size: 1.08rem;
  }

  .home-cert-card__name,
  .home-cert-card__scope,
  .home-cert-card__link {
    font-size: 0.82rem;
  }
}
