/* =========================================================
   NORDBOX — style.css
   Kolory marki: grafit #111, granat #1B2A3A, mosiądz #B08D57,
   jasne tła #F2F0EC / #FAF9F6, szary tekst #6B6B6B
   ========================================================= */

:root {
  --ink: #111111;
  --navy: #1B2A3A;
  --gold: #B08D57;
  --gold-light: #CBAE7E;
  --sand: #F2F0EC;
  --paper: #FAF9F6;
  --muted: #6B6B6B;
  --line: rgba(17, 17, 17, .12);
  --line-dark: rgba(242, 240, 236, .14);

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--gold); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Typografia ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 46ch; }
.gold { color: var(--gold); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-size: .86rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #9a7a48; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--wa { background: #1f8f4e; color: #fff; }
.btn--wa:hover { background: #18773f; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--sand);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.site-header.is-solid, .site-header.is-open { background: rgba(17, 17, 17, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .85; transition: opacity .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--gold-light); }
.header-contact { display: flex; align-items: center; gap: 14px; }
.phones { display: grid; gap: 1px; }
.phones a { text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .84rem; letter-spacing: .03em; line-height: 1.35; white-space: nowrap; }
.phones a:hover { color: var(--gold-light); }
.phones small { display: inline-block; min-width: 3.9em; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .06em; opacity: .65; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; color: inherit; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Miejsce na przyszły przełącznik języków (PL / EN / UA / DE) */
.lang-switch { display: none; }

.nav .nav-phone { display: none; color: var(--gold-light); }

@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .brand img { height: 32px; }
  .burger { display: block; }
  .phones { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17, 17, 17, .97); padding: 8px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
  }
  .is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
  .nav .nav-phone { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--sand); background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 28%),
    linear-gradient(0deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.55) 38%, rgba(17,17,17,0) 70%),
    linear-gradient(90deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 60%);
}
.hero__content { padding-bottom: clamp(72px, 12vh, 140px); padding-top: calc(var(--header-h) + 40px); }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { color: rgba(242, 240, 236, .82); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; place-items: center; gap: 8px; color: rgba(242,240,236,.7); text-decoration: none;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 600px) { .hero__scroll { display: none; } .hero__actions .btn { flex: 1 1 100%; } }

/* Hero podstron */
.hero--sub { min-height: 82svh; }
.hero--sub h1 { max-width: 16ch; }
.badge {
  display: inline-block; font-family: var(--font-head); font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
  font-size: .8rem; padding: 8px 14px; border: 1px solid var(--gold); color: var(--gold-light); margin-bottom: 22px;
  background: rgba(17, 17, 17, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__content { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero__content .btn { text-shadow: none; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--sand); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--sand { background: var(--sand); }
.section--dark .lead, .section--navy .lead { color: rgba(242, 240, 236, .72); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin: 0 auto; }

/* ---------- Czym jest NORDBOX (sticky zdjęcia) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.story__text { padding: 4vh 0; }
.story__text .big {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.28; letter-spacing: -.01em; margin-bottom: 1.2em; text-wrap: balance;
}
.story__text .big span { color: var(--gold); }
.story__text p { color: #3a3a3a; }
.story__beat { padding: 7vh 0; border-top: 1px solid var(--line); }
.story__beat:first-of-type { border-top: 0; padding-top: 0; }
.story__beat h3 { display: flex; align-items: baseline; gap: 14px; }
.story__beat h3 small { font-family: var(--font-head); color: var(--gold); font-size: .8rem; letter-spacing: .2em; }
.story__media { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); min-height: 420px; max-height: 760px; }
.story__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s var(--ease); overflow: hidden; border-radius: var(--radius); }
.story__media figure.is-active { opacity: 1; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s var(--ease); }
.story__media figure.is-active img { transform: scale(1); }
.story__media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: var(--sand); font-size: .82rem; letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(17,17,17,.75));
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__media { position: relative; top: 0; height: 62vw; min-height: 260px; order: -1; }
  .story__beat { padding: 40px 0; }
}

/* ---------- Dlaczego NORDBOX ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.feature { background: var(--ink); padding: clamp(28px, 3.4vw, 44px); transition: background .4s var(--ease); }
.feature:hover { background: #18191b; }
.feature svg { width: 42px; height: 42px; color: var(--gold); margin-bottom: 22px; stroke-width: 1.3; }
.feature h3 { color: var(--sand); margin-bottom: 10px; }
.feature p { color: rgba(242, 240, 236, .66); font-size: .97rem; margin: 0; }
.footnote { font-size: .8rem; color: rgba(242, 240, 236, .5); margin-top: 26px; max-width: 80ch; }
.section--sand .footnote, .section:not(.section--dark):not(.section--navy) .footnote { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Cytat / pas emocji ---------- */
.quote-band { position: relative; min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--sand); overflow: hidden; isolation: isolate; }
.quote-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, .58); z-index: -1; }
.quote-band blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.18; max-width: 22ch; text-wrap: balance; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--font-body); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Karty wersji ---------- */
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.version {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(460px, 62vw, 680px); padding: clamp(26px, 3.6vw, 48px);
  color: var(--sand); text-decoration: none; overflow: hidden; isolation: isolate; border-radius: var(--radius);
}
.version img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.version::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.45) 48%, rgba(17,17,17,.08) 100%); transition: background .6s; }
.version:hover img { transform: scale(1.05); }
.version__tag { font-family: var(--font-head); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.version h3 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: .02em; margin-bottom: 14px; }
.version p { color: rgba(242,240,236,.8); max-width: 38ch; margin-bottom: 28px; }
.version .btn { align-self: flex-start; }
.version:hover .btn--ghost { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .versions { grid-template-columns: 1fr; } .version { min-height: 520px; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__note { font-size: .92rem; color: rgba(242, 240, 236, .62); margin-top: 22px; }
.contact__more { margin: 32px 0 0; }
.contact .back-link { margin-top: 18px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.person { background: rgba(242, 240, 236, .04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); }
.person h3 { font-size: 1.5rem; margin-bottom: 6px; }
.person__phone { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; text-decoration: none; white-space: nowrap; margin-bottom: 22px; }
.person__phone:hover { color: var(--gold-light); }
.person__actions { display: grid; gap: 10px; }
.contact__mail { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 20px clamp(22px, 2.6vw, 32px); text-decoration: none; background: rgba(242, 240, 236, .04); border: 1px solid var(--line-dark); border-radius: var(--radius); transition: color .2s; }
.contact__mail:hover { color: var(--gold-light); }
.contact__mail svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.contact__mail span { min-width: 0; }
.contact__mail small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.contact__mail strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.site-footer { background: #0b0b0b; color: rgba(242,240,236,.6); padding: 64px 0 32px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--font-head); color: var(--sand); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pływający WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1f8f4e; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transform: translateY(120px); transition: transform .5s var(--ease), background .2s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: #18773f; }
.wa-float svg { width: 28px; height: 28px; }

/* ============ PODSTRONY ============ */
.intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }
.intro p { color: #3a3a3a; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__img { aspect-ratio: 4 / 3; } }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.section--dark .ticks li, .section--navy .ticks li { color: rgba(242,240,236,.82); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.col { border-top: 1px solid var(--gold); padding-top: 26px; }
.col h3 { margin-bottom: 12px; }
.col p, .col li { font-size: .97rem; }
.section--dark .col p, .section--navy .col p { color: rgba(242,240,236,.7); }
.col ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cols { grid-template-columns: 1fr; } }

/* Dane techniczne */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table caption { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); padding-right: 20px; width: 48%; }
.spec-table td { font-weight: 600; }
.spec-table td.num { text-align: right; white-space: nowrap; }
.big-num { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 64px); }
.big-num div { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.big-num div small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.big-num div sup { font-size: .45em; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }

/* Porównanie */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare thead th { font-family: var(--font-head); letter-spacing: .14em; font-size: .82rem; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.compare .yes { color: var(--gold); font-weight: 700; }
.compare .opt { color: var(--muted); font-style: italic; }
.compare .hl { background: rgba(176,141,87,.08); }

/* Formalności */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.step { counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.step p { font-size: .95rem; color: rgba(242,240,236,.7); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Galeria */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); position: relative; background: #ddd; }
.gallery img { width: 100%; transition: transform .8s var(--ease), filter .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .3s; pointer-events: none; }
.gallery a:hover::after { box-shadow: inset 0 0 0 3px var(--gold); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.gallery a:hover figcaption, .gallery a:focus-visible figcaption { opacity: 1; }
@media (hover: none) { .gallery figcaption { opacity: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,8,.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(242,240,236,.75); font-size: .88rem; margin: 0; padding: 0 70px; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--sand); cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold-light); }
.lightbox button svg { width: 30px; height: 30px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Wizualizacja 3D */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plans a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.08); transition: transform .4s var(--ease); }
.plans a:hover { transform: translateY(-4px); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

.back-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 40px; }
.back-link:hover { opacity: 1; color: var(--gold-light); }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

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