.stages {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  padding-top: 2rem;
}

.stage-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 26px;
  overflow: visible;
  box-shadow: 0 12px 30px rgba(27, 39, 53, 0.08);
  display: flex;
  flex-direction: column;
}

.stage-card:hover { box-shadow: 0 24px 50px rgba(27, 39, 53, 0.15); }

.stage-img {
  position: relative;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}
.stage-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.7s ease; }
.stage-card:hover .stage-img img { transform: scale(1.08); }

.stage-age-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: var(--color-secondary);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.stage-big-num {
  position: absolute;
  top: -20px;
  inset-inline-start: 1rem;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(30, 111, 142, 0.35);
  z-index: 3;
  border: 4px solid var(--bg-alt);
}

.stage-body { padding: 1.6rem 1.4rem 1.5rem; }

.stage-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-main); }
.stage-body p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stages-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .stage-card { padding: 0; }
  .stage-img { border-radius: 22px 22px 0 0; }
  .stage-img img { aspect-ratio: 16 / 10; }
  .stage-big-num { width: 52px; height: 52px; font-size: 1rem; top: -16px; }
  .stage-body { padding: 1.4rem 1.2rem; }
  .tilt-left, .tilt-right, .tilt-left-sm, .tilt-right-sm { transform: none; }
}