:root{
  --red:#e0002a;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --max: 1040px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;              /* <-- wymusza białe tło */
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TOPBAR: białe tło ===== */
.topbar{
  background:#fff;              /* <-- białe */
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width: 240px;
}
.brand img{
  height:42px;
  width:auto;
  display:block;
}
.brand__tagline{
  font-size:14px;
  color:var(--muted);
  font-weight:600;
}

.topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  text-align:right;
}
.toplink{
  font-weight:700;
}
.dot{ color: #cbd5e1; }
.muted{ color:var(--muted); font-weight:600; }

/* ===== cienki czerwony pasek jak WP ===== */
.redline{
  height:4px;                   /* <-- cienki pasek */
  background: var(--red);
}

/* ===== menu na białym tle ===== */
.menu{
  background:#fff;
  border-bottom: 1px solid var(--border);
}
.menu__inner{
  display:flex;
  gap:16px;
  align-items:center;
  padding: 10px 0;
  flex-wrap:wrap;
}
.menu a{
  font-weight:700;
  color:#1f2937;
  padding: 6px 8px;
  border-radius:8px;
}
.menu a:hover{
  background:#f3f4f6;
  text-decoration:none;
}
.menu__cta{
  margin-left:auto;
  background: var(--red);
  color:#fff !important;
}
.menu__cta:hover{
  background:#c30024 !important;
}

/* ===== main ===== */
.main{
  background:#fff;
  padding: 22px 0 44px;
}
.article{
  max-width: 820px;
}
h1{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height:1.15;
  margin: 10px 0 12px;
  letter-spacing:-0.3px;
}
.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* hero */
.hero{
  margin: 18px 0 14px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.hero img{ width:100%; display:block; }
.hero figcaption{
  padding:10px 12px;
  font-size:13px;
  color:var(--muted);
  border-top:1px solid var(--border);
}

/* quote */
.quote{
  margin: 18px 0;
  padding: 14px 14px;
  border-left: 4px solid var(--red);
  background:#fff7f8;
  border-radius:10px;
  font-weight:700;
}

/* tiles */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 10px;
}
.tile{
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  background:#fff;
}
.tile h3{ margin:0 0 6px; font-size:16px; }
.tile p{ margin:0; color:#334155; font-size:14px; }

/* steps */
.steps{ padding-left: 18px; }
.steps li{ margin:6px 0; }

/* footer red */
.footer{
  background: var(--red);
  color:#fff;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding: 18px 0;
}

/* responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .menu__cta{ margin-left:0; }
}
/* ===== HERO SLIDER ===== */
.hero-slider{
  position: relative;
  margin: 18px 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.hero-slider .slides{
  position: relative;
  height: 420px;
}

.hero-slider .slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}

.hero-slider .slide.active{
  opacity: 1;
}

/* strzałki */
.hero-slider .nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.hero-slider .nav:hover{
  background: rgba(0,0,0,.65);
}

.hero-slider .prev{ left: 12px; }
.hero-slider .next{ right: 12px; }

/* podpis */
.hero-slider .caption{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* mobile */
@media (max-width: 700px){
  .hero-slider .slides{ height: 260px; }
}
/* ===== REFERENCJE ===== */
.references .ref-tile{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.references .ref-tile a{
  margin-top:12px;
  font-weight:700;
  color:var(--red);
}

.references .ref-tile a:hover{
  text-decoration:underline;
}
.label{
  font-weight: 600;
  color: var(--muted);
  margin-right: 2px;
}