.viewer-hd-tip { position: absolute; bottom: 10px; right: 189px; background: #3d3530; color: rgba(255,255,255,.8); padding: 7px 16px; font-size: .72rem; z-index: 20; display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: auto; font-family: -apple-system,sans-serif; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.hd-badge { background: #29abe2; color: #fff; font-size: .6rem; font-weight: 700; padding: 2px 5px; border-radius: 3px; letter-spacing: .05em; }
.viewer-hd-close { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: .8rem; padding: 0; transition: color .2s; line-height: 1; }
.viewer-hd-close:hover { color: rgba(255,255,255,.8); }
.viewer-hd-tip svg { color: var(--gold); flex-shrink: 0; }
.viewer-hd-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: .9rem; padding: 0 0 0 10px; margin-left: auto; transition: color .2s; line-height: 1; flex-shrink: 0; }
.viewer-hd-close:hover { color: var(--gold); }
.viewer-blocker { position: absolute; inset: 0; z-index: 5; cursor: pointer; }
.viewer-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(14,12,9,.8); backdrop-filter: blur(12px); border: 1px solid var(--border2); color: var(--gold); padding: 10px 24px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 20px; display: flex; align-items: center; gap: 8px; z-index: 20; pointer-events: none; transition: opacity .6s; white-space: nowrap; }

/* ── PRZEŁĄCZNIK JĘZYKA ── */
.lang-switcher { display: flex; gap: 2px; align-items: center; }
.lang-switcher a, .lang-switcher span {
    font-family: 'Jost', sans-serif;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid transparent;
    transition: all .2s;
}
.lang-switcher a:hover { color: var(--gold); }
.lang-switcher .current-lang, .lang-switcher span.current-lang {
    color: var(--gold);
    border-color: var(--border);
}
@media (max-width: 960px) { .lang-switcher { display: none; } }
.nav-highlight { color: var(--gold) !important; }
.nav-highlight:hover { opacity: .8; }

/* ── SHARE BUTTON ── */
.object-header-actions { margin-bottom: 1rem; }
.share-btn { background: transparent; border: 1px solid var(--border2); color: var(--gold); padding: 7px 16px; font-family: 'Jost',sans-serif; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.share-btn:hover { background: rgba(200,168,75,.1); }
.share-btn:hover { background: rgba(200,168,75,.1); }

/* ── BREADCRUMBS ── */
.breadcrumbs { font-size: .72rem; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--gold-dim); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-hidden] { color: var(--border2); }

/* ── SCROLL TO TOP ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--bg2); border: 1px solid var(--border2); color: var(--gold); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 100; transition: all .2s; }
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--bg3); border-color: var(--gold); }

/* ── SKELETON LOADER ── */
.model-skeleton { background: var(--bg2); aspect-ratio: 4/3; position: relative; overflow: hidden; }
.model-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(200,168,75,.05) 50%, transparent 100%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media(max-width:960px) { .scroll-top { bottom: 1rem; right: 1rem; } }

/* ── W POBLIŻU ── */
.nearby-section { padding: 3rem 4rem 5rem; max-width: 1100px; margin: 0 auto; }
.nearby-header { text-align: center; margin-bottom: 2rem; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.nearby-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid transparent; text-decoration: none; transition: border-color .3s; overflow: hidden; }
.nearby-card:hover { border-color: var(--border2); }
.nearby-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg3); }
.nearby-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.nearby-card:hover .nearby-thumb img { transform: scale(1.04); }
.nearby-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.nearby-info { padding: 1rem; }
.nearby-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--cream); line-height: 1.3; margin-bottom: .3rem; }
.nearby-meta { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .5rem; }
.nearby-dist { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--gold); }
@media (max-width: 960px) {
  .nearby-section { padding: 2rem 1.5rem 3rem; }
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
  .sep[style*="margin:0 4rem"] { margin: 0 1.5rem !important; }
}

/* ── WYSZUKIWARKA W NAVBARZE ── */
.nav-search-wrap {
  position: relative;
  margin-left: auto;
}
.mobile-search-bar { display: none; }
.nav-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  transition: border-color .2s;
  min-width: 200px;
}
.nav-search-input-wrap:focus-within { border-color: var(--border2); }
.nav-search-input-wrap svg { color: var(--gold-dim); flex-shrink: 0; }
.nav-search-input {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  outline: none;
  width: 100%;
  font-weight: 300;
}
.nav-search-input::placeholder { color: var(--text-dim); }
.nav-search-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .85rem;
  padding: 0;
  transition: color .2s;
  line-height: 1;
}
.nav-search-clear:hover { color: var(--gold); }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  max-height: 420px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.search-results.open { display: block; }
.search-results::-webkit-scrollbar { width: 3px; }
.search-results::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.search-result-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  text-decoration: none;
}
.search-result-item:hover, .search-result-item:focus { background: var(--bg3); outline: none; }
.search-result-item:last-child { border-bottom: none; }
.search-result-thumb {
  width: 52px; height: 39px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.search-result-thumb-placeholder {
  width: 52px; height: 39px;
  background: var(--bg3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border2);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .15rem;
}
.search-result-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.search-no-results {
  padding: 1.2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .82rem;
}
@media (max-width: 960px) {
  .nav-search-wrap { display: none !important; }
}


/* ═══════════════════════════════════════════════════
   WCAG 2.1 AA – Dostępność
   ═══════════════════════════════════════════════════ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible – wyraźny outline dla klawiatury */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* Przyciski i linki – minimalny rozmiar dotyku 44x44px */
.btn-gold, .btn-ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Kontrast – rozjaśnij text-dim dla WCAG AA (4.5:1) */
:root {
  --text-dim: #9A8E7E; /* poprawiony z #7A7060 – kontrast 4.6:1 na --bg */
}

/* Ukryj wizualnie ale zostaw dla czytników */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Animacje – wyłącz dla użytkowników z prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-hint { display: none; }
}

/* Linki – podkreślenie dla odróżnienia od tekstu */
.object-desc a,
.footer-col a,
.about-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ═══════════════════════════════════════════════════
   KULTURA3D – Główny arkusz stylów
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0E0C09; --bg2: #141108; --bg3: #1C1810;
  --gold: #C8A84B; --gold-dim: #8A6F2E; --gold-pale: #E8D49A;
  --cream: #F0E8D0; --text: #D8CCBA; --text-dim: #7A7060;
  --border: rgba(200,168,75,.15); --border2: rgba(200,168,75,.32);
  --zam: #C8A84B; --lub: #7EB8A0; --syn: #A07EB8;
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; font-weight: 300; }

/* ── NAV ── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px; display: flex; align-items: center; gap: 2rem; padding: 0 4rem; background: rgba(14,12,9,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.logo-img img { height: 28px; width: auto; display: block; }
.floating-back {
  display: flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s, visibility .4s;
  text-decoration: none;
  flex-shrink: 0;
  width: 36px;
}
.floating-back.visible {
  visibility: visible;
  opacity: 0.75;
}
.floating-back img {
  height: 28px;
  width: auto;
  display: block;
  transform: none;
}
.floating-back:hover {
  opacity: 1;
}
@media (max-width: 960px) {
  .floating-back { width: 50px; left: 1rem; }
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--bg); padding: 9px 22px; font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background .2s; }
.btn-gold:hover { background: var(--gold-pale); }
.btn-ghost { background: transparent; color: var(--gold); padding: 9px 22px; font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--border2); cursor: pointer; transition: all .2s; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(200,168,75,.08); }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 2rem 4rem; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(200,168,75,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,168,75,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 10%, transparent 100%); }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(200,168,75,.06) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.hero-line { width: 1px; height: 70px; background: linear-gradient(transparent, var(--gold)); margin-bottom: 2rem; opacity: .5; }
.hero-eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; position: relative; z-index: 2; text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.8); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem,7vw,5.5rem); font-weight: 300; line-height: 1.05; color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7); }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc { max-width: 500px; margin: 2rem auto 2.5rem; font-size: .97rem; line-height: 1.85; color: var(--text-dim); }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; }
.scroll-hint { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-dim); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; animation: bounce 2.5s ease infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero > * { animation: fadeUp .8s cubic-bezier(.22,1,.36,1) both; }
.hero > *:nth-child(1){animation-delay:.15s} .hero > *:nth-child(2){animation-delay:.25s}
.hero > *:nth-child(3){animation-delay:.38s} .hero > *:nth-child(4){animation-delay:.5s}
.hero > *:nth-child(5){animation-delay:.62s}

/* ── SEP ── */
.sep { display: flex; align-items: center; gap: 1.5rem; padding: 0 4rem; }
.sep-line { flex: 1; height: 1px; background: var(--border); }
.sep-diamond { width: 7px; height: 7px; background: var(--gold-dim); transform: rotate(45deg); flex-shrink: 0; }

/* ── SEKCJE ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; color: var(--cream); }
.section-title em { font-style: italic; color: var(--gold); }

/* ── BANERY ── */
.projects-section { padding: 5rem 4rem 0; }
.banners-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.banner { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3/4; text-decoration: none; display: block; }
.banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s; filter: brightness(.35); background: linear-gradient(135deg,#1a1208,#0e0c09); }
.banner:hover .banner-bg { transform: scale(1.06); filter: brightness(.5); }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,12,9,.97) 0%, rgba(14,12,9,.3) 55%, transparent 100%); }
.banner-top-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.22,1,.36,1); background: var(--banner-color, var(--gold)); }
.banner:hover .banner-top-line { transform: scaleX(1); }
.banner-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 2rem 2.5rem; }
.banner-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--cream); line-height: 1.15; margin-bottom: .7rem; }
.banner-desc { font-size: .82rem; color: var(--text-dim); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.2rem; }
.banner-meta { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(200,168,75,.15); }
.banner-stat { display: flex; flex-direction: column; }
.banner-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--banner-color, var(--gold)); }
.banner-stat-label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.banner-arrow { display: flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-top: 1rem; transition: gap .3s, color .3s; }
.banner:hover .banner-arrow { gap: 12px; color: var(--gold); }

/* ── GALERIA MODELI ── */
.models-section { padding: 4rem 4rem 5rem; }
.models-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.models-loading { grid-column: 1/-1; text-align: center; padding: 3rem; color: var(--text-dim); font-size: .85rem; letter-spacing: .1em; }

/* ── KARTA MODELU ── */
.model-card { cursor: pointer; background: var(--bg2); overflow: hidden; border: 1px solid transparent; transition: border-color .3s; }
.model-card:hover { border-color: var(--border2); }
.model-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg3); }
.model-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, opacity .6s; }
.model-thumb img.fading { opacity: 0; }
.model-card:hover .model-thumb img { transform: scale(1.04); }
.model-thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.model-thumb-placeholder svg { opacity: .2; }
.proj-dot { position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; z-index: 3; }
.dot-rod-zamoyskich,
.dot-zamoyscy { background: var(--zam); }
.dot-dziedzictwo-lubelskiej,
.dot-lubelszczyzna { background: var(--lub); }
.dot-synagogi { background: var(--syn); }
.model-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(10,8,5,.88) 25%, rgba(10,8,5,.96)); padding: 1.2rem 1.2rem 1rem; max-height: 66.6%; display: flex; flex-direction: column; z-index: 2; }
.model-overlay-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--cream); line-height: 1.3; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.model-overlay-meta { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-top: .4rem; transition: opacity .8s ease, transform .8s ease; }
.model-overlay-desc { font-size: .88rem; color: rgba(208,196,180,.85); line-height: 1.65; margin-top: .8rem; max-height: 0; overflow: hidden; transition: max-height 1.1s cubic-bezier(.16,1,.3,1), opacity .9s ease; opacity: 0; position: relative; }
.desc-scroll { position: relative; }
.model-card:hover .model-overlay-name { transform: translateY(-3px); }
.model-card:hover .model-overlay-meta { opacity: 0; transform: translateY(-6px); }
.model-card:hover .model-overlay-desc { max-height: 200px; opacity: 1; overflow: hidden; }

.models-more { text-align: center; margin-top: 2.5rem; }
.models-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; }
/* ── STRONA MODELU ── */
.viewer-section { padding-top: 64px; width: 100%; height: calc(100vh - 64px); background: var(--bg3); position: relative; }
.viewer-section iframe { width: 100%; height: 100%; border: none; display: block; }




.content { max-width: 1100px; margin: 0 auto; padding: 3rem 4rem 5rem; }
.object-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.object-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.object-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4vw,3rem); font-weight: 600; color: var(--cream); line-height: 1.1; margin-bottom: .8rem; }
.object-meta { display: flex; flex-wrap: wrap; gap: 2rem; font-size: .82rem; color: var(--text-dim); }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dim); }
.meta-val { color: var(--text); }
.object-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.object-desc h2, .object-map-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--cream); margin-bottom: 1rem; }
.object-desc p { font-size: .95rem; line-height: 1.9; color: var(--text-dim); }
#object-map { height: 320px; border: 1px solid var(--border); }
.no-gps { display: flex; align-items: center; justify-content: center; height: 320px; color: var(--text-dim); font-size: .8rem; border: 1px solid var(--border); }
.tech-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.tech-section h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--cream); margin-bottom: 1.5rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.tech-item { background: var(--bg2); border: 1px solid var(--border); padding: 1rem 1.2rem; }
.tech-label { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: .3rem; }
.tech-val { font-size: .88rem; color: var(--text); }

/* ── MAPA ── */
.map-layout { display: flex; height: calc(100vh - 64px); margin-top: 64px; }
.sidebar { width: 340px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.sidebar-eyebrow { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.sidebar-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; color: var(--cream); }
.sidebar-title em { font-style: italic; color: var(--gold); }
.filters { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 5px 12px; cursor: pointer; font-family: 'Jost', sans-serif; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; transition: all .2s; }
.filter-btn:hover { border-color: var(--border2); color: var(--text); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.search-wrap { padding: .8rem 1.5rem; border-bottom: 1px solid var(--border); }
.search-input { width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; font-family: 'Jost', sans-serif; font-size: .82rem; outline: none; }
.search-input::placeholder { color: var(--text-dim); }
.obj-count { padding: .6rem 1.5rem; font-size: .7rem; color: var(--text-dim); letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.objects-list { flex: 1; overflow-y: auto; }
.objects-list::-webkit-scrollbar { width: 3px; }
.objects-list::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.obj-item { padding: .7rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .2s; display: flex; gap: .8rem; align-items: center; }
.obj-item:hover { background: var(--bg3); }
.obj-item.active { background: var(--bg3); border-left: 2px solid var(--gold); }
.obj-thumb { width: 52px; height: 39px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.obj-thumb-placeholder { width: 52px; height: 39px; background: var(--bg3); flex-shrink: 0; }
.obj-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.obj-dot.rod-zamoyskich { background: var(--zam); }
.obj-dot.dziedzictwo-lubelskiej { background: var(--lub); }
.obj-dot.synagogi { background: var(--syn); }
.obj-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600; color: var(--cream); line-height: 1.25; margin-bottom: .2rem; }
.obj-meta { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
#map { flex: 1; }
.leaflet-container { background: #0a0804; }
.leaflet-control-zoom { border: 1px solid var(--border) !important; background: var(--bg2) !important; }
.leaflet-control-zoom a { background: var(--bg2) !important; color: var(--gold) !important; border-color: var(--border) !important; }
.leaflet-popup-content-wrapper { background: var(--bg2) !important; border: 1px solid var(--border2) !important; border-radius: 2px !important; color: var(--text) !important; box-shadow: 0 8px 32px rgba(0,0,0,.6) !important; padding: 0 !important; }
.leaflet-popup-tip { background: var(--bg2) !important; }
.leaflet-popup-content { margin: 0 !important; width: 280px !important; }
.popup-thumb { width: 100%; height: 140px; object-fit: cover; display: block; }
.popup-body { padding: 1rem; }
.popup-tag { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.popup-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--cream); line-height: 1.25; margin-bottom: .4rem; }
.popup-meta { font-size: .7rem; color: var(--text-dim); margin-bottom: .8rem; }
.popup-desc { font-size: .78rem; color: var(--text-dim); line-height: 1.65; max-height: 80px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.popup-btn { display: block; text-align: center; background: var(--gold); color: var(--bg); padding: 8px; font-family: 'Jost', sans-serif; font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border: none; width: 100%; margin-top: 1rem; text-decoration: none; transition: background .2s; }
.popup-btn:hover { background: var(--gold-pale); }

/* Pinezki mapy */
.map-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; filter: none !important; }
.map-pin-head { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.map-pin:hover .map-pin-head { transform: rotate(-45deg) scale(1.15); }
.map-pin-letter { transform: rotate(45deg); font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.95); }
.proj-rod-zamoyskich .map-pin-head { background: linear-gradient(135deg,#D4A843,#A07828); }
.proj-dziedzictwo-lubelskiej .map-pin-head { background: linear-gradient(135deg,#4aaa8a,#2d7a62); }
.proj-synagogi .map-pin-head { background: linear-gradient(135deg,#9a6ec0,#6a449a); }
.proj-default .map-pin-head { background: linear-gradient(135deg,#888,#555); }

/* ── FOOTER ── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3.5rem 4rem 1.5rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: .8rem; font-size: .82rem; color: var(--text-dim); line-height: 1.75; max-width: 280px; }
.gold-rule { width: 36px; height: 1px; background: var(--gold-dim); margin: .8rem 0; }
.footer-col h4 { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { text-decoration: none; color: var(--text-dim); font-size: .83rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-dim); }
.footer-bottom a { color: var(--gold-dim); text-decoration: none; }

/* ── LOADER ── */
.page-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; transition: opacity .5s; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo img { height: 32px; width: auto; }
.loader-bar-wrap { width: 200px; height: 1px; background: var(--border); }
.loader-bar { height: 1px; background: var(--gold); width: 0; transition: width .4s; }
.loader-txt { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-dim); }

/* ── RESPONSIVE ── */
/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 300; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--cream); transition: all .3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(14,12,9,.98); backdrop-filter: blur(24px); z-index: 201; flex-direction: column; align-items: center; justify-content: center; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 0; width: 100%; padding: 0 2rem; }
.mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 400; color: var(--cream); text-decoration: none; letter-spacing: .06em; transition: color .2s; display: block; padding: 1.2rem 0; }
.mobile-menu a:hover, .mobile-menu a:focus { color: var(--gold); }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .site-nav {
    padding: 0 1.5rem;
    height: 64px;
    flex-wrap: nowrap;
  }
  .nav-links { display: none; }
  .nav-search-wrap { display: none !important; }
  .mobile-search-bar { display: none; }
  .hamburger { display: flex !important; margin-left: auto; }

  /* Banery – pełna wysokość żeby nie obcinać */
  .banners-grid { grid-template-columns: 1fr; gap: 3px; }
  .banner { aspect-ratio: unset; min-height: 320px; }
  .banner-bg { background-position: center 30% !important; }
  .banner-content { padding: 1.5rem; }
  .banner-title { font-size: 1.6rem; }
  .banner-desc { -webkit-line-clamp: 2; }

  .projects-section { padding: 2rem 1rem 0; }
  .models-section { padding: 2rem 1rem 3rem; }
  .sep { padding: 0 1rem; }

  /* Modele – 2 kolumny, mniejsza czcionka */
  .models-grid { grid-template-columns: repeat(2,1fr); gap: 2px; }
  .model-overlay-name { font-size: 0.85rem; line-height: 1.2; }
  .model-overlay-meta { font-size: 0.62rem; margin-top: .2rem; }
  .model-overlay-desc { font-size: 0.75rem; }
  .model-overlay { padding: .7rem .7rem .6rem; }

  .site-footer { padding: 2.5rem 1.5rem 1rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .object-grid { grid-template-columns: 1fr; }
  .content { padding: 2rem 1.5rem 3rem; }
  .map-layout { flex-direction: column; }
  .sidebar { width: 100%; height: 280px; }

  /* Hero mobile */
  .hero { padding: 80px 1.5rem 3rem; }
  .hero-title { font-size: clamp(2.2rem,8vw,3.5rem); }
}

@media (max-width: 480px) {
  .models-grid { grid-template-columns: 1fr; }
  .banner { min-height: 240px; }
  .banner-title { font-size: 1.4rem; }
}
