.foundation-tree {
  max-width: 1240px;
}

.tree-root {
  width: min(390px, 86%);
  min-height: 220px;
  background: radial-gradient(
    circle at 50% 42%,
    #fff 0%,
    #f5f7ff 72%,
    #eefafa 100%
  );
  box-shadow: 0 24px 60px rgba(23, 32, 90, 0.11);
}

.tree-children {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tree-children::before {
  left: 12.5%;
  right: 12.5%;
}

.tree-children article {
  align-content: center;
  min-height: 220px;
  padding: 2.4rem 1rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(34, 59, 225, 0.1);
  border-radius: 20px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.98),
    rgba(246, 247, 255, 0.92)
  );
  box-shadow: 0 14px 35px rgba(23, 32, 90, 0.065);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tree-children article:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(23, 32, 90, 0.1);
}

.tree-children article > span {
  min-height: 2.2em;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.tree-children img {
  width: min(230px, 96%);
}

.tree-children .coming-badge {
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  font-weight: 700;
}

.tree-children .project-coming {
  background: linear-gradient(155deg, #f4fbfb, #f5f2ff);
}

@media (max-width: 1000px) {
  .tree-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .tree-children::before {
    display: none;
  }
  .tree-root::after {
    height: 58px;
  }
  .tree-children article::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .tree-children {
    grid-template-columns: 1fr;
    margin-top: 58px;
    padding-top: 0;
  }
  .tree-children article {
    min-height: 190px;
  }
}
