/* ============================================================
   COMPONENTS — Buttons · Cards · Forms · Wizard · Carousel · Accordion
   ============================================================ */

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: 600 var(--text-sm)/1 var(--font-body);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* Sizes */
.btn--lg  { height: 56px; padding: 0 var(--sp-8); font-size: var(--text-base); }
.btn--md  { height: 48px; padding: 0 var(--sp-6); font-size: var(--text-sm); }
.btn--sm  { height: 40px; padding: 0 var(--sp-5); font-size: var(--text-xs); }

/* Full width variant */
.btn--full { width: 100%; }

/* Primary */
.btn--primary {
  background: var(--forest);
  color: #fff;
}
.btn--primary:hover   { background: var(--forest-hover); box-shadow: 0 6px 20px rgba(58,107,82,0.28); }
.btn--primary:active  { transform: scale(0.97); box-shadow: none; }
.btn--primary:disabled{ background: var(--ink-3); cursor: not-allowed; box-shadow: none; transform: none; }

/* Ghost (outline) */
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn--ghost:hover   { background: var(--forest-tint); }
.btn--ghost:active  { transform: scale(0.97); }

/* Inverse (dark bg) */
.btn--inv {
  background: transparent;
  color: var(--ink-inv);
  border: 1.5px solid rgba(245,240,232,0.3);
}
.btn--inv:hover { background: rgba(245,240,232,0.08); border-color: rgba(245,240,232,0.5); }

/* Icon + text */
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.btn--lg svg { width: 18px; height: 18px; }

/* Arrow button (text link style) */
.btn--link {
  background: none;
  border: none;
  color: var(--forest);
  font: 600 var(--text-sm)/1 var(--font-body);
  padding: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: border-color var(--dur-fast);
}
.btn--link:hover { border-color: var(--forest); }

/* ── PRODUCT CARDS ───────────────────────────────────────── */

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card__img {
  aspect-ratio: 4/3;
  background: var(--tan-light);
  overflow: hidden;
  position: relative;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.product-card:hover .product-card__img img { transform: scale(1.03); }

.product-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--forest);
  color: #fff;
  font: 700 10px/1 var(--font-body);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.product-card__body {
  padding: var(--sp-5);
}

.product-card__title {
  font: 400 var(--text-xl)/1.25 var(--font-display);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.product-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.4;
}

.product-card__feature::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--forest-tint);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%233A6B52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-s);
}

.product-card__price {
  font: 600 var(--text-3xl)/1 var(--font-display);
  color: var(--ink);
}

.product-card__price-unit {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--ink-2);
  margin-left: 2px;
}

/* Horizontal layout variant (used in homepage product section) */
.product-card--h {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .product-card--h {
    flex-direction: row;
    height: 180px;
  }
  .product-card--h .product-card__img {
    width: 180px;
    height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
    order: 2;
  }
  .product-card--h .product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 1;
  }
}

/* ── FEATURE CHIPS ───────────────────────────────────────── */

.feature-chip {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--sp-3);
  row-gap: var(--sp-1);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.feature-chip:hover {
  background: var(--tan-light);
  border-color: var(--tan);
}

.feature-chip__icon {
  grid-row: span 2;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: var(--forest);
}

.feature-chip__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.feature-chip__title {
  font: 600 var(--text-sm)/1.3 var(--font-body);
  color: var(--ink);
}

.feature-chip__desc {
  font: 400 var(--text-xs)/1.5 var(--font-body);
  color: var(--ink-2);
}

/* ── TESTIMONIAL CARDS ───────────────────────────────────── */

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  flex-shrink: 0;
  width: 300px;         /* horizontal scroll items */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 1024px) {
  .testimonial-card { width: auto; }
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
}

.testimonial-card__star {
  width: 14px;
  height: 14px;
  color: var(--tan);
  fill: var(--tan);
}

.testimonial-card__quote {
  font: 400 var(--text-sm)/1.65 var(--font-body);
  color: var(--ink-2);
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 var(--text-xs)/1 var(--font-body);
  color: var(--espresso);
  flex-shrink: 0;
}

.testimonial-card__name {
  font: 600 var(--text-sm)/1 var(--font-body);
  color: var(--ink);
}

.testimonial-card__city {
  font: 400 var(--text-xs)/1 var(--font-body);
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── TESTIMONIAL CARDS — IMAGE FORMAT (9:16) ─────────────── */

.testimonial-card--img {
  padding: 0;
  background: transparent;
  border: none;
  gap: var(--sp-3);
  width: calc(100vw - (var(--page-margin) * 2));
}

@media (min-width: 1024px) {
  .testimonial-card--img { width: auto; }
}

.testimonial-card__img-wrap {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tan-light);
  box-shadow: var(--shadow-sm);
}

.testimonial-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-card--img .testimonial-card__author {
  padding-inline: var(--sp-1);
}

/* ── CAROUSELS ───────────────────────────────────────────── */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--sp-2); /* clip box-shadow */
  padding-inline: var(--page-margin);
  margin-inline: calc(-1 * var(--page-margin));
}

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

/* Dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-fast);
  padding: 0;
}

.carousel__dot.is-active {
  background: var(--forest);
  transform: scale(1.3);
}

/* ── STEP WIZARD (PAX CONFIGURATOR) ──────────────────────── */

.step-bar {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-6);
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
  min-width: 48px;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 var(--text-sm)/1 var(--font-body);
  color: var(--ink-3);
  transition: all var(--dur-base) var(--ease);
}

.step-circle--active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.step-circle--done {
  border-color: var(--tan);
  background: var(--tan-light);
  color: var(--espresso);
}

/* Checkmark for done */
.step-circle--done::before {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l2.8 3 5.2-6' stroke='%232C190E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.step-circle--done { font-size: 0; }

.step-label {
  font: 500 9px/1 var(--font-body);
  color: var(--ink-3);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-label--active { color: var(--forest); }
.step-label--done   { color: var(--ink-2); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
  transition: background var(--dur-slow) var(--ease);
}

.step-connector--done { background: var(--tan); }

/* Option cards (type selection) */
.option-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}

.option-card:hover:not(.option-card--selected) {
  border-color: var(--ink-3);
  background: var(--bg-raised);
}

.option-card--selected {
  border-color: var(--tan);
  background: var(--tan-light);
}

.option-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.option-card--selected .option-card__icon {
  background: rgba(196,168,130,0.2);
  color: var(--tan);
}

.option-card__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.option-card__body { flex: 1; min-width: 0; }

.option-card__title {
  font: 600 var(--text-sm)/1.3 var(--font-body);
  color: var(--ink);
  margin-bottom: 3px;
}

.option-card__sub {
  font: 400 var(--text-xs)/1.4 var(--font-body);
  color: var(--ink-2);
}

.option-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.option-card__price {
  font: 600 var(--text-xl)/1 var(--font-display);
  color: var(--ink);
}

.option-card__price-unit {
  font: 500 11px/1 var(--font-body);
  color: var(--ink-2);
}

/* Radio indicator */
.option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  transition: all var(--dur-fast);
  position: relative;
}

.option-radio--checked {
  border-color: var(--forest);
  background: var(--forest);
}

.option-radio--checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

/* Popular badge on option cards */
.option-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--tan);
  color: var(--espresso);
  font: 700 9px/1 var(--font-body);
  padding: 4px 10px;
  border-radius: 0 var(--radius-md) 0 var(--radius-sm);
  letter-spacing: 0.04em;
}

/* ── SEGMENTED CONTROL ───────────────────────────────────── */

.segmented {
  display: flex;
  background: var(--border-s);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.segmented__btn {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 5px;
  background: transparent;
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.segmented__btn.is-active {
  background: var(--bg-surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ── TAG CHIPS ───────────────────────────────────────────── */

.tag-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--sp-4);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font: 500 var(--text-xs)/1 var(--font-body);
  color: var(--ink-2);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  user-select: none;
}

.tag-chip:hover { border-color: var(--ink-3); color: var(--ink); }

.tag-chip.is-selected {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--forest-tint);
}

/* ── FORMS ───────────────────────────────────────────────── */

.field-group { display: flex; flex-direction: column; gap: var(--sp-2); }

.field-label {
  font: 500 var(--text-sm)/1 var(--font-body);
  color: var(--ink);
}

.field-label--required::after {
  content: ' *';
  color: var(--error);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font: 400 var(--text-base)/1 var(--font-body);  /* 16px prevents iOS zoom */
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field-input { height: 52px; padding: 0 var(--sp-4); }
.field-select { height: 52px; padding: 0 var(--sp-4); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23B0A090' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 36px; }
.field-textarea { padding: var(--sp-4); resize: vertical; min-height: 100px; line-height: 1.6; }

/* Numeric input — mono font for measurements */
.field-input--num {
  font: 400 var(--text-xl)/1 var(--font-mono);
  letter-spacing: 0.02em;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(58,107,82,0.12);
  outline: none;
}

.field-input.is-error,
.field-textarea.is-error { border-color: var(--error); }

.field-hint  { font: 400 var(--text-xs)/1.4 var(--font-body); color: var(--ink-3); }
.field-error { font: 400 var(--text-xs)/1.4 var(--font-body); color: var(--error); }
.field-input::placeholder,
.field-textarea::placeholder { color: var(--ink-3); }

/* ── ACCORDION (FAQ) ─────────────────────────────────────── */

.accordion { display: flex; flex-direction: column; }

.accordion-item {
  border-bottom: 1px solid var(--border-s);
}

.accordion-item:first-child { border-top: 1px solid var(--border-s); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  background: none;
  border: none;
  font: 600 var(--text-sm)/1.4 var(--font-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  gap: var(--sp-4);
}

.accordion-trigger svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-3);
  fill: none;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}

.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-item.is-open .accordion-trigger { color: var(--forest); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}

.accordion-item.is-open .accordion-body { grid-template-rows: 1fr; }

.accordion-body-inner {
  overflow: hidden;
  font: 400 var(--text-sm)/1.7 var(--font-body);
  color: var(--ink-2);
}

.accordion-body-inner p { padding-bottom: var(--sp-5); }

/* ── COOKIE CONSENT ──────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: calc(var(--tab-total) + var(--sp-3));
  left: var(--sp-4);
  right: var(--sp-4);
  z-index: 300;
  background: var(--bg-inv);
  color: var(--ink-inv);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transform: translateY(calc(100% + var(--tab-total) + var(--sp-6)));
  transition: transform var(--dur-slow) var(--ease-spring);
  max-width: 480px;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__title {
  font: 600 var(--text-sm)/1 var(--font-body);
  color: var(--ink-inv);
}

.cookie-banner__text {
  font: 400 var(--text-xs)/1.5 var(--font-body);
  color: var(--ink-inv-2);
}

.cookie-banner__text a { color: var(--tan); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-3);
}

.cookie-btn--accept {
  flex: 1;
  height: 40px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font: 600 var(--text-xs)/1 var(--font-body);
  cursor: pointer;
}

.cookie-btn--decline {
  height: 40px;
  padding: 0 var(--sp-4);
  background: transparent;
  color: var(--ink-inv-2);
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: var(--radius-pill);
  font: 500 var(--text-xs)/1 var(--font-body);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .cookie-banner {
    bottom: var(--sp-5);
    left: auto;
    right: var(--sp-5);
  }
}

/* ── STATS STRIP ─────────────────────────────────────────── */

.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-s);
}

.stat:nth-child(2n)  { border-right: none; }
.stat:nth-child(3),
.stat:nth-child(4)   { border-bottom: none; }

.stat__number {
  font: 600 var(--text-3xl)/1 var(--font-display);
  color: var(--ink);
  display: block;
}

.stat__label {
  font: 500 10px/1 var(--font-body);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
  display: block;
}

@media (min-width: 640px) {
  .stats-strip__inner { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--border-s); }
  .stat:last-child { border-right: none; }
}

/* ── COMPARISON TABLE ────────────────────────────────────── */

.comparison {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.comparison-row {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.comparison-row--featured {
  border-color: var(--forest);
  background: var(--forest-tint);
}

.comparison-row__title {
  font: 600 var(--text-sm)/1 var(--font-body);
  color: var(--ink);
}

.comparison-row__sub {
  font: 400 var(--text-xs)/1 var(--font-body);
  color: var(--ink-3);
  margin-top: 3px;
}

.comparison-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font: 600 11px/1 var(--font-body);
  white-space: nowrap;
}

.comparison-badge--low   { background: var(--forest-tint); color: var(--forest); }
.comparison-badge--mid   { background: var(--tan-light); color: var(--espresso); }
.comparison-badge--high  { background: var(--error-bg); color: var(--error); }

/* ── CONFIGURATOR CARD (PAX) ─────────────────────────────── */

.configurator-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.configurator-card__header {
  margin-bottom: var(--sp-6);
}

.configurator-step-content { display: flex; flex-direction: column; gap: var(--sp-3); }

.configurator-nav {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.configurator-note {
  text-align: center;
  font: 400 var(--text-xs)/1.5 var(--font-body);
  color: var(--ink-3);
  margin-top: var(--sp-3);
}

/* ── LIGHTBOX (galeria zdjęć — np. Realizacje) ───────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(44, 25, 14, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.lightbox__img-wrap {
  position: relative;
  max-width: 88vw;
  max-height: 86vh;
  z-index: 1;
}

.lightbox__img-wrap img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }

.lightbox__close svg,
.lightbox__nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: var(--sp-2); }
  .lightbox__nav--next { right: var(--sp-2); }
  .lightbox__close { top: var(--sp-3); right: var(--sp-3); }
}
