/* =========================================================================
   FLISNOW: style
   Ciemny wygląd z projektu z Claude Design (październik 2026): Archivo na duże
   napisy, Geist na tekst, jeden pomarańczowy akcent na przyciski akcji.
   Ruch jest krótki i oszczędny, a przy „ogranicz animacje” zostają same
   pojawienia bez przesunięć.
   ========================================================================= */

/* --- Czcionki (pliki w static/fonts, licencja SIL OFL) ---
   Każda w dwóch częściach: podstawowe litery i „latin-ext” z polskimi znakami.
   Przeglądarka pobiera drugą część dopiero, gdy na stronie są polskie znaki (ą, ć, ę i reszta). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.ff31b6eb2ec0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.3e06ca82b9d9.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin.f4634c3bc1fa.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.49215a3bccae.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* kolory */
  --ink: #0d0e0f; /* tło */
  --ink-2: #141618; /* tło tabeli */
  --ink-3: #17191b; /* tło „Zdjęcia wkrótce” */
  --snow: #f2f0ea; /* tekst, jasna sekcja */
  --text-2: #d2d3cf; /* tekst akapitów */
  --text-3: #bdbfba; /* drobny tekst na ciemnym */
  --dim: #a6a8a4; /* tekst drugorzędny */
  --placeholder: #8c8e8a;
  --on-snow-2: #2f312f; /* tekst akapitów na jasnym */
  --line: rgb(242 240 234 / 0.14);
  --line-strong: rgb(242 240 234 / 0.45);
  --line-on-snow: rgb(13 14 15 / 0.18);
  --sig: #ff5c1f; /* akcent: tylko przyciski akcji */
  --err: #ff8a5c;
  --ok: #8fc29b;
  --info: #9cc0d8;
  --shadow: rgb(0 0 0 / 0.45);

  /* Nazwy z poprzedniej wersji stylów. Używają ich strony bez osobnego projektu
     (FAQ, regulaminy, koszyk, kasa i inne), więc dostają kolory nowego wyglądu. */
  --color-bg: var(--ink);
  --color-text: var(--snow);
  --color-text-muted: var(--dim);
  --color-accent: var(--sig);
  --color-surface: #24272a;
  --color-hint: var(--placeholder);
  --color-success: var(--ok);
  --color-info: var(--info);

  /* czcionki i 4 rozmiary napisów */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --fs-xl: clamp(48px, min(16.5vw, 17svh), 220px); /* hero i licznik */
  --fs-h2: clamp(30px, 5.6vw, 88px); /* nagłówki sekcji */
  --fs-h3: clamp(28px, 2.2vw, 32px); /* małe nagłówki, pozycje list */
  --fs-body: clamp(17px, 1.3vw, 19px);
  --fs-small: 14px; /* drobny druk: zgoda, cookies, tabela na telefonie */

  /* układ i ruch */
  --gutter: clamp(16px, 4vw, 48px);
  --page-max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ck-space: 96px; /* wysokość paska cookies z odstępem */
  --ck-reserve: 0px; /* zapas pod niego: tylko dopóki pasek jest na ekranie */
}

.has-ck {
  --ck-reserve: var(--ck-space);
}

@media (max-width: 700px) {
  :root {
    --ck-space: 108px;
  }
}

/* --- Podstawa --- */

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

html {
  scroll-padding-top: 80px; /* skok do kotwicy nie chowa nagłówka pod przyklejonym menu */
}

body {
  background: var(--ink);
  color: var(--snow);
  font: 400 var(--fs-body) / 1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

picture {
  display: block;
}

a {
  color: inherit;
  transition: color 0.15s ease;
}

h1,
h2 {
  text-wrap: balance;
}

::selection {
  background: var(--sig);
  color: var(--ink);
}

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

/* --- Typografia --- */

.disp {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.95;
}

.wide {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lc {
  text-transform: none;
}

.dim {
  color: var(--dim);
}

.xl {
  font-size: var(--fs-xl);
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
}

/* --- Układ i narzędzia --- */

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Pierwszy Tab na stronie: link prosto do treści, z pominięciem menu. */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--sig);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--snow);
  text-decoration: none;
}

/* Oryginalne logo jest ciemne; na ciemnym tle odwracamy je na jasne. */
.logo__mark {
  width: auto;
  height: 24px;
  filter: invert(0.94);
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
}

.site-nav a,
.site-nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--snow);
  color: var(--ink);
  font: 600 var(--fs-small) / 22px var(--font-sans);
  text-align: center;
}

/* Po dodaniu do koszyka licznik raz „podskakuje” (klasa z main.js). */
@media (prefers-reduced-motion: no-preference) {
  .cart-count.is-bumped {
    animation: cart-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
  }

  @keyframes cart-bump {
    40% {
      transform: scale(1.4);
    }
  }
}

/* Przycisk „Menu” istnieje tylko na telefonie (niżej). */
.site-header__menu {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--snow);
  font: 500 var(--fs-body) / 1 var(--font-sans);
  cursor: pointer;
}

.site-header__menu[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px var(--snow);
}

@media (max-width: 700px) {
  .site-header__in {
    gap: 12px;
    height: 56px;
  }

  .logo__mark {
    height: 21px;
  }

  /* Z JavaScriptem linki chowają się w panelu pod przyciskiem „Menu”. Bez niego
     (bez klasy .js) zostają widoczne i najwyżej zawijają się do drugiej linii. */
  .site-header__in {
    flex-wrap: wrap;
  }

  .js .site-header__in {
    flex-wrap: nowrap;
  }

  .js .site-header__menu {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    /* Zamyka się szybciej, niż otwiera. visibility czeka do końca zanikania,
       żeby schowane linki nie łapały kliknięć ani fokusu z klawiatury. */
    transition:
      opacity 0.15s ease-out,
      transform 0.15s ease-out,
      visibility 0s linear 0.15s;
  }

  .js .site-header.is-menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity 0.2s var(--ease),
      transform 0.2s var(--ease),
      visibility 0s;
  }

  .js .site-nav a {
    min-height: 56px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 800;
    font-stretch: 72%;
    text-transform: uppercase;
    line-height: 0.95;
  }

  .js .site-nav a:first-child {
    border-top: 0;
  }

  .js .site-nav a::after {
    display: none;
  }
}

/* Najwęższe telefony (320 px): sam napis FLISNOW, żeby koszyk i „Menu” zmieściły się obok. */
@media (max-width: 340px) {
  .logo__mark {
    display: none;
  }
}

/* --- Przyciski i linki ---
   Pomarańczowy wypełniony przycisk to główna akcja strony: przed premierą
   „Zapisz się”, po starcie sprzedaży zakupy. Reszta to obrys albo link. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 3px;
  background: var(--sig);
  color: var(--ink);
  font: 600 var(--fs-body) / 1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    filter 0.15s;
}

.btn-line,
.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--snow);
  font: 500 var(--fs-body) / 1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s;
}

.btn:active,
.btn-line:active,
.btn--ghost:active {
  transform: scale(0.96);
}

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

/* Przycisk w trakcie wysyłania formularza (main.js, data-busy-label). */
.btn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.tlink svg,
.btn svg,
.btn-line svg {
  flex: none;
  transition: transform 0.2s var(--ease);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--snow);
  font: 600 var(--fs-small) / 1.4 var(--font-sans);
  cursor: pointer;
}

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

/* Efekty po najechaniu tylko dla myszy: na telefonie dotknięcie zostawiałoby
   link pomarańczowy, dopóki nie stuknie się gdzie indziej. */
@media (hover: hover) {
  a:hover,
  .link-button:hover {
    color: var(--sig);
  }

  .logo:hover {
    color: var(--snow);
  }

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

  .btn:hover {
    color: var(--ink);
    filter: brightness(1.08);
  }

  .btn:disabled:hover {
    filter: none;
  }

  .btn-line:hover,
  .btn--ghost:hover {
    color: var(--snow);
    box-shadow: inset 0 0 0 1px var(--snow);
  }

  .tlink:hover svg,
  .btn:hover svg,
  .btn-line:hover svg {
    transform: translateX(4px);
  }
}

/* --- Komunikaty --- */

.messages {
  margin-top: 16px;
}

.message {
  padding: 12px 16px;
  border-left: 3px solid var(--placeholder);
  background: var(--ink-3);
  font-size: var(--fs-small);
}

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

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

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

/* --- Zdjęcia --- */

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zdjęcia doczytywane w tle pojawiają się łagodnie (main.js dodaje .is-loaded). */
.js img[data-fade] {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.js img[data-fade].is-loaded {
  opacity: 1;
}

/* „Zdjęcia wkrótce”: uczciwa ramka zamiast zdjęcia, dopóki nie ma prawdziwych. */
.soon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
}

.soon__mark {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(36%, 260px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.14;
  filter: invert(1);
}

.soon__title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.soon__note {
  position: relative;
  max-width: 32ch;
  color: var(--dim);
}

/* Delikatne pochylenie za kursorem (main.js, tylko mysz). */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.3s var(--ease);
}

/* --- Zapis do newslettera --- */

.signup__form {
  max-width: 560px;
}

.signup__lead {
  margin-bottom: 20px;
  color: var(--text-2);
}

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

.signup__row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--ink);
  color: var(--snow);
  font: 400 max(16px, var(--fs-body)) var(--font-sans); /* mniej i iPhone przybliża stronę */
  transition: border-color 0.15s;
}

.signup__row input::placeholder {
  color: var(--placeholder);
}

.signup__row input:focus {
  border-color: var(--snow);
  outline: 2px solid var(--snow);
  outline-offset: 2px;
}

.signup__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-3);
  font-size: var(--fs-small);
  line-height: 1.5;
  cursor: pointer;
}

.signup__consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--sig);
}

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

.signup__error {
  margin-top: 10px;
  color: var(--err);
}

.signup__done {
  display: none;
  max-width: 44ch;
  padding-top: 18px;
  border-top: 2px solid var(--sig);
}

.signup__done strong {
  display: block;
}

.signup.is-done .signup__form {
  display: none;
}

.signup.is-done .signup__done {
  display: block;
}

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

/* Gdy przycisk zawinie się pod pole, rozciąga się na całą szerokość. */
@media (max-width: 600px) {
  .signup__row .btn {
    flex: 1 1 100%;
  }
}

/* Blok „Damy znać o premierze” nad stopką. */
.nl {
  border-top: 1px solid var(--line);
}

.nl__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  align-items: end;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(80px, 10vw, 140px);
}

.nl__lead {
  max-width: 40ch;
  margin-bottom: 24px;
  color: var(--text-2);
}

/* --- Stopka --- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 4px 32px;
  padding-block: 48px 36px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__col a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: var(--fs-small);
}

.site-footer__bottom .logo {
  margin-right: 0;
  font-size: var(--fs-body);
}

.has-ck .site-footer__bottom {
  padding-bottom: var(--ck-reserve);
}

/* --- Informacja o cookies: przyklejona do dołu ekranu --- */

.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 8px 8px 8px 14px;
  border-radius: 3px;
  background: var(--snow);
  box-shadow: 0 10px 30px var(--shadow);
  color: var(--ink);
  font-size: var(--fs-small);
  line-height: 1.4;
  animation: cookie-in 0.3s var(--ease) both;
}

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

.cookie-note.is-leaving {
  animation: cookie-out 0.18s ease-in both;
}

.cookie-note a {
  color: var(--ink);
}

.cookie-note :focus-visible {
  outline-color: var(--ink);
}

.cookie-note__ok {
  flex: none;
  min-width: 52px;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  background: var(--ink);
  color: var(--snow);
  font: 600 var(--fs-small) var(--font-sans);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.cookie-note__ok:active {
  transform: scale(0.94);
}

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

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 700px) {
  .cookie-note {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 8px;
    max-width: none;
    padding: 6px 6px 6px 12px;
  }

  .cookie-note__ok {
    min-width: 44px;
  }
}

/* --- Rozwijane sekcje (strona spodni) --- */

.acc {
  border-bottom: 1px solid var(--line);
}

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  list-style: none;
  cursor: pointer;
}

.acc summary::-webkit-details-marker {
  display: none;
}

/* plus z dwóch kresek; przy otwarciu obraca się w krzyżyk */
.acc__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.18s var(--ease);
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.acc__icon::after {
  transform: rotate(90deg);
}

.acc[open] .acc__icon {
  transform: rotate(45deg);
  transition-duration: 0.25s;
}

.acc__body {
  padding-bottom: 28px;
}

/* --- Ruch --- */

/* Przejścia między stronami (Chrome, Safari 18.2+): nagłówek stoi w miejscu, treść
   delikatnie się zmienia, a zdjęcie spodni przelatuje z kafla w sklepie na stronę
   produktu (wspólna view-transition-name w szablonach). */
@view-transition {
  navigation: auto;
}

.product-feature__media,
.product-card__media,
.spot__media,
.pdp__photo {
  view-transition-class: product-photo;
}

::view-transition-old(root) {
  animation: vt-out 0.15s ease-in both;
}

::view-transition-new(root) {
  animation: vt-in 0.25s var(--ease) both;
}

::view-transition-group(*.product-photo) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}

::view-transition-old(*.product-photo),
::view-transition-new(*.product-photo) {
  height: 100%;
  object-fit: cover;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Pojawianie się przy przewijaniu: raz, przy wejściu na ekran (main.js). Ukrywamy
   tylko, gdy JavaScript działa (klasa .js); bez niego treść jest widoczna od razu. */
.js [data-reveal] {
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

/* Płynne rozwijanie tam, gdzie przeglądarka potrafi animować wysokość „auto”. */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  .acc::details-content,
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.18s var(--ease),
      content-visibility 0.18s allow-discrete;
  }

  .acc[open]::details-content,
  .faq__item[open]::details-content {
    block-size: auto;
    transition-duration: 0.25s;
  }
}

/* Ograniczenie ruchu: zostają tylko delikatne pojawienia, bez przesunięć. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-property: opacity !important;
    scroll-behavior: auto !important;
  }

  .acc::details-content,
  .faq__item::details-content {
    transition: none !important;
  }

  .js [data-reveal]:not(.is-visible),
  [data-tilt],
  .btn:active,
  .btn-line:active,
  .cookie-note__ok:active {
    transform: none;
  }

  @keyframes vt-out {
    to {
      opacity: 0;
    }
  }

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

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

  @keyframes cookie-out {
    to {
      opacity: 0;
    }
  }

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

/* =========================================================================
   Strona główna
   ========================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - 64px), 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* Ciemniejszy dół zdjęcia, żeby tekst i formularz były czytelne. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgb(13 14 15 / 0.2) 0%,
    rgb(13 14 15 / 0.45) 38%,
    rgb(13 14 15 / 0.9) 74%,
    var(--ink) 100%
  );
}

/* Faktura „sztruksu z ratraka”: tylko w hero i na jasnym pasie z licznikiem. */
.hero::before,
.cord::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6px);
  opacity: 0.35;
  pointer-events: none;
}

.cord {
  position: relative;
}

.band.cord::before {
  background: repeating-linear-gradient(90deg, var(--line-on-snow) 0 1px, transparent 1px 6px);
}

.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(16px, 4svh, 48px);
}

.has-ck .hero__in {
  padding-bottom: var(--ck-reserve);
}

.hero__h {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 16px);
}

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

.hero__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: end;
  gap: 16px clamp(24px, 5vw, 80px);
  margin-top: clamp(12px, 3svh, 36px);
}

.hero__lede {
  max-width: 30ch;
}

.hero__link {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .hero {
    min-height: min(calc(100svh - 56px), 820px);
  }

  .hero__h .wide {
    font-size: 22px;
  }

  /* Na telefonie link do sklepu stoi nad formularzem: na niskim ekranie nie znika
     pod paskiem cookies ani pod krawędzią. */
  .hero__row > div {
    display: flex;
    flex-direction: column;
  }

  .hero__link {
    order: -1;
    align-self: flex-start;
    margin: 0 0 12px;
  }

  /* Na telefonie tekst leży niżej, na jaśniejszym śniegu: ciemniejszy gradient. */
  .hero::after {
    background: linear-gradient(
      180deg,
      rgb(13 14 15 / 0.25) 0%,
      rgb(13 14 15 / 0.6) 30%,
      rgb(13 14 15 / 0.92) 58%,
      var(--ink) 100%
    );
  }
}

/* Niskie telefony (np. iPhone SE): ciaśniej, żeby link „Zobacz spodnie” mieścił
   się nad paskiem cookies bez przewijania. */
@media (max-width: 700px) and (max-height: 700px) {
  .hero__in {
    padding-top: 12px;
  }

  .hero__row {
    gap: 8px;
    margin-top: 10px;
  }

  .hero .signup__consent {
    margin-top: 8px;
  }

  .hero .signup__row input,
  .hero .btn {
    min-height: 48px;
  }
}

.proof {
  padding-block: clamp(90px, 11vw, 170px) 0;
}

.proof__statement {
  max-width: 22ch;
  margin-bottom: clamp(40px, 6vw, 88px);
}

.proof__img {
  height: auto;
  aspect-ratio: 21 / 9;
}

.band {
  background: var(--snow);
  color: var(--ink);
}

.band--counter {
  margin-top: clamp(90px, 11vw, 170px);
}

.counter {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 10vw, 150px);
}

.counter__num {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  margin-top: clamp(8px, 1vw, 16px);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Szerokość rezerwuje main.js na czas odliczania, więc „mm” stoi w miejscu. */
.counter__value {
  display: inline-block;
  text-align: right;
}

.counter__unit {
  font-size: 0.3em;
}

.spot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(90px, 11vw, 170px);
}

.spot__media {
  position: sticky;
  top: 96px;
  display: block;
}

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

.spot h2 a {
  text-decoration: none;
}

.spot__price {
  margin: 20px 0 clamp(32px, 4vw, 56px);
}

.spot__list {
  list-style: none;
}

.spot__list li {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.spot__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.spot__buy {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .spot {
    grid-template-columns: minmax(0, 1fr);
  }

  .spot__media {
    position: relative;
    top: 0;
  }

  .spot__media .soon,
  .proof__img {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================================
   Sklep
   ========================================================================= */

.shop-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: 20px clamp(24px, 5vw, 80px);
  padding-block: clamp(36px, 5vw, 64px) clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.shop-top__title {
  display: flex;
  flex-direction: column;
}

.shop-top__lede {
  max-width: 32ch;
  color: var(--text-2);
  line-height: 1.5;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
  padding-block: clamp(28px, 4vw, 56px) clamp(80px, 10vw, 140px);
}

.product-feature__media {
  display: block;
}

.product-feature__kind {
  margin-bottom: 14px;
  color: var(--dim);
}

.product-feature__price {
  margin-top: 18px;
}

.product-feature__body {
  max-width: 42ch;
  margin: 24px 0 32px;
  color: var(--text-2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 56px) clamp(80px, 10vw, 140px);
}

.product-card {
  display: block;
  text-decoration: none;
}

.product-card__media .soon {
  aspect-ratio: 4 / 5;
}

.product-card__name {
  margin-top: 16px;
}

.product-card__price {
  margin-top: 4px;
  color: var(--dim);
}

.shop-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .shop-top,
  .product-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Na telefonie kafel na całą szerokość ekranu, od krawędzi do krawędzi. */
  .product-feature__media {
    margin-inline: calc(-1 * var(--gutter));
  }

  .product-feature__media .soon {
    border-inline: 0;
  }
}

/* =========================================================================
   Strona spodni
   ========================================================================= */

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  color: var(--dim);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(24px, 4.5vw, 72px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.pdp__media {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pdp__kind {
  margin-top: 12px;
  color: var(--dim);
}

.pdp__desc {
  max-width: 44ch;
  color: var(--text-2);
}

.pdp__desc p + p {
  margin-top: 0.8em;
}

.pdp__buy {
  padding-block: 24px;
  border-block: 1px solid var(--line);
}

/* Wybór rozmiaru i „Dodaj do koszyka” (po starcie sprzedaży). */
.size-picker {
  margin-bottom: 24px;
  border: 0;
}

.size-picker legend {
  margin-bottom: 12px;
  color: var(--dim);
}

.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  margin: 0 8px 8px 0;
  padding: 0 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition:
    box-shadow 0.15s,
    background-color 0.15s,
    color 0.15s,
    transform 0.15s var(--ease);
}

.size-option:active {
  transform: scale(0.96);
}

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

/* Samo radio jest niewidoczne, więc fokus z klawiatury pokazujemy na przycisku. */
.size-option:has(input:focus-visible) {
  outline: 2px solid var(--sig);
  outline-offset: 3px;
}

.size-option:has(input:checked) {
  background: var(--snow);
  color: var(--ink);
  box-shadow: none;
}

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

.size-option--disabled:active {
  transform: none;
}

@media (hover: hover) {
  .size-option:not(.size-option--disabled):hover {
    box-shadow: inset 0 0 0 1px var(--snow);
  }
}

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

.buy .btn {
  width: 100%;
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
}

.specs dt,
.specs dd {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.specs dt {
  color: var(--dim);
}

/* Tabela rozmiarów: pierwsza kolumna stoi w miejscu przy przewijaniu w bok. */
.size-table {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.size-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.size-table th,
.size-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  text-align: right;
}

.size-table thead th {
  border-top: 0;
  font-weight: 600;
}

.size-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  background: var(--ink-2);
  box-shadow: 1px 0 0 var(--line);
  color: var(--text-3);
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.size-table__note {
  margin-top: 12px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdp__media {
    position: relative;
    top: 0;
    margin-inline: calc(-1 * var(--gutter));
  }

  .pdp__media .soon {
    max-height: 60svh;
    border-inline: 0;
  }
}

@media (max-width: 599px) {
  .size-table table {
    font-size: var(--fs-small);
  }

  .size-table th:first-child {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }
}

@media (max-width: 359px) {
  .specs {
    grid-template-columns: 1fr;
  }

  .specs dd {
    padding-top: 0;
    border-top: 0;
  }
}

/* =========================================================================
   O nas
   ========================================================================= */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 120px);
}

.about-hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 32px);
  padding-bottom: 8px;
}

.about-hero__title {
  display: flex;
  flex-direction: column;
}

.about-hero__lede {
  max-width: 30ch;
  color: var(--text-2);
  line-height: 1.5;
}

/* Przy pasku cookies zdjęcie jest niższe, więc tekst obok podjeżdża nad pasek. */
.about-hero__photo {
  height: min(calc(100svh - 120px - var(--ck-reserve)), 760px);
  min-height: 420px;
}

.manifesto {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 28px);
  padding-block: clamp(60px, 8vw, 120px) clamp(90px, 11vw, 170px);
}

.manifesto p {
  max-width: 18ch;
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(90px, 11vw, 170px);
}

.rules__title {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.rules__list,
.timeline__list {
  list-style: none;
}

.rules__item {
  padding-block: 28px 32px;
  border-top: 1px solid var(--line);
}

.rules__item:last-child {
  border-bottom: 1px solid var(--line);
}

.rules__item p {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--dim);
}

.timeline {
  position: sticky;
  top: 96px;
}

.timeline__title {
  margin-bottom: 28px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}

.timeline__list li {
  position: relative;
}

/* Znacznik punktu na osi czasu. */
.timeline__list li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -31px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--snow);
  border-radius: 50%;
  background: var(--ink);
}

.timeline__when {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.timeline__list p {
  max-width: 34ch;
  margin-top: 6px;
  color: var(--dim);
}

.peak {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(90px, 11vw, 170px);
}

.peak__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.peak__logo img {
  width: auto;
  height: clamp(40px, 4vw, 56px);
}

.peak__text {
  max-width: 46ch;
  margin-top: clamp(20px, 3vw, 36px);
  color: var(--on-snow-2);
  line-height: 1.6;
}

.peak__facts {
  margin-top: clamp(28px, 4vw, 48px);
  list-style: none;
}

.peak__facts li {
  padding-block: 18px;
  border-top: 1px solid var(--line-on-snow);
  color: var(--on-snow-2);
}

.peak__facts li:last-child {
  border-bottom: 1px solid var(--line-on-snow);
}

.peak__facts strong {
  color: var(--ink);
}

.peak__photo {
  position: sticky;
  top: 96px;
  height: auto;
  aspect-ratio: 3 / 4;
}

.about-end {
  padding-block: clamp(90px, 11vw, 170px);
  border-top: 1px solid var(--line);
}

.about-end__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(24px, 3vw, 40px);
}

.about-end__text {
  max-width: 32ch;
  color: var(--text-2);
  line-height: 1.5;
}

.about-end__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.about-end__sign {
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--dim);
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }

  /* Zdjęcie nad tekstem, od krawędzi do krawędzi ekranu. */
  .about-hero picture {
    order: -1;
    margin-inline: calc(-1 * var(--gutter));
  }

  .about-hero__photo {
    height: min(52svh, 460px);
    min-height: 300px;
  }

  .rules,
  .peak {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline,
  .peak__photo {
    position: relative;
    top: 0;
  }
}

/* =========================================================================
   Pozostałe strony: kolumna tekstu, kontakt, koszyk, kasa, statusy.
   Mają prostszy układ niż strony z projektu, ale te same kolory, czcionki
   i nagłówki.
   ========================================================================= */

.legal h1,
.faq h1,
.contact h1,
.cart h1,
.checkout h1,
.thanks h1,
.guide h1,
.newsletter-page h1,
.notice h1,
.error-page h1,
.page-auth h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.notice__eyebrow,
.guide .guide__eyebrow {
  margin-bottom: 14px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.02em;
}

/* --- Instrukcja przelewu (status i „dziękujemy”) --- */

.thanks form {
  margin: 20px 0;
}

.autopay__note {
  margin-top: 10px;
  color: var(--dim);
  font-size: var(--fs-small);
}

.bank-transfer {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--snow);
  background: var(--ink-3);
}

.bank-transfer h2 {
  margin-bottom: 12px;
  font-size: var(--fs-body);
}

.bank-transfer__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: var(--fs-small);
}

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

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

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

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

.legal,
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}

.legal h1,
.faq h1 {
  margin-bottom: 28px;
}

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

.legal h2 {
  margin: 32px 0 10px;
  font-size: var(--fs-body);
}

.legal p,
.legal li {
  color: var(--text-2);
  line-height: 1.7;
}

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

.legal code {
  padding: 1px 5px;
  background: var(--ink-3);
  font-size: var(--fs-small);
}

.legal__form {
  padding: 16px;
  overflow-x: auto;
  background: var(--ink-3);
  color: var(--text-2);
  font: 13px / 1.7 var(--font-sans);
  white-space: pre-wrap;
}

/* --- Strony błędów i komunikaty po kliknięciu linku z maila --- */

.notice,
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px var(--gutter) 120px;
  text-align: center;
}

.error-page__code {
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: clamp(110px, 26vw, 220px);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 0.9;
  user-select: none;
  -webkit-text-stroke: 1px var(--line-strong);
}

.notice h1,
.error-page h1 {
  margin-top: 8px;
}

.notice__lead,
.error-page__lead {
  margin-top: 16px;
  color: var(--text-2);
  line-height: 1.7;
}

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

.notice__actions form {
  display: contents;
}

.error-page__links {
  margin-top: 28px;
  color: var(--dim);
  font-size: var(--fs-small);
}

/* --- Kontakt --- */

.contact {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}

.contact h1 {
  margin-bottom: 16px;
}

.contact__lead {
  max-width: 520px;
  color: var(--text-2);
  line-height: 1.6;
}

.contact__label {
  display: block;
  color: var(--dim);
  font-size: var(--fs-small);
}

/* Jasna karta z adresem: ten sam „jasny pas” co licznik na stronie głównej. */
.contact__card {
  margin-top: 40px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--snow);
  color: var(--ink);
}

.contact__card .contact__label {
  color: var(--on-snow-2);
}

.contact__email {
  display: inline-block;
  margin-top: 10px;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(26px, 5.4vw, 44px);
  font-weight: 800;
  font-stretch: 72%;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

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

/* Na jasnej karcie przyciski ciemne. */
.contact__card .btn {
  background: var(--ink);
  color: var(--snow);
}

.contact__card .btn--ghost,
.contact__card .btn-line {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-on-snow);
  color: var(--ink);
}

.contact__hint {
  margin-top: 24px;
  color: var(--on-snow-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

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

.contact__tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  background: var(--ink);
  color: var(--snow);
  text-decoration: none;
}

.contact__tile-main {
  font-weight: 600;
}

.contact__tile-note {
  color: var(--dim);
  font-size: var(--fs-small);
}

.contact__legal {
  margin-top: 32px;
  color: var(--dim);
  font-size: var(--fs-small);
}

@media (hover: hover) {
  .contact__card a:hover,
  .contact__card .btn:hover {
    color: var(--sig);
  }

  .contact__card .btn--ghost:hover,
  .contact__card .btn-line:hover {
    box-shadow: inset 0 0 0 1px var(--ink);
    color: var(--ink);
  }

  .contact__tile:hover {
    background: var(--ink-3);
    color: var(--snow);
  }

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

@media (max-width: 600px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__tile {
    padding: 22px;
  }
}

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

.faq__lead {
  color: var(--text-2);
  line-height: 1.7;
}

.faq__group {
  margin-top: 56px;
}

.faq__group h2 {
  margin-bottom: 8px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 800;
  font-stretch: 125%;
}

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

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 16px 0;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq__question::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.18s var(--ease);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
  transition-duration: 0.25s;
}

.faq__answer {
  padding-bottom: 22px;
  color: var(--text-2);
  line-height: 1.7;
}

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

.faq__contact {
  margin-top: 56px;
  padding: 28px;
  background: var(--ink-3);
  color: var(--text-2);
  line-height: 1.7;
}

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

@media (hover: hover) {
  .faq__question:hover {
    color: var(--sig);
  }
}

/* --- Koszyk --- */

.cart {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}

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

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

.cart__empty-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 1;
}

.cart__empty-note {
  margin-bottom: 24px;
  color: var(--dim);
}

.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(--line);
}

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

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

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

/* Bez zdjęcia: przygaszony Mnich, jak w kaflu „Zdjęcia wkrótce”. */
.cart-line__thumb .cart-line__placeholder {
  width: 60%;
  height: auto;
  object-fit: contain;
  opacity: 0.2;
  filter: invert(1);
}

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

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

.cart-line__meta {
  color: var(--dim);
  font-size: var(--fs-small);
}

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

.cart-line__qty input {
  width: 64px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--ink);
  color: var(--snow);
  font: inherit;
}

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

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

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

.cart__note {
  margin: 16px 0;
  color: var(--dim);
  font-size: var(--fs-small);
}

/* --- Kasa --- */

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

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

.checkout__steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  list-style: none;
  color: var(--dim);
  font-size: var(--fs-small);
  font-weight: 600;
}

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

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

.checkout__step--active {
  border-bottom-color: var(--sig);
  color: var(--snow);
}

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

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

.checkout__section-title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 800;
  font-stretch: 125%;
}

.checkout__section-optional {
  color: var(--dim);
  font-family: var(--font-sans);
  font-weight: 400;
}

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

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: var(--fs-small);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--ink);
  color: var(--snow);
  font: inherit;
}

/* Lista wyboru bez systemowego wyglądu, ze strzałką z dwóch gradientów. */
.field select {
  padding-right: 36px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

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

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

.field--checkbox label {
  order: 2;
  margin-bottom: 0;
  color: var(--text-2);
  font-weight: 400;
}

.field--checkbox input {
  flex: none;
  width: 20px;
  min-height: 0;
  height: 20px;
  accent-color: var(--sig);
}

.field__help {
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
}

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

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

.checkout__summary {
  padding: 24px;
  background: var(--ink-3);
}

.checkout__summary h2 {
  margin-bottom: 16px;
  font-size: var(--fs-body);
}

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

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

.checkout__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--fs-small);
}

.checkout__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--snow);
  font-size: var(--fs-body);
}

.checkout__note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
}

/* --- Strona „dziękujemy” i status zamówienia --- */

.thanks {
  max-width: 660px;
  margin: 0 auto;
  padding: 80px var(--gutter) 120px;
}

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

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

.thanks__ref {
  color: var(--snow);
}

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

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

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

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
}

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

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

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

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

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

.thanks__summary {
  margin: 32px 0;
  padding: 24px;
  background: var(--ink-3);
}

.thanks__summary h2 {
  margin-bottom: 12px;
  font-size: var(--fs-body);
}

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

.thanks__summary li {
  padding: 4px 0;
  color: var(--dim);
  font-size: var(--fs-small);
}

.thanks__summary p {
  margin-bottom: 4px;
  color: var(--dim);
  font-size: var(--fs-small);
}

.thanks__summary p:last-child {
  margin-top: 12px;
  color: var(--snow);
  font-size: var(--fs-body);
}

/* --- Logowanie dwuskładnikowe (panel administracyjny) ---
   Strony z biblioteki django-two-factor-auth dziedziczą ten layout przez
   templates/two_factor/_base.html. Formularz kreatora renderuje się jako tabela. */

.page-auth main {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px var(--gutter) 100px;
}

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

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

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

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

.page-auth th {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: left;
}

.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%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--ink);
  color: var(--snow);
  font: inherit;
}

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

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

/* Przyciski drugorzędne biblioteki („Wstecz”, kod zapasowy, inne urządzenie): obrys. */
.page-auth .btn-secondary {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--snow);
}

/* Na pierwszym kroku biblioteka wstawia nieaktywne „Wstecz”, które nic nie robi. */
.page-auth .btn:disabled {
  display: none;
}

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

.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;
  color: var(--dim);
  font-size: 13px;
}

.page-auth .errorlist {
  margin: 4px 0 0;
  color: var(--err);
  font-size: var(--fs-small);
  list-style: none;
}

/* --- Poradnik: długi tekst w wąskiej kolumnie --- */

.guide {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--gutter) 100px;
}

.guide .guide__lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.1em;
  line-height: 1.6;
}

.guide__toc {
  margin: 40px 0 8px;
  padding: 24px 28px;
  background: var(--ink-3);
}

.guide__toc ol {
  display: grid;
  gap: 8px;
  margin-left: 18px;
}

.guide__toc a {
  text-decoration: none;
}

.guide h2 {
  margin: 48px 0 14px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
  text-transform: uppercase;
}

.guide p,
.guide li {
  color: var(--text-2);
  line-height: 1.75;
}

.guide p + p {
  margin-top: 14px;
}

.guide ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 14px 20px;
}

.guide strong {
  color: var(--snow);
}

.guide__recap {
  margin-top: 56px;
  padding: 28px;
  border-left: 3px solid var(--snow);
  background: var(--ink-3);
}

.guide__recap h2 {
  margin-top: 0;
}

.guide__recap ul {
  margin-bottom: 0;
}

/* Jasna karta ze spodniami na końcu poradnika. */
.guide__product {
  margin-top: 56px;
  padding: 36px 28px;
  background: var(--snow);
  text-align: center;
}

.guide__product p {
  color: var(--ink);
}

.guide__product .guide__product-eyebrow {
  color: var(--on-snow-2);
  font-size: var(--fs-small);
}

.guide__product .guide__product-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
}

.guide__product .guide__product-specs {
  margin: 8px 0 24px;
  color: var(--on-snow-2);
  font-size: var(--fs-small);
}

.guide__product .btn {
  background: var(--ink);
  color: var(--snow);
}

@media (hover: hover) {
  .guide__product .btn:hover {
    color: var(--sig);
  }
}

/* --- Newsletter: strona zapisu --- */

.newsletter-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 72px var(--gutter) 120px;
}

.newsletter-page__lead {
  margin: 16px 0 40px;
  color: var(--text-2);
  font-size: 1.1em;
  line-height: 1.6;
}

/* --- Telefon: pozostałe strony --- */

@media (max-width: 700px) {
  .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;
  }

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