.lab-catalog {
  --lab-accent: #e87878;
  --lab-accent-dark: #d85f68;
  --lab-soft: #fff7f7;
  --lab-border: #f0e3e3;
  --lab-text: #555;
  margin: 38px 0 10px;
}

.lab-catalog-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid var(--lab-border);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--lab-soft) 100%);
  box-shadow: 0 8px 24px rgba(232, 120, 120, .08);
}

.lab-catalog-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f4a0a0, var(--lab-accent));
  box-shadow: 0 6px 14px rgba(232, 120, 120, .25);
}

.lab-catalog .lab-catalog-intro h2,
.lab-catalog .lab-project-card h2 {
  color: #4b4b4b;
}

.lab-catalog .lab-catalog-intro h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.35;
}

.lab-catalog .lab-catalog-intro h2:after,
.lab-catalog .lab-project-card h2:after {
  content: none;
}

.lab-catalog .lab-catalog-intro p {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

.lab-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lab-project-card {
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--lab-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(61, 61, 61, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lab-project-card:hover {
  border-color: #efb5b8;
  box-shadow: 0 12px 30px rgba(232, 120, 120, .13);
  transform: translateY(-3px);
}

.lab-project-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--lab-accent-dark);
  background: var(--lab-soft);
  font-size: 12px;
  line-height: 1.4;
}

.lab-catalog .lab-project-card h2 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.45;
}

.lab-catalog .lab-project-url {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  color: #b87373;
  font-family: "Source Code Pro", monospace;
  font-size: 13px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-catalog .lab-project-url:hover {
  color: var(--lab-accent-dark);
  text-decoration: underline;
}

.lab-catalog .lab-project-card p {
  margin: 0 0 22px;
  color: var(--lab-text);
  font-size: 15px;
  line-height: 1.8;
}

.lab-catalog .lab-project-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(110deg, var(--lab-accent), #f29a9f);
  box-shadow: 0 6px 14px rgba(232, 120, 120, .22);
  transition: box-shadow .2s ease, transform .2s ease;
}

.lab-catalog .lab-project-button:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(216, 95, 104, .3);
  transform: translateY(-1px);
}

.lab-catalog .lab-project-button:focus-visible,
.lab-catalog .lab-project-url:focus-visible {
  outline: 3px solid rgba(232, 120, 120, .35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .lab-catalog {
    margin-top: 26px;
  }

  .lab-catalog-intro {
    padding: 16px;
  }

  .lab-catalog-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .lab-catalog .lab-catalog-intro h2 {
    font-size: 19px;
  }

  .lab-project-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-project-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .lab-catalog-intro {
    align-items: flex-start;
  }

  .lab-project-card {
    padding: 18px 16px;
  }

  .lab-catalog .lab-project-button {
    width: 100%;
    box-sizing: border-box;
  }
}
