:root {
  --noc: #080a10;
  --noc-2: #10141c;
  --noc-3: #181e2a;
  --piana: #f4f6fb;
  --mgla: #c5ccd8;
  --zar: #ff5a2a;
  --mieta: #7dffce;
  --drewno: #d7b48a;
  --kreska: rgba(244, 246, 251, 0.12);
  --szklo: rgba(8, 10, 16, 0.62);
  --haslo: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --tresc: "Source Serif 4", Georgia, serif;
  --ui: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --szyna: 5.2rem;
}

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

html {
  font-size: 19px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--noc);
  color: var(--piana);
  font-family: var(--tresc);
  font-weight: 500;
  line-height: 1.58;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--haslo);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.1rem, 6.4vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.7rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

h4,
h5,
h6 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--mgla);
  font-size: 1.08rem;
}

.skok-tresc {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--zar);
  color: var(--noc);
  padding: 0.7rem 1.1rem;
  font-family: var(--ui);
  font-weight: 800;
}

.skok-tresc:focus {
  left: 12px;
  top: 12px;
  z-index: 90;
}

.folio-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--szyna);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0 1.4rem;
  border-right: 1px solid var(--kreska);
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(14px);
}

.folio-rail__mark img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.folio-rail__spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mieta);
}

.folio-rail__mail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--drewno);
}

.folio-rail__mail:hover,
.folio-rail__mail:focus-visible {
  color: var(--zar);
}

.folio-stage {
  margin-left: var(--szyna);
}

.folio-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.6rem 0;
}

.folio-brand {
  display: none;
}

.folio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ui);
  font-weight: 800;
}

.folio-nav a {
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 2px solid transparent;
}

.folio-nav a:hover,
.folio-nav a:focus-visible,
.folio-nav a[aria-current="page"] {
  border-bottom-color: var(--zar);
  color: var(--zar);
}

.folio-bar__kontakt {
  display: flex;
  gap: 1rem;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 0.98rem;
}

.folio-bar__kontakt a {
  color: var(--mieta);
  text-decoration: none;
}

.folio-bar__kontakt a:hover,
.folio-bar__kontakt a:focus-visible {
  color: var(--zar);
}

.folio-switch {
  display: none;
  min-width: 52px;
  min-height: 52px;
  border: 0;
  background: var(--zar);
  color: var(--noc);
  font-family: var(--ui);
  font-weight: 800;
  cursor: pointer;
}

.folio-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.folio-hero__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folio-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 10, 16, 0.88) 0%, rgba(8, 10, 16, 0.18) 46%, rgba(8, 10, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.42) 0%, transparent 30%, rgba(8, 10, 16, 0.92) 100%);
}

.folio-hero__copy {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 1180px);
  margin: 0 auto 3.2rem;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1.3fr;
  gap: 2rem;
  align-items: end;
}

.folio-kicker {
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mieta);
  margin-bottom: 0.7rem;
}

.hours-card {
  background: var(--szklo);
  border: 1px solid var(--kreska);
  border-left: 4px solid var(--zar);
  backdrop-filter: blur(18px);
  padding: 1.2rem 1.25rem;
}

.hours-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.hours-card dt {
  font-family: var(--ui);
  font-weight: 800;
  color: var(--drewno);
  margin-top: 0.55rem;
}

.hours-card dd {
  margin: 0.15rem 0 0;
  color: var(--piana);
}

.folio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.75rem 1.4rem;
  border: 0;
  background: var(--zar);
  color: var(--noc);
  font-family: var(--ui);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.folio-btn:hover,
.folio-btn:focus-visible {
  background: var(--mieta);
  transform: translateY(-3px);
}

.folio-btn--ghost {
  background: transparent;
  color: var(--piana);
  box-shadow: inset 0 0 0 2px var(--piana);
}

.folio-btn--ghost:hover,
.folio-btn--ghost:focus-visible {
  background: var(--piana);
  color: var(--noc);
}

.paczka {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.folio-wrap {
  width: min(100% - 3rem, 1180px);
  margin-inline: auto;
}

main.folio-wrap {
  padding: 4rem 0 5rem;
}

.spread {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem 3.4rem;
  align-items: start;
  margin: 0 0 4.5rem;
}

.spread--flip .spread__visual {
  order: 2;
}

.spread__visual {
  position: sticky;
  top: 1.4rem;
}

.spread__visual img {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
  cursor: zoom-in;
  filter: saturate(1.05);
}

.spread__visual figcaption,
.kadr figcaption {
  font-family: var(--ui);
  font-weight: 800;
  color: var(--drewno);
  margin-top: 0.6rem;
}

.numer-widmo {
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.7;
  color: rgba(244, 246, 251, 0.07);
  margin: 0 0 0.2rem;
}

.cytat {
  border-left: 4px solid var(--mieta);
  padding: 0.2rem 0 0.2rem 1.1rem;
  font-family: var(--haslo);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--piana);
  margin: 1.4rem 0;
  letter-spacing: -0.03em;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 2.4rem 0 4.2rem;
}

.mosaic__cell {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic__cell:hover img,
.mosaic__cell:focus-within img {
  transform: scale(1.06);
}

.pas-kadru {
  position: relative;
  margin: 0 0 4.4rem;
  min-height: 58vh;
}

.pas-kadru img {
  width: 100%;
  height: 62vh;
  object-fit: cover;
  cursor: zoom-in;
}

.pas-kadru__podpis {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  max-width: 28rem;
  background: var(--szklo);
  backdrop-filter: blur(16px);
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--mieta);
}

.chip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}

.chip-tabs button {
  min-height: 48px;
  padding: 0.5rem 1.05rem;
  border: 0;
  background: var(--noc-3);
  color: var(--piana);
  font-family: var(--ui);
  font-weight: 800;
  cursor: pointer;
}

.chip-tabs button[aria-selected="true"],
.chip-tabs button:hover,
.chip-tabs button:focus-visible {
  background: var(--zar);
  color: var(--noc);
}

.panel-zakladki[hidden] {
  display: none;
}

.ledger {
  overflow-x: auto;
  margin: 1.2rem 0 2.4rem;
  background: var(--noc-2);
  border-top: 3px solid var(--zar);
}

.ledger table {
  min-width: 640px;
}

.ledger th,
.ledger td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--kreska);
  font-size: 1.02rem;
}

.ledger th {
  font-family: var(--ui);
  color: var(--mieta);
  background: #141a24;
}

.ledger tfoot td {
  color: var(--drewno);
  font-family: var(--ui);
  font-weight: 800;
}

.ledger tr[data-rozwin] {
  cursor: pointer;
}

.ledger tr[data-rozwin]:hover td {
  background: #1c2432;
}

.wiersz-opis td {
  background: #0c1018;
  color: var(--mgla);
}

ul,
ol {
  color: var(--mgla);
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

li {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

dl {
  margin: 0 0 1.2rem;
}

dt {
  font-family: var(--ui);
  font-weight: 800;
  color: var(--zar);
  margin-top: 0.85rem;
  font-size: 1.12rem;
}

dd {
  margin: 0.2rem 0 0.6rem;
  color: var(--mgla);
  font-size: 1.08rem;
}

.lista-roz details {
  border-bottom: 1px solid var(--kreska);
  padding: 0.35rem 0;
}

.lista-roz summary {
  cursor: pointer;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 1.18rem;
  list-style: none;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lista-roz summary::-webkit-details-marker {
  display: none;
}

.lista-roz summary::after {
  content: "+";
  color: var(--mieta);
  font-size: 1.7rem;
}

.lista-roz details[open] summary::after {
  content: "–";
}

.adresy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.adresy article {
  background: var(--noc-2);
  padding: 1.2rem;
  border-top: 3px solid var(--drewno);
}

.adresy a {
  color: var(--mieta);
  font-family: var(--ui);
  font-weight: 800;
  text-decoration: none;
}

.adresy a:hover,
.adresy a:focus-visible {
  color: var(--zar);
}

.formularz {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  background: var(--noc-2);
  padding: 1.3rem;
}

.formularz label {
  font-family: var(--ui);
  font-weight: 800;
  display: grid;
  gap: 0.35rem;
}

.formularz input,
.formularz select,
.formularz textarea {
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid var(--kreska);
  background: var(--noc);
  color: var(--piana);
  padding: 0.65rem 0.8rem;
  font-family: var(--tresc);
}

.formularz textarea {
  min-height: 140px;
  resize: vertical;
}

.formularz input:focus,
.formularz select:focus,
.formularz textarea:focus {
  outline: none;
  border-bottom-color: var(--zar);
}

.blad-pola {
  color: var(--zar);
  min-height: 1.1em;
  font-size: 1rem;
}

.spis-tresci {
  background: var(--noc-2);
  padding: 1.2rem 1.3rem;
  margin: 0 0 2.2rem;
  border-left: 4px solid var(--mieta);
}

.spis-tresci a {
  color: var(--zar);
  font-family: var(--ui);
  font-weight: 800;
}

.folio-foot {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 1.4rem;
}

.folio-foot__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.folio-foot__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #080a10 0%, rgba(8, 10, 16, 0.82) 40%, #080a10 100%);
}

.folio-foot__siatka {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.folio-foot a {
  color: var(--mieta);
  font-family: var(--ui);
  font-weight: 800;
}

.folio-foot a:hover,
.folio-foot a:focus-visible {
  color: var(--zar);
}

.podpis-rok {
  position: relative;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kreska);
  color: var(--mgla);
}

dialog.sheet {
  border: 0;
  background: var(--noc-2);
  color: var(--piana);
  padding: 1.4rem;
  max-width: 720px;
  width: calc(100% - 2rem);
}

dialog.sheet::backdrop {
  background: rgba(4, 5, 8, 0.82);
}

dialog.sheet img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin-bottom: 1rem;
}

.pasek-ciastek {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  left: calc(var(--szyna) + 1.2rem);
  z-index: 50;
  max-width: 560px;
  margin-left: auto;
  background: var(--noc-3);
  border-left: 4px solid var(--zar);
  padding: 1.15rem 1.2rem;
}

.pasek-ciastek[hidden],
.ukryty {
  display: none;
}

.kadr-strony {
  position: relative;
  min-height: 46vh;
  display: grid;
  align-items: end;
  margin-bottom: 2.4rem;
}

.kadr-strony > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kadr-strony__copy {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 1180px);
  margin: 0 auto 2.4rem;
  padding-top: 8rem;
}

.kadr-strony::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.25), rgba(8, 10, 16, 0.9));
}

.kadr-strony .folio-bar {
  z-index: 20;
}

@media (max-width: 980px) {
  .folio-rail {
    display: none;
  }

  .folio-stage {
    margin-left: 0;
  }

  .folio-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    font-family: var(--ui);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #ffffff;
    white-space: nowrap;
  }

  .folio-brand img {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  }

  .folio-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .folio-hero,
  .kadr-strony {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }

  .folio-bar {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: #080a10;
    padding: 0.9rem 1rem;
    z-index: 40;
  }

  .folio-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    background: var(--noc-2);
    padding: 0.7rem 0.9rem;
  }

  .folio-nav.otwarte {
    display: flex;
  }

  .folio-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .folio-bar__kontakt {
    display: none;
  }

  .folio-hero__copy,
  .spread,
  .spread--flip,
  .mosaic,
  .adresy,
  .folio-foot__siatka {
    grid-template-columns: 1fr;
  }

  .folio-hero__copy {
    margin: 0 auto 2rem;
    padding-top: 1.4rem;
    width: min(100% - 2rem, 1180px);
  }

  .kadr-strony__copy {
    padding-top: 1.8rem;
  }

  .spread--flip .spread__visual,
  .spread__visual {
    position: relative;
    top: auto;
    order: 0;
  }

  .spread__visual img,
  .pas-kadru img {
    height: 52vh;
  }

  .mosaic {
    gap: 0.7rem;
  }

  .mosaic__cell {
    aspect-ratio: 1 / 1;
  }

  .pasek-ciastek {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .kadr-strony {
    min-height: 58vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .folio-btn,
  .mosaic__cell img {
    transition: none;
    transform: none;
  }
}
