/* Dolne sekcje (22.10, PLAN-SEKCJE-2210 S2): #chatbot-ai, #panel, #zaufanie, #integracje, #pytania.
   Nadpisuje styl.css i poprawki-odbior.css, nie przepisuje ich. Ten sam język co jak-dziala.css: ikony w grafitowej
   ramce z neonem, kafle na --alu-1, linie LED. Kolory z tokenów, więc ciemny motyw działa bez osobnych wartości;
   wyjątki są na końcu pliku. */

/* #chatbot-ai: cienki pasek z dwoma dymkami rozmowy (30.10, bez psa: pies stoi tylko w #jak-dziala).
   Dymki jak w karcie „Klient dzwoni”: grafitowe w obu motywach, dane fikcyjne.
   6.11: dolny odstęp równy górnemu. Bez niego dół karty leżał na krawędzi sekcji, a szary pas #panel malował się
   na obwódce (box-shadow 0 0 0 1px) i uciętych rogach („co to za ucięte”). Pilnuje [CZAT-KARTA-ODSTEP]. */
#chatbot-ai.cz { padding: 40px 0; background: none; border: 0; }
.cz-pasek { display: grid; grid-template-columns: 236px minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; padding: 12px 28px 12px 14px; border-radius: var(--r-3); background: linear-gradient(110deg, rgb(var(--led-rgb) / 0.12), transparent 55%), var(--alu-1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cz-dymki { display: grid; gap: 5px; padding: 9px 10px; border-radius: 2px; background: linear-gradient(180deg, #25282d, #0c0d10); box-shadow: inset 0 0 0 1px #34373c; }
.chatbot-zapowiedz .cz-d { max-width: none; margin: 0; white-space: nowrap; padding: 6px 10px; font-size: 0.8125rem; line-height: 1.3; color: #f3f4f6; }
.cz-d-klient { justify-self: end; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.cz-d-asystent { justify-self: start; border-radius: 2px; background: rgb(var(--led-rgb) / 0.14); box-shadow: inset 0 0 0 1px rgb(var(--led-rgb) / 0.35); }
.cz-d-asystent span { display: block; margin-bottom: 1px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4fe398; }
.cz-tekst { padding: 4px 0; }
.chatbot-zapowiedz.cz h2 { margin: 0 0 4px; font-size: clamp(1.25rem, 1.9vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.cz-wkrotce { color: var(--led-tekst); }
.chatbot-zapowiedz.cz .cz-tekst p { max-width: none; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.cz-lacze { padding-bottom: 12px; }

/* #panel: dwa ekrany panelu E z podpisami prowadzonymi linią do ekranu */
#panel.pn { padding-bottom: 0; }
.pn-scena { --tel: 300px; --kol: 170px; margin-top: var(--odstep-glowa); display: flex; justify-content: center; align-items: flex-start; gap: 56px; }
.pn-f { position: relative; margin: 0; flex: none; box-sizing: content-box; width: var(--tel); }
.pn-f-dzis { padding-left: var(--kol); --wjazd: calc(var(--tel) * 0.09); }
.pn-f-agent { padding-right: var(--kol); --wjazd: calc(var(--tel) * 0.075); margin-top: 72px; }
.pn-tel { padding: 7px; border-radius: calc(var(--tel) * 0.145); background: linear-gradient(180deg, #2d3035, #0c0d10); box-shadow: inset 0 0 0 1.5px #3a3d41, 0 34px 60px -34px rgba(13, 14, 12, 0.6); }
.pn-tel img { display: block; width: 100%; height: auto; border-radius: calc(var(--tel) * 0.12); }
.pn-podpis { position: absolute; top: var(--y); display: flex; align-items: center; gap: 10px; width: calc(100% - var(--tel) + var(--wjazd)); transform: translateY(-50%); pointer-events: none; }
.pn-f-dzis .pn-podpis { left: 0; }
.pn-f-agent .pn-podpis { right: 0; flex-direction: row-reverse; }
.pn-podpis span { flex: none; max-width: 14ch; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.pn-f-dzis .pn-podpis span { text-align: right; }
.pn-podpis::after { content: ""; flex: 1; min-width: 20px; height: 2px; border-radius: 2px; background: var(--led-1); box-shadow: none; }
.pn-podpis::before { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--led-dioda); box-shadow: 0 0 0 3px rgb(var(--led-rgb) / 0.25), var(--led-blask-maly); }
.pn-f-dzis .pn-podpis::before { right: -5px; }
.pn-f-agent .pn-podpis::before { left: -5px; }
/* 30.10: zrzuty z obecnego panelu (podglad-*-20261030): „Dziś” i „Rozmowy” zamiast ekranu agenta ze starym psem */
.pn-y-wizyta { --y: 15.4%; }
.pn-y-agent { --y: 26.6%; }
.pn-y-zalatwil { --y: 33%; }
.pn-y-oddzwon { --y: 55.6%; }
.pn-akcja { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 36px; }
.pn-akcja p { font-size: 0.8125rem; color: var(--ink-3); }

/* #zaufanie: kafle ikon jak pasek uspokojeń z S1 */
#zaufanie.zf { padding-top: var(--odstep); }
.zf-kafle { list-style: none; margin: var(--odstep-glowa) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.zf-kafle li { display: grid; align-content: start; gap: 14px; padding: 18px 18px 20px; border-radius: var(--r-2); background: var(--alu-1); box-shadow: inset 0 0 0 1px var(--line); }
.zf-kafle h3 { font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.zf-kafle p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
.zf-dol { margin-top: 16px; }

/* #integracje: Telsio w środku, Kalendarz Google linią ciągłą, reszta przerywaną */
.ig-schemat { margin-top: var(--odstep-glowa); display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 150px) 104px minmax(40px, 72px) minmax(0, 1fr); align-items: center; }
.ig-google { justify-self: end; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r-2); background: var(--bg); box-shadow: inset 0 0 0 1.5px rgb(var(--led-rgb) / 0.6); }
.ig-google img { width: 44px; height: 44px; }
.ig-google h3 { font-size: 1.0625rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ig-linia { position: relative; height: 2px; }
.ig-ciagla { background: linear-gradient(90deg, var(--led-1), var(--led-2) 50%, var(--led-1)); box-shadow: none; }
.ig-ciagla span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--led-tekst); }
.ig-przerywana { background: repeating-linear-gradient(90deg, var(--ink-3) 0 7px, transparent 7px 13px); opacity: 0.7; }
.ig-hub { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 2px; background: radial-gradient(90% 80% at 40% 20%, #2b2f34, #0f1113 70%); box-shadow: inset 0 0 0 2px var(--led-1); }
.ig-hub img { width: 64px; height: 64px; }
#integracje .ig-schemat .integ-grupa { position: relative; margin: 0; justify-self: start; width: min(100%, 300px); }
#integracje .ig-etykieta { position: absolute; bottom: calc(100% + 10px); left: 24px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
#integracje .ig-schemat .integ-pas { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 24px; }
#integracje .ig-schemat .integ-pas::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 2px; background: repeating-linear-gradient(180deg, var(--ink-3) 0 7px, transparent 7px 13px); opacity: 0.7; }
#integracje .ig-schemat .integ-api .integ-p { position: relative; flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 8px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-2); background: var(--bg); box-shadow: none; }
#integracje .ig-schemat .integ-p::before { content: ""; position: absolute; left: -25.5px; top: 50%; width: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 7px, transparent 7px 13px); opacity: 0.7; }
#integracje .ig-schemat .integ-identite { justify-content: flex-start; }
#integracje .ig-schemat .integ-identite img { max-height: 24px; }
#integracje .ig-schemat .integ-identite span { font-size: 18px; }
#integracje .integ-kontakt { margin-top: 48px; }

/* #pytania: sam dymek „Masz inne pytanie?” (30.10, bez psa), przyklejony w kolumnie obok listy,
   z ogonkiem w stronę pytań; na telefonie pod listą */
.pt-uklad { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.pt-uklad > .sekcja-glowa, .pt-uklad > .pytania { grid-column: 1; }
.pt-zapytaj { grid-column: 2; grid-row: 2; align-self: start; justify-self: start; position: sticky; top: 112px; width: min(100%, 300px); }
.pt-dymek { position: relative; z-index: 1; display: grid; justify-items: start; gap: 14px; padding: 20px 22px; border-radius: 2px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pt-dymek p { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

@media (max-width: 1100px) {
  .pn-scena { --tel: 260px; --kol: 150px; gap: 32px; }
  .zf-kafle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-uklad { grid-template-columns: minmax(0, 1fr) 240px; column-gap: 32px; }
}
@media (max-width: 760px) {
  #chatbot-ai.cz { padding-block: 32px; }
  .cz-pasek { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px 6px 12px; }
  .cz-dymki { max-width: 260px; }
  .cz-tekst { padding: 2px 0 0; }
  .cz-lacze { padding-bottom: 4px; }

  .pn-scena { --tel: min(54vw, 230px); --kol: calc(100vw - 2 * var(--bok) - var(--tel)); flex-direction: column; align-items: stretch; gap: 40px; }
  .pn-f-dzis { align-self: flex-end; }
  .pn-f-agent { margin-top: 0; }
  .pn-podpis span { max-width: 9ch; font-size: 0.875rem; }
  .pn-akcja { margin-top: 28px; }

  .zf-kafle { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .zf-kafle li { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; }

  .ig-schemat { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ig-google { justify-self: center; }
  .ig-linia { width: 2px; height: 56px; }
  .ig-ciagla { background: linear-gradient(180deg, var(--led-1), var(--led-2) 50%, var(--led-1)); }
  .ig-ciagla span { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .ig-przerywana { height: 36px; background: repeating-linear-gradient(180deg, var(--ink-3) 0 7px, transparent 7px 13px); }
  #integracje .ig-schemat .integ-grupa { justify-self: stretch; width: 100%; padding-top: 30px; }
  #integracje .ig-etykieta { bottom: auto; top: 0; left: 50%; transform: translateX(-50%); }
  #integracje .ig-schemat .integ-pas { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
  #integracje .ig-schemat .integ-pas::before, #integracje .ig-schemat .integ-p::before { display: none; }
  #integracje .ig-schemat .integ-api .integ-p { justify-content: center; padding: 8px 10px; }
  #integracje .ig-schemat .integ-identite { justify-content: center; }
  #integracje .ig-schemat .integ-identite span { font-size: 16px; }
  #integracje .integ-kontakt { margin-top: 36px; }

  .pt-uklad { grid-template-columns: minmax(0, 1fr); }
  .pt-zapytaj { order: 1; position: static; grid-column: 1; grid-row: auto; width: 100%; margin-top: 28px; }
  .pt-dymek { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: 2px; }
  .pt-dymek p { font-size: 1.125rem; }
}

/* Ciemny motyw: karty bez twardej bieli, więc wystarcza głębszy cień i obrys */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pt-dymek { background: var(--alu-1); box-shadow: inset 0 0 0 1px var(--line-2); }
  :root:not([data-theme="light"]) .ig-google, :root:not([data-theme="light"]) #integracje .ig-schemat .integ-api .integ-p { background: var(--alu-1); }
  :root:not([data-theme="light"]) .pn-tel { box-shadow: inset 0 0 0 1.5px #44474c, 0 0 0 1px rgba(255, 255, 255, 0.04), 0 34px 60px -34px rgba(0, 0, 0, 0.9); }
}
:root[data-theme="dark"] .pt-dymek { background: var(--alu-1); box-shadow: inset 0 0 0 1px var(--line-2); }
:root[data-theme="dark"] .ig-google, :root[data-theme="dark"] #integracje .ig-schemat .integ-api .integ-p { background: var(--alu-1); }
:root[data-theme="dark"] .pn-tel { box-shadow: inset 0 0 0 1.5px #44474c, 0 0 0 1px rgba(255, 255, 255, 0.04), 0 34px 60px -34px rgba(0, 0, 0, 0.9); }
.zf-dol .lacze, .cz-lacze { gap: 6px; }
