/* Главная: статистика пусков */

/* Экран 2 — статистика пусков */
.stats { display: flex; flex-direction: column; gap: 2.5rem; padding: 5rem 3.75rem; }
.stats-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9rem;
  padding: 3.8125rem 4.9375rem 3.8125rem 8.875rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../../img/card-bg-stats.jpg') no-repeat center / cover;
  opacity: .8;
}
.stats-card > * { position: relative; }
.stats-card__col { flex: none; display: flex; flex-direction: column; justify-content: space-between; height: 12.5rem; }
.stats-card__col--left { width: 31.75rem; }
.stats-card__col--right { width: 35.6875rem; }
.stats-card__row { display: flex; align-items: center; gap: 1.6875rem; }
.stats-card__label {
  font-size: 2.5rem;        /* H2 40/50 Semibold */
  line-height: 3.125rem;
  font-weight: 600;
  text-transform: uppercase;
}
.stats-card__col--left .stats-card__label { width: 14.125rem; }
.stats-card__col--right .stats-card__label { width: 17.375rem; }
/* В макете обводка 6 px с круглыми концами (stroke-width: 6, stroke-linecap: round) */
.stats-card__bar { flex: none; width: .375rem; border-radius: .1875rem; background: var(--white); }
.stats-card__bar--90 { height: 5.625rem; }
.stats-card__bar--80 { height: 5rem; }
.stats-card__value {
  font-size: 6.25rem;       /* H3 100/80 Bold */
  line-height: 5rem;
  font-weight: 700;
  color: var(--orange);
}
.emblem { position: relative; flex: none; display: block; width: 19.5625rem; height: 19.5625rem; }
.emblem__img { width: 100%; height: 100%; object-fit: contain; }
.emblem__img--mob { display: none; }

/* Адаптив (< 1280 px — раскладка вне макета, */
@media (max-width: 1279px) {
  /* 370 px */
  /* Статистика */
  .stats { padding-left: 1rem; padding-right: 1rem; }
  .stats { padding-top: 2.5rem; padding-bottom: 2.5rem; gap: 1.5rem; }
  /* Статистика пусков — в строку, как на ПК: показатель, эмблема, показатель */
  .stats-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3.4vw, 3.25rem);
    padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1rem, 2.6vw, 2.5rem);
  }
  /* обе колонки одной ширины, поэтому эмблема встаёт ровно по центру карточки */
  .stats-card__col,
  .stats-card__col--left,
  .stats-card__col--right {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    gap: clamp(.75rem, 1.6vw, 1.5rem);
  }
  .stats-card__row { gap: clamp(.625rem, 1.4vw, 1.25rem); }
  .stats-card__label,
  .stats-card__col--left .stats-card__label,
  .stats-card__col--right .stats-card__label {
    width: auto;
    font-size: clamp(12px, 1.6vw, 20px);
    line-height: 1.25;
  }
  .stats-card__value { font-size: clamp(24px, 3.6vw, 46px); line-height: 1.2; }
  .stats-card__bar { width: 2px; border-radius: 1px; }
  .stats-card__bar--90,
  .stats-card__bar--80 { height: clamp(2.125rem, 4.6vw, 3.5rem); }
  .stats-card .stats-card__btn { width: 18.75rem; max-width: 100%; height: 2.75rem; font-size: clamp(10px, 1.15vw, 14px); }
  /* 300 px, как на ПК */
  .emblem { flex: 0 0 auto; width: clamp(5.5rem, 13vw, 9.375rem); height: auto; aspect-ratio: 1; align-self: center; }
}

/* Шапка планшета — мобильная: бургер слева, */
@media (max-width: 767px) {
  /* планшетные размеры кнопок (44 и 40 px) в мобильный не переносим — в макете все 48 px */
  .stats-card .stats-card__btn { width: 100%; max-width: none; height: 48px; font-size: 14px; }
  /* --- экран 2: статистика пусков --- */
  .stats { padding: 49px 20px 31px; gap: 30px; }
  /* макет 840-3855: общая высота секции 661 px */
  .stats-card { flex-direction: column; gap: 40px; padding: 20px; }
  .stats-card::before { background-image: url('../../../img/m-card-bg.png'); opacity: 1; }
  .stats-card__col,
  .stats-card__col--left,
  .stats-card__col--right { width: 100%; height: auto; gap: 40px; }
  .stats-card__row { gap: 20px; justify-content: center; }
  .stats-card__label,
  .stats-card__col--left .stats-card__label,
  .stats-card__col--right .stats-card__label { width: 137px; font-size: 20px; line-height: 30px; }
  .stats-card__bar,
  .stats-card__bar--90,
  .stats-card__bar--80 { height: 58px; }
  .stats-card__value,
  .stats-card__value--lg { font-size: 50px; line-height: 1; }
  .emblem { width: 100px; height: 100px; align-self: center; }
  .emblem__img--desk { display: none; }
  .emblem__img--mob { display: block; }
}
