﻿/* Kukorowski – układ klasyczny, jasny, nastawiony na zapytania (wzorce usera: baethe.de, oak-schody.pl).
   Kolor firmowy: bursztyn z logo (wachlarz stopni schodów zabiegowych). Pismo: Montserrat (na naszym serwerze). */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #a65c0c;        /* bursztyn z logo */
  --brand-dark: #8a4b08;
  --brand-soft: #f6ede3;
  --ink: #1f2328;
  --text: #3d4249;
  --muted: #6b7078;
  --line: #e6e2dc;
  --bg: #ffffff;
  --grey: #f6f5f2;
  --dark: #1f1e1c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
  --m: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Montserrat', system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
a, button, input, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(166, 92, 12, .18); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--m); }
.center { text-align: center; }
.skip { position: absolute; left: 16px; top: 8px; z-index: 60; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; background: var(--brand); color: #fff; padding: 10px 14px; }
.skip:focus { clip-path: none; width: auto; height: auto; }
svg { flex: none; }

/* przyciski */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--brand); color: #fff; }
.btn--accent:hover { background: var(--brand-dark); color: #fff; }
.btn--line { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--line:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--big { min-height: 56px; width: 100%; font-size: 17px; }

/* pasek zalet */
.topbar { background: var(--dark); color: #e9e6e0; font-size: 13px; font-weight: 600; }
.topbar ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 32px; list-style: none; padding-block: 8px; }
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; color: #e0a95c; }

/* nagłówek */
.bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 3px solid var(--brand); box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.bar-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 52px; height: auto; transition: transform .3s var(--ease); transform-origin: 50% 100%; }
.logo:hover svg { transform: rotate(-8deg); }
.logo b { display: block; font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.logo small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 11px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 981px) { .bar-cta { display: none; } }
@media (max-width: 1120px) and (min-width: 981px) { .nav a { padding: 10px 8px; font-size: 14px; } .bar-in { gap: 12px; } .logo small { display: none; } }
.nav a:hover, .nav a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.bar-phone { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.bar-phone:hover { border-color: var(--brand); color: var(--ink); }
.bar-phone .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; }
.bar-phone .ico svg { width: 17px; height: 17px; }
.bar-phone small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; font-weight: 600; }
.bar-phone b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 700; cursor: pointer; }
@media (max-width: 1240px) { .bar-phone small { display: none; } }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--m) 18px; background: #fff; border-bottom: 3px solid var(--brand); box-shadow: 0 16px 30px rgba(0, 0, 0, .12); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 17px; }
  .bar-phone { margin-left: auto; padding: 4px; border: 0; }
  .bar-phone > span:last-child { display: none; }
  .topbar li:nth-child(n+3) { display: none; }
}
@media (max-width: 420px) { .logo small { display: none; } .logo b { font-size: 18px; } .logo svg { width: 42px; } }

/* sekcje */
.sec { padding-block: clamp(56px, 7vw, 96px); }
.sec--grey { background: var(--grey); }
.sec-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); }
.sec-head h2 + p { margin-top: 10px; color: var(--muted); font-size: 18px; }
.kicker { color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 10px; }

/* hero */
.hero { background: var(--grey); padding-block: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.12; }
.hero-sub { margin-top: 18px; font-size: 19px; max-width: 36em; }
.checks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks svg { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--brand); color: #fff; }
.checks--lg li { font-weight: 400; color: var(--text); }
.checks--lg b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-pic { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-height: 640px; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-pic { aspect-ratio: 4 / 3; } }

/* fakty */
.facts { background: var(--dark); color: #fff; }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.facts li { display: grid; gap: 2px; text-align: center; }
.facts b { font-size: 30px; line-height: 1.1; color: #e0a95c; }
.facts span { font-size: 14px; color: #d9d5ce; }
@media (max-width: 700px) { .facts ul { grid-template-columns: 1fr 1fr; } }

/* galeria – mozaika */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 14vw, 220px); gap: 10px; }
.mosaic .proj { margin: 0; border-radius: var(--radius); overflow: hidden; }
.mosaic .gal-open, .mosaic .gal-open img { width: 100%; height: 100%; }
.mosaic .gal-open img { object-fit: cover; }
.mosaic .m1 { grid-column: span 6; grid-row: span 2; }
.mosaic .m2, .mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: span 3; }
.mosaic .m6, .mosaic .m7 { grid-column: span 4; grid-row: span 2; }
.mosaic .m8, .mosaic .m9 { grid-column: span 4; }
.home-gal-foot { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.chips-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips-links .chip { text-decoration: none; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .mosaic .proj { grid-column: span 1; grid-row: span 1; }
  .mosaic .m1 { grid-column: 1 / -1; grid-row: span 2; }
}

/* karty rodzajów schodów */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 20, 20, .06), 0 16px 36px rgba(20, 20, 20, .1); }
.card-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-pic img { transform: scale(1.04); }
.tag { position: absolute; left: 0; bottom: 16px; padding: 8px 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 17px; border-radius: 0 6px 6px 0; }
.card-body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { font-size: 15.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; text-decoration: none; }
.more svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.more:hover svg { transform: translateX(4px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* kroki */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.steps li { counter-increment: s; position: relative; padding: 26px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* dlaczego my + materiały */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split h2 { margin-bottom: 8px; }
.sub-h { margin: 32px 0 8px; color: var(--brand); }
.pills { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 15px; line-height: 1.4; }
.pills b { display: block; color: var(--ink); }
.pills span { color: var(--muted); }
.split-pic { position: sticky; top: 110px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.split-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-pic figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-pic { position: static; } }
@media (max-width: 480px) { .pills { grid-template-columns: 1fr; } }

/* kalkulator + formularz */
.chapter { padding-block: clamp(56px, 7vw, 96px); }
.field-white { background: #fff; }
.field-stain { background: var(--grey); }
.calc { background: var(--grey); }
.calc .h-head { text-align: center; margin: 0 auto 32px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-tool, .form { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld legend { font-weight: 700; font-size: 15px; color: var(--ink); }
.fld small { color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #d8d4cd; border-radius: 8px; background: #fff; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(166, 92, 12, .18); }
.fld-forms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fld-forms legend { margin-bottom: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 1.5px solid #d8d4cd; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked), .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.chip small { font-size: 1em; opacity: .75; }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-out div { background: var(--brand-soft); border-radius: 8px; padding: 12px; }
.calc-out dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.calc-out dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-svg { width: 100%; height: auto; background: var(--grey); border-radius: 8px; }
.calc-svg path { fill: #d9a25a; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.calc-svg .calc-floor { stroke: var(--ink); stroke-width: 3; fill: none; }
.note { font-size: 14px; color: var(--muted); }
.lead-p { font-size: 18px; }
.h-lead { font-size: 1.35rem; color: var(--ink); font-weight: 700; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.calc-sum { background: var(--brand-soft); border-radius: 8px; padding: 10px 14px; font-size: 15px; }
.form-msg { font-weight: 600; }
.form-msg.ok { background: #e8f5ec; color: #14532d; padding: 12px 14px; border-radius: 8px; }
.form-msg.err { background: #fdecec; color: #7f1d1d; padding: 12px 14px; border-radius: 8px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .calc-out { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .calc-in, .fld-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: #fff; }
.faq-grid { max-width: 880px; }
.faq-h { text-align: center; margin-bottom: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary i { position: relative; flex: 0 0 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 2.5px; border-radius: 2px; background: var(--brand); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 22px 20px; }

/* kontakt */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.ccard:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.ccard .ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.ccard .ico svg { width: 24px; height: 24px; }
.ccard small { color: var(--muted); font-weight: 600; font-size: 14px; }
.ccard b { font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

/* pas CTA */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 36px; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cta-band p { color: #fbeee0; }
.cta-band p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.cta-phone:hover { color: #fff; text-decoration: underline; }
.cta-phone svg { width: 22px; height: 22px; }

/* stopka */
.foot { background: var(--dark); color: #d9d5ce; padding-top: 56px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: #e0a95c; text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 15px; line-height: 1.7; }
.foot-cols h2 { font-size: 15px; color: #e0a95c; margin-bottom: 10px; letter-spacing: .02em; }
.foot-cols ul { list-style: none; padding: 0; }
.foot-cols p + p { margin-top: 12px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot .logo small { color: #bdb9b1; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-block: 18px; border-top: 1px solid #3a3935; font-size: 13px; color: #a9a59d; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } .foot-meta { flex-direction: column; } }

/* podstrony */
.page-head { padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); background: var(--grey); }
.h-display { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); color: var(--ink); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.h-head { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--ink); font-weight: 700; line-height: 1.2; }
.page-head .lead-p { max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gallery { padding-top: clamp(28px, 4vw, 48px); }
.gallery .h-head { margin-bottom: 24px; }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry--photos { columns: 4 240px; column-gap: 10px; }
.masonry--doors { columns: 4 220px; }
.proj { break-inside: avoid; margin-bottom: 24px; }
.masonry--photos .proj { margin-bottom: 10px; }
.proj[hidden] { display: none; }
.proj-open, .gal-open { display: block; width: 100%; padding: 0; border: 0; background: var(--grey); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.proj-open img, .gal-open img { width: 100%; transition: transform .5s var(--ease); }
.proj-open:hover img, .gal-open:hover img { transform: scale(1.04); }
.proj figcaption { display: grid; gap: 2px; padding-top: 10px; }
.proj figcaption b { color: var(--ink); }
.proj figcaption span { font-size: 15px; }
.proj figcaption small { color: var(--muted); }
.link-big { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 18px; }
.empty { font-size: 18px; }
.type-head { padding-block: clamp(40px, 5vw, 72px); background: var(--grey); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.type-grid > div:first-child { display: grid; gap: 14px; }
.type-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .type-grid { grid-template-columns: 1fr; } }
.others { background: var(--grey); }
.others .h-head { margin-bottom: 20px; }
.poster { list-style: none; padding: 0; }
.poster--links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.poster--links a { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s, transform .2s var(--ease); }
.poster--links a:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.poster--links .poster-w { font-weight: 700; font-size: 18px; color: var(--brand); }
.poster--links .poster-d { font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0; }
.contact-pic { background: #fff; }
.pics3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pics3 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .kv div { grid-template-columns: 1fr; gap: 2px; } .pics3 { grid-template-columns: 1fr 1fr; } }
.narrow { max-width: 860px; }
.legal { background: #fff; }
.legal h2 { margin: 32px 0 8px; font-size: 1.3rem; }
.legal p { max-width: 70ch; }

/* lightbox */
.lb { overscroll-behavior: contain; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #161513; color: #fff; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto auto; }
.lb::backdrop { background: rgba(0, 0, 0, .8); }
.lb-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 12px var(--m); }
.lb-count { font-variant-numeric: tabular-nums; color: #cfcbc3; min-width: 5ch; }
.lb-title { font-size: 18px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close { min-height: 50px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.lb-close:hover { background: var(--brand-soft); }
.lb-stage { position: relative; min-height: 0; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 clamp(16px, 7vw, 120px); cursor: pointer; }
.lb-track img { max-height: 100%; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lb-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 68px; height: 68px; margin-top: -34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .15s var(--ease), background-color .15s; }
.lb-arrow svg { width: 30px; height: 30px; }
.lb-arrow:hover { transform: scale(1.08); background: #fff; color: var(--brand); }
.lb-arrow[disabled] { opacity: 0; pointer-events: none; }
.lb-prev { left: clamp(12px, 2vw, 32px); } .lb-next { right: clamp(12px, 2vw, 32px); }
.lb-desc { text-align: center; padding: 10px var(--m) 0; color: #d6d3cd; min-height: 1.5em; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--m) max(14px, env(safe-area-inset-bottom)); scrollbar-width: none; }
.lb-thumbs button { flex: 0 0 auto; width: 76px; height: 56px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #2d2c29; cursor: pointer; opacity: .55; outline-offset: 2px; }
.lb-thumbs button:hover { opacity: .9; }
.lb-thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--brand); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .lb-title { font-size: 15px; } .lb-arrow { width: 54px; height: 54px; margin-top: -27px; } .lb-track figure { padding: 0 8px; } .lb-thumbs button { width: 60px; height: 46px; } }
html:has(.lb[open]) { overflow: hidden; }

/* wejścia sekcji */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (max-width: 900px) { .js .reveal { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
