/* Meblan — meble na wymiar */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1d1b18;
  --ink-soft: #57524a;
  --line: #e4ddd2;
  --accent: #9a6a3a;
  --accent-ink: #ffffff;
  --dark: #1a1816;
  --radius: 14px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: .8rem; display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--accent); transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.link-arrow { text-decoration: none; font-weight: 600; color: var(--accent); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo img { height: 38px; width: auto; }
.logo small { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd > a { text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.nav > a:hover, .nav .dd > a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .ig { display: inline-flex; padding: 9px; }
.nav .ig svg { width: 22px; height: 22px; }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: -10px; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08); padding: 8px;
  display: none;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .94rem; }
.dd-menu a:hover { background: var(--bg); color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  /* backdrop-filter tworzy kontener dla position:fixed, wiec menu by sie ucinalo */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px;
    overflow-y: auto; display: none; gap: 0;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-menu { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 10px 12px; background: transparent; min-width: 0; }
  .dd-menu a { padding: 8px 4px; }
  .nav .ig { padding: 14px 4px; }
}

/* Hero */
.hero { position: relative; min-height: clamp(540px, calc(100vh - 72px), 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--dark); }
.hero h1 { font-size: clamp(2.1rem, min(5.5vw, 7.5vh), 4rem); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.08) 80%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 10vh, 110px); padding-bottom: clamp(56px, 10vh, 110px); width: 100%; }
.hero .eyebrow { color: #e9c9a3; }
.hero .hero-logo { position: static; width: auto; height: clamp(46px, min(7vw, 9vh), 84px); opacity: 1; margin-bottom: 22px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }
.hero p { font-size: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.88); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Page head */
.page-head { padding: clamp(44px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Cards */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 520px) { .grid-cats { grid-template-columns: 1fr 1fr; } .grid-cats .cat-tile b { font-size: 1.12rem; } .grid-cats .cat-tile span { left: 12px; right: 12px; bottom: 12px; } }
.grid-real { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { text-decoration: none; display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40, 28, 15, .1); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd5c8; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.04); }
.card .body { padding: 18px 20px 20px; }
.card h3 { margin: 0 0 4px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.card .meta { font-size: .88rem; color: var(--ink-soft); }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; color: #fff; text-decoration: none; display: block; background: var(--dark); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; opacity: .9; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.cat-tile b { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; display: block; line-height: 1.15; }
.cat-tile small { font-size: .85rem; opacity: .85; }

/* Category pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills a { text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: var(--surface); }
.pills a:hover, .pills a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

/* Realization page */
.real-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.real-intro .facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-size: .95rem; }
.real-intro .facts dt { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.real-intro .facts dd { margin: 2px 0 14px; font-weight: 600; }
.real-intro .facts dd:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .real-intro { grid-template-columns: 1fr; } }

.gallery { columns: 3 300px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 10px; overflow: hidden; background: #ddd5c8; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: opacity .2s; }
.gallery a:hover img { opacity: .9; }

.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; flex-wrap: wrap; }
.pager a { text-decoration: none; max-width: 48%; }
.pager a small { display: block; color: var(--ink-soft); font-size: .82rem; }
.pager a b { font-weight: 600; }
.pager a:hover b { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(14, 12, 10, .96); z-index: 100; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; user-select: none; }
.lb button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb button svg { width: 26px; height: 26px; }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .9rem; }
@media (max-width: 600px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 8px; transform: none; } }

/* About / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split .img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #ddd5c8; }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .img { aspect-ratio: 4 / 3; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px; margin-top: 40px; }
.feature { border-top: 2px solid var(--accent); padding-top: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.note { background: #fff6e5; border: 1px dashed #d9a75c; border-radius: 10px; padding: 12px 16px; font-size: .9rem; color: #6b4a16; }

/* CTA */
.cta { background: var(--dark); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta p { color: rgba(255,255,255,.75); }
.cta .contact-lines a { display: block; color: #fff; text-decoration: none; font-size: 1.15rem; padding: 6px 0; }
.cta .contact-lines a:hover { color: #e9c9a3; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.contact-card a { text-decoration: none; display: block; font-size: 1.1rem; font-weight: 600; margin: 4px 0; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--accent); }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* Instagram strip */
.ig-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; background: var(--surface); }
.ig-band .h { display: flex; align-items: center; gap: 14px; }
.ig-band svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.ig-band b { font-size: 1.15rem; display: block; }
.ig-band small { color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.8); display: block; padding: 3px 0; }
.site-footer a:hover { color: #e9c9a3; }
.site-footer .logo { display: inline-flex; padding: 0; align-items: flex-start; }
.site-footer .logo img { height: 44px; }
.site-footer .logo small { color: rgba(255,255,255,.55); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
