:root{
  --bg1:#8cb3e6;
  --bg2:#5c8ecf;
  --text:#1e2b45;
  --white:#ffffff;
  --muted:#294b77;
  --pill:#e9eef8;
  --pillShadow: 0 6px 16px rgba(0,0,0,.18);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
    background-image: url("img/bg.png"); /* ← tu podaj swoją ścieżkę */
  background-size: cover;              /* ✅ zawsze wypełnia ekran */
  background-position: center;         /* ✅ wyśrodkowanie */
  background-repeat: no-repeat;        /* ✅ bez powtarzania */
  background-attachment: fixed;   
}

/* Topbar zawsze nad innymi elementami (klik działa) */
.topbar{
  position:relative;
  z-index: 5; /* ważne dla klikalności */
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:12px clamp(10px, 3vw, 24px);
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.logo-img {
  display: block;
  width: 200px;       /* 🔁 dopasuj do potrzeb */
  height: auto;       /* zachowuje proporcje */
  object-fit: contain;
}
.eu-wrap{display:flex; align-items:center; gap:10px}
.eu-text{font-weight:700; color:#0c2a57; text-shadow: 0 1px 0 #fff}

.circle-img{
  width:56px; height:56px; border-radius:50%;
  background: rgba(255,255,255,.6);
  border:2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  background-position:center; background-size:cover; background-repeat:no-repeat;
}
.circle-eu{}
.circle-bulb{ width:72px; height:72px; }
.circle-partner{ width:70px; height:70px; }

.topnav{
  display:flex; justify-content:center; gap:14px; flex-wrap:wrap;
}
.pill{
  appearance:none; border:0; cursor:pointer; font-weight:800; letter-spacing:.3px;
  padding:10px 18px; border-radius: 999px; background: var(--pill); color:#16386b;
  box-shadow: var(--pillShadow); transition: transform .12s ease, box-shadow .2s ease;
  outline: 2px solid rgba(255,255,255,.5);
}
.pill:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.pill:active{ transform: translateY(0) }

.lang-switch{justify-self:end; display:flex; gap:10px; align-items: center;}
.flag {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: #ffffffb0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  padding: 0;
  line-height: 0;       /* ✅ remove vertical text space */
  font-size: 0;         /* ✅ remove inline text space */
}

.flag.pl {
  background-image: url("img/pl.png");
}

.flag.en {
  background-image: url("img/en.png");
}

.flag.pt {
  background-image: url("img/pt.png");
}

.flag.active{ outline:3px solid #1c4fb3; }
.eu-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.eu-flag {
  width: 300px;       /* dopasuj rozmiar */
  height: auto;
  display: block;
  object-fit: contain;
}
.container{max-width:1200px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 24px) 0;}
.hero{
  margin-top: clamp(18px, 4vw, 34px);
  display:grid; grid-template-columns: auto 1fr; align-items:center; gap:16px;
}
.hero-title{
  margin:0; font-size: clamp(22px, 3.8vw, 44px); font-weight:800; color:#2d4f82;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.spacer{ height: clamp(40px, 10vw, 120px); }

.partners{  display:grid; gap:12px; align-items:left; color:#000000; margin-top: 20vh; margin-left: -10vw;  /* 30% wysokości ekranu */ }
.partners-title{ margin:0; font-size: clamp(14px, 2vw, 18px); letter-spacing:.6px; font-weight:800; }

.partners-logos {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px; /* odstęp między logami */
  flex-wrap: wrap;
  margin-top: 20px;
}

.partner-logo {
  width: 250px;         /* 📏 dopasuj wielkość */
  height: auto;
  object-fit: contain;  /* zachowuje proporcje */
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05); /* efekt powiększenia po najechaniu */
}

.footer{
  margin-top: clamp(20px, 6vw, 40px);
  padding: 10px 14px 16px; text-align:center; font-weight:800; color:#0a2f6a;
  background: rgba(255,255,255,.35); border-top:1px solid rgba(255,255,255,.5);
}

/* Overlays */
.backdrop{
  position: fixed; inset:0; background: rgba(0,0,0,0.45);
  opacity:0; transition: opacity .15s ease; z-index: 90;
}
.backdrop.visible{opacity:1}

.overlay{
  position: fixed; inset:0; display:grid; place-items:center; z-index: 100;
  opacity:0; transform: translateY(10px); transition: opacity .15s ease, transform .15s ease;
}
.overlay[hidden]{display:none} /* ważne dla klików pod spodem */
.overlay.visible{opacity:1; transform: translateY(0)}
.overlay-box{
  width:min(980px, 92vw); height: min(70vh, 680px);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display:flex; flex-direction:column; overflow:hidden;
}

.overlay-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px; background: rgba(12,47,120,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.overlay-header h2{margin:0; font-size: 20px; color:#16386b}
.close{
  border:0; background: rgba(12,47,120,0.08); color:#16386b;
  width:36px; height:36px; border-radius:10px; font-size: 22px; line-height: 1;
  display:grid; place-items:center; cursor:pointer;
  transition: background .2s ease, transform .12s ease;
}
.close:hover{background: rgba(12,47,120,0.14)}
.close:active{transform: scale(.98)}
.overlay-content{ padding:18px; overflow:auto; color:#173a6e }

/* Responsywność */
@media (max-width: 900px){
  .topbar{ grid-template-columns: 1fr; justify-items:center; gap:10px }
  .lang-switch{ justify-self:center }
  .eu-wrap{ order:-1 }
  .hero{ grid-template-columns: 1fr; justify-items:center; text-align:center }
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

footer.footer {
  margin-top: auto; /* wypycha stopkę na dół */
}
.question {
  margin-bottom: 18px;
}

.answers-row {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}

.answers-row label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.btn{
  border:0; cursor:pointer; font-weight:700; border-radius:999px;
  padding:10px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.btn-primary{
  background:#1b56c4; color:#fff;width: 50%;margin: 0 auto;   
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{
  background: transparent; color:#1b56c4; border:2px solid #1b56c4;
}

/* Intro */
.tool-intro{ display:grid; gap:14px; }
.tool-intro p{ margin:0; color:#173a6e }

/* Formularz testu */
.test-form{ display:grid; gap:16px; }
.test-form fieldset{
  border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:12px;
  background: rgba(12,47,120,0.04);
}
.test-form legend{
  font-weight:800; color:#16386b; padding:0 6px;
}
.test-form label{ display:flex; align-items:center; gap:8px; margin:6px 2px; }
.form-actions{ display:flex; gap:10px; margin-top:4px; flex-wrap:wrap; }

/* Wynik */
.result-card{
  display:grid; gap:10px; padding:12px;
  background: rgba(12,47,120,0.04); border:1px solid rgba(0,0,0,.08);
  border-radius:12px; color:#173a6e;
}
.result-card h3{ margin:0 0 4px 0; color:#16386b; }