:root {
  --sand: #C9A872;
  --sand-hi: #DBBE89;
  --sand-lo: #A88A57;
  --teak: #5B3A29;
  --teak-hi: #7A4F38;
  --indigo: #1E2A3A;
  --indigo-soft: #2F3D52;
  --parchment: #F5EFE3;
  --parchment-deep: #ECE3D0;
  --line: rgba(91, 58, 41, 0.18);
  --line-strong: rgba(91, 58, 41, 0.35);
  --shadow: 0 1px 0 rgba(91, 58, 41, 0.06), 0 12px 28px -16px rgba(30, 42, 58, 0.18);
  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--indigo);
  background: var(--parchment);
  background-image:
    radial-gradient(at 20% 10%, rgba(201, 168, 114, 0.10), transparent 50%),
    radial-gradient(at 80% 90%, rgba(91, 58, 41, 0.06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.23  0 0 0 0 0.16  0 0 0 0.04 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 180px 180px;
  min-height: 100vh;
}

::selection { background: var(--sand); color: var(--indigo); }

/* ============ LAYOUT ============ */

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--parchment);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0 -1px 0 auto;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--teak) 10%, var(--teak) 90%, transparent);
  opacity: 0.22;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--indigo);
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--teak);
  font-variation-settings: "opsz" 96;
}

.brand-est {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--sand-lo);
  font-variation-settings: "opsz" 14;
}

.brand-tag {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-top: 4px;
}

.brand-slogan {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--teak);
  font-variation-settings: "opsz" 14;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-lo);
  margin: 4px 0 12px;
  padding-left: 2px;
}

.nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 10px 4px 10px 2px;
  text-decoration: none;
  color: var(--indigo);
  font-size: 14.5px;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: padding-left 220ms cubic-bezier(0.2,0.7,0.2,1), color 180ms, border-color 220ms;
}

.nav a:hover, .nav a:focus-visible {
  padding-left: 10px;
  color: var(--teak);
  border-bottom-color: var(--line);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--teak);
  font-weight: 600;
  padding-left: 10px;
}

.nav a[aria-current="page"] .num {
  color: var(--teak);
}

.nav .num {
  font-family: var(--display);
  font-feature-settings: "tnum";
  font-weight: 600;
  font-size: 12px;
  color: var(--sand-lo);
  font-variation-settings: "opsz" 14;
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--indigo-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-foot a {
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 180ms, border-color 180ms;
}

.sidebar-foot a:hover { color: var(--teak); border-bottom-color: var(--teak); }

.foot-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-lo);
}

.foot-tel {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  color: var(--teak);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 36;
  text-decoration: none;
}

.foot-tel:hover { color: var(--indigo); }

/* ============ CONTENT ============ */

main {
  padding: 56px clamp(28px, 5vw, 88px) 88px;
  max-width: 980px;
}

.crumbs {
  font-size: 12px;
  color: var(--indigo-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.crumbs a {
  color: var(--indigo-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover { color: var(--teak); border-bottom-color: var(--line-strong); }
.crumbs span.sep { color: var(--sand-lo); }

.hero {
  display: grid;
  gap: 24px;
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teak);
  padding: 6px 12px;
  border: 1px solid var(--teak);
  align-self: start;
  background: var(--parchment-deep);
}

.hero-stamp::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--sand);
  border-radius: 50%;
  display: block;
}

.h-display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--indigo);
  margin: 0;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.h-display em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--teak);
}

.h-display .ampersand {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--sand-lo);
  padding: 0 4px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--indigo-soft);
  max-width: 54ch;
  margin: 0;
}

.hero-lead strong { color: var(--teak); font-weight: 600; }

/* numbered section */

.section {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.section + .section { margin-top: 24px; }

.section-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  color: var(--sand-lo);
  font-variation-settings: "opsz" 36;
  line-height: 1;
  padding-top: 8px;
}

.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--indigo);
  margin: 0 0 16px;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}

.section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--teak);
  margin: 32px 0 8px;
  font-variation-settings: "opsz" 36;
}

.section p, .section li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--indigo);
  max-width: var(--measure);
}

.section p { margin: 0 0 14px; }

.section ul, .section ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.section li { margin-bottom: 6px; }

.section a {
  color: var(--teak);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.section a:hover { color: var(--indigo); border-bottom-color: var(--teak); }

/* cards grid (home) */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 4px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--parchment-deep);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  text-decoration: none;
  color: var(--indigo);
  transition: transform 280ms cubic-bezier(0.2,0.7,0.2,1), border-color 220ms, background 220ms;
  position: relative;
  min-height: 180px;
}

.card::after {
  content: '→';
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--sand-lo);
  transition: transform 280ms, color 220ms;
}

.card:hover {
  border-color: var(--teak);
  transform: translateY(-4px);
  background: var(--parchment);
}

.card:hover::after {
  transform: translateX(4px);
  color: var(--teak);
}

.card-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--sand-lo);
  font-variation-settings: "opsz" 14;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--indigo);
  font-variation-settings: "opsz" 36;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 13.5px;
  color: var(--indigo-soft);
  line-height: 1.5;
  margin-bottom: 6px;
}

/* spec table — gatunki / wymiary */

.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 15.5px;
}

.spec caption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-lo);
  text-align: left;
  padding-bottom: 10px;
}

.spec th, .spec td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--teak);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-variation-settings: "opsz" 14;
  background: rgba(201, 168, 114, 0.08);
}

.spec td:first-child {
  font-weight: 600;
  color: var(--indigo);
}

/* CTA blok */

.cta {
  margin: 40px 0 8px;
  padding: 28px 32px;
  background: var(--indigo);
  color: var(--parchment);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent 0 6px,
      rgba(201, 168, 114, 0.04) 6px 8px
    );
  pointer-events: none;
}

.cta-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: var(--parchment);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.cta-sub {
  font-size: 14px;
  color: var(--sand);
  margin: 0;
  max-width: 44ch;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--sand);
  color: var(--indigo);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid var(--sand);
  transition: background 200ms, color 200ms;
}

.cta-btn:hover { background: var(--parchment); border-color: var(--parchment); }

.cta-btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--sand);
}

.cta-btn--ghost:hover { background: var(--sand); color: var(--indigo); }

/* gallery hint — simple framed image */

.frame {
  margin: 24px 0 32px;
  border: 1px solid var(--line-strong);
  padding: 8px;
  background: var(--parchment);
  display: block;
}

.frame img { display: block; width: 100%; height: auto; }

.frame figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--sand-lo);
  margin-top: 10px;
  padding: 0 4px 4px;
}

/* footer */

footer.site {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 36px clamp(28px, 5vw, 88px);
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  font-size: 13px;
  color: var(--indigo-soft);
}

footer.site .colophon {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--teak);
  font-variation-settings: "opsz" 14;
}

/* ============ HEADER MOBILE ============ */

.mob-bar {
  display: none;
}

/* ============ ANIMATIONS ============ */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); animation: reveal 540ms cubic-bezier(0.2,0.7,0.2,1) forwards; }
  .reveal:nth-child(1) { animation-delay: 40ms; }
  .reveal:nth-child(2) { animation-delay: 120ms; }
  .reveal:nth-child(3) { animation-delay: 200ms; }
  .reveal:nth-child(4) { animation-delay: 280ms; }
  .reveal:nth-child(5) { animation-delay: 360ms; }
  .reveal:nth-child(6) { animation-delay: 440ms; }
  @keyframes reveal {
    to { opacity: 1; transform: none; }
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 22px 22px;
    overflow: visible;
  }
  .sidebar::before { display: none; }
  .nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }
  .nav-eyebrow { grid-column: 1 / -1; margin-top: 6px; }
  .sidebar-foot {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    align-items: baseline;
  }
  .sidebar-foot .foot-label { width: 100%; margin: 0; }
  .foot-tel { font-size: 19px; }
  main { padding: 36px 22px 60px; }
  .section { grid-template-columns: 56px 1fr; gap: 16px; padding-top: 36px; }
  .section-num { font-size: 26px; padding-top: 6px; }
  .cta { grid-template-columns: 1fr; padding: 24px; }
  .cta-row { flex-wrap: wrap; }
  footer.site { grid-template-columns: 1fr; padding: 28px 22px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr; }
  .section { grid-template-columns: 1fr; gap: 4px; }
  .section-num { font-size: 22px; padding: 0; margin-bottom: 4px; }
  .brand-name { font-size: 24px; }
  .h-display { font-size: clamp(38px, 12vw, 60px); }
  .hero-lead { font-size: 17px; }
}
