/* =========================================================================
   FLISNOW — style
   Paleta i typografia jak w pierwotnej wersji. Warstwa detali (ruch,
   pojawianie się, delikatne 3D) jest dołożona ostrożnie: sam CSS + odrobina
   JavaScriptu, z pełnym poszanowaniem ustawienia „ogranicz animacje".
   ========================================================================= */

:root {
  --color-bg: #f5f3ee;
  --color-text: #2b2b2b;
  --color-text-muted: #6b6860;
  --color-accent: #c0392b;
  --color-surface: #e5e2d8;
  --color-hint: #9a978d;
  --color-success: #4f7a5c;
  --color-info: #4a6c82;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --page-max: 1100px;
  --gap: 32px;

  /* wspólne krzywe wygładzania animacji */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
.hero__title {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Płynne przejście między stronami tam, gdzie przeglądarka to wspiera. */
@view-transition {
  navigation: auto;
}

/* Wyłącz ruch, gdy użytkownik prosi o to w ustawieniach systemu. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Nagłówek --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    padding 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.site-header.is-scrolled {
  padding-block: 12px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text) 12%, transparent);
}

/* Strona główna: nagłówek "pływa" przezroczyście nad zdjęciem hero, dopóki
   ono jest na ekranie (klasa is-over-hero z main.js). Na każdej innej
   stronie .has-photo-hero nigdy nie trafia na <body>, więc nic się nie zmienia. */
body.has-photo-hero .site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body.has-photo-hero .site-header.is-over-hero .site-header__wordmark,
body.has-photo-hero .site-header.is-over-hero .site-nav a {
  color: var(--color-bg);
}

body.has-photo-hero .site-header.is-over-hero .site-header__mark {
  display: none;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-header__mark {
  height: 40px;
  width: auto;
  transition: transform 0.4s var(--ease);
}

.site-header__logo:hover .site-header__mark {
  transform: translateY(-1px) rotate(-2deg);
}

.site-header__wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-left: 32px;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* --- Sekcja powitalna --- */

.hero {
  position: relative;
  --hero-accent: #e8896f;
}

/* Nagłówek zostaje "sticky" (zajmuje miejsce w normalnym układzie) na każdej
   stronie — tu podciągamy hero pod niego, żeby zdjęcie zaczynało się na
   samej górze, a nagłówek "pływał" nad nim (patrz --header-h w main.js;
   84px to bezpieczny domyślny wymiar nagłówka, gdy JavaScript jest wyłączony). */
body.has-photo-hero .hero {
  margin-top: calc(-1 * var(--header-h, 84px));
}

/* Scena hero — na czas przewijania „przykleja się" do ekranu, żeby animacja
   (rozmycie tekstu, przybliżenie zdjęcia, wejście napisu) grała w kadrze. */
.hero__stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Zdjęcie hero (snowboardzista + chmura pyłu) jako tło, tekst zostaje czytelny
   dzięki kremowej poświacie u góry. Przy przewijaniu delikatnie się przybliża. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Ciemne tło pod zdjęciami — bez tego podczas przenikania między slajdami
     przebija jasne, kremowe tło strony i cały kadr na chwilę się "wypłukuje". */
  background-color: #0a0908;
}

/* Warstwa, która faktycznie się skaluje przy scrollu (hero-pullback) — osobno
   od .hero__media, żeby przyciemnienie (::after) zawsze dokładnie pokrywało
   kadr, niezależnie od chwilowej skali zdjęć pod spodem. */
.hero__media-scale {
  position: absolute;
  inset: 0;
}

/* Cztery zdjęcia nałożone na siebie, przełączają się co ~3s (czysty CSS,
   bez JS — działa też bez włączonego JavaScriptu). Pełny cykl: 12s / 4
   slajdy = 25% na slajd. */
.hero__slide {
  position: absolute;
  inset: 0;
  animation: hero-cycle-1 12s ease-in-out infinite;
}

.hero__slide--2 {
  animation-name: hero-cycle-2;
}

.hero__slide--3 {
  animation-name: hero-cycle-3;
}

.hero__slide--4 {
  animation-name: hero-cycle-4;
}

/* Każde zdjęcie zaczyna przenikać w drugie, zanim to pierwsze zniknie do
   końca — okna przenikania (np. 20.8%–25%) muszą się dokładnie pokrywać
   między sąsiednimi slajdami, inaczej na styku robi się pusto. Slajd 1
   dodatkowo "domyka" pętlę (100% = 0%), bo jest widoczny od razu na starcie. */
@keyframes hero-cycle-1 {
  0%,
  20.8% {
    opacity: 1;
  }
  25%,
  95.8% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-cycle-2 {
  0%,
  20.8% {
    opacity: 0;
  }
  25%,
  45.8% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-cycle-3 {
  0%,
  45.8% {
    opacity: 0;
  }
  50%,
  70.8% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-cycle-4 {
  0%,
  70.8% {
    opacity: 0;
  }
  75%,
  95.8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
    opacity: 0;
  }
  .hero__slide:first-child {
    opacity: 1;
  }
}

/* Przyciemnienie góry i dołu zdjęcia — nagłówek i tekst zostają czytelne,
   środek kadru (jeździec, chmura) zostaje żywy i nasycony. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 9, 8, 0.3) 0%,
    rgba(10, 9, 8, 0.06) 30%,
    rgba(10, 9, 8, 0.6) 78%,
    rgba(10, 9, 8, 1) 100%
  );
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}

.hero__backdrop--2 {
  object-position: 42% 40%;
}

.hero__backdrop--3 {
  object-position: 40% 35%;
}

.hero__backdrop--4 {
  object-position: 38% 42%;
}

/* Na ekranach pionowych przychodzą osobne kadry 9:16 (patrz <source> w home.html)
   z riderem już na środku — wystarczy wyśrodkować. */
@media (max-aspect-ratio: 3/4) {
  .hero__slide .hero__backdrop {
    object-position: 50% 40%;
  }
}

/* Przewijasz w dół → tekst powitalny się rozmywa i znika, zdjęcie
   snowboardzisty przybliża się i nabiera mocy. Bez wsparcia dla scroll()
   lub przy prefers-reduced-motion hero po prostu stoi w miejscu. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Dodatkowa wysokość = „droga" przewijania, na której gra animacja.
       Scena zostaje przyklejona do ekranu przez pierwsze 80vh przewijania,
       potem odkleja się i wchodzi sekcja „Kolekcja". */
    .hero {
      height: 180vh;
    }

    .hero__stage {
      position: sticky;
      top: 0;
      min-height: 0;
      height: 100vh;
      height: 100svh;
    }

    .hero__content {
      animation: hero-dissolve linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }

    @keyframes hero-dissolve {
      to {
        filter: blur(14px);
        opacity: 0;
        transform: translateY(-26px) scale(0.96);
      }
    }

    /* Delikatny "Ken Burns" — zdjęcia są już pełnoekranowe od startu,
       więc tylko cichutko dojeżdżają do naturalnej skali, wszystkie trzy
       naraz (skaluje się wspólna warstwa .hero__media-scale, nie
       pojedyncze zdjęcie — inaczej przełączanie kadrów by "skakało"). */
    .hero__media-scale {
      animation: hero-pullback linear both;
      animation-timeline: scroll(root);
      animation-range: 0 130vh;
    }

    @keyframes hero-pullback {
      from {
        scale: 1.12;
      }
      to {
        scale: 1;
      }
    }

  }
}

/* Miękkie zejście sceny powitalnej w „Kolekcję". Zdjęcie samo w sobie ma
   teksturę (pył, ziarno, jaśniejsze i ciemniejsze plamy) — zwykły
   dwustopniowy gradient prosto w krem mieszał tę teksturę z tłem strony
   i wychodziła "brudna" szaro-brązowa smuga. Zamiast tego: najpierw w pełni
   chowamy zdjęcie pod litą, ciemną barwą (bez przezroczystości — żadna
   tekstura nie prześwituje), dopiero z tej jednolitej czerni schodzimy
   w krem. Efekt: czysta czerń, potem czysty krem, bez mieszania kolorów
   zdjęcia po drodze. */
.hero__stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(260px, 38vh, 460px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #0a0908 55%,
    #0a0908 72%,
    var(--color-bg) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(56px, 10vh, 110px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 clamp(24px, 5vw, 56px);
  text-align: left;
}

.hero__copy {
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.hero__title {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  margin-bottom: 0;
  color: var(--color-bg);
}

.hero__lead {
  margin: 12px 0 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--color-bg) 78%, transparent);
  max-width: 420px;
}

.hero__cta {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.hero__cta:hover {
  background-color: var(--hero-accent);
  color: var(--color-bg);
}

.hero__scroll-cue {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 44px);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-bg) 80%, transparent);
  text-decoration: none;
}

.hero__scroll-cue span:not(.hero__scroll-line) {
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: color-mix(in srgb, var(--color-bg) 35%, transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-block-start: -42px;
  left: 0;
  width: 1px;
  height: 42px;
  background: var(--color-bg);
  animation: scroll-travel 1.9s var(--ease) infinite;
}

@keyframes scroll-travel {
  to {
    inset-block-start: 42px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__lead {
    animation: rise 0.8s var(--ease) 0.12s both;
  }
  .hero__cta {
    animation: rise 0.8s var(--ease) 0.24s both;
  }
  .hero__scroll-cue {
    animation: fade-in 1s ease 0.9s both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
}

/* --- Przycisk --- */

.btn {
  display: inline-block;
  background-color: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  padding: 14px 32px;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background-color: var(--color-text);
  transform: none;
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-hint);
}

.btn--ghost:hover {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Odstęp między przyciskiem płatności a resztą na stronie statusu/podziękowania. */
.thanks form {
  margin: 20px 0;
}

.autopay__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Instrukcja przelewu --- */

.bank-transfer {
  margin: 24px 0;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  border-left: 3px solid var(--color-text);
}

.bank-transfer h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.bank-transfer__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 14px;
}

.bank-transfer__details dt {
  color: var(--color-text-muted);
}

.bank-transfer__account {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.bank-transfer__note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Siatka produktów --- */

.products {
  padding: 20px 48px 100px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.products h1,
.products h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.products__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
}

.products__soon {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 0 12px;
}

.products__soon-title {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text);
}

.products__soon-note {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.product-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--lift));
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    --lift: -6px;
    box-shadow: 0 22px 45px -24px color-mix(in srgb, var(--color-text) 40%, transparent);
  }
}

.product-card__image {
  background-color: var(--color-surface);
  height: 280px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__image > picture > img {
  transform: scale(1.05);
}

.product-card__name {
  font-size: 16px;
  margin-bottom: 6px;
}

.price {
  color: var(--color-text-muted);
  font-weight: 700;
}

/* --- Strona produktu --- */

.product {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product__image {
  width: 100%;
  height: auto; /* proporcje z atrybutów width/height (4:5), nie sztywne 2000 px */
  background-color: var(--color-surface);
}

.product__name {
  font-size: 32px;
  margin-bottom: 8px;
}

.product__price {
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}

.product__description {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Rozwijane sekcje na stronie produktu (opis, specyfikacja, rozmiary) --- */

.product-details,
.size-guide {
  margin-bottom: 24px;
}

.details-toggle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}

.details-toggle::marker {
  color: var(--color-hint);
}

.product-details .product__description {
  margin-top: 16px;
  margin-bottom: 0;
}

.product-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 14px;
}

.product-specs dt {
  color: var(--color-text-muted);
}

.size-guide__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13px;
}

.size-guide__table th,
.size-guide__table td {
  padding: 8px 4px;
  text-align: right;
  border-bottom: 1px solid var(--color-surface);
  font-variant-numeric: tabular-nums;
}

.size-guide__table th:first-child,
.size-guide__table td:first-child {
  text-align: left;
}

.size-guide__table thead th {
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.size-guide__table tbody th {
  font-weight: 400;
  color: var(--color-text-muted);
}

.size-guide__note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-hint);
}

/* --- Wybór rozmiaru --- */

.size-picker {
  border: none;
  margin-bottom: 24px;
}

.size-picker legend {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 10px 14px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--color-hint);
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.size-option:hover {
  border-color: var(--color-text);
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option:has(input:checked) {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: var(--color-bg);
}

.size-option--disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.size-option--disabled:hover {
  border-color: var(--color-hint);
}

.size-picker__empty {
  color: var(--color-text-muted);
}

/* --- Podstrona „O nas" (strona założyciela) --- */

.about {
  max-width: 940px;
  margin: 0 auto;
  padding: 88px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.about__lead {
  max-width: 660px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.about__figure {
  margin: 0;
}

.about__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.about__figure--feature {
  align-self: center;
  width: 100%;
  max-width: 580px;
}

.about__figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.about__split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.about__split--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.about__text {
  max-width: 44ch;
}

.about__eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about__name {
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--color-text);
}

.about__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.about__body strong {
  color: var(--color-text);
  font-weight: 700;
}

.about__sign {
  align-self: center;
  padding-top: 28px;
  border-top: 1px solid var(--color-hint);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .about {
    gap: 56px;
    padding-top: 56px;
  }

  .about__split,
  .about__split--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about__split--reverse .about__text {
    order: -1;
  }
}

/* Zdjęcie produktu (catalog/_product_photo.html): <picture> nie tworzy własnego pudełka,
   więc <img> w środku wypełnia ramkę tak, jakby był jej bezpośrednim dzieckiem. */
.product-photo {
  display: contents;
}

/* --- Prezentacja produktu na stronie głównej (reużywa .about__split) --- */

.spotlight__media {
  background-color: var(--color-surface);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight__media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight__name {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.spotlight__price {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.spotlight__features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.spotlight__features li {
  position: relative;
  padding-left: 20px;
}

.spotlight__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

/* --- „Zdjęcia wkrótce” (catalog/_photos_soon.html) ---
   Zanim są prawdziwe zdjęcia produktu: ciemna karta z sylwetką Mnicha,
   pochylająca się za kursorem jak karty w sklepie (data-tilt w main.js). */
.spotlight__media:has(.photos-soon),
.product-card__image:has(.photos-soon) {
  background: none;
}

.product__gallery .photos-soon {
  aspect-ratio: 4 / 5;
}

.photos-soon {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  color: var(--color-bg);
  background:
    radial-gradient(120% 70% at 50% 0%, #3b3935 0%, transparent 62%),
    #1c1b19;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .photos-soon[data-tilt]:hover {
    box-shadow: 0 32px 60px -30px rgb(0 0 0 / 0.5);
  }
}

.photos-soon__mark {
  width: 104px;
  height: auto;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.photos-soon__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.photos-soon__note {
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-bg) 62%, transparent);
}

/* Mała karta w siatce sklepu — cała karta produktu już się pochyla. */
.photos-soon--compact {
  gap: 10px;
  padding: 20px;
  transform: none;
}

.photos-soon--compact .photos-soon__mark {
  width: 64px;
  margin-bottom: 4px;
}

.spotlight__more {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease);
}

.spotlight__more:hover {
  color: var(--color-accent);
}

/* --- Zapis na premierę (strona główna i strona produktu) --- */

.launch-signup {
  max-width: 440px;
}

.product__info .launch-signup {
  margin-top: 28px;
}

.launch-signup__title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
}

.launch-signup__lead {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.launch-signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launch-signup__row input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-hint);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}

.launch-signup__row input:focus {
  border-color: var(--color-text);
}

/* Gdy na wąskim ekranie przycisk zawinie się pod pole, rozciąga się na całą szerokość. */
.launch-signup__row .btn {
  flex: 1 0 auto;
  padding-inline: 22px;
}

.launch-signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.launch-signup__consent input {
  flex: none;
  margin-top: 3px;
  accent-color: var(--color-text);
}

.launch-signup__consent a {
  color: inherit;
  text-underline-offset: 2px;
}

.launch-signup__consent a:hover {
  color: var(--color-accent);
}

/* Pułapka na boty — poza ekranem, ale nie display:none (to łatwo ominąć). */
.launch-signup__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.launch-signup__error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-accent);
}

.launch-signup__done {
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  border-left: 3px solid var(--color-success);
}

.launch-signup__done strong {
  color: var(--color-text);
}

/* Fokus trafia tu tylko po to, żeby czytnik ekranu przeczytał potwierdzenie. */
.launch-signup__done:focus {
  outline: none;
}

.launch-signup:not(.is-done) .launch-signup__done,
.launch-signup.is-done .launch-signup__form {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .launch-signup.is-done .launch-signup__done {
    animation: launch-signup-done 0.5s var(--ease) both;
  }

  @keyframes launch-signup-done {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* --- „Sprawdzone w górach" na stronie głównej --- */

.proof {
  padding: 96px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.proof__intro,
.proof__stats {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.proof__statement {
  max-width: 26ch;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-wrap: balance;
}

.proof__statement-quiet {
  color: var(--color-text-muted);
}

/* Zdjęcie od krawędzi do krawędzi ekranu. */
.proof__media {
  margin: 0;
  height: clamp(340px, 68vh, 720px);
  overflow: hidden;
  background-color: #1c1b19;
}

.proof__media picture {
  display: block;
  height: 100%;
}

.proof__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
}

/* Przy przewijaniu kadr rozsuwa się na pełną szerokość, a zdjęcie w środku
   płynie wolniej niż strona (paralaksa). Czysty CSS; bez wsparcia dla
   view() albo przy ograniczonym ruchu zdjęcie po prostu stoi. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .proof__media {
      view-timeline: --proof-media block;
      animation: proof-open linear both;
      animation-timeline: --proof-media;
      animation-range: entry 0% cover 50%;
    }

    .proof__media img {
      scale: 1.14;
      animation: proof-drift linear both;
      animation-timeline: --proof-media;
    }

    @keyframes proof-open {
      from {
        clip-path: inset(0 8%);
      }
      to {
        clip-path: inset(0 0);
      }
    }

    @keyframes proof-drift {
      from {
        translate: 0 -5%;
      }
      to {
        translate: 0 5%;
      }
    }
  }
}

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

/* dt jest pierwszy w HTML (czytniki ekranu czytają „Wodoodporność 15 000 mm"),
   ale na ekranie duża liczba stoi nad podpisem. */
.proof__stat {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 22px;
}

.proof__stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: color-mix(in srgb, var(--color-text) 18%, transparent);
  transform-origin: left;
}

.proof__stat dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.proof__stat dd {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.proof__stat small {
  margin-left: 0.2em;
  font-size: 0.34em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* Szerokość liczby jest zablokowana na czas odliczania (main.js),
   żeby „mm" obok nie skakało. */
.proof__stat [data-count-to] {
  display: inline-block;
  text-align: right;
}

/* Linia nad każdą liczbą rysuje się od lewej, kiedy liczba się pojawia. */
.js .proof__stat::before {
  transform: scaleX(0);
  transition: transform 1s var(--ease) 0.15s;
}

.js .proof__stat.is-visible::before {
  transform: none;
}

.proof__stat:nth-child(2) {
  transition-delay: 0.1s;
}

.proof__stat:nth-child(2)::before {
  transition-delay: 0.25s;
}

.proof__stat:nth-child(3) {
  transition-delay: 0.2s;
}

.proof__stat:nth-child(3)::before {
  transition-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .js .proof__stat::before {
    transform: none;
  }
}

@media (max-width: 760px) {
  .proof {
    padding-top: 64px;
    gap: 40px;
  }

  .proof__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .proof__stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding-block: 18px;
  }

  .proof__stat dd {
    font-size: 34px;
  }
}

/* --- Strony prawne i FAQ: wąska kolumna tekstu --- */

.legal,
.faq {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal h1,
.faq h1 {
  font-size: 36px;
  margin-bottom: 24px;
}

.legal p {
  margin-bottom: 16px;
}

.legal h2 {
  font-size: 18px;
  color: var(--color-text);
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal ul,
.legal ol {
  margin: 0 0 16px 20px;
}

.legal a {
  color: var(--color-text);
}

.legal a:hover {
  color: var(--color-accent);
}

.legal code {
  background: var(--color-surface);
  padding: 1px 5px;
  font-size: 13px;
}

.legal__draft {
  border-left: 3px solid var(--color-accent);
  padding: 12px 16px;
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  margin-bottom: 24px;
}

.legal__form {
  white-space: pre-wrap;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  background: color-mix(in srgb, var(--color-surface) 45%, transparent);
  padding: 16px;
  overflow-x: auto;
}

/* --- Strony błędów (404, formularz wygasł) --- */

.error-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 72px 24px 120px;
  text-align: center;
}

.error-page__code {
  font-size: clamp(110px, 26vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--color-surface);
  user-select: none;
}

.error-page h1 {
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 38px);
}

.error-page__lead {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.error-page__lead a,
.error-page__links a {
  color: var(--color-text);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.error-page__links {
  margin-top: 28px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* --- Kontakt --- */

.contact {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.contact h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact__lead {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 520px;
}

.contact__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-hint);
}

.contact__card {
  margin-top: 40px;
  padding: 40px;
  background: var(--color-text);
  color: var(--color-bg);
}

.contact__card .contact__label {
  color: color-mix(in srgb, var(--color-bg) 55%, transparent);
}

.contact__email {
  display: inline-block;
  margin-top: 10px;
  font-size: clamp(26px, 5.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact__email:hover {
  color: color-mix(in srgb, var(--color-bg) 70%, var(--color-accent));
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Na ciemnej karcie przyciski odwrócone: jasny główny, obrysowany drugi. */
.contact__card .btn {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.contact__card .btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* .btn ustawia display, więc atrybut hidden sam by go nie schował. */
.contact__actions .btn[hidden] {
  display: none;
}

.contact__card .btn--ghost {
  background-color: transparent;
  color: var(--color-bg);
  border-color: color-mix(in srgb, var(--color-bg) 45%, transparent);
}

.contact__card .btn--ghost:hover {
  background-color: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.contact__hint {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-bg) 65%, transparent);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--color-surface);
  border: 1px solid var(--color-surface);
}

.contact__tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.contact__tile:hover {
  background: color-mix(in srgb, var(--color-surface) 45%, var(--color-bg));
}

.contact__tile-main {
  font-size: 19px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contact__tile:hover .contact__tile-main {
  color: var(--color-accent);
}

.contact__tile-note {
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact__legal {
  margin-top: 32px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact__legal a {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .contact__card {
    padding: 28px 22px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__tile {
    padding: 22px;
  }
}

/* --- FAQ: pytania rozwijane jak akordeon --- */

.faq {
  /* pozwala animować wysokość do „auto” przy otwieraniu odpowiedzi */
  interpolate-size: allow-keywords;
}

.faq__lead {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.faq__group {
  margin-top: 56px;
}

.faq__group h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-hint);
  margin-bottom: 8px;
}

.faq__item {
  border-bottom: 1px solid var(--color-surface);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--color-accent);
}

/* plus z dwóch kresek; przy otwarciu obraca się w krzyżyk */
.faq__question::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: 22px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq__answer p + p {
  margin-top: 10px;
}

.faq__answer a,
.faq__contact a {
  color: var(--color-text);
}

.faq__answer a:hover,
.faq__contact a:hover {
  color: var(--color-accent);
}

.faq__contact {
  margin-top: 56px;
  padding: 28px;
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq__contact strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* Płynne rozwijanie tam, gdzie przeglądarka potrafi animować zawartość <details>. */
@supports selector(::details-content) {
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      block-size 0.4s var(--ease),
      opacity 0.3s ease,
      content-visibility 0.4s allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
    opacity: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .faq__item::details-content {
      transition: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__question::after {
    transition: none;
  }
}

/* --- Stopka --- */

.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--color-surface);
  color: var(--color-hint);
  font-size: 13px;
}

.footer-links {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.social-links {
  margin-top: 12px;
}

.social-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s var(--ease);
}

.social-links a:hover {
  color: var(--color-accent);
}

/* --- Komunikaty --- */

.messages {
  max-width: var(--page-max);
  margin: 16px auto 0;
  padding: 0 48px;
}

.message {
  padding: 12px 16px;
  font-size: 14px;
  border-left: 3px solid var(--color-hint);
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
}

.message + .message {
  margin-top: 8px;
}

.message--success {
  border-left-color: var(--color-text);
}

.message--error {
  border-left-color: var(--color-accent);
}

/* --- Informacja o cookies --- */

.cookie-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-surface);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--color-text) 14%, transparent);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* Klasa .cookie-note nadpisuje domyślne [hidden] przeglądarki — trzeba jawnie. */
.cookie-note[hidden] {
  display: none;
}

@media (min-width: 620px) {
  /* na szerszym ekranie krótki „toast" w rogu, nie pełna belka */
  .cookie-note {
    right: auto;
    max-width: 440px;
  }
}

.cookie-note__text {
  margin: 0;
}

.cookie-note__text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-note__text a:hover {
  color: var(--color-accent);
}

.cookie-note__ok {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 16px;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.cookie-note__ok:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.cookie-note__ok:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-note {
    animation: cookie-note-in 0.4s var(--ease) both;
  }

  @keyframes cookie-note-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}

@media (max-width: 540px) {
  .cookie-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-note__ok {
    align-self: stretch;
  }
}

/* --- Licznik koszyka w nawigacji --- */

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 9px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 11px;
  line-height: 1;
}

/* --- Koszyk --- */

.cart {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.cart h1 {
  font-size: 32px;
  margin-bottom: 32px;
}

.cart__empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
}

.cart__empty-title {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 8px;
}

.cart__empty-note {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.cart__items {
  list-style: none;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-surface);
  transition: background-color 0.25s var(--ease);
}

.cart-line__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .cart-line:hover {
    background-color: color-mix(in srgb, var(--color-surface) 55%, transparent);
  }
}

.cart-line__thumb {
  width: 64px;
  height: 80px;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__placeholder {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-hint);
}

.cart-line__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-line__name {
  font-weight: 700;
  text-decoration: none;
}

.cart-line__name:hover {
  color: var(--color-accent);
}

.cart-line__meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-line__qty input {
  width: 56px;
  padding: 6px 8px;
  font: inherit;
  border: 1px solid var(--color-hint);
  background: var(--color-bg);
}

.cart-line__total {
  font-weight: 700;
  white-space: nowrap;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-text);
  cursor: pointer;
}

.link-button:hover {
  color: var(--color-accent);
}

.link-button--muted {
  color: var(--color-text-muted);
  font-weight: 400;
}

.cart__summary {
  margin-top: 32px;
  text-align: right;
}

.cart__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-text);
}

.cart__note {
  margin: 16px 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Kasa --- */

.checkout {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.checkout h1 {
  font-size: 32px;
  margin-bottom: 32px;
}

.checkout__steps {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-bottom: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-hint);
}

.checkout__step {
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.checkout__step:not(:last-child)::after {
  content: "—";
  margin-left: 8px;
  color: var(--color-hint);
  font-weight: 400;
}

.checkout__step--done {
  color: var(--color-text-muted);
}

.checkout__step--active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.checkout__section {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.checkout__section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.checkout__section-optional {
  color: var(--color-hint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.checkout__row-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--color-hint);
  background: var(--color-bg);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.field--checkbox {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.field--checkbox label {
  order: 2;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 0;
}

.field--checkbox input {
  width: auto;
  flex: none;
}

.field__help {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.field__error,
.form-errors {
  font-size: 13px;
  color: var(--color-accent);
  margin-top: 4px;
}

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

.checkout__summary {
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  padding: 24px;
}

.checkout__summary h2 {
  font-size: 16px;
  margin-bottom: 16px;
}

.checkout__items {
  list-style: none;
  margin-bottom: 16px;
}

.checkout__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  color: var(--color-text-muted);
}

.checkout__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.checkout__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-text);
  font-size: 17px;
}

.checkout__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* --- Strona „dziękujemy" --- */

.thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.thanks h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.thanks p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.thanks__ref {
  font-size: 16px;
  color: var(--color-text);
}

.thanks__intro {
  text-align: center;
  margin-bottom: 8px;
}

.thanks__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border: 1px solid var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks__icon::after {
  content: "";
  width: 20px;
  height: 11px;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg) translate(1px, -2px);
}

.thanks__actions {
  text-align: center;
  margin-top: 8px;
}

/* Etykieta statusu zamówienia — kwadratowy znacznik zamiast kropki,
   spójny z kwadratowymi placeholderami zdjęć użytymi gdzie indziej. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: currentColor;
}

.status-badge--pending {
  color: var(--color-hint);
}

.status-badge--success {
  color: var(--color-success);
}

.status-badge--info {
  color: var(--color-info);
}

.status-badge--cancelled {
  color: var(--color-accent);
}

.thanks__summary {
  margin: 32px 0;
  padding: 24px;
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
}

.thanks__summary h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.thanks__summary ul {
  list-style: none;
  margin-bottom: 12px;
}

.thanks__summary li {
  font-size: 14px;
  padding: 4px 0;
  color: var(--color-text-muted);
}

.thanks__summary p {
  margin-bottom: 4px;
}

/* --- Narzędziowe --- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Pojawianie się przy przewijaniu --- */

/* Ukrywamy tylko, gdy JavaScript działa (klasa .js) — inaczej treść jest widoczna. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Wariant "pop" — zdjęcie produktu wyskakuje z lekkim obrotem i opóźnieniem
   względem tekstu obok, zamiast płynąć z dołu jak reszta sekcji. */
.js [data-reveal="pop"] {
  transform: scale(0.82) rotate(-3deg);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: 0.15s;
}

.js [data-reveal="pop"].is-visible {
  transform: none;
}

.product-grid [data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}
.product-grid [data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}
.product-grid [data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}
.product-grid [data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}

.cart__items [data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}
.cart__items [data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}
.cart__items [data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}
.cart__items [data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}

.checkout__form [data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}
.checkout__form [data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Logowanie dwuskładnikowe (2FA) --- */

/* Na produkcji panel administracyjny chroni drugi składnik logowania
   (django-two-factor-auth). Jego strony dziedziczą layout FLISNOW przez
   templates/two_factor/_base.html — tutaj dostają skromny, spójny wygląd.
   Markup pochodzi z biblioteki: formularz kreatora renderuje się jako tabela. */

.page-auth main {
  max-width: 460px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}

.page-auth h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.page-auth p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.page-auth form {
  margin-top: 24px;
}

.page-auth table {
  width: 100%;
  margin-bottom: 20px;
}

.page-auth th {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-auth td {
  display: block;
  margin-bottom: 16px;
}

.page-auth input[type="text"],
.page-auth input[type="password"],
.page-auth input[type="number"],
.page-auth input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--color-hint);
  background: var(--color-bg);
}

.page-auth input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.page-auth .btn {
  margin: 4px 12px 4px 0;
}

/* Linki „Anuluj" / „Wróć do ustawień" — zwykłe odnośniki, nie przyciski. */
.page-auth .btn-link,
.page-auth .btn-link:hover {
  background: none;
  padding: 14px 0;
  color: var(--color-text-muted);
  text-decoration: underline;
  transform: none;
}

.page-auth .btn-link:hover {
  color: var(--color-accent);
}

.page-auth img[alt="QR Code"] {
  margin: 8px 0 16px;
  padding: 12px;
  background: #fff;
}

/* Kody zapasowe do wydrukowania. */
.page-auth ul {
  margin: 0 0 16px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 1.9;
}

.page-auth .helptext {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.page-auth .errorlist {
  margin: 4px 0 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-accent);
}

/* --- Telefon --- */

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }

  .site-nav a {
    margin: 0 10px;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero__scroll-cue {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 24px 80px;
  }

  .messages {
    padding: 0 24px;
  }

  .cart-line {
    grid-template-columns: 64px 1fr;
    row-gap: 12px;
  }

  .cart-line__info {
    grid-column: 2;
  }

  .cart-line__actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .checkout__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
