/* =========================================================
   UNESCO Chair – unified stylesheet (banner = white, navy text)
   ========================================================= */

/* ---------- 0) Variables ---------- */
:root{
  /* Brand */
  --blue-700:#0f58a9;
  --blue-800:#0b4e94;
  --blue-900:#083e77;
  --text:#0a1a2b;

  /* Layout */
  --maxw:1100px;

  /* Banner colors (default = white banner, navy text + blue network) */
  --navy:#005ddf;        /* tytuł/teksty na banerze */
  --net-blue:#1503b8;    /* linie/węzły/trójkąty */
  --nn-opacity:.12;      /* tło sieci na podstronach */

  /* Banner geometry */
  --mast-side-min:260px;
  --mast-center-min:520px;
  --mast-gap:clamp(28px,3.8vw,56px);  /* JEDEN, równy gap po bokach tytułu */

  /* Optyczne mikro-korekty tylko na krawędziach przy tytule
     (ujemne = bliżej tytułu, dodatnie = dalej) */
  --edge-left-trim:-36px;   /* ostatnia karta w .logo-stack-left  */
  --edge-right-trim:-12px;  /* pierwsza  karta w .logo-stack-right */

  /* Teksty */
  --copy-align:justify;
}

/* ---------- 1) Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}
.container{ max-width:var(--maxw); margin:0 auto; padding:0 16px; }

/* ---------- 2) Topbar / Navbar ---------- */
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; background:#fff; border-bottom:1px solid #e6eefc; }
.topbar img{ height:56px; width:auto; display:block; }

.navbar{ background:var(--blue-800); color:#fff; position:relative; }
.navbar .row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.nav-inner{ display:flex; gap:22px; white-space:nowrap; overflow-x:auto; padding:12px 0; justify-content:center; }
.navbar a{ color:#fff; text-decoration:none; font-weight:700; font-size:clamp(12px,1.35vw,16px); }
.navbar a:hover,.navbar a:focus{ text-decoration:underline; }
.navbar a.active{ border-bottom:2px solid #fff; padding-bottom:2px; }

.menu-toggle{ display:none; position:absolute; right:16px; top:10px; background:transparent; border:0; color:#fff; font-size:24px; cursor:pointer; }

@media (max-width:980px){
  .row{ flex-direction:column; align-items:stretch; }
  .row .topline{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .nav-inner{ display:none; flex-direction:column; align-items:center; }
  .navbar.open .nav-inner{ display:flex; }
  .menu-toggle{ display:block; }
}

/* ---------- 3) Language toggle ---------- */
.lang-toggle{ display:flex; gap:12px; align-items:center; }
.flag-btn{
  width:72px; height:48px; padding:0;
  border:2px solid rgba(255,255,255,.9);
  border-radius:12px; background:rgba(18,101,226,.08);
  display:inline-flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:pointer;
  opacity:.45; filter:grayscale(30%);
  transition: opacity .15s ease, filter .15s ease, transform .15s ease;
}
.flag-btn svg{ width:100%; height:auto; display:block; }
.flag-btn:hover{ opacity:.85; filter:none; }
.flag-btn.active{ opacity:1; filter:none; background:#fff; border-color:#fff; }
.flag-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

/* ---------- 4) Masthead (banner) ---------- */
.masthead{
  width:100%;
  text-align:center;
  position:relative; overflow:hidden;
}
.masthead .inner{ padding: clamp(36px, 8vw, 72px) 0 clamp(24px, 6vw, 48px); }
.masthead .container{ position:relative; z-index:2; }

.masthead--white{
  background:#ffffff !important;
  color:var(--navy);
  --nn-color: var(--net-blue);
}
.masthead--white .mast-center h1,
.masthead--white .mast-sub,
.masthead--white .mast-loc{ color:var(--navy); }

/* Tło (siatka / trójkąty) */
.nn-bg{ position:absolute; inset:0; pointer-events:none; opacity:.22; z-index:0; }
.nn-svg{ width:100%; height:100%; display:block; }

/* --- układ: [lewe logo] [GAP] [tytuł] [GAP] [prawe logo] --- */
.mast-grid-balanced{
  display:grid;
  grid-template-columns:
    minmax(var(--mast-side-min), 1fr)
    var(--mast-gap)                             /* GAP – lewy  */
    minmax(var(--mast-center-min), 1.35fr)      /* TYTUŁ       */
    var(--mast-gap)                             /* GAP – prawy */
    minmax(var(--mast-side-min), 1fr);
  column-gap:0; align-items:center; position:relative; z-index:1;
}

.masthead .logo-stack-left  { grid-column:1; display:flex; justify-content:flex-end;  align-items:center; }
.masthead .mast-center      { grid-column:3; }
.masthead .logo-stack-right { grid-column:5; display:flex; justify-content:flex-start; align-items:center; gap: clamp(12px,1.8vw,22px); }

/* „Karty” logo */
.masthead .logo-card{ margin:0; padding:0; background:transparent; border:0; box-shadow:none; position:relative; z-index:2; }
.masthead .logo-card img, .masthead .logo-card svg{ display:block; width:auto; height:auto; }

/* Docelowe wielkości logotypów */
.masthead .logo-stack-left  .logo-card img,
.masthead .logo-stack-left  .logo-card svg{ max-height:140px; }
.masthead .logo-stack-right .logo-card img,
.masthead .logo-stack-right .logo-card svg{ max-height:110px; }

/* OPTYCZNA kompensacja – tylko krawędzie przy tytule */
.masthead .logo-stack-left  .logo-card:last-child{  margin-right: var(--edge-left-trim); }
.masthead .logo-stack-right .logo-card:first-child{ margin-left:  var(--edge-right-trim); }

/* Tytuł */
.mast-center, .mast-center h1{ margin:0; padding:0; max-width:none; }
.mast-center h1{
  line-height:1.08; font-weight:900; text-transform:uppercase; letter-spacing:.02em;
  font-size: clamp(28px, 3.6vw, 52px);
  padding: 0 5px;
}
.mast-sub{ opacity:.95; font-weight:500; margin:12px auto 0; font-size:clamp(12px, 1.8vw, 18px); }
.mast-loc{ opacity:.95; margin:2px auto 0; font-size:clamp(12px, 1.6vw, 17px); }

/* Mobile */
@media (max-width:960px){
  .mast-grid-balanced{ grid-template-columns:1fr; row-gap:12px; }
  .masthead .logo-stack-left,
  .masthead .logo-stack-right{ justify-content:center; }
  .masthead .logo-stack-left  .logo-card:last-child{ margin-right:0; }
  .masthead .logo-stack-right .logo-card:first-child{ margin-left:0; }
  /*.masthead .logo-stack-left  .logo-card img{ max-height:92px; }
  .masthead .logo-stack-right .logo-card img{ max-height:86px; }*/
}

/* ---------- 5) Animacje/kolory siatki ---------- */
.dash, .nn-dash{
  stroke: var(--net-blue);
  stroke-dasharray: 8 12;
  stroke-dashoffset: 0;
  animation: dash-move 22s linear infinite;
}
@keyframes dash-move{ to{ stroke-dashoffset:-420; } }

.nn-nodes use, .nn-nodes circle{
  fill: var(--net-blue);
  transform-origin:center;
  animation: node-pulse 5s ease-in-out infinite;
  opacity:.7;
}
@keyframes node-pulse{
  0%,100%{ transform:scale(1);   opacity:.55; }
  50%    { transform:scale(1.35); opacity:.95; }
}

.nn-tris use{
  fill: var(--net-blue);
  opacity:.28;
  transform-origin:center;
  animation: tri-float 12s ease-in-out infinite;
}
.nn-tris use:nth-child(3n){ animation-duration:14s; animation-delay:.6s; }
.nn-tris use:nth-child(4n){ animation-duration:16s; animation-delay:1.2s; }
@keyframes tri-float{
  0%,100%{ transform:translateY(0) rotate(0); }
  50%    { transform:translateY(-14px) rotate(6deg); }
}

/* ---------- 6) Tło sieci na podstronach ---------- */
.nn-page{ position:relative; background:#fff; }
.nn-page > *:not(.nn-page-bg){ position:relative; z-index:1; }
.nn-page-bg{
  position:absolute; inset:0; pointer-events:none; opacity:var(--nn-opacity);
  mask-image: radial-gradient(120% 100% at 50% 0%, #0b07da 65%, transparent 100%);
}
.nn-page-svg{ width:100%; height:100%; display:block; }

/* ---------- 7) Sekcje / typografia ---------- */
.section{ padding:32px 0 40px; }
.section h2{ margin:0 0 18px; color:#123; font-size:28px; }
.section p{ line-height:1.6; margin:0 0 12px; }

.hero-quote{
  font-family:'Merriweather','Playfair Display',serif;
  font-weight:800;
  font-size:clamp(20px, 2.6vw, 32px);
  line-height:1.25;
  text-align:center;
  letter-spacing:.01em;
  max-width:1000px;
  margin:0 auto 48px;
}
.quote-author{
  text-align:center;
  margin-top:12px;
  font-weight:800;
  font-size:clamp(14px,1.2vw,18px);
  letter-spacing:.02em;
}

.about-text{ max-width:980px; margin:0 auto; }
.about-text p{ margin:0 0 12px; line-height:1.75; font-size:clamp(14px, 1.2vw, 18px); color:#2b3a55; }

/* Teksty – wspólne wyrównanie (PL/EN) */
.about-text p,
.news-text,
.news-card p,
.event-announce p,
.focus-areas li{
  text-align: var(--copy-align);
  text-justify: inter-word;
  hyphens: auto;
}
h1,h2,h3{ text-wrap: balance; }

/* ---------- 8) Focus areas ---------- */
.focus-areas{ max-width:1100px; margin:0 auto; }
.focus-areas h3{ margin:0 0 12px; color:#123; font-size:28px; }
.focus-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
@media (max-width:820px){ .focus-grid{ grid-template-columns:1fr; } }
.focus-areas ul{ list-style:none; padding:0; margin:0; }
.focus-areas li{
  display:flex; align-items:flex-start; gap:10px;
  margin:0 0 12px; font-size:clamp(14px, 1.2vw, 18px); line-height:1.6;
}
.focus-areas li::before{ content:"▶"; display:inline-block; width:1.2em; transform:translateY(2px); color:#1b3ea7; }

/* ---------- 9) Team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:980px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .team-grid{ grid-template-columns:1fr; } }

.person-card{ border:1px solid #e7eefb; border-radius:16px; padding:16px; box-shadow:0 2px 8px rgba(10,30,60,.06); position:relative; }
.person-photo{
  width:100%; height:260px; object-fit:contain; background:#f1f5ff; border-radius:14px; display:block; position:relative; z-index:1;
}
@media (max-width:980px){ .person-photo{ height:240px; } }
@media (max-width:560px){ .person-photo{ height:220px; } }
.person-name{ margin:12px 0 4px; font-weight:800; font-size:18px; color:#0b2440; }
.person-role{ margin:0 0 10px; font-weight:600; font-size:14px; color:#2d4b74; }
.person-bio{ margin:0; font-size:14px; line-height:1.6; color:#405068; text-align: justify; }

/* ---------- 10) Events / Newsroom ---------- */
.event-announce{
  background:#f5f9ff; border:1px solid #d8e6ff; border-left:4px solid #0f58a9;
  border-radius:12px; padding:18px 20px; box-shadow:0 2px 10px rgba(10,30,60,.04);
  max-width:var(--maxw); margin:12px 0 24px;
}
.event-announce h2{ margin:0 0 10px; font-size:22px; color:#0b2a55; }
.event-announce p{ margin:0 0 10px; line-height:1.7; }

/* ---------- 11) Contact ---------- */
.contact-card{
  background:#fff; border:1px solid #e4ecff; border-radius:16px;
  box-shadow:0 8px 24px rgba(10,30,60,.06); padding:20px 22px;
}
.contact-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:24px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-name{ margin:0 0 6px; font-weight:800; color:#0b2a55; }
.contact-org,.contact-addr{ margin:0 0 8px; color:#20324a; }
.contact-row{ display:flex; align-items:center; gap:10px; margin:8px 0; font-size:16px; }
.contact-icon{ width:22px; height:22px; color:#0f58a9; display:inline-flex; align-items:center; justify-content:center; }
.contact-row a{ color:#0f58a9; text-decoration:none; }
.contact-row a:hover{ text-decoration:underline; }
.map-link{ font-weight:600; }
.contact-social-wrap{ margin-top:6px; }
.contact-social-label{ margin-bottom:8px; font-weight:700; color:#20324a; }
.contact-social{ display:flex; gap:12px; }
.social{
  width:36px; height:36px; border-radius:10px; background:#eef4ff; color:#0f58a9;
  display:inline-flex; align-items:center; justify-content:center;
  transition:transform .15s ease, background .15s ease;
}
.social:hover{ transform:translateY(-2px); background:#e2ecff; }

/* ---------- 12) Footer & Cookies ---------- */
footer{ background:var(--blue-900); color:#cfe3ff; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; font-size:14px; }
a.footer-link{ color:#fff; text-decoration:none; }
a.footer-link:hover{ text-decoration:underline; }

.cookie-banner{
  position:fixed; bottom:16px; left:50%; transform:translateX(-50%);
  width:min(980px, calc(100% - 32px));
  background:#0b1f3a; color:#fff; padding:14px 16px; border-radius:12px;
  box-shadow:0 6px 22px rgba(0,0,0,.25); display:none; z-index:9999;
}
.cookie-banner .row{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cookie-banner p{ margin:0; line-height:1.5; }
.cookie-actions{ display:flex; gap:10px; }
.cookie-btn{ border:0; border-radius:10px; padding:8px 12px; cursor:pointer; font-weight:700; }
.cookie-accept{ background:#2bd67b; color:#08221a; }
.cookie-more{ background:#ffffff; color:#0b1f3a; }

/* ---------- 13) Helpers ---------- */
.hidden{ display:none!important; }

/* =========================================================
   14) WARIANT EG-AI (niebieski napis + niebieskie tło)
   ========================================================= */
.masthead{
  width:100%;
  text-align:center;
  position:relative; overflow:hidden;
  background:#ffffff;
  color:#0f1d35;
}
/* === BANER — wyrównanie odstępów przy tytule (visual balance) === */

/* 1) Te wartości możesz lekko skorygować (+/- 8–12px) pod swój gust */
:root{
  --edge-left-trim-fix:  -72px; /* dosuń lewe logo bliżej tytułu (większa wartość ujemna = bliżej) */
  --edge-right-trim-fix: -8px;  /* lekkie dosunięcie pierwszego logo po prawej */
}

/* 2) Usuń wcześniejsze „zerowanie” marginesów, jeśli gdzieś było */
.masthead .logo-stack-left  .logo-card:last-child,
.masthead .logo-stack-right .logo-card:first-child{
  margin: 0; /* reset */
}

/* 3) Zastosuj docelowe, NIERÓWNE przycięcia (tak, by wizualnie wyszło równo) */
.masthead .logo-stack-left  .logo-card:last-child{  margin-right: var(--edge-left-trim-fix)  !important; }
.masthead .logo-stack-right .logo-card:first-child{ margin-left:  var(--edge-right-trim-fix) !important; }

/* 4) (opcjonalnie) minimalnie zredukuj przerwę tylko po lewej stronie
      – jeśli nadal widzisz, że lewa jest za duża, odkomentuj poniższe: */
/*
.masthead .logo-stack-left{ margin-right: calc(-0.25 * var(--logoGap)); }
*/

/* Mobile: zero korekt, wszystko na środku */
@media (max-width: 960px){
  /*.masthead .logo-stack-left  .logo-card:last-child,
  .masthead .logo-stack-right .logo-card:first-child{
    margin: 0 !important;
  }*/
}


/* =========================================================
   15) BIO chip + modal
   ========================================================= */
.bio-chip{
  position:absolute; top:12px; right:12px;
  display:inline-block; padding:6px 12px;
  background: var(--blue-700); color:#fff; text-decoration:none;
  font-weight:800; font-size:12px; letter-spacing:.06em;
  border-radius:999px; text-transform:uppercase; border:0; cursor:pointer;
  box-shadow:0 4px 12px rgba(15,88,169,.18); z-index:5;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.bio-chip:hover{ transform:translateY(-1px); background:var(--blue-800); }
.bio-chip:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

/* MODAL */
#bio-modal{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(10,18,33,.58); padding:24px; z-index:9999;
}
#bio-modal.open{ display:flex; }

#bio-modal .bio-dialog{
  width:min(92vw,780px); max-height:86vh; overflow:auto;
  background:#fff; color:#0b1f3a; border-radius:16px;
  box-shadow:0 12px 42px rgba(10,20,40,.35);
}
#bio-modal .bio-head{
  display:flex; align-items:center; gap:14px; padding:16px 18px; border-bottom:1px solid #e6eefc;
}
#bio-modal .bio-title{ margin:0; font-weight:800; font-size:18px; }
#bio-modal .bio-role{ margin:0; color:#43608a; font-weight:600; font-size:14px; }
#bio-modal .bio-close{
  margin-left:auto; background:#eef4ff; border:0; border-radius:10px; padding:8px 10px;
  font-weight:800; cursor:pointer;
}
#bio-modal .bio-body{ display:flex; gap:18px; padding:16px 18px; }
#bio-modal .bio-photo{
  width:120px; height:120px; object-fit:cover; border-radius:12px; background:#f1f5ff; flex:0 0 auto;
}
#bio-modal .bio-text{ line-height:1.7; font-size:15px; }
@media (max-width:680px){
  #bio-modal .bio-body{ flex-direction:column; }
  #bio-modal .bio-photo{ width:100%; height:auto; }
}

/* Wybór wersji językowej treści bio wg <html lang="…"> */
html[lang^="pl"] .bio-en{ display:none !important; }
html[lang^="en"] .bio-pl{ display:none !important; }

details.bio-details summary { list-style: none; cursor: pointer; }
details.bio-details summary::-webkit-details-marker { display: none; }


/* --- Bio: wyrównanie i czytelność --- */
#bio-modal .bio-text,
#bio-modal .bio-text p,
#bio-modal .bio-text li{
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;              /* działa najlepiej, gdy <html lang="pl|en"> i <article lang="…"> */
}

/* przyjemna szerokość wiersza + odstępy */
#bio-modal .bio-text{
  max-width: 70ch;            /* czytelna długość linii */
  margin: 0 auto;
  line-height: 1.75;
  font-size: 15px;
}

#bio-modal .bio-text p + p{ margin-top: .6em; }
#bio-modal .bio-text ul{ margin: .75em 0 .75em 1.2em; }

/* nagłówek sekcji w bio */
#bio-modal .bio-text h4{
  margin: 1em 0 .4em;
  font-weight: 800;
}

/* Wariant prosty: zdjęcie nad tekstem i mniejsze */
.news-cover{
  width: min(560px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 12px;   /* wyśrodkuj */
  border-radius: 12px;
  object-fit: cover;
}


/* ===== Elegant Letter (for .event-announce.letter) ===== */
.letter{
  position: relative;
  background:#fff;
  border:1px solid #dfe8fb;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(10,30,60,.06);
  padding:22px 26px 24px;
  font-family:'Merriweather', serif; /* delikatnie „listowo” */
}

/* Dekoracyjny pionowy pasek jak w papeterii */
.letter::before{
  content:"";
  position:absolute; left:-1px; top:12px; bottom:12px; width:6px;
  border-radius:6px;
  background:linear-gradient(180deg, var(--blue-700), var(--blue-800));
  opacity:.9;
}

/* Nagłówek listu (nad tytułem) */
.letter-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin:2px 0 6px;
  color:#3a4f72; font-size:13px; letter-spacing:.04em; text-transform:uppercase;
  opacity:.85;
}
.letter-meta time{ white-space:nowrap; }

/* Tytuł listu */
.letter-title{
  margin:8px 0 12px;
  font: 800 clamp(20px,2.1vw,26px)/1.25 "Montserrat", system-ui, sans-serif;
  color:#0b2a55;
}

/* Treść listu – czytelna i „drukowa” */
.letter-body p{
  margin:0 0 12px;
  font-size:16px;
  line-height:1.85;
  color:#253651;
  text-align:justify; text-justify:inter-word; hyphens:auto;
}
/* Wcięcia akapitów jak w korespondencji (bez pierwszego) */
.letter-body p + p{ text-indent:1.25em; }

/* Podpis po prawej, jak w liście */
.letter-foot .event-sign{
  margin-top:14px;
  text-align:right;
  font-style:italic;
  color:#2a446b;
}
.letter-foot .event-sign strong{ font-weight:800; font-style:normal; }

/* Mobile – trochę „luźniej” */
@media (max-width:720px){
  .letter{ padding:18px 18px 20px; }
  .letter::before{ left:-1px; top:10px; bottom:10px; }
  .letter-head{ flex-direction:column; gap:4px; }
}


/* podpis pod listem – granatowe litery */

.letter-foot{ text-align:right; margin-top:18px; }

.letter-ribbon{
  height:12px;
  background:#0b2a55 !important;         /* grantat */
  border:1px solid #cfe0ff !important;    /* delikatna ramka */
  border-radius:8px;
  margin:18px 0 12px;                     /* odstęp NAD podpisem */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7),
              0 2px 8px rgba(10,30,60,.06);
}

.letter-invite{
  margin:0 0 4px;
  font-size:12.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#203450 !important;               /* granat */
  opacity:.95;
}

.event-sign{
  margin:0;
  color:#203450 !important;               /* granat */
  line-height:1.5;
}
.event-sign strong{ color:#0b2a55 !important; }  /* nazwisko – ciemniejszy granat */
.event-sign span{  color:#2d4b74 !important; }   /* rola – jaśniejszy granat */


/* Accordion */
.accordion{ display:grid; gap:14px; margin-top:12px; }
.acc-item{
  border:1px solid #e7eefb; border-radius:14px; background:#fff;
  box-shadow:0 2px 8px rgba(10,30,60,.06); overflow:hidden;
}
.acc-heading{ margin:0; }
.acc-btn{
  width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 16px; font-weight:800; font-size:18px; color:#0b2440;
  background:#fff; border:0; cursor:pointer;
}
.acc-btn:hover{ background:#f6f9ff; }
.acc-btn:focus-visible{ outline:2px solid var(--blue-700); outline-offset:-2px; border-radius:12px; }
.acc-icon{ width:22px; height:22px; flex:0 0 auto; transition: transform .18s ease; opacity:.7; }
.acc-btn[aria-expanded="true"] .acc-icon{ transform: rotate(180deg); }
.acc-panel{ padding:0 16px 16px; }

.details-credits summary{
  cursor:pointer;
  font-weight:700;
}
.details-credits{
  display:inline-block;
  margin-left:8px;
}
.details-credits .legal-inner{
  padding-top:6px;
  font-size:13px;
  color:#e8f0ff;
}
.details-credits .legal-inner ul{
  list-style:disc;
  margin:6px 0 0 18px;
  padding:0;
}
footer .details-credits .legal-inner{
  color:#cfe3ff; /* lepszy kontrast w granatowej stopce */
}

/* ===== Legal pages: bilingual visibility & basic layout ===== */
html[lang^="pl"] .legal-en { display:none !important; }
html[lang^="en"] .legal-pl { display:none !important; }

.legal-page { max-width: 920px; margin: 28px auto; padding: 0 16px; line-height: 1.75; }
.legal-page h1 { margin: 0 0 14px; font-size: 28px; }
.legal-page h2 { margin: 18px 0 10px; font-size: 20px; color:#0b2a55; }
.legal-note { font-size: 13px; opacity:.8; }
.legal-table { width:100%; border-collapse: collapse; margin: 8px 0; }
.legal-table th, .legal-table td { border:1px solid #e4ecff; padding:8px 10px; text-align:left; }
.legal-table th { background:#f6f9ff; font-weight:700; }

.s1-p2 {
  list-style-type: none;
}
.logo-card-2 {
  display: inline-flex;
}
.logo-card-2 img:nth-child(1) {
  margin-right: 10px;
  margin-top: 21px;
  height: 114px;
  border: 4px solid black;
}
@media (max-width:1600px) {
  .mast-grid-balanced {
    display: block;
  }
  .mast-center {
    margin: 30px 0;
  }
  .masthead .logo-stack-right, .masthead .logo-stack-left {
    display: inline-flex;
  }
  .logo-card-2 img:nth-child(1) {
    margin-left: 60px;
  }
}
@media (max-width:560px) {
  .masthead .logo-stack-left {
    display: flex;
    transform: scale(0.6);
  }
  .mast-center {
    margin-top: 0;
  }
  .masthead .inner {
    padding-top: 0;
  }
}
@media (max-width:720px) {
  .footer-inner {
    display: block;
    text-align: center;
  }
}
.contact-email {
  white-space: nowrap;
}
.contact-tel svg {
  transform: rotate(90deg);
  filter: brightness(0) saturate(100%) invert(21%) sepia(91%) saturate(1547%) hue-rotate(196deg) brightness(102%) contrast(91%);
}
.topline {
  padding: 4px 0;
}