/* Homepage — Statistics section */
.stats {
  height: 398px;
  padding: 80px 0;
  background: var(--surface-light);
}

.stats h2 {
  margin: 0 0 56px;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  line-height: 58px;
  letter-spacing: 0;
}

.stats-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
}

.stats .stat {
  position: relative;
  height: 124px;
  padding: 0;
  border: 0;
  text-align: center;
}

.stats .stat:nth-child(1) {
  width: 156px;
}

.stats .stat:nth-child(2) {
  width: 186px;
}

.stats .stat:nth-child(3) {
  width: 226px;
}

.stats .stat:nth-child(4) {
  width: 251px;
}

.stats .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -64px;
  width: 1px;
  height: 106px;
  background: var(--border-soft);
}

.stats .stat strong {
  display: block;
  color: var(--text-brand-secondary);
  font-size: 60px;
  font-weight: var(--font-weight-bold);
  line-height: 85px;
}

.stats .stat small {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: var(--font-weight-light);
  line-height: 27px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .stats {
    height: auto;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .stats .stat {
    width: auto !important;
  }
  .stats .stat:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats {
    padding: 64px 0;
  }
  .stats h2 {
    margin-bottom: 40px;
    font-size: 38px;
    line-height: 46px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats .stat {
    height: auto;
  }
  .stats .stat:not(:last-child) {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
  }
  .stats .stat::after {
    display: none;
  }
  .stats .stat strong {
    font-size: 52px;
    line-height: 64px;
  }
  .stats .stat small {
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
  }
}
