:root {
  --green: #5f8e2e;
  --dark-green: #143718;
  --text: #353535;
  --line: rgba(93, 129, 46, 0.16);
  --bg1: #f4f8e7;
  --bg2: #f8f8eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "DM Sans", sans-serif; background: #fff; color: var(--text); }

.nursery-counter-section {
  width: 100%;
  padding: 28px 3.4%;
  overflow: hidden;
}

.counter-container {
  width: 100%;
  min-height: 170px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border: 1px solid rgba(105, 139, 54, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.75), transparent 32%),
    linear-gradient(90deg, var(--bg1), var(--bg2));
  box-shadow: 0 10px 28px rgba(79,103,40,.035);
}

.counter-item {
  min-width: 0;
  min-height: 118px;
  padding: 0 34px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
}

.counter-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  width: 1px;
  height: calc(100% - 14px);
  background: var(--line);
}

.counter-item.counter-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}
.counter-item:nth-child(2).counter-visible { transition-delay: .1s; }
.counter-item:nth-child(3).counter-visible { transition-delay: .2s; }
.counter-item:nth-child(4).counter-visible { transition-delay: .3s; }

.counter-icon {
  width: 102px;
  height: 102px;
  flex: 0 0 102px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9);
  font-size: 40px;
  transition: transform .35s ease, color .35s ease, background .35s ease, box-shadow .35s ease;
}

.icon-small {
  position: absolute;
  right: 20px;
  bottom: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
}

.counter-item:hover .counter-icon {
  color: #fff;
  background: var(--green);
  transform: translateY(-7px) rotate(-4deg);
  box-shadow: 0 14px 28px rgba(70,111,35,.2);
}
.counter-item:hover .icon-small { color: var(--green); }

.counter-content { min-width: 0; }
.counter-content h3 {
  display: flex;
  align-items: baseline;
  color: var(--dark-green);
  font-size: clamp(32px, 2.55vw, 45px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.counter-symbol { margin-left: 2px; }
.counter-content h4 {
  margin-top: 11px;
  color: #16351b;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.2;
  font-weight: 700;
}
.counter-content p {
  margin-top: 10px;
  color: #444;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .counter-container { padding: 24px 18px; }
  .counter-item { padding: 0 22px; gap: 16px; }
  .counter-icon { width: 88px; height: 88px; flex-basis: 88px; font-size: 34px; }
  .icon-small { right: 15px; bottom: 17px; }
}

@media (max-width: 980px) {
  .nursery-counter-section { padding-inline: 20px; }
  .counter-container { min-height: 145px; padding: 22px 12px; }
  .counter-item { min-height: 102px; padding: 0 13px; gap: 11px; }
  .counter-icon { width: 70px; height: 70px; flex-basis: 70px; font-size: 28px; }
  .icon-small { right: 9px; bottom: 11px; font-size: 13px; }
  .counter-content h3 { font-size: 31px; }
  .counter-content h4 { font-size: 14px; }
  .counter-content p { font-size: 12px; }
}

/* Mobile: all four items stay in one row */
@media (max-width: 700px) {
  .nursery-counter-section { padding: 16px 8px; }
  .counter-container {
    min-height: 112px;
    padding: 13px 5px;
    border-radius: 12px;
  }
  .counter-item {
    min-height: 84px;
    padding: 0 6px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    text-align: center;
  }
  .counter-item:not(:last-child)::after { top: 4px; height: calc(100% - 8px); }
  .counter-icon { width: 45px; height: 45px; flex: 0 0 45px; font-size: 19px; }
  .icon-small { right: 3px; bottom: 5px; padding: 1px; font-size: 9px; }
  .counter-content h3 { justify-content: center; font-size: clamp(19px, 6vw, 28px); letter-spacing: -.7px; }
  .counter-content h4 { margin-top: 4px; font-size: clamp(8px, 2.55vw, 12px); line-height: 1.15; }
  .counter-content p { margin-top: 4px; font-size: clamp(7px, 2.1vw, 10px); line-height: 1.25; }
  .counter-content p br { display: none; }
}

@media (max-width: 400px) {
  .nursery-counter-section { padding-inline: 4px; }
  .counter-container { min-height: 100px; padding-inline: 2px; }
  .counter-item { padding-inline: 3px; }
  .counter-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
  .counter-content h3 { font-size: 20px; }
  .counter-content h4 { font-size: 8px; }
  .counter-content p { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
