/* =========================================================
   MEBLOMIR — arkusz stylów
   Paleta: ciepła biel + drewno + stonowana oliwka
   ========================================================= */

:root {
  --bg:        #FBF8F3;
  --surface:   #FFFFFF;
  --sand:      #F2EBDE;
  --sand-2:    #E9DFCC;
  --line:      #E6DCC9;
  --wood:      #B0834E;
  --wood-dark: #8C6438;
  --olive:     #5E6B4B;
  --olive-dark:#475437;
  --olive-soft:#ECF0E4;
  --ink:       #2B2A26;
  --muted:     #6F695C;
  --footer:    #23251D;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(43,42,38,.35);
  --shadow-sm: 0 8px 22px -16px rgba(43,42,38,.4);
  --ease: cubic-bezier(.2,.7,.2,1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--wood-dark);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .9rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--wood); display:inline-block; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  --c: var(--olive);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  border: 1.6px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--sand-2); }
.btn-outline:hover { border-color: var(--olive); color: var(--olive-dark); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

/* ---------- topbar ---------- */
.topbar { background: var(--footer); color: #efece4; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #efece4; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 1.4rem; align-items: center; }
.topbar svg { width: 15px; height: 15px; stroke: var(--wood); }
.tb-muted { color: #b7b3a6; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,243,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 42px; width: auto; }
.brand .bname { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; line-height: 1; }
.brand .btag { display:block; font-family: var(--sans); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0 -.85rem 0 auto; padding: 0; }
.nav-links a {
  font-weight: 600; font-size: .96rem; padding: .55rem .85rem; border-radius: 999px;
  color: var(--ink); transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--sand); }
.nav-links a[aria-current="page"] { color: var(--olive-dark); background: var(--olive-soft); }
.nav-actions { display: flex; align-items: center; gap: .7rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ---------- sections ---------- */
section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.bg-sand { background: var(--sand); }
.bg-olive { background: var(--olive-soft); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: 0; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 560px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem,5vw,4.5rem) clamp(1.4rem,4vw,3.5rem) clamp(2.5rem,5vw,4.5rem) 0; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 1.4rem 0; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(255,255,255,.94);
  border-radius: 14px; padding: .7rem 1rem; display: flex; gap: .7rem; align-items: center; box-shadow: var(--shadow-sm);
}
.hero-badge strong { font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.hero-badge span { font-size: .8rem; color: var(--muted); line-height: 1.2; }

/* ---------- page header (inner pages) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content:""; position:absolute; inset:0; background-image: var(--hero-img); background-size: cover; background-position: center; transform: scale(1.02); }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(105deg, rgba(30,32,24,.80) 0%, rgba(33,37,27,.62) 45%, rgba(35,40,28,.34) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(1rem,1vw,1rem); padding-bottom: clamp(1rem,1vw,1rem); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero h1.h1-2line { max-width: 34ch; }
.page-hero .lead { color: #f1efe8; }
.page-hero .eyebrow { color: #e7cfa9; }
.page-hero .eyebrow::before { background: #e7cfa9; }
.crumbs { font-size: .85rem; color: #e9e6dd; margin-bottom: 1rem; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand-2); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--olive-soft); margin-bottom: 1.1rem;
}
.card .ic svg { width: 26px; height: 26px; stroke: var(--olive-dark); fill: none; stroke-width: 1.7; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- offer cards (with image) ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.offer-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.offer-card:hover .ph img { transform: scale(1.06); }
.offer-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.offer-card h3 { margin-bottom: .45rem; }
.offer-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.offer-card .more { margin-top: .8rem; color: var(--olive-dark); font-weight: 700; font-size: .92rem; display: inline-flex; gap: .4rem; }

/* ---------- alternating feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem,4vw,3.6rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split + .split { margin-top: clamp(2.5rem,5vw,4.5rem); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem); color: var(--olive-dark); line-height: 1; }
.stat .l { color: var(--muted); font-size: .92rem; margin-top: .4rem; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .num {
  font-family: var(--serif); font-size: 1.05rem; color: #fff; background: var(--olive);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .9rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gallery .img-wrap { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.gallery .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover .img-wrap img { transform: scale(1.07); }
.gallery .tag {
  position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.92);
  color: var(--olive-dark); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px;
}
.gallery figcaption { padding: .95rem 1.1rem 1.2rem; }
.gallery figcaption b { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: .2rem; }
.gallery figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--olive); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem,5vw,3.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { color: #e7ecdf; margin: 0; max-width: 46ch; }
.cta-band .actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- about values list ---------- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { flex: 0 0 auto; width: 22px; height: 22px; stroke: var(--olive); fill: none; stroke-width: 2; margin-top: 2px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.8rem,4vw,3rem); align-items: stretch; }
.contact-grid > .fade-up:last-child { display: flex; }
.contact-grid .form { display: flex; flex-direction: column; flex: 1; }
.contact-grid .form .field-grow { display: flex; flex-direction: column; flex: 1; }
.contact-grid .form .field-grow textarea { flex: 1; }
.info-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--olive-soft); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; stroke: var(--olive-dark); fill: none; stroke-width: 1.7; }
.info-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .15rem; }
.info-list a, .info-list span { font-size: 1.05rem; color: var(--ink); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .95rem; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: .82rem; color: var(--muted); margin: .2rem 0 1.2rem; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 11px; background: var(--olive-soft); color: var(--olive-dark); font-weight: 600; display: none; }
.form-status.show { display: block; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 1.6rem; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- dotacja ---------- */
.funding-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2rem); box-shadow: var(--shadow-sm); }
.funding-logos { display: flex; gap: 1.2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.funding-logos .fl {
  height: 76px; min-width: 150px; border: 1.5px dashed var(--sand-2); border-radius: 10px;
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .78rem; padding: .5rem 1rem; background: var(--bg);
}
.funding-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 1.8rem; }
.funding-meta .m { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.funding-meta b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wood-dark); margin-bottom: .3rem; }
.funding-meta span { font-family: var(--serif); font-size: 1.25rem; }
.prose p { color: #43413a; }
.prose h3 { margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: #cfccc2; padding: clamp(3rem,6vw,4.5rem) 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.site-footer img.flogo { height: 44px; margin-bottom: 1rem; }
.site-footer p { color: #aaa79c; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a:hover { color: #fff; }
.fcontact li { display: flex; gap: .55rem; margin-bottom: .55rem; font-size: .95rem; }
.fcontact svg { width: 17px; height: 17px; stroke: var(--wood); flex: 0 0 auto; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8f8c82; }
.footer-bottom a:hover { color: #fff; }

/* ---------- helpers ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.4rem 0; }
  .hero-media { aspect-ratio: 16/10; margin: 0 0 1.5rem; order: -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .offer-grid { grid-template-columns: repeat(2,1fr); }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .funding-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: .2rem; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 22px 1.4rem;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem .9rem; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .offer-grid, .gallery, .steps, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Dodatki: stats jednoliniowe, lista oferty, lightbox,
   pasek cookies
   ========================================================= */

/* nagłówki kart „Dlaczego my” w jednej linii */
.grid-4 .card h3 { font-size: 1.06rem; }
/* numery w statystykach wyrównane do wspólnej linii bazowej (różne rozmiary) */
.stat .n { display: flex; align-items: flex-end; justify-content: center; min-height: clamp(2rem, 4vw, 2.8rem); }
/* tekstowy „numer” w statystykach (np. „Cała Polska”) — bez łamania */
.stat .n.n-text { font-size: clamp(1.5rem, 3.2vw, 2.1rem); white-space: nowrap; line-height: 1.05; }

/* ---------- oferta: widok listy ---------- */
.offer-list { display: grid; gap: 1.6rem; }
.offer-row {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.4rem,3vw,2.4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; align-items: stretch; scroll-margin-top: 100px;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.offer-row:hover { box-shadow: var(--shadow); }
.offer-row .offer-img { overflow: hidden; }
.offer-row .offer-img img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .6s var(--ease); }
.offer-row:hover .offer-img img { transform: scale(1.05); }
.offer-row .offer-content { padding: clamp(1.5rem,2.6vw,2.2rem) clamp(1.4rem,2.4vw,2rem) clamp(1.5rem,2.6vw,2.2rem) 0; }
.offer-row h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.offer-row > .offer-content > p { color: var(--muted); margin-bottom: 1rem; max-width: 64ch; }
.offer-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: .45rem 1.4rem; }
.offer-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; color: #43413a; }
.offer-feats svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--olive); fill: none; stroke-width: 2.2; margin-top: 4px; }
@media (max-width: 760px) {
  .offer-row { grid-template-columns: 1fr; }
  .offer-row .offer-img img { min-height: 0; aspect-ratio: 16/10; }
  .offer-row .offer-content { padding: .4rem 1.4rem 1.6rem; }
  .offer-feats { grid-template-columns: 1fr; }
}

/* ---------- lightbox realizacji ---------- */
.gallery figure[role="button"] { cursor: pointer; }
.gallery figure[role="button"]:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.2rem; }
.lightbox[hidden] { display: none; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(25,26,20,.72); backdrop-filter: blur(3px); }
.lightbox-dialog {
  position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; width: min(1000px, 100%); max-height: 90vh;
  display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: var(--shadow);
}
.lightbox-media { background: #14150f; }
.lightbox-media img { width: 100%; height: 100%; max-height: 90vh; object-fit: cover; }
.lightbox-body { padding: clamp(1.5rem,3vw,2.4rem); overflow: auto; }
.lightbox-body .tag {
  position: static; display: inline-block; margin-bottom: .9rem; background: var(--olive-soft);
  color: var(--olive-dark); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.lightbox-body h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.lightbox-body > p { color: var(--muted); }
.lightbox-meta { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.1rem; margin: 1.3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.lightbox-meta dt { font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--wood-dark); }
.lightbox-meta dd { margin: 0; color: var(--ink); font-size: .95rem; }
.lightbox-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-close:hover { background: #fff; }
@media (max-width: 720px) {
  .lightbox-dialog { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .lightbox-media img { max-height: 42vh; }
}

/* ---------- pasek zgody na cookies ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem;
  width: min(960px, calc(100% - 2rem)); z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem 1.4rem; flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 280px; }
.cookie-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.btn-cookie { padding: .55rem 1.15rem; font-size: .9rem; }
.cookie-link { font-size: .82rem; color: var(--muted); text-decoration: underline; }
.cookie-link:hover { color: var(--olive-dark); }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .btn-cookie { flex: 1; justify-content: center; } }
