/* Poprawki P1 z audytu motorsbot.pages.dev (29.10.2026) — 31.10.2026
   F12: jasne nagłówki na slajdach z ciemnym tłem także w motywie jasnym.
   F13: tabela „Dlaczego MotorsBot?” na telefonie jako karty (bez łamania słów). */

/* ---- F12 */
[data-theme="light"] #wyszukiwanie-ai h2,
[data-theme="light"] #kontrola-ogloszen h2,
[data-theme="light"] #umowa-ai h2,
[data-theme="light"] #paszport-pojazdu h2,
[data-theme="light"] #negotivo h2 { color: #F5F7FA !important; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
[data-theme="light"] #how-it-works .step-card.highlight-step .step-title { color: #F5F7FA !important; }
[data-theme="light"] #how-it-works .step-card.highlight-step .step-desc { color: #CBD5E1 !important; }
[data-theme="light"] #how-it-works .step-card.highlight-step .step-badge { color: #7DD3FC !important; }

/* ---- F13 */
@media (max-width: 640px) {
  #why_us .table-container { overflow: visible !important; }
  #why_us .comparison-table { min-width: 0 !important; width: 100% !important; border: 0 !important; background: transparent !important; }
  #why_us .comparison-table thead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #why_us .comparison-table, #why_us .comparison-table tbody, #why_us .comparison-table tr, #why_us .comparison-table td { display: block !important; width: 100% !important; }
  #why_us .comparison-table tr { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line, rgba(148,163,184,.25)); border-radius: 12px; background: var(--surf, rgba(15,23,42,.55)); }
  #why_us .comparison-table td { border: 0 !important; padding: 4px 0 !important; text-align: left !important; word-break: normal !important; overflow-wrap: break-word !important; hyphens: manual !important; white-space: normal !important; font-size: .9rem; }
  #why_us .comparison-table td.td-feature { font-weight: 700; font-size: 1rem; padding-bottom: 8px !important; }
  #why_us .comparison-table td[data-label]:not(.td-feature)::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
}

/* F05/F10: po usunięciu kroków 8–9 ostatnia (7.) karta wyśrodkowana w siatce 3-kolumnowej */
@media (min-width: 1025px) {
  #how-it-works .process-grid > .step-card:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* cookie-drawer-0111: przy otwartym menu telefonu baner cookies nie zasłania wierszy „Motyw” i „Dostępność” */
html:has(.pm-burger[aria-expanded="true"]) #cookieBanner,
html:has(.pm-burger[aria-expanded="true"]) .cookie-banner{display:none !important}

/* cennik-zoom-0111: /cennik/ ma rozmiary w px — „Rozmiar tekstu” skaluje treść strony */
html[data-font-size="large"] main.cennik-page { zoom: 1.15; }
html[data-font-size="xlarge"] main.cennik-page { zoom: 1.3; }
