:root{
  --bg:#f5f9ff;
  --bg2:#ffffff;
  --surface:#ffffff;
  --surface2:#f1f6ff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 18px 40px rgba(15,23,42,.10);
  --shadow2:0 10px 22px rgba(15,23,42,.08);
  --radius:18px;
  --radius2:14px;
  --max:1120px;
  --blue:#1d4ed8;
  --blue2:#3b82f6;
  --blueSoft:rgba(29,78,216,.10);
  --focus:rgba(59,130,246,.35);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 500px at 95% 5%, rgba(29,78,216,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2) 42%);
  line-height:1.65;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

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

header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
}

.navbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.logo{
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--blue);
}
.sublogo{
  color:var(--muted2);
  font-weight:600;
  font-size:.92rem;
}

nav{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
}

.navbar a{
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:600;
  border:1px solid transparent;
}
.navbar a:hover{
  background:var(--surface2);
  border-color:rgba(29,78,216,.10);
  color:var(--text);
}
.navbar a.active{
  background:var(--blueSoft);
  border-color:rgba(29,78,216,.18);
  color:var(--blue);
}

.lang-toggle{
  display:flex; align-items:center; gap:8px;
  margin-left:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.7);
  color:var(--muted);
  font-weight:700;
  cursor:pointer;
}
.lang-toggle:hover{border-color:rgba(29,78,216,.22)}
.lang-toggle:focus{outline:3px solid var(--focus); outline-offset:2px}

main{padding-bottom:40px}

section.section{padding:56px 0}
.hero{padding:54px 0 32px}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr; }
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
}

.hero-card{
  padding:26px 24px;
  position:relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background:radial-gradient(500px 220px at 20% 0%, rgba(59,130,246,.16), transparent 65%),
             radial-gradient(520px 260px at 95% 20%, rgba(29,78,216,.12), transparent 60%);
  pointer-events:none;
}
.hero-card > *{position:relative}

.kicker{
  display:flex; align-items:center; gap:10px;
  font-weight:700; color:var(--muted);
  margin-bottom:10px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background:linear-gradient(135deg, var(--blue2), var(--blue));
  box-shadow:0 8px 18px rgba(29,78,216,.25);
}

h1{
  margin:0 0 10px;
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  line-height:1.15;
  letter-spacing:-.03em;
}
h2{
  margin:0 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing:-.02em;
  color:var(--blue);
}
h3{
  margin:0 0 10px;
  font-size:1.02rem;
  letter-spacing:-.01em;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:1.05rem;
}

.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-weight:800;
}
.btn svg{width:18px; height:18px; opacity:.85}
.btn:hover{border-color:rgba(29,78,216,.22); background:var(--surface2)}
.btn.primary{
  background:linear-gradient(135deg, var(--blue2), var(--blue));
  border-color:rgba(29,78,216,.35);
  color:#fff;
  box-shadow:0 16px 34px rgba(29,78,216,.22);
}
.btn.primary:hover{filter:brightness(1.02)}

.profile-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
}
.profile-top{
  display:flex; gap:14px; align-items:center;
}
.avatar{
  width:88px; height:88px; border-radius:18px;
  object-fit:cover;
  border:1px solid rgba(15,23,42,.10);
}
.profile-meta{min-width:0}
.profile-name{font-weight:900; margin:0; letter-spacing:-.02em}
.profile-role{margin:4px 0 0; color:var(--muted); font-weight:700; font-size:.95rem}

.badges{display:flex; flex-wrap:wrap; gap:8px}
.badge{
  font-size:.85rem;
  font-weight:800;
  padding:8px 10px;
  border-radius:999px;
  background:var(--surface2);
  border:1px solid rgba(29,78,216,.10);
  color:var(--muted);
}

.panel{padding:18px 18px 6px}
.clean{margin:0; padding-left:18px; color:var(--muted)}
.clean li{margin:0 0 10px}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 920px){ .grid-3{grid-template-columns:1fr} }

.feature{padding:16px 16px 14px}
.iconbox{
  width:42px; height:42px;
  border-radius:14px;
  background:var(--blueSoft);
  border:1px solid rgba(29,78,216,.14);
  display:flex; align-items:center; justify-content:center;
  color:var(--blue);
  margin-bottom:10px;
}
.iconbox svg{width:22px; height:22px}

.sep{
  height:1px; background:var(--border);
  margin:32px 0 0;
}

.tools-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
  margin-top:16px;
}
.tool{
  padding:14px 14px 12px;
  text-align:left;
}
.tool strong{display:block; margin-bottom:6px}
.tool small{color:var(--muted2); font-weight:600}

.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 920px){ .contact-wrap{grid-template-columns:1fr} }

.contact-card{padding:18px}
.contact-form{max-width:none}
label{display:block; font-weight:800; margin:0 0 6px; color:var(--muted)}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;
  font:inherit;
  color:var(--text);
}
input:focus, textarea:focus{
  outline:3px solid var(--focus);
  border-color:rgba(59,130,246,.45);
}
textarea{min-height:140px; resize:vertical}
.form-actions{display:flex; gap:12px; align-items:center; flex-wrap:wrap}

.small-note{color:var(--muted2); font-weight:600; font-size:.92rem}

footer{
  padding:22px 0;
  border-top:1px solid var(--border);
  background:rgba(255,255,255,.7);
  color:var(--muted2);
  font-weight:600;
}

.tools{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:16px;
}
@media (max-width: 920px){ .tools{grid-template-columns:1fr} }

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:800;
  font-size:.92rem;
  color:var(--muted);
}

.form{padding:18px}
.formgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 920px){ .formgrid{grid-template-columns:1fr} }

.note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--surface2);
  border:1px solid rgba(29,78,216,.10);
  color:var(--muted);
  font-weight:700;
}

.footer .cols{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Header class mapping (HTML uses .nav / .navlinks / .pill) */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:-.02em;
  color:var(--text);
}
.brand .logo{
  width:34px; height:34px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--blue2), var(--blue));
  box-shadow:0 14px 28px rgba(29,78,216,.22);
}
.brand small{
  display:block;
  font-weight:800;
  color:var(--muted2);
  margin-top:2px;
  font-size:.82rem;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.navlinks a{
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:800;
  border:1px solid transparent;
}
.navlinks a:hover{
  background:var(--surface2);
  border-color:rgba(29,78,216,.10);
  color:var(--text);
}
.navlinks a.active{
  background:var(--blueSoft);
  border-color:rgba(29,78,216,.18);
  color:var(--blue);
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.7);
  color:var(--muted);
  font-weight:900;
  cursor:pointer;
}
.pill svg{width:18px;height:18px;opacity:.8}
.pill:hover{border-color:rgba(29,78,216,.22); background:var(--surface2)}
.pill:focus{outline:3px solid var(--focus); outline-offset:2px}


/* Side profile card */
.side{padding:18px}
.side .avatar{display:flex; gap:12px; align-items:center}
.side .avatar img{
  width:86px; height:86px; border-radius:18px;
  object-fit:cover;
  border:1px solid rgba(15,23,42,.10);
}
.side .name{margin:0; font-weight:900; letter-spacing:-.02em}
.side .role{margin:4px 0 0; color:var(--muted); font-weight:800; font-size:.92rem}
.meta{margin-top:12px; display:grid; gap:10px}
.row{display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-weight:700}
.row svg{width:18px; height:18px; margin-top:2px; color:var(--blue); opacity:.9; flex:0 0 auto}
.badges{margin-top:14px; display:flex; flex-wrap:wrap; gap:8px}

/*
  MFBC Light-Blue Redesign – Compatibility Patch
  ------------------------------------------------
  Problem: you pasted the NEW styles.css into the OLDER HTML version.
  The new CSS expects different class names (e.g., .navbar, .profile-card).
  Result: elements such as the profile box (.avatar/.meta) collapse/overlap.

  Fix: keep your light-blue styles as-is, and append this patch at the end.
  Alternatively: replace your styles.css with the light-blue version that already includes this patch.
*/

/* 1) Map old header structure (.nav / .navlinks / .pill) to new look */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* old brand block */
.brand{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.brand .logo{
  width:34px;
  height:34px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--blue2), var(--blue));
  box-shadow:0 14px 26px rgba(29,78,216,.22);
}
.brand span{font-weight:800; letter-spacing:-.02em}
.brand span small{display:block; color:var(--muted2); font-weight:600; font-size:.92rem; margin-top:2px}

.navlinks{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.navlinks a{
  padding:10px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:600;
  border:1px solid transparent;
}
.navlinks a:hover{
  background:var(--surface2);
  border-color:rgba(29,78,216,.10);
  color:var(--text);
}
.navlinks a.active{
  background:var(--blueSoft);
  border-color:rgba(29,78,216,.18);
  color:var(--blue);
}

/* language button (old: .pill) */
.pill{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.7);
  color:var(--muted);
  font-weight:700;
  cursor:pointer;
}
.pill:hover{border-color:rgba(29,78,216,.22)}
.pill:focus{outline:3px solid var(--focus); outline-offset:2px}
.pill svg{width:18px; height:18px}

/* 2) Fix profile card (old: aside.card.side + .avatar wrapper + .meta rows) */
.side{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
}

/* In the older HTML, .avatar is a WRAPPER, not the <img>. */
.side .avatar{
  display:flex;
  gap:14px;
  align-items:center;
}
.side .avatar img{
  width:88px;
  height:88px;
  border-radius:18px;
  object-fit:cover;
  border:1px solid rgba(15,23,42,.10);
}
.side .avatar > div{min-width:0}
.side .name{font-weight:900; margin:0; letter-spacing:-.02em}
.side .role{margin:4px 0 0; color:var(--muted); font-weight:700; font-size:.95rem}

/* Meta rows: prevent overlap and force proper alignment */
.meta{display:flex; flex-direction:column; gap:12px}
.meta .row{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.meta .row svg{
  width:22px;
  height:22px;
  flex:0 0 22px;
  color:var(--blue2);
  margin-top:2px;
}
.meta .row span{
  display:block;
  font-weight:700;
  color:var(--muted);
  line-height:1.4;
}

/* 3) Minor spacing guardrails for the hero right column */
.hero-grid{align-items:stretch}
@media (max-width: 920px){
  .side{order:2}
}
/* --- FIX: rola/linia "Tłumacz EN↔PL • Business Consulting" nie może się rozsypać --- */
.role,
.profile-role{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  line-height:1.25;
}

/* Jeśli w starszym HTML masz <br> w roli — ukryj je */
.role br,
.profile-role br{ display:none; }

/* Jeżeli separator jest osobnym elementem (np. span/div) – niech będzie inline */
.role .sep,
.role .bullet,
.role .dot,
.profile-role .sep,
.profile-role .bullet,
.profile-role .dot{
  display:inline;
  margin:0 2px;
  opacity:.7;
}

/* Jeżeli w roli są jakieś blokowe dzieci (div/p) – spłaszcz je do inline */
.role > div,
.role > p,
.role > span,
.profile-role > div,
.profile-role > p,
.profile-role > span{
  display:inline;
}

/* (Opcjonalnie) jeśli rola „pływa” pod zdjęciem przez za małą szerokość kolumny */
@media (min-width: 921px){
  .hero-grid{ grid-template-columns: 1.25fr .85fr; } /* lekko szersza prawa kolumna */
}