/* Страница замера скорости: панель с показателями, полоса хода замера и разбор результата. */
.sp{
  margin-top: 26px;
  background: var(--soft);
  border-radius: var(--r);
  padding: 26px;
}
.sp__run{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sp__meta{
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.sp__stage{
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}
.sp__track{
  margin-top: 8px;
  height: 4px;
  border-radius: 2px;
  background: #dde6ec;
  overflow: hidden;
}
.sp__bar{
  height: 100%;
  width: 0;
  background: #1592bd;
}
.sp__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.sp__cell{
  background: #fff;
  border-radius: var(--r);
  padding: 18px 20px;
}
.sp__cell b{
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
}
.sp__cell b i{
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 5px;
}
.sp__cell span{
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}
.sp__verdict{
  margin-top: 22px;
}
.sp__verdict h3{
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.sp__verdict ul{
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
}
.sp__verdict li{ margin-top: 6px; }
.sp__note{
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 900px){
  .sp__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  .sp{ padding: 20px; }
  .sp__cell{ padding: 15px 16px; }
  .sp__cell b{ font-size: 26px; }
}

/* ---- Шкала-панель (02.10.2026): прямая шкала как тахометр, логарифмическая 0–1000 Мбит/с. Без анимаций. ---- */
.spx{position:relative;margin-top:22px;border-radius:20px;padding:30px 34px 26px;color:#e9eff4;overflow:hidden;
  background:radial-gradient(120% 140% at 85% 0%,#14466c 0%,#0b2a44 45%,#071a2b 100%)}
.spx::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 4px)}
.spx__top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.spx__tag{font-size:13px;color:#8fb0c8}
.spx__big{display:flex;align-items:baseline;gap:12px;margin-top:6px}
.spx__num{font-size:88px;line-height:.9;font-weight:300;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums}
.spx__unit{font-size:18px;color:#8fb0c8}
.spx__state{font-size:14px;color:#ffc93f;border:1px solid rgba(255,201,63,.45);border-radius:999px;padding:6px 14px}
.spx__scale{margin-top:26px;position:relative}
.spx__bars{display:grid;grid-template-columns:repeat(48,1fr);gap:4px;align-items:end;height:110px}
.spx__bars i{display:block;border-radius:2px;background:rgba(143,176,200,.16)}
.spx__bars i.on{background:linear-gradient(180deg,#ffd76a 0%,#ffc93f 40%,#2aa0d8 100%);box-shadow:0 0 10px rgba(255,201,63,.35)}
.spx__bars i.hot{background:rgba(255,120,90,.2)}
.spx__bars i.on.hot{background:linear-gradient(180deg,#ff9a7a,#ff6b4f)}
.spx__ticks{position:relative;height:30px;margin-top:10px;border-top:1px solid rgba(143,176,200,.25)}
.spx__ticks span{position:absolute;top:8px;transform:translateX(-50%);white-space:nowrap;font-size:12px;color:#8fb0c8;font-variant-numeric:tabular-nums}
.spx__ticks span:first-of-type{transform:none}
.spx__ticks span:last-child{transform:translateX(-100%)}
.spx__ticks span::before{content:"";position:absolute;left:50%;top:-8px;width:1px;height:6px;background:rgba(143,176,200,.5)}
.spx__ticks span:first-of-type::before{left:0}
.spx__ticks span:last-child::before{left:auto;right:0}
.spx__mark{position:absolute;top:-10px;width:2px;height:16px;background:#fff;box-shadow:0 0 12px rgba(255,255,255,.7);transform:translateX(-1px)}
.spx__mark::after{content:"";position:absolute;top:-8px;left:-5px;border:6px solid transparent;border-top-color:#fff}
.spx__zones{display:flex;margin-top:2px;font-size:12px;color:#6f93ad}
.spx__zones div{border-left:1px solid rgba(143,176,200,.2);padding:4px 0 0 8px;white-space:nowrap;overflow:hidden}
.spx__dash{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.spx__cell{background:rgba(255,255,255,.04);border:1px solid rgba(143,176,200,.14);border-radius:14px;padding:16px 18px}
.spx__cell small{font-size:12px;color:#8fb0c8}
.spx__cell b{display:block;font-size:30px;font-weight:300;color:#fff;margin-top:4px;font-variant-numeric:tabular-nums}
.spx__cell b em{font-style:normal;font-size:14px;color:#8fb0c8;margin-left:6px}
.spx__seg{display:grid;grid-template-columns:repeat(20,1fr);gap:3px;margin-top:12px;height:8px}
.spx__seg i{border-radius:2px;background:rgba(143,176,200,.16)}
.spx__seg i.on{background:#2aa0d8}
.spx__seg--ok i.on{background:#3ccf8e}
.spx__seg--bad i.on{background:#ff8a6b}
.spx__note{position:relative;margin-top:18px;font-size:13px;color:#8fb0c8}
@media (max-width:760px){
  .spx{padding:22px 16px 20px}
  .spx__num{font-size:60px}
  .spx__bars{height:84px;gap:2px}
  .spx__zones{display:none}
  .spx__ticks span[data-m="5"],.spx__ticks span[data-m="25"],.spx__ticks span[data-m="500"]{display:none}
  .spx__dash{gap:8px}
  .spx__cell{padding:10px 10px 12px;border-radius:10px}
  .spx__cell b{font-size:22px}
  .spx__cell b em{display:block;margin:2px 0 0;font-size:11px}
  .spx__seg{gap:2px;height:6px}
}

/* поделиться результатом */
.sp__run{flex-wrap:wrap}
.sp__share{margin-top:12px;font-size:14px;line-height:1.6;color:var(--ink);background:#fff;border-radius:10px;padding:10px 14px}
.sp__share a{word-break:break-all}
.sp__share--warn{color:#8a4b12;background:#fff6e6}

/* История замеров и отчёт (11.10.2026, js/speedtest-history.js) */
.sp-hist{margin-top:28px;padding-top:24px;border-top:1px solid var(--bd)}
.sp-hist[hidden]{display:none}
.sp-hist h3{margin-bottom:6px}
.sp-hist__note,.sp-hist__hint{color:var(--muted);font-size:14px;line-height:1.55;margin:0 0 16px}
.sp-hist__hint{margin:16px 0 0}
.sp-hist__plan{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;font-size:15px}
.sp-hist__plan input{width:150px;padding:9px 11px;border:1px solid var(--bd);border-radius:8px;font:inherit}
.sp-hist__wrap{overflow-x:auto}
.sp-hist__t{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
.sp-hist__t th,.sp-hist__t td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--bd);white-space:nowrap}
.sp-hist__t th{color:var(--muted);font-weight:400}
.sp-hist__low{color:#b3541e}
.sp-hist__sum{margin:14px 0 0;font-size:15px}
.sp-hist__act{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px}
.sp-hist__clear{background:none;border:0;padding:6px 0;color:var(--muted);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sp-report{display:none}
@media print{
  body.sp-printing>*:not(.sp-report){display:none!important}
  body.sp-printing .sp-report{display:block;color:#000;font-size:12pt}
  .sp-report h1{font-size:18pt;margin:0 0 12pt}
  .sp-report table{width:100%;border-collapse:collapse;margin:12pt 0}
  .sp-report th,.sp-report td{border:1px solid #999;padding:4pt 6pt;text-align:left}
  .sp-report__small{font-size:9pt;color:#444}
}

/* 11.10.2026: примечание о замере — с красным значком и пометкой «Важно!» */
.sp__note--warn{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:10px;background:#fdf1ef;border:1px solid #f3c9c3;color:#3a2a28}
.sp__warn-ico{flex:none;margin-top:1px}
.sp__warn-lbl{color:#c0362a;font-weight:500}

/* Точное время замера (24.10.2026) */
.sp__time{
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sp__time[hidden]{
  display: none;
}
