/* ─── Сезонный рейтинг (С3.1) ─────────────────────────────────── */
/* Плавная смена страницы при переключении группы/вида (браузеры с View Transitions). */
@view-transition { navigation: auto; }

.rt-hero .page-header-compact__inner { align-items: flex-end; }
.rt-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.rt-hero__meta { display: flex; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.rt-season { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.rt-season label { color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.rt-season__row { display: flex; gap: .5rem; }
.rt-season select {
  appearance: none; -webkit-appearance: none;
  min-height: 46px; padding: 0 2.75rem 0 1rem;
  border: 1px solid rgba(255,255,255,.34); border-radius: 0;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  color: #fff; font: inherit; font-size: .95rem; font-weight: 800; letter-spacing: .02em; cursor: pointer;
}
.rt-season select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rt-season option { color: var(--fblo-text); }
.rt-season button { min-height: 46px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.34); background: transparent; color: #fff; font-weight: 900; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.rt-main { padding: 3rem 0 5.5rem; }
.rt-label { display: block; margin-bottom: .75rem; color: var(--fblo-burgundy); font-size: .75rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }

.rt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rt-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--fblo-line); background: #fff; color: var(--fblo-text);
  font-size: .78rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase;
}
.rt-chip:hover { color: var(--fblo-blue-dark); border-color: var(--fblo-blue-dark); transform: translateY(-1px); }
.rt-chip--active, .rt-chip--active:hover { background: var(--fblo-blue-dark); border-color: var(--fblo-blue-dark); color: #fff; transform: none; }
.rt-chip:focus-visible, .rt-tab:focus-visible { outline: 2px solid var(--fblo-burgundy); outline-offset: 2px; }

.rt-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--fblo-line); }
.rt-title { margin: 0; color: var(--fblo-blue-dark); font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: .9; font-weight: 950; letter-spacing: -.06em; text-transform: uppercase; }
.rt-tabs { display: inline-flex; margin-top: 1rem; border: 1px solid var(--fblo-line); background: #fff; }
.rt-tab { position: relative; display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; padding: 0 1.1rem; border-right: 1px solid var(--fblo-line); color: var(--fblo-muted); font-size: .78rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.rt-tab:last-child { border-right: 0; }
.rt-tab:hover { color: var(--fblo-blue-dark); }
.rt-tab--active { color: var(--fblo-blue-dark); }
.rt-tab--active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--fblo-burgundy); }

.rt-side { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.rt-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--fblo-burgundy); font-size: .7rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.rt-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rt-status--live::before { animation: rt-pulse 1.8s ease-in-out infinite; }
.rt-status--final { color: #0f7a3d; }
.rt-facts { display: flex; gap: 1px; background: var(--fblo-line); border: 1px solid var(--fblo-line); }
.rt-fact { background: #fff; padding: .75rem 1.1rem; min-width: 112px; }
.rt-fact b { display: block; color: var(--fblo-blue-dark); font-size: 1.35rem; font-weight: 950; letter-spacing: -.04em; line-height: 1; }
.rt-fact span { display: block; margin-top: .4rem; color: var(--fblo-muted); font-size: .66rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }

.rt-notice { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-left: 4px solid #cf9700; background: #fff8e5; color: #5c4400; font-weight: 600; }
.rt-empty { padding: 3rem 1.5rem; background: #fff; border: 1px solid var(--fblo-line); color: var(--fblo-muted); text-align: center; font-size: 1.05rem; }

/* Пьедестал */
.rt-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; margin-bottom: 1.75rem; }
.rt-pod {
  position: relative; display: block; overflow: hidden; padding: 1.6rem 1.5rem 1.4rem;
  background: #fff; border: 1px solid var(--fblo-line); color: var(--fblo-text);
  box-shadow: var(--fblo-shadow-soft);
}
.rt-pod::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--fblo-blue-dark); }
a.rt-pod:hover { color: var(--fblo-text); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(8,20,43,.16); }
.rt-pod--first { padding-top: 2.75rem; color: #fff; border-color: var(--fblo-blue-dark); background: linear-gradient(160deg, var(--fblo-blue-dark) 0%, var(--fblo-blue) 70%, #3a0a2a 100%); }
a.rt-pod--first:hover { color: #fff; }
.rt-pod--first::before { background: var(--fblo-burgundy); }
.rt-pod__num { position: absolute; right: 1.1rem; top: .2rem; color: rgba(6,23,55,.08); font-size: 6rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.rt-pod--first .rt-pod__num { color: rgba(255,255,255,.12); }
.rt-pod__place { color: var(--fblo-burgundy); font-size: .7rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.rt-pod--first .rt-pod__place { color: #ff9cb0; }
.rt-pod__name { display: block; margin-top: .6rem; color: var(--fblo-blue-dark); font-size: 1.3rem; line-height: 1.1; font-weight: 950; letter-spacing: -.03em; }
.rt-pod--first .rt-pod__name { color: #fff; font-size: 1.5rem; }
.rt-pod__school { margin-top: .35rem; color: var(--fblo-muted); font-size: .82rem; }
.rt-pod--first .rt-pod__school { color: rgba(255,255,255,.68); }
.rt-pod__sum { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--fblo-line); }
.rt-pod--first .rt-pod__sum { border-color: rgba(255,255,255,.16); }
.rt-pod__sum b { color: var(--fblo-blue-dark); font-size: 2.5rem; line-height: 1; font-weight: 950; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.rt-pod--first .rt-pod__sum b { color: #fff; font-size: 3rem; }
.rt-pod__sum span { color: var(--fblo-muted); font-size: .68rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.rt-pod--first .rt-pod__sum span { color: rgba(255,255,255,.6); }
.rt-pod__races { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.rt-pod__race { padding: .3rem .55rem; background: var(--fblo-paper); color: #344054; font-size: .75rem; }
.rt-pod--first .rt-pod__race { background: rgba(255,255,255,.1); color: rgba(255,255,255,.86); }

/* Таблица */
.rt-table { background: #fff; border: 1px solid var(--fblo-line); overflow-x: auto; }
.rt-row { display: grid; grid-template-columns: 72px minmax(220px, 1fr) repeat(var(--rt-races, 2), minmax(118px, 150px)) minmax(180px, 210px); align-items: center; gap: 1rem; padding: .9rem 1.5rem; border-bottom: 1px solid rgba(16,24,40,.08); min-width: 760px; }
.rt-row:last-child { border-bottom: 0; }
.rt-row--head { padding-top: .75rem; padding-bottom: .75rem; background: #f8f9fb; color: var(--fblo-muted); font-size: .66rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.rt-row--body { transition: background .18s ease; }
.rt-row--body:hover { background: #f6f8fc; }
.rt-place { color: var(--fblo-blue-dark); font-size: 1.5rem; line-height: 1; font-weight: 950; letter-spacing: -.05em; }
.rt-place--top { color: var(--fblo-burgundy); }
.rt-place--shared { font-size: 1.05rem; }
.rt-name { display: block; color: var(--fblo-blue-dark); font-size: .98rem; font-weight: 800; letter-spacing: -.015em; }
a.rt-name:hover { color: var(--fblo-burgundy); }
.rt-school { display: block; margin-top: .2rem; color: var(--fblo-muted); font-size: .8rem; }
.rt-mark { display: inline-block; margin-top: .3rem; padding: .1rem .4rem; background: rgba(164,15,45,.08); color: var(--fblo-burgundy); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.rt-cell b { display: block; color: var(--fblo-text); font-size: .88rem; font-weight: 800; }
.rt-cell span { display: block; margin-top: .15rem; color: var(--fblo-muted); font-size: .76rem; }
.rt-cell--muted b { color: #98a2b3; font-weight: 700; }
.rt-cell--dropped b { color: #98a2b3; text-decoration: line-through; text-decoration-thickness: 1px; }
.rt-cell .rt-race-label { display: none; }
.rt-sum { display: flex; flex-direction: column; gap: .5rem; }
.rt-sum__value { color: var(--fblo-blue-dark); font-size: 1.25rem; font-weight: 950; letter-spacing: -.04em; text-align: right; font-variant-numeric: tabular-nums; }
.rt-sum__prefix { color: var(--fblo-muted); font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.rt-sum__known { color: var(--fblo-muted); font-size: .72rem; text-align: right; }
.rt-track { height: 6px; background: #eef0f4; overflow: hidden; }
.rt-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--fblo-blue), var(--fblo-burgundy)); transform-origin: left center; }
.rt-off-head { padding: .75rem 1.5rem; background: #f8f9fb; border-bottom: 1px solid rgba(16,24,40,.08); color: var(--fblo-muted); font-size: .66rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; min-width: 760px; }
.rt-row--off .rt-name, .rt-row--off .rt-place { color: #98a2b3; }
.rt-why { color: var(--fblo-burgundy); font-size: .78rem; font-weight: 700; text-align: right; }
.rt-adm { display: block; color: var(--fblo-muted); font-size: .7rem; text-align: right; }

/* Как считается */
.rt-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-top: 3rem; background: var(--fblo-line); border: 1px solid var(--fblo-line); }
.rt-help__item { background: #fff; padding: 1.4rem 1.25rem; }
.rt-help__item b { display: block; color: rgba(6,23,55,.16); font-size: 2.5rem; line-height: .9; font-weight: 950; letter-spacing: -.07em; }
.rt-help__item p { margin: .75rem 0 0; color: #475467; font-size: .88rem; line-height: 1.55; }
.rt-foot { margin: 1.5rem 0 0; color: var(--fblo-muted); font-size: .82rem; }

/* Блок в карточке спортсмена */
.rt-card { margin: 3rem 0; }
.rt-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fblo-line); }
.rt-card__title { margin: 0; color: var(--fblo-blue-dark); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: .88; font-weight: 950; letter-spacing: -.07em; text-transform: uppercase; }
.rt-card__link { color: var(--fblo-blue); font-size: .78rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.rt-card__link:hover { color: var(--fblo-burgundy); }
.rt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--fblo-line); border: 1px solid var(--fblo-line); }
.rt-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 1.4rem 1.3rem; background: #fff; color: var(--fblo-text); }
.rt-tile:hover { background: #f6f8fc; color: var(--fblo-text); }
.rt-tile--lead, .rt-tile--lead:hover { color: #fff; background: linear-gradient(160deg, var(--fblo-blue-dark) 0%, var(--fblo-blue) 70%, #3a0a2a 100%); }
.rt-tile__kicker { color: var(--fblo-burgundy); font-size: .68rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.rt-tile--lead .rt-tile__kicker { color: #ff9cb0; }
.rt-tile__num { position: absolute; right: 1rem; top: 0; color: rgba(6,23,55,.06); font-size: 7rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.rt-tile--lead .rt-tile__num { color: rgba(255,255,255,.1); }
.rt-tile__place { margin-top: 1rem; color: var(--fblo-blue-dark); font-size: 3.2rem; line-height: .9; font-weight: 950; letter-spacing: -.07em; }
.rt-tile--lead .rt-tile__place { color: #fff; }
.rt-tile__place small { margin-left: .35rem; font-size: 1.15rem; letter-spacing: -.02em; color: var(--fblo-muted); font-weight: 800; }
.rt-tile--lead .rt-tile__place small { color: rgba(255,255,255,.66); }
.rt-tile__sum { margin-top: .5rem; color: #475467; font-size: .88rem; }
.rt-tile--lead .rt-tile__sum { color: rgba(255,255,255,.74); }
.rt-tile__dots { display: flex; gap: 3px; margin-top: .9rem; }
.rt-tile__dot { flex: 1; height: 6px; background: #eef0f4; }
.rt-tile__dot--on { background: var(--fblo-burgundy); }
.rt-tile--lead .rt-tile__dot { background: rgba(255,255,255,.14); }
.rt-tile--lead .rt-tile__dot--on { background: #ff9cb0; }

/* Анимации: появление по очереди, рост полос. Порядок задаёт --i. */
.rt-anim { animation: rt-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.rt-anim-pod { animation: rt-rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.rt-fill { animation: rt-grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 220ms); }
.rt-tile__dot--on { animation: rt-blink .9s ease-out both; animation-delay: .4s; }
@keyframes rt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes rt-rise { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes rt-grow { from { transform: scaleX(0); } }
@keyframes rt-pulse { 50% { opacity: .25; } }
@keyframes rt-blink { 0% { opacity: 0; transform: scaleY(.2); } 60% { opacity: 1; transform: scaleY(1.6); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rt-anim, .rt-anim-pod, .rt-fill, .rt-tile__dot--on, .rt-status--live::before { animation: none; }
  @view-transition { navigation: none; }
}

/* Планшет и телефон */
@media (max-width: 991.98px) {
  .rt-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-pod--first { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 767.98px) {
  .rt-main { padding: 1.75rem 0 3.5rem; }
  .rt-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) .4rem; scrollbar-width: none; }
  .rt-chips::-webkit-scrollbar { display: none; }
  .rt-chip { flex: 0 0 auto; }
  .rt-side { align-items: flex-start; width: 100%; }
  .rt-facts { width: 100%; flex-wrap: wrap; }
  .rt-fact { flex: 1 1 45%; min-width: 0; }
  .rt-bar > div:first-child { width: 100%; }
  .rt-tabs { display: flex; width: 100%; }
  .rt-tab { flex: 1; justify-content: center; padding: 0 .5rem; }
  .rt-podium { gap: .5rem; }
  .rt-pod { padding: 1.1rem 1rem 1rem; }
  .rt-pod--first { padding-top: 1.6rem; }
  .rt-pod__num { font-size: 4.5rem; }
  .rt-pod__name { font-size: 1rem; }
  .rt-pod--first .rt-pod__name { font-size: 1.3rem; }
  .rt-pod__sum b { font-size: 1.6rem; }
  .rt-pod--first .rt-pod__sum b { font-size: 2.4rem; }
  .rt-pod__races { display: none; }
  .rt-pod--first .rt-pod__races { display: flex; }
  .rt-table { background: transparent; border: 0; overflow: visible; display: flex; flex-direction: column; gap: .5rem; }
  .rt-row { min-width: 0; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .35rem .75rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--fblo-line); }
  .rt-row:last-child { border-bottom: 1px solid var(--fblo-line); }
  .rt-row--head { display: none; }
  .rt-place { font-size: 1.35rem; grid-row: 1; }
  .rt-who { grid-column: 2; grid-row: 1; }
  .rt-sum { grid-column: 3; grid-row: 1; min-width: 84px; }
  .rt-sum__value { font-size: 1.1rem; }
  .rt-cell { grid-column: 2 / -1; display: flex; align-items: baseline; gap: .5rem; padding-top: .35rem; border-top: 1px dashed rgba(16,24,40,.1); }
  .rt-cell b, .rt-cell span { display: inline; margin: 0; }
  .rt-cell .rt-race-label { display: inline; min-width: 98px; color: var(--fblo-muted); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
  .rt-row--off .rt-why { grid-column: 2 / -1; text-align: left; }
  .rt-off-head { min-width: 0; margin-top: .5rem; border: 0; background: transparent; padding: .5rem 0 0; }
  .rt-help { margin-top: 2rem; }
}
