/* ═══════════════════════════════════════════════
   ПЕРЕМЕННЫЕ — светлая и тёмная темы
═══════════════════════════════════════════════ */
:root {
  --bg:      #F5F2EE;
  --surface: #FFFFFF;
  --panel:   #F9F7F4;
  --b1:      rgba(0,0,0,.10);
  --b2:      rgba(0,0,0,.16);
  --b3:      rgba(0,0,0,.26);
  --t1:      #1C1917;
  --t2:      #6B6360;
  --t3:      #A09890;
  --acc:     #C04040;
  --acc-bg:  #FBF2F1;
  --acc-b:   rgba(192,64,64,.25);
  --mono:    'SF Mono','Fira Code','Courier New',monospace;
  --r:       8px;
  --rs:      5px;
  --header-h: 46px;
  --footer-h: 46px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #161412;
    --surface: #201E1C;
    --panel:   #1C1A18;
    --b1:      rgba(255,255,255,.09);
    --b2:      rgba(255,255,255,.14);
    --b3:      rgba(255,255,255,.24);
    --t1:      #EDE9E4;
    --t2:      #9C9390;
    --t3:      #6B6360;
    --acc:     #E07070;
    --acc-bg:  #2A1515;
    --acc-b:   rgba(224,112,112,.25);
  }
}

/* ═══════════════════════════════════════════════
   СБРОС / БАЗА
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--t1);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center;
  padding: 0 18px; gap: 0;
  z-index: 1000;
}
.site-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--t1); letter-spacing: -.2px;
}
.site-logo::before {
  content: 'FR';
  width: 26px; height: 26px;
  background: var(--acc);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 600;
  letter-spacing: -.3px; flex-shrink: 0;
}
.header-nav { display: flex; gap: 2px; margin-left: auto; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: var(--surface);
  border-top: 1px solid var(--b1);
  display: flex; align-items: center;
  padding: 0 18px; gap: 8px;
  z-index: 1000;
}
.footer-left  { flex: 1; }
.footer-center { display: flex; justify-content: center; flex: 0 0 auto; }
.footer-right  { flex: 1; display: flex; justify-content: flex-end; gap: 6px; }

/* ═══════════════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════════════ */
.btn-nav {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px; font-weight: 400;
  color: var(--t2);
  border-radius: var(--rs);
  border: none; background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
  font-family: inherit;
  line-height: 1.5;
}
.btn-nav:hover { color: var(--t1); background: var(--panel); }
.btn-nav.active { color: var(--t1); font-weight: 500;
  border-bottom: 1.5px solid var(--acc); border-radius: 0; }

/* Основная кнопка (акцентная) */
.btn-primary {
  display: block; width: 100%;
  background: var(--acc); color: #fff;
  border: none; border-radius: var(--rs);
  padding: 9px 16px;
  font-size: 13px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  letter-spacing: -.1px; text-align: center;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: .88; }

/* Вторичная кнопка (outline) */
.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--t2);
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  padding: 6px 14px;
  font-size: 12px; font-weight: 400;
  font-family: inherit; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--panel); color: var(--t1); }

/* Кнопки скачивания */
.btn-download {
  flex: 1;
  background: var(--surface); color: var(--t1);
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  padding: 7px 10px;
  font-size: 11px; font-weight: 400;
  font-family: inherit; cursor: pointer;
  text-align: center;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-download:hover { background: var(--panel); }
.btn-download:disabled { opacity: .4; cursor: not-allowed; }
.btn-download:disabled:hover { background: var(--surface); }

/* Кнопка сброса */
.btn-reset {
  display: block; width: 100%;
  background: transparent; color: var(--t2);
  border: 1px solid var(--b1);
  border-radius: var(--rs);
  padding: 7px; font-size: 11px;
  font-family: inherit; cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.btn-reset:hover { background: var(--panel); border-color: var(--b2); color: var(--t1); }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.site-main {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
  height: 100vh;
}
.main-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100%;
}

/* ═══════════════════════════════════════════════
   ПАНЕЛЬ УПРАВЛЕНИЯ
═══════════════════════════════════════════════ */
.control-panel {
  background: var(--surface);
  border-right: 1px solid var(--b1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Карточка ────────────────────────────────── */
.card {
  border-bottom: 1px solid var(--b1);
  display: flex; flex-direction: column;
}
/* Заголовок карточки */
.card-header {
  padding: 8px 13px;
  background: var(--panel);
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--t3);
}
/* Тело карточки */
.card-body {
  padding: 11px 13px;
  display: flex; flex-direction: column;
  gap: 9px;
}
/* Последняя карточка-кнопка */
.card-action {
  padding: 10px 13px;
  border-bottom: 1px solid var(--b1);
}
.card-action:last-child { border-bottom: none; }

/* ── Поля ввода времени ──────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 3px; }
.field-label {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--t2);
}
.time-inputs { display: flex; align-items: center; gap: 3px; }
.time-part {
  width: 34px; height: 26px;
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  text-align: center;
  font-size: 12px; font-weight: 500;
  font-family: var(--mono);
  background: var(--panel); color: var(--t1);
  -moz-appearance: textfield;
  transition: border-color .15s;
}
.time-part::-webkit-outer-spin-button,
.time-part::-webkit-inner-spin-button { -webkit-appearance: none; }
.time-part:focus { outline: none; border-color: var(--acc); }
.time-sep { font-size: 12px; color: var(--t3); padding: 0 1px; }

/* ── Дата ────────────────────────────────────── */
.date-inputs {
  display: flex; align-items: center; gap: 3px;
  transition: opacity .2s;
}
.date-yyyy {
  width: 52px; height: 26px;
  border: 1px solid var(--b2); border-radius: var(--rs);
  text-align: center; font-size: 12px; font-weight: 500;
  font-family: var(--mono);
  background: var(--panel); color: var(--t1);
  -moz-appearance: textfield;
}
.date-yyyy::-webkit-outer-spin-button,
.date-yyyy::-webkit-inner-spin-button { -webkit-appearance: none; }
.hidden { display: none !important; }

/* ── Переключатель ───────────────────────────── */
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-label { font-size: 11px; color: var(--t1); line-height: 1.4; }
.toggle-wrap {
  display: inline-flex; align-items: center;
  gap: 7px; cursor: pointer; user-select: none;
}
.toggle-switch {
  position: relative; display: inline-block;
  width: 28px; height: 15px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.slider {
  position: absolute; inset: 0;
  background: var(--b2);
  border-radius: 15px;
  transition: background .2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 11px; height: 11px;
  left: 2px; top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
input:checked + .slider { background: var(--acc); }
input:checked + .slider::before { transform: translateX(13px); }
.tooltip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  border: 1px solid var(--b2); border-radius: 50%;
  font-size: 9px; color: var(--t3); cursor: help;
}

/* ── Поля ввода текста / Select ──────────────── */
.input-text {
  width: 100%; height: 28px;
  border: 1px solid var(--b2); border-radius: var(--rs);
  padding: 0 9px; font-size: 12px;
  background: var(--panel); color: var(--t1);
  font-family: inherit;
  transition: border-color .15s;
}
.input-text:focus { outline: none; border-color: var(--acc); }
.select-type {
  height: 28px;
  border: 1px solid var(--b2); border-radius: var(--rs);
  padding: 0 9px; font-size: 12px;
  background: var(--panel); color: var(--t1);
  font-family: inherit; cursor: pointer;
  width: 100%;
}
.select-type:focus { outline: none; }

/* ── Строка двух полей ───────────────────────── */
.two-col-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ═══════════════════════════════════════════════
   БЛОК ВЫВОДА ИНФОРМАЦИИ (ARQOS-стиль)
═══════════════════════════════════════════════ */
.info-block {
  border-bottom: 1px solid var(--b1);
  display: flex; flex-direction: column;
}
.info-name {
  font-size: 14px; font-weight: 500;
  color: var(--t1); letter-spacing: -.3px;
  min-height: 0;
}
.info-sub {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--t2);
  padding: 0 13px 9px;
  border-bottom: 1px solid var(--b1);
}
.info-geo {
  display: flex; justify-content: space-between;
  padding: 7px 13px;
  border-bottom: 1px solid var(--b1);
  font-size: 11px;
}
.info-geo span { color: var(--t2); }
.info-geo strong { color: var(--t1); font-weight: 500; }
.info-geo .dist-accent strong { color: var(--acc); }

/* Три колонки: старт / время / финиш */
.info-times {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--b1);
}
.info-times-hidden { display: none; }
.time-col {
  padding: 9px 13px;
  border-right: 1px solid var(--b1);
  display: flex; flex-direction: column; gap: 2px;
}
.time-col:last-child { border-right: none; }
.time-col-label {
  font-size: 8px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--t3);
}
.time-col-value {
  font-size: 12px; font-weight: 500;
  color: var(--t1); font-family: var(--mono);
}

/* Две колонки: темп / скорость */
.info-perf {
  display: grid; grid-template-columns: 1fr 1fr;
}
.perf-col {
  padding: 9px 13px;
  border-right: 1px solid var(--b1);
  display: flex; flex-direction: column; gap: 2px;
}
.perf-col:last-child { border-right: none; }
.perf-label {
  font-size: 8px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--t3);
}
.perf-value {
  font-size: 15px; font-weight: 500;
  color: var(--t1); font-family: var(--mono);
}

/* ── Строки скачивания / соцсети ─────────────── */
.download-row { display: flex; gap: 7px; }
.social-row   { display: flex; gap: 7px; }

/* Социальные кнопки */
.btn-social {
  flex: 1; display: flex; align-items: center;
  justify-content: center; gap: 6px;
  padding: 7px; font-size: 11px; font-weight: 400;
  border-radius: var(--rs); border: none;
  cursor: pointer; font-family: inherit;
  color: #fff; transition: opacity .15s;
}
.btn-social:hover { opacity: .88; }
.btn-vk        { background: #0077FF; }
.btn-instagram { background: #CC2366; }
.social-icon   { width: 14px; height: 14px; fill: #fff; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   КАРТА
═══════════════════════════════════════════════ */
.map-section { position: relative; }
#map { width: 100%; height: 100%; min-height: 400px; }

.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(245,242,238,.78);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; z-index: 500;
  font-size: 13px; color: var(--t1);
}
@media (prefers-color-scheme: dark) {
  .loading-overlay { background: rgba(22,20,18,.78); }
}
.loading-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--b2);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Маркеры Leaflet с номером */
.marker-label-icon {
  background: rgba(160,156,152,.92);
  border: 1.5px solid rgba(60,56,52,.7);
  border-radius: 50%; color: var(--t1);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, sans-serif;
}

/* ═══════════════════════════════════════════════
   БЛОК СЛОГАНОВ
═══════════════════════════════════════════════ */
.slogan-block { border-bottom: 1px solid var(--b1); }
.slogan-header {
  padding: 8px 13px;
  background: var(--panel);
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}
.slogan-title-bar {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--t3);
}
.slogan-toggle-btn {
  background: none; border: none;
  cursor: pointer; font-size: 10px;
  color: var(--t3); padding: 0 2px;
}
.slogan-toggle-btn:hover { color: var(--t1); }
.slogan-content { padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.slogan-subtitle {
  font-size: 11px; font-weight: 500; color: var(--t1);
}
.slogan-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 5px;
}
.slogan-bullets li {
  display: flex; align-items: flex-start;
  gap: 7px; font-size: 11px; color: var(--t2); line-height: 1.45;
}
.slogan-bullets li::before { content: none; }
.slogan-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--t1); margin-top: 1px; }
.slogan-cta {
  background: var(--acc-bg);
  border-left: 2px solid var(--acc);
  border-radius: 0 var(--rs) var(--rs) 0;
  padding: 6px 9px;
  font-size: 11px; font-weight: 500; color: var(--acc);
}
.slogan-steps { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.slogan-steps li {
  display: flex; align-items: flex-start;
  gap: 7px; font-size: 11px; color: var(--t2); line-height: 1.45;
  counter-increment: steps;
}
.slogan-steps { counter-reset: steps; }
.slogan-steps li::before {
  content: counter(steps);
  flex-shrink: 0; width: 15px; height: 15px;
  border: 1px solid var(--b2); border-radius: 50%;
  font-size: 9px; font-weight: 600; color: var(--t3);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.slogan-more-link {
  font-size: 11px; color: var(--t2);
  border-bottom: 1px solid var(--b1);
  align-self: flex-start;
  transition: color .15s, border-color .15s;
}
.slogan-more-link:hover { color: var(--acc); border-bottom-color: var(--acc-b); }

/* ═══════════════════════════════════════════════
   СТРАНИЦЫ 2 И 3
═══════════════════════════════════════════════ */
.page-content {
  max-width: 680px; margin: 0 auto;
  padding: 28px 22px 40px;
  background: var(--surface);
  min-height: 100%;
}
.page-title {
  font-size: 20px; font-weight: 500;
  color: var(--t1); letter-spacing: -.5px;
  margin-bottom: 4px;
}
.page-subtitle { font-size: 12px; color: var(--t2); margin-bottom: 24px; }

/* Шаги */
.steps-list { display: flex; flex-direction: column; }
.step-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--b1);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--acc-bg);
  border: 1px solid var(--acc-b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--acc);
}
.step-title { font-size: 13px; font-weight: 500; color: var(--t1); margin-bottom: 4px; }
.step-body p { font-size: 12px; color: var(--t2); line-height: 1.6; }

.info-note {
  margin-top: 20px; padding: 11px 14px;
  background: var(--panel); border: 1px solid var(--b1);
  border-radius: var(--r);
  font-size: 11px; color: var(--t2); line-height: 1.6;
}

/* Info page */
.info-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-section { margin-bottom: 22px; }
.info-section h2 {
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--t3); padding-bottom: 7px;
  border-bottom: 1px solid var(--b1); margin-bottom: 10px;
}
.info-section p, .info-section li {
  font-size: 12px; color: var(--t2);
  line-height: 1.65; margin-bottom: 5px;
}
.info-section ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.info-section a { color: var(--acc); }

/* Контактные карточки */
.contact-card {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px;
  border: 1px solid var(--b1); border-radius: var(--r);
  margin-bottom: 7px; background: var(--panel);
}
.contact-icon {
  width: 30px; height: 30px;
  background: var(--surface); border: 1px solid var(--b1);
  border-radius: var(--rs);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.contact-label-sm {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--t3);
}
.contact-value { font-size: 12px; font-weight: 500; color: var(--acc); }
.contact-note { font-size: 11px; color: var(--t3); line-height: 1.5; margin-top: 4px; }

/* Услуги/партнёры */
.service-card {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px;
  border: 1px solid var(--b1); border-radius: var(--r);
  margin-bottom: 7px; background: var(--panel);
}
.service-icon {
  width: 30px; height: 30px;
  background: var(--surface); border: 1px solid var(--b1);
  border-radius: var(--rs); display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 600;
  color: var(--t2); flex-shrink: 0;
}
.service-label { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--t3); }
.service-value { font-size: 12px; color: var(--t1); }

/* ═══════════════════════════════════════════════
   АДАПТИВНОСТЬ
═══════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .main-grid { grid-template-columns: 1fr; grid-template-rows: auto 400px; }
  .control-panel { border-right: none; border-bottom: 1px solid var(--b1); }
  #map { min-height: 400px; }
  .info-page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --header-h: 46px; --footer-h: auto; }
  .site-footer { position: static; flex-direction: column; height: auto; padding: 10px 16px; gap: 6px; }
  .footer-right { justify-content: center; }
  .footer-left  { display: none; }
  .site-main { padding-bottom: 0; height: auto; }
  .main-grid { grid-template-rows: auto 300px; }
  #map { min-height: 300px; }
  .btn-primary, .btn-secondary, .btn-download { width: 100%; }
  .download-row, .social-row { flex-direction: column; }
  .time-part { width: 30px; font-size: 11px; }
  .two-col-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ПОЛЗУНОК ПОГРЕШНОСТИ GPS
═══════════════════════════════════════════════ */

/* Строка с двумя группами: переключатель + ползунок */
.params-double-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.params-double-row .toggle-wrap {
  flex-shrink: 0;
}

/* Группа ползунка */
.gps-jitter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

/* Строка: ползунок + цифра + ? */
.gps-jitter-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Сам ползунок */
.gps-slider {
  width: 72px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--b2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--acc);
}
.gps-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--acc);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--acc);
}
.gps-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--acc);
  cursor: pointer;
  border: 2px solid var(--surface);
}

/* Окошко с цифрой */
.gps-jitter-val {
  width: 26px; height: 22px;
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  background: var(--panel);
  font-size: 11px; font-weight: 600;
  font-family: var(--mono);
  color: var(--t1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .params-double-row { flex-direction: column; gap: 8px; }
  .gps-slider { width: 90px; }
}

/* ═══════════════════════════════════════════════
   ВРЕМЯ СТАРТА + ДАТА В ОДНУ СТРОКУ
═══════════════════════════════════════════════ */
.time-date-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.time-date-row .field-group { flex-shrink: 0; }

/* Переключатель даты как метка над полями */
.date-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   СПОРТСМЕН В БЛОКЕ ВЫВОДА
═══════════════════════════════════════════════ */
.info-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px 2px;
}

/* Переносим padding с .info-name на .info-header-row */
.info-header-row .info-name {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.info-athlete-block {
  flex-shrink: 0;
  text-align: right;
}

.info-athlete-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--t3);
  margin-bottom: 2px;
}

.info-athlete-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--t1);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   WHEEL PICKER — колесо прокрутки
═══════════════════════════════════════════════ */
.wp {
  width: 48px;
  height: 160px;
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  cursor: ns-resize;
  user-select: none;
  flex-shrink: 0;
  touch-action: none;
}
.wp-dd { width: 36px; }
.wp-mo { width: 74px; }
.wp-yr { width: 52px; }

.wp-inner {
  position: absolute;
  left: 0; right: 0;
}

.wp-item {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--t3);
  font-family: var(--mono);
  transition: font-size .1s, color .1s, opacity .1s;
  opacity: .35;
}
.wp-item.wp-near  { font-size: 13px; color: var(--t2); opacity: .7; }
.wp-item.wp-active { font-size: 17px; font-weight: 500; color: var(--t1); opacity: 1; letter-spacing: -.2px; }
.wp-item.wp-far   { opacity: .18; }

.wp-sel-top {
  position: absolute;
  top: 64px; left: 7px; right: 7px;
  height: 0;
  border-top: 1px solid var(--b2);
  z-index: 2; pointer-events: none;
}
.wp-sel-bot {
  position: absolute;
  top: 96px; left: 7px; right: 7px;
  height: 0;
  border-top: 1px solid var(--b2);
  z-index: 2; pointer-events: none;
}

.wp-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.wp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wp-sep {
  font-size: 17px;
  color: var(--t2);
  line-height: 1;
  padding-top: 60px;
  flex-shrink: 0;
}
.wp-sub {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--t3);
}

/* ═══════════════════════════════════════════════
   WHEEL PICKER POPUP
═══════════════════════════════════════════════ */
.field-group  { position: relative; }
#date-inputs  { position: relative; }

.wp-popup {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--b2);
  border-radius: var(--r);
  padding: 10px;
  z-index: 300;
}
.wp-popup.open { display: block; }

/* Попап даты выравниваем по ПРАВОМУ краю — не уходит за панель */
#popup-date { left: auto; right: 0; }
