:root {
  --foreground: var(--text, #0f172a);
  --text-soft: #334155;
  --text-muted: #475569;
  --primary: #173db8;
  --primary-soft: #dfe8ff;
  --border-strong: #aebddd;
  --focus-ring: #0b65f0;
  color-scheme: light;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, input, select, textarea, button { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }

/* Fix the exported Tailwind dark-variant rules that were emitted without a .dark parent. */
.bg-black.dark\:bg-white { background-color: #000 !important; }
.text-white.dark\:text-black { color: #fff !important; }
.bg-white.dark\:bg-white\/5 { background-color: #fff !important; }
.border-black\/10.dark\:border-white\/10 { border-color: rgba(15, 23, 42, .12) !important; }

.mygpt-skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  padding: .75rem 1rem; border-radius: .75rem; background: #fff; color: #0f172a;
  box-shadow: 0 8px 30px rgba(15, 23, 42, .25);
}
.mygpt-skip-link:focus { top: 1rem; }

.mygpt-site-header {
  position: sticky; top: 0; z-index: 1000;
  padding: .8rem 1.25rem;
  background: rgba(245, 248, 255, .9);
  border-bottom: 1px solid rgba(36, 88, 255, .12);
  backdrop-filter: blur(18px);
}
.mygpt-header-inner {
  width: min(1280px, 100%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mygpt-brand, .mygpt-footer-brand {
  display: inline-flex; align-items: center; gap: .75rem; color: #0f172a; text-decoration: none;
}
.mygpt-brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
.mygpt-brand-text { display: grid; line-height: 1.15; }
.mygpt-brand-text strong { font-size: 1.05rem; letter-spacing: -.02em; }
.mygpt-brand-text small { margin-top: .25rem; color: #5f6f89; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.mygpt-navigation { display: flex; align-items: center; gap: .25rem; }
.mygpt-navigation > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .9rem;
  border-radius: 999px; color: #40506c; font-size: .9rem; font-weight: 650; text-decoration: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.mygpt-navigation > a:hover { color: #0f172a; background: #e8efff; }
.mygpt-navigation > a[aria-current="page"] { color: #173db8; background: #fff; box-shadow: 0 8px 24px rgba(24, 48, 112, .10); }
.mygpt-navigation .mygpt-header-cta { margin-left: .35rem; background: #0f172a; color: #fff; }
.mygpt-navigation .mygpt-header-cta:hover { background: #1e293b; color: #fff; transform: translateY(-1px); }
.mygpt-menu-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid #d8e2f2; border-radius: 14px;
  background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer;
}
.mygpt-menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: #0f172a; }

.mygpt-site-footer { margin-top: 4rem; padding: 3rem 1.25rem 1.5rem; border-top: 1px solid #d8e2f2; background: #eef4ff; }
.mygpt-footer-inner { width: min(1280px,100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; }
.mygpt-footer-brand img { width: 40px; height: 40px; }
.mygpt-footer-brand span { font-size: 1.1rem; font-weight: 750; }
.mygpt-footer-inner p { max-width: 560px; margin: .85rem 0 .5rem; color: #40506c; line-height: 1.7; }
.mygpt-footer-mail { color: #173db8; font-weight: 700; }
.mygpt-footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: .7rem 1rem; }
.mygpt-footer-nav a { color: #40506c; font-weight: 600; }
.mygpt-footer-nav a:hover { color: #173db8; }
.mygpt-footer-bottom { width: min(1280px,100%); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid #d8e2f2; color: #64748b; font-size: .82rem; }

.mygpt-page-visual, .mygpt-article-visual {
  overflow: hidden; position: relative; width: 100%; margin-top: 2rem;
  border: 1px solid rgba(36, 88, 255, .18); border-radius: 28px;
  background: #0f1b3d; box-shadow: 0 28px 70px rgba(24, 48, 112, .20);
}
.mygpt-page-visual { aspect-ratio: 16/7; max-height: 560px; }
.mygpt-article-visual { aspect-ratio: 16/9; }
.mygpt-page-visual img, .mygpt-article-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mygpt-breadcrumbs { width: min(1280px, calc(100% - 3rem)); margin: 1.2rem auto 0; color: #5f6f89; font-size: .84rem; }
.mygpt-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; }
.mygpt-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: #93a4bd; }
.mygpt-breadcrumbs a:hover { color: #173db8; text-decoration: underline; }
.mygpt-breadcrumbs [aria-current="page"] { color: #0f172a; font-weight: 600; }

.mygpt-author-box {
  margin: 2rem 0; padding: 1rem 1.2rem; border: 1px solid #d8e2f2; border-radius: 18px;
  background: #edf3ff; color: #40506c; line-height: 1.6; font-size: .92rem;
}
.mygpt-author-box strong { color: #0f172a; }

/* One button system used across the site. */
.mygpt-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .78rem 1.2rem !important; border: 1px solid transparent !important;
  border-radius: 999px !important; font-size: .92rem !important; font-weight: 720 !important;
  line-height: 1.2 !important; text-decoration: none !important; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.mygpt-btn-primary { color: #fff !important; background: linear-gradient(135deg,#2458ff,#173db8) !important; box-shadow: 0 12px 25px rgba(36,88,255,.25); }
.mygpt-btn-primary:hover { color: #fff !important; background: linear-gradient(135deg,#173db8,#102e91) !important; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(36,88,255,.32); }
.mygpt-btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(36,88,255,.24); }
.mygpt-btn-secondary { color: #0f172a !important; background: rgba(255,255,255,.96) !important; border-color: #aebddd !important; }
.mygpt-btn-secondary:hover { color: #0f172a !important; background: #edf3ff !important; border-color: #7e94bc !important; transform: translateY(-1px); }
.mygpt-btn-light { color: #0f172a !important; background: #fff !important; border-color: rgba(255,255,255,.82) !important; }
.mygpt-btn-light:hover { color: #0f172a !important; background: #eaf0fb !important; }
.mygpt-btn:focus-visible, .mygpt-navigation a:focus-visible, .mygpt-menu-toggle:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus-ring) !important; outline-offset: 3px !important;
}
.mygpt-btn:disabled, .mygpt-btn[aria-disabled="true"] { color: #475569 !important; background: #e2e8f0 !important; border-color: #c8d2e2 !important; box-shadow: none !important; cursor: not-allowed; opacity: .82; transform: none; }

.mygpt-contact-section { padding-top: 3rem; padding-bottom: 4rem; }
.mygpt-contact-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); gap: 2rem; align-items: start; }
.mygpt-contact-copy { padding: 1rem 0; }
.mygpt-contact-points { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.mygpt-contact-points li { position: relative; padding-left: 1.8rem; color: #40506c; line-height: 1.6; }
.mygpt-contact-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #128a78; font-weight: 800; }
.mygpt-contact-form {
  display: grid; gap: 1rem; padding: clamp(1.25rem,3vw,2rem); border: 1px solid #d8e2f2; border-radius: 28px;
  background: rgba(255,255,255,.94); box-shadow: 0 24px 60px rgba(15,23,42,.12);
}
.mygpt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mygpt-contact-form label:not(.mygpt-consent):not(.mygpt-honeypot) { display: grid; gap: .45rem; }
.mygpt-contact-form label > span:first-child { color: #0f172a; font-size: .88rem; font-weight: 700; }
.mygpt-contact-form input:not([type="checkbox"]), .mygpt-contact-form select, .mygpt-contact-form textarea {
  width: 100%; min-height: 48px; padding: .8rem .9rem; border: 1px solid #b8c8e6; border-radius: 14px;
  background: #fff; color: #0f172a; font-size: 1rem; line-height: 1.45;
}
.mygpt-contact-form textarea { min-height: 160px; resize: vertical; }
.mygpt-contact-form input::placeholder, .mygpt-contact-form textarea::placeholder { color: #7b8ca5; opacity: 1; }
.mygpt-contact-form input:invalid:not(:placeholder-shown), .mygpt-contact-form textarea:invalid:not(:placeholder-shown) { border-color: #b42318; }
.mygpt-consent { display: flex; align-items: flex-start; gap: .7rem; color: #40506c; font-size: .86rem; line-height: 1.55; }
.mygpt-consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: #2458ff; flex: 0 0 18px; }
.mygpt-consent a, .mygpt-form-fallback a { color: #173db8; font-weight: 700; text-decoration: underline; }
.mygpt-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mygpt-form-status { display: none; padding: .85rem 1rem; border-radius: 14px; line-height: 1.5; }
.mygpt-form-status.is-visible { display: block; }
.mygpt-form-status.is-success { color: #14532d; background: #dcfce7; border: 1px solid #86efac; }
.mygpt-form-status.is-error { color: #7f1d1d; background: #fee2e2; border: 1px solid #fca5a5; }
.mygpt-form-fallback { color: #64748b; font-size: .82rem; }

/* Article/listing image consistency. */
article img { background: #e9effa; }
.baza-wiedzy article img, article > a > img { aspect-ratio: 16/9; object-fit: cover; }

@media (max-width: 860px) {
  .mygpt-site-header { padding: .65rem .9rem; }
  .mygpt-menu-toggle { display: inline-flex; }
  .mygpt-brand-text small { display: none; }
  .mygpt-navigation {
    display: none; position: absolute; left: .9rem; right: .9rem; top: calc(100% + .3rem);
    padding: .75rem; border: 1px solid #d8e2f2; border-radius: 18px; background: #fff;
    box-shadow: 0 24px 60px rgba(15,23,42,.18); flex-direction: column; align-items: stretch;
  }
  .mygpt-navigation.is-open { display: flex; }
  .mygpt-navigation > a { justify-content: center; }
  .mygpt-navigation .mygpt-header-cta { margin-left: 0; margin-top: .25rem; }
  .mygpt-page-visual { aspect-ratio: 16/9; border-radius: 22px; }
  .mygpt-contact-grid { grid-template-columns: 1fr; }
  .mygpt-footer-inner { flex-direction: column; }
  .mygpt-footer-nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .mygpt-brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .mygpt-brand-text strong { font-size: .98rem; }
  .mygpt-form-row { grid-template-columns: 1fr; }
  .mygpt-contact-form { border-radius: 20px; }
  .mygpt-btn { width: 100%; }
  .mygpt-breadcrumbs { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Knowledge base: use the same visual system as the rest of the site. */
.baza-wiedzy .mygpt-knowledge-main {
  background:
    radial-gradient(circle at 8% 8%, rgba(36, 88, 255, .10), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(18, 181, 208, .08), transparent 28rem),
    var(--background, #f5f8ff);
}
.baza-wiedzy .mygpt-knowledge-hero {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0 2.25rem;
}
.baza-wiedzy .mygpt-knowledge-hero > div:first-child {
  max-width: 820px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid rgba(36, 88, 255, .14);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-card, 0 24px 60px rgba(15, 23, 42, .10));
  backdrop-filter: blur(12px);
}
.baza-wiedzy .mygpt-knowledge-hero h1 {
  color: var(--text, #0f172a);
  text-wrap: balance;
}
.baza-wiedzy .mygpt-knowledge-hero p { color: var(--text-soft, #40506c); }
.baza-wiedzy .mygpt-knowledge-hero .mygpt-page-visual { margin-top: 2.25rem; }
.baza-wiedzy .mygpt-knowledge-list {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}
.baza-wiedzy .mygpt-knowledge-grid { gap: 1.5rem; }
.baza-wiedzy .mygpt-knowledge-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(36, 88, 255, .13) !important;
  border-radius: 1.6rem !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 16px 45px rgba(24, 48, 112, .08) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.baza-wiedzy .mygpt-knowledge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 88, 255, .30) !important;
  box-shadow: 0 24px 60px rgba(24, 48, 112, .15) !important;
}
.baza-wiedzy .mygpt-knowledge-card > a:first-child {
  display: block;
  overflow: hidden;
  background: #e9effa;
}
.baza-wiedzy .mygpt-knowledge-card > a:first-child img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .3s ease;
}
.baza-wiedzy .mygpt-knowledge-card:hover > a:first-child img { transform: scale(1.025); }
.baza-wiedzy .mygpt-knowledge-card > div { display: flex; flex: 1; flex-direction: column; }
.baza-wiedzy .mygpt-knowledge-card h2 { color: var(--text, #0f172a); text-wrap: balance; }
.baza-wiedzy .mygpt-knowledge-card h2 a { text-decoration: none; }
.baza-wiedzy .mygpt-knowledge-card h2 a:hover { color: #173db8; text-decoration: none; }
.baza-wiedzy .mygpt-knowledge-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--text-soft, #40506c) !important;
}
.baza-wiedzy .mygpt-knowledge-card div > a:last-child {
  margin-top: auto;
  padding-top: 1rem;
  color: #173db8;
}
.baza-wiedzy .mygpt-pagination {
  border-color: rgba(36, 88, 255, .16) !important;
  border-radius: 1.25rem !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 12px 35px rgba(24, 48, 112, .08);
}
.baza-wiedzy .mygpt-pagination a { color: #173db8; }

/* Article pages: one local hero image and a stable reading layout. */
.baza-wiedzy .mygpt-article-shell {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.baza-wiedzy .mygpt-article-shell > header {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(36, 88, 255, .14);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 55px rgba(24, 48, 112, .10);
}
.baza-wiedzy .mygpt-article-shell h1 { color: var(--text, #0f172a); text-wrap: balance; }
.baza-wiedzy .mygpt-article-content {
  color: var(--text-soft, #334155) !important;
  font-size: 1.06rem !important;
  line-height: 1.85 !important;
}
.baza-wiedzy .mygpt-article-content h2,
.baza-wiedzy .mygpt-article-content h3,
.baza-wiedzy .mygpt-article-content h4 { color: var(--text, #0f172a); line-height: 1.25; text-wrap: balance; }
.baza-wiedzy .mygpt-article-content img { max-height: 640px; object-fit: cover; }
.baza-wiedzy .mygpt-article-content table { display: block; overflow-x: auto; white-space: nowrap; }
.baza-wiedzy .mygpt-article-content a { color: #173db8 !important; text-underline-offset: .18em; }

/* Working "Opisz proces" contact card. */
.mygpt-process-widget {
  position: fixed;
  right: clamp(.9rem, 2.2vw, 1.75rem);
  bottom: clamp(.9rem, 2.2vw, 1.75rem);
  z-index: 1200;
  width: min(390px, calc(100vw - 1.8rem));
  pointer-events: none;
}
.mygpt-process-trigger,
.mygpt-process-panel { pointer-events: auto; }
.mygpt-process-trigger {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  align-items: center;
  gap: .75rem;
  padding: .55rem .9rem .55rem .55rem;
  border: 1px solid rgba(36, 88, 255, .22);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .97);
  color: #0f172a;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .20);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.mygpt-process-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 88, 255, .42);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .24);
}
.mygpt-process-trigger img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 15px;
  object-fit: cover;
  background: #fff;
}
.mygpt-process-trigger span { display: grid; gap: .16rem; }
.mygpt-process-trigger strong { font-size: .96rem; line-height: 1.15; }
.mygpt-process-trigger small { color: #5f6f89; font-size: .76rem; line-height: 1.25; }
.mygpt-process-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .7rem);
  width: 100%;
  margin-top: 0;
  padding: 1.15rem;
  border: 1px solid rgba(36, 88, 255, .20);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 28px 75px rgba(15, 23, 42, .25);
}
.mygpt-process-panel[hidden] { display: none !important; }
.mygpt-process-panel-head { display: grid; grid-template-columns: 64px 1fr; gap: .85rem; align-items: start; padding-right: 1.75rem; }
.mygpt-process-panel-head img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.mygpt-process-panel-head strong { display: block; color: #0f172a; font-size: 1rem; line-height: 1.35; }
.mygpt-process-panel-head p { margin: .35rem 0 0; color: #5f6f89; font-size: .82rem; line-height: 1.55; }
.mygpt-process-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #edf3ff;
  color: #40506c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.mygpt-process-close:hover { background: #dfe9ff; color: #0f172a; }
.mygpt-process-link { width: 100%; margin-top: 1rem; }
.mygpt-process-mail { display: block; margin-top: .7rem; color: #173db8; font-size: .82rem; font-weight: 700; text-align: center; }
.mygpt-process-form-section { scroll-margin-top: 7rem; }

@media (max-width: 700px) {
  .baza-wiedzy .mygpt-knowledge-hero,
  .baza-wiedzy .mygpt-knowledge-list,
  .baza-wiedzy .mygpt-article-shell { width: min(100% - 1.25rem, 1280px); }
  .baza-wiedzy .mygpt-knowledge-hero { padding-top: 1.5rem; }
  .baza-wiedzy .mygpt-knowledge-hero > div:first-child,
  .baza-wiedzy .mygpt-article-shell > header { border-radius: 1.35rem; }
  .mygpt-process-widget { right: .65rem; bottom: .65rem; width: calc(100vw - 1.3rem); }
  .mygpt-process-trigger { padding-right: .75rem; }
  .mygpt-process-trigger img { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; }
  .mygpt-process-trigger small { display: none; }
}


/* WCAG AA contrast corrections (v5). */
.eyebrow {
  color: #123184 !important;
  background: #dfe8ff !important;
  border: 1px solid #b3c5ef;
}
.hero-visual-card .eyebrow,
.surface-card-dark .eyebrow {
  color: #ffffff !important;
  background: rgba(0, 0, 0, .28) !important;
  border-color: rgba(255, 255, 255, .48) !important;
}
.mygpt-site-footer { color: #334155; }
.mygpt-footer-inner p,
.mygpt-footer-nav a { color: #334155; }
.mygpt-footer-bottom { color: #475569; }

/* Explicit fallback for audits that do not resolve custom-property inheritance correctly. */
main#main-content {
  color: #0f172a !important;
  background-color: #edf4ff;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 800;
}
