.subtitle {
  max-width: 760px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(23, 27, 37, .90);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(29, 35, 48, .96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}

.logo-wrap img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
}

.project-card h2 {
  margin: 0 0 9px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: .96rem;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}

@media (max-width: 700px) {
  .project-card {
    min-height: auto;
  }
}
