:root{
  --bg:#0c0f14;
  --card:#121826;
  --alt:#0f1420;
  --text:#e8eef9;
  --muted:#a9b4c7;
  --accent:#7c5cff;
  --border: rgba(255,255,255,.08);
  --radius: 16px;
  --container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    linear-gradient(rgba(12,15,20,.86), rgba(12,15,20,.9)),
    radial-gradient(1200px 600px at 20% -10%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(0,200,255,.12), transparent 55%),
    url("assets/tlo.jpg") center top / cover no-repeat fixed,
    var(--bg);
  overflow-x: hidden;
  color:var(--text);
}

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

.container{
  width:min(100% - 32px, var(--container));
  margin-inline:auto;
}

.header{
  position:sticky; top:0; z-index:50;
  background: rgba(12,15,20,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
}
.logo{
  display:flex;
  align-items:center;
  height:44px;
}

.logo img{
  height:100%;
  width:auto;
  max-width:200px;
  object-fit:contain;
  display:block;

  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}

.nav{
  display:flex;
  gap:18px;
}
.nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{color:var(--text); background:rgba(255,255,255,.06)}

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  background:transparent;
  cursor:pointer;

  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:6px;

  padding:0;
}

.nav-toggle span{
  width:20px;
  height:2px;
  background:var(--text);
  border-radius:2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}


.hero{
  padding:64px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:stretch;
}
.eyebrow{
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  margin:0 0 10px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height:1.05;
}
.lead{
  color:var(--muted);
  font-size: 16px;
  line-height:1.6;
  margin:0 0 18px;
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.btn{
  background: var(--accent);
  color:#0b0d12;
  border:none;
  padding:12px 16px;
  border-radius: 12px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{filter:brightness(1.05)}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--border);
}
.badges{
  display:flex;
  gap:10px;
  padding:0;
  margin:0;
  list-style:none;
  flex-wrap:wrap;
}
.badges li{
  font-size:13px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.03);
}

.hero-card {
    position: relative;
    width: 100%;
    height: 500px; 
    overflow: hidden;
    border-radius: 16px;
}

.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-card img.active {
    opacity: 1;
}


.hero-placeholder{
  color:var(--muted);
  padding:18px;
  text-align:center;
}

.section{
  padding:72px 0;
}
.section-alt{
  background: rgba(255,255,255,.02);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
h2{
  margin:0 0 10px;
  font-size: clamp(22px, 2.4vw, 32px);
}
.section-lead{
  margin:0 0 22px;
  color:var(--muted);
  line-height:1.6;
}

.oferta-layout {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 20px;
  align-items: stretch;
}

.cards2 {
  display: grid;
  gap: 20px;
}

.card2 {
  background: #0f141a;
  border-radius: 16px;
  padding: 5px 20px 5px 20px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.card2:hover,
.card2.active {
  border-color: #3b82f6;
  background: #111827;
}

.offer-details {
  /* min-height: 420px; */
  height: 100%;
  border:1px solid var(--border);
  padding: 28px;
  border-radius: 28px;
  /* background: radial-gradient(circle at top, #111827, #020617); */
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,0.08);
}


.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:16px;
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.6}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.tile{
  border:1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
  cursor:pointer;
  padding:0;
}
.tile img{
  width:100%;
  height: 180px;
  object-fit: cover;
  transition: transform .2s ease;
}
.tile:hover img{transform: scale(1.03)}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.contact-box{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:14px;
}
.contact-box p{margin:8px 0; color:var(--muted)}
.contact-box a{color:var(--text); text-decoration:underline; text-underline-offset:3px}

.form{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:14px;
  display:grid;
  gap:12px;
}
label{display:grid; gap:6px; color:var(--muted); font-size:14px}
input, textarea{
  border:1px solid var(--border);
  background: rgba(12,15,20,.6);
  color:var(--text);
  border-radius: 12px;
  padding:12px 12px;
  font-size: 15px;
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(124,92,255,.6)}
.form-status{margin:0; color:var(--muted); min-height: 1.2em}
.note{color:var(--muted); font-size:13px; line-height:1.6}

.footer{
  border-top:1px solid var(--border);
  padding:22px 0;
  color:var(--muted);
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:100;
}
.modal[aria-hidden="false"]{
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.8);
}
.modal-content{
  position:relative;
  width:min(92vw, 1100px);
  max-height: 90vh;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: #0b0e14;
}
.modal-content img{
  width:100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
.modal-caption{
  position:absolute;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 64px 26px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  color:#fff;
  z-index:1;
  pointer-events:none;
}
.modal-caption-title{
  font-weight:700;
  font-size:16px;
  line-height:1.25;
}
.modal-caption-count{
  color: rgba(255,255,255,.75);
  font-size:14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.modal-close{
  position:absolute;
  top:10px; right:10px;
  width:40px; height:40px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.5);
  color:var(--text);
  cursor:pointer;
  font-size:22px;
  line-height: 1;
  z-index:2;
}
.modal-close:hover{ background: rgba(255,255,255,.12); }

.modal-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:52px; height:52px;
  border-radius:50%;
  border:1px solid var(--border);
  background: rgba(0,0,0,.5);
  color:var(--text);
  cursor:pointer;
  font-size:30px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition: background .2s ease;
}
.modal-nav:hover{ background: rgba(255,255,255,.15); }
.modal-prev{ left: 18px; }
.modal-next{ right: 18px; }

@media (max-width: 640px){
  .modal-nav{ width:44px; height:44px; font-size:26px; }
  .modal-prev{ left: 8px; }
  .modal-next{ right: 8px; }
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .contact-grid{grid-template-columns:1fr}
  .nav-toggle{display:flex}
  .nav{
    position:absolute;
    right:16px;
    top:62px;
    background: rgba(12,15,20,.92);
    border:1px solid var(--border);
    border-radius: 14px;
    padding:10px;
    flex-direction:column;
    gap:6px;
    display:none;
    min-width: 180px;
  }
  .nav[data-open="true"]{display:flex}
  .section{
    padding:36px 0;
  }

  .oferta-layout{
    grid-template-columns: 1fr;  
    gap: 16px;
  }

  .cards2{
    min-width: 0;  
    max-width: 100%;
  }

  .card2{
    width: 100%;
  }

  .offer-details{
    width: 100%;
    min-height: auto; 
    position: static;  
    padding: 18px;
    border-radius: 18px;
  }
  .card2 h3,
  .offer-details h3{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .card2 h3{
    font-size: 16px;
    line-height: 1.25;
  }

  .offer-details h3{
    font-size: 18px;
    line-height: 1.3;
  }

}



.hero-tiles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:16px;
}
.hero-tile{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-tile:hover{
  border-color: rgba(14,165,164,.35);
}
.kicker{
  display:block;
  color: var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}
.small{
  display:block;
  color: var(--muted);
  margin-top:6px;
  font-size:13px;
}
@media (max-width: 900px){
  .hero-tiles{grid-template-columns:1fr}

  .logo{
    height:36px;
  }

  .logo img{
    max-width:160px;
  }
}

/* Prose (O firmie / B2B intro) */
.prose{
  max-width: 78ch;
  margin-bottom: 22px;
}
.prose p{
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.prose strong{ color: var(--text); }

.section-note{
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.6;
}
.section-note a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Offer details — nested lists spacing */
.offer-details p{ color: var(--muted); line-height:1.6; margin: 0 0 8px; }
.offer-details p strong{ color: var(--text); }
.offer-details ul, .offer-details ol{ margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.offer-details li{ margin: 4px 0; line-height: 1.5; }
.offer-details .btn{ margin-top: 6px; }

/* Realizacje — projects */
.realizacje{ display: grid; gap: 34px; }
.realizacja-head{ margin-bottom: 12px; }
.realizacja-head h3{ margin: 0; font-size: 20px; }
.realizacja-sub{ margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* B2B */
.b2b-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.b2b-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 20px;
}
.b2b-card h3{ margin: 0 0 10px; font-size: 18px; }
.b2b-card p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.b2b-card ul{ margin: 0; padding-left: 18px; color: var(--muted); }
.b2b-card li{ margin: 5px 0; line-height: 1.45; }

/* Contact map */
.map{
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.map iframe{
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

@media (max-width: 900px){
  .b2b-grid{ grid-template-columns: 1fr; }
}