/* Homepage stats — TDYU DNA: cyan / sky / cream */
.tdyu-home-stats {
  --tdyu-cyan: #0c5776;
  --tdyu-sky: #00ade2;
  --tdyu-cream: #f6f4ee;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(120deg, rgba(0, 173, 226, 0.16), transparent 42%),
    linear-gradient(180deg, #0a4a66 0%, var(--tdyu-cyan) 55%, #083d54 100%);
  color: #fff;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 4vw, 40px);
  overflow: hidden;
}

.tdyu-home-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 180px at 12% 0%, rgba(0, 173, 226, 0.28), transparent 60%),
    radial-gradient(420px 160px at 90% 100%, rgba(246, 244, 238, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.tdyu-home-stats__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.tdyu-home-stats__item {
  text-align: center;
  padding: 8px 14px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.tdyu-home-stats.is-in .tdyu-home-stats__item {
  opacity: 1;
  transform: none;
}

.tdyu-home-stats__item + .tdyu-home-stats__item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.tdyu-home-stats__num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.tdyu-home-stats__num::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: var(--tdyu-sky);
}

.tdyu-home-stats__label {
  margin-top: 12px;
  font-size: clamp(11px, 1.1vw, 12.5px);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 244, 238, 0.88);
  line-height: 1.35;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .tdyu-home-stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .tdyu-home-stats__item + .tdyu-home-stats__item {
    border-left: 0;
  }
  .tdyu-home-stats__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .tdyu-home-stats__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .tdyu-home-stats__inner {
    grid-template-columns: 1fr;
  }
  .tdyu-home-stats__item:nth-child(odd) {
    border-right: 0;
  }
  .tdyu-home-stats__item {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .tdyu-home-stats__item:last-child {
    border-bottom: 0;
  }
}
