/* ============================================
   Godek — Pracownia Skórzana (podstrona)
   Ciepła, ciemna, „bespoke" estetyka
   ============================================ */
:root {
  --bg-1:    #1a120b;
  --bg-2:    #2c1e12;
  --card:    #241811;
  --border:  #4a3423;
  --brass:   #c9a25e;
  --brass-d: #a9823f;
  --text:    #f1e7d8;
  --muted:   #b7a488;
  --radius:  24px;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --serif:   "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  padding: clamp(16px, 4vw, 56px);
  line-height: 1.6;
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Tło pracowni (obraz + nakładka) ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background: url("img/tlo-skora.webp") center / cover no-repeat fixed;
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(201,162,94,0.10) 0%, transparent 45%),
    linear-gradient(180deg, rgba(20,14,8,0.78) 0%, rgba(20,14,8,0.88) 55%, rgba(15,10,5,0.96) 100%);
}

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }

/* ---------- Powrót — skórzana zawieszka ---------- */
.back-tag {
  position: fixed;
  top: clamp(14px, 3vw, 26px);
  left: clamp(14px, 3vw, 26px);
  z-index: 20;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px 9px 12px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brass);
  background: linear-gradient(160deg, #3a2716, #241811);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(201,162,94,0.12);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.back-tag svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.back-tag:hover { transform: translateX(-3px); color: #f0d9a6; border-color: var(--brass-d); }

/* ---------- Nagłówek ---------- */
.atelier { max-width: 1120px; margin: 0 auto; }
.atelier__intro { text-align: center; padding: clamp(48px, 9vw, 90px) 0 clamp(32px, 5vw, 54px); }
.atelier__eyebrow {
  font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.9rem;
}
.atelier__intro h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); color: var(--text); margin-bottom: 0.7rem; }
.atelier__lead { max-width: 54ch; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* ---------- Sekcja kategorii ---------- */
.cat { margin-bottom: clamp(38px, 6vw, 64px); }
.cat__head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.cat__head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--text); }
.cat__count {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass);
}
.cat__desc { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }

/* ---------- Siatka miniaturek ---------- */
.thumbs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(0,0,0,0.32);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,10,5,0.35), transparent 55%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.thumb:hover, .thumb:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  border-color: var(--brass-d);
  outline: none;
}
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.08); }
.thumb:hover::after, .thumb:focus-visible::after { opacity: 1; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 7, 3, 0.94);
  padding: 4vh 3vw;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(92vw, 1200px); max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
}
.lightbox__close {
  position: absolute; top: 18px; right: 24px;
  font-size: 2.4rem; line-height: 1;
  color: var(--text); background: none; border: none; cursor: pointer;
  opacity: 0.8; transition: opacity 0.2s, transform 0.2s;
}
.lightbox__close:hover { opacity: 1; transform: scale(1.1); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; font-size: 2rem; line-height: 1;
  color: var(--text);
  background: rgba(40, 26, 15, 0.6);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.25s, color 0.25s;
}
.lightbox__nav:hover { background: var(--brass-d); color: #1a120b; }
.lightbox__prev { left: clamp(10px, 3vw, 32px); }
.lightbox__next { right: clamp(10px, 3vw, 32px); }
.lightbox__counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.9rem; letter-spacing: 0.1em; color: var(--muted);
}

/* ---------- Responsywność ---------- */
@media (max-width: 560px) {
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ---------- Dostępność ---------- */
:where(a, button, .thumb):focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .bg { background-attachment: scroll; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
