/* Poprawki P1 z audytu motorsagent.pages.dev (29.10.2026) — 31.10.2026
   F06 kontrast, Z03 nagłówki w trybie jasnym, R01 przycisk czatu, Z01 wysokość slajdów. */

/* ---- F06: kontrast (próg 4,5:1) — tryb ciemny */
:root:not([data-theme="light"]) .hx-steps .n,
:root:not([data-theme="light"]) .contact-data-grid a.mono,
:root:not([data-theme="light"]) #opis-ue-ma .pf-hash { color: #E86428 !important; }                 /* było #CC4200 ≈ 4,1:1 → 6,0:1 */
#slide-5 .ac .p { background: #B83E08 !important; color: #fff !important; } /* było biały na #E86428 3,3:1 → 5,6:1 */
#slide-17 .panel.rev > a.btn { background: #0066CC !important; } /* było #0084FF 3,7:1 → 5,6:1 */

/* ---- F06: kontrast — tryb jasny (akcenty na jasnym tle) */
[data-theme="light"] .accent,
[data-theme="light"] .mono.accent,
[data-theme="light"] #slide-6 .grid.col-3 .accent,
[data-theme="light"] .panel h3.mono,
[data-theme="light"] #slide-17 .slide-badge,
[data-theme="light"] #slide-17 .footer-links-group a,
[data-theme="light"] #captionIndexBadge,
[data-theme="light"] #opis-ue-ma .pf-hash,
[data-theme="light"] .contact-data-grid a.mono,
[data-theme="light"] .hx-steps .n { color: #A33604 !important; }   /* ≥ 5,1:1 na #FFF i #F6EDE6 */
[data-theme="light"] .hx-r .fc .lb,
[data-theme="light"] .hx-r .fc strong { color: #A33604 !important; }
[data-theme="light"] .hx-r .fc .ok i { color: #3D7A00 !important; }
[data-theme="light"] .hx-trust .cbb small { color: #7A5C00 !important; }
[data-theme="light"] #slide-17 .panel.rev > div > div { color: #00739E !important; }

/* ---- Z03: nagłówki na ciemnych zdjęciach w trybie jasnym (Czat AI, Strefa mechanika) */
[data-theme="light"] #cz-h, [data-theme="light"] #sm-h { color: #fff !important; text-shadow: 0 2px 14px rgba(0,0,0,.55); }

/* ---- R01/R07: przycisk czatu — mniejszy, nad banerem cookies, chowany przy przewijaniu */
#mtaChatLauncherPlaceholder.mta-chat-placeholder, .tc-widget-btn { transition: transform .25s ease, opacity .25s ease, bottom .2s ease; }
@media (max-width: 1126px) {
  #mtaChatLauncherPlaceholder.mta-chat-placeholder, .tc-widget-btn.tc-widget-btn { width: 48px !important; height: 48px !important; right: 12px !important; bottom: 12px; }
  #slidesContainer > section, #slidesContainer > footer { padding-bottom: max(72px, var(--mta-pb, 0px)) !important; }
}
@media (max-width: 599px) {
  #mtaChatLauncherPlaceholder.mta-chat-placeholder, .tc-widget-btn.tc-widget-btn { width: 44px !important; height: 44px !important; }
}
#mtaChatLauncherPlaceholder.mta-fab-hidden, .tc-widget-btn.mta-fab-hidden { transform: translateY(140%) !important; opacity: 0 !important; pointer-events: none !important; }

/* ---- Z01: niższe okna laptopów — mniejsze marginesy pionowe slajdów (resztę dopasowuje audit-p1-oct31.js) */
@media (min-width: 1127px) and (max-height: 820px) {
  #celebrissio, #skills4agent { padding-top: 84px !important; padding-bottom: 24px !important; }
  #slide-4 { padding-top: 84px !important; padding-bottom: 24px !important; }
  #slide-5 { padding-top: 84px !important; padding-bottom: 24px !important; }
  #slidesContainer > section.slide:not(#slide-1):not(#celebrissio):not(#skills4agent):not(#slide-4):not(#slide-5) { padding-top: 76px !important; padding-bottom: 20px !important; }
}

/* 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}
