/* ==========================================================================
   iPrintWall — components.css
   Przyciski, karty, galeria, lightbox, suwak przed/po, akordeon,
   formularz, baner cookies, odznaki.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Przyciski
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Główne CTA — gradient odsłaniany od lewej */
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--print-line-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--fg); background: rgba(255, 255, 255, 0.07); }

.btn--light { background: var(--fg); color: #08080A; }
.btn--light:hover { background: #fff; }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { min-height: 60px; padding: 18px 36px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Link tekstowy ze strzałką */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--fg);
  padding-block: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   2. Odznaki i drobne elementy
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.03);
}
.badge--accent {
  border-color: rgba(224, 27, 132, 0.45);
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.badge svg { width: 14px; height: 14px; flex: none; }

.dot-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.8125rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.dot-list li { display: flex; align-items: center; gap: 16px; }
.dot-list li:not(:last-child)::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* Lista z ptaszkami */
.check-list { display: grid; gap: 12px; }
/* Ikona jest pozycjonowana absolutnie, a nie jako komorka gridu.
   Przy gridzie kazdy dodatkowy element w tresci (np. <em>) stawal sie
   osobna komorka i wpadal do 20-pikselowej kolumny ikony, rozbijajac zdanie. */
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(224, 27, 132, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF3D9A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* --------------------------------------------------------------------------
   3. Karty
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              background-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--print-line-h);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--bg-elevated); }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.65; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.02);
  flex: none;
}
.card__icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   4. Galeria realizacji — karuzela
   -------------------------------------------------------------------------- */
.gallery { position: relative; max-width: 1060px; margin-inline: auto; }

.gallery__viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-raise);
  border: 1px solid var(--line);
}
.gallery__track {
  display: flex;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
}
.gallery__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #000;
}
.gallery__btn-zoom {
  display: block;
  width: 100%;
  cursor: zoom-in;
  position: relative;
}
.gallery__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.gallery__btn-zoom:hover .gallery__img { transform: scale(1.035); }

.gallery__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  text-align: left;
  pointer-events: none;
}
.gallery__caption { display: grid; gap: 5px; }
.gallery__caption strong {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.gallery__caption span { font-size: 0.8125rem; color: var(--fg-muted); }
.gallery__zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.gallery__zoom-hint svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

@media (max-width: 600px) {
  .gallery__img { aspect-ratio: 1 / 1; }
  .gallery__zoom-hint { display: none; }
}

/* Sterowanie */
.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.gallery__nav { display: flex; gap: 10px; }
.gallery__arrow {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.gallery__arrow:hover:not(:disabled) { background: var(--accent); border-color: transparent; color: #fff; }
.gallery__arrow:disabled { opacity: 0.32; cursor: not-allowed; }
.gallery__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.gallery__meter { display: flex; align-items: center; gap: 16px; }
.gallery__count {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.gallery__count b { color: var(--fg); font-weight: 700; }
.gallery__dots { display: flex; gap: 7px; }
.gallery__dot {
  width: 26px; height: 3px;
  background: var(--line-strong);
  border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.gallery__dot[aria-current="true"] { background: var(--print-line-h); }
@media (max-width: 520px) {
  .gallery__dots { display: none; }
  .gallery__controls { justify-content: space-between; }
}

/* Pusta galeria / miejsce na zdjęcia */
.gallery__empty {
  display: grid;
  place-items: center;
  gap: 14px;
  aspect-ratio: 16 / 10;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--fg-dim);
}

/* --------------------------------------------------------------------------
   5. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(4, 4, 6, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}
.lightbox__index {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover { background: var(--accent); border-color: transparent; color: #fff; }
.lightbox__close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Pozycjonowanie bezwzględne + margin:auto to jedyny sposób, w który
   procentowa maksymalna wysokość działa niezawodnie we wszystkich przeglądarkach.
   Bez tego wysokie zdjęcia wychodziłyby poza ekran. */
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: min(1180px, calc(100% - 2 * var(--gutter)));
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }

.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px var(--gutter) 26px;
  text-align: center;
}
.lightbox__caption { display: grid; gap: 3px; max-width: 52ch; }
.lightbox__caption strong { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.lightbox__caption span { font-size: 0.8125rem; color: var(--fg-muted); }
.lightbox__arrow {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__arrow:hover { background: var(--accent); border-color: transparent; color: #fff; }
.lightbox__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --------------------------------------------------------------------------
   6. Suwak przed / po
   -------------------------------------------------------------------------- */
.compare {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #000;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* Obie warstwy mają dokładnie ten sam box, więc zdjęcia idealnie się pokrywają.
   Odsłanianie robimy przez clip-path — nie zmienia rozmiaru obrazu. */
.compare__media { position: relative; display: block; }
.compare__media img,
.compare__before img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--pos, center);
  display: block;
  pointer-events: none;
}
@media (min-width: 700px) {
  .compare__media img,
  .compare__before img { aspect-ratio: 16 / 10; }
}

/* Warstwa „przed” leży na wierzchu i jest przycinana od prawej */
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--print-line);
  transform: translateX(-1px);
  will-change: left;
  pointer-events: none;
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.86);
  border: 2px solid #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6);
}
.compare__grip svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 54px; height: 100px; }
.compare__range::-moz-range-thumb { width: 54px; height: 100px; border: 0; background: transparent; }
.compare__range:focus-visible ~ .compare__handle .compare__grip {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.compare__tag {
  position: absolute;
  top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(8, 8, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; color: var(--accent-bright); border-color: rgba(224, 27, 132, 0.5); }

/* --------------------------------------------------------------------------
   7. Akordeon FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-bright); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.faq__icon::before { width: 13px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 13px; }
.faq__item[open] .faq__q { color: var(--accent-bright); }
.faq__item[open] .faq__icon { border-color: rgba(224, 27, 132, 0.5); background: var(--accent-soft); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 4px 26px; max-width: 74ch; }
.faq__a p { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.75; }
.faq__a p + p { margin-top: 12px; }
.faq__item[open] .faq__a { animation: faq-in 0.4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

/* --------------------------------------------------------------------------
   8. Formularz
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; position: relative; }
.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.field__label .req { color: var(--accent-bright); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.field select option { background: var(--bg-card); color: var(--fg); }

.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #FF5A5A; }
.field__error {
  font-size: 0.8125rem;
  color: #FF8080;
  display: none;
  align-items: center;
  gap: 6px;
}
.field.has-error .field__error { display: flex; }

/* Pole pliku */
.filefield input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.filefield__drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  min-height: 76px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.filefield__drop:hover, .filefield input:focus-visible + .filefield__drop { border-color: var(--accent); background: var(--bg-elevated); }
.filefield__drop svg { width: 22px; height: 22px; flex: none; color: var(--accent-bright); stroke: currentColor; fill: none; stroke-width: 1.6; }
.filefield__text { display: grid; gap: 3px; min-width: 0; }
.filefield__text strong { font-size: 0.9375rem; font-weight: 600; }
.filefield__text span { font-size: 0.8125rem; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Zgoda */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-card);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.consent span { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }
.consent a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.field.has-error .consent input[type="checkbox"] { border-color: #FF5A5A; }

/* Znacznik potwierdzenia — używany na stronie „Dziękujemy” */
.status-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(224, 27, 132, 0.5);
  color: var(--accent-bright);
}
.status-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; }

.form.is-sending { opacity: 0.55; pointer-events: none; }

/* --------------------------------------------------------------------------
   9. Baner cookies
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: var(--z-cookie);
  width: min(760px, calc(100vw - 2 * clamp(12px, 3vw, 28px)));
  padding: clamp(20px, 2.6vw, 28px);
  background: rgba(14, 14, 18, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}
.cookie.is-visible { transform: translate(-50%, 0); opacity: 1; }
.cookie::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--print-line-h);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.cookie h2 { font-size: 1.0625rem; margin-bottom: 8px; }
.cookie p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; }
.cookie p a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie__actions .btn { flex: 1 1 auto; min-width: 150px; }
@media (max-width: 480px) { .cookie__actions .btn { flex: 1 1 100%; } }

/* Wariant pionowy suwaka przed/po.
   Zdjęcia z telefonu są w formacie 3:4 — domyślny kadr 16:10 obcinał
   przedmiot po bokach. Tutaj widać go w całości. */
.compare--portrait { max-width: 600px; }
.compare--portrait .compare__media img,
.compare--portrait .compare__before img { aspect-ratio: 3 / 4; }
@media (min-width: 700px) {
  .compare--portrait .compare__media img,
  .compare--portrait .compare__before img { aspect-ratio: 3 / 4; }
}

/* --------------------------------------------------------------------------
   Przełącznik scen w suwaku przed/po
   -------------------------------------------------------------------------- */
.compare-switch {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raise);
}

.compare-switch__btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.compare-switch__btn:hover { color: var(--fg); }
.compare-switch__btn.is-active {
  color: #fff;
  background: var(--accent);
}
.compare-switch__btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.compare__caption {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fg-dim);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Pasek techniczny w stopce: licznik odwiedzin + podpis autora
   -------------------------------------------------------------------------- */
.footer__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  min-height: 20px;
}

/* Licznik: celowo drobny — informacja, nie element kompozycji */
.visit-counter {
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
.visit-counter[hidden] { display: none; }

/* Podpis autora. Tekst nie jest renderowany — niesie go atrybut title,
   więc pojawia się dopiero w dymku, a czytniki ekranu czytają aria-label.
   Punkt musi mieć jakąś powierzchnię, inaczej nie da się na niego najechać. */
.site-credit {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: 0.35;
  cursor: help;
  transition: opacity 0.2s var(--ease);
}
.site-credit:hover,
.site-credit:focus-visible { opacity: 0.75; }
