/* ==========================================================================
   Stats bar — shared (homepage + about page)
   ========================================================================== */
.smi-statbar {
  background: var(--c1);
  padding: 80px 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.smi-statbar-r {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.smi-statbar-slider {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.smi-statbar-cards-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.smi-statbar-cards {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: calc(80vh + 72px);
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.55s ease;
  will-change: transform;
}

.smi-statbar-cards.swiper-wrapper {
  gap: 0;
  width: auto;
}

.smi-statbar-txt {
  flex: 0 0 28%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
}

.smi-statbar-txt p {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  color: var(--hero-quote);
  margin-bottom: 12px;
}

.smi-statbar-txt h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--cw);
  line-height: 1.25;
}

.smi-s-card {
  flex: 0 0 calc(20% - 5px);
  position: relative;
  height: 80vh;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
}

.smi-stat-swiper .smi-s-card {
  flex: 0 0 auto;
  width: unset;
  max-width: none;
}

.smi-s-card:nth-child(odd) {
  margin-top: 72px;
}

.smi-s-card:nth-child(even) {
  margin-top: 0;
}

.smi-s-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.smi-s-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.smi-s-card:nth-child(odd)::after {
  bottom: 0;
  height: 95%;
  background: linear-gradient(
    to top,
    var(--stat-fade) 0%,
    var(--stat-fade) 30%,
    var(--stat-fade-soft) 52%,
    var(--stat-fade-mid) 72%,
    transparent 100%
  );
}

.smi-s-card:nth-child(even)::after {
  top: 0;
  height: 95%;
  background: linear-gradient(
    to bottom,
    var(--stat-fade) 0%,
    var(--stat-fade) 30%,
    var(--stat-fade-soft) 52%,
    var(--stat-fade-mid) 72%,
    transparent 100%
  );
}

.smi-s-card-c {
  position: relative;
  z-index: 2;
  background: var(--card-frost);
  padding: 20px 14px;
  width: calc(100% - 8px);
  margin-inline: 4px;
}

.smi-s-card:nth-child(odd) .smi-s-card-c {
  margin-top: auto;
  padding-bottom: 26px;
}

.smi-s-card:nth-child(even) .smi-s-card-c {
  margin-top: 0;
  padding-top: 26px;
}

.smi-s-card-n {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--c1);
  margin-bottom: 10px;
  line-height: 1.1;
}

.smi-s-card-l {
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.5;
  color: var(--cm);
}

@media (max-width: 767px) {
  .smi-statbar-cards {
    gap: 0;
    min-height: 0;
  }

  .smi-stat-swiper .smi-s-card {
    flex: 0 0 auto;
    height: 80vh !important;
    min-height: 80vh !important;
    aspect-ratio: auto;
    opacity: 1;
  }

  .smi-stat-swiper .smi-s-card:nth-child(odd) .smi-s-card-c {
    padding-bottom: 20px;
  }

  .smi-stat-swiper .smi-s-card:nth-child(even) .smi-s-card-c {
    padding-top: 20px;
  }

  .smi-stat-swiper .smi-s-card-n {
    font-size: clamp(42px, 11vw, 56px);
    margin-bottom: 12px;
  }

  .smi-stat-swiper .smi-s-card-l {
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.45;
  }
}
