/* ==========================================================================
   Actiontrax.pl — oficjalna dystrybucja ActionTrax w Polsce
   Kolorystyka i typografia odczytane z usactiontrax.com:
   Poppins w nagłówkach (700), Jost w treści.
   Kolory wzięte z logotypu ActionTrax: czerwień #C4161C i złoto #EFC03C,
   na jasnym, ciepłym tle. Wersja celowo jaśniejsza niż metalcloak.pl.
   Bez zewnętrznych zależności — zero żądań do CDN.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonty hostowane lokalnie (licencja SIL OFL — pliki w /assets/fonts/).
   Poppins = font nagłówków na usactiontrax.com, Jost = font treści.
   Brak żądań do Google Fonts — zgodność z RODO i zero blokowania renderu.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jost-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/jost-latin-400-normal.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: "Jost"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/jost-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/jost-latin-500-normal.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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/poppins-latin-400-normal.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/poppins-latin-600-normal.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/poppins-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/poppins-latin-700-normal.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;
}

:root {
  /* Paleta ActionTrax — odczytana z logotypu, w jasnym wydaniu */
  --blue:          #c4161c;   /* akcent: czerwień z logo (nazwa zmiennej wspólna z metalcloak.pl) */
  --blue-dark:     #9c1016;   /* ciemniejsza czerwień, hover */
  --blue-deep:     #7d0d12;
  --blue-soft:     #fdeced;
  --gold:          #efc03c;   /* złoto z logo — podkreślenia i drobne akcenty */
  --gold-soft:     #fdf6e2;
  --ink:           #22201f;   /* podstawowy tekst */
  --ink-2:         #5c5754;
  --ink-3:         #6b6663;
  --black:         #2a2725;   /* najciemniejszy element strony — stopka */
  --graphite:      #ffffff;   /* nagłówek jest jasny */
  --line:          #e3ded8;
  --line-soft:     #efeae4;
  --bg:            #ffffff;
  --bg-2:          #faf7f3;   /* ciepła jasna sekcja zamiast szarości */
  --bg-3:          #f3ede5;
  --white:         #ffffff;

  --radius:        4px;
  --radius-sm:     2px;
  --radius-tile:   10px;
  --maxw:          1280px;
  --shadow:        0 6px 24px rgba(17, 24, 39, .10);
  --shadow-lg:     0 14px 40px rgba(17, 24, 39, .16);

  --font: "Jost", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Poppins", "Jost", "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

.skip {
  position: absolute; left: 0; top: 0; z-index: 999; transform: translateY(-130%);
  background: var(--blue); color: #fff; padding: .7rem 1.2rem; font-weight: 700;
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Typografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.14;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 {
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  margin: 0 0 .6em; color: var(--ink);
}
p { margin: 0 0 1.05em; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font);
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--blue); display: block; }

.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); max-width: 70ch; }

/* ---------- Pasek górny ---------- */
.topbar {
  background: var(--bg-3); color: var(--ink-2); font-size: .8rem;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; min-height: 38px; padding-block: .35rem; }
@media (max-width: 720px) {
  .topbar { text-align: center; }
  .topbar .wrap { justify-content: center; }
  .topbar .sep { margin-left: 0; }
  .topbar > .wrap > span:first-child { display: none; }
}
.topbar a { color: var(--ink-2); }
.topbar a:hover { color: var(--blue); text-decoration: none; }
.topbar .sep { margin-left: auto; }
.topbar strong { color: #fff; font-weight: 600; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 3px solid var(--blue);
}
.nav { display: flex; align-items: center; gap: 1.3rem; min-height: 84px; }

.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
/* Oficjalny logotyp Metalcloak — proporcje 1052 × 95 (ok. 11:1), dlatego
   w nagłówku jest niski, a szeroki. Wysokość dobrana tak, żeby zmieścił się
   obok pełnego menu na ekranach od 1200 px w górę. */
.brand img { height: 52px; width: auto; }
@media (min-width: 1400px) { .brand img { height: 58px; } }
/* Na wąskich ekranach logotyp musi zmieścić się obok hamburgera i przełącznika
   języka — dlatego maleje razem z odstępami w nagłówku. */
@media (max-width: 560px) {
  .brand img { height: 40px; }
  .site-header .wrap { padding-inline: 16px; }
  .nav { gap: .6rem; min-height: 68px; }
  .nav-links { inset-block-start: 68px; }
}
@media (max-width: 360px) { .brand img { height: 36px; } }

.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a {
  color: var(--ink); font-size: .77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: .4rem 0; border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--blue); border-bottom-color: var(--blue); text-decoration: none;
}
.nav-links a.shop-link { color: var(--white); background: var(--blue); padding: .5rem .85rem; border-radius: var(--radius-sm); border-bottom: none; }
.nav-links a.shop-link:hover { background: var(--blue-dark); border-bottom: none; }

.lang { display: flex; gap: 2px; }
.lang a {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .3rem .55rem;
  border-radius: var(--radius-sm); color: var(--ink-3); text-decoration: none; border: 1px solid var(--line);
}
.lang a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: currentColor;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 3px solid var(--blue); padding: .3rem 22px 1.1rem; display: none;
    box-shadow: 0 14px 26px rgba(34,32,31,.10);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .nav-links a.shop-link { margin-top: .8rem; text-align: center; }
}

/* Cele dotykowe na telefonach: hamburger i przełącznik języka muszą mieć
   co najmniej 44 px wysokości (WCAG 2.5.8, wytyczne Apple i Google).
   Szerokość zostaje bez zmian — przy 320 px liczy się każdy piksel w poziomie.
   Blok musi stać PO regułach bazowych .lang a / .nav-toggle, inaczej te
   późniejsze reguły o tej samej specyficzności by go nadpisały. */
@media (max-width: 560px) {
  .nav-toggle { width: 44px; height: 44px; }
  .lang a { position: relative; padding: .7rem .42rem; font-size: .66rem; line-height: 1; }
  /* Przycisk zostaje wizualnie mały, ale obszar reagujący na dotyk jest
     powiększony przezroczystą warstwą do pełnych 44 px wysokości. */
  .lang a::after { content: ""; position: absolute; inset: -5px 0; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 700; font-size: .84rem; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .76rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.arrow::after { content: "›"; font-size: 1.25em; line-height: 1; font-weight: 700; }

/* ---------- Sekcje ---------- */
section { padding: clamp(3rem, 6vw, 5.2rem) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--bg-3); }
.section-dark .eyebrow { color: var(--blue-dark); }
.section-head { max-width: 74ch; margin-bottom: 2.4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(3rem, 7vw, 5.6rem) 0 clamp(2.6rem, 5vw, 4.2rem);
  background:
    linear-gradient(115deg, rgba(0,114,187,.10) 0%, rgba(0,114,187,0) 46%),
    linear-gradient(0deg, var(--bg-2), var(--bg-2));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 58%; height: 170%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  transform: skewX(-14deg); opacity: .07; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 4.5vw, 3.6rem); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--blue); }

.badge {
  display: inline-block;
  background: var(--blue); color: #fff; border-radius: var(--radius-sm);
  padding: .42rem .95rem; font-size: .73rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; line-height: 1.5;
}
.badge b { font-weight: 800; }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero-facts div { background: #fff; padding: 1.35rem 1.35rem; }
.hero-facts b {
  display: block; font-family: var(--font-display); font-size: 1.95rem; font-weight: 700;
  color: var(--blue); letter-spacing: .01em; line-height: 1;
}
.hero-facts small { font-size: .8rem; color: var(--ink-3); line-height: 1.45; display: block; margin-top: .45rem; }

/* ---------- Hero ze zdjęciem na całą szerokość (strona główna) ----------
   Zdjęcie ma własne rozjaśnienie po prawej stronie, dlatego auto zostaje po
   lewej, a tekst ląduje po prawej — na białej przesłonie, która przedłuża
   to rozjaśnienie w lewo. Na telefonie zdjęcie przechodzi nad tekst.        */
.hero-photo {
  background-image:
    linear-gradient(to left,
      #ffffff 0%, rgba(255,255,255,.985) 28%, rgba(255,255,255,.88) 42%,
      rgba(255,255,255,.5) 55%, rgba(255,255,255,.1) 68%, rgba(255,255,255,0) 78%),
    url("/assets/hero-actiontrax.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right center;
  background-size: cover, cover;
  border-bottom: 3px solid var(--blue);
  padding: clamp(3.4rem, 7vw, 6.4rem) 0;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-photo::after { content: none; }          /* bez ukośnej plamy z wersji bez zdjęcia */
.hero-photo .hero-copy {
  margin-right: auto;
  width: min(100%, 52ch);
  text-align: left;
}
.hero-photo h1 { text-shadow: 0 1px 0 rgba(255,255,255,.6); }

@media (max-width: 1100px) {
  .hero-photo {
    background-image:
      linear-gradient(to right,
        #ffffff 0%, rgba(255,255,255,.97) 36%, rgba(255,255,255,.66) 55%, rgba(255,255,255,0) 80%),
      url("/assets/hero-actiontrax.jpg");
  }
  .hero-photo .hero-copy { width: min(100%, 46ch); }
}

/* Telefony i wąskie tablety: zdjęcie jako pas u góry, tekst pod nim na bieli */
@media (max-width: 860px) {
  .hero-photo {
    display: block;
    min-height: 0;
    padding-top: calc(60vw + 1.5rem);
    background-image:
      linear-gradient(to bottom,
        rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40vw,
        rgba(255,255,255,.72) 52vw, #ffffff 62vw),
      url("/assets/hero-actiontrax-mobile.jpg");
    background-position: center top, center top;
    background-size: 100% auto, 100% auto;
    background-color: #fff;
  }
  .hero-photo .hero-copy { width: 100%; margin-right: 0; }
}

/* ---------- Pas ze statystykami pod hero ---------- */
.stats-band { background: var(--bg-2); padding: 0; border-bottom: 1px solid var(--line); }
.stats-band .wrap { padding-block: 0; }
.stats-band .hero-facts { border: none; border-radius: 0; margin: 0; }
.stats-band .hero-facts { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .stats-band .hero-facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Film w tle sekcji hero ----------
   Plik /assets/hero-actiontrax.mp4 jest opcjonalny: gdy go nie ma,
   zostaje widoczny obrazek (poster) i strona wygląda poprawnie. */
.hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo.has-video { background-image: none; background-color: var(--bg-3); }
.hero-photo.has-video .hero-scrim {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right,
    #ffffff 0%, rgba(255,255,255,.97) 28%, rgba(255,255,255,.86) 42%,
    rgba(255,255,255,.46) 56%, rgba(255,255,255,.08) 70%, rgba(255,255,255,0) 80%);
}
/* koło z trapem siedzi w prawej części ujęcia — trzymamy je w kadrze przy każdej proporcji */
.hero-video video { object-position: 68% 62%; }
@media (max-width: 860px) {
  .hero-photo.has-video { padding-top: calc(58vw + 1.5rem); }
  .hero-video { inset: 0 0 auto; height: 62vw; }
  .hero-video video { object-position: 62% 55%; }
  .hero-photo.has-video .hero-scrim {
    background: linear-gradient(to bottom,
      rgba(255,255,255,0) 0%, rgba(255,255,255,0) 38vw,
      rgba(255,255,255,.75) 50vw, #ffffff 60vw);
  }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- Pasek zaufania ---------- */
.trust { background: var(--gold-soft); border-block: 1px solid var(--line); padding: .95rem 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; }
.trust li {
  display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-2);
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.trust li::before { content: ""; width: 7px; height: 7px; background: var(--blue); flex: none; transform: rotate(45deg); }

/* ==========================================================================
   KAFELKI POJAZDÓW — układ wzorowany na claytonoffroad.com
   Kwadratowe kafle ze zdjęciem, ciemna przesłona, wielka nazwa modelu
   i podpis "ZOBACZ PRODUKTY" na dole.
   ========================================================================== */
.tile-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .tile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 780px)  { .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 430px)  { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--radius-tile); text-decoration: none; color: #fff;
  background-color: #14181c;
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Warstwa tła: zdjęcie modelu, a pod nim gradient zastępczy.
   Jeśli plik zdjęcia nie istnieje, przeglądarka pomija tę warstwę
   i widoczny zostaje gradient — kafelek nigdy nie jest pusty.
   Zdjęcia wgrywasz do /assets/produkty/<slug>.jpg (kwadrat, min. 800×800). */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--tile-img, none),
    linear-gradient(140deg, var(--tile-a, #2b3238) 0%, var(--tile-b, #10141a) 100%);
  background-size: cover, cover;
  background-position: 50% 50%, 50% 50%;
  transition: transform .45s ease;
}
.tile:hover::before { transform: scale(1.06); }
.tile::after {                        /* delikatna siatka techniczna */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.tile .tile-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to bottom, rgba(0,0,0,.10) 0%, rgba(0,0,0,.22) 38%, rgba(0,0,0,.62) 72%, rgba(0,0,0,.86) 100%);
  padding: 1.1rem 1.1rem 1.15rem;
  transition: background .3s ease;
}
.tile .tile-years {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #6fc0f2; margin-bottom: .3rem; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.tile .tile-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.12; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}
.tile .tile-cta {
  margin-top: .75rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.28);
  font-size: .69rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.tile .tile-cta span:last-child { color: #6fc0f2; font-size: 1.1rem; line-height: 1; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tile:hover .tile-inner { background: linear-gradient(to bottom, rgba(0,76,153,.30) 0%, rgba(0,114,187,.55) 100%); }
.tile:focus-visible { outline-offset: 4px; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 1.15rem; }
.grid > * { min-width: 0; }
/* min() chroni przed przepełnieniem na bardzo wąskich ekranach (320 px):
   bez niego minmax wymusza szerokość większą niż dostępne miejsce. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(288px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .93rem; margin-bottom: 0; }
.section-alt .card { background: #fff; }
.section-dark .card { background: #fff; }
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }

.icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--blue); margin-bottom: 1.15rem;
}
.icon svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Karty artykułów (poradniki) ---------- */
.art-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.art {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.art:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); text-decoration: none; }
.art-img {
  aspect-ratio: 16 / 10; background-color: var(--bg-3);
  background-image: var(--art-img, none),
    linear-gradient(135deg, var(--art-a, #f0e3cf) 0%, var(--art-b, #d9c7a8) 100%);
  background-size: cover, cover; background-position: 50% 50%, 50% 50%; position: relative;
}
.art-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,32,31,.28), rgba(34,32,31,0) 55%);
}
.art-num {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; padding: .38rem .8rem;
}
.art-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.art-body h3 { margin-bottom: .45rem; }
.art-body p { font-size: .93rem; margin-bottom: 1rem; }
.art-more { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--blue); letter-spacing: .02em; }

/* ---------- Chipy kolorów produktu ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: .65rem; }
.swatch {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .95rem .42rem .45rem; color: var(--ink); font-size: .87rem; font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.swatch:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.swatch i {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: block;
  border: 1px solid rgba(0,0,0,.15); background: var(--sw, #999);
}
/* cel dotykowy min. 44 px na małych ekranach (WCAG 2.5.8) */
@media (max-width: 620px) {
  .swatches { gap: .8rem; }
  .swatch { padding: .55rem 1.05rem .55rem .55rem; min-height: 44px; }
  .swatch i { width: 30px; height: 30px; }
}

/* ---------- Tabele ---------- */
.table-scroll {
  overflow-x: auto; max-width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
caption {
  text-align: left; padding: .95rem 1.2rem; color: var(--ink-3); font-size: .8rem;
  border-bottom: 1px solid var(--line-soft); text-transform: uppercase; letter-spacing: .09em; font-weight: 700;
}
th, td { padding: .85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
thead th {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  font-weight: 700; background: var(--blue); border-bottom: none;
}
tbody th { color: var(--ink); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:nth-child(even) { background: #fafbfc; }
.hl { color: var(--blue); font-weight: 800; }

/* ---------- Lista kontrolna ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--ink-2); font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: .15rem; top: .4em; width: 11px; height: 6px;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg);
}


/* ---------- FAQ ---------- */
.faq { display: grid; gap: .55rem; max-width: 92ch; }
details.qa {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 1.05rem 1.3rem; transition: border-color .2s ease;
}
details.qa[open] { border-color: var(--blue); }
details.qa summary {
  cursor: pointer; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: 1rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--blue); font-weight: 700; font-size: 1.4rem; line-height: 1; flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa .a { padding-top: .85rem; color: var(--ink-2); font-size: .95rem; }
details.qa .a p:last-child { margin-bottom: 0; }

/* ---------- Blok CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3.1rem); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 1.8rem; align-items: center;
}
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { margin-bottom: .5rem; color: #fff; }
.cta p { margin-bottom: 0; color: rgba(255,255,255,.9); }
.cta .btn-primary { background: #fff; color: var(--blue-dark); border-color: #fff; }
.cta .btn-primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* ---------- Ścieżka okruszków ---------- */
.crumbs { font-size: .8rem; color: var(--ink-3); background: var(--bg-2); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: .45rem; color: var(--ink-3); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--blue); }

/* ---------- Formularz B2B ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.field { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.field label { font-size: .8rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); padding: .75rem .9rem; font: inherit; font-size: .95rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0,114,187,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--ink-3); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--black); color: #a8afb6; padding: 3.4rem 0 1.8rem; font-size: .9rem; border-top: 4px solid var(--blue); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.2rem; margin-bottom: 2.6rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); } }
.site-footer h4 {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.05rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #a8afb6; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer p { font-size: .88rem; color: #a8afb6; }
.site-footer img.footer-logo { height: 62px; width: auto; margin-bottom: 1.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: space-between; color: #7d858d; font-size: .82rem;
}
.disclaimer { color: #6f767d; font-size: .8rem; max-width: 84ch; margin-top: 1rem; }

/* ---------- Drobiazgi ---------- */
.muted { color: var(--ink-3); }
.center { text-align: center; }
.prose > h2 { margin-top: 2.6rem; }
.prose > h3 { margin-top: 1.9rem; }
.anchor-offset { scroll-margin-top: 96px; }

/* ---------- Wideo: fasada ładowana na kliknięcie ---------- */
.vid-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.vid {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vid:hover, .vid:focus-visible { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.vid-frame {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--vid-a, #3a3634) 0%, var(--vid-b, #1d1a19) 100%);
}
.vid-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-play {
  width: 68px; height: 48px; border-radius: 12px; background: var(--blue);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}
.vid:hover .vid-play { transform: scale(1.08); background: var(--blue-dark); }
.vid-play::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 15px solid #fff; border-block: 9px solid transparent;
}
.vid-badge {
  position: absolute; left: 0; bottom: 0; background: rgba(34,32,31,.82); color: #fff;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .36rem .8rem;
}
.vid-body { padding: 1.1rem 1.2rem 1.25rem; }
.vid-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.vid-body p { font-size: .86rem; color: var(--ink-2); margin: 0; }
.vid-note { font-size: .82rem; color: var(--ink-3); margin-top: 1.4rem; }
.vid-single { max-width: 760px; margin-inline: auto; }
