/* ============================================================
   DPF Load Monitor – główny arkusz stylów
   Kolorystyka i charakter strony bez zmian.
   ============================================================ */

:root {
  --bg: #0f172a;         /* tło */
  --surface: #0b1226;    /* sekcje alt */
  --text: #e2e8f0;       /* tekst */
  --muted: #94a3b8;      /* opisowy */
  --brand: #4f46e5;      /* akcent */
  --brand-2: #22d3ee;    /* akcent 2 */
  --card: #111827;
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, .25);
  --radius: 14px;
  --header-offset: 90px; /* wysokość sticky nagłówka dla kotwic */
}

/* ===== BASE ===== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(120deg, #0b1226, #0f172a 60%, #0b1226);
  color: var(--text);
  line-height: 1.6;
}

/* Blokada przewijania tła przy otwartym lightboksie */
body.no-scroll { overflow: hidden; }

img {
  max-width: 100%;
  height: auto;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

.container {
  width: min(1300px, 95%);
  margin-inline: auto;
}

/* Widoczny stan fokusu dla nawigacji klawiaturą */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Kotwice nie chowają się pod sticky nagłówkiem */
[id] { scroll-margin-top: var(--header-offset); }

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 16, 36, .65);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* GRID HEADER LAYOUT */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
}

.logo {
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

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

/* MENU CENTER */
.nav-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem 1rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, .08);
}

/* LANGUAGE RIGHT */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switch .active { color: #6a86ff; }

.lang-switch a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}

.lang-switch a.active { color: #6a86ff; }

.lang-switch a:hover { color: var(--brand-2); }

/* HAMBURGER (widoczny tylko na mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}

/* animacja w "X" po otwarciu */
.nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SECTION ===== */

.section { padding: 4rem 0; }

.section.alt { background: var(--surface); }

.section h1,
.section h2 { margin-top: 0; }

.section p + h2 { margin-top: 2rem; }

/* ===== CARD / CONTENT ===== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}

/* ===== BUTTON ===== */

.btn {
  display: inline-block;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1226;
  font-weight: 700;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34, 211, 238, .25);
}

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

/* ===== FOOTER ===== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.2rem 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

/* ===== PRODUCT LAYOUT (strona główna) ===== */

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-image img {
  width: 100%;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

/* ===== GALERIA ===== */

.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;          /* wszystkie kafelki tej samej wielkości */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* kadr do kwadratu, bez zniekształceń */
  cursor: zoom-in;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

/* Podpis z modelem auta – lewy dolny róg, widoczny po najechaniu */
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem .9rem .6rem;
  font-size: .8rem;
  color: #cbd5e1;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;         /* klik dalej otwiera powiększenie */
}

.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; }

/* Telefony / ekrany dotykowe – brak najechania, podpis widoczny stale */
@media (hover: none) {
  .gallery-item figcaption { opacity: 1; }
}

/* Samotne ostatnie zdjęcie w rzędzie (3 kolumny) – na środek */
@media (min-width: 901px) {
  .gallery-item:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* ===== TABELE ===== */

.table-container {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 100%;
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;              /* przewijanie na telefonach */
  -webkit-overflow-scrolling: touch;
}

.table-container h2 {
  color: var(--text);
  margin-top: 0;
}

table {
  width: 100%;
  min-width: 420px;              /* zachowuje czytelność przy przewijaniu */
  border-collapse: collapse;
  color: var(--text);
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

th {
  background-color: rgba(255, 255, 255, .05);
  color: var(--text);
  text-transform: uppercase;
  font-size: .85em;
  letter-spacing: 1px;
}

.td-right { text-align: right; }

.range {
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

/* Kolorowanie wierszy – dopasowane do ciemnego tła (półprzezroczyste) */
.status-perfect  { background-color: rgba(76, 175, 80, .15); }   /* Zielony */
.status-good     { background-color: rgba(139, 195, 74, .10); }
.status-warning  { background-color: rgba(255, 235, 59, .10); }  /* Żółty */
.status-check    { background-color: rgba(255, 152, 0, .15); }   /* Pomarańczowy */
.status-clogged  { background-color: rgba(244, 67, 54, .15); }   /* Czerwony */
.status-critical { background-color: rgba(244, 67, 54, .30); color: #ff8a80; font-weight: 700; }

/* ===== OBRAZY W TREŚCI ===== */

img.center-image {
  display: block;
  margin: 2rem auto;
  width: 50%;
  max-width: 300px;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* Kontener na 3 obrazy */
.image-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;   /* zapobiega rozciąganiu */
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.image-row img {
  width: 30%;                /* 3 obok siebie */
  max-width: 330px;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.image-row img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

/* Wariant: 5 zdjęć w jednym rzędzie (strona Mini) */
.image-row--5 { gap: 1rem; }
.image-row--5 img {
  width: calc((100% - 4rem) / 5);
  max-width: none;
  border-radius: 20px;
}
@media (max-width: 900px) {
  .image-row.image-row--5 img { width: calc((100% - 2rem) / 3); }
}
@media (max-width: 600px) {
  .image-row--5 { gap: .8rem; }
  .image-row.image-row--5 img { width: calc((100% - .8rem) / 2); border-radius: 16px; }
}

/* ===== PAGE WITH SIDEBAR ===== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.page-content {
  min-width: 0;
  width: 100%;
}

/* ===== TOC ===== */

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  position: relative;
  margin-bottom: .6rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s ease;
}

.toc a:hover { color: var(--brand-2); }

.toc a.active {
  color: var(--brand-2);
  font-weight: 600;
}

.toc a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--brand-2);
  border-radius: 4px;
}

/* ===== VIDEO SECTION ===== */

.video-section { text-align: center; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}



.download-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .8rem;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
  background: rgba(255, 255, 255, .02);
}

.download-list li:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(34, 211, 238, .35);
  transform: translateY(-2px);
}

.download-list a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover { text-decoration: underline; }

.file-info {
  font-size: .85rem;
  color: var(--muted);
}


.note-warning {
  margin-top: 1rem;
  color: var(--muted);
}

/* ===== LIGHTBOX ===== */

.lightbox-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .6);
  cursor: default;
  transform: scale(.96);
  transition: transform .25s ease;
}

.lightbox-overlay.active img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  user-select: none;
  background: none;
  border: 0;
  padding: .2rem .6rem;
  transition: transform .2s ease;
}

.lightbox-close:hover { transform: scale(1.2); }



@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}


@media (max-width: 700px) {
  :root { --header-offset: 76px; }  

  .section { padding: 2.75rem 0; }


  .nav {
    grid-template-columns: 1fr auto auto;
    gap: .8rem;
    padding: .7rem 0;
  }

  .lang-switch { font-size: .95rem; }

  .nav-toggle { display: flex; }


  .nav-center {
    grid-column: 1 / -1;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .nav.open .nav-center { max-height: 60vh; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .4rem 0 .8rem;
  }

  .nav-list a {
    display: block;
    padding: .7rem .8rem;
    border-radius: 10px;
  }

  .nav-list a:active,
  .nav-list a:hover { background: rgba(255, 255, 255, .08); }
}

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

  .image-row img { width: 80%; }        

  img.center-image { width: 80%; }     

  .download-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
  }
}



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
:root{
  --man-active: #2f3a8f;
  --man-active-hi: #3d49a8;
  --man-sticky-top: 90px;
}

.man-head{
  display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;
  margin:.4rem 0 1.4rem;
}
.man-badge{
  display:inline-block;padding:.28rem .7rem;border-radius:999px;
  font-size:.78rem;font-weight:700;letter-spacing:.03em;
  background:rgba(47,58,143,.35);border:1px solid rgba(99,112,204,.5);color:#c7d2fe;
}
.man-head__hint{color:var(--muted);font-size:.9rem}

.callout{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:.9rem;
  padding:1rem 1.2rem;border-radius:12px;margin:1.2rem 0;
  border:1px solid var(--border);background:rgba(255,255,255,.02);
}
.callout .ico{grid-column:1;font-size:1.25rem;line-height:1.5}
.callout > *:not(.ico){grid-column:2}
.callout p{margin:0}
.callout p + p{margin-top:.4rem}
.callout.warn{border-color:rgba(255,152,0,.45);background:rgba(255,152,0,.10)}
.callout.warn .ico{color:#ffb74d}
.callout.tip{border-color:rgba(99,112,204,.45);background:rgba(47,58,143,.18)}
.callout.tip .ico{color:#a5b4fc}

.tabs{
  position:sticky;top:var(--man-sticky-top);z-index:20;scroll-margin-top:var(--man-sticky-top);
  display:flex;flex-wrap:wrap;gap:.4rem;padding:.5rem;margin:1.5rem 0 0;
  background:rgba(11,18,38,.94);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid var(--border);border-radius:14px;
}
.tab{
  flex:0 0 auto;display:flex;align-items:center;gap:.45rem;
  padding:.55rem 1rem;border:0;border-radius:10px;cursor:pointer;
  background:transparent;color:var(--muted);
  font:inherit;font-size:.92rem;font-weight:600;white-space:nowrap;
  transition:background-color .2s ease,color .2s ease;
}
.tab:hover{background:rgba(255,255,255,.06);color:var(--text)}
.tab[aria-selected="true"]{background:var(--man-active);color:#fff}
.tab[aria-selected="true"]:hover{background:var(--man-active-hi)}
.tab .num{
  display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;
  font-size:.72rem;font-weight:800;background:rgba(255,255,255,.08);
}
.tab[aria-selected="true"] .num{background:rgba(255,255,255,.18);color:#fff}

.tabpanel{padding-top:1.8rem}
.tabpanel[hidden]{display:none}
.tabpanel > h3:first-child{margin-top:0}
.tabpanel .lead{color:var(--muted);margin-top:-.4rem}

.man-card{
  --man-media:340px;
  --man-gap:1.8rem;
  --man-offset:calc(var(--man-media) + var(--man-gap));
  display:grid;grid-template-columns:minmax(0,var(--man-media)) 1fr;gap:var(--man-gap);align-items:start;
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.4rem;box-shadow:var(--shadow-soft);margin-bottom:1.2rem;
}
.man-card.wide{grid-template-columns:1fr;--man-offset:0px}
.man-card__media{margin:0}
.man-card__media img{
  display:block;width:100%;border-radius:18px;box-shadow:var(--shadow);
  cursor:zoom-in;transition:transform .2s ease;background:#0b1226;
}
.man-card__media img:hover{transform:scale(1.02)}
.man-card__media figcaption{margin-top:.5rem;text-align:center;font-size:.8rem;color:var(--muted)}
.man-card__body{min-width:0}
.man-card__title{
  margin:0 0 .9rem;font-size:1.05rem;font-weight:700;
  display:flex;align-items:center;gap:.6rem;
}
.man-card__title .idx{
  display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 .4rem;
  border-radius:9px;font-size:.85rem;font-weight:800;
  background:var(--man-active);color:#fff;
}

.man-figure{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1.2rem;box-shadow:var(--shadow-soft);margin:0 0 1.4rem;
  display:grid;justify-items:center;
}
.man-figure img{
  width:100%;max-width:300px;border-radius:18px;box-shadow:var(--shadow);
  cursor:zoom-in;background:#0b1226;
}
.man-figure figcaption{margin-top:.5rem;font-size:.8rem;color:var(--muted);text-align:center}
.man-figure--wide{padding:.8rem;margin-bottom:1rem}
.man-figure--wide img{max-width:100%;height:auto;border-radius:8px}
.man-figure--wide + .man-figure--wide{margin-top:0}
@media (max-width:700px){
  .man-figure--wide{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:.7rem}
  .man-figure--wide img{display:block;width:1000px;max-width:none}
  .man-figure--wide figcaption{position:sticky;left:0;text-align:left}
}

.img-pair{
  display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem;
  margin:1.4rem 0 0;
  margin-left:calc(-1 * var(--man-offset, 0px));
}
.img-pair figure{margin:0;flex:1 1 240px;max-width:340px}
.img-pair img{display:block;width:100%;border-radius:16px;box-shadow:var(--shadow);cursor:zoom-in;background:#0b1226}
.img-pair figcaption{margin-top:.45rem;text-align:center;font-size:.82rem;color:var(--muted)}

.pos-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.pos-list li{
  display:grid;grid-template-columns:140px minmax(0,1fr);gap:.9rem;align-items:baseline;
  padding:.5rem .1rem;border-bottom:1px dashed rgba(255,255,255,.07);
}
.pos-list li:last-child{border-bottom:0}
.pos-list .where{
  font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#a5b4fc;
}
.pos-list .what{color:var(--text)}
.pos-list .what small{display:block;color:var(--muted);font-size:.85em}

.gesture-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin:1.2rem 0 2.2rem}
.gesture{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1rem;text-align:center;box-shadow:var(--shadow-soft);
  display:flex;flex-direction:column;
}
.gesture img{width:100%;border-radius:12px;margin-bottom:.7rem;cursor:zoom-in;background:#0b1226}
.gesture .arrow{font-size:1.6rem;line-height:1;color:#a5b4fc}
.gesture h5{margin:.4rem 0 .3rem;font-size:.95rem}
.gesture p{margin:0;font-size:.87rem;color:var(--muted)}
.gesture p + p{margin-top:.4rem}
.gesture--nopic{justify-content:center;min-height:200px}

.opt-group{margin:0 0 1.6rem}
.opt-group > h4{
  margin:0 0 .7rem;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);
}
.opt{
  display:grid;grid-template-columns:220px 1fr;gap:1.2rem;align-items:start;
  padding:.9rem 1.1rem;border:1px solid var(--border);border-radius:12px;
  margin-bottom:.6rem;background:rgba(255,255,255,.02);
}
.opt__name{font-weight:700;color:#fff}
.opt__name small{display:block;font-weight:400;font-size:.78rem;color:var(--muted);margin-top:.15rem}
.opt__desc{margin:0;color:var(--text);font-size:.94rem}
.opt__desc + .opt__desc{margin-top:.5rem}

.legend{list-style:none;margin:.8rem 0 0;padding:0;display:grid;gap:.45rem}
.legend li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;align-items:baseline;font-size:.92rem}
.legend li > *:not(.dot){grid-column:2}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;transform:translateY(-1px)}
.dot.red{background:#f87171}
.dot.blue{background:#60a5fa}
.dot.white{background:#fff}

.steps{list-style:none;counter-reset:s;margin:1rem 0;padding:0;display:grid;gap:.7rem}
.steps li{counter-increment:s;position:relative;padding-left:2.4rem;min-height:26px}
.steps li::before{
  content:counter(s);position:absolute;left:0;top:.12rem;
  display:grid;place-items:center;width:26px;height:26px;border-radius:8px;
  background:var(--man-active);color:#fff;font-size:.82rem;font-weight:800;
}

.key{
  display:inline-block;padding:.1rem .45rem;border-radius:6px;font-size:.85em;font-weight:600;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff;
}

@media (max-width:900px){
  .man-card{--man-media:280px;--man-gap:1.3rem}
  .img-pair figure{max-width:280px}
}

@media (max-width:760px){
  .man-card{--man-offset:0px;grid-template-columns:1fr;gap:1.1rem;padding:1.1rem}
  .man-card__media img{max-width:360px;margin-inline:auto}
  .opt{grid-template-columns:1fr;gap:.35rem;padding:.85rem 1rem}
}

@media (max-width:700px){
  .tabs{
    flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    border-radius:0;border-left:0;border-right:0;
    margin-inline:calc(50% - 50vw);padding:.5rem max(2.5vw,12px);
    scroll-snap-type:x proximity;
  }
  .tabs::-webkit-scrollbar{display:none}
  .tab{font-size:.88rem;padding:.5rem .8rem;scroll-snap-align:start}
  .tabpanel{padding-top:1.4rem}
  .gesture-grid{grid-template-columns:1fr 1fr;gap:.8rem;margin-bottom:1.6rem}
  .gesture{padding:.8rem}
  .gesture h5{font-size:.88rem}
  .gesture p{font-size:.8rem}
  .gesture--nopic{min-height:0}
}

@media (max-width:560px){
  .pos-list li{grid-template-columns:1fr;gap:.15rem;padding:.45rem .1rem}
  .man-card__media img{max-width:100%}
  .img-pair{gap:1.2rem}
  .img-pair figure{flex-basis:100%;max-width:360px;margin-inline:auto}
  .callout{padding:.9rem 1rem;gap:.7rem}
}

@media (max-width:430px){
  .gesture-grid{grid-template-columns:1fr}
  .gesture img{max-width:230px;margin-inline:auto}
  .gesture--nopic .arrow{margin-top:.3rem}
}

/* zdjęcie przy górnej krawędzi, nie na środku kolumny z tekstem */
.product-layout{ align-items: start; }

/* bez tego tabela (min-width:420px) rozpycha siatkę i na telefonie
   pojawia się poziome przewijanie całej strony */
.product-text{ min-width: 0; }

/* .section h2 ma margin-top:0, więc nagłówki kleiłyby się do treści nad nimi */
.product-text h2{ margin-top: 2.2rem; }

/* lista wersji – korzysta z gotowego .pos-list */
.version-list .where{ text-decoration: none; }
.version-list .where:hover{ color: var(--brand-2); text-decoration: underline; }
/* ===== APLIKACJA ANDROID (/pl/app/, /en/app/) ===== */
.nav-list a.active{ color: var(--brand-2); }
.app-hero img{ border-radius: 24px; cursor: zoom-in; }
.app-lead{ color: var(--muted); margin-top: -.4rem; }
.man-card.app-card{ --man-media: 230px; align-items: center; }
.app-card .man-card__media img{ border-radius: 30px; background: transparent; box-shadow: none; }
.app-card .man-card__title{ flex-wrap: wrap; }
.app-pro{
  display:inline-block;padding:.12rem .5rem;border-radius:6px;font-size:.7rem;font-weight:800;letter-spacing:.06em;
  background:#F2B33D;color:#0b1226;
}
.app-list{ margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.td-center{ text-align: center; }
.app-compare td:first-child{ width: 55%; }
.app-compare .app-pro-col{ color: #fff; font-weight: 600; }
@media (max-width:760px){
  .app-card .man-card__media img{ max-width: 240px; }
}
.app-cards{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.app-cards .man-card{ margin: 0; --man-media: 200px; }
.app-link{ color: var(--brand-2); }
.app-compare{ min-width: 0; }
@media (max-width:1000px){
  .app-cards{ grid-template-columns: 1fr; }
  .app-cards .man-card{ --man-media: 230px; }
}
@media (max-width:560px){
  .app-compare th, .app-compare td{ padding: 8px 6px; font-size: .9rem; }
}
