/* =========================================================
   vayz.tech — styles.css
   Jasny motyw w odcieniach bieli – jak apple.com i iOS.
   ========================================================= */

/* Czcionka Inter z własnego serwera (folder fonts/) – bez łączenia z Google.
   Na iPhonie i Macu i tak używany jest systemowy SF Pro, więc tam się nie pobiera. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.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 {                       /* polskie znaki: ą ć ę ł ń ó ś ź ż */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.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 {
  /* Odcienie bieli (od najjaśniejszego) */
  --white: #ffffff;
  --white-2: #fafafa;
  --white-3: #f5f5f7;     /* tło strony (jak apple.com) */
  --white-4: #ececf0;     /* wgłębienia, zaślepki */

  --label: #1d1d1f;
  --label-2: #6e6e73;
  --label-3: #86868b;
  --fill: rgba(118, 118, 128, 0.12);
  --hairline: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 1px rgba(0, 0, 0, 0.03), 0 12px 28px -10px rgba(0, 0, 0, 0.14), 0 32px 60px -30px rgba(0, 0, 0, 0.14);

  --r-card: 28px;
  --gutter: 20px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* iPhone/Mac: oryginalny SF Pro. Windows/Android: Inter (wzorowany na SF). */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--white-3); }
body {
  margin: 0;
  background: var(--white-3);
  color: var(--label);
  font: 15px/1.4 var(--font);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button { font: inherit; letter-spacing: inherit; border: 0; padding: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.ico { width: 18px; height: 18px; flex: none; }
.ico.fill { fill: currentColor; }
.ico.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Biała kapsuła z miękkim cieniem (ikony social) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-sm), var(--hairline);
  transition: transform 0.45s var(--spring), box-shadow 0.3s var(--ease), color 0.25s var(--ease);
}
.pill:active { transform: scale(0.92); }

/* Główny przycisk – czarna kapsuła */
.cta {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--label);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.4s var(--spring), background 0.25s var(--ease);
}
.cta .ico { width: 16px; height: 16px; }
.cta:active { transform: scale(0.97); }

/* =========================================================
   OKŁADKA – zdjęcie pokoju rozpływa się w biel strony
   ========================================================= */
.cover {
  height: clamp(280px, 46vh, 460px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
}
.cover picture, .cover img { display: block; width: 100%; height: 100%; }
.cover img {
  object-fit: cover;
  object-position: 50% 58%;
  transform-origin: 50% 0;
  animation: settle 1.8s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.08); opacity: 0; } }
/* Paralaksa (app.js) przesuwa zdjęcie na osobnej warstwie – przy przewijaniu
   karta graficzna tylko je przesuwa, zamiast co klatkę rysować od nowa */
@media (prefers-reduced-motion: no-preference) {
  .cover img { will-change: transform; }
}

@media (min-width: 768px) {
  .cover {
    height: clamp(320px, 52vh, 520px);
    max-width: 1200px;
    margin: 0 auto;
    -webkit-mask-image:
      linear-gradient(180deg, #000 52%, transparent 100%),
      linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(180deg, #000 52%, transparent 100%),
      linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-composite: intersect;
  }
}

/* =========================================================
   KOLUMNA + ANIMACJA WEJŚCIA
   ========================================================= */
main {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(64px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.reveal {
  animation: reveal 0.9s var(--ease) backwards;
  animation-delay: calc(250ms + var(--i, 0) * 70ms);
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   PROFIL
   ========================================================= */
.hero {
  margin-top: -66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.avatar {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--white-4);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.name {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
/* Lokalizacja w małej kapsułce: pinezka + słowo to jeden obiekt,
   więc oko ocenia środek po krawędziach kapsułki – zawsze równo */
.location {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 11px 0 9px;            /* strona z ikoną odrobinę węższa – optyczna równowaga */
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--label-2);
}
.location .ico { width: 14px; height: 14px; flex: none; }
.tagline {
  margin-top: 10px;
  padding-left: 0.22em;              /* kompensuje rozstrzelenie – idealny środek */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label-3);
}
.socials { display: flex; gap: 12px; margin-top: 20px; }
.social { width: 44px; height: 44px; border-radius: 50%; }
.social .ico { width: 19px; height: 19px; }

/* =========================================================
   KODY RABATOWE – karuzela przesuwana palcem
   --bleed: o ile okno karuzeli wychodzi poza kolumnę (żeby
   cienie kart nie były ucinane, a karty wyjeżdżały do krawędzi).
   ========================================================= */
.carousel { --bleed: var(--gutter); }
.viewport {
  margin: -24px calc(var(--bleed) * -1) -52px;
  padding: 24px var(--bleed) 52px;
  overflow: hidden;
  touch-action: pan-y;             /* pion = przewijanie strony, poziom = karuzela */
  outline: none;
}
/* Scena 3D: wszystkie karty leżą w jednym miejscu, a app.js ustawia
   każdą w przestrzeni (przesunięcie, obrót, głębia) – jak Cover Flow */
.track {
  position: relative;
  display: grid;
  perspective: 1100px;             /* musi być równe PERSPECTIVE w app.js */
  -webkit-user-select: none;
  user-select: none;
}
.slide {
  grid-area: 1 / 1;
  display: flex;
  will-change: transform, opacity;
}
.deal {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-md), var(--hairline);
}

/* ---------- Karta jak w Apple Wallet ---------- */
/* Góra: kolor marki z logo i delikatny połysk materiału */
.pass-top {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  padding: 0 28px;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.pass-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Jasna karta (np. Elevate): czysta biel, oddzielona od dołu cienką linią */
.deal:not(.is-dark) .pass-top::before {
  background: none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}
.pass-top img {
  position: relative;
  grid-area: 1 / 1;
  height: 30px;                    /* dokładną wysokość ustawia app.js */
  width: auto;
  max-width: 100%;
  -webkit-user-drag: none;
}
.is-dark .pass-top img { filter: brightness(0) invert(1); }   /* logo na biało */
.brand-name {                      /* zapas, gdy pliku z logo brak */
  position: relative;
  grid-area: 1 / 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.is-dark .brand-name { color: var(--white); }
.pass-top img ~ .brand-name { display: none; }

/* Przechylenie za kursorem i odblask światła (jak plakaty w Apple TV).
   Tylko z myszką – na telefonie nie ma czego przechylać, więc przeglądarka
   nie buduje dodatkowych warstw 3D ani niewidocznej warstwy odblasku. */
@media (hover: hover) and (pointer: fine) {
  .slide, .deal, .pass-top { transform-style: preserve-3d; }
  .deal { transition: transform 0.8s var(--spring); }
  .deal.tilt {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.15s linear;
  }
  .deal::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.75), transparent 62%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
  }
  .deal.tilt::after { opacity: 1; }
  .pass-top img { transition: transform 0.8s var(--spring); }
  .deal.tilt .pass-top img { transform: translateZ(26px); transition-duration: 0.3s; }
}

/* Dół: oferta, opis i jeden wiersz akcji */
.pass-body { padding: 18px 20px 20px; }
.offer {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--label-2);
}
.offer-num {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--label);
  font-variant-numeric: tabular-nums;
}
.digits { display: inline-block; text-align: right; }
.deal-desc {
  margin-top: 8px;
  min-height: 2.9em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--label-2);
}
.actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Kapsuła z kodem – tapnięcie kopiuje */
.code-chip {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--white-3);
  box-shadow: var(--hairline);
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  transition: transform 0.4s var(--spring), background 0.25s var(--ease), color 0.25s var(--ease);
}
.code-chip .code-value { letter-spacing: 0.16em; }
.code-chip .ico { width: 16px; height: 16px; color: var(--label-2); }
.code-chip:active { transform: scale(0.96); }
.code-chip.done { color: #248a3d; background: rgba(52, 199, 89, 0.12); }
.code-chip.done .ico { color: currentColor; }
.actions .cta { height: 48px; font-size: 15px; }
@media (hover: hover) {
  .code-chip:hover { background: var(--white-4); }
  .code-chip.done:hover { background: rgba(52, 199, 89, 0.16); }
}

/* =========================================================
   WYSZUKIWARKA + ZAKŁADKI – przyklejają się do góry
   i zamieniają w pływające, mleczne szkło
   ========================================================= */
.toolbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  margin: 0 calc(var(--gutter) * -1);
  padding: 14px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolbar::before {
  content: "";
  position: absolute;
  inset: 4px calc(var(--gutter) - 10px);
  z-index: -1;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--hairline), 0 12px 32px -8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--spring);
}
.toolbar.stuck::before { opacity: 1; transform: none; }
.sentinel { height: 1px; margin-bottom: -1px; }

.search { position: relative; display: block; }
.search .ico { position: absolute; left: 14px; top: 11px; color: var(--label-3); pointer-events: none; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--label);
  font: inherit;
  font-size: 16px;                 /* 16px = iPhone nie robi zoomu */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search input::placeholder { color: var(--label-3); }
.search input:focus { background: var(--white); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05), var(--hairline); }

/* Przełącznik segmentowy jak w iOS */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.55fr;
  padding: 2px;
  border-radius: 999px;
  background: var(--fill);
}
.tab-indicator {           /* --x i --w ustawia app.js */
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: var(--w, 0px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04), var(--hairline);
  transform: translateX(var(--x, 0px)) scale(0.85);
  opacity: 0;
  transition: transform 0.55s var(--spring), width 0.55s var(--spring), opacity 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.tabs.has-active .tab-indicator { opacity: 1; transform: translateX(var(--x, 0px)); }
/* Przesuwanie palcem (jak w iOS): podświetlenie lekko się "wciska" i unosi,
   jedzie za palcem z minimalnym wygładzeniem (bez szarpania), a po puszczeniu
   wraca do pełnej wielkości i dojeżdża na miejsce sprężyną z reguły powyżej */
.tabs { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tabs.swiping .tab-indicator {
  transform: translateX(var(--x, 0px)) scale(0.94);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14), 0 2px 3px rgba(0, 0, 0, 0.05), var(--hairline);
  transition: transform 0.09s cubic-bezier(0.2, 0, 0, 1), width 0.09s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tabs.swiping .tab { transition-duration: 0.15s; }
.tab {
  position: relative;
  height: 34px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--label-2);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.tab[aria-pressed="true"] { color: var(--label); }

/* =========================================================
   SLOTY Z LINKAMI – kafelki jak w linktree, tylko porządniej:
   zdjęcie produktu na jasnoszarym polu (jak w Apple Store),
   tekst do lewej: mały napis z rolą + pełna nazwa produktu
   ========================================================= */
.products { display: flex; flex-direction: column; gap: 26px; margin-top: 8px; }
.section { animation: reveal 0.5s var(--ease) backwards; }
.section-head {
  display: flex;
  justify-content: space-between;
  padding: 0 6px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--label-2);
}
/* Kafelki z informacją na górze sekcji (np. "Made in Poland") */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.note {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 20px -12px rgba(0, 0, 0, 0.18), var(--hairline);
}
.note-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--hairline);
}
.note-badge .ico { width: 18px; height: 18px; }
.note-badge.pl { background: linear-gradient(180deg, #ffffff 50%, #dc143c 50%); }   /* flaga Polski */
.note-badge.leaf { background: rgba(52, 199, 89, 0.14); color: #248a3d; }
.note-title { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--label); }
.note-text { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--label-2); }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot {
  display: grid;
  grid-template-columns: 64px 1fr 16px;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 8px 16px 8px 8px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), var(--hairline);
  transition: transform 0.35s var(--spring), background 0.2s var(--ease);
  animation: reveal 0.5s var(--ease) backwards;
}
.slot:active { transform: scale(0.985); background: var(--white-2); }

/* Pole ze zdjęciem: jasnoszare tło, na nim produkt bez tła */
.slot-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--white-3);
  color: var(--label-3);
}
.slot-img img {                              /* produkt wycięty z tła + miękki cień */
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.14));
  transition: transform 0.6s var(--ease);
}
.slot-img .ico { width: 24px; height: 24px; stroke-width: 1.6; }   /* ikonka, gdy brak zdjęcia */

.slot-text { min-width: 0; }
.slot-label {                                 /* rola, np. MAIN MONITOR */
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-name {                                  /* pełna nazwa, najwyżej 2 linijki */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--label);
}
.slot-go { display: grid; place-items: center; color: var(--label-3); }
.slot-go .ico { width: 15px; height: 15px; transition: transform 0.35s var(--spring), color 0.2s var(--ease); }
.empty { padding: 40px 16px; text-align: center; color: var(--label-2); }

/* =========================================================
   MEDIA KIT – całe zdjęcie stanowiska na górze, treść pod spodem
   ========================================================= */
.mediakit {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-md), var(--hairline);
  text-align: center;
  content-visibility: auto;        /* rysowana dopiero przy przewinięciu */
  contain-intrinsic-size: auto 740px;
}
.mk-media {
  position: relative;
  aspect-ratio: 1080 / 1438;       /* całe zdjęcie, bez przycinania */
  overflow: hidden;
  background: var(--white-4);
}
.mk-media picture { display: block; height: 100%; }
.mk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* Mała szklana etykieta na zdjęciu */
.mk-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  height: 28px;
  padding: 0 12px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), var(--hairline);
  font-size: 12px;
  font-weight: 600;
  color: var(--label);
}
.mk-chip .ico { width: 14px; height: 14px; }
.mk-body { padding: 24px 22px 22px; }
.mk-eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-3);
}
.mediakit h2 {
  max-width: 15em;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-wrap: balance;              /* równe linijki nagłówka */
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.tag {
  height: 26px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--white-3);
  box-shadow: var(--hairline);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--label-2);
}
.mk-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-actions .cta { height: 48px; font-size: 15px; }

/* =========================================================
   COLLAB – czarna kapsuła w prawym dolnym rogu i okno na środku
   ========================================================= */
/* Kapsuła: Twoje logo + napis – jak kontakt w iMessage, nie jak znaczek Linktree */
.collab-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 4px 4px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.1),
    0 14px 30px -10px rgba(0, 0, 0, 0.45);
  animation: fab-in 0.8s var(--ease) 1s backwards;
  transition: transform 0.45s var(--spring), opacity 0.25s var(--ease), background 0.25s var(--ease);
}
.fab-avatar {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #2c2c2e;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22);
}
.fab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fab-text { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.collab-fab:active { transform: scale(0.95); }
.collab-fab[aria-expanded="true"] { opacity: 0; transform: scale(0.94); pointer-events: none; transition-duration: 0.2s; }
@keyframes fab-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

.collab {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.collab[hidden] { display: none; }
.collab-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 243, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
/* Okno – animację otwierania/zamykania (wysuwanie z przycisku) robi app.js */
.collab-card {
  position: relative;
  width: min(100%, 360px);
  padding: 30px 22px 22px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 70px -20px rgba(0, 0, 0, 0.3), var(--hairline);
  text-align: center;
  outline: none;
}
.collab.open .collab-backdrop { opacity: 1; }

.collab-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fill);
  color: var(--label-2);
  transition: transform 0.4s var(--spring), background 0.2s var(--ease);
}
.collab-x .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.collab-x:active { transform: scale(0.9); }
.collab-avatar {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--white-4);
}
.collab-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.collab-eyebrow {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-3);
}
.collab-title {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  text-wrap: balance;
}
.collab-sub {
  margin: 8px auto 0;
  max-width: 17em;
  font-size: 15px;
  line-height: 1.4;
  color: var(--label-2);
  text-wrap: balance;
}
.collab-mail {
  width: 100%;
  height: 50px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white-3);
  box-shadow: var(--hairline);
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  transition: transform 0.4s var(--spring), background 0.25s var(--ease), color 0.25s var(--ease);
}
.collab-mail > .ico { color: var(--label-2); }
.mail-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-act { display: grid; place-items: center; color: var(--label-2); }
.mail-act .ico { width: 16px; height: 16px; }
.collab-mail:active { transform: scale(0.97); }
.collab-mail.done { color: #248a3d; background: rgba(52, 199, 89, 0.12); }
.collab-mail.done > .ico, .collab-mail.done .mail-act { color: currentColor; }
.collab-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.collab-actions .cta { height: 48px; font-size: 15px; }
.cta-light { background: var(--white-3); color: var(--label); box-shadow: var(--hairline); }
html.modal-open { overflow: hidden; }

/* =========================================================
   HOVER – tylko z myszką
   ========================================================= */
@media (hover: hover) {
  .pill:hover:not(:active) { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.08), var(--hairline); transform: translateY(-1px); }
  .cta:hover { background: #000; }
  .cta-light:hover { background: var(--white-4); }
  .collab-mail:hover { background: var(--white-4); }
  .collab-x:hover { background: rgba(118, 118, 128, 0.2); }
  .collab-fab:hover:not(:active) { background: #000; transform: translateY(-2px); }
  .tab:hover { color: var(--label); }
  .slot:hover { background: var(--white-2); }
  .slot:hover .slot-img img { transform: scale(1.06); }
  .slot:hover .slot-go .ico { color: var(--label); transform: translate(2px, -2px); }
  .mediakit:hover .mk-media img { transform: scale(1.05); }
  .viewport { cursor: grab; }
  .viewport.grabbing { cursor: grabbing; }
}
:focus-visible { outline: 2px solid var(--label); outline-offset: 2px; }
.tab:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.16); }
.viewport:focus-visible { outline: none; }
.slot:focus-visible { outline-offset: 3px; }

/* =========================================================
   DOSTĘPNOŚĆ / STARSZE PRZEGLĄDARKI
   ========================================================= */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .toolbar::before { background: rgba(255, 255, 255, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  .toolbar::before { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .name { font-size: 28px; }
  .offer-num { font-size: 38px; }
  .tab { font-size: 10px; letter-spacing: 0.02em; }
}
@media (min-width: 768px) {
  main { gap: 48px; }
  /* Na komputerze karty wyjeżdżają dalej i miękko znikają na bokach */
  .carousel { --bleed: 56px; }
  .viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
  }
}

/* Duży ekran (komputer): ta sama jedna kolumna co na telefonie, tylko szersza.
   Karuzela wychodzi poza kolumnę – widać 3 karty naraz (środkowa + dwie boczne),
   produkty układają się w dwie kolumny kafelków. */
@media (min-width: 1024px) {
  main { max-width: 800px; }
  .carousel {
    /* szerzej niż kolumna: do 1180px, ale nigdy poza ekran */
    margin-inline: calc((100% - min(1180px, 100vw - 48px)) / 2);
    --bleed: 0px;
  }
  .viewport {
    padding-inline: 0;
    margin-inline: 0;
    /* boczne karty miękko znikają przy krawędziach */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
  .track { width: 420px; margin: 0 auto; }
  .slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  /* Media Kit poziomo: zdjęcie po lewej w swojej naturalnej wielkości (ostre),
     tekst i przycisk po prawej – zamiast rozciągać małe zdjęcie na całą szerokość */
  .mediakit {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    text-align: left;
  }
  .mk-media { aspect-ratio: auto; height: 100%; min-height: 452px; }
  .mk-body {
    padding: 32px 32px 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .mediakit h2 { margin: 0; max-width: none; }
  .mediakit .tags { justify-content: flex-start; }
}
