/* =========================================================
   lu-team-stats — блок команды вожатых.
   Три формата на одном CSS:
     • .lu-team--teaser  — компактный тизер (сезонные страницы):
                           аватарки + 3 цифры + строка-ссылка
     • .lu-team--door    — тизер для «двери» family-camp:
                           цифры рядом + аватарки + sage-кнопка
     • .lu-team--full    — развёрнутый блок «Команда в цифрах»
                           (только на каталоге family-camp-team)

   Базовый вид плашки повторяет lu-photo-split / lu-photo-cards
   (серая плашка, блик, светлый inner), чтобы блок стоял в одном
   ряду с карточками вожатых как родной. Все цвета — через токены
   из lu-palette.css с безопасными фолбэками.

   Подключать ОДНИМ файлом. Самодостаточный, ничего не
   перекрывает за пределами .lu-team*.
   ========================================================= */

/* Локальные токены блока (наследуют палитру сайта) */
.lu-team{
  --lu-team-bg:        var(--lu-card-bg, #f5f5f5);
  --lu-team-radius:    var(--lu-card-radius, 28px);
  --lu-team-inner-bg:  #f7f7f5;
  --lu-team-accent:    var(--lu-forest, #4A7C5C);   /* цифры/акцент текста */
  --lu-team-sage:      var(--lu-sage, #7BA77F);     /* кнопка */
  --lu-team-sage-dark: var(--lu-forest, #4A7C5C);   /* hover кнопки */
  --lu-team-muted:     rgba(17,17,17,.62);

  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 var(--lu-card-margin, 20px);
  padding: 26px 28px;
  background: var(--lu-team-bg);
  border-radius: var(--lu-team-radius);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  overflow: hidden;
}
.lu-team, .lu-team *{ box-sizing: border-box; }

/* Блик — как у всех плашек */
.lu-team::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 42%);
  z-index: 0;
}
.lu-team > *{ position: relative; z-index: 1; }

/* ---------- Заголовок / подзаголовок ---------- */
.lu-team__title{
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}
.lu-team__sub{
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lu-team-muted);
}

/* Строка-подводка внутри тизеров (вместо повторного заголовка) */
.lu-team__lead{
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #111;
}

/* Крупная строка с названиями лагерей (вместо числа) */
.lu-team__venues{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--lu-team-accent);
}
@media (max-width: 360px){
  .lu-team__venues{ font-size: 19px; }
}

/* ---------- Аватарки внахлёст ---------- */
.lu-team__avatars{
  display: flex;
  align-items: center;
}
.lu-team__face,
.lu-team__more{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--lu-team-bg);
  margin-left: -14px;
  flex: 0 0 auto;
}
.lu-team__face:first-child{ margin-left: 0; }

.lu-team__face{
  overflow: hidden;
  background: #d9ddd4;
}
.lu-team__face img{
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  margin: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 0;
}

.lu-team__more{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lu-accent-soft, #DFF3CF);
  color: var(--lu-forest-deep, #2F5D4E);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Цифры ---------- */
.lu-team__stats{
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
}
.lu-team__num{
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--lu-team-accent);
}
.lu-team__num .lu-team__frac{
  font-size: 18px;
  color: rgba(17,17,17,.4);
  font-weight: 700;
}
.lu-team__cap{
  margin-top: 6px;
  max-width: 140px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--lu-team-muted);
}

/* Вертикальный разделитель между аватарками и цифрами */
.lu-team__divider{
  width: 1px;
  align-self: stretch;
  min-height: 48px;
  background: rgba(0,0,0,.1);
  flex: 0 0 auto;
}

/* ---------- Ссылка / кнопка ---------- */
.lu-team__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lu-team-accent);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(74,124,92,.35);
  padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.lu-team__link:hover,
.lu-team__link:focus{
  color: var(--lu-forest-deep, #2F5D4E);
  border-bottom-color: rgba(47,93,78,.6);
  text-decoration: none !important;
}

.lu-team__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--lu-team-sage);
  color: #fff !important;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.lu-team__btn:hover,
.lu-team__btn:focus{
  color: #fff !important;
  text-decoration: none !important;
  background: var(--lu-team-sage-dark);
  transform: translateY(-1px);
}

/* =========================================================
   A) ТИЗЕР для сезонных — аватарки + цифры в одну строку
   ========================================================= */
.lu-team--teaser .lu-team__row{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* =========================================================
   B) ТИЗЕР для двери — цифры сеткой на всю ширину, аватарки, кнопка
   ========================================================= */
.lu-team--door .lu-team__stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-bottom: 22px;
}
/* Каждая цифра двери — в такой же плашке, как на каталоге */
.lu-team--door .lu-team__stats > div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  background: var(--lu-team-inner-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.lu-team--door .lu-team__num{ font-size: 36px; white-space: nowrap; }
.lu-team--door .lu-team__num .lu-team__frac{ font-size: 22px; }
.lu-team--door .lu-team__cap{
  max-width: none;
  margin: 9px auto 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.lu-team--door .lu-team__avatars{
  margin-bottom: 4px;
}

/* =========================================================
   C) РАЗВЁРНУТЫЙ блок «Команда в цифрах» — плитка 4×4
   ========================================================= */
.lu-team--full{
  padding: 32px 30px 28px;
}
.lu-team--full .lu-team__title{
  text-align: center;
  font-size: 26px;
}
.lu-team--full .lu-team__sub{
  text-align: center;
  margin-bottom: 26px;
}
.lu-team__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
.lu-team__tile{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
  background: var(--lu-team-inner-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.lu-team__tile .lu-team__num{ font-size: 36px; white-space: nowrap; }
.lu-team__tile .lu-team__num--sm{ font-size: 23px; }
.lu-team__tile .lu-team__num--mid{ font-size: 27px; }
.lu-team__tile .lu-team__venues{ font-size: 23px; }
.lu-team__tile .lu-team__cap{
  margin: 9px auto 0;
  max-width: none;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 991px){
  .lu-team__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px){
  .lu-team{
    padding: 20px 18px;
    border-radius: 24px;
  }

  /* Тизер: всё в столбик, разделитель прячем */
  .lu-team--teaser .lu-team__row{
    gap: 18px;
  }
  .lu-team__divider{ display: none; }

  .lu-team__face,
  .lu-team__more{
    width: 46px;
    height: 46px;
    margin-left: -12px;
  }

  .lu-team__stats{ gap: 16px 22px; }
  .lu-team__num{ font-size: 26px; }
  .lu-team__cap{ max-width: none; }

  /* Строка лагерей на мобайле — компактнее, подпись в одну строку */
  .lu-team--teaser .lu-team__venues{ font-size: 18px; }

  .lu-team__btn{ width: 100%; }

  .lu-team--full{ padding: 22px 16px; }
  .lu-team--full .lu-team__title{ font-size: 22px; }
  .lu-team__tile{ padding: 16px 12px; border-radius: 16px; }
  .lu-team__tile .lu-team__num{ font-size: 30px; }

  /* Цифры на каталоге — по 2 в ряд вплоть до узких экранов */
  .lu-team--full .lu-team__grid{ grid-template-columns: repeat(2, 1fr); }

  /* Цифры на двери — тоже по 2 в ряд, кегль как у каталога */
  .lu-team--door .lu-team__stats{ grid-template-columns: repeat(2, 1fr); }
  .lu-team--door .lu-team__num{ font-size: 30px; }
  .lu-team--door .lu-team__stats > div{ padding: 16px 12px; }
}