/* =========================================================
   GLOBAL.CSS
   Uniwersalny HEADER + FOOTER oparty na products.html
   Do użycia na wszystkich podstronach
========================================================= */

:root{
  --bg0:#f7f9ff;
  --bg1:#eef4ff;
  --ink:#0b1220;
  --muted:#4b5b77;
  --muted2:#6b7a95;
  --primary:#2563eb;
  --primary2:#06b6d4;
  --accent:#22c55e;

  /* bliżej 1:1 do new.html */
  --glass: rgba(255,255,255,0.54);
  --glass-strong: rgba(255,255,255,0.72);
  --glass-soft: rgba(255,255,255,0.42);
  --glass-border: rgba(19,46,107,0.10);
  --glass-border-strong: rgba(37,99,235,0.18);

  --shadow: 0 20px 50px rgba(21,42,94,0.13);
  --shadow-soft: 0 12px 30px rgba(21,42,94,0.10);

  --radius-lg:18px;
  --radius-xl:26px;
  --max:1140px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --header-height: 68px;
  --border: rgba(2,6,23,0.08);
}

/* ===== Reset / baza ===== */
*{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  padding-top: 90px;
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  line-height:1.55;
}

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

img{
  max-width:100%;
  height:auto;
  display:block;
}

.wrap{
  width:min(100%, var(--max));
  margin:0 auto;
  padding:0 18px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background:
    linear-gradient(180deg, var(--glass), rgba(255,255,255,0.33));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background:
    linear-gradient(180deg, var(--glass), rgba(255,255,255,0.33));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

body{
  margin:0;
  padding-top: 90px;
}

.nav{
  min-height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex-shrink:0;
}

.brand img{
  height:44px;
  width:auto;
}

.brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.brand-copy strong{
  font-size:1rem;
  line-height:1.1;
  letter-spacing:.04em;
}

.brand-copy span,
.brand .tag{
  font-size:.78rem;
  line-height:1.2;
  color:var(--muted2);
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}

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

.links a{
  position:relative;
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  font-weight:600;
  color:var(--muted);
  transition:
    color .2s var(--ease),
    transform .2s var(--ease),
    background .2s var(--ease),
    box-shadow .2s var(--ease);
}

.links a::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s var(--ease), opacity .25s var(--ease);
  opacity:0;
}

.links a:hover,
.links a.active{
  color:var(--ink);
  background:rgba(37,99,235,0.08);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,0.10);
  transform:translateY(-1px);
}

.links a:hover::after{
  transform:scaleX(1);
  opacity:1;
}

.links a.active::after{
  transform:scaleX(1);
  opacity:.35;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 18px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(37,99,235,0.95), rgba(6,182,212,0.92));
  color:#fff;
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 12px 26px rgba(37,99,235,0.25);
  transition:transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}

.btn:hover,
.btn:focus-visible{
  transform:translateY(-1px);
  filter:brightness(1.02);
  outline:none;
}

.menu-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid rgba(2,6,23,0.10);
  border-radius:12px;
  background:rgba(255,255,255,0.72);
  color:var(--ink);
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--shadow);
  transition:background .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}

.menu-btn:hover,
.menu-btn:focus-visible{
  background:rgba(255,255,255,0.95);
  border-color:rgba(37,99,235,0.18);
  transform:translateY(-1px);
  outline:none;
}

.mobile-menu{
  display:none;
  flex-direction:column;
  gap:8px;
  padding:12px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.36));
  border-top:1px solid rgba(255,255,255,0.45);
  border-bottom:1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
}

.mobile-menu.open{
  display:flex;
}

.mobile-menu a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:500;
  transition:background .18s var(--ease), color .18s var(--ease);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible,
.mobile-menu a.active,
.mobile-menu a[aria-current="page"]{
  background:rgba(37,99,235,0.08);
  color:var(--ink);
  outline:none;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  position:relative;
  margin-top:48px;
  padding:28px 0 38px;
  background:rgba(255,255,255,0.40);
  border-top:1px solid var(--border);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.site-footer::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:6px;
  background:linear-gradient(90deg, #3b82f6, #06b6d4, #22c55e);
}

.site-footer-inner{
  width:min(100%, var(--max));
  margin:0 auto;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}

.site-footer-left{
  color:var(--muted);
  font-size:.95rem;
}

.site-footer-social{
  display:flex;
  align-items:center;
  gap:14px;
}

.site-footer-social a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:rgba(255,255,255,0.6);
  border:1px solid rgba(2,6,23,0.10);
  color:var(--muted);
  box-shadow:0 8px 20px rgba(2,6,23,0.08);
  transition:
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    background .25s var(--ease),
    color .25s var(--ease);
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible{
  background:linear-gradient(135deg,#2563eb,#06b6d4);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(37,99,235,0.25);
  outline:none;
}

.site-footer-social svg{
  width:20px;
  height:20px;
}

/* =========================================================
   POMOCNICZE / uniwersalne
========================================================= */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.78rem;
  color:var(--muted);
  background:rgba(255,255,255,0.62);
  border:1px solid rgba(2,6,23,0.08);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.pill i{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  background:radial-gradient(circle at 30% 30%, #34d399, #22c55e);
  box-shadow:0 0 18px rgba(34,197,94,0.40);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .nav{
    min-height:68px;
  }

  .links{
    display:none;
  }

  .menu-btn{
    display:inline-flex;
    flex-shrink:0;
  }

  .brand img{
    height:40px;
  }

  .brand-copy strong{
    font-size:.95rem;
  }

  .brand-copy span,
  .brand .tag{
    font-size:.72rem;
  }

  .site-footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .wrap,
  .site-footer-inner{
    padding-left:14px;
    padding-right:14px;
  }

  .brand{
    gap:10px;
    min-width:0;
    max-width:calc(100% - 56px);
  }

  .brand img{
    height:36px;
  }

  .brand-copy strong{
    font-size:.92rem;
  }

  .brand-copy span,
  .brand .tag{
    white-space:normal;
  }

  .site-footer{
    padding:24px 0 34px;
  }

  .site-footer-social{
    gap:10px;
  }


}
