:root {
  --ink: #0b1d38;
  --navy: #10284b;
  --blue: #2d62ad;
  --green: #147c68;
  --rose: #b84b63;
  --paper: #ffffff;
  --page: #f2f5f8;
  --mist: #f3f6fa;
  --line: #d7e0eb;
  --muted: #5d6b7d;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--navy);
}
.skip-link:focus { top: 12px; }

.site-header {
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy); color: white; border-radius: 7px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: #31425b; font-weight: 650; font-size: 14px; }
nav a:hover, nav a:focus-visible { color: var(--blue); }
.menu-button { display: none; min-height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 8px 12px; font-weight: 750; }

.hero {
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 24, 46, .58);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/ksef-hero-2026.webp") center / cover no-repeat;
  z-index: -2;
}
.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 72px clamp(22px, 7vw, 100px);
  color: white;
}
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hero .eyebrow { color: #8ee0ca; }
.hero h1 { margin: 0; max-width: 100%; font-size: 58px; line-height: 1.04; letter-spacing: 0; overflow-wrap: anywhere; }
.hero-lead { max-width: 690px; margin: 20px 0 0; font-size: 21px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 800; }
.button.primary { background: var(--green); color: white; }
.button.secondary { background: white; color: var(--navy); border-color: white; }
.button:hover, .button:focus-visible { outline: 3px solid rgba(255,255,255,.45); outline-offset: 2px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: #d8e5f2; }

section { padding: clamp(66px, 8vw, 112px) clamp(20px, 6vw, 88px); }
.section-heading { max-width: 820px; }
.section-heading h2, .security h2, .contact h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.55; }
.product { padding-bottom: 0; background: #e8eef4; }
.product-shot { margin: 42px 0 0; border-top: 1px solid var(--line); }
.product-shot figcaption { padding: 10px 0; color: var(--muted); font-size: 13px; }
.program-preview { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 560px; background: #f3f5f9; border: 1px solid #dce3ed; color: #192c48; font-family: "Segoe UI", Arial, sans-serif; }
.program-sidebar { min-width: 0; padding: 24px 18px 18px; background: #fff; border-right: 1px solid #dfe6f0; }
.program-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 18px; color: #18375e; font-size: 28px; letter-spacing: 0; }
.program-brand span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #18375e; color: white; font-size: 22px; font-weight: 750; }
.program-menu-label { margin: 24px 12px 9px; color: #65748b; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.program-menu-label-settings { margin-top: 24px; }
.program-menu { display: grid; gap: 5px; }
.program-tab, .program-menu-item { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #4d617e; text-align: left; font: inherit; font-size: 14px; font-weight: 550; line-height: 1.35; }
.program-tab { position: relative; cursor: pointer; }
.program-menu-item.is-muted { opacity: .78; }
.program-menu-icon { width: 24px; display: grid; place-items: center; flex: none; color: #6f84a4; font-size: 21px; font-weight: 500; }
.program-menu-icon-text { font-size: 10px; font-weight: 750; }
.program-tab:hover, .program-tab:focus-visible { background: #f1f5fb; color: #18375e; outline: none; }
.program-tab.is-active { border-color: #dae4f2; background: #eaf0f9; color: #18375e; font-weight: 700; }
.program-tab.is-active::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: #2f5f9d; }
.program-tab.is-active .program-menu-icon { color: #1f4d88; }
.program-content { min-width: 0; padding: 30px; }
.program-pane[hidden] { display: none; }
.program-pane h3 { margin: 6px 0 20px; font-size: 30px; line-height: 1.2; }
.program-pane > p { margin: -7px 0 20px; color: #192c48; line-height: 1.55; }
.preview-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #dce3ed; border-radius: 12px; background: white; }
.preview-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.preview-table th, .preview-table td { padding: 14px; border-bottom: 1px solid #e4eaf2; }
.preview-table th { background: #f8faff; color: #192c48; font-size: 14px; }
.preview-table td { color: #192c48; }
.preview-table tbody tr:last-child td { border-bottom: 0; }
.program-receive-form { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; padding: 20px; border: 1px solid #dce3ed; border-radius: 12px; background: #fff; }
.program-receive-form span { display: grid; flex: 1; gap: 6px; font-size: 14px; font-weight: 600; }
.program-receive-form strong { min-height: 43px; padding: 10px; border: 1px solid #c7d3e1; border-radius: 7px; color: #7b8798; background: #fff; font-weight: 400; }
.program-receive-form > b { min-height: 43px; display: grid; place-items: center; padding: 10px 14px; border-radius: 9px; background: #18375e; color: #fff; white-space: nowrap; }
.band { background: #eaf0f6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 42px; }
.feature-grid article { min-height: 245px; padding: 26px; background: white; }
.feature-no { color: var(--rose); font-weight: 850; font-size: 13px; }
.feature-grid h3 { margin: 36px 0 10px; font-size: 21px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.workflow { background: #f7f9fb; border-top: 1px solid var(--line); }
.workflow-list { list-style: none; padding: 0; margin: 42px 0 0; border-top: 1px solid var(--line); }
.workflow-list li { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.workflow-list > li > span { color: var(--rose); font-size: 13px; font-weight: 900; }
.workflow-list h3 { margin: 0 0 7px; font-size: 21px; }
.workflow-list p { max-width: 850px; margin: 0; color: var(--muted); line-height: 1.58; }
.scope-line { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 34px; border: 1px solid var(--line); background: var(--line); }
.scope-line div { display: grid; gap: 8px; padding: 22px 24px; background: #fff; }
.scope-line strong { color: var(--green); }
.scope-line span { color: var(--muted); line-height: 1.5; }

.security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: clamp(36px, 8vw, 120px); align-items: start; background: #f7f9fb; }
.security-copy p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; }
.security-list { margin: 0; border-top: 3px solid var(--green); }
.security-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.security-list dt { font-weight: 850; margin-bottom: 6px; }
.security-list dd { margin: 0; color: var(--muted); line-height: 1.5; }

.market { background: #f1f4f8; border-top: 1px solid var(--line); }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 38px 0 26px; background: var(--line); border: 1px solid var(--line); }
.market-grid article { padding: 24px; background: var(--paper); }
.market-grid h3 { margin: 0 0 10px; font-size: 19px; }
.market-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.timeline-list { list-style: none; padding: 0; margin: 42px 0 28px; border-top: 1px solid var(--line); }
.timeline-list li { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-list time { font-weight: 900; color: var(--blue); }
.timeline-list span { line-height: 1.5; }
.payment-2027-note { max-width: 980px; margin-top: 36px; padding: 26px 30px; border-left: 5px solid var(--green); background: var(--paper); box-shadow: 0 12px 30px rgba(16,40,75,.07); }
.payment-2027-note .eyebrow { margin: 0 0 8px; }
.payment-2027-note h3 { margin: 0 0 12px; font-size: 25px; }
.payment-2027-note p:not(.eyebrow) { margin: 10px 0; color: #33455e; line-height: 1.6; }
.payment-2027-note .official-link { margin-top: 10px; }
.official-link { display: inline-block; color: var(--blue); font-weight: 800; }

.faq { background: #edf2f6; border-top: 1px solid var(--line); }
.faq-list { max-width: 1020px; margin-top: 40px; border-top: 1px solid #cbd7e4; }
.faq-list details { border-bottom: 1px solid #cbd7e4; }
.faq-list summary { position: relative; padding: 21px 48px 21px 0; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 17px; color: var(--blue); font-size: 27px; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 880px; margin: -5px 0 22px; color: var(--muted); line-height: 1.65; }

.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 50px; align-items: end; border-top: 6px solid var(--rose); background: #dfe9f1; }
.contact-actions p { color: var(--muted); line-height: 1.5; }
footer { padding: 30px clamp(20px, 6vw, 88px); background: var(--ink); color: white; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
footer div { display: grid; gap: 5px; }
footer span, footer p { color: #bfc9d7; font-size: 13px; }
footer p { max-width: 620px; margin: 0; line-height: 1.5; }
footer a { color: inherit; text-underline-offset: 3px; }
.nexomi-footer-standard { flex: 0 0 100%; display: flex; align-items: center; gap: 10px 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); color: #bfc9d7; }
.nexomi-footer-standard a { font-weight: 700; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; align-items: center; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 20px 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  nav.open { display: flex; }
  nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security, .contact { grid-template-columns: 1fr; }
  .scope-line { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 170px 1fr; }
  .program-preview { grid-template-columns: 248px minmax(0, 1fr); min-height: 520px; }
  .program-sidebar { padding: 24px 14px; }
  .program-brand { margin-bottom: 28px; }
}

@media (max-width: 600px) {
  .site-header { min-height: 62px; gap: 10px; padding-left: 16px; padding-right: 16px; }
  .brand { min-width: 0; }
  .brand span:last-child { max-width: 176px; font-size: 15px; line-height: 1.15; }
  .hero { min-height: 610px; }
  .hero-bg { background-position: 64% center; }
  .hero::before { background: rgba(7, 24, 46, .7); }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 18px; overflow-wrap: anywhere; }
  .hero-content { width: 100%; padding: 50px 20px 62px; }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .timeline-list li { grid-template-columns: 1fr; gap: 8px; }
  .workflow-list li { grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
  .payment-2027-note { padding: 22px 20px; }
  .program-preview { grid-template-columns: 1fr; min-height: 0; }
  .program-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .program-brand { margin: 0 0 14px; font-size: 18px; }
  .program-brand span { width: 36px; height: 36px; }
  .program-menu-label { display: none; }
  .program-menu { width: 100%; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .program-menu-static, .program-menu-item.is-muted { display: none; }
  .program-tab { flex: 0 0 auto; width: auto; min-height: 44px; padding: 9px 12px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .program-tab.is-active { border-bottom-color: var(--blue); }
  .program-content { padding: 24px 16px 30px; }
  .program-pane h3 { font-size: 26px; }
  .program-receive-form { display: none; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Wspolny pasek publicznych produktow DIPIU - wersja nadrzedna. */
.site-header{min-height:70px;padding:12px clamp(18px,4vw,64px);gap:24px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.site-header .brand{gap:10px;font-family:"Segoe UI",Arial,sans-serif;font-size:18px;font-weight:850;white-space:nowrap}
.site-header .brand-mark{width:38px;height:38px;border-radius:7px;font-size:18px}
.site-header nav{display:flex;align-items:center;gap:20px;font-family:"Segoe UI",Arial,sans-serif;font-size:14px;font-weight:700;white-space:nowrap}
.site-header .menu-button{display:none}
@media(max-width:900px){.site-header{min-height:auto;align-items:flex-start;flex-direction:column;gap:10px}.site-header nav,.site-header nav[hidden]{display:flex;width:100%;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}}
@media(max-width:600px){.site-header{padding:12px 16px}.site-header .brand{font-size:16px}.site-header .brand span:last-child{max-width:none;font-size:16px;line-height:normal}.site-header .brand-mark{width:36px;height:36px}.site-header nav{gap:16px}}

.dipiu-projects{padding:52px clamp(20px,6vw,88px);background:#e8eef4;border-top:1px solid var(--line)}
.dipiu-projects-head{max-width:760px;margin-bottom:22px}.dipiu-projects-head h2{margin:0;font-size:34px}.dipiu-projects-head>p:last-child{margin:10px 0 0;color:var(--muted);line-height:1.5}
.dipiu-projects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:1120px}
.dipiu-project-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;align-items:start;padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px;text-decoration:none}
.dipiu-project-card:hover{transform:translateY(-1px);border-color:#afc3dc}.dipiu-project-card b,.dipiu-project-card small,.dipiu-project-card em{display:block}.dipiu-project-card b{font-size:19px;color:var(--navy)}.dipiu-project-card small{margin-top:5px;color:var(--muted);font-size:14px;line-height:1.45}.dipiu-project-card em{margin-top:10px;color:var(--blue);font-size:13px;font-style:normal;font-weight:800}
.dipiu-project-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:7px;color:#fff;font-weight:900}.dipiu-project-mark.bdo{background:#2d8065}.dipiu-project-mark.sent{background:#d7193f}.dipiu-project-mark.ksef{background:#10284b}
@media(max-width:700px){.dipiu-projects{padding:40px 20px}.dipiu-projects-head h2{font-size:28px}.dipiu-projects-grid{grid-template-columns:1fr}}

/* 2026-10-11: reset obsolete dropdown rules for the shared horizontal mobile nav. */
@media(max-width:900px){.site-header nav{position:static;flex-direction:row;flex-wrap:nowrap;max-width:100%;padding:0 0 4px;gap:16px;border:0}.site-header nav a{display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;padding:10px 2px;border:0}}
