/* =========================
   MP Systems IT — One-page B2B Premium
   ========================= */

:root{
  --bg:#0B1220;
  --bg2:#0F172A;
  --text:#E5E7EB;
  --muted:#A7B0C0;
  --white:#F8FAFC;

  --accent:#3B82F6;
  --accent2:#22C55E;

  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);

  --radius: 18px;
  --shadow: 0 30px 80px rgba(0,0,0,.55);

  /* Assets */
  --hero-bg: url("assets/hero-city.svg");
}

a,
a:visited {
  color: inherit;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--white);
  background: var(--bg);
}

.skip-link{
  position:absolute;
  left:-999px;
  top: 10px;
  background: var(--white);
  color: #0B1220;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

.container{
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

/* HERO */
.hero{
  position:relative;
  min-height: 92vh;
  overflow:hidden;
  background:
    radial-gradient(1200px 800px at 70% 20%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(900px 700px at 10% 30%, rgba(34,197,94,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.hero__bg{
  position:absolute;
  inset:0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center right;
  background-repeat:no-repeat;
  background-attachment: fixed; /* subtle CSS parallax (desktop) */
  filter: saturate(1.08) contrast(1.05) brightness(.88);
  transform: scale(1.05);
  z-index:0;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(11,18,32,.92) 0%,
    rgba(11,18,32,.82) 38%,
    rgba(11,18,32,.40) 68%,
    rgba(11,18,32,.15) 100%);
  z-index:1;
}

.hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 500px at 72% 20%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(500px 400px at 25% 35%, rgba(255,255,255,.06), transparent 65%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  opacity:.22;
  z-index:2;
  pointer-events:none;
}

/* NAV */
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 56px);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11,18,32,.72), rgba(11,18,32,.18));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  color: var(--white);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
}
.brand__mark{ border-radius: 12px; }

.nav__toggle{
  display:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.nav__toggleIcon{
  width: 20px; height: 2px;
  background: rgba(255,255,255,.9);
  display:block;
  position:relative;
}
.nav__toggleIcon::before,
.nav__toggleIcon::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px; height: 2px;
  background: rgba(255,255,255,.9);
}
.nav__toggleIcon::before{ top:-6px; }
.nav__toggleIcon::after{ top: 6px; }

.nav__links{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav__links a{
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.nav__links a:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.96);
}

/* HERO layout */
.hero__inner{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 3vw, 44px);
  align-items:center;
  padding: 34px clamp(16px, 4vw, 56px) 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow{
  display:inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  letter-spacing: .25px;
  margin: 0 0 16px;
}

.hero__title{
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  margin: 0 0 16px;
  letter-spacing: -0.6px;
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}

.hero__lead{
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  max-width: 52ch;
}

.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(37,99,235,.78));
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(37,99,235,.28);
}
.btn--primary:hover{
  box-shadow: 0 22px 70px rgba(37,99,235,.38);
  transform: translateY(-1px);
}
.btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-1px);
}
.btn--sm{
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.trust{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.trust__item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
}

.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.dot--green{ background: var(--accent2); }
.dot--blue{ background: var(--accent); }
.dot--cyan{ background: #22D3EE; }

/* Right card */
.heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.heroCard::before{
  content:"";
  position:absolute;
  inset:-40px;
  background: radial-gradient(300px 220px at 70% 20%, rgba(37,99,235,.22), transparent 65%);
  opacity: .85;
  pointer-events:none;
}

.heroCard__title{
  margin: 0 0 8px;
  font-size: 18px;
}
.heroCard__text{
  margin: 0 0 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  font-size: 14px;
}

.heroCard__stats{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}
.stat{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}
.stat__kpi{
  font-weight: 800;
  letter-spacing:.6px;
}
.stat__label{
  color: rgba(255,255,255,.82);
  font-size: 13px;
  margin-top: 4px;
}

.heroCard__chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.chip{
  font-size: 12px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 10px;
  border-radius: 999px;
}
.heroCard__note{
  margin: 12px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

/* Sections */
.section{
  padding: 72px 0;
}
.section--light{
  background: #F8FAFC;
  color: #0B1220;
}
.section--light p{ color: #334155; }

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.sectionHead h2{ margin:0; font-size: 34px; }
.sectionHead p{ margin:0; max-width: 60ch; line-height:1.6; }

.grid--cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(2,6,23,.06);
}
.card h3{ margin: 0 0 8px; font-size: 16px; }
.card p{ margin:0; line-height: 1.6; }

.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: start;
}
h2{ margin:0 0 14px; font-size: 34px; }
.lead{
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 70ch;
}
.bullets{
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.86);
}
.bullets li{ margin: 10px 0; }

.ctaRow{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 18px;
}

/* Panel */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
}
.panel p{ color: rgba(255,255,255,.82); line-height:1.6; }
.panel__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.panelItem{
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}
.panelItem__kpi{ font-weight: 800; letter-spacing:.6px; }
.panelItem__label{ color: rgba(255,255,255,.82); font-size: 13px; margin-top:4px; }

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.step{
  display:flex;
  gap: 14px;
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(2,6,23,.06);
}
.step__n{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(37,99,235,.78));
}
.step h3{ margin: 0 0 6px; font-size: 16px; color:#0B1220; }
.step p{ margin: 0; line-height: 1.6; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:start;
}
.contact__cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.infoCard{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
  white-space: nowrap;
  overflow-x: auto;
}
.infoCard h3{ margin:0 0 8px; font-size: 16px; }
.infoCard p{ margin:0; color: rgba(255,255,255,.82); line-height:1.7; }
.infoCard a{ color: rgba(255,255,255,.92); }

.note{
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin-top: 16px;
}
.note code{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 2px 8px;
}

.form{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
}
.form label{
  display:block;
  font-weight: 600;
  font-size: 13px;
  margin: 10px 0 8px;
  color: rgba(255,255,255,.86);
}
.form input, .form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  outline:none;
  font-size: 14px;
}
.form input:focus, .form textarea:focus{
  border-color: rgba(37,99,235,.6);
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}
.form__hint{
  margin: 10px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  line-height: 1.5;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(11,18,32,.86), rgba(11,18,32,1));
  padding: 28px 0;
}
.footer__inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 14px;
  align-items:start;
}
.footer__brand{
  display:flex;
  gap: 10px;
  align-items:center;
}
.footer__text{
  margin: 10px 0 0;
  color: rgba(255,255,255,.74);
  line-height:1.6;
}
.footer__links{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.footer__links a{
  color: rgba(255,255,255,.84);
  text-decoration:none;
}
.footer__links a:hover{ color: rgba(255,255,255,.96); }
.footer__copy{
  color: rgba(255,255,255,.62);
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:flex-end;
  align-items:center;
}
.sep{ opacity:.5; }

/* Mobile */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid--cards{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__copy{ justify-content:flex-start; }
  .nav__toggle{ display:inline-flex; }
  .nav__links{
    position:absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(11,18,32,.92);
    backdrop-filter: blur(10px);
  }
  .nav__links.is-open{ display:flex; }
  .nav__links a{ padding: 12px 12px; }
}

@media (max-width: 680px){
  .grid--cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .contact__cards{ grid-template-columns: 1fr; }
  .btn{ width: 100%; }
}

/* Parallax fallback for mobile */
@media (hover: none) and (pointer: coarse){
  .hero__bg{ background-attachment: scroll; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn{ transition:none; }
  .hero__bg{ background-attachment: scroll; }
}


/* HERO right area replacement (fills space after removing business card) */
.heroPanel{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.heroPanel__card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.heroPanel__card::before{
  content:"";
  position:absolute;
  inset:-40px;
  background: radial-gradient(320px 220px at 70% 18%, rgba(59,130,246,.22), transparent 65%);
  opacity: .85;
  pointer-events:none;
}
.heroPanel__card--accent::before{
  background: radial-gradient(320px 220px at 70% 18%, rgba(34,211,238,.18), transparent 65%);
}

.heroPanel__title{
  margin: 0 0 8px;
  font-size: 16px;
  position:relative;
  z-index:1;
}
.heroPanel__text{
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  font-size: 13px;
  position:relative;
  z-index:1;
}

.heroList{
  margin: 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
  position:relative;
  z-index:1;
}
.heroList li{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.4;
}
.heroList li::before{
  content:"";
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,211,238,.95);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
  margin-right: 10px;
  vertical-align: middle;
}

.heroSteps{
  margin: 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap: 10px;
  position:relative;
  z-index:1;
}
.heroSteps li{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.heroSteps__n{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  color: #0B1220;
  background: linear-gradient(135deg, rgba(34,211,238,1), rgba(59,130,246,.88));
}

.heroPanel__chips{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* === HERO: lista usług (B2B) — spójny wygląd linków, bez "visited purple" === */
.heroList a,
.heroList a:visited {
  color: inherit;          /* albo konkretny var, jeśli masz np. var(--text) */
  text-decoration: none;   /* jeśli chcesz bez podkreślenia */
}

.heroList a:hover,
.heroList a:focus-visible {
  text-decoration: underline;   /* lub inne, zgodnie z sekcją "Jak pracujemy" */
  outline: none;
}

/* === Kontakt: bez poziomego scrolla === */
.contact,
.contact__info,
.contact__cards,
.infoCard {
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.infoCard p,
.infoCard a,
.infoCard span,
.infoCard strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.infoCard a {
  text-decoration-thickness: 1px;
}

/* === FIX: kontrast tekstu w kartach (ERP sekcja) === */
.card {
  color: #1f2937;
}

.card h3 {
  color: #0B1220;
  font-weight: 600;
}

.card p {
  color: #374151;
}

/* jeśli gdzieś dziedziczy z .section */
.section--light .card,
.section--light .card h3,
.section--light .card p {
  color: inherit;
}