:root{
  --bg:#05070a;
  --bg2:#070b12;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.10);
  --text:#e9eef5;
  --muted:#a6b0c0;
  --stroke:rgba(255,255,255,.12);
  --shadow: 0 18px 70px rgba(0,0,0,.62);
  --shadow2: 0 10px 30px rgba(0,0,0,.40);
  --radius:18px;
  --radius2:28px;
  --max:1200px;
  --accent:#7cf7ff;
  --accent2:#a078ff;
  --good:#6fffb1;
  --bad:#ff6b6b;

  /* ===== LOGO KONTROLA (NIEUŻYWANE - LOGO USUNIĘTE) ===== */
  --logo-slot-w:220px;
  --logo-h:300px;
  --logo-w:450px;
  --logo-offset-y:-85px;
  /* ===== /LOGO KONTROLA ===== */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 700px at 80% 0%, rgba(124,247,255,.12), transparent 60%),
    radial-gradient(900px 650px at 10% 30%, rgba(160,120,255,.10), transparent 55%),
    radial-gradient(800px 500px at 70% 85%, rgba(111,255,177,.07), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.94}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}
::selection{background:rgba(124,247,255,.22)}

body:before{
  content:"";
  position:fixed; inset:-40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity:.06;
  pointer-events:none;
  mix-blend-mode:overlay;
  transform:translateZ(0);
  animation: grain 7s steps(10) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)}
  10%{transform:translate(-6px,-10px)}
  20%{transform:translate(-12px,6px)}
  30%{transform:translate(8px,-14px)}
  40%{transform:translate(-10px,10px)}
  50%{transform:translate(14px,4px)}
  60%{transform:translate(-6px,12px)}
  70%{transform:translate(12px,-8px)}
  80%{transform:translate(-14px,-2px)}
  90%{transform:translate(10px,12px)}
  100%{transform:translate(0,0)}
}

.topbar{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(to bottom, rgba(5,7,10,.92), rgba(5,7,10,.55));
  backdrop-filter: blur(16px);
  border-bottom:1px solid var(--stroke);
  overflow:visible;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:12px 18px;
  min-height:64px;
  overflow:visible;
}

/* ===== LOGO USUNIĘTE (zabezpieczenie gdyby element wrócił) ===== */
.brand,
.brand * { display:none !important; }
.brand::before,
.brand::after{ content:none !important; display:none !important; }
/* ===== /LOGO USUNIĘTE ===== */

/* mobile */
@media(max-width:760px){
  :root{
    --logo-slot-w:190px;
    --logo-h:38px;
    --logo-w:190px;
    --logo-offset-y:10px;
  }
}

/* ===== NAV ===== */
.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;

  flex:1;
  position:relative;
  z-index:10;
}
.nav a{
  padding:9px 11px;
  border-radius:14px;
  border:1px solid transparent;
  font-size:14px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.nav a:hover{
  background:rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.nav a.is-active{
  border-color: rgba(124,247,255,.30);
  background: linear-gradient(180deg, rgba(124,247,255,.16), rgba(124,247,255,.06));
}
.nav__cart{
  background:rgba(124,247,255,.08);
  border:1px solid rgba(124,247,255,.22);
}
.nav__account{border:1px solid var(--stroke)}
.nav__muted{color:var(--muted)}
.pill{
  display:inline-block; min-width:24px; text-align:center; padding:2px 8px;
  border-radius:999px; background:rgba(255,255,255,.10);
  border:1px solid var(--stroke); font-size:12px; margin-left:8px
}
@media(max-width:980px){
  .nav{flex-wrap:wrap; white-space:normal}
}
/* ===== /NAV ===== */

.hero{
  position:relative;
  border-bottom:0;
  min-height:520px;
  overflow:hidden;
  background: var(--bg);

  /* jeśli hero jest w .container -> rozciągnij na całą szerokość ekranu */
  width:100vw;
  margin-left:calc(50% - 50vw);
}

/* PRAWA POŁOWA: OBRAZ (pełna wysokość) */
.hero:before{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:50%;
  background:url("../img/stol.png") center/cover no-repeat;

  /* delikatnie jaśniej, nadal "premium dark" */
  filter: brightness(1.03) contrast(1.05) saturate(1.03);

  z-index:1;
}

/* LEWA POŁOWA: FILM (pełna wysokość) */
.hero__video{
  position:absolute;
  top:0; bottom:0;
  left:0;
  width:50%;
  height:100%;
  object-fit:cover;

  /* delikatnie jaśniej, resztę robi overlay */
  filter: brightness(1.03) contrast(1.06) saturate(1.05);

  /* pionowy film obracamy, ale ma wypełniać całą lewą połówkę */
  transform-origin:center;
  transform: rotate(-90deg) scale(1.65);

  display:block;
  z-index:1;
}

/* OVERLAY: lekkie przyciemnienie + płynne zejście na dół do tła */
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1000px 520px at 70% 15%, rgba(124,247,255,.12), transparent 60%),
    radial-gradient(900px 520px at 22% 35%, rgba(160,120,255,.10), transparent 60%),
    linear-gradient(to bottom,
      rgba(5,7,10,.04) 0%,
      rgba(5,7,10,.14) 45%,
      rgba(5,7,10,.36) 70%,
      rgba(5,7,10,.78) 92%,
      rgba(5,7,10,1) 100%
    );
  z-index:2;
  pointer-events:none;
}

/* PRZEDZIELENIE NA ŚRODKU (subtelne, premium) */
.hero__overlay:before{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:4px;
  transform:translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(124,247,255,0),
    rgba(124,247,255,.45),
    rgba(160,120,255,.45),
    rgba(124,247,255,0)
  );
  box-shadow:
    0 0 14px rgba(124,247,255,.18),
    0 0 32px rgba(160,120,255,.10),
    0 0 80px rgba(0,0,0,.60);
  opacity:.95;
  pointer-events:none;
}

/* DÓŁ: dodatkowe miękkie przejście do tła pod backgroundem (bardziej stopniowe) */
.hero:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:280px;
  background: linear-gradient(to bottom,
    rgba(5,7,10,0) 0%,
    rgba(5,7,10,.18) 28%,
    rgba(5,7,10,.52) 62%,
    rgba(5,7,10,.86) 86%,
    rgba(5,7,10,1) 100%
  );
  pointer-events:none;
  z-index:3;
}

.hero__inner{position:relative; padding:92px 0 72px; z-index:4}
.hero__card{
  max-width:840px;
  padding:30px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  position:relative;
}
.hero__card:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:var(--radius2);
  background: radial-gradient(800px 280px at 20% 0%, rgba(124,247,255,.22), transparent 60%);
  pointer-events:none;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding:1px;
  opacity:.75;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color: rgba(233,238,245,.85);
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  margin-bottom:14px;
}
.kicker__dot{
  width:8px; height:8px; border-radius:999px;
  background: linear-gradient(180deg, rgba(124,247,255,.95), rgba(160,120,255,.75));
  box-shadow: 0 0 20px rgba(124,247,255,.30);
}
.h1{font-size:48px; line-height:1.02; margin:0 0 10px}
.lead{color:var(--muted); font-size:16px; line-height:1.7; margin:0 0 18px}
.cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.28)}
.btn--primary{
  background: linear-gradient(180deg, rgba(124,247,255,.26), rgba(124,247,255,.10));
  border-color: rgba(124,247,255,.38);
}
.btn--secondary{
  background: linear-gradient(180deg, rgba(160,120,255,.22), rgba(160,120,255,.08));
  border-color: rgba(160,120,255,.30);
}
.btn--danger{border-color:rgba(255,107,107,.40); background:rgba(255,107,107,.10)}
.btn--ghost{background:transparent}

.section{padding:54px 0}
.section__title{font-size:24px; margin:0 0 14px}
.subhead{color:var(--muted); margin:0 0 18px; line-height:1.65}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
@media(max-width:900px){.grid3{grid-template-columns:1fr}}

.card{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:var(--radius2);
  padding:18px;
  box-shadow: var(--shadow2);
}
.muted{color:var(--muted)}
.kpi{display:flex; flex-direction:column; gap:10px}
.kpi__big{font-size:18px; font-weight:750}
.kpi__small{color:var(--muted); font-size:13px; line-height:1.55}

.products{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
@media(max-width:980px){.products{grid-template-columns:1fr}}

.product-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:var(--radius2);
  box-shadow: var(--shadow2);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(124,247,255,.18);
}
.product-card__img{
  height:240px;
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  position:relative;
}
.product-card__img img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter:contrast(1.06) brightness(.98);
}
.badge{
  position:absolute; left:14px; top:14px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(5,7,10,.55);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  font-size:12px;
}
.product-card__body{padding:16px}
.product-card__title{font-size:18px; margin:0 0 6px; font-weight:780}
.product-card__meta{color:var(--muted); font-size:13px; margin:0 0 10px; line-height:1.45}
.price{font-size:18px; font-weight:800}

.row{display:flex; gap:14px; flex-wrap:wrap}
.row > *{flex:1}

.form{display:grid; gap:12px}
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--text);
  outline:none;
}
textarea{min-height:120px; resize:vertical}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
}
.table th,.table td{padding:12px 10px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left}
.table th{color:var(--muted); font-weight:700; font-size:12px; letter-spacing:.05em; text-transform:uppercase}
.table tr:last-child td{border-bottom:none}

.alert{margin:18px 0; padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06)}
.alert--error{border-color:rgba(255,107,107,.45); background:rgba(255,107,107,.10)}
.alert--ok{border-color:rgba(111,255,177,.35); background:rgba(111,255,177,.08)}

.gallery{display:grid; grid-template-columns: 1.4fr .6fr; gap:14px}
@media(max-width:900px){.gallery{grid-template-columns:1fr}}
.gallery img{width:100%; height:100%; object-fit:cover; border-radius:var(--radius2); border:1px solid rgba(255,255,255,.12)}
.gallery__side{display:grid; gap:14px}

.footer{
  margin-top:44px;
  border-top:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.26);
}
.footer__grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:18px;
  padding:34px 18px;
}
@media(max-width:980px){.footer__grid{grid-template-columns:1fr}}
.footer__title{color:var(--muted); font-weight:700; margin-bottom:10px}
.footer a{display:block; padding:7px 0; color:var(--text)}
.footer__brand{font-weight:900; margin-bottom:8px; letter-spacing:.02em}
.footer__bottom{padding:14px 18px; border-top:1px solid rgba(255,255,255,.06)}

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:18px; top:18px; width:auto; height:auto;
  background:#000; border:1px solid rgba(124,247,255,.35);
  padding:10px 12px; border-radius:12px; z-index:1000;
}
