/* ==========================================================================
   Meble Raven — style strony
   ========================================================================== */

:root {
  --ink: #141210;
  --ink-2: #1e1b18;
  --ink-3: #2a2622;
  --paper: #f4efe7;
  --paper-2: #ebe3d6;
  --sand: #d8cab3;
  --line: rgba(20, 18, 16, .14);
  --line-light: rgba(244, 239, 231, .16);
  --bronze: #c29a66;      /* akcent na ciemnym tle */
  --bronze-deep: #7a5730; /* akcent/tekst na jasnym tle */
  --text: #1b1916;
  --muted: #5d554b;
  --muted-light: #b0a697;
  --error: #a3361f;
  --ok: #2f6b3a;

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

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- reset / podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.hero :focus-visible, .works :focus-visible, .cta :focus-visible, .site-footer :focus-visible,
.site-header :focus-visible, .lightbox :focus-visible, .quickbar :focus-visible { outline-color: var(--bronze); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--bronze); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze-deep);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--bronze); }
.eyebrow__num { font-family: var(--serif); font-size: 1rem; letter-spacing: .02em; font-style: italic; text-transform: none; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-top: 22px;
  max-width: 16ch;
}
.section-title em { color: var(--bronze-deep); }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 46ch; }

.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; column-gap: 64px; }
  .section-head .eyebrow, .section-head .section-title { grid-column: 1; }
  .section-head > .section-lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .section-head--split > .section-lead { grid-row: auto; }
}

/* ---------- przyciski ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .75rem; }
.btn--block { width: 100%; }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: var(--bronze); --bd: var(--bronze); }
.btn--ghost-light { --fg: var(--paper); --bd: rgba(244, 239, 231, .45); }
.btn--ghost-light:hover { --bd: var(--paper); --bg: rgba(244, 239, 231, .08); }
.btn--bronze { --bg: var(--bronze); --fg: var(--ink); --bd: var(--bronze); }
.btn--bronze:hover { --bg: var(--paper); --bd: var(--paper); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--dark:hover { --bg: var(--bronze-deep); --bd: var(--bronze-deep); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-block: 6px; border-bottom: 1px solid var(--line);
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 1rem; letter-spacing: 0; }
.link-arrow:hover { gap: 16px; border-color: currentColor; }
.link-arrow--light { color: var(--paper); border-color: var(--line-light); }
.link-arrow [data-count]:not(:empty) { color: var(--muted); font-weight: 500; }
.link-arrow--light [data-count]:not(:empty) { color: var(--muted-light); }

/* ---------- nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color .4s var(--ease), border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(20, 18, 16, .92); border-color: var(--line-light); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--bronze);
  color: var(--bronze);
  font-family: var(--serif); font-size: 1.1rem; letter-spacing: .02em;
}
.brand__name { font-size: .8125rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.brand__name b { font-weight: 700; }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__link {
  position: relative; text-decoration: none;
  font-size: .8125rem; font-weight: 500; letter-spacing: .06em;
  padding-block: 8px; color: rgba(244, 239, 231, .82);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: .875rem; letter-spacing: .04em;
  color: var(--paper); transition: color .25s;
}
.header-phone svg { color: var(--bronze); }
.header-phone:hover { color: var(--bronze); }

.burger {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-light);
}
.burger__line { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger__line:first-of-type { top: 18px; }
.burger__line:last-of-type { top: 25px; }
.burger[aria-expanded="true"] .burger__line:first-of-type { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-of-type { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-light); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .site-header__actions { gap: 10px; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); letter-spacing: 0; color: var(--paper); padding-block: 4px; }
  .nav__link::after { display: none; }
  .nav__mobile-extra { display: grid; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-light); }
  .nav__phone-big { font-size: 1.5rem; font-weight: 600; color: var(--bronze); text-decoration: none; }
  .nav__mail { color: var(--muted-light); text-decoration: none; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter tworzy kontener dla position:fixed — wyłączamy go przy otwartym menu */
  body.menu-open .site-header { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::after { /* subtelna linia konstrukcyjna */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-light);
}
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .hero { min-height: min(100svh, 980px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.1rem, 7.6vw, 7.4rem);
  line-height: .95; letter-spacing: -.02em;
  margin-top: 28px; max-width: 10ch;
}
.hero__title em { color: var(--bronze); }
.hero__lead { margin-top: 32px; max-width: 44ch; color: var(--muted-light); font-size: clamp(1rem, 1.35vw, 1.175rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__phone { display: inline-grid; margin-top: 48px; text-decoration: none; padding-left: 18px; border-left: 1px solid var(--bronze); }
.hero__phone-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); }
.hero__phone-number { font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; transition: color .25s; }
.hero__phone:hover .hero__phone-number { color: var(--bronze); }

.hero__media { position: relative; }
.hero__main { position: relative; margin-left: auto; width: min(100%, 560px); }
.hero__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.hero__caption {
  position: absolute; right: 0; bottom: -1px;
  background: var(--ink); padding: 14px 0 0 20px;
  font-size: .8125rem; color: var(--muted-light);
}
.hero__caption span { display: block; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.hero__aside {
  position: absolute; left: 0; bottom: 12%;
  width: 34%; max-width: 220px;
  border: 10px solid var(--ink);
  display: none;
}
.hero__aside img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 960px) {
  .hero__aside { display: block; left: -6%; }
  .hero__main { width: 88%; }
}
@media (max-width: 959px) {
  .hero__main img { aspect-ratio: 4 / 4.2; }
  .hero__phone { display: none; }
  .hero__actions { margin-top: 32px; }
  .hero__grid { gap: 40px; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- oferta ---------- */
.offer { background: var(--paper); }
.offer__grid { display: grid; gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px); }
@media (min-width: 760px) {
  .offer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .offer-card--xl { grid-column: 1 / span 7; grid-row: span 2; }
  .offer-card--tall { grid-column: 8 / span 5; }
  .offer-card--wide { grid-column: 8 / span 5; }
  .offer-card:not([class*="--"]) { grid-column: 1 / span 6; }
  .offer-note { grid-column: 7 / span 6; align-self: end; }
}
@media (min-width: 1100px) {
  .offer-card:not([class*="--"]) { grid-column: 2 / span 5; }
  .offer-note { grid-column: 8 / span 5; }
}

.offer-card { display: grid; align-content: start; gap: 24px; }
.offer-card__media { display: block; overflow: hidden; background: var(--paper-2); }
.offer-card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.offer-card--xl .offer-card__media img { aspect-ratio: 4 / 4.4; object-position: 50% 75%; }
.offer-card--tall .offer-card__media img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
.offer-card:not([class*="--"]) .offer-card__media img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
.offer-card:hover .offer-card__media img { transform: scale(1.04); }
.offer-card__body { display: grid; gap: 12px; justify-items: start; position: relative; padding-left: 52px; }
.offer-card__num { position: absolute; left: 0; top: 4px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--bronze-deep); }
.offer-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; }
.offer-card__body p { color: var(--muted); max-width: 48ch; }
.offer-card__body .link-arrow { margin-top: 8px; }

.offer-note {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
  display: grid; gap: 16px; justify-items: start;
}
.offer-note__kicker { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.1; font-style: italic; }
.offer-note__text { color: var(--muted); max-width: 42ch; }

/* ---------- realizacje ---------- */
.works { background: var(--ink); color: var(--paper); }
.works .section-title em { color: var(--bronze); }
.works .section-lead { color: var(--muted-light); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.filter {
  min-height: 44px; padding: 8px 18px;
  background: transparent; color: var(--muted-light);
  border: 1px solid var(--line-light);
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
  transition: color .25s, border-color .25s, background-color .25s;
}
.filter span { margin-left: 4px; opacity: .6; font-size: .75rem; }
.filter:hover { color: var(--paper); border-color: rgba(244, 239, 231, .45); }
.filter[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 640px) { .gallery { column-gap: 20px; } }
@media (min-width: 1100px) { .gallery { columns: 3; column-gap: 28px; } }
.work {
  break-inside: avoid; margin-bottom: 18px;
  animation: work-in .6s var(--ease) both;
}
@media (min-width: 640px) { .work { margin-bottom: 32px; } }
.work[hidden] { display: none; }
.gallery.is-collapsed .work.is-extra { display: none; }
.work__link { display: block; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.work__link img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.work__link:hover img { transform: scale(1.035); }
.work figcaption { margin-top: 10px; font-size: .875rem; line-height: 1.4; color: var(--paper); }
.work__cat { display: block; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 2px; }
@media (max-width: 639px) { .work figcaption { font-size: .8125rem; } }
@keyframes work-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.works__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(24px, 4vw, 48px); padding-top: 32px; border-top: 1px solid var(--line-light); }
.works__more [hidden] { display: none; }

/* ---------- o nas / korzyści ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; gap: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .about__grid { grid-template-columns: 5fr 6fr; align-items: start; } }
.about__intro { display: grid; gap: 24px; align-content: start; }
.about__intro .section-title { margin-top: 0; }
@media (min-width: 960px) { .about__intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.about__img { margin-top: 16px; }
.about__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.benefits { counter-reset: b; border-top: 1px solid var(--ink); }
.benefit {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 10px;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.benefit__num { grid-row: span 2; font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--bronze-deep); line-height: 1.2; }
.benefit__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.benefit p { color: var(--muted); max-width: 52ch; }

/* ---------- proces ---------- */
.process { background: var(--paper-2); }
.steps { display: grid; gap: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 28px 28px 36px 0;
  border-top: 1px solid var(--ink);
  display: grid; align-content: start; gap: 14px;
}
@media (min-width: 760px) { .step:not(:last-child) { padding-right: 36px; } }
.step__num {
  font-family: var(--serif); font-size: clamp(4rem, 7vw, 6rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--bronze-deep);
}
@supports not (-webkit-text-stroke: 1px black) { .step__num { color: var(--bronze-deep); } }
.step__title { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.12; }
.step p { color: var(--muted); }
.step::before { /* znacznik na linii */
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink);
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); isolation: isolate; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.2); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,18,16,.93) 0%, rgba(20,18,16,.72) 50%, rgba(20,18,16,.25) 100%); }
@media (max-width: 760px) { .cta::before { background: rgba(20,18,16,.8); } }
.cta__inner { padding-block: clamp(96px, 13vw, 180px); display: grid; gap: 28px; justify-items: start; }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.015em; max-width: 12ch; }
.cta__title em { color: var(--bronze); }
.cta__text { max-width: 46ch; color: #d6cdbf; font-size: clamp(1rem, 1.35vw, 1.175rem); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- kontakt ---------- */
.contact { background: var(--paper); }
.contact__grid { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 5fr 6fr; } }
.contact__info { display: grid; gap: 24px; align-content: start; }
.contact__info .section-title { margin-top: 0; }
.contact__list { display: grid; margin-top: 16px; border-top: 1px solid var(--ink); }
.contact__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact__list dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { min-width: 0; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }
.contact__big { font-family: var(--serif); font-size: 2rem; font-weight: 400 !important; line-height: 1.1; }
@media (max-width: 420px) { .contact__list > div { grid-template-columns: 1fr; gap: 4px; } }
.contact__data-note { margin-top: 8px; padding: 22px 24px; background: var(--paper-2); border-left: 2px solid var(--bronze-deep); }
.contact__data-note h3 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.contact__data-note p { color: var(--muted); font-size: .9375rem; }
.contact__data-note strong { color: var(--text); font-weight: 600; }

/* formularz */
.form { display: grid; gap: 22px; align-content: start; background: #fbf8f3; border: 1px solid var(--line); padding: clamp(22px, 4vw, 48px); }
.form__required { font-size: .8125rem; color: var(--muted); }
.req { color: var(--bronze-deep); }
.opt { color: var(--muted); font-weight: 400; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field-group legend { font-size: .875rem; font-weight: 600; }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 12px; }
.field-group__hint { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-group .field label { font-weight: 500; color: var(--muted); font-size: .8125rem; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  background: var(--paper); border: 1px solid rgba(20, 18, 16, .28); border-radius: 0;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(20, 18, 16, .5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: .8125rem; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }

.file-drop {
  position: relative; display: grid; gap: 4px; justify-items: center; text-align: center;
  padding: 22px 16px; border: 1px dashed rgba(20, 18, 16, .35); background: var(--paper);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--ink); background: #fff; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop:focus-within { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }
.file-drop__text { font-size: .9375rem; }
.file-drop__text strong { text-decoration: underline; text-underline-offset: 3px; }
.file-drop__hint { font-size: .75rem; color: var(--muted); }
.file-list { display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .8125rem; padding: 8px 12px; background: var(--paper-2); }
.file-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list button { flex: none; background: none; border: 0; padding: 4px 6px; font-size: .75rem; text-decoration: underline; color: var(--muted); }
.form__files-alt { font-size: .875rem; color: var(--muted); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: .75rem; color: var(--muted); line-height: 1.55; }

.btn__spinner { display: none; width: 16px; height: 16px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn[disabled] { opacity: .7; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status:empty { display: none; }
.form__status { padding: 18px 20px; font-size: .9375rem; border-left: 2px solid; outline: none; }
.form__status.is-ok { border-color: var(--ok); background: #e8efe6; }
.form__status.is-error { border-color: var(--error); background: #f5e6e1; }
.form__status.is-info { border-color: var(--bronze-deep); background: var(--paper-2); }
.form__status strong { display: block; margin-bottom: 4px; }
.form__status .btn { margin-top: 14px; }
.form__status-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: clamp(64px, 8vw, 104px); font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.brand--footer { color: var(--paper); margin-bottom: 18px; }
.site-footer__h { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--paper); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid var(--line-light); font-size: .8125rem; }

/* ---------- pasek szybkiego kontaktu (mobile) ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr;
    background: var(--ink); border-top: 1px solid var(--line-light);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; text-decoration: none; color: var(--paper);
    font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  }
  .quickbar__btn svg { color: var(--bronze); }
  .quickbar__btn--accent { background: var(--bronze); color: var(--ink); }
  .site-footer { padding-bottom: 64px; }
  body.menu-open .quickbar { transform: translateY(110%); }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0e0c0b; color: var(--paper);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 12, 11, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 64px clamp(8px, 7vw, 96px) 8px; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; transition: opacity .3s var(--ease), transform .3s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-switching { opacity: 0; transform: scale(.985); }
.lightbox__bar { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 14px clamp(16px, 7vw, 96px) calc(18px + env(safe-area-inset-bottom)); font-size: .9375rem; }
.lightbox__caption { color: var(--paper); }
.lightbox__caption .work__cat { display: inline; margin-right: 10px; }
.lightbox__count { color: var(--muted-light); font-variant-numeric: tabular-nums; flex: none; }
.lightbox__btn, .lightbox__close {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; background: rgba(20, 18, 16, .6); border: 1px solid var(--line-light); color: var(--paper);
  transition: background-color .2s, border-color .2s;
}
.lightbox__btn:hover, .lightbox__close:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lightbox__btn { top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__btn--next { right: clamp(8px, 2vw, 24px); }
.lightbox__close { top: 10px; right: 10px; }
@media (max-width: 640px) {
  .lightbox__btn { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); transform: none; width: 46px; height: 46px; }
}

/* ---------- animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- polityka prywatności ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); padding-bottom: var(--section-y); }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; margin: 20px 0 32px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal p + p { margin-top: 12px; }
.legal .todo { background: #fff3cf; color: var(--text); padding: 1px 4px; }
.legal-header { background: var(--ink); }
