:root{
  --elew-bg:#0d0e11;
  --elew-fg:rgba(255,255,255,.92);
  --elew-muted:rgba(255,255,255,.78);
  --elew-gold1:#f4e1a6;
  --elew-gold2:#d6b35f;
  --elew-stroke:rgba(255,255,255,.12);
  --elew-stroke-strong:rgba(255,255,255,.24);
  --elew-radius:26px;
  --elew-shadow:0 22px 70px rgba(0,0,0,.62);
  --elew-wrap:min(1480px, calc(100% - 50px));
}

body.elewacja-cieszyn-page{
  color:var(--elew-fg);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.035) 0px,
      rgba(255,255,255,.035) 1px,
      rgba(255,255,255,0) 10px,
      rgba(255,255,255,0) 16px
    ),
    radial-gradient(900px 600px at 18% 0, rgba(214,179,95,.10), rgba(0,0,0,0) 60%),
    radial-gradient(900px 600px at 86% 16%, rgba(244,225,166,.07), rgba(0,0,0,0) 55%),
    var(--elew-bg);
  background-attachment:fixed;
}

.elew-wrap{
  width:var(--elew-wrap);
  margin:0 auto;
}

.elew-main{
  padding-bottom:40px;
}

.elew-hero{
  margin:18px 0 18px;
}

.elew-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  margin:0 0 14px;
  font-size:12px;
  letter-spacing:.4px;
  color:rgba(255,255,255,.62);
}

.elew-breadcrumbs a{
  color:rgba(255,255,255,.76);
  text-decoration:none;
}

.elew-breadcrumbs a:hover{
  color:rgba(244,225,166,.96);
}

.elew-hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
  gap:18px;
  align-items:start;
}

.elew-badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.34px;
  text-transform:uppercase;
  border:1px solid var(--elew-stroke-strong);
  background:rgba(0,0,0,.32);
  margin-bottom:12px;
}

.elew-title{
  margin:0 0 12px;
  font-weight:500;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:clamp(26px, 2.35vw, 44px);
  line-height:1.08;
  background:linear-gradient(90deg, var(--elew-gold1), var(--elew-gold2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.elew-lead{
  margin:0 0 12px;
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.75;
}

.elew-note{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.36);
  box-shadow:0 16px 44px rgba(0,0,0,.55);
  padding:12px 14px;
  font-size:13px;
  line-height:1.7;
  color:rgba(255,255,255,.80);
  margin-bottom:14px;
}

.elew-toc{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
}

.elew-toc-link{
  text-decoration:none;
  font-size:12px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}

.elew-toc-link:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.12);
}

.elew-hero-media,
.elew-media{
  margin:0;
  border-radius:var(--elew-radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.30);
  box-shadow:var(--elew-shadow);
}

.elew-hero-media img,
.elew-media img{
  width:100%;
  height:auto;
  display:block;
}

.elew-hero-media figcaption,
.elew-media figcaption{
  padding:12px 14px 14px;
  font-size:13px;
  line-height:1.7;
  color:var(--elew-muted);
  border-top:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.30));
}

.elew-content{
  margin-top:10px;
}

.elew-content-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 380px);
  gap:18px;
  align-items:start;
}

.elew-article{
  border-radius:var(--elew-radius);
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 70px rgba(0,0,0,.65);
  padding:22px 22px 10px;
}

.elew-block{
  padding:18px 0 10px;
  border-top:1px solid rgba(255,255,255,.10);
  scroll-margin-top:120px;
}

.elew-block:first-child{
  border-top:none;
  padding-top:6px;
}

.elew-h2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:500;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(244,225,166,.95);
}

.elew-h3{
  margin:0 0 10px;
  font-size:14px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(244,225,166,.92);
}

.elew-article p{
  margin:0 0 14px;
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.78;
}

.elew-info-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
  margin:14px 0 16px;
}

.elew-info-item{
  min-height:82px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.42));
  padding:12px 14px;
}

.elew-info-item span{
  display:block;
  margin-bottom:7px;
  font-size:11px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:rgba(255,255,255,.58);
}

.elew-info-item strong{
  display:block;
  font-size:14px;
  line-height:1.45;
  color:rgba(255,255,255,.92);
  font-weight:600;
}

.elew-media{
  margin:14px 0 16px;
  border-radius:22px;
  border-color:rgba(255,255,255,.10);
  box-shadow:0 18px 56px rgba(0,0,0,.72);
}

.elew-media--compact{
  margin:0;
}

.elew-gallery{
  display:grid;
  gap:14px;
  margin:16px 0 8px;
}

.elew-gallery--three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.elew-callout,
.elew-doc-panel{
  margin:14px 0 8px;
  border-radius:18px;
  border:1px solid rgba(244,225,166,.22);
  background:
    radial-gradient(900px 520px at 20% 0, rgba(214,179,95,.10), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.55));
  box-shadow:0 22px 70px rgba(0,0,0,.70);
  padding:14px;
}

.elew-doc-panel{
  border-color:rgba(255,255,255,.14);
}

.elew-list{
  margin:0 0 10px 18px;
  padding:0;
  color:rgba(255,255,255,.88);
}

.elew-list li{
  margin:8px 0;
  line-height:1.75;
}

.elew-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.elew-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(244,225,166,.55);
  background:linear-gradient(180deg, rgba(244,225,166,.14), rgba(255,255,255,.02));
  text-decoration:none;
  color:rgba(255,255,255,.96);
  font-weight:700;
  letter-spacing:.2px;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.elew-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(244,225,166,.72);
  box-shadow:0 12px 28px rgba(0,0,0,.32);
}

.elew-btn--ghost{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.elew-btn--full{
  width:100%;
}

.elew-aside{
  position:sticky;
  top:86px;
}

.elew-panel{
  border-radius:18px;
  background:rgba(0,0,0,.52);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 60px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
  padding:16px;
}

.elew-panel-title{
  margin:0 0 10px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:1.4px;
  color:rgba(244,225,166,.92);
}

.elew-panel-list{
  margin:0 0 12px;
  padding:0;
  list-style:none;
}

.elew-panel-list li{
  position:relative;
  padding-left:18px;
  margin:10px 0;
  line-height:1.7;
  color:rgba(255,255,255,.88);
  font-size:14px;
}

.elew-panel-list li::before{
  content:"•";
  position:absolute;
  left:2px;
  top:0;
  color:rgba(255,255,255,.65);
}

.elew-panel-cta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

@media (max-width:1100px){
  .elew-gallery--three{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  :root{ --elew-wrap:min(1480px, calc(100% - 32px)); }
  .elew-hero-grid{ grid-template-columns:1fr; }
  .elew-content-grid{ grid-template-columns:1fr; }
  .elew-aside{ position:static; }
  .elew-info-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:720px){
  :root{ --elew-wrap:min(1480px, calc(100% - 24px)); }
  .elew-hero{ margin-top:0; }
  .elew-breadcrumbs{ display:none; }
  .elew-article{ padding:18px 14px 8px; }
  .elew-info-grid{ grid-template-columns:1fr; }
  .elew-actions{ display:grid; grid-template-columns:1fr; }
  .elew-btn{ width:100%; }

  body.elewacja-cieszyn-page #header-spacer{
    height:0 !important;
  }

  body.elewacja-cieszyn-page .elew-main{
    padding-top:0 !important;
  }

  body.elewacja-cieszyn-page .elew-hero{
    margin-top:0 !important;
  }
}
