/* ─── Natychmiastowy mini-audyt (audyt.html), DESIGN.md: grafit, kość, stal; ruch ease-out ─── */
.ma { width: 100%; max-width: 920px; margin-top: 48px; }
.ma-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(243,239,231,0.22); background: rgba(14,15,17,0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 0.3s var(--ease); }
.ma-row:focus-within { border-color: rgba(243,239,231,0.5); }
.ma .ma-hint { font-size: 13px; line-height: 1.6; color: var(--dim, #5E5B55); max-width: none; margin: 14px 0 0; }
.ma .ma-hint button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ma .ma-status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; max-width: none; color: #E2A08F; }

/* Postęp: kroki, które naprawdę trwają (pomiar szybkości to do 30 s) */
.ma-progress { display: none; margin-top: 28px; padding: 0; list-style: none; }
.ma.is-loading .ma-progress { display: block; }
.ma.is-loading .ma-row { opacity: 0.55; pointer-events: none; }
.ma-progress li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 15px; color: var(--dim, #5E5B55); transition: color 0.4s var(--ease); }
.ma-progress li::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background 0.3s, border-color 0.3s; }
.ma-progress li.is-active { color: var(--bone); }
.ma-progress li.is-active::before { border-color: var(--accent); animation: ma-pulse 1.2s ease-in-out infinite; }
.ma-progress li.is-done { color: var(--muted); }
.ma-progress li.is-done::before { background: var(--accent); border-color: var(--accent); }
@keyframes ma-pulse { 50% { box-shadow: 0 0 0 5px rgba(143,163,184,0.18); } }

/* Wynik */
.ma-result { display: none; margin-top: 40px; animation: ma-in 0.5s var(--ease) both; }
.ma.is-done .ma-result { display: block; }
.ma.is-done .ma-progress { display: none; }
@keyframes ma-in { from { opacity: 0; transform: translateY(8px); } }
.ma-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.ma .ma-lead { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: var(--bone); max-width: 22ch; margin: 12px 0 0; }
.ma-scores { display: flex; flex-wrap: wrap; gap: 28px 36px; margin: 32px 0 8px; }
.ma-score { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 92px; text-align: center; }
.ma-ring { position: relative; width: 76px; height: 76px; }
.ma-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ma-ring circle { fill: none; stroke-width: 3; }
.ma-ring .bg { stroke: rgba(243,239,231,0.12); }
.ma-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.ma-ring .fg.is-good { stroke: var(--bone); }
.ma-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 24px/1 var(--serif); color: var(--bone); }
.ma-score span { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.ma .ma-note { font-size: 13px; color: var(--dim, #5E5B55); max-width: none; margin: 8px 0 0; }

.ma-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid rgba(243,239,231,0.14); }
.ma-list li { display: grid; grid-template-columns: 48px 1fr; gap: 0 8px; padding: 22px 0; border-bottom: 1px solid rgba(243,239,231,0.14); }
.ma-num { font: 400 22px/1.2 var(--serif); color: var(--accent); }
.ma-item h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font: 500 17px/1.4 var(--sans); color: var(--bone); margin: 0; }
.ma-pill { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 8px; border: 1px solid currentColor; color: var(--muted); }
.ma-pill.is-high { color: #E2A08F; }
.ma .ma-item p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 8px 0 0; }
.ma .ma-item p.ma-gain { color: var(--bone); }
.ma .ma-item p.ma-gain::before { content: 'Po poprawie: '; color: var(--accent); }
.ma-more { margin: 22px 0 0; font-size: 15px; color: var(--muted); }

.ma-cta { margin-top: 44px; padding-top: 36px; border-top: 1px solid rgba(243,239,231,0.22); }
.ma-cta h2 { font: 400 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); color: var(--bone); margin: 0 0 10px; }
.ma .ma-cta > p { font-size: 16px; color: var(--muted); max-width: 600px; margin: 0; }
.ma-cta .af { margin-top: 28px; }

/* Pełny formularz zamówienia: ukryty do czasu wyniku albo kliknięcia „od razu raport” */
.af.is-hidden { display: none; }

@media (max-width: 760px) {
  .ma-row { grid-template-columns: 1fr; }
  .ma-row .af-field + .af-submit { border-top: 1px solid rgba(243,239,231,0.22); }
  .ma-scores { gap: 22px; justify-content: space-between; }
  .ma-score { width: calc(50% - 12px); }
  .ma-list li { grid-template-columns: 36px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ma-result { animation: none; }
  .ma-ring .fg { transition: none; }
  .ma-progress li.is-active::before { animation: none; }
}

/* Strona główna: przycisk do zamówienia pełnego raportu na audyt.html */
.ma-cta-link { margin: 26px 0 0; }
.ma-cta-link .af-submit { display: inline-flex; padding: 20px 30px; text-decoration: none; }
.ma .ma-hint a { color: var(--muted); text-underline-offset: 3px; }
