:root {
  --bg: #0b0b14;
  --bg-2: #14141f;
  --bg-3: #1c1c2b;
  --border: #2a2a3d;
  --text: #ececf2;
  --muted: #9d9db1;
  --accent: #7c5cff;
  --accent-2: #5d8bff;
  --accent-soft: rgba(124, 92, 255, 0.18);
  --accent-glow: rgba(124, 92, 255, 0.35);
  --success: #4ade80;
  --danger: #f87171;
  --radius: 14px;
  --maxw: 1100px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  /* Theme rotator - smooth color transitions */
  transition: --accent 1.5s ease, --accent-2 1.5s ease, --accent-soft 1.5s ease, --accent-glow 1.5s ease;
}

/* Smooth transitions for theme-aware properties */
a, button, .btn, .badge, .chip, .card, [class*="accent"], [style*="--accent"] {
  transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease;
}

/* Theme toggle widget */
#theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: all 0.25s ease, background-color 1.5s ease, border-color 1.5s ease;
}
#theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}
#theme-toggle .swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
  transition: background 1.5s ease, box-shadow 1.5s ease;
}
#theme-toggle.paused .swatch::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  position: relative;
}
#theme-toggle.paused .swatch {
  position: relative;
}
#theme-toggle .label {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  #theme-toggle {
    bottom: 12px;
    left: 12px;
    padding: 6px 10px 6px 8px;
    font-size: 11px;
  }
  #theme-toggle .swatch { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :root, a, button, .btn, #theme-toggle, #theme-toggle .swatch { transition: none !important; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  /* Anti-horizontal-overflow: nigdy nie pozwól żeby content wystawał */
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile-friendly defaults: word-wrap + max-width na obrazach + table responsive */
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; white-space: pre-wrap; }

/* Heading & long-words break safely on mobile */
h1, h2, h3, h4, .hero h1 { overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; }

/* Container adapts at small viewports */
@media (max-width: 700px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Mobile: wymuś single-column dla wszystkich gridów inline 3-5 col (nawet z inline style) */
@media (max-width: 720px) {
  .grid[style*="grid-template-columns:repeat(3"],
  .grid[style*="grid-template-columns: repeat(3"],
  .grid[style*="grid-template-columns:repeat(4"],
  .grid[style*="grid-template-columns: repeat(4"],
  .grid[style*="grid-template-columns:repeat(5"],
  .grid[style*="grid-template-columns: repeat(5"],
  .grid[style*="grid-template-columns:repeat(6"],
  .grid[style*="grid-template-columns: repeat(6"],
  .changes-grid,
  .tier-grid,
  .examples-grid,
  .off-ladder-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  /* Process 5-step → horizontal scroll snap zamiast 1-col stack (lepiej wygląda) */
  .process-steps, .process-grid, .grid[style*="repeat(5"] {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    grid-template-columns: none !important;
  }
  .process-steps > *, .grid[style*="repeat(5"] > * {
    flex: 0 0 75%;
    scroll-snap-align: start;
  }
  /* Hero: na mobile h1 mniejszy */
  .hero h1 { font-size: clamp(28px, 7vw, 40px) !important; }
  .hero { padding: 32px 0 !important; }
  /* Promo bar: zmniejsz padding na mobile */
  .promo-bar { padding: 8px 12px !important; font-size: 12px !important; }
  /* Hero CTAs stack on mobile */
  .hero-ctas { flex-direction: column !important; align-items: stretch !important; }
  .hero-ctas .btn { width: 100% !important; justify-content: center !important; }
  /* Logos bar grid → 1 column on small */
  .cl-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 540px) {
  /* Section padding squash */
  .section { padding: 40px 0 !important; }
  /* Cards smaller padding */
  .card { padding: 18px !important; }
  /* Comparison table → scrollable horizontally */
  .comparison-table-wrap, .comp-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .comparison-table-wrap table, .comp-table-wrap table { min-width: 540px; }
}

body {
  background:
    radial-gradient(ellipse at top left, rgba(124, 92, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at top right, rgba(93, 139, 255, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-link { display: inline-flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;  /* nie łam wieloliniowo */
}
.nav-links a:hover { color: var(--accent-2); text-decoration: none; }

.nav a.cta, .nav-links a.cta {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.nav a.cta:hover, .nav-links a.cta:hover { color: white; }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 6px;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
}
.lang-toggle button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* MOBILE NAVIGATION — hamburger menu */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  font-family: inherit;
  align-items: center;
  justify-content: center;
}

/* Hamburger pojawia się wcześniej (1080px) bo z dodatkowymi linkami za ciasno */
@media (max-width: 1080px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    background: var(--bg-2);
    padding: 70px 20px 100px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 200;
    overflow-y: auto;
    box-shadow: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--bg-3);
    text-align: left;
    font-size: 15px;
  }
  .nav-links a.cta {
    text-align: center;
    margin-top: 8px;
  }
  .nav-links .phone-link { display: flex !important; align-items: center; }
  .lang-toggle {
    align-self: stretch;
    margin: 14px 0 0 0;
    justify-content: center;
  }
  .lang-toggle button { flex: 1; padding: 10px; font-size: 14px; }
  .nav-burger.is-open { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
  .body-no-scroll { overflow: hidden; }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 150;
  }
  .nav-backdrop.open { display: block; animation: fade-in 0.2s ease; }
}
@media (min-width: 1081px) {
  .nav-backdrop { display: none !important; }
}

/* TRUST BAR */
.trust-bar {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(93, 139, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 28px auto;
}
.trust-stat { text-align: center; min-width: 120px; }
.trust-stat .num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.trust-stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ENTERPRISE BAND */
.enterprise-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(93, 139, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.enterprise-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.enterprise-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.enterprise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.enterprise-list span {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}

/* ADDON CATEGORIES GRID */
.addon-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.addon-cat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.addon-cat h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.addon-cat div {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* WHATSAPP FLOATING BUTTON */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 100;
  transition: transform 0.15s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  text-decoration: none;
}
@media (max-width: 768px) {
  .wa-float { display: none; }
}

/* PHONE LINK W NAGŁÓWKU */
.phone-link {
  background: rgba(37, 211, 102, 0.12);
  color: #4ade80 !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}
.phone-link:hover { background: rgba(37, 211, 102, 0.2); text-decoration: none !important; }
/* Telefon ukryty wcześnie — zwalnia miejsce na links */
@media (max-width: 1280px) {
  .phone-link { display: none; }
}
/* Free Audit kompaktowy na średnich ekranach */
@media (max-width: 1180px) {
  .nav-links a[href="/audit.html"] { font-size: 13px; }
}

/* FOOTER ROZBUDOWANY */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: 32px;
  padding: 50px 0 30px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-2); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-form input {
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.newsletter-form button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.nl-msg { font-size: 12px; min-height: 16px; }

/* COOKIES BANNER (Lexora-style, 3 layers) */
.cookies-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(20, 20, 31, 0.98), rgba(11, 11, 20, 0.98));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  max-height: 40vh;
  overflow-y: auto;
}
.cookies-banner.open { display: block; animation: slide-up 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cookies-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
@media (max-width: 880px) {
  .cookies-inner { grid-template-columns: 1fr; }
}
.cookies-content { min-width: 0; }
.cookies-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cookies-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}
.cookies-body a { color: var(--accent-2); }
.cookies-body strong { color: var(--text); }

.cookies-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 880px) {
  .cookies-side { align-items: stretch; }
}

.cookies-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 880px) {
  .cookies-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookies-actions .btn-cookie:last-child { grid-column: span 2; }
}

.btn-cookie {
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-cookie:hover { background: var(--bg-2); border-color: var(--muted); }
.btn-cookie.ghost {
  background: transparent;
}
.btn-cookie.accept {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}
.btn-cookie.accept:hover { transform: translateY(-1px); }

/* POWERED BY LEXORA badge */
.powered-by-lexora {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1a1a2e, #0f0f1f);
  border: 1px solid #2a2a3d;
  color: #e2e8f0 !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.powered-by-lexora:hover {
  border-color: #C6A648;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 166, 72, 0.2);
}
.powered-by-lexora strong { color: #C6A648; font-weight: 800; }
.pbl-divider { width: 1px; height: 12px; background: #475569; }

/* COOKIES MODAL */
.cookies-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 20, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 1100;
  padding: 20px;
}
.cookies-modal-overlay.open { display: flex; align-items: center; justify-content: center; animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.cookies-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.cookies-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.cookies-modal-title { font-size: 20px; font-weight: 700; }
.cookies-modal-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cookies-modal-actions-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.cookies-modal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cookies-cat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.cookies-cat.selectable {
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.cookies-cat.selectable:hover { border-color: var(--accent); }
.cookies-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cookies-cat p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.cookies-toggle {
  width: 38px;
  height: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}
.cookies-toggle .dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--muted);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.cookies-toggle.on {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.cookies-toggle.on .dot {
  left: 18px;
  background: white;
}
.cookies-toggle.disabled {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  cursor: not-allowed;
}
.cookies-toggle.disabled .dot {
  left: 18px;
  background: #4ade80;
}

.cookies-modal-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookies-modal-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 380px;
}
.cookies-modal-note a { color: #C6A648; font-weight: 600; }
.cookies-modal-buttons { display: flex; gap: 8px; }

/* STICKY MOBILE CTA */
.mobile-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: none;
  gap: 8px;
  z-index: 99;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .mobile-sticky { display: flex; }
  body { padding-bottom: 70px; }
}
.ms-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.ms-call { background: rgba(37, 211, 102, 0.18); color: #4ade80; }
.ms-wa { background: rgba(37, 211, 102, 0.18); color: #4ade80; }
.ms-quote {
  flex: 1 1 auto;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  width: auto;
  min-width: 0;
}
/* AI chat FAB offset wyżej żeby nie kolidował z mobile-sticky */
@media (max-width: 768px) {
  #ai-chat-fab { bottom: 78px !important; }
}

/* SUBPAGE LAYOUT */
.subpage {
  padding: 40px 0 60px;
  max-width: 800px;
  margin: 0 auto;
}
.subpage h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.subpage .lead { color: var(--muted); margin: 0 0 32px; font-size: 17px; }
.subpage h2 { margin: 32px 0 12px; font-size: 22px; }
.subpage p { color: var(--text); line-height: 1.7; }
.subpage ul { color: var(--text); line-height: 1.7; padding-left: 22px; }

/* FAQ */
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 22px; transition: transform 0.2s; }
.faq-item[open] .faq-q::after,
.faq-item.open .faq-q::after { transform: rotate(45deg); }
/* Hide native details disclosure triangle (using ::after + instead) */
.faq-q { list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item[open] .faq-a,
.faq-item.open .faq-a {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 28px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info .info-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info .info-item:last-child { border-bottom: none; }
.contact-info .info-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-info .info-val { font-size: 15px; font-weight: 600; }
.contact-info .info-val a { color: var(--accent-2); }

/* COMPARISON TABLE */
.compare-wrap {
  overflow-x: auto;
  margin: 0 -8px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
  min-width: 720px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 700;
}
.compare-table th.us, .compare-table td.us {
  background: rgba(124, 92, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}
.compare-table th.us { color: var(--accent); }
.compare-table tr:last-child td { border-bottom: none; }

/* HONEYPOT — anti-bot field, hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tabindex: -1;
}

/* CLIENT LOGOS BAR — social proof */
.client-logos-section {
  margin: 32px auto 24px;
  text-align: center;
}
.cl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 22px;
}
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
.cl-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cl-logo:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cl-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cl-tag {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.cl-coming {
  background: transparent;
  border-style: dashed;
  opacity: 0.55;
  cursor: default;
}
.cl-coming:hover {
  transform: none;
  border-color: var(--border);
  background: transparent;
}
.cl-coming .cl-name { color: var(--muted); font-weight: 600; font-size: 14px; }
.cl-cta {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.cl-cta a {
  color: var(--accent-2);
  font-weight: 600;
}

/* ZERO UPFRONT BAND — KILLER USP */
.zero-upfront-band {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(16, 185, 129, 0.06));
  border: 2px solid rgba(34, 197, 94, 0.35);
  border-radius: 22px;
  padding: 44px 40px;
  margin: 48px auto;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.10);
}
.zero-upfront-band::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 50%; height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 60%);
  pointer-events: none;
}
.zu-shield {
  font-size: 80px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(34, 197, 94, 0.35));
}
.zu-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.zu-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 16px;
}
.zu-title {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.zu-big {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, #22c55e, #10b981);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}
.zu-text { color: var(--text); }
.zu-text strong { color: #4ade80; }
.zu-points {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.zu-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.zu-point strong { color: var(--text); }
.zu-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}
.zu-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .zero-upfront-band {
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }
  .zu-shield { font-size: 56px; align-self: center; }
  .zu-title { justify-content: center; gap: 8px; }
  .zu-big { font-size: clamp(48px, 14vw, 80px); }
  .zu-points { text-align: left; }
  .zu-actions { justify-content: center; }
  .zu-actions .btn { flex: 1; min-width: 0; text-align: center; }
}

/* GUARANTEE BAND */
.guarantee-band {
  display: flex;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
  padding: 36px 32px;
}

/* Compliance partner band — Lexora cross-promo */
.partner-band {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid #4ade80;
  border-radius: var(--radius);
  padding: 32px 36px;
}
.partner-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.partner-text h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text, #fff);
}
.partner-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
}
.partner-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #4ade80;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #4ade80;
  transition: opacity 0.15s;
}
.partner-cta:hover { opacity: 0.7; }
.partner-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 22px 26px;
  min-width: 220px;
  transition: border-color 0.15s, background 0.15s;
}
.partner-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.05);
}
.partner-card-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner-card-name {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #fff);
}
.partner-card-tag {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.partner-card-meta {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .partner-grid { grid-template-columns: 1fr; gap: 24px; }
  .partner-card { min-width: 0; }
}
.guarantee-icon {
  font-size: 56px;
  flex-shrink: 0;
}
.guarantee-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  color: #4ade80;
}
.guarantee-band p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 600px) {
  .guarantee-band { flex-direction: column; text-align: center; }
}

/* PRICE MATCH BAND */
.pricematch-band {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(217, 119, 6, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.pm-icon { font-size: 48px; flex-shrink: 0; line-height: 1; }
.pm-content { flex: 1; min-width: 0; }
.pm-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd47b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pricematch-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
}
.pm-highlight {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pm-lead { color: var(--muted); margin: 0 0 20px; font-size: 15px; line-height: 1.55; }
.pm-lead strong { color: var(--text); }

.pm-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0;
}
.pm-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.pm-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.pm-step strong { font-size: 14px; }
.pm-step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.pm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.pm-fineprint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 600px) {
  .pricematch-band { flex-direction: column; gap: 14px; padding: 24px 20px; }
  .pm-icon { font-size: 38px; }
}

/* TRIPLE GUARANTEE GRID */
.triple-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.triple-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
}
.triple-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.triple-item strong { font-size: 14px; color: var(--text); }
.triple-item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* CUSTOM CTA BAND (na /szablony) */
.custom-cta-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.10), rgba(93, 139, 255, 0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0 30px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.custom-cta-band > div { flex: 1; min-width: 280px; }
.custom-cta-band strong { color: var(--text); }
.custom-cta-band .btn { flex-shrink: 0; }

/* PROMO BAR (top) */
.promo-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  text-align: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.promo-bar a { color: white; text-decoration: underline; }

.hero {
  padding: 80px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}

.section {
  padding: 60px 0;
}
.section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section .lead {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  min-height: 2.4em;
  display: flex;
  align-items: flex-start;
}
.card .price { color: var(--accent-2); font-weight: 600; font-size: 14px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; flex: 1; }

.steps { counter-reset: step; }
.step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 64px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.why-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 10px;
}

.cta-band {
  text-align: center;
  padding: 70px 24px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(93, 139, 255, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 60px 0;
}
.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

.footer {
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* questionnaire */
.q-shell {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.q-progress {
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.q-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 0.3s ease;
}
.q-step-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.q-step h2 { margin: 0 0 6px; font-size: 24px; }
.q-step .help { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.opts {
  display: grid;
  gap: 10px;
}
.opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.opt:hover { border-color: var(--accent); }
.opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt .opt-title { font-weight: 600; }
.opt .opt-price { color: var(--muted); font-size: 13px; margin-left: 12px; }
.opt .opt-meta { color: var(--muted); font-size: 13px; margin-left: 12px; font-style: italic; }
.opt input { display: none; }

.field {
  display: block;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .req { color: var(--danger); }

.q-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}
.q-actions .btn { flex: 0 0 auto; }
.q-actions .spacer { flex: 1; }

.error-banner {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.error-banner.visible { display: block; }

.tpl-mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tpl-mini-card {
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tpl-mini-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tpl-mini-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.tpl-mini-thumb {
  height: 130px;
  position: relative;
  overflow: hidden;
  background: white;
}
.tpl-mini-thumb iframe {
  width: 1200px;
  height: 800px;
  border: 0;
  transform: scale(0.18);
  transform-origin: top left;
  pointer-events: none;
}
.tpl-mini-name {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.addon-h {
  margin: 18px 0 8px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.addon-counter {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  padding: 10px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: none;
}
.addon-counter.visible { display: block; }

/* quote page */
.quote-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote-total {
  text-align: center;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(93, 139, 255, 0.12));
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.quote-total .label { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.quote-total .amount {
  font-size: 44px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
}
.breakdown-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.breakdown-table th.num, .breakdown-table td.num { text-align: right; white-space: nowrap; }
.breakdown-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.breakdown-table tr.total-row td {
  border-top: 2px solid var(--accent);
  border-bottom: none;
  background: var(--accent-soft);
  font-size: 16px;
}
.row-meta { color: var(--muted); font-size: 13px; }

.rate-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}
.rate-info strong { color: var(--text); }

.disclaimer {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.disclaimer strong { color: var(--text); }

.thanks {
  max-width: 560px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.thanks .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 32px;
  font-weight: 700;
}
.thanks h1 { margin: 0 0 12px; font-size: 28px; }
.thanks p { color: var(--muted); margin: 0 0 22px; }

/* === AI Chatbot Widget (lewy dolny) === */
#ai-chat-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  font: 600 14px/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#ai-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6); }
#ai-chat-fab .ai-fab-icon { font-size: 18px; }
@media (max-width: 600px) {
  #ai-chat-fab .ai-fab-label { display: none; }
  #ai-chat-fab { padding: 14px; }
}

#ai-chat-panel {
  position: fixed;
  left: 20px;
  bottom: 78px;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 120px));
  z-index: 9999;
  background: var(--bg-2, #1a1a24);
  border: 1px solid var(--border, #2a2a35);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font: 14px/1.5 system-ui, -apple-system, sans-serif;
}
#ai-chat-panel.open { display: flex; animation: aiPanelIn 0.22s ease; }
@keyframes aiPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.ai-chat-title { display: flex; align-items: center; gap: 10px; }
.ai-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center; font-size: 18px;
}
.ai-chat-title strong { display: block; font-size: 14px; }
.ai-chat-title small { font-size: 11px; opacity: 0.85; }
.ai-chat-close {
  background: transparent; color: #fff; border: none;
  font-size: 24px; cursor: pointer; width: 32px; height: 32px;
  border-radius: 8px; line-height: 1;
}
.ai-chat-close:hover { background: rgba(255,255,255,0.15); }

.ai-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg, #0f0f17);
}
.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ai-msg-assistant {
  align-self: flex-start;
  background: var(--bg-2, #1a1a24);
  border: 1px solid var(--border, #2a2a35);
  color: var(--text, #e7e7ee);
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-typing { opacity: 0.6; font-style: italic; }

.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--bg-2, #1a1a24);
  border-top: 1px solid var(--border, #2a2a35);
}
.ai-chat-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #2a2a35);
  background: var(--bg, #0f0f17);
  color: var(--text, #e7e7ee);
  font-size: 14px;
}
.ai-chat-form input:focus { outline: 2px solid #6366f1; outline-offset: 0; }
.ai-chat-form button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.ai-chat-form button:disabled { opacity: 0.5; cursor: not-allowed; }
