/* Скоро Пицца · рейтинг команды v5.43.0 */
.team-ranking { display: grid; gap: 18px; }
.team-ranking__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 205px;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 34px 40px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(108deg, rgba(111, 8, 27, .98), rgba(218, 25, 55, .92));
  box-shadow: 0 16px 40px rgba(110, 12, 31, .18);
}
.team-ranking__hero::before,
.team-ranking__hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.team-ranking__hero::before { width: 340px; height: 340px; right: -95px; top: -190px; background: rgba(255, 201, 40, .2); }
.team-ranking__hero::after { width: 220px; height: 220px; right: 70px; bottom: -160px; border: 45px solid rgba(255, 255, 255, .07); }
.team-ranking__eyebrow { margin: 0 0 10px; color: #ffd44f; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.team-ranking__hero h1 { margin: 0; color: #fff; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.team-ranking__hero p:last-child { max-width: 720px; margin: 14px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.55; }
.team-ranking__unit { position: relative; z-index: 1; padding: 22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.team-ranking__unit span, .team-ranking__unit strong, .team-ranking__unit small { display: block; }
.team-ranking__unit span { color: #ffd44f; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.team-ranking__unit strong { margin-top: 8px; color: #fff; font-size: 18px; line-height: 1.25; }
.team-ranking__unit small { margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: 10px; }
.team-ranking__loading,
.team-ranking__empty { display: grid; min-height: 240px; place-items: center; align-content: center; gap: 10px; padding: 34px; border: 1px solid #e3e5e8; border-radius: 16px; color: #7c838d; background: #fff; text-align: center; box-shadow: 0 10px 28px rgba(31, 35, 41, .06); }
.team-ranking__loading span { width: 28px; height: 28px; border: 3px solid #f1d9dd; border-top-color: #d71937; border-radius: 50%; animation: team-spin .7s linear infinite; }
@keyframes team-spin { to { transform: rotate(360deg); } }
.team-ranking__empty strong { color: #34373d; font-size: 19px; }
.team-ranking__empty p { max-width: 520px; margin: 0; font-size: 12px; line-height: 1.55; }
.team-ranking__empty button { margin-top: 6px; }
.team-ranking__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.team-ranking__summary article { position: relative; overflow: hidden; padding: 20px 22px; border: 1px solid #e5e7ea; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(31, 35, 41, .05); }
.team-ranking__summary article::after { content: ""; position: absolute; width: 72px; height: 72px; right: -28px; bottom: -36px; border: 15px solid rgba(227, 25, 55, .07); border-radius: 50%; }
.team-ranking__summary span, .team-ranking__summary strong, .team-ranking__summary small { display: block; }
.team-ranking__summary span { color: #868d96; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.team-ranking__summary strong { margin-top: 7px; color: #30333a; font-size: 30px; line-height: 1; }
.team-ranking__summary small { margin-top: 7px; color: #969ca4; font-size: 10px; }
.team-ranking__leaders,
.team-ranking__board { padding: 22px; border: 1px solid #e3e5e8; border-radius: 17px; background: #fff; box-shadow: 0 10px 30px rgba(31, 35, 41, .06); }
.team-ranking__section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.team-ranking__section-head h2 { margin: 0; color: #30333a; font-size: 22px; letter-spacing: -.02em; }
.team-ranking__section-head p { margin: 5px 0 0; color: #8a9099; font-size: 11px; line-height: 1.45; }
.team-ranking__refresh { min-height: 36px; padding: 0 14px; border: 1px solid #e0e3e6; border-radius: 10px; color: #454950; background: #f8f8f9; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.team-ranking__refresh:hover { color: #9d1027; border-color: #efc5cc; background: #fff3f5; }
.team-ranking__leader-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-ranking__leader { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 17px; border: 1px solid #f0d16b; border-radius: 14px; background: linear-gradient(110deg, #fffaf0, #fff3c9); }
.team-ranking__avatar { display: grid; width: 50px; height: 50px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #a10d28, #df1e3c); font-size: 14px; font-weight: 900; }
.team-ranking__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-ranking__identity strong, .team-ranking__identity small { display: block; }
.team-ranking__identity strong { color: #32353a; font-size: 14px; line-height: 1.25; }
.team-ranking__identity small { margin-top: 4px; color: #858b94; font-size: 10px; }
.team-ranking__you { display: inline-flex; margin-left: 7px; padding: 3px 7px; border-radius: 999px; color: #8b6200; background: #ffe999; font-size: 8px; font-weight: 900; vertical-align: middle; }
.team-ranking__progress { min-width: 104px; text-align: right; }
.team-ranking__progress strong { display: block; color: #9d1027; font-size: 20px; }
.team-ranking__progress small { display: block; margin-top: 4px; color: #8a9099; font-size: 9px; }
.team-ranking__list { display: grid; gap: 8px; }
.team-ranking__row { display: grid; grid-template-columns: 42px 48px minmax(170px, 1fr) minmax(150px, 280px) 74px; align-items: center; gap: 13px; min-height: 76px; padding: 11px 15px; border: 1px solid #e8eaed; border-radius: 13px; background: #fff; }
.team-ranking__row.is-current { border-color: #efc0c8; background: #fff8f9; }
.team-ranking__place { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #61666e; background: #f1f2f4; font-size: 11px; font-weight: 900; }
.team-ranking__row:nth-child(1) .team-ranking__place { color: #6e5000; background: #ffe38a; }
.team-ranking__row:nth-child(2) .team-ranking__place { color: #525861; background: #e8ebef; }
.team-ranking__row:nth-child(3) .team-ranking__place { color: #7a4b27; background: #f4d2b6; }
.team-ranking__bar { height: 9px; overflow: hidden; border-radius: 999px; background: #eef0f2; }
.team-ranking__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc928, #e31937); }
.team-ranking__percent { color: #33363b; font-size: 13px; font-weight: 900; text-align: right; }
.team-ranking__member-empty { padding: 22px; border: 1px dashed #d8dbe0; border-radius: 12px; color: #8b9199; background: #fafafb; font-size: 11px; text-align: center; }
@media (max-width: 900px) {
  .team-ranking__hero { grid-template-columns: 1fr; min-height: 0; padding: 28px; }
  .team-ranking__unit { max-width: 420px; }
  .team-ranking__leader-list { grid-template-columns: 1fr; }
  .team-ranking__row { grid-template-columns: 38px 44px minmax(0, 1fr) 64px; }
  .team-ranking__row .team-ranking__bar { grid-column: 3 / -1; }
}
@media (max-width: 620px) {
  .team-ranking { gap: 12px; }
  .team-ranking__hero { padding: 24px 20px; border-radius: 15px; }
  .team-ranking__hero h1 { font-size: 38px; }
  .team-ranking__summary { grid-template-columns: 1fr; gap: 8px; }
  .team-ranking__summary article { padding: 16px 18px; }
  .team-ranking__leaders, .team-ranking__board { padding: 16px; border-radius: 14px; }
  .team-ranking__section-head { display: block; }
  .team-ranking__refresh { width: 100%; margin-top: 12px; }
  .team-ranking__leader { grid-template-columns: 48px minmax(0, 1fr); }
  .team-ranking__leader .team-ranking__progress { grid-column: 2; text-align: left; }
  .team-ranking__row { grid-template-columns: 32px 40px minmax(0, 1fr) 54px; gap: 9px; padding: 10px; }
  .team-ranking__avatar { width: 40px; height: 40px; font-size: 11px; }
  .team-ranking__identity strong { font-size: 12px; }
  .team-ranking__identity small { font-size: 9px; }
}
