/* Żywa strona REDMANN.PL — warstwa agenta. Wszystko pod prefiksem .ra- / --ra-, żeby nie mieszać się ze stylami strony. */
:root {
  --ra-dock: 0px;
  --ra-panel-w: 410px;
  --ra-bg: rgba(9, 13, 23, 0.94);
  --ra-bg-solid: #0b1120;
  --ra-line: rgba(255, 255, 255, 0.09);
  --ra-text: #e8edf6;
  --ra-muted: #93a0b8;
  --ra-red: #e11d2e;
  --ra-red-2: #ff4d5e;
  --ra-glow: rgba(239, 35, 60, 0.55);
  --ra-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ra-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Stara chmurka czatu jest zastąpiona przez agenta. */
html.ra-active .contact-chat-launcher, html.ra-active #contact-chat-dialog { display: none !important; }

/* ---------- Start strony (zanim skrypt Reda się wczyta) ----------
   Ten plik ładuje się w <head> przed pierwszym malowaniem, więc gotowy HTML strony od razu wygląda jak z Redem:
   bez starych przycisków i chmurki, z miejscem na rozmowę pod nagłówkiem (ta sama wysokość — strona nie skacze).
   agent.js dodaje „ra-ready”, gdy wstawi prawdziwą rozmowę albo zrezygnuje (wtedy wraca stary wygląd).
   Awaryjnie, gdyby skrypt w ogóle nie ruszył, po 8 s wszystko wraca do wersji bez agenta. */
html:not(.ra-ready) .contact-chat-launcher { visibility: hidden !important; animation: ra-boot-show 0s 8s forwards; }
html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero div:has(> a[aria-controls="contact-chat-dialog"]) { max-height: 0; margin: 0 !important; overflow: hidden; visibility: hidden; animation: ra-boot-show 0s 8s forwards; }
html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero h1::after {
  content: var(--ra-boot-text, "Zadaj pytanie"); display: block; box-sizing: border-box; width: max-content; max-width: 100%;
  height: 58px; margin: 26px auto 116.5px; padding: 0 30px 0 60px; border-radius: 999px; background: var(--ra-red);
  box-shadow: 0 18px 44px -14px rgba(225, 29, 46, 0.75); color: #fff; font: 800 18px/58px var(--ra-font); letter-spacing: 0; text-transform: none;
  white-space: nowrap; animation: ra-boot-gone 0s 8s forwards;
}
html[lang="en"] { --ra-boot-text: "Ask a question"; }
html[lang="de"] { --ra-boot-text: "Frage stellen"; }
html[lang="da"] { --ra-boot-text: "Stil et spørgsmål"; }
/* Odstępy = wysokość prawdziwej rozmowy (przycisk i przyciski z przykładami pod nim), mierzone na danej szerokości. */
@media (max-width: 760px) { html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero h1::after { margin: 18px auto 62.25px; } }
@media (max-width: 640px) { html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero h1::after { margin-bottom: 108.5px; } }
@media (max-width: 400px) { html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero h1::after { margin-bottom: 154.75px; } }
@keyframes ra-boot-show { to { visibility: visible; max-height: 400px; } }
@keyframes ra-boot-gone { to { height: 0; margin: 0; border-width: 0; opacity: 0; } }

/* Dokowanie: strona robi miejsce na panel na szerokich ekranach. */
html.ra-docked #root { margin-right: var(--ra-dock); transition: margin-right 0.5s var(--ra-ease); }
html.ra-docked header.fixed { right: var(--ra-dock); transition: right 0.5s var(--ra-ease); }
html.ra-docked div.fixed:has(> [aria-modal="true"]) { right: var(--ra-dock); }
#root, header.fixed { transition: margin-right 0.5s var(--ra-ease), right 0.5s var(--ra-ease); }

.ra-root, .ra-root * { box-sizing: border-box; }
.ra-root [hidden] { display: none !important; }
.ra-root { font-family: var(--ra-font); color: var(--ra-text); -webkit-font-smoothing: antialiased; }
.ra-root button { font: inherit; color: inherit; cursor: pointer; }
.ra-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kulka-agent ---------- */
.ra-orb {
  position: relative; width: 58px; height: 58px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 32% 28%, #ff8a95 0%, #ff3346 30%, #c1121f 62%, #5c0710 100%);
  box-shadow: 0 10px 30px -6px var(--ra-glow), inset 0 -6px 14px rgba(0, 0, 0, 0.35), inset 0 4px 10px rgba(255, 255, 255, 0.25);
}
.ra-orb::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 90, 110, 0.9) 70%, transparent 85%);
  filter: blur(3px); animation: ra-spin 3.2s linear infinite; z-index: -1; opacity: 0.85;
}
.ra-orb::after {
  content: ""; position: absolute; inset: 7px 12px auto auto; width: 14px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); filter: blur(1.5px); transform: rotate(-25deg);
}
.ra-eyes { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; transition: transform 0.45s var(--ra-ease); }
.ra-eye { width: 7px; height: 11px; border-radius: 4px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); animation: ra-blink 5.5s infinite; transform-origin: center; }
.ra-orb.ra-speaking { animation: ra-talk 0.9s ease-in-out infinite; }
.ra-orb.ra-thinking .ra-eye { animation: ra-think 1.1s ease-in-out infinite; }
.ra-orb.ra-happy .ra-eye { height: 6px; border-radius: 6px 6px 2px 2px; }
.ra-orb-sm { width: 26px; height: 26px; }
.ra-orb-sm::before { inset: -4px; }
.ra-orb-sm::after { width: 7px; height: 4px; inset: 4px 6px auto auto; }
.ra-orb-sm .ra-eyes { gap: 4px; }
.ra-orb-sm .ra-eye { width: 3px; height: 5px; }

@keyframes ra-spin { to { transform: rotate(360deg); } }
@keyframes ra-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }
@keyframes ra-think { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ra-talk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- Przycisk startowy + powitanie ---------- */
.ra-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 2147483000; display: flex; align-items: flex-end; gap: 14px;
  pointer-events: none;
}
.ra-launcher > * { pointer-events: auto; }
.ra-launcher-orb { border: 0; padding: 0; background: none; border-radius: 50%; transform: scale(0); }
.ra-launcher.ra-in .ra-launcher-orb { animation: ra-pop 0.9s var(--ra-ease) forwards; }
.ra-launcher-orb:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.ra-launcher-orb .ra-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ra-red-2); opacity: 0; }
.ra-launcher.ra-in .ra-ring { animation: ra-ring 2.4s 0.6s var(--ra-ease) 2; }
.ra-launcher.ra-hidden { display: none; }
@keyframes ra-pop { 0% { transform: scale(0) translateY(40px); } 60% { transform: scale(1.15) translateY(-4px); } 100% { transform: scale(1) translateY(0); } }
@keyframes ra-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.3); opacity: 0; } }

.ra-greet {
  width: min(360px, calc(100vw - 110px)); padding: 16px 16px 14px; border-radius: 20px 20px 6px 20px;
  background: var(--ra-bg); border: 1px solid var(--ra-line); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75); opacity: 0; transform: translateY(12px) scale(0.96); transform-origin: bottom right;
  transition: opacity 0.45s var(--ra-ease), transform 0.45s var(--ra-ease); position: relative;
}
.ra-greet.ra-show { opacity: 1; transform: none; }
.ra-greet-title { margin: 0 26px 4px 0; font-size: 16px; font-weight: 700; line-height: 1.35; min-height: 1.35em; }
.ra-greet-text { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--ra-muted); }
.ra-greet-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--ra-muted); }
.ra-greet-close:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ra-tour-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; margin-bottom: 8px; border-radius: 14px; border: 0;
  background: linear-gradient(135deg, #e11d2e, #b3121f); color: #fff; font-weight: 700; font-size: 14px; text-align: left;
  box-shadow: 0 10px 24px -10px var(--ra-glow); transition: transform 0.2s var(--ra-ease), box-shadow 0.2s;
}
.ra-tour-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px var(--ra-glow); }
.ra-tour-btn small { display: block; font-weight: 500; opacity: 0.8; font-size: 12px; }
.ra-tour-btn .ra-play { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; flex: none; }

/* ---------- Chipsy ---------- */
.ra-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ra-chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03);
  font-size: 13px; line-height: 1.2; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ra-ease);
  opacity: 0; transform: translateY(6px); animation: ra-chip-in 0.4s var(--ra-ease) forwards;
}
.ra-chip:hover { border-color: var(--ra-red-2); background: rgba(225, 29, 46, 0.12); }
.ra-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes ra-chip-in { to { opacity: 1; transform: none; } }

/* ---------- Panel ---------- */
.ra-panel {
  position: fixed; z-index: 2147483001; top: 76px; right: 16px; bottom: 16px; width: var(--ra-panel-w);
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--ra-bg); border: 1px solid var(--ra-line); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(225, 29, 46, 0.06);
  transform: translateX(calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform 0.55s var(--ra-ease), opacity 0.4s var(--ra-ease), visibility 0s 0.55s;
}
.ra-panel.ra-open { transform: none; opacity: 1; visibility: visible; transition: transform 0.55s var(--ra-ease), opacity 0.4s var(--ra-ease); }
.ra-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--ra-line); }
.ra-head .ra-orb { width: 40px; height: 40px; }
.ra-head .ra-orb .ra-eyes { gap: 6px; }
.ra-head .ra-orb .ra-eye { width: 5px; height: 8px; }
.ra-head-title { flex: 1; min-width: 0; }
.ra-head-title strong { display: block; font-size: 15px; letter-spacing: 0.01em; }
.ra-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ra-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; flex: none; }
.ra-status.ra-offline i { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.ra-icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--ra-muted); display: grid; place-items: center; flex: none; }
.ra-icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ra-icon-btn[aria-pressed="true"] { color: var(--ra-red-2); }
.ra-icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.ra-log { flex: 1; overflow-y: auto; padding: 16px 16px 8px; scroll-behavior: smooth; overscroll-behavior: contain; }
.ra-log::-webkit-scrollbar { width: 6px; }
.ra-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 6px; }
.ra-msg { display: flex; gap: 10px; margin-bottom: 14px; animation: ra-msg-in 0.45s var(--ra-ease); }
.ra-msg-agent .ra-orb { margin-top: 1px; }
.ra-msg-body { min-width: 0; flex: 1; }
.ra-msg-text { font-size: 14.5px; line-height: 1.6; color: var(--ra-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ra-msg-text strong { color: #fff; font-weight: 700; }
.ra-msg-user { justify-content: flex-end; }
.ra-msg-user .ra-msg-text { max-width: 82%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; background: #263042; }
.ra-caret::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--ra-red-2); border-radius: 2px; animation: ra-caret 0.8s steps(2) infinite; }
@keyframes ra-caret { 50% { opacity: 0; } }
@keyframes ra-msg-in { from { opacity: 0; transform: translateY(8px); } }
.ra-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.ra-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ra-muted); animation: ra-dot 1.2s infinite; }
.ra-typing span:nth-child(2) { animation-delay: 0.15s; }
.ra-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ra-dot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ra-msg-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ra-action-tag { font-size: 11.5px; color: var(--ra-muted); border: 1px dashed rgba(255, 255, 255, 0.14); padding: 3px 8px; border-radius: 999px; }
.ra-suggest { padding: 2px 16px 10px; }

/* Karty realizacji w czacie */
.ra-cards { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 10px; scroll-snap-type: x mandatory; }
.ra-card {
  flex: 0 0 200px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: #121a2b; border: 1px solid var(--ra-line);
  animation: ra-msg-in 0.5s var(--ra-ease) backwards; text-align: left;
}
.ra-card:nth-child(2) { animation-delay: 0.08s; }
.ra-card:nth-child(3) { animation-delay: 0.16s; }
.ra-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #1e293b; }
.ra-card-body { padding: 9px 11px 11px; }
.ra-card-body b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.ra-card-body span { display: block; font-size: 12px; line-height: 1.4; color: var(--ra-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ra-card-links { display: flex; gap: 6px; margin-top: 8px; }
.ra-card-links button, .ra-card-links a {
  flex: 1; text-align: center; font-size: 12px; padding: 6px 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent; color: var(--ra-text); text-decoration: none;
}
.ra-card-links button:hover, .ra-card-links a:hover { border-color: var(--ra-red-2); }

/* Brief projektu */
.ra-brief { margin: 10px 14px 0; border-radius: 16px; border: 1px solid rgba(225, 29, 46, 0.35); background: linear-gradient(180deg, rgba(225, 29, 46, 0.1), rgba(225, 29, 46, 0.03)); overflow: hidden; }
.ra-brief[hidden] { display: none; }
.ra-brief-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; text-align: left; }
.ra-brief-head b { flex: 1; font-size: 13px; letter-spacing: 0.02em; }
.ra-brief-head small { font-weight: 500; color: var(--ra-muted); }
.ra-brief.ra-pulse { animation: ra-brief-pulse 1.4s var(--ra-ease); }
@keyframes ra-brief-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(255, 77, 94, 0); } }
.ra-brief-meter { width: 74px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ra-brief-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4d5e, #e11d2e); transition: width 0.6s var(--ra-ease); }
.ra-brief-body { padding: 0 12px 12px; display: grid; gap: 5px; }
.ra-brief.ra-collapsed .ra-brief-body { display: none; }
.ra-brief-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.ra-brief-row span { color: var(--ra-muted); }
.ra-brief-row.ra-new b { animation: ra-flash 1.4s var(--ra-ease); }
@keyframes ra-flash { 0% { color: #fff; text-shadow: 0 0 12px var(--ra-red-2); } 100% { text-shadow: none; } }
.ra-brief-send { margin-top: 6px; padding: 7px 10px; border-radius: 10px; border: 0; background: var(--ra-red); color: #fff; font-weight: 700; font-size: 13px; }

/* Formularz kontaktu w czacie */
.ra-form { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: #121a2b; border: 1px solid var(--ra-line); }
.ra-form label { display: grid; gap: 4px; font-size: 12px; color: var(--ra-muted); }
.ra-form input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: #0b1120; color: #fff; font: inherit; font-size: 14px; }
.ra-form input:focus { outline: none; border-color: var(--ra-red-2); }
.ra-form button { padding: 10px; border-radius: 10px; border: 0; background: var(--ra-red); color: #fff; font-weight: 700; }
.ra-form small { font-size: 11.5px; color: var(--ra-muted); line-height: 1.4; }
.ra-form .ra-err { color: #fca5a5; }

/* Pasek prezentacji */
.ra-tourbar { display: none; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--ra-line); background: rgba(225, 29, 46, 0.08); }
.ra-tourbar.ra-on { display: flex; }
.ra-tour-steps { flex: 1; display: flex; gap: 4px; }
.ra-tour-steps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; position: relative; }
.ra-tour-steps i.ra-done { background: var(--ra-red-2); }
.ra-tour-steps i.ra-now::after { content: ""; position: absolute; inset: 0; background: var(--ra-red-2); transform-origin: left; animation: ra-progress var(--ra-step, 6s) linear forwards; }
.ra-tour-steps.ra-paused i.ra-now::after { animation-play-state: paused; }
@keyframes ra-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Pole wpisywania */
.ra-compose { padding: 8px 12px 12px; }
.ra-compose-box { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 22px; background: #1a2233; border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color 0.2s, box-shadow 0.2s; }
.ra-compose-box:focus-within { border-color: rgba(255, 77, 94, 0.6); box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.12); }
.ra-compose textarea { flex: 1; min-height: 24px; max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14.5px; line-height: 1.5; padding: 6px 0; }
.ra-compose textarea::placeholder { color: #7d8aa3; }
.ra-send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ra-red); color: #fff; display: grid; place-items: center; flex: none; transition: transform 0.2s var(--ra-ease), opacity 0.2s; }
.ra-send:disabled { opacity: 0.35; cursor: default; }
.ra-mic { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ra-muted); display: grid; place-items: center; flex: none; }
.ra-mic[hidden] { display: none; }
.ra-mic.ra-listening { color: #fff; background: rgba(225, 29, 46, 0.3); animation: ra-talk 1s infinite; }
.ra-foot { margin-top: 7px; text-align: center; font-size: 11px; color: #67738b; }
.ra-foot a { color: inherit; }

/* ---------- Efekty na stronie ---------- */
.ra-spot {
  position: fixed; z-index: 2147482990; pointer-events: none; border-radius: 18px; opacity: 0;
  box-shadow: 0 0 0 200vmax rgba(3, 6, 14, 0.62), 0 0 0 2px rgba(255, 77, 94, 0.95), 0 0 40px 6px rgba(225, 29, 46, 0.45);
  transition: opacity 0.4s var(--ra-ease), top 0.5s var(--ra-ease), left 0.5s var(--ra-ease), width 0.5s var(--ra-ease), height 0.5s var(--ra-ease);
}
.ra-spot.ra-on { opacity: 1; }
.ra-spot.ra-soft { box-shadow: 0 0 0 200vmax rgba(3, 6, 14, 0.38), 0 0 0 2px rgba(255, 77, 94, 0.95), 0 0 40px 6px rgba(225, 29, 46, 0.45); }
.ra-caption {
  position: fixed; z-index: 2147482995; pointer-events: none; max-width: 300px; padding: 9px 14px; border-radius: 14px;
  background: #fff; color: #0b1120; font: 700 14px/1.35 var(--ra-font); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ra-ease), transform 0.35s var(--ra-ease);
}
.ra-caption::before { content: ""; position: absolute; left: 18px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.ra-caption.ra-below::before { bottom: auto; top: -6px; }
.ra-caption.ra-on { opacity: 1; transform: none; }
.ra-caption .ra-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ra-red); margin-right: 7px; vertical-align: 1px; }

.ra-cursor {
  position: fixed; z-index: 2147483005; left: 0; top: 0; width: 30px; height: 30px; pointer-events: none; opacity: 0;
  transition: transform 0.9s var(--ra-ease), opacity 0.3s; filter: drop-shadow(0 4px 10px rgba(225, 29, 46, 0.7));
}
.ra-cursor.ra-on { opacity: 1; }
.ra-cursor svg { width: 30px; height: 30px; }
.ra-ripple { position: fixed; z-index: 2147483004; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--ra-red-2); pointer-events: none; animation: ra-ripple 0.7s var(--ra-ease) forwards; }
@keyframes ra-ripple { to { transform: scale(4); opacity: 0; } }

.ra-dim { opacity: 0.28 !important; filter: grayscale(0.9) !important; transition: opacity 0.5s, filter 0.5s !important; }
.ra-focus { position: relative; outline: 3px solid var(--ra-red-2) !important; outline-offset: 4px; box-shadow: 0 20px 50px -12px rgba(225, 29, 46, 0.55) !important; transition: outline-color 0.4s, box-shadow 0.4s; z-index: 2; }
.ra-badge {
  position: absolute; z-index: 30; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: var(--ra-red); color: #fff;
  font: 700 12px/1 var(--ra-font); box-shadow: 0 8px 18px -6px var(--ra-glow); animation: ra-pop 0.6s var(--ra-ease) both; pointer-events: none;
}
.ra-focus-bar {
  position: fixed; z-index: 2147482998; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ra-bg-solid); border: 1px solid var(--ra-line); color: #fff;
  font: 600 13px/1 var(--ra-font); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.8);
}
html.ra-docked .ra-focus-bar { left: calc(50% - var(--ra-dock) / 2); }
.ra-focus-bar button { border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(255, 255, 255, 0.1); color: #fff; font: inherit; cursor: pointer; }

/* Nagłówek dopasowany do odwiedzającego */
.ra-hero-swap { transition: opacity 0.45s var(--ra-ease), filter 0.45s var(--ra-ease), transform 0.45s var(--ra-ease); }
.ra-hero-swap.ra-out { opacity: 0; filter: blur(8px); transform: translateY(-6px); }
.ra-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: rgba(225, 29, 46, 0.14); border: 1px solid rgba(255, 77, 94, 0.45); color: #ffd7db; font: 600 12.5px/1 var(--ra-font);
}
.ra-hero-badge button { border: 0; border-radius: 999px; padding: 5px 9px; background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; cursor: pointer; }

/* Pasek „Zapytaj stronę” w hero */
.ra-ask {
  position: relative; width: min(640px, 100%); margin: 26px auto 0; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 10px;
  border-radius: 999px; background: rgba(9, 13, 23, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(225, 29, 46, 0.6); text-align: left; font-family: var(--ra-font);
}
.ra-ask::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(90deg, rgba(255, 77, 94, 0.9), rgba(255, 255, 255, 0.1), rgba(255, 77, 94, 0.9)); background-size: 200% 100%; animation: ra-sheen 4s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes ra-sheen { to { background-position: -200% 0; } }
.ra-ask .ra-orb { width: 34px; height: 34px; }
.ra-ask .ra-orb .ra-eyes { gap: 5px; }
.ra-ask .ra-orb .ra-eye { width: 4px; height: 7px; }
.ra-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 500 15.5px/1.4 var(--ra-font); padding: 8px 4px; }
.ra-ask input::placeholder { color: #9aa6bd; }
.ra-ask-send { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--ra-red); color: #fff; font: 700 14px/1 var(--ra-font); cursor: pointer; white-space: nowrap; }
.ra-ask-send:hover { background: #c81424; }

/* ---------- Telefon: panel jako arkusz od dołu ---------- */
@media (max-width: 760px) {
  .ra-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(54vh, 520px); border-radius: 22px; transform: translateY(calc(100% + 30px)); transition: transform 0.55s var(--ra-ease), opacity 0.4s var(--ra-ease), height 0.45s var(--ra-ease), visibility 0s 0.55s; }
  .ra-panel.ra-touring { height: min(40vh, 360px); }
  .ra-panel .ra-foot { display: none; }
  .ra-greet .ra-chips .ra-chip:nth-child(n+3) { display: none; }
  .ra-panel.ra-open { transform: none; }
  .ra-launcher { right: 14px; bottom: 14px; }
  .ra-greet { width: calc(100vw - 100px); }
  .ra-caption { max-width: 240px; font-size: 13px; }
  .ra-focus-bar { top: 74px; bottom: auto; padding: 6px 6px 6px 12px; font-size: 12px; }
  .ra-ask { margin-top: 18px; }
  .ra-ask-send span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ra-root *, .ra-spot, .ra-caption, .ra-cursor, .ra-orb::before { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.ra-focus-bar { white-space: nowrap; }
body:has([aria-modal="true"]) .ra-focus-bar { display: none; }
@media (max-width: 760px) { .ra-focus-bar { left: auto; right: 10px; transform: none; } }

/* ---------- Mini-chmurka (panel schowany podczas prezentacji) ---------- */
.ra-mini {
  width: min(360px, calc(100vw - 100px)); padding: 10px 12px 12px; border-radius: 18px 18px 6px 18px;
  background: var(--ra-bg); border: 1px solid rgba(255, 77, 94, 0.28); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(10px) scale(0.97); transform-origin: bottom right;
  transition: opacity 0.35s var(--ra-ease), transform 0.35s var(--ra-ease);
}
.ra-mini.ra-show { opacity: 1; transform: none; }
.ra-mini-head { display: flex; align-items: center; gap: 4px; margin: -2px -4px 4px 0; font: 700 11px/1 var(--ra-font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ra-red-2); }
.ra-mini-head i { flex: 1; }
.ra-mini-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.07); color: var(--ra-text); font: 600 12px/1 var(--ra-font); letter-spacing: 0; text-transform: none; }
.ra-mini-btn:hover { background: rgba(255, 255, 255, 0.14); }
.ra-mini-x { width: 30px; padding: 0; justify-content: center; background: transparent; color: var(--ra-muted); }
.ra-mini-text { font-size: 14px; line-height: 1.5; max-height: 7.6em; overflow-y: auto; overscroll-behavior: contain; color: var(--ra-text); }
.ra-mini-text:empty { display: none; }
.ra-mini-text strong { color: #fff; }
.ra-mini .ra-suggest { padding: 8px 0 0; }
.ra-mini .ra-suggest:empty { display: none; }
.ra-mini .ra-chips { gap: 6px; }
.ra-mini .ra-chip { font-size: 12.5px; padding: 6px 10px; }
/* W chmurce mieszczą się 3 propozycje; „własna kwota” i „wróć do prezentacji” są zawsze widoczne. */
.ra-mini .ra-chip:nth-child(n+4):not([data-intent="tour_resume"], [data-intent="budget_custom"]) { display: none; }
.ra-mini-reply { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--ra-muted); font: 500 13px/1.2 var(--ra-font); text-align: left; cursor: pointer; }
.ra-mini-reply span { display: inline-grid; order: 2; margin-left: auto; color: var(--ra-red-2); }
.ra-mini-reply span svg { width: 15px; height: 15px; }
.ra-mini:has(.ra-tourbar.ra-on) .ra-mini-reply { display: none; }
.ra-mini .ra-tourbar { padding: 8px 0 0; margin-top: 6px; gap: 4px; border-top: 1px solid var(--ra-line); background: none; }
.ra-mini .ra-tourbar > b { display: none; }
.ra-mini .ra-tourbar .ra-icon-btn { width: 30px; height: 30px; }
@media (max-width: 760px) { .ra-mini { width: calc(100vw - 96px); } }

/* ---------- Konsola rozmowy w hero (zamiast przycisków CTA) ---------- */
.ra-hidden-cta { display: none !important; }
.ra-console { width: min(720px, 100%); margin: 28px auto 4px; text-align: center; }
.ra-console-hello { min-height: 1.5em; margin: 0 0 12px; font: 600 16px/1.5 var(--ra-font); color: #dbe3f0; }
.ra-console .ra-ask { width: 100%; margin: 0; padding: 8px 8px 8px 10px; }
.ra-console .ra-ask input { font-size: 16.5px; }
.ra-console .ra-ask .ra-orb { width: 40px; height: 40px; }
.ra-console .ra-ask .ra-orb .ra-eyes { gap: 6px; }
.ra-console .ra-ask .ra-orb .ra-eye { width: 5px; height: 8px; }
.ra-console .ra-mic { color: #b8c2d6; }
.ra-ask-send { display: inline-flex; align-items: center; gap: 6px; }
.ra-ask-send i { display: inline-grid; }
.ra-console-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ra-console-chips .ra-chip { background: rgba(9, 13, 23, 0.55); backdrop-filter: blur(6px); font-size: 13.5px; padding: 8px 14px; color: #e8edf6; }
.ra-chip-hot { border-color: rgba(255, 77, 94, 0.7) !important; background: rgba(225, 29, 46, 0.18) !important; font-weight: 700; }

/* ---------- Szkic strony / panelu ---------- */
.ra-mock {
  position: fixed; z-index: 2147483003; inset: 70px 24px 20px 24px; display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 22px; background: rgba(5, 8, 15, 0.86); backdrop-filter: blur(14px); border: 1px solid var(--ra-line);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); opacity: 0; transform: scale(0.96) translateY(14px); transition: opacity 0.4s var(--ra-ease), transform 0.5s var(--ra-ease);
}
html.ra-docked .ra-mock { right: calc(var(--ra-dock) + 8px); }
.ra-mock.ra-on { opacity: 1; transform: none; }
.ra-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ra-mock-status { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #cbd5e1; }
.ra-mock-status b { color: #fff; }
.ra-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--ra-red-2); animation: ra-spin 0.8s linear infinite; }
.ra-mock-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px -20px rgba(225, 29, 46, 0.45); }
.ra-mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9edf3; color: #334155; font-size: 12.5px; }
.ra-mock-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.ra-mock-bar > i:nth-child(2) { background: #fbbf24; }
.ra-mock-bar > i:nth-child(3) { background: #34d399; }
.ra-mock-url { flex: 1; margin: 0 8px; padding: 5px 12px; border-radius: 999px; background: #fff; color: #475569; font-family: ui-monospace, monospace; font-size: 12px; min-height: 26px; white-space: nowrap; overflow: hidden; }
.ra-mock-bar b { font-size: 11px; padding: 4px 8px; border-radius: 999px; background: var(--mk); color: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
.ra-mock-page { flex: 1; overflow-y: auto; color: #0f172a; font-family: var(--ra-font); }
.ra-mock-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ra-mock-actions p { flex: 1; min-width: 220px; margin: 0; font-size: 13px; color: var(--ra-muted); }
.ra-mock-cta { border: 0; border-radius: 12px; padding: 11px 18px; background: var(--ra-red); color: #fff; font: 700 14px var(--ra-font); cursor: pointer; }
.ra-mock-ghost { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 10px 16px; background: transparent; color: #fff; font: 600 14px var(--ra-font); cursor: pointer; }
[data-b] { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ra-ease), transform 0.45s var(--ra-ease); }
[data-b].ra-in { opacity: 1; transform: none; }

.ra-mk-site { min-height: 100%; background: linear-gradient(180deg, #fff, #f6f7fb); }
.ra-mk-nav { display: flex; align-items: center; gap: 16px; padding: 14px 26px; border-bottom: 1px solid #eef0f4; }
.ra-mk-nav > b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ra-mk-nav > b i { width: 18px; height: 18px; border-radius: 5px; background: var(--mk); }
.ra-mk-nav > span { flex: 1; display: flex; gap: 18px; justify-content: center; font-size: 13px; color: #475569; }
.ra-mk-nav em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 8px 12px; border-radius: 9px; background: var(--mk); color: #fff; }
.ra-mk-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; padding: 38px 26px 30px; }
.ra-mk-hero h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.02em; color: #0b1120; }
.ra-mk-hero p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #475569; }
.ra-mk-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ra-mk-btn { padding: 11px 18px; border-radius: 10px; background: var(--mk); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 12px 24px -12px var(--mk); }
.ra-mk-btn2 { padding: 10px 16px; border-radius: 10px; border: 1px solid #d5dae3; color: #0f172a; font-weight: 600; font-size: 14px; }
.ra-mk-art { position: relative; height: 200px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--mk), #0b1120); }
.ra-mk-art i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.ra-mk-art i:nth-child(1) { width: 160px; height: 160px; right: -30px; top: -40px; }
.ra-mk-art i:nth-child(2) { width: 90px; height: 90px; left: 30px; bottom: 24px; background: rgba(255, 255, 255, 0.28); }
.ra-mk-art i:nth-child(3) { width: 46%; height: 12px; border-radius: 6px; left: 30px; top: 40px; background: rgba(255, 255, 255, 0.55); }
.ra-mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 26px 26px; }
.ra-mk-card { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e8ebf1; box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.4); }
.ra-mk-card span { display: inline-block; font-size: 11px; font-weight: 800; color: var(--mk); margin-bottom: 6px; }
.ra-mk-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.ra-mk-card p { margin: 0; font-size: 13px; line-height: 1.45; color: #64748b; }
.ra-mk-foot { display: flex; justify-content: space-between; padding: 16px 26px; background: #0b1120; color: #cbd5e1; font-size: 13px; }

.ra-mk-app { display: grid; grid-template-columns: 190px 1fr; min-height: 100%; background: #f4f6fa; }
.ra-mk-app aside { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: #0b1120; color: #cbd5e1; font-size: 13.5px; }
.ra-mk-app aside b { display: flex; align-items: center; gap: 8px; margin: 0 0 14px 6px; color: #fff; font-size: 14px; }
.ra-mk-app aside b i { width: 16px; height: 16px; border-radius: 5px; background: var(--mk); }
.ra-mk-app aside a { padding: 8px 10px; border-radius: 8px; }
.ra-mk-app aside a.ra-act { background: color-mix(in srgb, var(--mk) 30%, transparent); color: #fff; }
.ra-mk-main { padding: 16px 20px; display: grid; gap: 14px; align-content: start; }
.ra-mk-top { display: flex; align-items: center; gap: 12px; }
.ra-mk-top span { font-weight: 800; font-size: 18px; flex: 1; }
.ra-mk-top em { font-style: normal; font-size: 12.5px; color: #94a3b8; padding: 7px 14px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; min-width: 160px; }
.ra-mk-top i { width: 30px; height: 30px; border-radius: 50%; background: var(--mk); }
.ra-mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ra-mk-kpis > div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e8ebf1; }
.ra-mk-kpis span { display: block; font-size: 12px; color: #64748b; }
.ra-mk-kpis b { font-size: 22px; letter-spacing: -0.01em; }
.ra-mk-chart { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e8ebf1; }
.ra-mk-chart span { font-size: 12.5px; color: #64748b; font-weight: 600; }
.ra-mk-chart div { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 10px; }
.ra-mk-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--mk), color-mix(in srgb, var(--mk) 40%, #fff)); transform-origin: bottom; animation: ra-grow 0.9s var(--ra-ease) both; }
.ra-mk-chart i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1s); }
@keyframes ra-grow { from { transform: scaleY(0); } }
.ra-mk-table { display: grid; gap: 6px; }
.ra-mk-table > div { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #e8ebf1; font-size: 13.5px; }
.ra-mk-table em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e0f2fe; color: #0369a1; }
.ra-mk-table em.ra-st-gotowe { background: #dcfce7; color: #15803d; }
.ra-mk-table em.ra-st-oczekuje { background: #fef3c7; color: #b45309; }

/* ---------- Wiadomość głosowa ---------- */
.ra-vn-toggle { border: 1px dashed rgba(255, 255, 255, 0.22); background: transparent; border-radius: 10px; padding: 8px 10px; color: var(--ra-text); font-size: 12.5px; text-align: left; width: 100%; }
.ra-vn { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #0b1120; }
.ra-vn-consent { display: flex !important; grid-template-columns: none !important; gap: 8px !important; align-items: flex-start; font-size: 11.5px !important; line-height: 1.4; }
.ra-vn-consent input { width: auto; margin-top: 2px; }
.ra-vn-row { display: flex; align-items: center; gap: 10px; }
.ra-vn-rec { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px !important; border-radius: 999px !important; background: #1f2937 !important; font-size: 13px; }
.ra-vn-rec:disabled { opacity: 0.4; cursor: not-allowed; }
.ra-vn-rec.ra-on { background: var(--ra-red) !important; animation: ra-talk 1s infinite; }
.ra-vn-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ra-muted); }
.ra-vn audio { width: 100%; height: 36px; }

@media (max-width: 760px) {
  .ra-mock { inset: 8px; padding: 10px; }
  .ra-mk-hero { grid-template-columns: 1fr; padding: 24px 16px; }
  .ra-mk-art { height: 110px; }
  .ra-mk-cards { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .ra-mk-nav > span { display: none; }
  .ra-mk-nav { justify-content: space-between; padding: 12px 16px; }
  .ra-mk-app { grid-template-columns: 1fr; }
  .ra-mk-app aside { flex-direction: row; overflow-x: auto; padding: 10px; }
  .ra-mk-app aside b { margin: 0 8px 0 0; white-space: nowrap; }
  .ra-mk-app aside a { white-space: nowrap; }
  .ra-mk-kpis { grid-template-columns: repeat(2, 1fr); }
  .ra-mk-top em { display: none; }
  .ra-console-chips .ra-chip:nth-child(n+4) { display: none; }
  .ra-console-hello { font-size: 14.5px; }
  .ra-ask-send span { display: none; }
}
.ra-src { margin-top: 6px; font-size: 11px; color: #67738b; letter-spacing: 0.02em; }
.ra-mini-text { cursor: pointer; }
/* Gdy strona pokazuje okno wdrożenia, chmurka robi się niższa. */
body:has([aria-modal="true"]) .ra-mini-text { max-height: 4.5em; }

/* Sekcja „Ile to kosztuje” (demo) */
.ra-pricing { background: #0b1120; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 80px 16px; }
.ra-pricing-in { width: min(1120px, 100%); margin: 0 auto; text-align: center; }
.ra-pricing-kicker { margin: 0 0 10px; font: 800 12px/1 var(--ra-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ra-red-2); }
.ra-pricing h2 { margin: 0 0 14px; font: 900 clamp(30px, 4vw, 44px)/1.1 var(--ra-font); color: #fff; }
.ra-pricing-lead { margin: 0 auto 32px; max-width: 720px; font-size: 17px; line-height: 1.65; color: #b8c2d6; }
.ra-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.ra-price-card { padding: 22px; border-radius: 16px; background: #111a2c; border: 1px solid rgba(255, 255, 255, 0.09); }
.ra-price-card span { display: block; font-size: 14px; color: #b8c2d6; font-weight: 600; }
.ra-price-card b { display: block; margin: 8px 0 10px; font-size: 26px; color: #fff; letter-spacing: -0.01em; }
.ra-price-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #93a0b8; }
.ra-pricing-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
@media (max-width: 760px) { .ra-price-grid { grid-template-columns: 1fr; } .ra-pricing { padding: 56px 16px; } }

/* Konsola pod nagłówkiem hero */
.ra-console { margin: 26px auto 18px; }
.ra-console-hello { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #fff; }
.ra-console-more { min-height: 3em; margin: 0 auto 14px; max-width: 600px; font: 400 15px/1.5 var(--ra-font); color: #b8c2d6; }
@media (max-width: 760px) { .ra-console { margin: 18px auto 10px; } .ra-console-hello { font-size: 16px; } .ra-console-more { font-size: 13.5px; min-height: 4.5em; } }

/* Prezentacja: bieżący krok */
.ra-tour-steps i.ra-cur { background: rgba(255, 77, 94, 0.55); }

/* Wyróżnienia: nawigacja między przykładami */
.ra-focus-bar { gap: 6px; }
.ra-focus-nav { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 !important; }
.ra-focus-count { padding: 0 4px; font-variant-numeric: tabular-nums; }

/* Pełny ekran rozmowy */
.ra-panel.ra-full { top: 12px; bottom: 12px; left: max(12px, calc(50% - 440px)); right: max(12px, calc(50% - 440px)); width: auto; height: auto; box-shadow: 0 0 0 100vmax rgba(3, 6, 14, 0.65), 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.ra-panel.ra-full .ra-msg-text { font-size: 15.5px; }
html.ra-lock, html.ra-lock body { overflow: hidden !important; overscroll-behavior: none; }
.ra-panel { overscroll-behavior: contain; }
.ra-head, .ra-tourbar, .ra-brief-head { touch-action: none; }

/* Ocena odpowiedzi (tryb zespołu) */
.ra-rate { margin-left: 4px; padding: 2px 7px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); background: transparent; color: inherit; font-size: 12px; cursor: pointer; }
.ra-rate:disabled { opacity: 0.5; }
.ra-rate-select { display: block; margin: 6px 0 2px; max-width: 100%; padding: 6px; border-radius: 8px; background: #0b1120; color: #e8edf6; border: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px; }

@media (max-width: 760px) {
  .ra-panel { height: min(80vh, 700px); height: min(80dvh, 700px); }
  .ra-panel.ra-full { inset: 0; height: auto; border-radius: 0; box-shadow: none; }
}

/* Telefon: mniejsze logo w hero, żeby nagłówek i Red mieściły się na pierwszym ekranie */
@media (max-width: 760px) { html.ra-home.ra-active #hero .hero-brand-shell, html:not(.ra-ready):has([data-prerender-path="/"], [data-prerender-path="/en"], [data-prerender-path="/de"], [data-prerender-path="/da"]) #hero .hero-brand-shell { width: min(46vw, 190px) !important; } }

html.ra-offpage .ra-launcher, html.ra-offpage .ra-panel, html.ra-offpage .ra-focus-bar, html.ra-offpage .ra-spot, html.ra-offpage .ra-caption, html.ra-offpage .ra-cursor, html.ra-offpage .ra-mock, html.ra-offpage .ra-mini, html.ra-offpage .ra-greet { display: none !important; }

.ra-cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ra-cap-card i { display: block; font-style: normal; font-size: 26px; margin-bottom: 8px; }
.ra-cap-card .ra-cap-title { font-size: 18px; margin: 0 0 6px; }
@media (max-width: 1100px) { .ra-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ra-cap-grid { grid-template-columns: 1fr; } }

/* Pasek „A to nie wszystko” pod kartami usług */
.ra-more { margin: 28px auto 0; max-width: 1180px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 77, 94, 0.3); background: rgba(225, 29, 46, 0.06); display: grid; gap: 12px; text-align: left; }
.ra-more-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: #e8edf6; }
.ra-more-head b { font: 800 18px/1.2 var(--ra-font); color: #fff; }
.ra-more-head span { font-size: 14.5px; color: #b8c2d6; }
.ra-more-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-more-chip { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: #e8edf6; border-radius: 999px; padding: 8px 13px; font: 600 13.5px/1 var(--ra-font); cursor: pointer; }
.ra-more-chip:hover { border-color: var(--ra-red-2); background: rgba(225, 29, 46, 0.14); }
.ra-more-cta { justify-self: start; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--ra-red); color: #fff; font: 700 14px var(--ra-font); cursor: pointer; }

/* Rozmowa zakończona przez serwer: bez wpisywania i bez zachęt w hero. */
html.ra-ended .ra-console .ra-ask, html.ra-ended .ra-console-chips, html.ra-ended .ra-mini-reply { display: none !important; }
.ra-compose textarea:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Artykuł (np. „Jak wyceniamy projekty”) ---------- */
.ra-article { position: fixed; inset: 0; z-index: 2147482996; display: grid; place-items: start center; overflow-y: auto; overscroll-behavior: contain; padding: 84px 16px 40px; background: rgba(3, 6, 14, 0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s var(--ra-ease); }
html.ra-docked .ra-article { right: calc(var(--ra-dock) + 8px); }
.ra-article.ra-on { opacity: 1; }
.ra-article-card { position: relative; width: min(760px, 100%); padding: 34px 36px 30px; border-radius: 22px; background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); color: #cbd5e1; font: 400 16px/1.65 var(--ra-font); transform: translateY(12px); transition: transform 0.4s var(--ra-ease); }
.ra-article.ra-on .ra-article-card { transform: none; }
.ra-article-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #e8edf6; cursor: pointer; }
.ra-article-kicker { margin: 0 0 8px; font: 800 12px/1 var(--ra-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ra-red-2); }
.ra-article h2 { margin: 0 0 14px; font: 900 clamp(26px, 4vw, 36px)/1.1 var(--ra-font); color: #fff; text-wrap: balance; }
.ra-article-lead { margin: 0 0 8px; font-size: 18px; color: #e8edf6; }
.ra-article h3 { margin: 26px 0 6px; font: 800 18px/1.3 var(--ra-font); color: #fff; }
.ra-article p { margin: 0; }
.ra-article ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; list-style: disc; }
.ra-article li::marker { color: var(--ra-red-2); }
.ra-article-kicker, .ra-article h2 { padding-right: 46px; }
.ra-article strong { color: #fff; }
.ra-article-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ra-pricing-note { margin: 18px auto 0; max-width: 640px; text-align: center; color: #b8c2d6; font: 400 15px/1.5 var(--ra-font); }
.ra-link { border: 0; padding: 0; background: none; color: var(--ra-red-2); font: 700 15px/1.5 var(--ra-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .ra-article { padding: 70px 10px 120px; } .ra-article-card { padding: 26px 20px 24px; font-size: 15px; } .ra-article-lead { font-size: 16px; } }

/* Hero: duży przycisk „Zadaj pytanie” zamiast pola do pisania */
.ra-ask-row { display: flex; justify-content: center; }
.ra-ask-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--ra-red); color: #fff; font: 800 18px/1 var(--ra-font); cursor: pointer; box-shadow: 0 18px 44px -14px rgba(225, 29, 46, 0.75); transition: transform 0.2s var(--ra-ease), background 0.2s; }
.ra-ask-btn:hover { background: #c81424; transform: translateY(-1px); }
.ra-ask-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ra-ask-btn i { display: inline-grid; }
.ra-ask-btn i svg { width: 20px; height: 20px; }

/* Na telefonie tekst artykułu API ma własny obszar przewijania bez chmurki nad treścią. */
@media (max-width: 760px) { html:has(.ra-article[data-article="api"]) .ra-mini { display: none; } }

/* Telefon z wysuniętą klawiaturą: panel nad klawiaturą, dopasowany do widocznej części ekranu (agent.js: --ra-kb, --ra-vvh). */
@media (max-width: 760px) {
  html.ra-kb-open .ra-panel { top: auto; bottom: calc(var(--ra-kb) + 6px); height: min(calc(var(--ra-vvh) - 12px), 520px); transition: transform 0.55s var(--ra-ease), opacity 0.4s var(--ra-ease), visibility 0s 0.55s; }
  html.ra-kb-open .ra-panel.ra-full { inset: auto 0 var(--ra-kb) 0; height: var(--ra-vvh); }
  html.ra-kb-open .ra-panel .ra-brief { display: none; }
  html.ra-kb-open .ra-launcher { visibility: hidden; }
}
