/* =====================================================================
   B24U — serwis komputerowy i usługi IT — czysty statyczny styl (SPA)
   Motyw: ciemny, technologiczny. Kolory marki: niebieski #0773ff, cyjan #06b6d4
   Dostępność: WCAG 2.1 AA — kontrast, focus, reduced motion, tryb kontrastu
   ===================================================================== */
:root {
  --indigo: #0773ff;
  --indigo-dark: #0a58d6;
  --cyan: #22d3ee;
  --cyan-dark: #06b6d4;
  --logo-blue: #0773ff;
  --logo-cyan: #71e6ff;
  --ink: #e7ecf6;
  --ink-soft: #aab4c8;
  --muted: #8a96ad;
  --bg: #0b1020;
  --bg-2: #0f1530;
  --card: #151c33;
  --card-2: #1b2342;
  --border: #2a3358;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --maxw: 1140px;
  --header-h: 70px;
  --fs: 1; /* mnożnik rozmiaru czcionki (widget dostępności) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: calc(1rem * var(--fs));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.25; }

a { color: var(--cyan); text-decoration: none; transition: color .15s ease; }
a:hover { color: #67e8f9; text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Dostępność: focus widoczny dla klawiatury (WCAG 2.4.7) ---- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--indigo); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------- HEADER / NAV ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* Przezroczysty pasek nad sliderem (u góry strony) */
.site-header.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-logo {
  flex: 0 0 auto; height: 34px; width: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}
.brand-mark {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 40px; padding: 0 9px; border-radius: 11px;
  background: linear-gradient(135deg, var(--logo-blue), var(--cyan-dark));
  font-family: 'Baloo 2', system-ui, sans-serif; font-weight: 800; font-size: 1.12rem;
  line-height: 40px; color: #fff; letter-spacing: .5px; text-align: center;
  box-shadow: 0 4px 14px rgba(7, 115, 255, .45);
  animation: brand-pop .5s cubic-bezier(.2, .9, .3, 1.4) both;
}
.brand-word {
  font-family: 'Baloo 2', system-ui, sans-serif; white-space: nowrap;
  font-weight: 800; font-size: 1.12rem; color: #fff; line-height: 1;
  display: inline-block; vertical-align: bottom;
}
.brand-word.is-typing::after {
  content: ""; display: inline-block; width: .07em; height: 1em; margin-left: 1px;
  vertical-align: -0.12em; background: var(--logo-cyan); animation: tw-caret .65s step-end infinite;
}
.brand-word b { font-weight: 600; color: var(--logo-cyan); }
@keyframes brand-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.brand:hover .brand-mark { animation: none; }

.main-nav .nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a {
  display: inline-block; padding: 9px 13px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: color .2s ease, background .15s ease;
}
.nav-list > li > a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav-list a.active { color: #fff; background: rgba(99, 102, 241, .28); }
.nav-accent {
  color: var(--cyan) !important; font-weight: 700;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28);
}
.nav-accent:hover { background: rgba(34, 211, 238, .16) !important; color: #fff !important; }
.nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--cyan-dark));
  color: #fff !important; font-weight: 700;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.nav-cta:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--indigo), var(--cyan-dark)); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- HERO / SLIDER ---------------- */
.hero { color: #fff; position: relative; }
.slider { position: relative; overflow: hidden; }
.slides { position: relative; height: 100vh; min-height: 560px; max-height: 900px; background: var(--bg-2); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(72px + var(--header-h)) 0 80px;
  opacity: 0; z-index: 0;
  /* Płynne przenikanie obrazków (crossfade) — tylko wchodzący slajd pojawia
     się na wierzchu, a poprzedni pozostaje nieprzezroczysty pod spodem, więc
     nigdy nie prześwituje tło (brak efektu mrugania). */
  transition: opacity 1.2s ease-in-out;
}
/* Poprzedni slajd — wciąż w pełni widoczny POD nowym, by nie było przebłysku */
.slide.is-prev { opacity: 1; z-index: 1; }
/* Aktywny slajd — wchodzi płynnie na samej górze */
.slide.is-active { opacity: 1; z-index: 2; }
.slide:not(.is-active) { pointer-events: none; }

.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.05) translateZ(0);
  will-change: transform; backface-visibility: hidden;
}
/* Powolny, ciągły zoom (Ken Burns) na aktywnym slajdzie — pętla tam i z powrotem,
   dzięki czemu tło nieprzerwanie się porusza również na urządzeniach mobilnych. */
.slide.is-active .slide-bg img { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18); } }

.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1100px 520px at 50% 0%, rgba(99, 102, 241, .35), transparent 60%),
    linear-gradient(180deg, rgba(11, 16, 32, .55) 0%, rgba(11, 16, 32, .78) 100%);
}
.slide-content { position: relative; z-index: 2; max-width: 880px; padding: 0 22px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: .4px; }
.hero h1.hero-h1 { line-height: 1.04; }
.hero h1.hero-h1 .grad { display: block; font-size: clamp(1.5rem, 4.6vw, 2.7rem); margin-top: 4px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cyan), var(--indigo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 7px 16px; border-radius: 999px;
  background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .4);
  color: #a5f3fc; font-weight: 700; font-size: .82rem; letter-spacing: .6px; text-transform: uppercase;
}
.hero-sub { margin: 18px auto 0; font-size: clamp(1rem, 2.2vw, 1.2rem); color: #d7deec; max-width: 680px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: #aab4c8; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Strzałki */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  cursor: pointer; background: rgba(11, 16, 32, .35); color: #fff; font-size: 1.9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease;
}
.slider-arrow:hover { background: rgba(99, 102, 241, .5); border-color: rgba(255, 255, 255, .5); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Kropki */
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 6; display: flex; gap: 10px; justify-content: center; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .4); transition: background .15s ease, transform .15s ease;
}
.slider-dots button.active { background: var(--cyan); transform: scale(1.25); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  font-family: inherit; transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--cyan-dark)); color: #fff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .45);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------------- SECTIONS ---------------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--cyan); font-weight: 700;
  font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; }
.section-title .grad { background: linear-gradient(90deg, var(--cyan), var(--indigo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------------- KARTY ZAJĘĆ ---------------- */
.cards-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.feature-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(420px 200px at 100% 0%, rgba(99, 102, 241, .22), transparent 60%);
  transition: opacity .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--indigo); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-ico {
  width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(34, 211, 238, .25));
  border: 1px solid var(--border); margin-bottom: 18px;
}
.feature-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 2; }
.feature-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.feature-card h3.is-typing::after {
  content: ""; display: inline-block; width: .08em; height: 1em; margin-left: 2px;
  vertical-align: -0.12em; background: var(--cyan); animation: tw-caret .7s step-end infinite;
}
@keyframes tw-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.feature-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------------- O PROGRAMIE ---------------- */
.about-grid { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.about-text p strong { color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--cyan), var(--indigo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; }

/* ---------------- PARTNERZY ---------------- */
.partners { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 34px; min-width: 200px; color: #0f172a; font-weight: 700; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: #0f172a; }
.partner-logo { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.partner-logo svg { width: 100%; height: 100%; }
.partner-logo picture, .partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner span { font-size: .95rem; }
.partner small { display: block; color: #5b6573; font-weight: 500; font-size: .8rem; }

/* ---------------- KONTAKT ---------------- */
.contact-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-card h3 { color: #fff; margin-bottom: 16px; font-size: 1.2rem; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.contact-list li:last-child { border-bottom: none; }
.contact-list .ci { flex: 0 0 22px; color: var(--cyan); }
.contact-list strong { color: #fff; display: block; }
.contact-list a { color: var(--cyan); }
.role-afo { display: inline-block; margin-top: 3px; color: var(--cyan); font-weight: 700; letter-spacing: .2px; }
.contact-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3);
  color: #cbe9f2; font-size: .92rem;
}

/* ---------------- CENNIK ---------------- */
.pricing { display: grid; gap: 28px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.price-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.price-list .price-name { color: var(--ink); font-weight: 600; }
.price-list .price-dots { flex: 1 1 auto; border-bottom: 1px dotted var(--border); transform: translateY(-4px); }
.price-list .price-val { color: #fff; font-weight: 700; white-space: nowrap; font-family: 'Baloo 2', system-ui, sans-serif; }
.price-list .price-em {
  margin-top: 6px; padding: 14px 14px; border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 12px; background: rgba(34, 211, 238, .08);
}
.price-list .price-em .price-val { color: var(--cyan); }
.pricing-cta {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.pricing-cta p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------------- MAPA ---------------- */
.map-wrap {
  margin: 34px auto 0; max-width: 760px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); line-height: 0;
}
.map-wrap iframe { display: block; filter: grayscale(.2) contrast(1.05); }
.map-actions { margin-top: 18px; text-align: center; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: #070b18; color: var(--ink-soft); border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 34px; padding: 54px 22px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 6px 0; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--cyan); }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; margin-bottom: 14px; }
.footer-brand:hover { text-decoration: none; color: #fff; }
.footer-brand .brand-mark { animation: none; min-width: 56px; height: 44px; line-height: 44px; font-size: 1.2rem; padding: 0 10px; }
.footer-brand .brand-logo { height: 40px; }
.footer-brand .brand-word { animation: none; max-width: none; border-right: 0; font-size: 1.22rem; overflow: visible; }
.footer-about { font-size: .95rem; max-width: 320px; }
.footer-credit { font-size: .85rem; margin-top: 14px; color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; font-size: .9rem; }
.footer-bottom .container { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); }
.footer-bottom a { color: var(--ink-soft); }

/* ---------------- BANER COOKIE (RODO/GDPR) ---------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: rgba(15, 21, 48, 0.98); color: var(--ink);
  border-top: 2px solid var(--indigo); box-shadow: 0 -8px 28px rgba(0, 0, 0, .45);
  backdrop-filter: saturate(140%) blur(8px); animation: cookie-slide-up .35s ease;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-text { font-size: .92rem; line-height: 1.6; flex: 1 1 380px; margin: 0; color: var(--ink-soft); }
.cookie-text a { color: var(--cyan); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-btn {
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent; font-family: inherit;
  transition: transform .12s ease, filter .15s ease, background .15s ease;
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn-accept { background: linear-gradient(135deg, var(--indigo), var(--cyan-dark)); color: #fff; }
.cookie-btn-accept:hover { filter: brightness(1.08); }
.cookie-btn-reject { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.cookie-btn-reject:hover { background: rgba(255, 255, 255, .1); }

/* ---------------- WIDGET DOSTĘPNOŚCI (WCAG) ---------------- */
.a11y-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1100;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--indigo), var(--cyan-dark)); color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.a11y-fab:hover { transform: scale(1.08); }
.a11y-fab svg { width: 28px; height: 28px; fill: #fff; }
.a11y-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 1100;
  width: 280px; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px; transform: translateY(12px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.a11y-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.a11y-panel h2 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.a11y-panel p { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.a11y-row:first-of-type { border-top: none; }
.a11y-row span { color: var(--ink-soft); font-size: .9rem; }
.a11y-btns { display: flex; gap: 6px; }
.a11y-btns button, .a11y-toggle {
  min-width: 34px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card-2); color: var(--ink); font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.a11y-btns button:hover, .a11y-toggle:hover { border-color: var(--indigo); background: #233056; }
.a11y-toggle[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.a11y-reset {
  width: 100%; margin-top: 12px; padding: 9px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--ink-soft); font-weight: 600; font-family: inherit; cursor: pointer;
}
.a11y-reset:hover { color: #fff; border-color: var(--indigo); }

/* Tryb wysokiego kontrastu (przełączany w widgecie) */
body.hc {
  --bg: #000000; --bg-2: #000000; --card: #0a0a0a; --card-2: #111111;
  --ink: #ffffff; --ink-soft: #ffffff; --muted: #e6e6e6; --border: #ffffff;
  --cyan: #5ff5ff; --indigo: #9aa0ff;
}
body.hc .slide-overlay { background: rgba(0, 0, 0, .82); }
body.hc .partner { background: #000; color: #fff; border-color: #fff; }
body.hc .partner small { color: #ddd; }
body.hc a { text-decoration: underline; }

/* ---------------- STRONA PRAWNA (polityka) ---------------- */
.legal-page { background: var(--bg); }
.legal-page .site-header { position: sticky; background: rgba(11, 16, 32, .92); }
.legal-back {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: var(--card-2); color: var(--ink); font-weight: 600; font-size: .88rem; border: 1px solid var(--border);
}
.legal-back:hover { background: #233056; text-decoration: none; color: #fff; }
.legal-main { padding: calc(40px + var(--header-h)) 0 70px; }
.legal-container { max-width: 840px; }
.legal-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: #fff; margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal-main h2 { font-size: 1.3rem; color: var(--cyan); font-weight: 700; margin: 32px 0 12px; }
.legal-main p { margin-bottom: 14px; color: var(--ink-soft); }
.legal-main p strong, .legal-main li strong { color: #fff; }
.legal-main ul { margin: 0 0 14px 24px; color: var(--ink-soft); }
.legal-main li { margin-bottom: 8px; }
.legal-cookie-reset {
  padding: 11px 20px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--indigo), var(--cyan-dark)); color: #fff; font-weight: 700;
  font-size: .9rem; cursor: pointer; font-family: inherit; transition: filter .15s ease, transform .12s ease;
}
.legal-cookie-reset:hover { filter: brightness(1.08); transform: translateY(-2px); }
.legal-back-bottom { margin-top: 34px; font-weight: 600; }

/* ---------------- POMOC ZDALNA ---------------- */
.rd-cta-top { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.rd-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 16px 0 10px; }
.rd-dl {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; transition: border-color .15s ease, transform .12s ease, background .15s ease;
}
.rd-dl:hover { border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .06); transform: translateY(-2px); text-decoration: none; }
.rd-dl-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--logo-blue), var(--cyan-dark)); color: #fff;
}
.rd-dl-ico svg { width: 24px; height: 24px; }
.rd-dl-txt { display: flex; flex-direction: column; line-height: 1.25; }
.rd-dl-txt strong { color: #fff; font-size: 1.02rem; }
.rd-dl-txt small { color: var(--ink-soft); font-size: .82rem; }
.rd-dl-note { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.rd-steps { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 14px; }
.rd-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.rd-step .rd-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--logo-blue), var(--cyan-dark));
  box-shadow: 0 4px 14px rgba(7, 115, 255, .4);
}
.rd-step h3 { color: #fff; font-size: 1.08rem; font-weight: 700; margin: 2px 0 4px; }
.rd-step p { margin: 0; color: var(--ink-soft); }
.rd-final {
  margin-top: 36px; padding: 28px 26px; border-radius: var(--radius); text-align: center;
  background: rgba(7, 115, 255, .08); border: 1px solid rgba(34, 211, 238, .3);
}
.rd-final h2 { color: #fff; margin: 0 0 6px; }
.rd-final p { margin: 0 0 16px; }
.rd-final .rd-cta-top { justify-content: center; }

/* ---------------- STRONA BŁĘDU 404 ---------------- */
.error-main {
  min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 60px 0;
}
.error-box { max-width: 640px; text-align: center; }
.error-code {
  font-size: clamp(5rem, 22vw, 11rem); font-weight: 800; line-height: 1; margin: 0 0 10px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.error-box h1 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.error-box p { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(calc(-100% - var(--header-h) - 8px)); visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; }
  .nav-list > li > a { width: 100%; text-align: left; padding: 12px 14px; }
  .nav-cta { text-align: center; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .pricing-cta { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 9px; padding: 11px 16px; }
  .cookie-text { font-size: .8rem; line-height: 1.45; flex: 0 0 auto; }
  .cookie-actions { gap: 8px; }
  .cookie-btn { flex: 1 1 0; padding: 9px 14px; font-size: .85rem; }
  .slider-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .cookie-inner { padding: 9px 13px; gap: 7px; }
  .cookie-text { font-size: .74rem; line-height: 1.4; }
  .cookie-btn { padding: 8px 10px; font-size: .8rem; }
}

/* ---------------- REDUCED MOTION (WCAG 2.3.3) ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  /* Wyjątki: lekkie, pożądane efekty dekoracyjne pozostają aktywne także na telefonach
     z systemowym „ograniczeniem ruchu”. Można je wyłączyć w widżecie dostępności. */
  body:not(.no-motion) .slide.is-active .slide-bg img {
    animation: kenburns 14s ease-in-out infinite alternate !important;
  }
  body:not(.no-motion) .brand-word.is-typing::after {
    animation: tw-caret .65s step-end infinite !important;
  }
  body:not(.no-motion) .feature-card h3.is-typing::after {
    animation: tw-caret .7s step-end infinite !important;
  }
}
body.no-motion .slide.is-active .slide-bg img { animation: none; transform: scale(1.05); }
body.no-motion * { animation: none !important; }
