/* ============================================================
   SMART DESIGN — chłodny modernizm / styl szwajcarski
   Paleta: biel · jasna szarość · czerń. Kolor dają zdjęcia.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --ink: #111111;
  --ink-mute: #555555;
  --line: #e2e2e2;
  --line-dark: #111111;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: clamp(80px, 12vw, 160px);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection { background: var(--ink); color: var(--bg); }

/* ============ PRZYCISKI ============ */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}
.btn--solid:hover { background: var(--bg); color: var(--ink); }

.btn--line {
  background: transparent;
  color: var(--ink);
}
.btn--line:hover { background: var(--ink); color: var(--bg); }

/* ============ NAWIGACJA ============ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__logo-name {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 17px;
  line-height: 1;
}

.nav__logo-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.nav__links a:hover { border-bottom-color: var(--ink); }

.nav__links a.nav__cta {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  transition: background 200ms ease, color 200ms ease;
}
.nav__links a.nav__cta:hover { background: var(--ink); color: var(--bg); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 250ms ease, opacity 250ms ease;
}

@media (max-width: 900px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-130%);
    transition: transform 280ms ease;
  }

  .nav__links.is-open { transform: translateY(0); }

  .nav__links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav__links a.nav__cta {
    margin-top: 16px;
    text-align: center;
  }

  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}

/* ============ HERO ============ */

.hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) var(--gutter) 0;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: clamp(28px, 4vw, 56px);
}

.hero__title {
  font-size: clamp(30px, 6.2vw, 92px);
  line-height: 1.04;
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__line { display: block; white-space: nowrap; }

.hero__title-em {
  font-weight: 300;
  font-stretch: 78%;
  font-style: italic;
}

@media (max-width: 480px) {
  .hero__line { white-space: normal; }
}

.hero__foot {
  display: grid;
  grid-template-columns: 2fr auto;
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin: clamp(28px, 4vw, 56px) 0;
}

.hero__lead {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--ink-mute);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__foot {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.hero__photo {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
}

.hero__photo img {
  width: 100%;
  height: clamp(320px, 62vh, 720px);
  object-fit: cover;
}

.hero__dim {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--gutter);
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-dark);
}

.hero__dim-line {
  flex: 1;
  height: 1px;
  background: var(--line-dark);
  position: relative;
}
.hero__dim-line::before,
.hero__dim-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-dark);
}
.hero__dim-line::before { left: 0; }
.hero__dim-line::after { right: 0; }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(-1 * var(--gutter));
  border-bottom: 1px solid var(--line-dark);
}

.hero__stats li {
  padding: clamp(24px, 3vw, 44px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__stats li + li { border-left: 1px solid var(--line-dark); }

.hero__stat-num {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
}

.hero__stat-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__stat-desc {
  font-size: 14px;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats li + li {
    border-left: none;
    border-top: 1px solid var(--line-dark);
  }
}

/* ============ SEKCJE — wspólne ============ */

.section {
  padding: var(--section-gap) var(--gutter);
}

.section--alt { background: var(--bg-alt); }

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 10px;
  align-items: baseline;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section__no { color: var(--ink-mute); }

.section__title {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section__sub {
  grid-column: 2;
  color: var(--ink-mute);
  font-size: clamp(15px, 1.3vw, 18px);
}

/* ============ OFERTA ============ */

.offer {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 120px);
}

.offer__row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.offer__row--flip .offer__photo { order: 2; }
.offer__row--flip .offer__body { order: 1; }

.offer__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.offer__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.offer__no { color: var(--ink-mute); }

.offer__name {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: 1;
}

.offer__body > p {
  color: var(--ink-mute);
  max-width: 46ch;
}

.offer__spec {
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  width: 100%;
}

.offer__link {
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 200ms ease;
}
.offer__link:hover { opacity: 0.55; }

@media (max-width: 860px) {
  .offer__row,
  .offer__row--flip { grid-template-columns: 1fr; }
  .offer__row--flip .offer__photo { order: 0; }
  .offer__row--flip .offer__body { order: 1; }
}

/* ============ REALIZACJE / GALERIA ============ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.filters button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.filters button:hover { background: var(--ink); color: var(--bg-alt); }

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg-alt);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.gallery__card {
  position: relative;
  background: var(--bg);
  display: block;
  width: 100%;
}

.gallery__slide { position: relative; }

.gallery__view {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.gallery__view img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 250ms ease;
}

.gallery__view:hover img { opacity: 0.82; }

/* sterowanie pokazem slajdów na karcie */
.gallery__ctrl {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.gallery__ctrl-counter {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  font-size: 11px;
}

.gallery__ctrl-btn {
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-left: 1px solid var(--line-dark);
  font-size: 15px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.gallery__ctrl-btn:hover { background: var(--ink); color: var(--bg); }

.gallery__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px 16px;
  background: var(--bg);
}

.gallery__card-title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.gallery__card-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.gallery__empty {
  grid-column: 1 / -1;
  background: var(--bg);
  padding: 48px;
  text-align: center;
  color: var(--ink-mute);
}

/* ============ PROCES ============ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-dark);
}

.steps__item {
  padding: 28px clamp(16px, 2vw, 28px) 40px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps__item:last-child { border-right: none; }

.steps__no {
  font-size: clamp(28px, 3vw, 44px);
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  letter-spacing: 0;
}

.steps__name {
  font-size: 19px;
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
}

.steps__item p {
  font-size: 14px;
  color: var(--ink-mute);
}

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .steps__item { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ KONTAKT ============ */

.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact__list li:first-child { border-top: 1px solid var(--line-dark); }

.contact__label { color: var(--ink-mute); }

.contact__value {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

a.contact__value:hover { text-decoration: underline; }

.contact__map {
  border: 1px solid var(--line-dark);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 460px);
  border: none;
  filter: grayscale(1) contrast(1.04);
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

/* ============ STOPKA ============ */

.footer {
  border-top: 1px solid var(--line-dark);
  padding: 40px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__logo {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__nav a:hover { text-decoration: underline; }

.footer__row--meta {
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "bar bar bar"
    "prev stage next";
}

.lightbox[hidden] { display: none; }

.lightbox__bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line-dark);
}

.lightbox__title { color: var(--ink); }
.lightbox__counter { color: var(--ink-mute); }

.lightbox__close {
  background: none;
  border: 1px solid var(--ink);
  width: 44px;
  height: 44px;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink);
  transition: background 200ms ease, color 200ms ease;
}
.lightbox__close:hover { background: var(--ink); color: var(--bg); }

.lightbox__stage {
  grid-area: stage;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 0;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  object-fit: contain;
}

.lightbox__nav {
  align-self: center;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  width: 52px;
  height: 52px;
  margin: 0 clamp(8px, 2vw, 32px);
  font-size: 18px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.lightbox__nav--prev { grid-area: prev; }
.lightbox__nav--next { grid-area: next; }

.lightbox__nav:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "bar bar"
      "stage stage"
      "prev next";
  }
  .lightbox__nav {
    width: auto;
    margin: 0 var(--gutter) 24px;
  }
  .lightbox__stage img { max-height: calc(100dvh - 220px); }
}

/* ============ ANIMACJE WEJŚCIA ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Blokada przewijania przy otwartym menu/lightboxie */
body.no-scroll { overflow: hidden; }
