/* =========================================================
   MIRIDEA · «Ускорение сайта» — спидометр и Core Web Vitals. Только transform/opacity/stroke.
   ========================================================= */
.m-spd { position: relative; padding: 20px 20px 18px; border-radius: 12px 28px 12px 28px; background: #fff; box-shadow: 0 34px 80px -44px rgba(24,78,174,.6), 0 0 0 1px var(--line); }
.m-spd::before { content: ""; position: absolute; left: -30px; top: -30px; width: 200px; height: 200px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(31,154,82,.2), transparent 70%); }
.m-spd__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.m-spd__top b { font-weight: 600; }
.m-spd__url { margin-left: auto; padding: 3px 9px; border-radius: 6px; background: var(--soft); font-size: 11.5px; color: var(--mute); }
.m-spd__gauge { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.m-spd__gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.m-spd__arc { fill: none; stroke-width: 18; stroke-linecap: round; }
.m-spd__needle { transform-origin: 170px 170px; transform: rotate(var(--a, -80deg)); transition: transform 1.8s cubic-bezier(.34,1.3,.64,1); }
.m-spd__score { margin-top: 6px; text-align: center; }
.m-spd__score b { display: block; font-size: 40px; line-height: 1; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; transition: color .6s; }
.m-spd__score span { font-size: 12px; color: var(--mute); }
.m-spd.is-fast .m-spd__score b { color: #1f9a52; }
.m-spd__vitals { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.m-spd__vitals div { padding: 10px 12px; border-radius: 8px 16px 8px 16px; background: var(--soft); }
.m-spd__vitals span { display: block; font-size: 11px; color: var(--mute); }
.m-spd__vitals b { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; transition: color .6s; }
.m-spd__vitals i { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: #eef1f6; overflow: hidden; }
.m-spd__vitals i::after { content: ""; display: block; height: 100%; width: 100%; border-radius: inherit; background: #f93c3c; transform-origin: 0 50%; transform: scaleX(.25); transition: transform 1.6s cubic-bezier(.22,1,.36,1), background .6s; }
.m-spd.is-fast .m-spd__vitals b { color: #1f9a52; }
.m-spd.is-fast .m-spd__vitals i::after { background: #1f9a52; transform: scaleX(.92); }
.m-spd__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-spd__tags span { padding: 5px 10px; border-radius: 6px 12px 6px 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink);
  opacity: .35; transition: opacity .4s, box-shadow .4s, color .4s; }
.m-spd__tags span.on { opacity: 1; box-shadow: 0 0 0 1px #1f9a52; color: #1f9a52; }
@media (prefers-reduced-motion: reduce) { .m-spd * { transition: none !important; } }
