:root {
  --void: #05070c;
  --void-2: #0b0f18;
  --void-3: #121729;
  --aurora-a: #7c6cf0;
  --aurora-b: #2fd6c8;
  --gold: #f0b94a;
  --gold-dim: #b8863a;
  --text: #f6f4ee;
  --text-dim: #a2a9bd;
  --line: rgba(246, 244, 238, 0.09);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(246, 244, 238, 0.1);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-gold: 0 0 40px -6px rgba(240, 185, 74, 0.55);
}

:root[data-theme="light"] {
  --void: #f5f2ea;
  --void-2: #ece7d9;
  --void-3: #e2dcc9;
  --text: #161311;
  --text-dim: #6b6255;
  --line: rgba(22, 19, 17, 0.1);
  --glass: rgba(22, 19, 17, 0.025);
  --glass-border: rgba(22, 19, 17, 0.12);
  --shadow: 0 40px 80px -30px rgba(22, 19, 17, 0.25);
  --aurora-a: #a99af5;
  --aurora-b: #4fd0c2;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --void: #f5f2ea;
    --void-2: #ece7d9;
    --void-3: #e2dcc9;
    --text: #161311;
    --text-dim: #6b6255;
    --line: rgba(22, 19, 17, 0.1);
    --glass: rgba(22, 19, 17, 0.025);
    --glass-border: rgba(22, 19, 17, 0.12);
    --shadow: 0 40px 80px -30px rgba(22, 19, 17, 0.25);
    --aurora-a: #a99af5;
    --aurora-b: #4fd0c2;
  }
}

* { box-sizing: border-box; }
/*
 * header.nav is fixed and sits on top of the page: padding: 1.3rem 3rem (20.8px top/bottom)
 * plus its tallest inline content (the "AUTO DREAM" wordmark at 1.02rem, ~1.2 normal line-height
 * ≈ 19-20px) plus a 1px bottom border ≈ 62-64px computed minimum. scroll-padding-top is set a
 * bit above that computed minimum (84px) so snap targets and anchor links (#kontakt, #obszary)
 * never land with their heading hidden under the nav.
 */
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: "Segoe UI", "Segoe UI Variable Text", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.serif { font-family: "Palatino Linotype", "Iowan Old Style", Palatino, Georgia, serif; }
.mono { font-family: Consolas, "SF Mono", ui-monospace, monospace; }

a { color: inherit; }
::selection { background: var(--gold); color: var(--void); }

svg.icon { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- ambient aurora (two-layer: outer = scroll parallax via JS, inner = idle drift via CSS) ---------- */

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-p { position: absolute; inset: 0; will-change: transform; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; top: -14vw; left: -10vw; background: var(--aurora-a); animation: drift1 34s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; top: 30vh; right: -14vw; background: var(--aurora-b); animation: drift2 40s ease-in-out infinite; }
.aurora .a3 { width: 34vw; height: 34vw; bottom: -12vw; left: 20vw; background: var(--gold); opacity: 0.16; animation: drift3 46s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6vw, 8vh); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7vw, -5vh); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, -6vh) scale(1.12); } }

.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,185,74,0.10), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1; left: 50%; top: 40%;
  transition: opacity 300ms ease;
}
@media (hover: none) { .cursor-glow { display: none; } }

.progressbar {
  position: fixed; top: 0; left: 0; height: 2px; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--gold), var(--aurora-b));
  z-index: 40; transition: width 60ms linear;
}

/* ---------- load-in choreography (hero entrance) ---------- */

@keyframes fadeUpIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.load-in { opacity: 0; animation: fadeUpIn 900ms cubic-bezier(.2,.7,.2,1) both; }
.load-in.d1 { animation-delay: .05s; }
.load-in.d2 { animation-delay: .24s; }
.load-in.d3 { animation-delay: .44s; }
.load-in.d4 { animation-delay: .64s; }
.load-in.d5 { animation-delay: .86s; }

@keyframes heroCanvasIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 0.9; transform: scale(1); } }
.hero canvas { animation: heroCanvasIn 1500ms ease-out .1s both; }

/* ---------- word-level stagger reveal (opt-in: .stagger-words, JS-driven via initTextStagger) ---------- */

.stagger-words .stagger-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms cubic-bezier(.2,.7,.2,1), transform 560ms cubic-bezier(.2,.7,.2,1);
}
.stagger-words.stagger-in .stagger-word { opacity: 1; transform: translateY(0); }

/* ---------- nav ---------- */

header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 3rem;
  backdrop-filter: blur(16px);
  /* nav always overlays the dark cinematic hero, so it stays dark in BOTH themes
     (a theme-tied colour turned cream/washed-out on light-mode phones). */
  background: rgba(9, 11, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 6px 24px -12px rgba(0,0,0,0.7);
}
/* force legible light chrome inside the always-dark nav, regardless of page theme */
header.nav .wordmark { color: #f6f4ee; }
header.nav nav.links a { color: #c2c6d4; }
header.nav nav.links a:hover, header.nav nav.links a.current { color: #ffffff; }
header.nav .clock { color: #aeb4c4; }
.wordmark { font-weight: 700; letter-spacing: 0.04em; font-size: 1.02rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.wordmark .logomark { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.wordmark .logomark path { animation: logoSpin 24s linear infinite; transform-origin: 16px 16px; }
@media (prefers-reduced-motion: reduce) { .wordmark .logomark path { animation: none; } }
@keyframes logoSpin { to { transform: rotate(360deg); } }
.wordmark span { background: linear-gradient(120deg, var(--gold), var(--aurora-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }

nav.links { display: flex; gap: 2.2rem; font-size: 0.85rem; }
nav.links a { text-decoration: none; color: var(--text-dim); position: relative; padding-bottom: 3px; transition: color 200ms ease; }
nav.links a.current { color: var(--text); }
nav.links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right 260ms cubic-bezier(.2,.7,.2,1);
}
nav.links a:hover { color: var(--text); }
nav.links a:hover::after, nav.links a.current::after { right: 0; }

/* stronger visual separation between nav tabs + neon Studio tab */
nav.links { gap: 1.3rem; }
nav.links a { padding: 0.35rem 0; white-space: nowrap; }
nav.links a + a { padding-left: 1.3rem; border-left: 1px solid var(--glass-border); }
nav.links a.nav-neon {
  color: #ff57d9; font-weight: 700; letter-spacing: 0.03em;
  text-shadow: 0 0 5px rgba(255,87,217,0.6), 0 0 12px rgba(41,224,255,0.4);
  animation: neonPulse 3.6s ease-in-out infinite;
}
nav.links a.nav-neon::after { background: linear-gradient(90deg, #ff57d9, #29e0ff); height: 2px; }
nav.links a.nav-neon:hover, nav.links a.nav-neon.current { color: #29e0ff; text-shadow: 0 0 7px rgba(41,224,255,0.9), 0 0 16px rgba(255,87,217,0.6); }
@keyframes neonPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.82; } }
@media (prefers-reduced-motion: reduce) { nav.links a.nav-neon { animation: none; } }
@media (max-width: 1120px) { nav.links { gap: 1rem; font-size: 0.8rem; } nav.links a + a { padding-left: 1rem; } }
/* language switch pill */
nav.links a.lang-switch { margin-left: 0.4rem; padding: 0.28rem 0.72rem; border: 1px solid var(--glass-border); border-radius: 100px; font-family: Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-dim); }
nav.links a.lang-switch:hover { color: var(--text); border-color: var(--gold); }
nav.links a.lang-switch::after { content: none; }

.clock { font-family: Consolas, monospace; font-size: 0.72rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; }
.clock .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aurora-b); box-shadow: 0 0 10px 2px var(--aurora-b); }
/* language pills grouped so they can sit as a row (desktop inline, mobile bottom of menu) */
.lang-row { display: inline-flex; align-items: center; gap: 0; }

/* hamburger toggle — hidden on desktop; on mobile a clear gold "☰ MENU" pill so it's unmissable */
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 0.45rem;
  height: 42px; padding: 0 0.95rem; border-radius: 100px;
  border: 1.5px solid var(--gold); background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold); font-family: inherit; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  cursor: pointer; animation: navPulse 2.4s ease-in-out 3;
}
.nav-toggle-label { text-transform: uppercase; }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.nav-toggle .ic-close { display: none; }
.nav-toggle:hover { background: color-mix(in srgb, var(--gold) 28%, transparent); }
.nav-toggle:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 2px; }
header.nav.nav-open .nav-toggle { animation: none; }
header.nav.nav-open .nav-toggle .ic-open { display: none; }
header.nav.nav-open .nav-toggle .ic-close { display: block; }
header.nav.nav-open .nav-toggle-label { display: none; }
@keyframes navPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,185,74,0); } 50% { box-shadow: 0 0 0 5px rgba(240,185,74,0.22); } }
@media (prefers-reduced-motion: reduce) { .nav-toggle { animation: none; } }

@media (max-width: 820px) {
  header.nav { padding: 0.9rem 1.3rem; flex-wrap: wrap; }
  .clock { display: none; }
  .nav-toggle { display: inline-flex; }

  /* nav.links becomes a full-width dropdown drawer, revealed by the hamburger */
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 11, 15, 0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.8);
    padding: 0.4rem 1.3rem 1.1rem;
  }
  header.nav.nav-open nav.links { display: flex; }
  nav.links a { padding: 1rem 0.2rem; font-size: 1rem; width: 100%; }
  nav.links a + a { padding-left: 0.2rem; border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
  nav.links a::after { display: none; }
  .lang-row { display: flex; gap: 0.5rem; padding-top: 0.9rem; margin-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.07); }
  nav.links a.lang-switch { width: auto; padding: 0.45rem 0.9rem; border-top: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: 88svh; display: flex; flex-direction: column; justify-content: center; padding: 9rem 3rem 3rem; z-index: 2; scroll-snap-align: start; }
.hero.hero--sub { min-height: 54svh; }

/* ---------- scroll cue (bottom-center of hero, invites the next section) ---------- */

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; padding: 0;
  border: 1px solid var(--glass-border); background: var(--glass); color: var(--gold);
  cursor: pointer; backdrop-filter: blur(6px);
  transition: opacity 300ms ease, border-color 220ms ease, transform 220ms ease;
}
.scroll-cue svg { width: 20px; height: 20px; animation: scrollCueBounce 1.8s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--gold); transform: translateX(-50%) translateY(-3px); }
.scroll-cue:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 3px; }
@keyframes scrollCueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 520px) { .scroll-cue { bottom: 1.1rem; width: 40px; height: 40px; } .scroll-cue svg { width: 17px; height: 17px; } }

#globeCanvas, #bgCanvas, #contactCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }

.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--glass-border); background: var(--glass); border-radius: 100px;
  padding: 0.45rem 1rem 0.45rem 0.6rem; font-size: 0.75rem; letter-spacing: 0.02em;
  color: var(--text-dim); margin-bottom: 2.2rem;
  transition: transform 260ms ease-out;
}
.hero-tag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px var(--gold); }

h1.hero-title { font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: 0.96; font-weight: 500; margin: 0 0 1.6rem 0; text-wrap: balance; max-width: 20ch; transition: transform 300ms ease-out; }
h1.hero-title.smaller { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }

.cycle-wrap { display: inline-grid; }
.cycle-wrap span.cycle-word {
  grid-area: 1 / 1;
  background: linear-gradient(120deg, var(--gold), #ffd98a 45%, var(--aurora-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms cubic-bezier(.2,.7,.2,1);
  font-style: italic;
}
.cycle-wrap span.cycle-word.active { opacity: 1; transform: translateY(0); }
.grad-text {
  background: linear-gradient(120deg, var(--gold), #ffd98a 45%, var(--aurora-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}

.hero-sub { max-width: 50ch; font-size: 1.18rem; line-height: 1.65; color: var(--text-dim); margin-bottom: 2.8rem; }

.eyebrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--gold); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.6rem;
  transition: transform 260ms ease-out;
}
.eyebrow-link svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.eyebrow-link:hover svg { transform: translateX(4px); }

.cta-row { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.btn {
  position: relative; font-size: 0.92rem; font-weight: 600; text-decoration: none;
  padding: 1rem 1.8rem; border-radius: 100px; border: 1px solid var(--gold);
  color: var(--void); background: var(--gold); overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease;
}
.btn:hover { box-shadow: var(--glow-gold); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--glass-border); }
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 3px; }

.marquee {
  position: relative; padding: 1.1rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee .track { display: inline-flex; white-space: nowrap; animation: scroll-x 30s linear infinite; }
.marquee span { font-size: 0.98rem; color: var(--text-dim); padding: 0 2rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.marquee span::before { content: "◆"; font-size: 0.5rem; color: var(--gold); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

section.pillar { position: relative; z-index: 2; padding: 8rem 3rem; max-width: 1240px; margin: 0 auto; scroll-snap-align: start; }
section.pillar.tight { padding-top: 4rem; }

.divider { position: relative; max-width: 1240px; margin: 0 auto; height: 1px; overflow: visible; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.divider::after {
  content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aurora-b); box-shadow: 0 0 10px 2px var(--aurora-b); transform: translateY(-50%);
  animation: travel 6.5s linear infinite;
}
@keyframes travel { from { left: -4px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 4px); opacity: 0; } }

.pillar-head { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.pillar-head.left { text-align: left; margin: 0 0 3.5rem; max-width: none; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.pillar-head h2 { font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; margin: 0 0 1.1rem 0; text-wrap: balance; }
.pillar-head p { color: var(--text-dim); line-height: 1.7; font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }

.glass-card {
  position: relative; border-radius: 20px; border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, var(--glass), transparent 60%);
  padding: 2rem 1.8rem; overflow: hidden;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease, box-shadow 320ms ease;
  will-change: transform;
}
.glass-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  pointer-events: none; /* decorative border ring must never intercept clicks on inputs inside the card */
  background: linear-gradient(140deg, var(--gold), transparent 40%, var(--aurora-b) 120%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 320ms ease;
}
.glass-card:hover { box-shadow: var(--shadow); border-color: var(--glass-border); }
.glass-card:hover::before { opacity: 1; }
.glass-card.linkable { cursor: pointer; }

.glass-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--gold); margin-bottom: 1.3rem;
}
.glass-card .route-tag { font-family: Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--aurora-b); margin-bottom: 0.6rem; }
.glass-card h3 { font-size: 1.15rem; margin: 0 0 0.7rem 0; font-weight: 600; }
.glass-card p { font-size: 0.93rem; line-height: 1.6; color: var(--text-dim); margin: 0; }
.glass-card .more { margin-top: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; }
.glass-card .badge-new {
  position: absolute; top: 1.6rem; right: 1.6rem; font-size: 0.62rem; letter-spacing: 0.08em; font-weight: 700;
  background: var(--gold); color: var(--void); border-radius: 100px; padding: 0.25rem 0.65rem;
}

/* topic teaser cards (homepage hub) */

.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.topic-card {
  position: relative; border-radius: 24px; border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, var(--glass), transparent 65%);
  padding: 2.4rem 2rem; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 1rem; min-height: 300px;
  transition: box-shadow 320ms ease, border-color 320ms ease; will-change: transform;
}
.topic-card .num { font-family: Consolas, monospace; color: var(--gold); font-size: 0.85rem; }
.topic-card h3 { font-family: "Palatino Linotype", Georgia, serif; font-size: 1.6rem; font-weight: 500; margin: 0; }
.topic-card p { color: var(--text-dim); line-height: 1.6; font-size: 0.96rem; margin: 0; flex: 1; }
.go, .topic-card .go { font-size: 0.85rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.go svg, .topic-card .go svg { width: 16px; height: 16px; transition: transform 220ms ease; }
.go:hover svg, .topic-card:hover .go svg { transform: translateX(5px); }
.topic-card:hover { box-shadow: var(--shadow); }

/* motoryzacja */

.moto-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 880px) { .moto-layout { grid-template-columns: 1fr; } }
.moto-copy p { color: var(--text-dim); line-height: 1.75; font-size: 1.02rem; margin: 0 0 1.3rem 0; }
.pkd-tag {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: Consolas, monospace; font-size: 0.75rem;
  letter-spacing: 0.05em; border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.5rem 1rem; margin-bottom: 1.6rem; color: var(--text-dim);
}
.pkd-tag b { color: var(--gold); font-weight: 700; }

.stat-panel { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.stat-card { border-radius: 20px; border: 1px solid var(--glass-border); background: linear-gradient(160deg, var(--glass), transparent 70%); padding: 2rem 1.6rem; text-align: center; }
.stat-card .num {
  font-family: "Palatino Linotype", Georgia, serif; font-size: clamp(2.3rem, 8.5vw, 3.6rem); font-weight: 500;
  background: linear-gradient(120deg, var(--gold), var(--aurora-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1; font-variant-numeric: tabular-nums; /* 1.1 (not 1) so gradient-clipped glyphs aren't cut */
}
/* mono value cards (e.g. "PL5223165723", "CN—PL—UE", "FOB/CFR/CIF") — auto-shrink + wrap so they never clip */
.stat-card .num.small {
  font-size: clamp(1rem, 4.2vw, 1.55rem); line-height: 1.3; letter-spacing: 0;
  word-break: break-word; overflow-wrap: anywhere;
}
.stat-card .label { margin-top: 0.7rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

.service-list { display: grid; gap: 1rem; margin-top: 2rem; }
.service-list li { list-style: none; display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.service-list li:first-child { border-top: none; }
.service-list .icon-badge { flex-shrink: 0; width: 42px; height: 42px; }
.service-list h4 { margin: 0 0 0.3rem 0; font-size: 1rem; }
.service-list p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* ---------- process timeline (numbered steps, shared by trading + motoryzacja + produkty) ---------- */

.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; counter-reset: step; }
.process-step { position: relative; padding-top: 3rem; }
.process-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: Consolas, monospace; font-size: 1.7rem; color: var(--gold); opacity: 0.55; }
.process-step h4 { margin: 0 0 0.5rem 0; font-size: 0.98rem; }
.process-step p { margin: 0; font-size: 0.87rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- small bullet feature list (inside glass-card) ---------- */

.feature-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.feature-list li { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; padding-left: 1.1rem; position: relative; }
.feature-list li::before { content: "◆"; position: absolute; left: 0; top: 0.05em; font-size: 0.55rem; color: var(--gold); }

/* ---------- category showcase (image + content row, alternating) ---------- */

.category-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.2rem; align-items: center; margin-bottom: 5.5rem; }
.category-row:last-child { margin-bottom: 0; }
.category-row.reverse .category-media { order: 2; }
@media (max-width: 900px) { .category-row, .category-row.reverse .category-media { grid-template-columns: 1fr; order: 0; } }

.category-media { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.category-media img {
  width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 5;
  transition: clip-path 900ms cubic-bezier(.16,.84,.28,1), transform 1500ms cubic-bezier(.16,.84,.28,1);
}
/* scroll-triggered mask wipe + ken-burns: piggybacks on the .category-row's own
   .reveal/.in state (already toggled by initReveal's IntersectionObserver) so no
   extra observer wiring is needed — direction mirrors the alternating row layout. */
.category-row.reveal .category-media img { clip-path: inset(0 100% 0 0); transform: scale(1.08); }
.category-row.reveal.reverse .category-media img { clip-path: inset(0 0 0 100%); }
.category-row.reveal.in .category-media img { clip-path: inset(0 0 0 0); transform: scale(1); }
.category-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45)); pointer-events: none; }
.category-media .tag-overlay {
  position: absolute; bottom: 1.1rem; left: 1.1rem; z-index: 2;
  font-family: Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.1em;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.4rem 0.9rem; color: var(--aurora-b);
}
.category-media .badge-new, .category-media .status { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2; }

/* status chip (produkty.html app cards — base look; per-page <style> blocks may tint .status.building) */
.status {
  font-family: Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.08em;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border); border-radius: 100px;
  padding: 0.35rem 0.85rem; color: var(--text-dim);
}

/* "visit site" link + honest "no site yet" label (produkty.html app cards) */
.site-link {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: var(--gold); text-decoration: none;
  border: 1px solid var(--glass-border); border-radius: 100px; padding: 0.6rem 1.2rem;
  transition: border-color 220ms ease;
}
.site-link svg { width: 16px; height: 16px; transition: transform 220ms ease; }
.site-link:hover { border-color: var(--gold); }
.site-link:hover svg { transform: translateX(4px); }
.coming-soon-label { display: inline-block; margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-dim); font-style: italic; }

.category-content h3 { font-family: "Palatino Linotype", Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; margin: 0 0 0.9rem 0; }
.category-content > p { color: var(--text-dim); line-height: 1.7; font-size: 1rem; margin: 0 0 1.4rem 0; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.6rem; margin: 0 0 1.4rem 0; padding: 1.3rem 1.4rem; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass); }
.spec-grid dt { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; margin: 0; }
.spec-grid dd { margin: 0.2rem 0 0 0; font-family: Consolas, monospace; font-size: 0.86rem; color: var(--text); }

.cert-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-badge { font-family: Consolas, monospace; font-size: 0.68rem; letter-spacing: 0.05em; border: 1px solid var(--glass-border); padding: 0.32rem 0.75rem; border-radius: 100px; color: var(--gold); }

.reg-note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-dim); border-left: 2px solid var(--aurora-b); padding-left: 0.9rem; }

/* ---------- contact page (kontakt.html) + contact forms (kontakt.html, motoryzacja.html inquiry) ---------- */

.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-card .route-tag { margin-bottom: 1rem; }
.info-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; border-top: none; }
.info-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.info-value { font-size: 1.02rem; }
.info-value a { text-decoration: none; color: var(--text); border-bottom: 1px solid var(--glass-border); transition: color 200ms ease, border-color 200ms ease; }
.info-value a:hover { color: var(--gold); border-color: var(--gold); }
.info-note { margin: 0; font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }

.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 0.85rem 1rem; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { cursor: pointer; color: var(--text); background-color: var(--void-2); }
/* the native dropdown popup renders with its own background — force legible option
   colors (otherwise light text lands on the browser's default white list) */
.form-field select option { background-color: var(--void-2); color: var(--text); }
.form-field select option:checked, .form-field select option:hover { background-color: var(--void-3); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
button.btn { appearance: none; font-family: inherit; cursor: pointer; align-self: flex-start; }
.form-note { margin: -0.6rem 0 0; font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }

/* ==========================================================================
   CINEMATIC SCROLL-SCRUB HERO  (data-cine)
   A full-screen <video> pinned via a sticky stage inside a tall scroll track.
   JS (initCineHero) drives video.currentTime from scroll progress and toggles
   caption cues by their data-in/data-out windows. Degrades to a static poster
   under reduced-motion / no-video (see .cine-hero.is-static).
   ========================================================================== */

.cine-hero {
  position: relative; z-index: 2; height: 100svh; margin-top: -1px;
  /* cine-hero is always a dark cinematic surface — force light text/chrome
     regardless of the page's light/dark theme, while keeping each page's
     own accent hues (--gold / --aurora-b) for the gradient headline. */
  --text: #f6f4ee;
  --text-dim: #c2c6d4;
  --glass-border: rgba(246, 244, 238, 0.16);
  color: var(--text);
}

.cine-stage {
  position: relative; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--void);
}

.cine-video, .cine-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background: var(--void);
}
/* subtle idle drift so the frame breathes even when not scrubbing */
.cine-video { transform: scale(1.04); }
.cine-poster { z-index: 0; }
.cine-video { z-index: 1; opacity: 0; transition: opacity 700ms ease; }
.cine-video.is-ready { opacity: 1; }

/* cinematic grade: vignette + gradient scrims top & bottom for legible type */
.cine-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(3,4,8,0.55) 100%),
    linear-gradient(180deg, rgba(3,4,8,0.55) 0%, transparent 22%, transparent 60%, rgba(3,4,8,0.82) 100%);
}
.cine-grain {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift { 0%{transform:translate(0,0)} 100%{transform:translate(6%,-4%)} }

/* fixed chrome inside the stage — edition line, section marker */
.cine-frame {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  padding: 6.4rem 3rem 2.4rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cine-frame .row { display: flex; justify-content: space-between; align-items: flex-start; }
.cine-tagline { font-family: Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); }
.cine-edition { font-family: Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-align: right; }

/* caption layer — each .cine-cap fades/slides within its own scroll window */
.cine-captions { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.cine-cap {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(calc(-50% + 40px));
  opacity: 0; transition: opacity 520ms ease, transform 640ms cubic-bezier(.16,.84,.28,1);
  padding: 0 3rem; text-align: center;
}
.cine-cap.is-live { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.cine-cap-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 2.6rem 2rem; }
/* soft dark halo behind the caption so text stays legible over any bright video frame */
.cine-cap-inner::before {
  content: ""; position: absolute; inset: -4% -8%; z-index: -1;
  background: radial-gradient(ellipse 62% 66% at 50% 50%, rgba(3,4,8,0.72), rgba(3,4,8,0.4) 52%, transparent 76%);
  filter: blur(14px);
}
.cine-num { font-family: Consolas, monospace; font-size: 0.8rem; letter-spacing: 0.28em; color: var(--gold); display: block; margin-bottom: 1.4rem; }
.cine-title {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; font-weight: 500;
  margin: 0; text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.7);
}
.cine-title .grad {
  background: linear-gradient(120deg, var(--gold), #ffe6ac 45%, var(--aurora-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
  padding-bottom: 0.08em; /* room for italic descenders so background-clip:text doesn't cut them */
}
/* italic/gradient headings: give clipped glyphs breathing room so nothing is cut off */
.grad-text, .cycle-wrap span.cycle-word { padding-bottom: 0.06em; }
/* long mono tokens wrap instead of overflowing/clipping on narrow screens */
.spec-grid dd, .cable-card .meta span, .cert-badge, .info-value { overflow-wrap: anywhere; }
.cine-lead { margin: 1.6rem auto 0; max-width: 46ch; font-size: clamp(1rem,1.6vw,1.22rem); line-height: 1.65; color: rgba(246,244,238,0.82); }
.cine-cap .cta-row { justify-content: center; margin: 2.4rem 0 0; }

/* first caption also carries the entrance choreography on load */
.cine-cap.cine-cap--intro { transform: translateY(-50%); }

/* thin scrub progress rail at the very bottom of the stage */
.cine-rail { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 7; background: rgba(246,244,238,0.08); }
.cine-rail > span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--aurora-b)); box-shadow: 0 0 12px var(--gold); }

/* running marquee strip pinned near the bottom (echoes the reference "COLOR IN MOTION") */
.cine-strip {
  position: absolute; left: 0; right: 0; bottom: 2px; z-index: 6; overflow: hidden;
  padding: 0.7rem 0; pointer-events: none;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(3,4,8,0.5));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cine-strip .track { display: inline-flex; white-space: nowrap; animation: scroll-x 26s linear infinite; }
.cine-strip span { font-family: Consolas, monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); padding: 0 1.6rem; }
.cine-strip span::before { content: "✦"; color: var(--gold); margin-right: 1.6rem; }

.cine-hero .scroll-cue { z-index: 7; }

/* ---- cine-hero responsive: scale the whole cinematic system down cleanly on phones ---- */
@media (max-width: 900px) {
  .cine-frame { padding: 5.2rem 1.6rem 2rem; }
  .cine-title { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  .cine-lead { font-size: 1rem; max-width: 38ch; }
}
@media (max-width: 640px) {
  .cine-frame { padding: 4.8rem 1.1rem 2.2rem; }
  .cine-frame .row:last-child { display: none; }           /* drop the secondary chrome row on small phones */
  .cine-tagline, .cine-edition { font-size: 0.62rem; letter-spacing: 0.14em; }
  .cine-cap { padding: 0 1.1rem; }
  .cine-cap-inner { padding: 1.8rem 1rem; }
  .cine-num { font-size: 0.66rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
  .cine-title { font-size: clamp(1.9rem, 9.4vw, 2.8rem); line-height: 1.06; }
  .cine-lead { font-size: 0.95rem; line-height: 1.55; margin-top: 1.1rem; }
  .cine-strip { padding: 0.55rem 0; bottom: 2px; }
  .cine-strip span { font-size: 0.64rem; padding: 0 1.1rem; }
  .cine-strip span::before { margin-right: 1.1rem; }
  /* stronger halo on phones — video covers tighter, brighter areas sit under text */
  .cine-cap-inner::before { background: radial-gradient(ellipse 78% 60% at 50% 50%, rgba(3,4,8,0.82), rgba(3,4,8,0.5) 55%, transparent 82%); }
}
/* very short landscape phones — keep the hero from feeling cramped */
@media (max-height: 460px) and (orientation: landscape) {
  .cine-title { font-size: clamp(1.6rem, 6vh, 2.4rem); }
  .cine-lead { display: none; }
  .cine-frame { padding: 3.6rem 1.4rem 1.4rem; }
}

/* ---------- daily quote band (rotates by day-of-year, JS-filled) ---------- */
.quote-band { text-align: center; }
.quote-band .eyebrow { display: inline-block; }
.daily-quote { max-width: 900px; margin: 1.2rem auto 0; }
.daily-quote blockquote {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.32; font-weight: 500;
  margin: 0; text-wrap: balance; position: relative;
}
.daily-quote blockquote::before {
  content: "\201C"; position: absolute; top: -0.5em; left: 50%; transform: translateX(-50%);
  font-size: 3.2em; line-height: 1; color: var(--gold); opacity: 0.18; pointer-events: none;
}
.daily-quote .grad-text { display: inline; }
.daily-quote figcaption { margin-top: 1.4rem; font-family: Consolas, monospace; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.daily-quote figcaption span { color: var(--gold); }
.quote-fade { opacity: 0; transform: translateY(10px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.quote-fade.in { opacity: 1; transform: translateY(0); }

/* ---------- principles grid (homepage expansion) ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.principle {
  position: relative; border-radius: 20px; border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, var(--glass), transparent 65%); padding: 2rem 1.7rem;
}
.principle .p-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--glass-border); color: var(--gold); margin-bottom: 1.2rem; }
.principle .p-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { font-size: 1.08rem; margin: 0 0 0.5rem; font-weight: 600; }
.principle p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-dim); }

/* ---------- animated trade-route map ---------- */
.trade-map { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); background: linear-gradient(160deg, #070a12, #0c1020); box-shadow: var(--shadow); }
.trade-map canvas { display: block; width: 100%; height: clamp(280px, 42vw, 460px); }
.trade-map .tm-legend { position: absolute; left: 1.2rem; bottom: 1rem; display: flex; gap: 1.2rem; font-family: Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-dim); }
.trade-map .tm-legend b { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; }
.trade-map .tm-legend .dot-cn, .trade-map .tm-legend .dot-eu { width: 8px; height: 8px; border-radius: 50%; }
.trade-map .tm-legend .dot-cn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.trade-map .tm-legend .dot-eu { background: var(--aurora-b); box-shadow: 0 0 8px var(--aurora-b); }

/* smooth reset when tilt released */
.glass-card, .topic-card, .cable-card, .principle, .lp-card { transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease, border-color 320ms ease; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.9rem; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--glass-border); border-radius: 16px; background: linear-gradient(160deg, var(--glass), transparent 65%); overflow: hidden; }
.faq-q { width: 100%; text-align: left; appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--text); font: inherit; font-weight: 600; font-size: 1.02rem; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-q .faq-ic { flex-shrink: 0; width: 22px; height: 22px; position: relative; transition: transform 300ms ease; color: var(--gold); }
.faq-q .faq-ic::before, .faq-q .faq-ic::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .faq-ic::before { top: 50%; left: 3px; right: 3px; height: 2px; transform: translateY(-50%); }
.faq-q .faq-ic::after { left: 50%; top: 3px; bottom: 3px; width: 2px; transform: translateX(-50%); transition: transform 300ms ease, opacity 300ms ease; }
.faq-item.open .faq-q .faq-ic::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 360ms cubic-bezier(.2,.7,.2,1); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--text-dim); line-height: 1.65; font-size: 0.96rem; }
.faq-q:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: -2px; }

/* ---------- cable catalog (kable.html) ---------- */
.cable-legend { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.4rem; }
.cable-legend span { font-family: Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.05em; border: 1px solid var(--glass-border); border-radius: 100px; padding: 0.4rem 0.9rem; color: var(--text-dim); }
.cable-legend span b { color: var(--gold); font-weight: 700; }

.cable-family { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; margin-bottom: 3.5rem; }
.cable-family:last-child { margin-bottom: 0; }
.cable-family.reverse .cable-media { order: 2; }
@media (max-width: 900px) { .cable-family, .cable-family.reverse .cable-media { grid-template-columns: 1fr; order: 0; } }
.cable-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.cable-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cable-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45)); pointer-events: none; }
.cable-media .fam-tag { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font-family: Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.1em; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); border: 1px solid var(--glass-border); border-radius: 100px; padding: 0.4rem 0.9rem; color: var(--aurora-b); }
.cable-family-head h3 { font-family: "Palatino Linotype", Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; margin: 0 0 0.5rem; }
.cable-family-head > p { color: var(--text-dim); line-height: 1.65; font-size: 0.98rem; margin: 0 0 1.3rem; }

.cable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.cable-card { border: 1px solid var(--glass-border); border-radius: 14px; background: linear-gradient(160deg, var(--glass), transparent 65%); padding: 1.3rem 1.2rem; transition: border-color 240ms ease, transform 240ms ease; }
.cable-card:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--glass-border)); transform: translateY(-3px); }
.cable-card .sym { display: inline-block; font-family: Consolas, monospace; font-weight: 700; letter-spacing: 0.05em; color: var(--void); background: var(--gold); border-radius: 7px; padding: 0.28rem 0.65rem; font-size: 0.86rem; margin-bottom: 0.8rem; }
.cable-card h4 { margin: 0 0 0.45rem; font-size: 0.98rem; font-weight: 600; }
.cable-card p { margin: 0 0 0.8rem; font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }
.cable-card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cable-card .meta span { font-family: Consolas, monospace; font-size: 0.66rem; letter-spacing: 0.03em; border: 1px solid var(--glass-border); border-radius: 100px; padding: 0.26rem 0.55rem; color: var(--text-dim); }

/* ---------- finance calculator (motoryzacja.html) ---------- */
.fin-calc { display: grid; gap: 1.5rem; max-width: 860px; }
.fin-toggle { display: inline-flex; border: 1px solid var(--glass-border); border-radius: 100px; padding: 4px; gap: 4px; background: var(--glass); width: max-content; }
.fin-toggle button { appearance: none; border: 0; background: transparent; color: var(--text-dim); font: inherit; font-weight: 600; padding: 0.55rem 1.4rem; border-radius: 100px; cursor: pointer; transition: background 200ms ease, color 200ms ease; }
.fin-toggle button.active { background: var(--gold); color: var(--void); }
.fin-toggle button:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 2px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.1rem; }
.fin-grid label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.fin-grid input { font: inherit; font-size: 1rem; color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.75rem 0.9rem; }
.fin-grid input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
/* style the native <select> to match the dark input tiles (default select renders an ugly white box) */
.fin-grid select {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%; cursor: pointer;
  background-color: var(--void-2); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 0.75rem 2.3rem 0.75rem 0.9rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0b94a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 15px;
}
.fin-grid select option { background-color: var(--void-2); color: var(--text); }
.fin-grid select:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--glass-border)); }
.fin-grid select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.fin-result { display: flex; flex-wrap: wrap; gap: 2.4rem; align-items: baseline; padding: 1.4rem 0 0.4rem; border-top: 1px solid var(--line); }
.fin-label { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.35rem; }
.fin-value { font-family: "Palatino Linotype", Georgia, serif; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; background: linear-gradient(120deg, var(--gold), var(--aurora-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fin-sub { font-family: Consolas, monospace; font-size: 1.1rem; color: var(--text); }
.fin-calc .btn { justify-self: start; }

/* ---------- closing CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .cta-row { justify-content: center; margin-top: 2rem; }

/* ---------- footer ---------- */

/* ---------- inline form status ---------- */
.form-status { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.5; min-height: 1px; }
.form-status.is-ok { color: var(--aurora-b); }
.form-status.is-err { color: #ff8f6b; }

/* ---------- floating contact dock ---------- */
.contact-dock { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 25; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-dock .dock-btn {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); background: color-mix(in srgb, var(--void) 78%, transparent);
  backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms ease, border-color 200ms ease;
}
.contact-dock .dock-btn svg { width: 24px; height: 24px; }
.contact-dock .dock-btn:hover { transform: translateY(-3px) scale(1.05); }
.contact-dock .dock-wa { color: #25d366; }
.contact-dock .dock-wa:hover { border-color: #25d366; box-shadow: 0 0 22px -4px #25d366; }
.contact-dock .dock-tel { color: var(--gold); }
.contact-dock .dock-tel:hover { border-color: var(--gold); box-shadow: var(--glow-gold); }
.contact-dock .dock-mail { color: var(--aurora-b); }
.contact-dock .dock-mail:hover { border-color: var(--aurora-b); box-shadow: 0 0 22px -4px var(--aurora-b); }
.contact-dock .dock-btn:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 3px; }
@media (max-width: 520px) { .contact-dock .dock-btn { width: 46px; height: 46px; } .contact-dock .dock-btn svg { width: 22px; height: 22px; } }

/* ---------- back-to-top ---------- */
.to-top {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 25; width: 46px; height: 46px; padding: 0;
  border-radius: 50%; border: 1px solid var(--glass-border); background: color-mix(in srgb, var(--void) 78%, transparent);
  color: var(--gold); backdrop-filter: blur(8px); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease, border-color 200ms ease, visibility 260ms;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--gold); transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--aurora-b); outline-offset: 3px; }

/* ---------- cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 1rem; z-index: 50; transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 2rem)); display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--glass-border);
  background: color-mix(in srgb, var(--void-2) 92%, transparent); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.cookie-bar.show { transform: translate(-50%, 0); }
.cookie-bar p { margin: 0; flex: 1; min-width: 220px; font-size: 0.86rem; line-height: 1.5; color: var(--text-dim); }
.cookie-bar p a { color: var(--gold); }
.cookie-bar .btn { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
@media (max-width: 520px) { .cookie-bar { bottom: 0.6rem; padding: 0.9rem 1rem; } .cookie-bar .btn { width: 100%; justify-content: center; } }

/* ---------- footer ---------- */

footer { position: relative; z-index: 2; padding: 6rem 3rem 3rem; max-width: 1240px; margin: 0 auto; scroll-snap-align: end; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.1rem 0; font-weight: 700; }
footer .lead { font-family: "Palatino Linotype", Georgia, serif; font-size: 1.55rem; max-width: 30ch; line-height: 1.4; margin: 0; text-wrap: balance; }
footer .contact-line { font-size: 0.98rem; color: var(--text-dim); margin: 0 0 0.6rem 0; }
footer .contact-line a { text-decoration: none; color: var(--text); border-bottom: 1px solid var(--glass-border); transition: color 200ms ease, border-color 200ms ease; }
footer .contact-line a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.02em; }
.brandmark { color: var(--gold); font-weight: 600; }
