/* Konfigurator desek do krojenia i serwowania */
.board-page {
  --board-ink: #17372e;
  --board-forest: #245044;
  --board-paper: #f7f4ec;
  --board-line: #d9ded6;
  --board-accent: #d9bc78;
}

.board-hero {
  padding: clamp(54px, 8vw, 100px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 84% 8%, rgba(226, 196, 127, .24), transparent 28%),
    linear-gradient(132deg, #102e26, #295346);
}

.board-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.board-breadcrumb {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
}

.board-breadcrumb a { color: inherit; }

.board-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.board-hero .lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
  line-height: 1.68;
}

.board-hero-notes {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.board-hero-notes li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .9);
}

.board-hero-notes li::before {
  position: absolute;
  left: 0;
  color: #ebd59e;
  content: "✓";
  font-weight: 900;
}

.board-hero-image {
  overflow: hidden;
  padding: 16px;
  background: #fbfaf5;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 30px 8px 30px 8px;
  box-shadow: 0 28px 70px rgba(2, 18, 13, .32);
  transform: rotate(1deg);
}

.board-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.board-configurator-section {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--board-paper);
}

.board-section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.board-section-heading h2 {
  margin: 0 0 14px;
  color: var(--board-ink);
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.board-section-heading p { color: #586861; line-height: 1.7; }

.board-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.board-gallery {
  position: sticky;
  top: 112px;
  min-width: 0;
}

.board-gallery-main {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 510px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--board-line);
  border-radius: 26px 7px 26px 7px;
  box-shadow: 0 20px 50px rgba(24, 55, 45, .11);
}

.board-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 590px;
  object-fit: contain;
}

.board-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.board-gallery-thumbnails button {
  overflow: hidden;
  padding: 5px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px 4px 12px 4px;
  cursor: pointer;
}

.board-gallery-thumbnails button[aria-pressed="true"] { border-color: var(--board-forest); }

.board-gallery-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.board-choice-panel {
  padding: clamp(26px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--board-line);
  border-radius: 26px 7px 26px 7px;
  box-shadow: 0 20px 50px rgba(24, 55, 45, .09);
}

.board-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.board-step + .board-step {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #e5e9e2;
}

.board-step legend {
  width: 100%;
  margin-bottom: 15px;
  color: var(--board-ink);
  font-size: 1.02rem;
  font-weight: 850;
}

.board-step legend span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  color: #fff;
  background: var(--board-forest);
  border-radius: 50%;
  font-size: .78rem;
}

.board-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.board-options label {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  color: #29483d;
  background: #f6f7f3;
  border: 1px solid #dce2da;
  border-radius: 12px 4px 12px 4px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 750;
}

.board-options label:has(input:checked) {
  background: #edf3ed;
  border-color: #426f5e;
  box-shadow: inset 0 0 0 1px #426f5e;
}

.board-options label.is-unavailable {
  color: #909a94;
  background: #f5f5f2;
  cursor: not-allowed;
  opacity: .58;
}

.board-options input { accent-color: var(--board-forest); }

.board-wood-swatch {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(19, 45, 36, .25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4);
}

.board-wood-swatch--walnut { background: linear-gradient(135deg, #3a1d13, #87502d); }
.board-wood-swatch--oak { background: linear-gradient(135deg, #a66a2b, #d3a15b); }
.board-wood-swatch--ash { background: linear-gradient(135deg, #d7bd8d, #f1dfb9); }

.board-selection-summary {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  padding: 18px;
  color: #24483c;
  background: #f1f5ef;
  border: 1px solid #d5e0d4;
  border-radius: 15px 5px 15px 5px;
}

.board-selection-summary strong { font-size: 1.08rem; }
.board-selection-summary span { color: #5f6f68; font-size: .9rem; }

.board-purchase {
  margin-top: 18px;
  padding: 22px;
  background: #173b31;
  border-radius: 18px 5px 18px 5px;
  color: #fff;
}

.board-purchase h3 { margin: 0 0 10px; color: #fff; }

.board-price {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
}

.board-price strong { color: #f0dba7; font-size: clamp(1.45rem, 3vw, 2rem); }
.board-price small { color: rgba(255, 255, 255, .72); font-size: .88rem; }

.board-production-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #263e35;
  background: #f5e5b9;
  border-radius: 10px 3px 10px 3px;
  font-size: .9rem;
  line-height: 1.55;
}

.board-purchase .product-quantity-label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 750;
}

.board-purchase input[type="number"] {
  width: 110px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  font: inherit;
}

.board-shipping-quote {
  margin: 0 0 16px;
  padding: 14px;
  color: #173b31;
  background: #edf3ed;
  border: 1px solid #aec3b7;
  border-radius: 10px 3px 10px 3px;
}

.board-shipping-quote h4 { margin: 0 0 6px; color: inherit; }
.board-shipping-quote p { margin: 0; line-height: 1.5; }
.board-shipping-quote a { color: #173b31; font-weight: 800; }
.board-shipping-quote[data-shipping-quote-state="loading"] { opacity: .78; }
.board-shipping-quote[data-shipping-quote-state="error"] { color: #6e2d26; background: #fae9e6; border-color: #d6a49d; }
.board-shipping-quote[data-shipping-quote-state="manual"] { color: #5d4315; background: #fbf1d6; border-color: #d9c28a; }

.board-purchase .button { width: 100%; }
.board-purchase .text-link { color: #fff; }

.board-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: #61726a;
  font-size: .86rem;
}

.board-status[data-error="true"] { color: #8b382f; }

.board-information {
  padding: clamp(70px, 9vw, 110px) 0;
  background: #fff;
}

.board-information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.board-information article {
  padding: 28px;
  background: #f6f5ef;
  border: 1px solid #e0e2da;
  border-radius: 18px 5px 18px 5px;
}

.board-information h2,
.board-information h3 { color: var(--board-ink); }

.board-information p { color: #596860; line-height: 1.68; }

.board-prices {
  padding: clamp(66px, 8vw, 100px) 0;
  background: #f1efe7;
}

.board-price-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--board-line);
  border-radius: 18px 5px 18px 5px;
}

.board-price-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.board-price-table th,
.board-price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e4e6e0;
  text-align: left;
}

.board-price-table th {
  color: #fff;
  background: var(--board-forest);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.board-price-table tbody tr:last-child td { border-bottom: 0; }
.board-price-table td:last-child { color: #24483c; font-weight: 850; }

@media (max-width: 920px) {
  .board-hero-grid,
  .board-configurator { grid-template-columns: 1fr; }
  .board-hero-image { width: min(100%, 680px); }
  .board-gallery { position: static; }
  .board-information-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .board-options { grid-template-columns: 1fr; }
  .board-gallery-main { min-height: 310px; padding: 8px; }
  .board-choice-panel { padding: 23px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .board-hero-image { transform: none; }
}
