/* Heavyweight Garage Gdynia: strona główna
   Kierunek: czarna kuźnia i stal, błękit z logo (#00c8ff) jako światło,
   kolor lakieru (--kc-paint) tylko tam, gdzie pracuje lakiernia.
   Wszystkie klasy mają prefiks kc-, żeby nie gryzły się z motywem WordPressa. */

:root {
  --kc-black: #050607;
  --kc-ink: #0a0c0f;
  --kc-steel: #12161b;
  --kc-steel-2: #1a1f26;
  --kc-line: #29303a;
  --kc-text: #eef1f4;
  --kc-muted: #a0a9b3;
  --kc-dim: #6f7984;
  --kc-blue: #00c8ff;
  --kc-blue-soft: rgba(0, 200, 255, .14);
  --kc-paint: #c1121f;
  --kc-paint-light: #ff5a66;

  --kc-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --kc-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --kc-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --kc-gutter: max(20px, env(safe-area-inset-left, 0px));
  --kc-gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --kc-max: 1320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body.kc {
  margin: 0;
  background: var(--kc-black);
  color: var(--kc-text);
  font: 400 17px/1.6 var(--kc-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.kc img { max-width: 100%; height: auto; display: block; }
.kc a { color: var(--kc-blue); }
.kc :focus-visible { outline: 2px solid var(--kc-blue); outline-offset: 3px; }
.kc-skip { position: absolute; left: -999px; top: 8px; background: var(--kc-blue); color: var(--kc-black); padding: 10px 16px; z-index: 100; }
.kc-skip:focus { left: 16px; }

.kc-wrap { width: 100%; max-width: var(--kc-max); margin: 0 auto; padding-left: var(--kc-gutter); padding-right: var(--kc-gutter-r); }
.kc-disp { font-family: var(--kc-display); text-transform: uppercase; font-weight: 800; letter-spacing: .005em; line-height: .92; margin: 0; text-wrap: balance; }
.kc-eyebrow { font: 500 12px/1.2 var(--kc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--kc-blue); margin: 0; }
.kc-lead { color: var(--kc-muted); font-size: 19px; max-width: 60ch; margin: 0; }
.kc-h2 { font-size: clamp(44px, 6.4vw, 92px); }
.kc-sec, .kc-xray, #kaski { scroll-margin-top: 76px; }
.kc-sec { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.kc-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.kc-sec-head > div { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 2px;
  font: 600 16px/1 var(--kc-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.kc-btn--primary { background: var(--kc-blue); color: var(--kc-black) !important; border: 0; }
.kc-btn--primary:hover { background: #7fe3ff; transform: translateY(-1px); }
.kc-btn--ghost { border: 1px solid #4a5561; color: var(--kc-text) !important; background: rgba(5,6,7,.35); }
.kc-btn--ghost:hover { border-color: var(--kc-text); }
.kc-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.kc-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.kc-header.is-solid { background: rgba(5,6,7,.88); backdrop-filter: blur(12px); border-color: var(--kc-line); }
.kc-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.kc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--kc-text) !important; }
.kc-brand img { width: auto; height: 44px; }
.kc-brand span { font: 800 24px/1 var(--kc-display); text-transform: uppercase; letter-spacing: .02em; }
.kc-nav { display: flex; gap: 30px; }
.kc-nav a { color: #c9d0d7; text-decoration: none; font-weight: 500; font-size: 15px; }
.kc-nav a:hover { color: var(--kc-text); }
.kc-header__cta { display: flex; align-items: center; gap: 18px; }
.kc-header__tel { font: 500 14px var(--kc-mono); color: #c9d0d7 !important; text-decoration: none; letter-spacing: .04em; }
.kc-header .kc-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.kc-menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--kc-line); background: transparent; color: var(--kc-text); border-radius: 2px; }

/* ---------- Hero: jazda przy scrollu ---------- */
.kc-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--kc-black); }
.kc-hero__bg { position: absolute; inset: 0; }
.kc-hero__bg img, .kc-hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.kc-hero__bg img { opacity: .3; filter: grayscale(.35) contrast(1.1); transform-origin: 60% 50%; }
/* Od pierwszej chwili widać kadr z filmu (poster); rysunek motocykla tylko gdy film się nie wczyta (klasa no-video) */
.kc-hero__bg video { position: absolute; inset: 0; opacity: 1; transition: opacity .6s; }
.kc-hero:not(.no-video) .kc-ride { display: none; }
.kc-hero.no-video .kc-hero__bg video { opacity: 0; }
.kc-hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,6,7,.94) 0%, rgba(5,6,7,.72) 42%, rgba(5,6,7,.25) 100%),
  linear-gradient(0deg, rgba(5,6,7,1) 0%, rgba(5,6,7,0) 30%); }

.kc-ride { position: absolute; inset: 0; pointer-events: none; }
.kc-road { position: absolute; left: 0; right: 0; bottom: 12%; height: 2px; background: linear-gradient(90deg, transparent, rgba(0,200,255,.5) 20%, rgba(0,200,255,.5) 80%, transparent); }
.kc-road__dash { position: absolute; left: 0; right: 0; bottom: calc(12% - 22px); height: 3px;
  background: repeating-linear-gradient(90deg, rgba(238,241,244,.35) 0 70px, transparent 70px 170px); background-size: 170px 3px; }
.kc-speed { position: absolute; inset: 20% 0 14% 0; opacity: .0; background:
  repeating-linear-gradient(180deg, transparent 0 34px, rgba(0,200,255,.18) 34px 35px, transparent 35px 90px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.kc-ride__bike { position: absolute; bottom: calc(12% - 6px); left: 40%; width: min(58vw, 900px); }
.kc-ride__bike svg { width: 100%; height: auto; overflow: visible; }
.kc-beam { position: absolute; bottom: calc(12% + 9%); left: 50%; width: 46vw; height: 18vw; transform-origin: 0 50%;
  background: radial-gradient(ellipse at 0% 50%, rgba(0,200,255,.35), rgba(0,200,255,0) 70%); filter: blur(6px); opacity: .9; }

.kc-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 76px; }
.kc-hero h1 { font-size: clamp(48px, 6.6vw, 104px); max-width: 12ch; }
.kc-hero h1 em { font-style: normal; color: var(--kc-blue); }
.kc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.kc-hero__hint { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); font: 500 11px var(--kc-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--kc-dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kc-hero__hint i { width: 1px; height: 36px; background: linear-gradient(var(--kc-blue), transparent); }

/* ---------- Linia bike SVG (wspólna dla hero i rozbiórki) ---------- */
.kc-bike .ln { fill: none; stroke: var(--kc-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kc-bike .ln-th { stroke-width: 4; }
.kc-bike .ln-fat { stroke-width: 18; stroke: #0f1318; }
.kc-bike .ln-fat2 { stroke-width: 12; stroke: #0f1318; }
.kc-bike .sl { fill: #0c1014; stroke: var(--kc-blue); stroke-width: 2.4; stroke-linejoin: round; }
.kc-bike .chrome { stroke: #dfe6ec; stroke-width: 1.4; }
.kc-bike .chrome-ln { fill: none; stroke-width: 7; stroke-linecap: round; }
.kc-bike .paint { stroke: #f3f6f8; stroke-width: 1.6; transition: opacity .3s; }
.kc-bike .glow { filter: drop-shadow(0 0 6px rgba(0,200,255,.55)); }
.kc-bike .spoke { stroke: rgba(0,200,255,.55); stroke-width: 1.2; }
.kc-bike .lamp { fill: #e8fbff; }

/* ---------- Pasek zaufania ---------- */
.kc-trust { border-block: 1px solid var(--kc-line); background: var(--kc-ink); }
.kc-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kc-trust__item { padding: 26px 24px; border-left: 1px solid var(--kc-line); display: flex; flex-direction: column; gap: 4px; }
.kc-trust__item:first-child { border-left: 0; padding-left: 0; }
.kc-trust__item b { font: 800 38px/1 var(--kc-display); text-transform: uppercase; }
.kc-trust__item span { color: var(--kc-muted); font-size: 15px; }

/* ---------- Usługi ---------- */
.kc-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kc-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--kc-text) !important; background: var(--kc-steel); border: 1px solid var(--kc-line); overflow: hidden; min-width: 0; }
.kc-card__img { aspect-ratio: 4 / 5; overflow: hidden; }
.kc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: grayscale(.25); }
.kc-card:hover .kc-card__img img { transform: scale(1.06); filter: grayscale(0); }
.kc-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kc-card h3 { font-size: 32px; }
.kc-card p { margin: 0; color: var(--kc-muted); font-size: 15px; }
.kc-card__more { margin-top: auto; padding-top: 8px; font: 500 12px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kc-blue); }
.kc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--kc-blue); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.kc-card:hover::after { transform: scaleX(1); }

/* ---------- Rozbiórka ---------- */
.kc-xray { position: relative; background: var(--kc-ink); border-block: 1px solid var(--kc-line); }
.kc-xray__pin { height: 100svh; min-height: 640px; padding-top: 76px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: 40px; }
.kc-xray__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kc-xray__copy h2 { font-size: clamp(40px, 4.4vw, 68px); }
.kc-xray__steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kc-xray__steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--kc-line); color: var(--kc-dim); transition: color .3s; }
.kc-xray__steps li.is-on { color: var(--kc-text); }
.kc-xray__steps li span { font: 500 12px/1.9 var(--kc-mono); color: var(--kc-blue); }
.kc-xray__steps b { font-weight: 600; }
.kc-xray__stage { position: relative; min-width: 0; }
.kc-xray__stage svg { width: 100%; height: auto; overflow: visible; }
.kc-xray__grid { position: absolute; inset: -6% -4%; background-image:
  linear-gradient(rgba(0,200,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,200,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%); }
.kc-xray__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--kc-line); background: var(--kc-black); }
/* rysunek zostaje w drzewie (animacje liczą jego wymiary), ale jest niewidoczny, dopóki film działa */
.kc-xray__stage:not(.no-video) #kc-xray-bike { position: absolute; inset: 0; visibility: hidden; }
.kc-xray__stage:not(.no-video) .kc-xray__grid { display: none; }
.kc-xray__stage.no-video .kc-xray__video { display: none; }
.kc-hero__bg video { object-position: 62% 50%; }
.kc-xray__note { font: 500 11px/1.5 var(--kc-mono); letter-spacing: .06em; color: var(--kc-dim); margin: 0; }
.kc-callout { opacity: 0; }
.kc-callout text { font: 600 24px var(--kc-body); fill: var(--kc-text); }
.kc-callout .t2 { font: 500 14px var(--kc-mono); letter-spacing: .12em; fill: var(--kc-blue); text-transform: uppercase; }
.kc-callout line, .kc-callout circle { stroke: var(--kc-blue); stroke-width: 1.2; fill: none; }
.kc-callout circle.dot { fill: var(--kc-blue); stroke: none; }

/* ---------- Realizacje: przejazd poziomy ---------- */
.kc-builds { overflow: hidden; }
.kc-builds__track { display: flex; gap: 22px; padding-left: var(--kc-gutter); padding-right: var(--kc-gutter-r); width: max-content; }
.kc-build { position: relative; width: min(78vw, 560px); flex: 0 0 auto; margin: 0; }
.kc-build__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--kc-steel); }
.kc-build__img img { width: 100%; height: 100%; object-fit: cover; }
.kc-build figcaption { padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.kc-build h3 { font-size: 36px; }
.kc-build p { margin: 0; color: var(--kc-muted); font-size: 15px; }
.kc-build__tag { font: 500 11px var(--kc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kc-blue); }

/* ---------- Lakiernia ---------- */
.kc-paint { background: radial-gradient(ellipse 80% 60% at 75% 40%, color-mix(in srgb, var(--kc-paint) 22%, transparent), transparent 70%), var(--kc-black); transition: background .6s; }
.kc-paint__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kc-paint__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kc-paint__copy .kc-eyebrow { color: var(--kc-paint-light); transition: color .5s; }
.kc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.kc-swatch { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--kc-steel); border: 1px solid var(--kc-line); color: var(--kc-text); font: 500 14px var(--kc-body); cursor: pointer; min-height: 44px; }
.kc-swatch i { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--l), var(--c) 55%, #050607); }
.kc-swatch[aria-pressed="true"] { border-color: var(--kc-text); }
.kc-paint__mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 14px; }
.kc-paint__mosaic figure { margin: 0; overflow: hidden; position: relative; background: var(--kc-steel); }
.kc-paint__mosaic figure:nth-child(1) { grid-row: span 2; }
.kc-paint__mosaic figure:nth-child(4) { grid-column: span 2; }
.kc-paint__mosaic figure:nth-child(5) { grid-column: 1 / -1; }
.kc-paint__mosaic img { width: 100%; height: 100%; object-fit: cover; }
.kc-paint__mosaic figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 10px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(5,6,7,.75); padding: 5px 8px; }

.kc-helmets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.kc-helmets figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--kc-steel); }
.kc-helmets img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kc-helmets figure:hover img { transform: scale(1.05); }

/* ---------- Warsztat ---------- */
.kc-shop { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.kc-shop__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.kc-shop__img img { width: 100%; height: 120%; object-fit: cover; }
.kc-shop__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kc-shop__list li { padding: 18px 0; border-top: 1px solid var(--kc-line); display: flex; flex-direction: column; gap: 4px; }
.kc-shop__list b { font: 700 22px var(--kc-display); text-transform: uppercase; }
.kc-shop__list span { color: var(--kc-muted); font-size: 15px; }

/* ---------- Proces ---------- */
.kc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--kc-line); }
.kc-steps li { padding: 28px 22px 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.kc-steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--kc-blue); transition: width 1s; }
.kc-steps li.is-in::before { width: 100%; }
.kc-steps .n { font: 800 54px/1 var(--kc-display); color: var(--kc-blue); }
.kc-steps h3 { font-size: 28px; }
.kc-steps p { margin: 0; color: var(--kc-muted); font-size: 15px; }

/* ---------- Zespół ---------- */
.kc-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-team--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
.kc-person { margin: 0; background: var(--kc-steel); border: 1px solid var(--kc-line); }
.kc-person__img { aspect-ratio: 1 / 1; overflow: hidden; }
.kc-person__img img { width: 100%; height: 100%; object-fit: cover; }
.kc-person figcaption { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 2px; }
.kc-person h3 { font-size: 34px; }
.kc-person .role { font: 500 11px var(--kc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kc-muted); margin-top: 6px; }

/* ---------- Na sprzedaż ---------- */
.kc-sale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kc-sale .kc-card__img { aspect-ratio: 16 / 10; }

/* ---------- Opinie + FAQ ---------- */
.kc-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.kc-reviews { display: flex; flex-direction: column; gap: 18px; }
.kc-reviews__box { border: 1px dashed #3a434e; padding: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--kc-muted); }
.kc-faq details { border-top: 1px solid var(--kc-line); }
.kc-faq details:last-child { border-bottom: 1px solid var(--kc-line); }
.kc-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 19px/1.35 var(--kc-body); }
.kc-faq summary::-webkit-details-marker { display: none; }
.kc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 30px var(--kc-body); color: var(--kc-blue); transition: transform .3s; }
.kc-faq details[open] summary::after { transform: rotate(45deg); }
.kc-faq details p { margin: 0 0 22px; color: var(--kc-muted); max-width: 62ch; }

/* ---------- Kontakt ---------- */
.kc-contact { background: var(--kc-ink); border-top: 1px solid var(--kc-line); }
.kc-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.kc-nap { font-style: normal; display: flex; flex-direction: column; gap: 12px; font-size: 19px; }
.kc-nap a { color: var(--kc-text); text-decoration: none; }
.kc-nap small { color: var(--kc-muted); font-size: 15px; }
.kc-form { background: var(--kc-black); border: 1px solid var(--kc-line); padding: clamp(22px, 3.5vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kc-form .full { grid-column: 1 / -1; }
.kc-form label { display: flex; flex-direction: column; gap: 8px; font: 500 14px var(--kc-body); color: #c9d0d7; }
.kc-form input, .kc-form select, .kc-form textarea { font: 16px var(--kc-body); color: var(--kc-text); background: var(--kc-ink); border: 1px solid #39424d; border-radius: 2px; padding: 13px 14px; width: 100%; }
.kc-form input:focus, .kc-form select:focus, .kc-form textarea:focus { border-color: var(--kc-blue); outline: none; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-chips label { flex-direction: row; align-items: center; gap: 0; }
.kc-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kc-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #39424d; border-radius: 999px; cursor: pointer; color: var(--kc-text); font-size: 15px; }
.kc-chips input:checked + span { background: var(--kc-blue); border-color: var(--kc-blue); color: var(--kc-black); }
.kc-chips input:focus-visible + span { outline: 2px solid var(--kc-blue); outline-offset: 2px; }
.kc-form__ok { grid-column: 1 / -1; color: var(--kc-blue); margin: 0; }

/* ---------- Stopka ---------- */
.kc-footer { padding-block: 40px 120px; border-top: 1px solid var(--kc-line); color: var(--kc-dim); font-size: 14px; }
.kc-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.kc-footer a { color: var(--kc-muted); }

/* ---------- Pasek kontaktu na telefonie ---------- */
.kc-dock { display: none; }

/* ---------- Podstrona usługi ---------- */
.kc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-sub-hero { position: relative; overflow: hidden; padding-block: 150px 90px; border-bottom: 1px solid var(--kc-line); }
.kc-sub-hero__bg { position: absolute; inset: 0; }
.kc-sub-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.4); }
.kc-sub-hero__bg .kc-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.kc-sub-hero__bg .kc-loop.is-on { opacity: .9; }
.kc-sub-hero.has-loop .kc-sub-hero__bg::after { background: linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.82) 38%, rgba(5,6,7,.3) 70%, rgba(5,6,7,.2) 100%), linear-gradient(0deg, var(--kc-black) 0%, transparent 30%); }
/* Na komputerze, gdzie gra film, zdjęcia w pierwszym ekranie lakierni i kasków nie migają przed filmem.
   Pokazują się tylko, gdy film się nie załaduje (klasa no-loop) albo na telefonie. */
@media (prefers-reduced-motion: no-preference) {
  .kc-sub-hero--paint:not(.no-loop) .kc-spray,
  .kc-sub-hero--helmet:not(.no-loop) .kc-fan,
  .kc-sub-hero--paint:not(.no-loop) .kc-sub-hero__bg img,
  .kc-sub-hero--helmet:not(.no-loop) .kc-sub-hero__bg img,
  .kc-sub-hero:has(.kc-loop):not(.no-loop) .kc-sub-hero__bg img { opacity: 0; }
}
.kc-spray { transition: opacity 1.2s; }
.kc-sub-hero--paint.has-loop .kc-spray { opacity: 0; }
.kc-sub-hero--paint.has-loop .kc-sub-hero__bg .kc-loop.is-on { opacity: 1; }
.kc-fan { transition: opacity 1.2s; }
.kc-sub-hero--helmet.has-loop .kc-fan { opacity: 0; }
@media (min-width: 1081px) { .kc-sub-hero--helmet .kc-sub-hero__bg .kc-loop { transform: translateX(24%) scale(1.05); } }
.kc-sub-hero--helmet.has-loop .kc-sub-hero__bg .kc-loop.is-on { opacity: 1; }
@media (min-width: 1081px) { .kc-sub-hero--custom .kc-sub-hero__bg .kc-loop { transform: translateX(20%) scale(1.05); } }
.kc-sub-hero--custom.has-loop .kc-sub-hero__bg .kc-loop.is-on { opacity: 1; }
.kc-sub-hero--custom.has-loop .kc-draw { background-color: rgba(5,6,7,.15); backdrop-filter: none; }
.kc-sub-hero.has-loop .kc-scan, .kc-sub-hero.has-loop .kc-draw { background-color: rgba(5,6,7,.35); backdrop-filter: blur(2px); }
.kc-sub-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,7,.96) 0%, rgba(5,6,7,.8) 50%, rgba(5,6,7,.55) 100%), linear-gradient(0deg, var(--kc-black) 0%, transparent 35%); }
.kc-sub-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.kc-sub-hero__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.kc-sub-hero h1 { font-size: clamp(46px, 6vw, 92px); }
.kc-sub-hero h1 em { font-style: normal; color: var(--kc-blue); }
.kc-sub-hero__facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--kc-line); }
.kc-sub-hero__facts li { padding: 16px 28px 0 0; margin-right: 28px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--kc-line); }
.kc-sub-hero__facts li:last-child { border-right: 0; margin-right: 0; }
.kc-sub-hero__facts b { font: 800 24px/1 var(--kc-display); text-transform: uppercase; }
.kc-sub-hero__facts span { color: var(--kc-muted); font-size: 14px; }
.kc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px var(--kc-mono); letter-spacing: .06em; color: var(--kc-dim); }
.kc-crumbs li + li::before { content: "/"; margin-right: 8px; }
.kc-crumbs a { color: var(--kc-muted); text-decoration: none; }
.kc-crumbs a:hover { color: var(--kc-text); }

.kc-scan { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--kc-line); background:
  linear-gradient(rgba(0,200,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(0,200,255,.05) 1px, transparent 1px) 0 0 / 32px 32px, rgba(10,12,15,.7); overflow: hidden; }
.kc-scan__bike svg { width: 100%; height: auto; overflow: visible; }
.kc-scan__bar { position: absolute; top: 0; bottom: 0; left: 0; width: 120px; background: linear-gradient(90deg, transparent, rgba(0,200,255,.28) 70%, rgba(0,200,255,.9) 72%, transparent 74%); animation: kc-scan 3.6s cubic-bezier(.45,0,.55,1) infinite; mix-blend-mode: screen; }
@keyframes kc-scan { 0% { left: -140px; } 100% { left: 100%; } }
.kc-scan__readout { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font: 500 12px var(--kc-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--kc-muted); }
.kc-scan__readout li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--kc-line); padding-top: 8px; }
.kc-scan__readout i { font-style: normal; color: var(--kc-blue); animation: kc-ok 3.6s steps(1) infinite; }
.kc-scan__readout li:nth-child(2) i { animation-delay: .5s; }
.kc-scan__readout li:nth-child(3) i { animation-delay: 1s; }
.kc-scan__readout li:nth-child(4) i { animation-delay: 1.5s; }
@keyframes kc-ok { 0% { opacity: .15; } 40% { opacity: 1; } }

.kc-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--kc-line); border-left: 1px solid var(--kc-line); }
.kc-scope__item { padding: 30px 28px 34px; border-right: 1px solid var(--kc-line); border-bottom: 1px solid var(--kc-line); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: background .3s; }
.kc-scope__item:hover { background: var(--kc-steel); }
.kc-scope__n { font: 500 12px var(--kc-mono); color: var(--kc-blue); letter-spacing: .12em; }
.kc-scope__item h3 { font-size: 30px; }
.kc-scope__item p { margin: 0; color: var(--kc-muted); font-size: 15px; }

.kc-check { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.kc-check__copy { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.kc-checklist { list-style: none; margin: 0; padding: 0; counter-reset: kc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kc-checklist li { counter-increment: kc; background: var(--kc-black); border: 1px solid var(--kc-line); padding: 20px 20px 22px 58px; position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kc-checklist li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--kc-blue); background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%2300c8ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.kc-checklist b { font-weight: 600; }
.kc-checklist span { color: var(--kc-muted); font-size: 15px; }

.kc-price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.kc-table { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.kc-table th, .kc-table td { text-align: left; padding: 18px 12px; border-bottom: 1px solid var(--kc-line); }
.kc-table thead th { font: 500 11px var(--kc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kc-muted); padding-top: 0; }
.kc-table tbody th { font-weight: 600; }
.kc-table td { color: var(--kc-blue); font-family: var(--kc-mono); font-size: 15px; white-space: nowrap; }
.kc-table td:last-child { color: var(--kc-muted); }
.kc-note { color: var(--kc-dim); font-size: 14px; margin: 14px 0 0; }

.kc-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 14px; }
.kc-gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--kc-steel); }
.kc-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.kc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.kc-gallery figure:hover img { transform: scale(1.04); }
.kc-gallery figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 10px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(5,6,7,.75); padding: 5px 8px; }

/* Lakiernia: zdjęcie „malowane” aerografem (kolor odsłania się plamą) */
.kc-spray { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 640px; justify-self: end; width: min(100%, 500px); overflow: hidden; border: 1px solid var(--kc-line); }
.kc-spray img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-spray__raw { filter: grayscale(1) brightness(.55) contrast(1.1); }
.kc-spray__color {
  -webkit-mask-image: radial-gradient(circle at center, #000 0 18%, rgba(0,0,0,.6) 26%, transparent 40%);
  mask-image: radial-gradient(circle at center, #000 0 18%, rgba(0,0,0,.6) 26%, transparent 40%);
  -webkit-mask-size: 260% 260%; mask-size: 260% 260%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: kc-spray 9s ease-in-out infinite alternate;
}
@keyframes kc-spray {
  0%   { -webkit-mask-position: 10% 15%; mask-position: 10% 15%; -webkit-mask-size: 160% 160%; mask-size: 160% 160%; }
  35%  { -webkit-mask-position: 80% 35%; mask-position: 80% 35%; }
  70%  { -webkit-mask-position: 25% 75%; mask-position: 25% 75%; }
  100% { -webkit-mask-position: 50% 50%; mask-position: 50% 50%; -webkit-mask-size: 600% 600%; mask-size: 600% 600%; }
}
.kc-spray figcaption { position: absolute; left: 12px; bottom: 12px; font: 500 10px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(5,6,7,.75); padding: 6px 9px; }

.kc-tank-preview { position: relative; padding: 32px; border: 1px solid var(--kc-line); background: radial-gradient(ellipse at 55% 40%, color-mix(in srgb, var(--kc-paint) 18%, transparent), transparent 70%), rgba(10,12,15,.7); min-width: 0; }
.kc-tank-preview svg { width: 100%; height: auto; overflow: visible; }
.kc-tank-preview__label { display: block; margin-top: 10px; font: 500 11px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kc-dim); }

.kc-gallery--paint { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kc-gallery--paint figure:nth-child(6), .kc-gallery--paint figure:nth-child(7) { grid-column: span 2; }

.kc-artist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kc-artist__img { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--kc-line); }
.kc-artist__img img { width: 100%; height: 100%; object-fit: cover; }
.kc-quote { margin: 0; padding-left: 20px; border-left: 2px solid var(--kc-paint-light); font: 600 22px/1.4 var(--kc-body); color: var(--kc-text); max-width: 46ch; }

/* Kaski: wachlarz zdjęć w hero, kolejne kaski wychodzą na przód */
.kc-fan { position: relative; height: clamp(380px, 46vw, 560px); min-width: 0; }
.kc-fan img { position: absolute; top: 50%; left: 50%; width: 56%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--kc-line); box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transform: translate(-50%, -50%); animation: kc-fan 12s cubic-bezier(.6,0,.3,1) infinite; }
.kc-fan img:nth-child(2) { animation-delay: -3s; }
.kc-fan img:nth-child(3) { animation-delay: -6s; }
.kc-fan img:nth-child(4) { animation-delay: -9s; }
@keyframes kc-fan {
  0%, 20%  { transform: translate(-50%, -50%) rotate(0deg) scale(1); z-index: 4; filter: none; }
  25%, 45% { transform: translate(-112%, -46%) rotate(-9deg) scale(.82); z-index: 3; filter: brightness(.5) grayscale(.6); }
  50%, 70% { transform: translate(-50%, -42%) rotate(0deg) scale(.7); z-index: 1; filter: brightness(.3) grayscale(1); }
  75%, 95% { transform: translate(12%, -46%) rotate(9deg) scale(.82); z-index: 2; filter: brightness(.5) grayscale(.6); }
  100%     { transform: translate(-50%, -50%) rotate(0deg) scale(1); z-index: 4; filter: none; }
}
.kc-helmets--big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-helmets--big figure { position: relative; }
.kc-helmets--big figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 10px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(5,6,7,.75); padding: 5px 8px; }
.kc-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kc-theme { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; background: var(--kc-black); border: 1px solid var(--kc-line); color: var(--kc-text); cursor: pointer; font: inherit; min-height: 44px; transition: border-color .25s, background .25s; }
.kc-theme b { font: 700 24px var(--kc-display); text-transform: uppercase; }
.kc-theme span { color: var(--kc-muted); font-size: 15px; }
.kc-theme:hover, .kc-theme[aria-pressed="true"] { border-color: var(--kc-blue); background: var(--kc-steel); }
@media (max-width: 680px) {
  .kc-fan { height: 360px; }
  .kc-fan img { width: 62%; }
  .kc-helmets--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kc-themes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-fan img { animation: none; }
  .kc-fan img:nth-child(1) { z-index: 4; }
  .kc-fan img:nth-child(2) { transform: translate(-112%, -46%) rotate(-9deg) scale(.82); }
  .kc-fan img:nth-child(4) { transform: translate(12%, -46%) rotate(9deg) scale(.82); }
}

/* Custom: szkic rysuje się liniami, potem pojawia się chrom i lakier */
.kc-draw { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--kc-line); background:
  linear-gradient(rgba(0,200,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(0,200,255,.05) 1px, transparent 1px) 0 0 / 32px 32px, rgba(10,12,15,.7); }
.kc-draw__bike svg { width: 100%; height: auto; overflow: visible; }
.kc-draw .ln, .kc-draw .spoke { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: kc-draw-ln 2.6s cubic-bezier(.6,0,.3,1) .2s forwards; }
.kc-draw .sl, .kc-draw .chrome, .kc-draw .chrome-ln, .kc-draw .ln-fat, .kc-draw .ln-fat2, .kc-draw .lamp, .kc-draw .paint { opacity: 0; animation: kc-draw-fill 1.2s ease 2.4s both; }
.kc-draw .paint { animation-delay: 3.3s; }
@keyframes kc-draw-ln { to { stroke-dashoffset: 0; } }
@keyframes kc-draw-fill { to { opacity: 1; } }
.kc-draw__legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font: 500 11px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kc-dim); }
.kc-draw__legend span:nth-child(1) { animation: kc-legend 1s ease .2s both; }
.kc-draw__legend span:nth-child(2) { animation: kc-legend 1s ease 2.4s both; }
.kc-draw__legend span:nth-child(3) { animation: kc-legend 1s ease 3.3s both; }
@keyframes kc-legend { from { color: var(--kc-dim); } to { color: var(--kc-blue); } }

.kc-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-case { background: var(--kc-steel); border: 1px solid var(--kc-line); display: flex; flex-direction: column; min-width: 0; }
.kc-case__img { aspect-ratio: 4 / 5; overflow: hidden; }
.kc-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.kc-case:hover .kc-case__img img { transform: scale(1.04); }
.kc-case__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.kc-case h3 { font-size: 34px; }
.kc-spec { margin: 6px 0 0; display: flex; flex-direction: column; }
.kc-spec div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--kc-line); font-size: 15px; }
.kc-spec dt { font: 500 11px/1.9 var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kc-muted); }
.kc-spec dd { margin: 0; }
@media (max-width: 1080px) { .kc-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .kc-cases { grid-template-columns: 1fr; } .kc-draw { padding: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .kc-draw .ln, .kc-draw .spoke { animation: none; stroke-dashoffset: 0; }
  .kc-draw .sl, .kc-draw .chrome, .kc-draw .chrome-ln, .kc-draw .ln-fat, .kc-draw .ln-fat2, .kc-draw .lamp, .kc-draw .paint, .kc-draw__legend span { animation: none; opacity: 1; }
}

/* Karta na pierwszym ekranie podstron (zamiast rysunku): szkło nad filmem */
.kc-hero-card { position: relative; overflow: hidden; justify-self: end; width: min(100%, 420px); align-self: center; animation: kc-card-in .9s cubic-bezier(.2,.7,.2,1) .25s both; padding: 24px 24px 20px; background: rgba(8,10,13,.62); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 14px; }
.kc-hero-card__list, .kc-hero-card__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kc-hero-card__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.kc-hero-card__list i { font: 600 12px var(--kc-mono); font-style: normal; color: var(--kc-blue); letter-spacing: .1em; opacity: .15; animation: kc-tick .5s ease forwards; }
.kc-hero-card__list li:nth-child(1) i { animation-delay: .6s; } .kc-hero-card__list li:nth-child(2) i { animation-delay: 1s; }
.kc-hero-card__list li:nth-child(3) i { animation-delay: 1.4s; } .kc-hero-card__list li:nth-child(4) i { animation-delay: 1.8s; }
.kc-hero-card__list li:nth-child(5) i { animation-delay: 2.2s; } .kc-hero-card__list li:nth-child(6) i { animation-delay: 2.6s; }
@keyframes kc-tick { to { opacity: 1; } }
@keyframes kc-card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* serwis: pozycje wjeżdżają po kolei, potem pasek „skanuje” listę */
.kc-hero-card__list li { position: relative; animation: kc-row-in .5s ease both; }
.kc-hero-card__list li:nth-child(1) { animation-delay: .45s; } .kc-hero-card__list li:nth-child(2) { animation-delay: .6s; }
.kc-hero-card__list li:nth-child(3) { animation-delay: .75s; } .kc-hero-card__list li:nth-child(4) { animation-delay: .9s; }
.kc-hero-card__list li:nth-child(5) { animation-delay: 1.05s; } .kc-hero-card__list li:nth-child(6) { animation-delay: 1.2s; }
@keyframes kc-row-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.kc-hero-card__list { position: relative; }
.kc-hero-card__list::after { content: ""; position: absolute; left: -24px; right: -24px; top: 0; height: 44px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,200,255,.14) 45%, rgba(0,200,255,.5) 50%, rgba(0,200,255,.14) 55%, transparent);
  opacity: 0; animation: kc-scanlist 4.5s ease-in-out 3.2s infinite; }
@keyframes kc-scanlist { 0% { opacity: 0; transform: translateY(-20px); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(260px); } }
/* custom: etapy wjeżdżają, potem po kolei podświetla się aktywny etap */
.kc-hero-card__steps li { position: relative; animation: kc-row-in .5s ease both; transition: background .4s; }
.kc-hero-card__steps li:nth-child(1) { animation: kc-row-in .5s ease .45s both, kc-step 8s ease 1.6s infinite; }
.kc-hero-card__steps li:nth-child(2) { animation: kc-row-in .5s ease .6s both, kc-step 8s ease 3.6s infinite; }
.kc-hero-card__steps li:nth-child(3) { animation: kc-row-in .5s ease .75s both, kc-step 8s ease 5.6s infinite; }
.kc-hero-card__steps li:nth-child(4) { animation: kc-row-in .5s ease .9s both, kc-step 8s ease 7.6s infinite; }
@keyframes kc-step { 0%, 26%, 100% { box-shadow: inset 2px 0 0 transparent; background: transparent; } 4%, 22% { box-shadow: inset 2px 0 0 var(--kc-blue); background: rgba(0,200,255,.07); } }
.kc-hero-card__steps li { padding-left: 12px; margin-left: -12px; }
.kc-hero-card__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.kc-hero-card__steps b { font: 500 12px/1.7 var(--kc-mono); color: var(--kc-blue); }
.kc-hero-card__steps span { display: flex; flex-direction: column; gap: 2px; color: var(--kc-muted); font-size: 14px; }
.kc-hero-card__steps strong { font: 700 20px var(--kc-display); text-transform: uppercase; color: var(--kc-text); }
.kc-hero-card__more { font: 500 12px var(--kc-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding-top: 4px; }

/* Lakiernia: przełącznik prawdziwych prac */
.kc-works { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kc-works__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kc-works__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-works__tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--kc-line); background: var(--kc-steel); color: var(--kc-text); font: 500 15px var(--kc-body); cursor: pointer; transition: border-color .2s, background .2s; }
.kc-works__tabs button:hover { border-color: #4a5561; }
.kc-works__tabs button[aria-selected="true"] { background: var(--kc-text); color: var(--kc-black); border-color: var(--kc-text); }
.kc-works__stage { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--kc-steel); border: 1px solid var(--kc-line); }
.kc-works__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.kc-works__img.is-swap { opacity: 0; transform: scale(1.03); }
.kc-works__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(0deg, rgba(5,6,7,.92), rgba(5,6,7,0)); display: flex; flex-direction: column; gap: 4px; }
.kc-works__cap strong { font: 800 26px var(--kc-display); text-transform: uppercase; }
.kc-works__cap span { color: #c9d0d7; font-size: 15px; max-width: 56ch; }
@media (max-width: 1080px) {
  .kc-works { grid-template-columns: 1fr; gap: 28px; }
  .kc-hero-card { justify-self: stretch; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kc-hero-card, .kc-hero-card__list li, .kc-hero-card__steps li { animation: none !important; opacity: 1; } .kc-hero-card__list::after { display: none; } .kc-hero-card__list i { animation: none; opacity: 1; } .kc-works__img { transition: none; } }

.kc-cases--sale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kc-cases--sale .kc-case__img { aspect-ratio: 4 / 3; }
@media (max-width: 680px) { .kc-cases--sale { grid-template-columns: 1fr; } }

/* Strona motocykla na sprzedaż */
.kc-bike-hero { padding-block: 120px 72px; border-bottom: 1px solid var(--kc-line); background: radial-gradient(ellipse 70% 80% at 80% 40%, rgba(0,200,255,.08), transparent 70%), var(--kc-black); }
.kc-bike-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.kc-bike-hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kc-bike-hero h1 { font-size: clamp(46px, 6.4vw, 100px); }
.kc-bike-hero h1 em { font-style: normal; color: var(--kc-blue); }
.kc-bike-hero__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--kc-line); }
.kc-bike-hero__facts li { padding: 16px 12px 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kc-bike-hero__facts b { font: 800 26px/1 var(--kc-display); text-transform: uppercase; }
.kc-bike-hero__facts span { color: var(--kc-muted); font-size: 14px; }
.kc-bike-hero__img { margin: 0; aspect-ratio: 3 / 4; max-height: 74vh; overflow: hidden; border: 1px solid var(--kc-line); justify-self: end; width: 100%; }
.kc-bike-hero__img--wide { aspect-ratio: 4 / 3; }
.kc-bike-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.kc-table--spec th { width: 34%; color: var(--kc-muted); font-weight: 500; }
.kc-table--spec td { color: var(--kc-text); font-family: var(--kc-body); font-size: 16px; white-space: normal; }
.kc-prose { display: flex; flex-direction: column; gap: 16px; color: #c9d0d7; max-width: 66ch; }
.kc-prose p { margin: 0; }

/* Galeria z powiększaniem */
.kc-sec-head > .kc-works__tabs { flex-direction: row; gap: 8px; }
.kc-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kc-gal__item { padding: 0; border: 0; background: var(--kc-steel); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; display: block; }
.kc-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: grayscale(.15); }
.kc-gal__item:hover img { transform: scale(1.05); filter: none; }
.kc-gal__item[hidden] { display: none; }
.kc-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3,4,5,.96); color: var(--kc-text); }
.kc-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.kc-lightbox::backdrop { background: rgba(3,4,5,.9); }
.kc-lightbox__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); object-fit: contain; }
.kc-lightbox__cap { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; color: var(--kc-muted); font-size: 14px; padding: 0 70px; }
.kc-lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #4a5561; background: rgba(5,6,7,.7); color: var(--kc-text); font: 400 28px/1 var(--kc-body); cursor: pointer; }
.kc-lightbox__btn:hover { border-color: var(--kc-blue); }
.kc-lightbox__close { top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); }
.kc-lightbox__prev { left: max(18px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.kc-lightbox__next { right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 1080px) {
  .kc-bike-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .kc-bike-hero__img { max-height: none; }
  .kc-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .kc-bike-hero { padding-block: 100px 48px; }
  .kc-bike-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .kc-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .kc-lightbox__img { max-width: 100vw; max-height: calc(100vh - 160px); }
  .kc-lightbox__prev, .kc-lightbox__next { top: auto; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); transform: none; }
}

.kc-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

@media (max-width: 1080px) {
  .kc-sub-hero__grid, .kc-check, .kc-price, .kc-why { grid-template-columns: 1fr; gap: 36px; }
  .kc-check__copy { position: static; }
  .kc-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 680px) {
  .kc-sub-hero { padding-block: 112px 56px; }
  .kc-sub-hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .kc-sub-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kc-sub-hero__facts li { padding: 14px 10px 0 0; margin-right: 10px; min-width: 0; }
  .kc-sub-hero__facts b { font-size: 19px; }
  .kc-sub-hero__facts span { font-size: 13px; }
  .kc-scan { padding: 16px; }
  .kc-scope, .kc-checklist { grid-template-columns: 1fr; }
  .kc-gallery { grid-auto-rows: 160px; }
  .kc-gallery figure:first-child { grid-row: span 1; }
  .kc-table { font-size: 15px; }
  .kc-table th, .kc-table td { padding: 14px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-scan__bar { animation: none; opacity: 0; }
  .kc-scan__readout i { animation: none; }
}

@media (max-width: 1080px) {
  .kc-artist { grid-template-columns: 1fr; gap: 32px; }
  .kc-spray { justify-self: stretch; width: 100%; max-height: 520px; }
  .kc-gallery--paint figure:nth-child(6), .kc-gallery--paint figure:nth-child(7) { grid-column: span 1; }
  .kc-gallery--paint figure:nth-child(7) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .kc-tank-preview { padding: 16px; }
  .kc-quote { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .kc-spray__color { animation: none; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Wejścia elementów ---------- */
.kc-reveal { opacity: 1; transform: none; }
.js .kc-reveal.is-pending { opacity: 0; transform: translateY(28px); }
.js .kc-reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }

/* Węższe laptopy: 8 pozycji menu, więc mniejsze odstępy i bez numeru telefonu w nagłówku (jest w przycisku i stopce) */
@media (min-width: 1081px) and (max-width: 1280px) { .kc-nav { gap: 20px; } .kc-header__tel { display: none; } }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .kc-nav, .kc-header__tel { display: none; }
  .kc-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .kc-nav.is-open { display: flex; position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--kc-black); border-bottom: 1px solid var(--kc-line); padding: 8px var(--kc-gutter-r) 16px var(--kc-gutter); }
  .kc-nav.is-open a { padding: 14px 0; border-top: 1px solid var(--kc-line); font-size: 18px; }
  .kc-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-xray__pin { grid-template-columns: 1fr; align-content: center; gap: 18px; height: auto; min-height: 100svh; padding-block: 90px 40px; }
  .kc-xray__steps { display: none; }
  .kc-paint__grid, .kc-shop, .kc-faq-grid, .kc-contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .kc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .kc-builds__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
  .kc-build { scroll-snap-align: start; }
  .kc-helmets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body.kc { font-size: 16px; }
  .kc-header .kc-btn { display: none; }
  .kc-brand img { height: 36px; }
  .kc-hero__content { justify-content: flex-start; padding-top: 120px; }
  .kc-hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .kc-hero__actions .kc-btn { width: 100%; }
  .kc-ride__bike { width: 118vw; left: 50%; bottom: calc(12% - 4px); }
  .kc-road { bottom: 12%; }
  .kc-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-trust__item { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--kc-line); }
  .kc-trust__item:nth-child(-n+2) { border-top: 0; }
  .kc-trust__item:nth-child(odd) { padding-left: 0; }
  .kc-trust__item b { font-size: 28px; }
  .kc-services { grid-template-columns: 1fr; }
  .kc-xray__pin { padding-block: 84px 96px; gap: 12px; }
  .kc-xray__copy { gap: 12px; }
  .kc-xray__copy .kc-lead { font-size: 15px; }
  .kc-xray__note { display: none; }
  .kc-card__img { aspect-ratio: 16 / 10; }
  .kc-steps { grid-template-columns: 1fr; }
  .kc-team { grid-template-columns: 1fr; }
  .kc-sale { grid-template-columns: 1fr; }
  .kc-paint__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .kc-paint__mosaic figure:nth-child(4) { grid-column: span 1; }
  .kc-paint__mosaic figure:nth-child(5) { grid-column: 1 / -1; }
  .kc-helmets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-form { grid-template-columns: 1fr; }
  .kc-dock {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--kc-gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--kc-gutter);
    background: rgba(5,6,7,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--kc-line);
  }
  .kc-dock .kc-btn { min-height: 50px; padding: 0 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .kc-reveal.is-pending { opacity: 1; transform: none; }
  .kc-card__img img, .kc-helmets img { transition: none; }
}

/* Telefon: karuzele zamiast zdjęć jedno pod drugim (lakiernia, kaski, zespół) */
.kc-dots { display: none; }
@media (max-width: 680px) {
  [data-carousel-m] {
    display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--kc-gutter)) calc(-1 * var(--kc-gutter-r));
    padding-inline: var(--kc-gutter) var(--kc-gutter-r); scroll-padding-inline: var(--kc-gutter);
    padding-block: 6px;
  }
  [data-carousel-m]::-webkit-scrollbar { display: none; }
  [data-carousel-m] > * {
    flex: 0 0 74%; min-width: 0; scroll-snap-align: center;
    transform: scale(.9); opacity: .5; transition: transform .35s ease, opacity .35s ease;
  }
  [data-carousel-m] > .is-active { transform: none; opacity: 1; }
  .kc-paint__mosaic[data-carousel-m] > figure { aspect-ratio: 4 / 5; grid-row: auto; grid-column: auto; }
  .kc-paint__mosaic[data-carousel-m] figcaption { font-size: 11px; padding: 7px 10px; }
  .kc-helmets[data-carousel-m] { margin-top: 28px; }
  .kc-helmets[data-carousel-m] > figure { flex-basis: 62%; aspect-ratio: 3 / 4; }
  .kc-team[data-carousel-m] > .kc-person { flex-basis: 70%; }
  .kc-team[data-carousel-m] .kc-person__img { aspect-ratio: 4 / 5; }
  .kc-team[data-carousel-m] .kc-person h3 { font-size: 28px; }
  .kc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .kc-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .kc-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #4a5561; transition: width .3s, background .3s; }
  .kc-dots button[aria-current="true"]::before { width: 22px; background: var(--kc-blue); }
}
@media (max-width: 680px) and (prefers-reduced-motion: reduce) { [data-carousel-m] > * { transition: none; } }

/* Telefon: film w tle podstron widoczny pod tekstem (przyciemnienie od góry, jaśniej w środku) */
@media (max-width: 1080px) {
  .kc-sub-hero.has-loop .kc-sub-hero__bg { bottom: auto; height: min(74vh, 600px); }
  .kc-sub-hero.has-loop .kc-sub-hero__bg::after { background: linear-gradient(180deg, rgba(5,6,7,.55) 0%, rgba(5,6,7,.25) 30%, rgba(5,6,7,.45) 62%, var(--kc-black) 100%); }
  .kc-sub-hero.has-loop h1, .kc-sub-hero.has-loop .kc-sub-hero__lead, .kc-sub-hero.has-loop p { text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.9); }
  .kc-sub-hero--paint.has-loop .kc-spray, .kc-sub-hero--helmet.has-loop .kc-fan { display: none; }
  .kc-sub-hero__bg .kc-loop { object-position: 50% 50%; }
  .kc-sub-hero--paint .kc-sub-hero__bg .kc-loop { object-position: 22% 50%; }
}

/* Telefon: proces krok po kroku zwięźlej (cyfra obok tekstu) */
@media (max-width: 680px) {
  .kc-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 18px 0 16px; }
  .kc-steps li .n { grid-row: span 2; font-size: 40px; }
  .kc-steps h3 { font-size: 24px; }
}

/* Zdjęcia: oryginalna jasność, ciemny gradient po bokach (maska wygasza brzegi do czerni).
   Po najechaniu kursorem gradient rozsuwa się poza kadr; na telefonie bez gradientu jest aktywne zdjęcie w karuzeli. */
.kc-card__img, .kc-build__img, .kc-paint__mosaic figure, .kc-helmets figure, .kc-shop__img, .kc-person__img,
.kc-gallery figure, .kc-artist__img, .kc-case__img, .kc-gal__item, .kc-bike-hero__img, .kc-works__stage { background-color: #000; }
.kc-card__img img, .kc-build__img img, .kc-paint__mosaic img, .kc-helmets img, .kc-shop__img img, .kc-person__img img,
.kc-gallery img, .kc-artist__img img, .kc-case__img img, .kc-gal__item img, .kc-bike-hero__img img, .kc-works__img {
  -webkit-mask-image: radial-gradient(ellipse 58% 74% at 50% 50%, #000 52%, rgba(0,0,0,.32) 100%);
          mask-image: radial-gradient(ellipse 58% 74% at 50% 50%, #000 52%, rgba(0,0,0,.32) 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.kc-card__img img, .kc-build__img img, .kc-paint__mosaic img, .kc-helmets img, .kc-shop__img img, .kc-person__img img,
.kc-gallery img, .kc-artist__img img, .kc-case__img img, .kc-gal__item img, .kc-bike-hero__img img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s, -webkit-mask-size .6s ease, mask-size .6s ease;
}
.kc-works__img { transition: opacity .35s, transform .6s, -webkit-mask-size .6s ease, mask-size .6s ease; }
@media (hover: hover) {
  .kc-card:hover .kc-card__img img, .kc-build:hover .kc-build__img img, .kc-paint__mosaic figure:hover img,
  .kc-helmets figure:hover img, .kc-shop__img:hover img, .kc-person:hover .kc-person__img img,
  .kc-gallery figure:hover img, .kc-artist__img:hover img, .kc-case:hover .kc-case__img img,
  .kc-gal__item:hover img, .kc-gal__item:focus-visible img, .kc-bike-hero__img:hover img, .kc-works__stage:hover .kc-works__img {
    -webkit-mask-size: 280% 280%; mask-size: 280% 280%;
  }
}
@media (max-width: 680px) {
  [data-carousel-m] > .is-active img { -webkit-mask-size: 280% 280%; mask-size: 280% 280%; }
}

/* Kaski na stronie głównej: karuzela także na komputerze. Widać trzy kaski, środkowy jest większy i bez gradientu. */
@media (min-width: 681px) {
  .kc-helmets--slider {
    --hw: clamp(240px, 30vw, 500px);
    display: flex; gap: 28px; margin-top: 40px; padding: 34px calc(50% - var(--hw) / 2);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .kc-helmets--slider::-webkit-scrollbar { display: none; }
  .kc-helmets--slider > figure {
    flex: 0 0 var(--hw); aspect-ratio: 4 / 5; scroll-snap-align: center;
    transform: scale(.8); opacity: .6; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s;
  }
  .kc-helmets--slider > figure.is-active { transform: scale(1.06); opacity: 1; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
  .kc-helmets--slider > figure.is-active img { -webkit-mask-size: 280% 280%; mask-size: 280% 280%; }
  .kc-helmets--slider > figure:not(.is-active) { cursor: pointer; }
  .kc-dots--nav { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; }
  .kc-dots--nav button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .kc-dots--nav button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #4a5561; transition: width .3s, background .3s; }
  .kc-dots--nav button[aria-current="true"]::before { width: 22px; background: var(--kc-blue); }
}
.kc-dots--nav .kc-dots__arrow { width: 48px; height: 48px; border: 1px solid var(--kc-line); margin-inline: 14px; transition: border-color .25s, background .25s; }
.kc-dots--nav .kc-dots__arrow::before { content: ""; width: 12px; height: 12px; border-radius: 0; background: none; border: solid var(--kc-text); border-width: 0 2px 2px 0; transform: rotate(135deg); margin-left: 4px; }
.kc-dots--nav .kc-dots__arrow--next::before { transform: rotate(-45deg); margin: 0 4px 0 0; }
.kc-dots--nav .kc-dots__arrow:hover { border-color: var(--kc-blue); background: var(--kc-steel); }
@media (max-width: 680px) { .kc-dots--nav .kc-dots__arrow { display: none; } }
@media (min-width: 681px) and (prefers-reduced-motion: reduce) { .kc-helmets--slider > figure { transition: none; } }

/* Strona główna, lakiernia i kaski: film jako główny obraz, prawdziwe prace jako ciasne zbliżenia */
.kc-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.kc-feature--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.kc-feature--rev .kc-feature__media { order: 2; }
.kc-feature__media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border: 1px solid var(--kc-line); box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.kc-feature__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 85% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%), linear-gradient(0deg, rgba(5,6,7,.6) 0%, transparent 30%); }
.kc-feature__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-feature__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 500 11px var(--kc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kc-text); }
.kc-feature__tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--kc-paint-light); box-shadow: 0 0 12px var(--kc-paint-light); vertical-align: 1px; }
.kc-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.5vw, 48px); }
.kc-details figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.kc-details img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), -webkit-mask-size .6s ease, mask-size .6s ease;
  -webkit-mask-image: radial-gradient(ellipse 58% 74% at 50% 50%, #000 52%, rgba(0,0,0,.32) 100%); mask-image: radial-gradient(ellipse 58% 74% at 50% 50%, #000 52%, rgba(0,0,0,.32) 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.kc-details figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; font: 600 18px/1.2 var(--kc-display); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.kc-details figcaption span { display: block; margin-bottom: 4px; font: 500 10px var(--kc-mono); letter-spacing: .16em; color: var(--kc-paint-light); }
@media (hover: hover) {
  .kc-details figure:hover img { transform: scale(1.05); -webkit-mask-size: 280% 280%; mask-size: 280% 280%; }
}
@media (min-width: 681px) { .kc-helmets--slider > figure { aspect-ratio: 1 / 1; } }
@media (max-width: 900px) {
  .kc-feature, .kc-feature--rev { grid-template-columns: 1fr; }
  .kc-feature--rev .kc-feature__media { order: 0; }
}
@media (max-width: 680px) {
  .kc-feature__media { aspect-ratio: 16 / 11; margin-inline: calc(-1 * var(--kc-gutter)) calc(-1 * var(--kc-gutter-r)); border-inline: 0; }
  .kc-details[data-carousel-m] > figure { flex-basis: 70%; }
  .kc-details[data-carousel-m] > .is-active img { -webkit-mask-size: 280% 280%; mask-size: 280% 280%; }
  .kc-helmets[data-carousel-m] > figure { aspect-ratio: 1 / 1; }
}

/* ---------- Poradnik: spis wpisów i szablon wpisu ---------- */
.kc-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kc-postgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kc-postcard { display: flex; flex-direction: column; background: var(--kc-steel); border: 1px solid var(--kc-line); transition: border-color .25s, transform .4s cubic-bezier(.2,.7,.2,1); }
.kc-postcard:hover { border-color: var(--kc-blue); transform: translateY(-4px); }
.kc-postcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.kc-postcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.kc-postcard:hover .kc-postcard__img img { transform: scale(1.05); }
.kc-postcard__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 26px; flex: 1; }
.kc-postcard__body h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; margin: 0; }
.kc-postcard__body h2 a { color: var(--kc-text); text-decoration: none; }
.kc-postcard__body h2 a::after { content: ""; position: absolute; inset: 0; }
.kc-postcard { position: relative; }
.kc-postcard__body p { margin: 0; color: var(--kc-muted); }
.kc-postcard__meta { font: 500 11px var(--kc-mono); letter-spacing: .12em; text-transform: uppercase; }
.kc-postcard__meta span { color: var(--kc-blue); }
.kc-postcard__author { margin-top: auto !important; padding-top: 8px; font-size: 14px; color: var(--kc-dim) !important; }
.kc-post__ask { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 32px; border: 1px solid var(--kc-line); background: var(--kc-steel); }
.kc-post__ask .kc-disp { margin: 8px 0 0; font-size: clamp(22px, 2.4vw, 32px); max-width: 30ch; }

.kc-post__head { padding-block: 140px 36px; }
.kc-post__headin { display: flex; flex-direction: column; gap: 20px; }
.kc-post__head h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; max-width: 20ch; margin: 0; }
.kc-post__byline { display: flex; align-items: center; gap: 14px; }
.kc-post__byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--kc-line); }
.kc-post__byline div { display: flex; flex-direction: column; gap: 2px; }
.kc-post__byline span { color: var(--kc-dim); font-size: 14px; }
.kc-post__hero { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; border: 1px solid var(--kc-line); background: #000; }
.kc-post__hero img { width: 100%; height: 100%; object-fit: cover; }
.kc-post__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: 56px 40px; align-items: start; }
.kc-post__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.kc-post__toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--kc-line); }
.kc-post__toc a { display: block; padding: 8px 0 8px 16px; color: var(--kc-muted); text-decoration: none; font-size: 15px; margin-left: -1px; border-left: 2px solid transparent; }
.kc-post__toc a:hover { color: var(--kc-text); border-left-color: var(--kc-blue); }
.kc-post__cta { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--kc-line); background: var(--kc-steel); }
.kc-post__cta .kc-disp { margin: 0 0 6px; font-size: 24px; line-height: 1.05; }
.kc-post__body { max-width: 72ch; font-size: 18px; line-height: 1.65; gap: 0; }
.kc-post__short { padding: 24px 26px; border-left: 3px solid var(--kc-blue); background: var(--kc-steel); margin-bottom: 16px; }
.kc-post__short p:last-child { margin-top: 10px; color: var(--kc-text); font-size: 19px; }
.kc-post__sec { padding-top: 40px; scroll-margin-top: 100px; display: flex; flex-direction: column; gap: 16px; }
.kc-post__sec h2 { font: 800 clamp(30px, 3vw, 42px)/1.05 var(--kc-display); text-transform: uppercase; margin: 0 0 4px; color: var(--kc-text); }
.kc-post__sec ul, .kc-post__sec ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.kc-post__sec li::marker { color: var(--kc-blue); }
.kc-post__sec b { color: var(--kc-text); }
.kc-post__sec .kc-table td { white-space: normal; }
.kc-post__author { display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 26px; border: 1px solid var(--kc-line); }
.kc-post__author img { width: 96px; height: 96px; object-fit: cover; flex: none; }
.kc-post__author b { display: block; margin: 6px 0; font-size: 19px; color: var(--kc-text); }
.kc-post__author p { margin: 0; color: var(--kc-muted); font-size: 16px; }
.kc-post__next { border-top: 1px solid var(--kc-line); }
@media (max-width: 1080px) {
  .kc-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kc-post__grid { grid-template-columns: 1fr; }
  .kc-post__aside { position: static; }
  .kc-post__cta { display: none; }
}
@media (max-width: 680px) {
  .kc-postgrid, .kc-postgrid--2 { grid-template-columns: 1fr; }
  .kc-post__head { padding-block: 110px 24px; }
  .kc-post__hero { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--kc-gutter)) calc(-1 * var(--kc-gutter-r)); border-inline: 0; }
  .kc-post__body { font-size: 17px; }
  .kc-post__author { flex-direction: column; }
  .kc-post__ask { padding: 24px; }
}

/* Wersja serwerowa: pułapka na boty w formularzu i komunikat błędu */
.kc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kc-form__err { margin: 0; color: #ff8a8a; }
