/* Pixel Porady — ciepły grafit, mosiądz i szałwia */
:root {
  --bg: #14110f;
  --bg-elev: #1e1916;
  --bg-card: rgba(36, 30, 26, 0.82);
  --bg-hover: rgba(176, 137, 104, 0.12);
  --text: #efe8df;
  --text-muted: #c2b6a8;
  --text-dim: #8d8174;
  --accent: #b08968;
  --accent-deep: #8d6d50;
  --accent2: #8f9d86;
  --ink: #221c16;
  --border: rgba(230, 210, 190, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
#kontakt { scroll-margin-top: 92px; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 520px at 0% 0%, rgba(176, 137, 104, 0.08), transparent 55%),
    radial-gradient(800px 480px at 100% 100%, rgba(143, 157, 134, 0.07), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

body::before {
  width: 38vw;
  height: 38vw;
  min-width: 240px;
  min-height: 240px;
  left: -12vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(176, 137, 104, 0.16), transparent 68%);
}

body::after {
  width: 32vw;
  height: 32vw;
  min-width: 200px;
  min-height: 200px;
  right: -10vw;
  bottom: 6vh;
  background: radial-gradient(circle, rgba(143, 157, 134, 0.12), transparent 68%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #d5dece; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 680;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin-bottom: .8rem; }
h3 { font-size: 1.18rem; margin-bottom: .55rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
.lead { font-size: 1.12rem; color: #ddd4c8; max-width: 44rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.section { padding: 4.2rem 0; position: relative; z-index: 1; }
.section-title { margin-bottom: 1.1rem; }
.section-kicker {
  display: block;
  margin-bottom: .45rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-intro { max-width: 42rem; margin-bottom: 1.6rem; }

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 17, 15, 0.58);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  color: var(--text-muted);
  padding: .45rem .72rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 560;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
}

.hero { padding: 4.4rem 0 3.2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 2.4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(176, 137, 104, 0.14);
  color: #e4d2c0;
  border: 1px solid rgba(176, 137, 104, 0.32);
  font-size: .78rem;
  font-weight: 700;
  padding: .32rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  letter-spacing: .04em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .78rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(80, 56, 36, 0.28);
}
.btn-primary:hover { background: #c4a07e; color: var(--ink); }
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: rgba(143, 157, 134, 0.55); color: var(--text); }

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-visual { padding: 1.35rem; }
.hero-note {
  margin: 1.1rem 0 0;
  font-size: .92rem;
  color: var(--text-dim);
}
.hero-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
}
.hero-stat div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(20, 17, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.hero-stat strong { font-size: 1.35rem; color: var(--accent2); letter-spacing: -0.03em; }
.hero-stat span { font-size: .88rem; color: var(--text-muted); text-align: right; }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
}
.soft-panel { padding: 1.4rem 1.45rem 1.2rem; }
.soft-panel h3 { margin-bottom: .4rem; }
.soft-panel p:last-child { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.15rem; }
.card {
  background: linear-gradient(180deg, rgba(18, 36, 50, 0.86), rgba(10, 22, 32, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(176, 137, 104, 0.5); transform: translateY(-4px); }
.card-tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(143, 157, 134, 0.16);
  color: var(--accent2);
  margin-bottom: .8rem;
  width: fit-content;
}
.card h3 { font-size: 1.12rem; }
.card p { font-size: .96rem; flex-grow: 0; }
.card-meta { font-size: .82rem; color: var(--text-dim); margin-top: auto; padding-top: .4rem; }
.card a.read-more { font-weight: 700; font-size: .92rem; margin-top: .85rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .42rem .85rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.sort-wrap { display: flex; align-items: center; gap: .5rem; color: var(--text-dim); font-size: .86rem; }
.sort-wrap select {
  background: rgba(20, 17, 15, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .42rem .8rem;
  font-family: inherit;
  font-size: .86rem;
}

.calc-box { padding: 1.5rem; }
.calc-grid {
  display: grid;
  grid-template-columns: 110px 120px 130px minmax(240px, 1.4fr) auto;
  gap: .75rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.calc-grid .btn { height: 44px; white-space: nowrap; }
.calc-grid label { display: block; font-size: .84rem; color: var(--text-dim); margin-bottom: .35rem; }
.calc-grid input, .calc-grid select {
  width: 100%;
  background: rgba(20, 17, 15, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .65rem .8rem;
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
}
.calc-result {
  margin-top: 1.15rem;
  background: rgba(20, 17, 15, 0.55);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(143, 157, 134, 0.28);
}
.calc-result strong { color: var(--accent2); }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 22, 32, 0.82);
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(176, 137, 104, 0.12); color: var(--text); font-weight: 700; white-space: nowrap; }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(143, 157, 134, 0.08); }

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(10, 22, 32, 0.55); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 1.05rem 1.2rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-family: inherit;
}
.acc-btn:hover { background: rgba(255, 255, 255, 0.03); }
.acc-btn::after { content: "+"; font-size: 1.25rem; color: var(--accent); }
.acc-btn.open::after { content: "–"; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel.open { max-height: 1400px; }
.acc-panel-inner { padding: 0 1.2rem 1.15rem; color: var(--text-muted); }

.term {
  color: var(--accent2);
  border-bottom: 1px dashed rgba(143, 157, 134, 0.75);
  cursor: help;
  font-weight: 650;
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-overlay.show { display: flex; }
.popup {
  background: rgba(14, 28, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 1.45rem;
  box-shadow: var(--shadow);
  position: relative;
  backdrop-filter: blur(16px);
}
.popup h4 { margin-bottom: .45rem; color: var(--accent2); }
.popup-close {
  position: absolute;
  top: .7rem;
  right: .75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.45rem;
  cursor: pointer;
}
.popup-close:hover { color: var(--text); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.contact-item { padding: 1.2rem 1.2rem 1.05rem; }
.contact-item h4 {
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: .35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-item p, .contact-item a { color: var(--text); margin: 0; }

.site-footer {
  margin-top: auto;
  background: rgba(6, 14, 22, 0.86);
  border-top: 1px solid var(--border);
  padding: 2.6rem 0 1.4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 1.8rem;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-col h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: .75rem;
}
.footer-col a { display: block; color: var(--text-muted); font-size: .92rem; padding: .22rem 0; }
.footer-col a:hover { color: var(--accent2); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.footer-bottom {
  margin-top: .9rem;
  font-size: .8rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  justify-content: space-between;
}

.page-hero { padding: 2.8rem 0 1.2rem; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { margin: .8rem 0 1.1rem 1.15rem; }
.prose li { margin-bottom: .45rem; color: var(--text-muted); list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--text); font-weight: 700; }

.job-card { padding: 1.4rem 1.4rem 1.15rem; margin-bottom: 1rem; }
.job-meta { font-size: .86rem; color: var(--accent2); margin-bottom: .7rem; }

.legal-strip {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 1.3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.legal-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.legal-nav a {
  padding: .38rem .85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .84rem;
  color: var(--text-muted);
}
.legal-nav a.active, .legal-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.band { background: rgba(28, 23, 20, 0.55); border-block: 1px solid var(--border); }

.anim .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.anim .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}
.anim .reveal.d1 { transition-delay: .08s; }
.anim .reveal.d2 { transition-delay: .16s; }
.anim .reveal.d3 { transition-delay: .24s; }

.stage {
  position: relative;
  margin: 1rem 1rem 0;
  min-height: min(88vh, 820px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 15, 13, 0.92) 0%, rgba(18, 15, 13, 0.72) 36%, rgba(18, 15, 13, 0.18) 68%, rgba(18, 15, 13, 0.45) 100%);
}
.stage-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(2.2rem, 6vw, 5.2rem) clamp(1.4rem, 4vw, 3.4rem);
  min-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stage h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.045em; }
.frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.frame-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  color: #efe8df;
  font-size: .92rem;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.mosaic {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 1rem;
}
.stack { display: grid; gap: 1rem; }
.tile {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 230px;
  display: block;
  color: inherit;
}
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(18, 15, 13, 0.88));
  color: #efe8df;
  font-weight: 700;
}
.tall { min-height: 480px; }
.photo-card { padding: 0 0 1.2rem; overflow: hidden; }
.photo-card .shot { height: 220px; width: 100%; object-fit: cover; margin-bottom: .95rem; }
.photo-card .card-tag,
.photo-card h3,
.photo-card p,
.photo-card .card-meta { margin-left: 1.15rem; margin-right: 1.15rem; }
.banner {
  position: relative;
  margin: 1rem 1rem 0;
  height: 340px;
  border-radius: 26px;
  overflow: hidden;
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,15,13,.15), rgba(18,15,13,.82));
}
.banner .container {
  position: absolute;
  left: 0; right: 0; bottom: 1.4rem;
}
.banner h1 { margin-bottom: .4rem; }
.duo {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
}
.duo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 22px;
}
.open {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) 1.18fr;
  gap: 1.4rem;
  padding: 1.1rem 1.15rem 0;
  align-items: stretch;
}
.open-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: .4rem .2rem 0; }
.open-copy h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); }
.open-photo {
  position: relative;
  min-height: 620px;
  border-radius: 26px 8px 26px 8px;
  overflow: hidden;
}
.open-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: 1.6rem;
}
.rail div {
  padding: .7rem .8rem;
  border-left: 2px solid rgba(176, 137, 104, 0.55);
  background: rgba(255, 255, 255, 0.03);
}
.rail h4 {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .2rem;
}
.rail p, .rail a { margin: 0; color: var(--text); font-size: .92rem; }
.mosaic-flip { grid-template-columns: .82fr 1.28fr; }
.bench {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: stretch;
}
.bench-photo {
  border-radius: 18px;
  overflow: hidden;
  min-height: 100%;
}
.bench-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.shift { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) {
  .open, .bench, .mosaic-flip, .shift { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid .btn { grid-column: 1 / -1; }
  .open-photo { min-height: 360px; }
  .bench-photo img { min-height: 220px; }
  .stage { margin: .6rem; min-height: 78vh; }
  .stage-copy { min-height: 78vh; }
  .mosaic, .duo { grid-template-columns: 1fr; }
  .tall { min-height: 320px; }
  .banner { height: 280px; margin: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1; transform: none; }
  .card, .btn { transition: none; }
  body::before, body::after { opacity: .4; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(22, 18, 16, 0.94);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: .6rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem 1rem; width: 100%; border-radius: 12px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.8rem 0; }
  .hero { padding: 2.6rem 0 2rem; }
}
