:root {
  --bg: #e7e1d4;
  --ink: #1b1915;
  --muted: #534c43;
  --accent: #9a3d12;
  --line: rgba(27, 25, 21, 0.16);
  --panel: #f6f1e7;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 8px;
  background: #c24e1d;
  z-index: 60;
}

::selection {
  background: #1b1915;
  color: #f6f1e7;
}

h1,
h2,
.pull,
.eyebrow,
.project h3 {
  font-family: Fraunces, Georgia, serif;
}

.eyebrow {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.15rem;
}

h1 {
  margin-top: 10px;
  font-weight: 560;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

h2 {
  font-weight: 560;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lede,
.section-head p,
.offer p,
.project p,
.step p,
.faq-item p,
.contact-copy p,
.fine {
  color: var(--muted);
}

.lede {
  margin-top: 22px;
  max-width: 38ch;
  font-size: 1.12rem;
}

.hero {
  padding: 36px 0 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 600;
  background: var(--ink);
  color: var(--panel);
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.quiet {
  color: var(--muted);
  max-width: 24ch;
  font-size: 0.95rem;
}

.materials {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.materials span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
}

.swatch {
  display: block;
  height: 112px;
}

.swatch-oak {
  background:
    repeating-linear-gradient(90deg, rgba(70, 36, 14, 0.18) 0 2px, transparent 2px 11px),
    linear-gradient(#c48955, #7d4e2c);
}

.swatch-terra {
  background-color: #ece6dc;
  background-image:
    radial-gradient(circle at 18% 30%, #c24e1d 3px, transparent 4px),
    radial-gradient(circle at 62% 42%, #1b1915 2px, transparent 3px),
    radial-gradient(circle at 40% 72%, #8d9188 4px, transparent 5px),
    radial-gradient(circle at 78% 68%, #c24e1d 2.5px, transparent 3.5px),
    radial-gradient(circle at 30% 48%, #d9c7a8 5px, transparent 6px);
}

.swatch-plaster {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(#efe8dc, #cfc3b0);
}

.swatch-tile {
  background:
    linear-gradient(rgba(27, 25, 21, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 25, 21, 0.18) 1px, transparent 1px),
    linear-gradient(160deg, #f7f3ec, #d9d2c6);
  background-size: 22px 22px, 22px 22px, auto;
}

.pull {
  margin: 54px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  max-width: 20ch;
}

section {
  padding: 56px 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.offers,
.projects,
.steps {
  display: grid;
  gap: 14px;
}

.offer,
.project {
  background: var(--panel);
  padding: 18px;
}

.offer h3,
.step h3 {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters label {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
}

.filters .sr:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

body:has(#kind-all:checked) label[for="kind-all"],
body:has(#kind-mieszkanie:checked) label[for="kind-mieszkanie"],
body:has(#kind-dom:checked) label[for="kind-dom"],
body:has(#kind-lokal:checked) label[for="kind-lokal"] {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}

body:has(#kind-mieszkanie:checked) .project:not([data-kind="mieszkanie"]),
body:has(#kind-dom:checked) .project:not([data-kind="dom"]),
body:has(#kind-lokal:checked) .project:not([data-kind="lokal"]) {
  display: none !important;
}

.project .swatch {
  height: 180px;
  margin: -18px -18px 16px;
}

.meta {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  counter-reset: none;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.step b {
  font-family: Fraunces, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.4rem;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  max-width: 62ch;
  padding-bottom: 16px;
}

.contact {
  display: grid;
  gap: 28px;
}

.address {
  margin-top: 16px;
  display: grid;
  gap: 4px;
}

.address a {
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}

.form-fields,
label,
.split {
  display: grid;
  gap: 8px;
}

.form-fields {
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  color-scheme: light;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  background: var(--panel);
  padding: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--ink);
}

.logo {
  font-family: Fraunces, serif;
  font-weight: 560;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

@media (min-width: 800px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .materials,
  .offers,
  .projects {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .contact {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .section-head p {
    max-width: 32ch;
    text-align: right;
  }
}

@media (max-width: 700px) {
  body::before {
    width: 5px;
  }
}
