
:root{
  --bg:#070707;
  --bg2:#0d0c0a;
  --gold:#c8a45d;
  --gold2:#eed38f;
  --ivory:#f6efe3;
  --muted:#b8ad9c;
  --line:rgba(200,164,93,.30);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 15% 5%,rgba(115,76,29,.12),transparent 28%),
    radial-gradient(circle at 85% 0%,rgba(105,10,10,.09),transparent 25%),
    var(--bg);
  color:var(--ivory);
  font-family:Georgia,"Times New Roman",serif;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{width:min(1260px,92vw);margin:auto}

.topline{
  height:28px;
  display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid var(--line);
  color:#9e9485;
  font:10px Arial,sans-serif;
  letter-spacing:.28em;text-transform:uppercase;
}
.nav{
  position:sticky;top:0;z-index:100;
  background:rgba(7,7,7,.84);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.nav-inner{height:84px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:12px;letter-spacing:.18em;text-transform:uppercase;font-size:18px;color:var(--gold2)}
.brand-logo{
  width:74px;
  height:74px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 5px 12px rgba(0,0,0,.7));
}
.brand span{white-space:nowrap}
.menu{display:flex;gap:25px;font:12px Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.menu a{opacity:.84}.menu a:hover{opacity:1;color:var(--gold2)}

.hero{
  min-height:92vh;
  position:relative;overflow:hidden;
  display:grid;place-items:center;
  border-bottom:1px solid var(--line);
}
.hero-bg{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr}
.hero-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(.88) contrast(1.04)}
.hero::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(to bottom,rgba(0,0,0,.28),rgba(0,0,0,.75)),
    radial-gradient(circle at center,transparent 30%,rgba(0,0,0,.46) 82%);
}
.hero-content{
  position:relative;z-index:2;
  text-align:center;
  width:min(1500px,96vw);
  padding:110px 18px 90px;
}
.kicker{
  font:12px Arial,sans-serif;
  letter-spacing:.38em;text-transform:uppercase;
  color:var(--gold2);margin-bottom:22px;
}
.hero h1{
  margin:0;
  white-space:nowrap;
  font-size:clamp(30.4px,4.88vw,78.4px);
  line-height:1;
  letter-spacing:.025em;
  text-transform:uppercase;
  text-shadow:0 10px 34px rgba(0,0,0,.85);
}
.hero-rule{
  width:260px;height:1px;margin:28px auto;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.hero-sub{
  max-width:840px;margin:auto;
  font-size:21px;color:#e6dac8;line-height:1.7;
}
.hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:34px}
.btn{
  border:1px solid var(--gold);
  padding:14px 24px;
  text-transform:uppercase;
  font:11px Arial,sans-serif;
  letter-spacing:.16em;
  transition:.25s ease;
}
.btn.gold{background:linear-gradient(135deg,#9f722e,#dab971);color:#17110a;font-weight:700}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 35px rgba(200,164,93,.18)}

.section{padding:100px 0}
.section.dark{background:linear-gradient(180deg,#0d0c0a,#080807)}
.section-title{text-align:center;margin-bottom:50px}
.eyebrow{font:11px Arial,sans-serif;letter-spacing:.32em;text-transform:uppercase;color:var(--gold)}
.section-title h2{margin:10px 0 0;font-size:clamp(38px,5vw,64px)}

.manifest{
  display:grid;grid-template-columns:260px 1fr;
  gap:58px;align-items:center;
}
.big-crest{
  aspect-ratio:1/1.15;
  border:2px solid var(--gold);
  clip-path:polygon(50% 0,94% 15%,88% 74%,50% 100%,12% 74%,6% 15%);
  display:grid;place-items:center;
  background:linear-gradient(145deg,#20180e,#080706);
  position:relative;box-shadow:0 30px 90px rgba(0,0,0,.5);
}
.big-crest .s{font-size:112px;color:var(--gold2)}
.big-crest .crown{position:absolute;top:7%;font-size:38px;color:var(--gold2)}
.manifest blockquote{
  margin:0;font-size:clamp(32px,4.5vw,62px);
  line-height:1.18;font-style:italic;color:#ead8ae;
}
.manifest blockquote footer{
  margin-top:20px;
  font:12px Arial,sans-serif;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted);
}

.values{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.value{
  border:1px solid var(--line);
  padding:30px;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(200,164,93,.035));
  min-height:235px;
}
.icon{
  width:56px;height:56px;border:1px solid var(--gold);
  border-radius:50%;display:grid;place-items:center;
  color:var(--gold2);font-size:22px;
}
.value h3{font-size:25px;margin:15px 0 8px;color:var(--gold2)}
.value p{color:#d9cdbb;line-height:1.7}

.gallery{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.gallery figure{
  margin:0;position:relative;overflow:hidden;
  border:1px solid var(--line);background:#111;
}
.gallery img{width:100%;height:610px;object-fit:cover;transition:.5s ease}
.gallery figure:hover img{transform:scale(1.025)}
.gallery figcaption{
  position:absolute;left:20px;bottom:18px;
  background:rgba(0,0,0,.68);
  border:1px solid var(--line);
  padding:10px 15px;
  letter-spacing:.08em;
}

.members{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.member{
  position:relative;min-height:430px;overflow:hidden;
  border:1px solid var(--line);background:#0d0d0d;
}
.member-photo-link{position:absolute;inset:0;z-index:1;display:block;cursor:pointer}
.member-photo-link img{pointer-events:none}
.member img{
  width:100%;height:100%;object-fit:cover;position:absolute;inset:0;
  filter:brightness(.72) saturate(.9);
  transition:.45s ease;
}
.member:hover img{transform:scale(1.03)}
.member::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.96),rgba(0,0,0,.04) 65%);
}
.member-info{position:absolute;z-index:2;left:22px;right:22px;bottom:22px}
.member-info h3{margin:0;font-size:29px}
.member-info p{margin:3px 0 12px;color:#d9cdbb}
.member-info a{font:11px Arial,sans-serif;text-transform:uppercase;letter-spacing:.15em;color:var(--gold2)}

.footer{
  padding:42px 0;border-top:1px solid var(--line);
  color:var(--muted);font:13px Arial,sans-serif;
}
.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}

.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:none}

@media(max-width:980px){
  .menu{display:none}
  .hero{min-height:82vh}
  .hero-bg{grid-template-columns:1fr}
  .hero-bg img:nth-child(2){display:none}
  .hero h1{white-space:normal;font-size:clamp(44px,10vw,82px)}
  .manifest{grid-template-columns:1fr}
  .big-crest{width:230px;margin:auto}
  .values,.members{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .topline{display:none}
  .values,.members,.gallery{grid-template-columns:1fr}
  .gallery img{height:auto}
  .section{padding:70px 0}
  .hero h1{font-size:clamp(37px,12vw,64px)}
  .footer-inner{flex-direction:column;text-align:center}
}

/* Podstrona/sekcja Córka */
.daughter-gallery img{height:650px;object-fit:cover;object-position:center top}
@media(max-width:620px){.daughter-gallery img{height:auto}}

/* Galerie członków rodziny */
.family-gallery img{height:650px;object-fit:cover;object-position:center top}
@media(max-width:620px){.family-gallery img{height:auto}}


/* Herb rodziny w nagłówku */
@media(max-width:620px){
  .nav-inner{height:76px}
  .brand{font-size:14px;gap:8px;letter-spacing:.12em}
  .brand-logo{width:58px;height:58px}
}

/* Herby — sekcja Nasza historia */
.history-crests{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;
}
.history-crests img{
  width:100%;height:270px;object-fit:contain;display:block;
  filter:drop-shadow(0 22px 40px rgba(0,0,0,.45));
}
@media(max-width:980px){
  .history-crests{width:min(620px,100%);margin:auto}
}
@media(max-width:620px){
  .history-crests{grid-template-columns:1fr 1fr;gap:10px}
  .history-crests img{height:190px}
}


/* Powiększanie herbów na stronie Nasza historia */
.zoomable-crest{cursor:zoom-in;}
.image-lightbox{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.92);backdrop-filter:blur(8px);}
.image-lightbox.open{display:flex;}
.image-lightbox img{max-width:min(94vw,1500px);max-height:92vh;width:auto;height:auto;object-fit:contain;filter:none;box-shadow:0 22px 80px rgba(0,0,0,.7);}
.lightbox-close{position:fixed;top:18px;right:25px;border:1px solid var(--gold);background:rgba(7,7,7,.8);color:var(--gold2);font:38px/1 Arial,sans-serif;width:52px;height:52px;cursor:pointer;}
body.lightbox-open{overflow:hidden;}

/* Ulepszona wersja mobilna — mniejsze logo i bardziej kompaktowy nagłówek */
@media(max-width:620px){
  .nav-inner{
    height:58px;
    gap:10px;
  }
  .brand{
    gap:7px;
    font-size:13px;
    letter-spacing:.09em;
    min-width:0;
  }
  .brand-logo{
    width:38px;
    height:38px;
    flex:0 0 38px;
  }
  .brand span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .hero{
    min-height:74vh;
  }
  .hero-content{
    padding:76px 14px 64px;
  }
  .kicker{
    font-size:10px;
    letter-spacing:.22em;
  }
  .hero h1{
    font-size:clamp(32px,10vw,52px);
    line-height:1.05;
  }
  .hero-sub{
    font-size:17px;
    line-height:1.55;
  }
  .section-title h2{
    font-size:clamp(32px,10vw,48px);
  }
  .history-crests img{
    height:150px;
  }
}

@media(max-width:390px){
  .brand{font-size:12px;letter-spacing:.06em}
  .brand-logo{width:34px;height:34px;flex-basis:34px}
  .nav-inner{height:54px}
}

/* Bardzo małe logo wyłącznie na ekranach mobilnych */
@media(max-width:620px){
  .brand-logo{width:24px;height:24px;flex:0 0 24px}
  .nav-inner{height:48px}
  .brand{gap:6px}
}
@media(max-width:390px){
  .brand-logo{width:20px;height:20px;flex:0 0 20px}
  .nav-inner{height:46px}
}
