/* =========================================================
   Wzornik kolorów (Figma: node 89:2)
   ========================================================= */

/* ---------- Zakładki sekcji ---------- */
.wz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;           /* 20px gap + 12px padding z Figmy */
}
.wz-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.wz-tab__count { font-size: 12px; font-weight: 400; line-height: 15px; color: var(--c-muted); }
.wz-tab:hover { border-color: var(--c-ink); }
.wz-tab.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.wz-tab.is-active .wz-tab__count { color: var(--c-white); opacity: .6; }

/* ---------- Sekcje ---------- */
.wz-section { padding-block: 96px; scroll-margin-top: var(--header-h); }
.wz-section--first { padding-top: 72px; }
.wz-stack { display: flex; flex-direction: column; gap: 48px; }
.wz-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- Karty informacyjne ---------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--c-soft);
}
.info-cards--white .info-card { background: var(--c-white); }
.info-card__title { font-size: 16px; font-weight: 500; line-height: 22px; }
.info-card__text { font-size: 14px; line-height: 22px; color: var(--c-muted); }
.info-card__list { display: flex; flex-direction: column; gap: 10px; }
.info-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: #4a4a4a;
}
.info-card__list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

/* ---------- Kolekcje / próbki ---------- */
.wz-collection { display: flex; flex-direction: column; gap: 20px; }
.wz-collection__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.wz-collection__head span { font-size: 14px; font-weight: 400; line-height: 17px; color: var(--c-muted); }

.swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 28px 16px;
}
.swatches--tight { gap: 24px 16px; }
.swatches--119 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 24px 16px; }

.swatch__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.swatches--tight .swatch__btn,
.swatches--119 .swatch__btn { gap: 8px; }
.swatch__btn img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.swatch__btn:hover img { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(35, 31, 32, .14); }
.swatch__name { font-size: 13px; line-height: 18px; }
.swatches--119 .swatch__name { font-size: 12px; line-height: 17px; }

/* Rodzaj usłojenia */
.grain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
.grain .swatch__btn { gap: 8px; }
.grain .swatch__btn img { aspect-ratio: 592 / 300; }
.grain__name { font-size: 14px; line-height: 19px; }

/* Uwaga */
.wz-note { font-size: 13px; line-height: 20px; color: var(--c-muted); }
.wz-note::before { content: "ⓘ"; margin-right: .55em; }

/* ---------- Co wybierają klienci ---------- */
.wz-stats {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px;
  border-radius: var(--r-lg);
  background: var(--c-ink);
  color: var(--c-white);
}
.wz-stats__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, .75);
}
.wz-stats__title {
  font-size: 36px;
  line-height: 42px;
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--c-white);
}
.wz-chart { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.wz-chart__numbers { display: flex; justify-content: space-between; align-items: flex-end; }
.wz-chart__item { display: flex; flex-direction: column; gap: 4px; }
.wz-chart__item--end { align-items: flex-end; }
.wz-chart__value { font-size: 40px; line-height: 44px; font-weight: 300; }
.wz-chart__value--main { font-size: 72px; line-height: 76px; color: var(--c-green); }
.wz-chart__label { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .75); }
.wz-chart__bar { display: flex; gap: 4px; }
.wz-chart__bar span { height: 12px; border-radius: 4px; }
.wz-chart__fill { flex: 0 0 calc((100% - 4px) * .8992); background: var(--c-green); }   /* 464 / 516 */
.wz-chart__rest { flex: 1 1 0; background: rgba(255, 255, 255, .85); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 64px 24px;
  background: rgba(20, 18, 18, .92);
  color: var(--c-white);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(1000px, 100%); }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  width: auto;
  border-radius: var(--r-md);
  object-fit: contain;
}
.lightbox__caption { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 20px; }
.lightbox__name { font-weight: 500; }
.lightbox__count { font-size: 13px; color: var(--c-on-dark-muted); }
.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  color: var(--c-white);
  font-size: 20px;
  transition: background-color .2s;
}
.lightbox__close { position: absolute; top: 16px; right: 16px; font-size: 28px; line-height: 1; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-open { overflow: hidden; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1200px) {
  .swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .swatches--119 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .wz-stats { flex-direction: column; align-items: stretch; gap: 40px; }
  .wz-chart { width: 100%; }
}

@media (max-width: 1024px) {
  .wz-section { padding-block: 72px; }
  .wz-section--first { padding-top: 56px; }
  .info-cards { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .swatches--119 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .wz-stack { gap: 40px; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
  .swatches--119 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
  .grain { grid-template-columns: 1fr; }
  .wz-stats { padding: 40px 32px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .lightbox { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  .wz-tabs { margin-top: 24px; }
  .wz-tab { padding: 9px 14px; }
  .wz-section { padding-block: 56px; }
  .wz-section--first { padding-top: 40px; }
  .info-card { padding: 24px; }
  .swatches,
  .swatches--119 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .swatch__name { font-size: 12px; line-height: 16px; }
  .wz-stats { padding: 32px 24px; }
  .wz-stats__title { font-size: 28px; line-height: 34px; }
  .wz-stats__title br { display: none; }
  .wz-chart__value--main { font-size: 56px; line-height: 60px; }
  .wz-chart__value { font-size: 32px; line-height: 36px; }
}
