/* ===== BLOCK: stats ===== */
.stats__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.3vw, 25px);
}
.stats__row {
  display: grid;
  gap: clamp(16px, 1.3vw, 25px);
}
.stats__row--1 { grid-template-columns: 1.7fr 1.35fr 1fr; min-height: clamp(260px, 18vw, 350px); }
.stats__row--2 { grid-template-columns: 1fr 1.35fr .83fr .83fr; min-height: clamp(240px, 15.6vw, 300px); }

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 2.1vw, 40px);
  border-radius: var(--r-xl);
  min-width: 0;
  container-type: inline-size; /* цифра не ширша за свою картку (cqi) */
}
.stat-card--white { background: var(--c-white); border: 1px solid var(--c-gray-200); box-shadow: var(--sh-soft); }
.stat-card--apricot { background: var(--c-apricot-100); }
.stat-card--apricot-strong { background: var(--c-apricot-200); }

.stat-card__value {
  margin-bottom: auto;
  padding-top: clamp(8px, 2vw, 56px);
  color: var(--c-orange);
  font-family: var(--ff-head);
  /* rem — щоб росло з А+ / А++; min(..., cqi) — запобіжник: не вилазить за картку */
  font-size: min(clamp(2rem, 1.5rem + 1.4vw, 3.5rem), 30cqi);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-card--xl .stat-card__value { font-size: min(clamp(2.25rem, 1.5rem + 2.2vw, 4.2rem), 17cqi); }
.stat-card--lg .stat-card__value { font-size: min(clamp(1.9rem, 1.1rem + 2.1vw, 3.8rem), 17cqi); }

.stat-card__label {
  margin-top: 20px;
  font-family: var(--ff-head);
  font-size: clamp(.9375rem, .85rem + .35vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}
.stat-card--xl .stat-card__label,
.stat-card--lg .stat-card__label { font-size: clamp(1rem, .9rem + .4vw, 1.375rem); }
.stat-card__note {
  margin-top: 8px;
  color: var(--c-ink-2);
  font-family: var(--ff-head);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.stat-photo {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--r-xl);
  background: var(--c-gray-100);
  box-shadow: var(--sh-card);
}
.stat-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .stats__row--1 { grid-template-columns: 1.4fr 1fr; }
  .stats__row--1 .stat-card--lg { grid-column: 1 / -1; min-height: 200px; }
  .stats__row--2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .stats__row--1, .stats__row--2 { grid-template-columns: 1fr 1fr; min-height: 0; }
  .stats__row--1 .stat-card--xl { grid-column: 1 / -1; }
  .stats__row--1 .stat-photo { grid-column: 1 / -1; }
  .stats__row--1 .stat-card--lg { grid-column: 1 / -1; }
  .stats__row--2 .stat-photo { grid-column: 1 / -1; order: 3; }
  .stats__row--2 .stat-card--white { grid-column: 1 / -1; }
  .stat-card { min-height: 200px; border-radius: var(--r-lg); }
  .stat-photo { min-height: 260px; border-radius: var(--r-lg); }
}
@media (max-width: 576px) {
  .stats__row--1, .stats__row--2 { grid-template-columns: 1fr; }
  .stats__row > * { grid-column: auto !important; }
  .stat-card { min-height: 170px; }
  .stat-card__value { white-space: normal; }
}
/* ===== /BLOCK: stats ===== */
