/* Единственная таблица стилей RUNNING GIRL.

   Палитра приезжает подстановкой из _tokens.js на сборке - маркер VARS ниже заменяется на
   готовый блок :root. Второй копии цветов здесь быть не должно: имена переменных живут ещё
   и в проверке футпринта, и разъедутся молча.

   Внутри комментариев нельзя писать последовательность "звёздочка-слэш": она закрывает
   комментарий досрочно, остаток шапки становится кодом и первое правило после него
   (обычно :root) выбрасывается целиком - кнопки цвета фона, то есть невидимые.

   Порядок: сброс, каркас, шапка, полосы, типографика, кнопки, карточки, первый экран,
   блоки главной, PDP, заметки, подборщик, видео, подвал, мобильные правки одним куском. */

:root {
  --rgl-coal: #15161a;
  --rgl-coal-soft: #22242c;
  --rgl-paper: #ffffff;
  --rgl-paper-dim: #f1f3f7;
  --rgl-steel: #68707e;
  --rgl-flame: #e8641f;
  --rgl-flame-deep: #bf4c10;
  --rgl-court: #2456a6;
  --rgl-court-lit: #3a74cf;
  --rgl-rule: rgba(21,22,26,.13);
  --rgl-rule-dark: rgba(255,255,255,.17);
  --rgl-display: 'Oxanium', system-ui, sans-serif;
  --rgl-text: 'Reddit Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.trackwrap {
  margin: 0;
  background: var(--rgl-paper);
  color: var(--rgl-coal);
  font-family: var(--rgl-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; display: block; }
a { color: inherit; }

/* Клиентский js прячет карточки подборщика через свойство hidden. Карточка - flex-колонка,
   и её display перебил бы hidden, если бы не эта строка. */
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rgl-court-lit); outline-offset: 2px; }

/* ---- каркас ------------------------------------------------------------------------------- */

.trackrow { width: min(1200px, 100% - 48px); margin-inline: auto; }

.trackmain { display: block; }

.batonskip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--rgl-coal); color: var(--rgl-paper);
  padding: 12px 20px; text-decoration: none; font-weight: 600;
}
.batonskip:focus { left: 12px; top: 12px; }

/* ---- шапка в два яруса ---------------------------------------------------------------------
   Верхний ярус (.batontop) - служебная полоса с цифрами каталога, нижний (.batonbar) - знак,
   меню и кнопка. Липкая ВСЯ шапка целиком: два разных top у вложенных sticky наезжают
   сами на себя на прокрутке. */

.trackhead {
  position: sticky; top: 0; z-index: 40;
  background: var(--rgl-coal); color: var(--rgl-paper);
  border-bottom: 1px solid var(--rgl-rule-dark);
}
.trackhead a { text-decoration: none; }

.batontop { background: var(--rgl-coal-soft); border-bottom: 1px solid var(--rgl-rule-dark); }
.batontop .trackrow {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  min-height: 38px; font-size: 13px; letter-spacing: .03em; color: rgba(255,255,255,.66);
}
.batontop span { display: inline-flex; align-items: center; gap: 9px; }
/* Метка-разделитель псевдоэлементом, а не символом в тексте: символ уехал бы в выдачу поиска. */
.batontop span::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rgl-flame);
}
.batontop a { margin-left: auto; color: var(--rgl-paper); border-bottom: 1px solid var(--rgl-flame); }
.batontop a:hover { color: var(--rgl-flame); }

.batonbar .trackrow {
  display: flex; align-items: center; gap: 26px; min-height: 72px; flex-wrap: wrap;
}

.batonbrand { height: 40px; width: auto; display: block; }

/* margin-right: auto у меню: пустой ход уходит вправо, перед кнопкой. */
.batonmenu { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-right: auto; }
.batonmenu a {
  font-family: var(--rgl-display);
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.72);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.batonmenu a:hover { color: var(--rgl-paper); border-bottom-color: var(--rgl-flame); }
.batonmenu a[aria-current="page"] { color: var(--rgl-paper); border-bottom-color: var(--rgl-court-lit); }

.batoncta {
  flex: none; font-family: var(--rgl-display);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  padding: 11px 20px; border-radius: 3px;
  background: var(--rgl-court); color: var(--rgl-paper);
  border: 1px solid var(--rgl-court);
  transition: background .15s, border-color .15s;
}
.batoncta:hover { background: var(--rgl-court-lit); border-color: var(--rgl-court-lit); }

/* ---- полосы-секции ------------------------------------------------------------------------ */

.lapband { padding: 64px 0; }
.lapplain { background: var(--rgl-paper); }
.laptint { background: var(--rgl-paper-dim); }
.lapdark { background: var(--rgl-coal); color: var(--rgl-paper); }

.lapdark .lapsub { color: rgba(255,255,255,.72); }
.lapdark .lapkick { color: var(--rgl-flame); }

.laptitle {
  font-family: var(--rgl-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 14px;
}
.lapsub {
  font-size: 18px; line-height: 1.55; color: #49515f;
  margin: 0 0 22px; max-width: 68ch;
}

h2, h3 { font-family: var(--rgl-display); letter-spacing: -.005em; }

.lapkick {
  font-family: var(--rgl-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rgl-flame-deep); margin: 0 0 12px;
}
.lapkick a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---- кнопки ------------------------------------------------------------------------------- */

.dashbtn, .dashghost, .dashbuy {
  display: inline-block; cursor: pointer;
  font-family: var(--rgl-display);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 26px; margin: 0 10px 10px 0;
  border-radius: 3px; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.dashbtn { background: var(--rgl-court); color: var(--rgl-paper); }
.dashbtn:hover { background: var(--rgl-court-lit); }

.dashghost { background: transparent; color: inherit; border-color: currentColor; }
.dashghost:hover { background: var(--rgl-coal); color: var(--rgl-paper); border-color: var(--rgl-coal); }
.lapdark .dashghost:hover { background: var(--rgl-paper); color: var(--rgl-coal); border-color: var(--rgl-paper); }

/* Кнопка покупки - единственная оранжевая, чтобы не путалась с навигацией (та синяя). */
.dashbuy { background: var(--rgl-flame); color: #fff; border-color: var(--rgl-flame); font-size: 16px; }
.dashbuy:hover { background: var(--rgl-flame-deep); border-color: var(--rgl-flame-deep); }

/* ---- карточка-плитка товара ---------------------------------------------------------------- */

.kitgrid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.kitplate { display: flex; flex-direction: column; min-width: 0; }

.kitshot {
  position: relative; display: block; overflow: hidden;
  background: #fff; border: 1px solid var(--rgl-rule);
  aspect-ratio: 4 / 5;
}
.kitshot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.kitplate:hover .kitshot img { transform: scale(1.035); }

.kitbadge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--rgl-coal); color: var(--rgl-paper);
  font-family: var(--rgl-display);
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}

.kitname { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 14px 0 8px; }
.kitname a { text-decoration: none; }
.kitname a:hover { color: var(--rgl-court); }

.kitspec {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 8px; font-size: 13px; color: var(--rgl-steel);
}
.lapdark .kitspec { color: rgba(255,255,255,.66); }

.paceprice {
  font-family: var(--rgl-display);
  font-size: 20px; font-weight: 700; margin: 0;
}

/* Кнопка проверки цены прижата к низу плитки: имена разной длины, без этого кнопки в ряду
   скачут по высоте. */
.kitact { margin: auto 0 0; padding-top: 12px; }
.kitact .dashbuy { display: block; width: 100%; margin: 0; padding: 11px 14px; font-size: 14px; }

/* Звёзды долями: ширина внутреннего слоя равна проценту рейтинга. */
.starpill {
  position: relative; display: inline-block;
  width: 74px; height: 13px; flex: none;
  background: linear-gradient(var(--rgl-rule), var(--rgl-rule));
  -webkit-mask: repeat-x left center / 14.8px 13px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.4 7L12 17.8 5.8 21.2l1.4-7L2 9.4l7-.8z'/%3E%3C/svg%3E");
  mask: repeat-x left center / 14.8px 13px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 6.6 7 .8-5.2 4.8 1.4 7L12 17.8 5.8 21.2l1.4-7L2 9.4l7-.8z'/%3E%3C/svg%3E");
}
.starpill i { display: block; height: 100%; background: var(--rgl-flame); }
.lapdark .starpill { background: linear-gradient(var(--rgl-rule-dark), var(--rgl-rule-dark)); }

/* ---- первый экран: текст слева, видео справа, рейл снизу ---------------------------------- */

.sprintsplit { display: grid; gap: 48px; grid-template-columns: 1.05fr .95fr; align-items: center; }

.sprintcopy { min-width: 0; }
.sprintcopy .lapsub { font-size: 19px; max-width: 52ch; }

.sprintstat {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rgl-rule-dark);
}
.sprintstat div { min-width: 0; }
.sprintstat b {
  display: block; font-family: var(--rgl-display);
  font-size: 27px; font-weight: 800; line-height: 1;
}
.sprintstat span { display: block; margin-top: 7px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.6); }

/* Видео-витрина. Пропорция вертикальная, как у исходных роликов стора (480, сжаты до веба). */
.sprintveil {
  min-width: 0; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--rgl-rule-dark); background: var(--rgl-coal-soft);
}
.sprintveil video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Лента «следом по отзывам»: снимок в ноготь и цена, без звёзд. */
.relayrail {
  display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr);
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--rgl-rule-dark);
}
.relayitem { display: flex; gap: 14px; align-items: center; text-decoration: none; min-width: 0; }
.relayitem img { flex: none; width: 74px; height: 92px; object-fit: cover; background: #fff; }
.relayitem span { min-width: 0; }
.relayitem strong { display: block; font-size: 14px; line-height: 1.35; font-weight: 600; }
.relayitem i {
  display: block; font-style: normal; margin-top: 6px;
  font-family: var(--rgl-display); font-size: 15px; font-weight: 700; color: var(--rgl-paper);
}
.relayitem:hover strong { color: var(--rgl-flame); }

/* ---- usp-полоса ---------------------------------------------------------------------------- */

.hurdlerow { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
.hurdleitem { border-top: 3px solid var(--rgl-flame); padding-top: 18px; min-width: 0; }
.hurdleitem h2 { font-size: 17px; margin: 0 0 8px; }
.hurdleitem p { margin: 0; font-size: 15px; color: #4d5563; line-height: 1.55; }

/* ---- плитки категорий (и хаба заметок) ------------------------------------------------------
   min-height: 0 обязателен: флекс-элемент с aspect-ratio отказывается сжиматься ниже
   содержимого, и ряд плиток разъезжается по высоте на узких экранах. */

.lineupgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.lineuptile {
  position: relative; display: flex; min-height: 0;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--rgl-coal); color: var(--rgl-paper);
  text-decoration: none; border-radius: 3px;
}
.lineuptile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .52; transition: transform .4s ease, opacity .3s;
}
.lineuptile:hover img { transform: scale(1.06); opacity: .38; }
.lineuptile span {
  position: relative; z-index: 2; margin-top: auto; padding: 20px;
  display: block; width: 100%;
  background: linear-gradient(to top, rgba(21,22,26,.86), rgba(21,22,26,0));
}
.lineuptile strong {
  display: block; font-family: var(--rgl-display);
  font-size: 20px; font-weight: 700; line-height: 1.2;
}
.lineuptile i {
  display: block; font-style: normal; margin-top: 5px;
  font-size: 13px; letter-spacing: .05em; color: rgba(255,255,255,.68);
}

/* Рейл «читать дальше»: те же плитки, но без снимков - фиксированной пропорции не даём. */
.logreel { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.logreel .lineuptile { aspect-ratio: auto; min-height: 150px; }
.logreel .lineuptile span { background: none; }

/* ---- пиллы и полоса цифр ------------------------------------------------------------------- */

.warmuprow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.warmuprow .lapkick { margin: 0 4px 0 0; }

.warmuppill {
  display: inline-block; text-decoration: none;
  background: var(--rgl-paper); border: 1px solid var(--rgl-rule);
  padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.warmuppill:hover { background: var(--rgl-coal); color: var(--rgl-paper); border-color: var(--rgl-coal); }

.podiumband { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); }
.podiumband > div { border-left: 3px solid var(--rgl-flame); padding-left: 18px; }
.podiumnum {
  display: block; font-family: var(--rgl-display);
  font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1;
}
.podiumlabel { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.68); }

/* ---- промо-дуэт ---------------------------------------------------------------------------- */

.pacerpair { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.pacerslab {
  padding: 40px; border-radius: 3px;
  background: var(--rgl-paper-dim); border: 1px solid var(--rgl-rule);
}
/* Фон и цвет назначаются вместе: одиночный фон пережил бы переопределение тёмной полосы,
   а цвет текста нет - заголовок стал бы невидим (случай ynd). */
.pacerslab.lapdark {
  background: var(--rgl-coal); color: var(--rgl-paper); border-color: var(--rgl-coal);
}
.pacerslab h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 0 0 12px; }
.pacerslab p { margin: 0 0 22px; color: #4d5563; max-width: 46ch; }
.pacerslab.lapdark p { color: rgba(255,255,255,.72); }

/* ---- ценности, шаги, справка --------------------------------------------------------------- */

.ethosrow { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.ethositem { min-width: 0; }
.ethositem svg { width: 34px; height: 34px; color: var(--rgl-flame); margin-bottom: 14px; }
.ethositem h2 { font-size: 18px; margin: 0 0 8px; }
.ethositem p { margin: 0; font-size: 15px; line-height: 1.6; color: #4d5563; }

.drillcols { display: grid; gap: 40px; grid-template-columns: 1fr 1.1fr; align-items: start; }

.drilllist { list-style: none; margin: 0; padding: 0; }
.drilllist li { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.drilllist strong { display: block; font-family: var(--rgl-display); font-size: 17px; margin-bottom: 4px; }
.drilllist span { font-size: 15px; line-height: 1.6; color: #4d5563; }

.drillnum {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--rgl-coal); color: var(--rgl-paper);
  font-family: var(--rgl-display); font-size: 15px; font-weight: 700;
}

.gaugerows {
  width: 100%; border-collapse: collapse; margin: 18px 0 26px;
  font-size: 15px; background: var(--rgl-paper);
}
.gaugerows caption {
  caption-side: top; text-align: left; padding-bottom: 10px;
  font-family: var(--rgl-display); font-weight: 600; font-size: 15px; color: var(--rgl-steel);
}
.gaugerows th, .gaugerows td {
  padding: 11px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rgl-rule);
}
.gaugerows thead th {
  font-family: var(--rgl-display); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--rgl-coal); color: var(--rgl-paper); border-bottom: none;
}
.gaugerows tbody th { font-weight: 600; }
.gaugerows tbody tr:last-child th, .gaugerows tbody tr:last-child td { border-bottom: none; }

ul.fieldlist { margin: 22px 0; padding: 0; list-style: none; }
ul.fieldlist li {
  position: relative; padding: 0 0 12px 26px; font-size: 16px;
}
ul.fieldlist li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rgl-flame);
}

/* Вопросы и ответы. Первый раскрыт сервером - страница не встречает пустым списком. */
details.fieldlist {
  border-bottom: 1px solid var(--rgl-rule);
  padding: 4px 0;
}
details.fieldlist summary {
  cursor: pointer; list-style: none;
  font-family: var(--rgl-display); font-weight: 600; font-size: 18px;
  padding: 16px 34px 16px 0; position: relative;
}
details.fieldlist summary::-webkit-details-marker { display: none; }
details.fieldlist summary::after {
  content: "+"; position: absolute; right: 4px; top: 13px;
  font-size: 24px; font-weight: 400; color: var(--rgl-court);
}
details.fieldlist[open] summary::after { content: "\2013"; }
details.fieldlist p { margin: 0 0 18px; max-width: 76ch; color: #454d5b; }

/* ---- spotlight, уход, миссия --------------------------------------------------------------- */

.focuswrap { display: grid; gap: 40px; grid-template-columns: 380px 1fr; align-items: center; }
.focusframe {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--rgl-rule);
}
.focusframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.focusbody { min-width: 0; }
.focusbody h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0 0 14px; }
.focusbody h3 a { text-decoration: none; }
.focusbody > p { margin: 0 0 16px; max-width: 60ch; }

.strideduo { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); align-items: start; }

.stridelist {
  background: var(--rgl-paper); border: 1px solid var(--rgl-rule);
  border-top: 3px solid var(--rgl-court); padding: 26px 28px;
}
.stridelist h3 { margin: 0 0 14px; font-size: 20px; }
.stridelist ul { margin: 0; padding-left: 20px; }
.stridelist li { margin-bottom: 10px; font-size: 15px; line-height: 1.55; }

/* Миссия: текст слева, ролик справа. */
.anthemband { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: center; }

/* ---- видео --------------------------------------------------------------------------------- */

.motionband { min-width: 0; }

.motionframe {
  overflow: hidden; border-radius: 4px; min-width: 0;
  border: 1px solid var(--rgl-rule-dark); background: var(--rgl-coal-soft);
}
.motionframe video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lapplain .motionframe, .laptint .motionframe { border-color: var(--rgl-rule); background: #fff; }

.motiongrid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }

.motiontile { min-width: 0; }
.motiontile a {
  display: inline-block; margin-top: 12px; text-decoration: none;
  font-family: var(--rgl-display); font-size: 14px; font-weight: 600;
  color: var(--rgl-court); border-bottom: 1px solid currentColor;
}
.motiontile a:hover { color: var(--rgl-flame-deep); }
.lapdark .motiontile a { color: var(--rgl-paper); }
.lapdark .motiontile a:hover { color: var(--rgl-flame); }

/* ---- SEO-заметка и цитаты ------------------------------------------------------------------ */

.fieldnote { display: grid; gap: 30px; grid-template-columns: 300px 1fr; align-items: start; }
.fieldhead {
  font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0;
  position: sticky; top: 120px;
}
.fieldbody { min-width: 0; }
/* Тот же блок дважды: на главной с заголовком в колонке, на PDP без него. Без этого правила
   одинокое тело садилось бы в колонку 300px при пустой половине экрана. */
.fieldbody:only-child { grid-column: 1 / -1; }
.fieldbody > p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; max-width: 74ch; }
.fieldbody h3 { font-size: 21px; margin: 26px 0 10px; }

.cheerrow { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.cheerquote {
  margin: 0; padding: 26px;
  background: var(--rgl-paper); border: 1px solid var(--rgl-rule); border-radius: 3px;
}
.cheerquote p { margin: 0; font-size: 16px; line-height: 1.6; }
.cheerquote p::before { content: "\201C"; font-family: var(--rgl-display); font-size: 44px; line-height: 0; color: var(--rgl-flame); margin-right: 4px; vertical-align: -8px; }
.cheername { margin: 16px 0 0; font-size: 13px; color: var(--rgl-steel); }

.finishband { text-align: center; }
.finishband .lapsub { margin-inline: auto; }

/* ---- страница товара ----------------------------------------------------------------------- */

.lanecrumb { padding: 18px 0 0; font-size: 13px; color: var(--rgl-steel); }
.lanecrumb .trackrow { display: block; }
.lanecrumb a { color: var(--rgl-steel); text-decoration: none; }
.lanecrumb a:hover { color: var(--rgl-court); }
.lanecrumb i { font-style: normal; margin: 0 8px; opacity: .5; }
.lanecrumb [aria-current] { color: var(--rgl-coal); }

.stagemain { display: grid; gap: 46px; grid-template-columns: 440px 1fr; align-items: start; }
.stageshot {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--rgl-rule);
}
.stageshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stageside { min-width: 0; }
.stageside .laptitle { font-size: clamp(24px, 3vw, 36px); }
.stageside .paceprice { font-size: 30px; margin: 16px 0 20px; }
.stageword { font-size: 17px; line-height: 1.65; color: #454d5b; margin: 16px 0; max-width: 58ch; }
.stageside .warmuprow { margin-top: 22px; }

.stagespec { width: 100%; border-collapse: collapse; font-size: 15px; max-width: 720px; }
.stagespec th, .stagespec td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rgl-rule); }
.stagespec th { width: 210px; font-weight: 600; font-family: var(--rgl-display); }
.stagespec tr:nth-child(odd) { background: var(--rgl-paper-dim); }

.stagetrail { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }

/* ---- заметки ------------------------------------------------------------------------------- */

.logroll { max-width: 74ch; margin-inline: auto; }
.logsec { margin-bottom: 34px; }
.loghead { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; margin: 0 0 12px; }
.logsec p { margin: 0; font-size: 17px; line-height: 1.75; }

.logfacts {
  background: var(--rgl-paper-dim); border-left: 3px solid var(--rgl-court);
  padding: 24px 28px; margin: 34px 0;
}
.logfacts h2 { font-size: 18px; margin: 0 0 12px; }
.logfacts ul { margin: 0; padding-left: 20px; }
.logfacts li { margin-bottom: 9px; font-size: 15px; line-height: 1.55; }

.logclose { border-top: 2px solid var(--rgl-coal); padding-top: 24px; }
.logclose h2 { font-size: 22px; margin: 0 0 10px; }
.logclose p { margin: 0; font-size: 17px; line-height: 1.7; }

/* ---- подборщик ----------------------------------------------------------------------------- */

form.labstep { margin: 0; display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); align-items: start; }
form.labstep > p { grid-column: 1 / -1; margin: 0; }

fieldset.labstep { border: none; margin: 0; padding: 0; min-width: 0; }
fieldset.labstep legend {
  padding: 0; margin-bottom: 10px;
  font-family: var(--rgl-display); font-size: 19px; font-weight: 700;
}
fieldset.labstep .lapsub { font-size: 15px; margin-bottom: 14px; }

.labchoice {
  cursor: pointer; font-family: var(--rgl-text); font-size: 15px;
  background: var(--rgl-paper); color: var(--rgl-coal);
  border: 1px solid var(--rgl-rule); border-radius: 999px;
  padding: 9px 16px; display: inline-flex; align-items: center; gap: 8px;
  margin: 0 8px 8px 0;
  transition: background .15s, color .15s, border-color .15s;
}
.labchoice i {
  font-style: normal; font-size: 12px; color: var(--rgl-steel);
  background: var(--rgl-paper-dim); border-radius: 999px; padding: 1px 7px;
}
.labchoice:hover { border-color: var(--rgl-coal); }
.labchoice[aria-pressed="true"] { background: var(--rgl-court); color: var(--rgl-paper); border-color: var(--rgl-court); }
.labchoice[aria-pressed="true"] i { background: rgba(255,255,255,.22); color: var(--rgl-paper); }

.labyield {
  display: grid; gap: 26px; margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* ---- подвал -------------------------------------------------------------------------------- */

.trackfoot { background: var(--rgl-coal); color: var(--rgl-paper); padding: 56px 0 34px; }
.trackfootcols {
  display: grid; gap: 34px; padding-bottom: 30px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--rgl-rule-dark);
}
.trackfootcols ul { list-style: none; margin: 0; padding: 0; }
.trackfootcols li { margin-bottom: 9px; }
.trackfootcols a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 15px; }
.trackfootcols a:hover { color: var(--rgl-flame); }

.trackfootcols h2 {
  font-family: var(--rgl-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rgl-paper); margin: 0 0 14px;
}
.trackfootcols > div > p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); margin: 16px 0 0; max-width: 40ch; }

/* Почтовый адрес. font-style: normal обязателен: address браузер набирает курсивом.
   Приписка (.trackaddr i возвращает прямое начертание) объясняет, чем адрес НЕ является:
   человек читает адрес как магазин, а магазина нет. */
.trackaddr {
  font-style: normal; font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,.72); margin: 16px 0 0; max-width: 42ch;
}
.trackaddr b {
  display: block; font-family: var(--rgl-display);
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rgl-paper); margin-bottom: 6px;
}
.trackaddr i { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: rgba(255,255,255,.55); }

/* Тот же блок на странице контактов, где фон светлый. */
.lapplain .trackaddr, .laptint .trackaddr { color: #454d5b; }
.lapplain .trackaddr b, .laptint .trackaddr b { color: var(--rgl-coal); }
.lapplain .trackaddr i, .laptint .trackaddr i { color: var(--rgl-steel); }

.trackfootsmall { font-size: 13px; color: rgba(255,255,255,.55); margin: 18px 0 0; line-height: 1.6; }
.trackfootsmall a { color: rgba(255,255,255,.72); }

/* На светлой странице товара мелкий шрифт про цену стоит вне подвала. */
.lapplain .trackfootsmall, .laptint .trackfootsmall { color: var(--rgl-steel); }
.lapplain .trackfootsmall a, .laptint .trackfootsmall a { color: #454d5b; }

/* ---- мобильные правки одним куском ---------------------------------------------------------
   Три порога. 1080 - планшет: двухколонники в столбец, четвёрки в пары. 760 - телефон:
   служебная полоса шапки прячется, меню уезжает третьей строкой с горизонтальной прокруткой,
   почти всё в один столбец. 460 - узкий телефон: последние пары в столбец.
   Проверять на 500px: new-headless уже не умеет, обрезка справа на 390 - артефакт съёмки. */

@media (max-width: 1080px) {
  .sprintsplit, .anthemband, .drillcols { grid-template-columns: 1fr; }

  .fieldnote { grid-template-columns: 1fr; }
  .fieldhead { position: static; }

  .stagemain { grid-template-columns: 340px 1fr; gap: 34px; }
  .focuswrap { grid-template-columns: 300px 1fr; }

  .hurdlerow, .motiongrid, .cheerrow, .stagetrail { grid-template-columns: repeat(2, 1fr); }

  form.labstep { grid-template-columns: 1fr; }

  /* Видео первого экрана в столбце ниже текста: полное 4:5 заняло бы два экрана. */
  .sprintveil video { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  body.trackwrap { font-size: 16px; }
  .trackrow { width: calc(100% - 32px); }
  .lapband { padding: 44px 0; }
  .lapsub { font-size: 16px; }
  .sprintcopy .lapsub { font-size: 17px; }

  .batontop { display: none; }
  .batonbar .trackrow { gap: 14px; min-height: 58px; padding: 8px 0; }
  .batonbrand { height: 32px; }
  .batoncta { margin-left: auto; padding: 9px 14px; font-size: 13px; }
  /* Меню третьей строкой во всю ширину; nowrap + прокрутка, а не перенос в три этажа. */
  .batonmenu {
    order: 3; width: 100%; margin-right: 0;
    flex-wrap: nowrap; overflow-x: auto; gap: 18px;
    padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .batonmenu a { white-space: nowrap; font-size: 14px; }

  .relayrail, .stagetrail, .podiumband { grid-template-columns: repeat(2, 1fr); }
  .hurdlerow, .lineupgrid, .logreel, .pacerpair, .strideduo, .ethosrow, .cheerrow,
  .stagemain, .focuswrap { grid-template-columns: 1fr; }
  .motiongrid { grid-template-columns: repeat(2, 1fr); }

  .kitgrid { gap: 18px; grid-template-columns: repeat(2, 1fr); }
  .kitact .dashbuy { padding: 10px 8px; font-size: 13px; }

  /* Таблица шире экрана листается внутри себя, а не тянет всю страницу вбок. */
  .gaugerows { display: block; overflow-x: auto; white-space: nowrap; }
  .gaugerows caption { display: block; }
  .gaugerows th, .gaugerows td { white-space: normal; min-width: 130px; }

  .dashbtn, .dashghost, .dashbuy { padding: 12px 18px; font-size: 14px; }
  .sprintstat { gap: 22px; }
  .sprintstat b { font-size: 23px; }

  .focuswrap .focusframe { max-width: 340px; }
  .drillcols { gap: 26px; }
  .fieldbody > p { font-size: 16px; }

  .trackfootcols { grid-template-columns: 1fr; gap: 26px; }
  .trackfoot { padding: 40px 0 26px; }
}

@media (max-width: 460px) {
  .kitgrid, .relayrail, .podiumband, .motiongrid, .labyield { grid-template-columns: 1fr; }
  .laptitle { font-size: clamp(25px, 7.4vw, 32px); }
  .kitact .dashbuy { font-size: 14px; }
}
