/* ════════════════════════════════════════════════
   SPZOZ Gostyń — Cyberbezpieczeństwo / EDM / AI
   style.css v4 — wielostronicowy serwis, fotografie,
   slidery, marquee, oś czasu Gantta, tryb WCAG
   ════════════════════════════════════════════════ */

:root {
  --bg:         #F4F6F9;
  --bg-alt:     #ECF0F5;
  --bg-panel:   #FFFFFF;
  --bg-card:    #FFFFFF;
  --bg-card-2:  #F7F9FC;
  --border:     rgba(15,23,42,0.08);
  --border-2:   rgba(15,23,42,0.16);
  --text:       #1C2333;
  --text-dim:   #52607A;
  --text-mute:  #8993A8;

  --accent:       #0FA968;
  --accent-soft:  rgba(15,169,104,0.10);
  --accent-2:     #6E5ED0;
  --accent-2-soft: rgba(110,94,208,0.10);
  --accent-amber: #B9800F;
  --accent-amber-soft: rgba(185,128,15,0.12);

  --term-bg:      #12161E;
  --term-border:  rgba(255,255,255,0.10);
  --term-text:    #C7CFDA;
  --term-mute:    #7B8598;
  --term-accent:  #34D97F;
  --term-accent-2: #8B7CF6;
  --term-amber:   #F0B94D;

  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --f-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.78rem;
  --fs-sm:   0.9rem;
  --fs-base: 1.03rem;
  --fs-md:   1.15rem;
  --fs-lg:   1.4rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.2rem;
  --fs-hero: clamp(2.1rem, 4.6vw, 3.4rem);

  --lh-tight: 1.15;
  --lh-base:  1.7;

  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 6.5rem;

  --max-w: min(86vw, 1320px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --sh-card: 0 1px 2px rgba(15,23,42,0.04), 0 10px 24px rgba(15,23,42,0.05);
  --sh-card-hover: 0 4px 10px rgba(15,23,42,0.05), 0 18px 36px rgba(15,23,42,0.08);

  --t-fast: 0.16s ease;
  --t-mid: 0.32s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans); font-size: var(--fs-base); line-height: var(--lh-base);
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #0C8A56; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--f-sans); font-weight: 800; color: var(--text); line-height: var(--lh-tight); letter-spacing: -0.01em; }
ul { list-style: none; }
.mono { font-family: var(--f-mono); }

/* ── PRZEJŚCIA MIĘDZY PODSTRONAMI ── */
body { transition: opacity 0.38s cubic-bezier(.4,0,.2,1), transform 0.38s cubic-bezier(.4,0,.2,1); }
html.pt-hidden body { opacity: 0; transform: translateY(16px) scale(0.985); }

/* ── SKIP LINK ── */
.skip-link { position: fixed; top: -120px; left: 1rem; z-index: 9999; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 700; font-family: var(--f-mono); transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section     { padding: var(--space-2xl) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tight { padding: var(--space-xl) 0; }

.section-head { margin-bottom: var(--space-lg); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 16px; }
.section-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section-title { font-size: var(--fs-2xl); margin-bottom: 16px; }
.section-lead { font-size: var(--fs-md); color: var(--text-dim); line-height: 1.68; }
.section-head.center .section-lead { margin: 0 auto; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; } .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; } .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; } .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.38s; } .reveal-stagger.in > *:nth-child(8) { transition-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── NAVBAR ── */
.navbar { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,0.96); border-bottom: 1px solid transparent; transition: border-color var(--t-fast), background var(--t-fast); }
.navbar.scrolled { border-color: var(--border); background: rgba(255,255,255,0.96); box-shadow: 0 1px 0 rgba(15,23,42,0.04); }
.navbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.navbar-logo img { height: 36px; width: auto; border-radius: 6px; }
.navbar-logo-text { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--f-mono); }
.navbar-logo-text strong { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.navbar-logo-text span { font-size: 0.68rem; color: var(--accent); }
.navbar-logo-text span::before { content: '> '; }
.navbar-logo:hover { opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; color: var(--text-dim); padding: 8px 11px; border-radius: var(--radius-sm); transition: background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.nav-links a::before { content: '/'; color: var(--text-mute); margin-right: 3px; }
.nav-links a:hover, .nav-links a.active { background: rgba(15,23,42,0.045); color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: #fff !important; font-weight: 700 !important; margin-left: 14px; }
.nav-cta::before { display: none; }
.nav-cta:hover { background: #0C8A56 !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: var(--t-mid); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; padding: 4px 11px; border-radius: 5px; border: 1px solid; }
.badge-green { background: var(--accent-soft); color: var(--accent); border-color: rgba(15,169,104,0.28); }
.badge-violet { background: var(--accent-2-soft); color: var(--accent-2); border-color: rgba(110,94,208,0.28); }
.badge-amber { background: var(--accent-amber-soft); color: var(--accent-amber); border-color: rgba(185,128,15,0.28); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; padding: 14px 26px; border-radius: var(--radius-sm); font-family: var(--f-mono); font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); text-decoration: none; box-shadow: 0 8px 20px rgba(15,169,104,0.22); }
.btn-primary:hover { background: #0C8A56; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,169,104,0.28); color: #fff; }
.btn-outline { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border-2); color: var(--text); padding: 13px 24px; border-radius: var(--radius-sm); font-family: var(--f-mono); font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: border-color var(--t-fast), background var(--t-fast); background: #fff; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }

/* ── TOP RIBBON ── */
.top-ribbon { background: var(--bg-panel); border-bottom: 1px solid var(--border); color: var(--text-dim); font-family: var(--f-mono); font-size: 0.78rem; padding: 8px 28px; text-align: center; }
.top-ribbon a { color: var(--text-dim); font-weight: 600; }
.top-ribbon a:hover { color: var(--accent); }
.top-ribbon .sep { opacity: 0.35; margin: 0 10px; }

/* ── PAGE HERO (subpages) ── */
.page-hero { position: relative; overflow: hidden; padding: var(--space-xl) 0; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,14,20,0.92) 20%, rgba(10,14,20,0.72) 55%, rgba(10,14,20,0.4) 100%); }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.page-hero .section-label { color: var(--term-accent); }
.page-hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: var(--fs-md); line-height: 1.68; }
.page-hero-breadcrumb { font-family: var(--f-mono); font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.page-hero-breadcrumb a { color: rgba(255,255,255,0.75); }

/* ── HERO (strona główna, bez zdjęcia w tle) ── */
.hero { position: relative; background: var(--bg); padding: var(--space-2xl) 0 calc(var(--space-2xl) + 10px); overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,0.045) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 90%); pointer-events: none; }
.hero-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; top: -220px; right: -160px; background: radial-gradient(circle, rgba(110,94,208,0.14) 0%, transparent 70%); pointer-events: none; }
.hero-glow-2 { position: absolute; width: 520px; height: 520px; border-radius: 50%; bottom: -220px; left: -140px; background: radial-gradient(circle, rgba(15,169,104,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.35; animation: scan 6s linear infinite; pointer-events: none; }
@keyframes scan { 0% { top: 0%; opacity: 0; } 10% { opacity: 0.4; } 90% { opacity: 0.4; } 100% { top: 100%; opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title { font-family: var(--f-sans); font-size: var(--fs-hero); font-weight: 800; line-height: 1.08; color: var(--text); margin-bottom: 22px; letter-spacing: -0.02em; }
.hero-title .accent { color: var(--accent); }
.hero-title .cursor { display: inline-block; width: 0.5ch; background: var(--accent); animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: var(--fs-md); line-height: 1.68; color: var(--text-dim); margin-bottom: 34px; max-width: 560px; }
.hero-lead strong { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; max-width: 560px; box-shadow: var(--sh-card); }
.hero-stats > div { background: var(--bg-panel); padding: 18px 16px; }
.hero-stat-num { font-family: var(--f-mono); font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.hero-stat-label { font-size: 0.76rem; color: var(--text-mute); margin-top: 4px; line-height: 1.4; }

/* Panel terminala (element wizualny hero) — celowo ciemny akcent */
.term { position: relative; z-index: 1; background: var(--term-bg); border: 1px solid var(--term-border); border-radius: var(--radius-lg); box-shadow: 0 24px 54px rgba(15,23,42,0.18); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--term-border); }
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #FF6259; } .term-dot.y { background: #FFBD2E; } .term-dot.g { background: #28C840; }
.term-title { margin-left: 10px; font-family: var(--f-mono); font-size: 0.75rem; color: var(--term-mute); }
.term-body { padding: 22px 22px 26px; font-family: var(--f-mono); font-size: 0.86rem; line-height: 2; }
.term-line { display: flex; align-items: center; gap: 10px; color: var(--term-text); }
.term-line .k { color: var(--term-accent); }
.term-led { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.term-led.on { background: var(--term-accent); }
.term-divider { height: 1px; background: var(--term-border); margin: 14px 0; }
.term-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.term-bar-row { display: flex; align-items: center; gap: 10px; }
.term-bar-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.term-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--term-accent), var(--term-accent-2)); width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }
.term-bar-label { font-size: 0.72rem; color: var(--term-mute); width: 128px; flex-shrink: 0; }
.term-bar-pct { font-size: 0.72rem; color: var(--term-text); width: 38px; text-align: right; flex-shrink: 0; }

/* ── SCROLL CUE ── */
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--text-mute); font-family: var(--f-mono); font-size: 0.7rem; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.scroll-cue .line { width: 1px; height: 24px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { opacity: 0.2; } 50% { opacity: 1; } 100% { opacity: 0.2; } }

/* ── MARQUEE RIBBON ── */
.marquee { overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 52px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--f-mono); font-size: 0.86rem; color: var(--text-dim); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee-item strong { color: var(--text); font-weight: 700; }
.marquee-item .sep { color: var(--accent); }

/* ── ZIGZAG (obraz + tekst naprzemiennie) ── */
.zigzag { display: flex; gap: 56px; align-items: center; }
.zigzag + .zigzag { margin-top: var(--space-xl); }
.zigzag.reverse { flex-direction: row-reverse; }
.zigzag-media { flex: 0 0 42%; position: relative; }
.zigzag-media img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--sh-card-hover); }
.zigzag-tag { position: absolute; bottom: -14px; left: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-family: var(--f-mono); font-size: 0.74rem; color: var(--accent); font-weight: 700; box-shadow: var(--sh-card); }
.zigzag-text { flex: 1; min-width: 0; }
.zigzag-text h2, .zigzag-text h3 { font-size: var(--fs-xl); margin-bottom: 14px; }
.zigzag-text p { color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.zigzag-text p:last-child { margin-bottom: 0; }

/* ── PHOTO CARD ── */
.photo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--sh-card); transition: transform var(--t-mid), box-shadow var(--t-mid); }
.photo-card:hover { transform: translateY(-6px); box-shadow: var(--sh-card-hover); }
.photo-card-media { overflow: hidden; aspect-ratio: 16/10; }
.photo-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-card:hover .photo-card-media img { transform: scale(1.06); }
.photo-card-body { padding: 22px 24px; }
.photo-card-idx { font-family: var(--f-mono); font-size: 0.74rem; color: var(--accent); margin-bottom: 10px; display: block; }
.photo-card h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.photo-card p { color: var(--text-dim); font-size: 0.94rem; line-height: 1.6; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── SLIDER / CAROUSEL ── */
.slider { position: relative; }
.slider-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.slider-track::-webkit-scrollbar { height: 6px; }
.slider-track::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.slide { scroll-snap-align: start; flex: 0 0 auto; width: 320px; }
.slider-single .slide { width: 100%; }
.slider-click-single .slider-track { overflow: hidden; scroll-snap-type: none; }
.slider-click-single .slide { width: 100%; }
.slider-click-single .photo-card { position: relative; height: 460px; }
.slider-click-single .photo-card-media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.slider-click-single .photo-card-media img { width: 100%; height: 100%; object-fit: cover; }
.slider-click-single .photo-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 26px 22px;
  background: linear-gradient(to top, rgba(10,14,20,0.88) 0%, rgba(10,14,20,0.6) 50%, rgba(10,14,20,0) 100%);
}
.slider-click-single .photo-card-idx { color: var(--term-accent, #34D97F); }
.slider-click-single .photo-card-body h3 { color: #fff; }
.slider-click-single .photo-card-body p { color: rgba(255,255,255,0.85); }
.slider-single .photo-card-media { aspect-ratio: 32/10; }

/* ── WYKAZ SPRZĘTU: LISTA DRZEWIASTA ── */
.eq-tree { display: flex; flex-direction: column; gap: 26px; }
.eq-branch { padding: 30px 32px; }
.eq-cat { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-md); font-weight: 700; color: var(--text); margin-bottom: 22px; }
.eq-cat .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.eq-list { list-style: none; }
.eq-list li { position: relative; padding: 0 0 22px 30px; }
.eq-list li:last-child { padding-bottom: 0; }
.eq-list li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border-2); }
.eq-list li:last-child::before { bottom: auto; height: 15px; }
.eq-list li::after { content: ''; position: absolute; left: 0; top: 15px; width: 20px; height: 2px; background: var(--border-2); }
.eq-item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.eq-name { font-weight: 700; font-size: var(--fs-base); color: var(--text); }
.eq-qty { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.eq-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; margin-top: 6px; }
.slider-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg-card); font-family: var(--f-mono); font-size: 1.1rem; color: var(--text); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── TCARD (uniwersalna karta) ── */
.tcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--sh-card); }

/* ── STAT CARDS ── */
.stat-card { padding: 26px 24px; }
.stat-label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--text-mute); margin-bottom: 12px; }
.stat-num { font-family: var(--f-mono); font-size: var(--fs-2xl); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.stat-desc { font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }

/* ── ANIMATED BUDGET BAR (poziomy wykres słupkowy) ── */
.budget-chart { display: flex; flex-direction: column; gap: 18px; }
.budget-row { display: grid; grid-template-columns: 200px 1fr 74px; align-items: center; gap: 16px; }
.budget-label { font-size: 0.92rem; font-weight: 700; color: var(--text); }
.budget-track { height: 22px; background: var(--bg-alt); border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.budget-fill { height: 100%; border-radius: 11px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.6s cubic-bezier(.4,0,.2,1); }
.budget-pct { font-family: var(--f-mono); font-size: 0.86rem; color: var(--text-dim); text-align: right; }

/* ── GANTT / OŚ CZASU RÓWNOLEGŁYCH ZADAŃ ── */
.gantt { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--sh-card); padding: 30px 28px; }
.gantt-axis { display: flex; padding-left: 190px; justify-content: space-between; font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-mute); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.gantt-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.gantt-row:last-child { margin-bottom: 0; }
.gantt-label { width: 174px; flex-shrink: 0; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.gantt-track { flex: 1; height: 20px; background: var(--bg-alt); border-radius: 10px; position: relative; overflow: hidden; }
.gantt-bar { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transform: scaleX(0); transform-origin: left; transition: opacity 0.5s ease, transform 0.9s cubic-bezier(.4,0,.2,1); }
.gantt-bar.in { opacity: 1; transform: scaleX(1); }
.gantt-marker { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--accent-amber); }
.gantt-marker::after { content: attr(data-label); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.64rem; color: var(--accent-amber); white-space: nowrap; }

/* ── TIMELINE (kamienie milowe, pionowa) ── */
.tl-wrap { max-width: 780px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--sh-card); }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--border); font-family: var(--f-mono); }
.tl-item:last-child { border-bottom: none; }
.tl-date { font-size: 0.76rem; color: var(--accent); padding-top: 3px; }
.tl-title { font-family: var(--f-sans); font-size: var(--fs-base); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tl-desc { font-family: var(--f-sans); font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }
.tl-flag { display: inline-block; margin-right: 8px; }
.tl-item.done .tl-flag { color: var(--accent); }
.tl-item:not(.done) .tl-flag { color: var(--text-mute); }

/* ── PATIENT / GENERIC ROW LIST ── */
.info-row { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row-idx { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); font-weight: 700; flex-shrink: 0; width: 34px; padding-top: 3px; }
.info-title { font-size: var(--fs-base); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.info-desc { font-size: 0.94rem; color: var(--text-dim); line-height: 1.65; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: var(--fs-base); font-weight: 700; color: var(--text); line-height: 1.4; font-family: var(--f-sans); }
.faq-q .qmark { font-family: var(--f-mono); color: var(--accent); margin-right: 10px; }
.faq-toggle { font-family: var(--f-mono); font-size: 1.1rem; color: var(--accent); flex-shrink: 0; width: 22px; text-align: center; }
.faq-a { font-size: 0.96rem; color: var(--text-dim); line-height: var(--lh-base); padding: 0 4px 22px 30px; display: none; max-width: 700px; font-family: var(--f-mono); }
.faq-a.open { display: block; }
.faq-a::before { content: '> '; color: var(--accent); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: stretch; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }
.c-label { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; display: block; }
.c-val { font-size: 1.02rem; font-weight: 600; color: var(--text); }

/* ── LOGO BAR (belka UE — powiększona) ── */
.logo-bar { background: #FFFFFF; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 46px 0; }
.logo-bar-head { text-align: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px; }
.logo-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: center; gap: 54px; flex-wrap: wrap; }
.logo-bar-item img { height: 72px; width: auto; opacity: 0.92; transition: opacity var(--t-fast), transform var(--t-fast); }
.logo-bar-item img:hover { opacity: 1; transform: translateY(-2px); }
.logo-bar-sep { width: 1px; height: 56px; background: var(--border-2); }

/* ── FOOTER ── */
.footer { background: var(--bg); color: var(--text-mute); padding: 54px 0 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 16px; border-radius: 6px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.65; margin-bottom: 18px; max-width: 380px; color: var(--text-dim); }
.footer-eu-text { font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.6; color: var(--text-dim); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: inline-block; }
.footer-col h4 { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.92rem; color: var(--text-mute); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--f-mono); font-size: 0.76rem; }
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }
.footer-credits { font-size: 0.68rem; color: var(--text-mute); opacity: 0.7; margin-top: 10px; }

/* ── FLOATING BUTTONS (back-to-top + wysoki kontrast) ── */
.float-btn { position: fixed; right: 26px; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--bg-panel); border: 1px solid var(--border-2); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 400; font-family: var(--f-mono); box-shadow: var(--sh-card-hover); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast), border-color var(--t-fast); }
.float-btn:hover { border-color: var(--accent); }
.back-top { bottom: 26px; opacity: 0; visibility: hidden; transform: translateY(10px); font-size: 1.1rem; }
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hc-wrap { position: fixed; bottom: 82px; right: 26px; z-index: 400; }
.hc-btn { display: flex; align-items: center; gap: 8px; width: auto; height: auto; padding: 10px 16px; border-radius: 999px; background: var(--bg-panel); border: 1px solid var(--border-2); color: var(--text); font-family: var(--f-mono); font-size: 0.76rem; font-weight: 600; cursor: pointer; box-shadow: var(--sh-card-hover); white-space: nowrap; }
.hc-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── WYSOKI KONTRAST (WCAG) ── */
html.hc, html.hc body { background: #FFFFFF !important; color: #000000 !important; }
.hc * { box-shadow: none !important; text-shadow: none !important; animation-play-state: paused !important; }
.hc a { color: #0000CC !important; text-decoration: underline !important; }
.hc .navbar { background: #fff !important; border-bottom: 2px solid #000 !important; }
.hc .nav-links a { color: #000 !important; }
.hc .nav-links a.active, .hc .nav-links a:hover { background: #000 !important; color: #fff !important; }
.hc .nav-cta { background: #000 !important; color: #fff !important; }
.hc .top-ribbon, .hc .marquee, .hc .logo-bar, .hc .section-alt { background: #fff !important; border-color: #000 !important; }
.hc .home-hero-media::after, .hc .page-hero-media::after { background: rgba(0,0,0,0.86) !important; }
.hc .home-hero-media img, .hc .page-hero-media img { animation: none !important; filter: grayscale(1) contrast(1.2); }
.hc h1, .hc h2, .hc h3, .hc h4, .hc .home-hero-title, .hc .page-hero h1 { color: #000 !important; }
.hc .home-hero-title, .hc .page-hero h1, .hc .page-hero p, .hc .home-hero-lead, .hc .hero-eyebrow { color: #fff !important; }
.hc .section-label, .hc .section-label .dot { color: #000 !important; background: #000 !important; }
.hc .section-lead, .hc .text-dim, .hc p { color: #000 !important; }
.hc .tcard, .hc .photo-card, .hc .gantt, .hc .tl-wrap, .hc .stat-card, .hc .slide, .hc .zigzag-media img, .hc .photo-card-media img { border: 2px solid #000 !important; }
.hc .btn-primary, .hc .btn-outline { background: #000 !important; color: #fff !important; border: 2px solid #000 !important; }
.hc .badge { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
.hc .budget-fill, .hc .gantt-bar { background: #000 !important; }
.hc .budget-track, .hc .gantt-track { border: 1px solid #000 !important; }
.hc .stat-num, .hc .budget-label, .hc .gantt-label, .hc .tl-title, .hc .info-title, .hc .faq-q, .hc .c-val { color: #000 !important; }
.hc .footer, .hc .footer * { color: #000 !important; background: #fff !important; }
.hc img { filter: grayscale(0.15) contrast(1.05); }
.hc .logo-bar-item img { filter: grayscale(1) contrast(1.3) !important; opacity: 1 !important; }
.hc .zigzag-tag { background: #fff !important; color: #000 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .zigzag, .zigzag.reverse { flex-direction: column; gap: 26px; }
  .zigzag-media { flex: none; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .budget-row { grid-template-columns: 140px 1fr 60px; }
  .gantt-axis { padding-left: 0; }
  .gantt-label { width: 130px; }
  .home-hero-title, .page-hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
}
@media (max-width: 680px) {
  :root { --space-2xl: 4rem; }
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(14px); flex-direction: column; align-items: stretch; padding: 20px 24px; gap: 4px; overflow-y: auto; z-index: 400; border-top: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin-left: 0; }
  .hamburger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slide { width: 268px; }
  .gantt-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gantt-label { width: auto; }
  .gantt-axis { display: none; }
  .budget-row { grid-template-columns: 1fr; gap: 6px; }
  .budget-pct { text-align: left; }
  .logo-bar-item img { height: 48px; }
  .back-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .hc-wrap { bottom: 70px; right: 16px; }
}
