/* =========================================================
   RAPTOR Minerały – strona publiczna
   Ciemny, „muzealny” styl: okazy jak w podświetlonej gablocie
   ========================================================= */

:root {
  --bg: #0e0d10;
  --bg-2: #141217;
  --surface: #1b1920;
  --surface-2: #232029;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ece7df;
  --muted: #a39dab;
  --gold: #d4b06a;
  --gold-2: #e9cf95;
  --gold-ink: #1a1408;
  --amethyst: #a58be0;
  --ok: #86cfa6;
  --warn: #e7b66b;
  --err: #f08c8c;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(212, 176, 106, .5); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.hp { position: absolute; left: -9999px; }

.kicker {
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cfc9d3; max-width: 62ch; }

.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; }
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 44px; height: 44px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); background: var(--gold-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: .6em 1.05em; font-size: .86rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; color: var(--gold); font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic, a:hover > .link-arrow .ic { transform: translateX(4px); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: .25s var(--ease); }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.chip { display: inline-block; padding: .3em .8em; border-radius: 999px; background: rgba(212, 176, 106, .12); color: var(--gold-2); font-size: .8rem; font-weight: 600; }
.pill { display: inline-block; padding: .3em .75em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(134, 207, 166, .14); color: var(--ok); }
.pill-reserved { background: rgba(231, 182, 107, .16); color: var(--warn); }
.pill-sold { background: rgba(255, 255, 255, .1); color: var(--muted); }

/* ---------- Nagłówek ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body:not(.is-home) .site-header { background: rgba(14, 13, 16, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 46px; height: 46px; flex: none; border-radius: 50%; }
.brand picture { flex: none; }
.brand-logo { height: 54px; width: auto; }
.f-brand .brand-logo { height: 92px; }
.brand-logo + .brand-text, .brand picture + .brand-text { padding-left: 12px; border-left: 1px solid var(--line-2); }
@media (max-width: 560px) { .site-header .brand-text { display: none; } .site-header .brand-logo { height: 46px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 600 1.55rem/1 var(--serif); letter-spacing: .14em; }
.brand-text small { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; color: #ddd7e0; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.is-active > a { color: var(--gold-2); }
.main-nav > ul > li.is-active > a { background: rgba(212, 176, 106, .08); }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: rgba(27, 25, 32, .97); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: rgba(255, 255, 255, .05); color: var(--gold-2); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lang span { padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang span.on { background: var(--surface-2); color: var(--text); }
.lang:hover span:not(.on) { color: var(--gold-2); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; background: rgba(14, 13, 16, .98); backdrop-filter: blur(10px);
    padding: 24px var(--gutter) 120px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease);
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--bg); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { font: 500 1.9rem/1.2 var(--serif); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .main-nav > ul > li > a .ic { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 6px 0 12px 12px; }
  .sub a { font-size: 1.05rem; padding: 9px 0; color: var(--muted); }
  .nav-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; align-items: flex-start; }
  .nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; text-decoration: none; color: var(--gold-2); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(48px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: heroZoom 18s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 13, 16, .94) 0%, rgba(14, 13, 16, .7) 42%, rgba(14, 13, 16, .1) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.next-ticket {
  position: relative; display: flex; flex-direction: column; gap: 6px; width: 340px; padding: 22px 24px; text-decoration: none;
  border-radius: var(--radius-lg); background: rgba(27, 25, 32, .72); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.next-ticket:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--text); }
.nt-label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.nt-label em { font-style: normal; color: var(--muted); letter-spacing: .04em; text-transform: none; font-weight: 500; margin-left: 6px; }
.next-ticket strong { font: 500 1.7rem/1.15 var(--serif); margin: 4px 0 6px; }
.nt-meta { color: #cfc9d3; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.nt-go { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
.hero-scroll { position: absolute; left: 50%; bottom: 20px; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollHint 2.4s ease-in-out infinite; }
@keyframes scrollHint { 0%, 100% { opacity: .2; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 860px) {
  .hero { align-items: flex-end; min-height: min(90svh, 760px); }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(14, 13, 16, .78) 50%, rgba(14, 13, 16, .25) 100%); }
  .hero-in { grid-template-columns: 1fr; }
  .next-ticket { width: 100%; }
  .hero-scroll { display: none; }
}

/* ---------- Przesuwany pasek ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: italic 500 1.6rem/1 var(--serif); color: #bdb6c4; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: "◆"; font-style: normal; font-size: .7rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.section-dark { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head .lead { margin: 1rem 0 0; }
.h-sub { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 20px; }
.h-sub small { font: 500 1rem var(--sans); color: var(--muted); }

/* Ścieżki: odwiedzający / wystawcy */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.path-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; min-height: 440px; isolation: isolate; border: 1px solid var(--line); }
.path-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 13, 16, .96) 18%, rgba(14, 13, 16, .35) 70%, rgba(14, 13, 16, .15)); }
.path-card:hover img { transform: scale(1.05); }
.path-card:hover { color: var(--text); }
.path-body { position: absolute; inset: auto 0 0; padding: clamp(24px, 3vw, 36px); }
.path-body h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.path-body p:not(.kicker) { color: #cfc9d3; max-width: 46ch; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path-card { min-height: 380px; } }

.events-block { margin-top: clamp(48px, 6vw, 80px); }

/* Karta terminu */
.ev-list { display: grid; gap: 14px; margin-bottom: 24px; }
.ev-card { display: grid; grid-template-columns: 128px 1fr auto; gap: 24px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s var(--ease), background .3s var(--ease); }
.ev-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(160deg, rgba(212, 176, 106, .2), rgba(212, 176, 106, .04)); border: 1px solid rgba(212, 176, 106, .3); text-decoration: none; text-align: center; padding: 8px; }
.ev-days { font: 500 2.3rem/1 var(--serif); color: var(--gold-2); }
.ev-month { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.ev-body h3 { margin: 0 0 .35em; }
.ev-body h3 a { text-decoration: none; }
.ev-body .kicker { margin-bottom: .4rem; }
.ev-meta { margin: 0 0 .2em; color: var(--muted); font-size: .92rem; display: flex; gap: 8px; align-items: baseline; }
.ev-meta .ic { color: var(--gold); flex: none; }
.ev-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ev-card.is-past { opacity: .7; }
.ev-card.is-past .ev-date { background: var(--surface-2); border-color: var(--line); }
.ev-card.is-past .ev-days { color: var(--muted); }
@media (max-width: 760px) {
  .ev-card { grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; }
  .ev-days { font-size: 1.6rem; }
  .ev-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.empty-card { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius-lg); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.empty-card > .ic { color: var(--gold); }
.empty-card > div { flex: 1 1 260px; }
.empty-card h4 { margin-bottom: .25em; }
.empty-card p { margin: 0; color: var(--muted); }
details.past { margin-top: 56px; }
details.past summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
details.past summary::-webkit-details-marker { display: none; }
details.past summary .h-sub { margin: 0 0 14px; }
details.past[open] summary > .ic { transform: rotate(180deg); }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-top: 48px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, rgba(212, 176, 106, .16), transparent 55%), var(--surface); border: 1px solid rgba(212, 176, 106, .25); }
.callout h3 { margin-bottom: .3em; }
.callout p { margin: 0; color: var(--muted); max-width: 60ch; }
.callout .btn-row { margin: 0; }
.organizer { display: flex; align-items: center; gap: 20px 28px; margin-top: 48px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid rgba(212, 176, 106, .25); }
.organizer img { display: block; width: 120px; height: auto; border-radius: 14px; flex: none; }
.organizer h3 { margin: 0 0 .2em; }
.organizer p { margin: 0; color: var(--muted); }
.organizer .kicker { margin-bottom: .3em; }
.organizer-compact { margin-top: 0; gap: 14px; padding: 16px; }
.organizer-compact img { width: 72px; border-radius: 10px; }
@media (max-width: 520px) { .organizer:not(.organizer-compact) { flex-direction: column; align-items: flex-start; } }

/* Szyna z minerałami */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 320px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 8px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Karta minerału */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px 20px; }
.m-card-link { display: block; text-decoration: none; }
.m-card-link:hover { color: var(--text); }
.m-card-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.m-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.m-card-img img.alt { opacity: 0; }
.m-card-link:hover .m-card-img img { transform: scale(1.04); }
.m-card-link:hover .m-card-img img.alt { opacity: 1; }
.m-card-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 -60px 60px -40px rgba(0, 0, 0, .6); pointer-events: none; }
.m-card-img .pill { position: absolute; left: 12px; top: 12px; z-index: 2; backdrop-filter: blur(8px); background: rgba(14, 13, 16, .72); }
.m-card-body { padding: 14px 4px 0; }
.m-card-body h3 { font-size: 1.45rem; margin: 0 0 .15em; }
.m-loc { color: var(--muted); font-size: .9rem; margin: 0 0 .5em; }
.m-price { font-weight: 700; color: var(--gold-2); margin: 0; letter-spacing: .01em; }
.m-card.is-sold .m-card-img img { filter: grayscale(.55) brightness(.75); }
.m-card.is-sold .m-price { color: var(--muted); font-weight: 500; }
.price-old { color: var(--muted); font-weight: 500; text-decoration-thickness: 1px; margin-right: .35em; }
.price-sold { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }
.product-price.is-sold .price-sold { font-size: .45em; vertical-align: middle; }

/* O nas */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about h2 { max-width: 14ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.stats div { margin: 0; }
.stats dt { font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--serif); color: var(--gold-2); }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.mosaic img:first-child { grid-row: span 2; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .mosaic { grid-template-rows: 180px 180px; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Sklep – zajawka */
.shop-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.shop-teaser > img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.shop-steps { margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.shop-steps li { counter-increment: st; display: flex; gap: 12px; align-items: baseline; }
.shop-steps li::before { content: counter(st); flex: none; width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: .8rem; font-weight: 700; }
@media (max-width: 860px) { .shop-teaser { grid-template-columns: 1fr; } }
.hours { list-style: none; margin: 0 0 1em; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { text-align: right; }

/* Karta wpisu */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.p-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.p-card a:hover { border-color: var(--line-2); transform: translateY(-3px); color: var(--text); }
.p-card-img { aspect-ratio: 2 / 1; overflow: hidden; background: #000; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.p-card a:hover .p-card-img img { transform: scale(1.05); }
.p-card-body { padding: 22px 24px 26px; }
.p-card-body time { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.p-card-body h3 { margin: .45em 0 .4em; font-size: 1.55rem; }
.p-card-body p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Pasek CTA */
.cta-band { padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(90% 160% at 0% 100%, rgba(165, 139, 224, .18), transparent 60%), radial-gradient(80% 140% at 100% 0%, rgba(212, 176, 106, .2), transparent 55%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-band-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0; }
.cta-band .btn-row { margin: 0; }

/* ---------- Nagłówek podstrony ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 72px); isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 85% 0%, rgba(165, 139, 224, .12), transparent 60%), var(--bg-2); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 13, 16, .95) 10%, rgba(14, 13, 16, .55) 70%, rgba(14, 13, 16, .3)), linear-gradient(0deg, var(--bg) 0%, transparent 60%); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 18ch; margin-bottom: .3em; }
.page-hero .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }
.card-gold { padding: 26px; border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 100% 0%, rgba(212, 176, 106, .14), transparent 60%), var(--surface); border: 1px solid rgba(212, 176, 106, .28); display: grid; gap: 12px; }
.card-gold h3 { margin: 0; }
.card-gold h4 { margin: 8px 0 0; font-size: 1.15rem; }
.card-gold p { margin: 0; color: #cfc9d3; }
.card-gold .btn-block + .btn-block { margin-top: -2px; }
.card-gold .addr { display: flex; gap: 10px; }
.card-gold .addr .ic { color: var(--gold); margin-top: 3px; }
.mini-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-events a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.mini-events a:hover { border-color: var(--gold); color: var(--text); }
.mini-events strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--gold-2); }
.mini-events span { color: var(--muted); font-size: .9rem; }

/* Treść z edytora */
.prose { font-size: 1.04rem; color: #ddd7df; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 1.6em 0 .5em; color: var(--text); }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-2); }
.prose blockquote { margin: 0 0 1.6em; padding: 4px 0 4px 26px; border-left: 2px solid var(--gold); font: italic 500 clamp(1.3rem, 2.2vw, 1.65rem)/1.4 var(--serif); color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }
.prose-terms ol { counter-reset: t; list-style: none; padding: 0; }
.prose-terms ol > li { counter-increment: t; position: relative; padding: 14px 0 14px 54px; border-bottom: 1px solid var(--line); margin: 0; }
.prose-terms ol > li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 12px; font: 600 .95rem/1.6 var(--sans); color: var(--gold); letter-spacing: .04em; }
.prose-terms ol ul { margin: .6em 0 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.6em; font-size: .97rem; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: rgba(212, 176, 106, .14); color: var(--gold-2); font: 600 .78rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--surface); }
.prose-terms blockquote { margin: 0 0 1.6em; padding: 18px 22px; border: 1px solid rgba(212, 176, 106, .35); border-left: 3px solid var(--gold); border-radius: var(--radius); background: rgba(212, 176, 106, .07); font: inherit; color: #ddd7df; }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tbody tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .prose td { padding: 2px 0; border: 0; }
  .prose tbody tr:nth-child(even) td { background: none; }
}

/* Fakty o wydarzeniu */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 36px; }
.fact { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fact > .ic { color: var(--gold); margin-top: 2px; }
.fact span { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact strong { display: block; font: 500 1.3rem/1.2 var(--serif); }
.fact strong.sm { font: 600 .95rem/1.5 var(--sans); }
.fact small { color: var(--muted); }

/* ---------- Katalog minerałów ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); }
.tab small { font-weight: 500; opacity: .7; margin-left: 2px; }
.tab.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--gold); }
.search .ic { color: var(--muted); }
.search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; padding: 12px 0; outline: none; min-width: 0; }
.select select { appearance: none; padding: 12px 40px 12px 16px; border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a39dab' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.count { margin: 0 0 18px; font-size: .9rem; }

/* Karta okazu */
.product { padding-top: calc(var(--header-h) + 28px); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery-main { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; transition: opacity .25s; }
.zoom { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 13, 16, .7); backdrop-filter: blur(6px); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); opacity: .6; transition: .2s; background: #000; }
.thumbs a.on, .thumbs a:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); margin-bottom: .2em; }
.product-price { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); color: var(--gold-2); margin-bottom: .6em; }
.specs { margin: 24px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.specs dd { margin: 0; }
.note { color: #cfc9d3; font-size: .95rem; padding: 14px 16px; border-radius: var(--radius); background: rgba(212, 176, 106, .08); border: 1px solid rgba(212, 176, 106, .2); }
.note .ic { color: var(--gold); }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } .product-info { position: static; } .specs div { grid-template-columns: 120px 1fr; } }

/* Galeria zdjęć wpisu / sklepu */
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; border: 1px solid var(--line); cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .6s var(--ease); }
.masonry a:hover img { transform: scale(1.04); }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); text-decoration: none; }
.pager a[aria-current] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ---------- Kontakt i formularze ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.c-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.c-card > .ic { color: var(--gold); margin-bottom: 14px; }
.c-card h2 { font-size: 1.6rem; margin-bottom: .5em; }
.c-card p { margin-bottom: .8em; }
.c-card a:not(.link-arrow) { text-decoration: none; }
.big-link { font: 500 1.9rem/1 var(--serif); color: var(--gold-2); }

.msg-form { display: grid; gap: 16px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 176, 106, .15); }
.field textarea { resize: vertical; min-height: 130px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.check a { color: var(--gold-2); }
.msg-form .btn { justify-self: start; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: rgba(134, 207, 166, .12); border: 1px solid rgba(134, 207, 166, .35); color: #c8f0d8; }
.alert-error { background: rgba(240, 140, 140, .1); border: 1px solid rgba(240, 140, 140, .35); color: #ffd0d0; }

/* ---------- Stopka ---------- */
.site-footer { background: #0a090c; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 0; font-size: .94rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.f-brand p { margin: 18px 0; max-width: 36ch; }
.f-title { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer a { text-decoration: none; color: #cfc9d3; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer strong { color: var(--text); font-weight: 600; }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .85rem; }
.f-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Dolny pasek akcji na telefonie */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(14, 13, 16, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; text-decoration: none; font-size: .72rem; color: var(--muted); }
  .mobile-bar a .ic { color: var(--gold); }
}

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 7, .96); display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9rem; }
.lb .icon-btn { background: rgba(255, 255, 255, .06); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 700px) { .lb-stage { padding: 60px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: -58px; transform: none; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* ---------- Animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Cyfry: font szeryfowy ma cyfry nautyczne – liczby piszemy krojem bezszeryfowym */
.product-price, .stats dt, .ev-days, .mini-events strong, .big-link, .fact strong:not(.sm) { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
.product-price { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.stats dt { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 400; }
.ev-days { font-size: 2rem; }
.mini-events strong, .fact strong:not(.sm) { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.big-link { font-size: 1.6rem; }
.shop-info { margin-top: 48px; max-width: 760px; }
.card-gold .shop-steps { margin: 0 0 1.2rem; }
