:root {
  --paper: #F1F1EE;
  --paper-2: #E7E6E1;
  --ink: #1D1C1A;
  --muted: #5E5A54;
  --line: #D3D0C8;
  --birch: #E9D8B6;
  --birch-2: #D5BD93;
  --glue: #7A6443;
  --oak: #87582A;
  --lake: #223436;
  --lake-ink: #EDF0EE;
  --lake-muted: #AEBFBD;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Familjen Grotesk", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--paper); }

/* Nagłówek */
.site-head { padding-block: 16px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.nav { display: flex; gap: 28px; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 880px) { .nav { display: none; } }

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--oak); border-color: var(--oak); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 16px; font-size: 16px; }

/* Otwarcie strony */
.hero { padding-top: clamp(20px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 64px); align-items: end; }
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(46px, 7.4vw, 96px);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.03em;
}
.hero .lead { max-width: 40ch; margin: 0 0 32px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.hero-text { padding-bottom: clamp(0px, 3vw, 40px); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 72%; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 5fr 6fr; } }

/* Krawędź sklejki: 13 warstw forniru */
.ply {
  height: 52px;
  background:
    linear-gradient(90deg, rgba(70, 45, 20, .07), transparent 17%, rgba(70, 45, 20, .05) 41%, transparent 58%, rgba(70, 45, 20, .08) 83%, transparent),
    repeating-linear-gradient(180deg, var(--birch) 0 3px, var(--glue) 3px 4px, var(--birch-2) 4px 7px, var(--glue) 7px 8px);
}

/* Sekcje */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--paper-2); }
h2 { margin: 0 0 20px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 500; line-height: 1.04; letter-spacing: -.022em; }
h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.intro { max-width: 56ch; margin: 0; font-size: 19px; color: var(--muted); }

/* Oferta */
.offer { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer li { display: grid; grid-template-columns: 1fr; gap: 6px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.offer h3 { margin: 0; font-size: clamp(23px, 2.5vw, 31px); font-weight: 500; letter-spacing: -.012em; }
.offer p { max-width: 60ch; margin: 0; color: var(--muted); }
@media (min-width: 760px) { .offer li { grid-template-columns: minmax(220px, 1fr) 2fr; align-items: baseline; } }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.gallery figure { grid-column: span 2; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { padding-top: 8px; font-size: 15px; color: var(--muted); }
.gallery .tall { grid-column: span 1; }
.gallery .tall img { aspect-ratio: 4 / 5; }
.gallery .tall:last-child { grid-column: span 2; }
.gallery .tall:last-child img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .gallery .wide { grid-column: span 7; }
  .gallery .mid { grid-column: span 5; }
  .gallery .wide img, .gallery .mid img { aspect-ratio: auto; height: clamp(300px, 34vw, 426px); }
  .gallery .tall, .gallery .tall:last-child { grid-column: span 4; }
  .gallery .tall img, .gallery .tall:last-child img { aspect-ratio: 4 / 5; }
}
.gallery-more { margin: 28px 0 0; color: var(--muted); }

/* Materiał */
.material-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); }
.material-grid > figure { margin: 0; }
.material-grid > figure img { width: 100%; }
.material-text p { max-width: 58ch; }
@media (min-width: 900px) { .material-grid { grid-template-columns: 5fr 6fr; align-items: start; } }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 600px) { .facts div { grid-template-columns: 150px 1fr; } }

.colors { margin-top: clamp(56px, 7vw, 88px); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.swatches li { font-size: 16px; }
.swatches span {
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 8px;
  background:
    repeating-linear-gradient(97deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .05) 7px 8px, transparent 8px 15px),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
h1, h2, h3, .intro { text-wrap: balance; }
.colors-note { max-width: 62ch; margin: 20px 0 0; font-size: 16px; color: var(--muted); }

/* Proces: kolejne etapy */
.steps { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 22px 0 28px; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 44px; font-weight: 500; line-height: 1; color: var(--oak); }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* O nas */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 96px); }
.about-grid p { max-width: 58ch; }
.about-grid .muted { color: var(--muted); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 7fr 5fr; } }
.cooperation { align-self: end; padding-top: 24px; border-top: 2px solid var(--ink); }

/* Pytania */
.faq { max-width: 860px; margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; font-size: 28px; font-weight: 400; line-height: 1; transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 66ch; padding-bottom: 12px; color: var(--muted); }

/* Kontakt */
.contact { background: var(--lake); color: var(--lake-ink); }
.contact :focus-visible { outline-color: var(--birch); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact h2 { max-width: 14ch; margin-bottom: 36px; }
.contact .who { margin: 0 0 20px; color: var(--lake-muted); }
.big-link { display: inline-block; font-size: clamp(30px, 4.8vw, 58px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.big-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact .hours { margin: 6px 0 28px; color: var(--lake-muted); }
.company h3 { margin-bottom: 12px; }
.company address { font-style: normal; color: var(--lake-muted); }
.company address strong { color: var(--lake-ink); font-weight: 600; }
.company p { color: var(--lake-muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social .btn { border-color: var(--lake-muted); color: var(--lake-ink); }
.social .btn:hover { background: var(--lake-ink); color: var(--lake); }

/* Stopka */
.site-foot { padding-block: 28px; background: var(--lake); color: var(--lake-muted); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-foot a { color: var(--lake-ink); }

/* Podstrona tekstowa */
.doc { max-width: 760px; padding-block: clamp(40px, 7vw, 96px); }
.doc h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.022em; }
.doc h2 { margin: 44px 0 12px; font-size: 26px; letter-spacing: -.01em; }
.doc p, .doc li { color: #3F3C38; }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--muted); }

/* ===== WordPress: nagłówek i menu ===== */
.nav-list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-list a { font-size: 16px; color: var(--muted); text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--ink); text-decoration: underline; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.nw-cart-count { color: var(--oak); }
.nav-mobile { position: relative; display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 220px; padding: 8px 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(29, 28, 26, .12); }
.nav-mobile-list { margin: 0; padding: 0; list-style: none; }
.nav-mobile-list a { display: block; padding: 10px 18px; font-size: 17px; text-decoration: none; }
.nav-mobile-list a:hover { background: var(--paper-2); }
@media (max-width: 880px) { .nav-mobile { display: block; } }
@media (max-width: 560px) { .head-phone { display: none; } }
.foot-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }

/* ===== WordPress: podstrony ===== */
.page-title { margin: 0 0 24px; font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.022em; text-wrap: balance; }
.entry h2 { margin: 44px 0 12px; font-size: 26px; letter-spacing: -.01em; }
.entry h3 { margin: 32px 0 8px; }
.doc .entry p, .doc .entry li { color: #3F3C38; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }

/* ===== Strona główna zbudowana z bloków ===== */
.front .wp-block-image, .gallery .wp-block-image, .hero-photo { margin: 0; }
.front .wp-block-spacer.ply { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .wp-block-button > .wp-block-button__link,
.btn-block .wp-block-button > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper);
  font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hero-actions .wp-block-button > .wp-block-button__link:hover,
.btn-block .wp-block-button > .wp-block-button__link:hover { background: var(--oak); border-color: var(--oak); color: var(--paper); }
.hero-actions .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background),
.btn-block .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; color: var(--ink); border-width: 1px; }
.hero-actions .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover,
.btn-block .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: var(--ink); color: var(--paper); }

.offer-row { display: grid; grid-template-columns: 1fr; gap: 6px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.offer-row h3 { margin: 0; font-size: clamp(23px, 2.5vw, 31px); font-weight: 500; letter-spacing: -.012em; }
.offer-row p { max-width: 60ch; margin: 0; color: var(--muted); }
@media (min-width: 760px) { .offer-row { grid-template-columns: minmax(220px, 1fr) 2fr; align-items: baseline; } }

.step { padding: 22px 0 28px; border-top: 2px solid var(--ink); counter-increment: step; }
.step::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 44px; font-weight: 500; line-height: 1; color: var(--oak); }
.step p { margin: 0; color: var(--muted); }

.shop-teaser-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.shop-teaser-head .intro { margin: 0; }
