/* ==========================================================================
   TRAXY — strona startowa traxy.pl
   Clean Apple look, ciemne tło, akcent #FF5F00 tylko na główną akcję i stan aktywny.
   Bez frameworka. Kolory wyłącznie z tokenów poniżej.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --surface: #121215;
  --surface-2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --brand: #ff5f00;
  --accent: #ff5f00;
  --accent-hover: #ff7a2e;
  --on-accent: #0a0a0a;
  --accent-soft: rgba(255, 95, 0, 0.12);
  --accent-line: rgba(255, 95, 0, 0.35);
  --admin: #af52de;
  --admin-soft: rgba(175, 82, 222, 0.14);
  --med: #ff3b30;
  --med-soft: rgba(255, 59, 48, 0.13);
  --error: #ff6961;
  --ok: #30d158;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 56px;
  --section-y: clamp(88px, 11vw, 160px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Podstawy ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html.menu-open,
body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(255, 95, 0, 0.35); color: #fff; }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip:focus { top: 10px; color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: calc(1320px + 2 * var(--gutter)); }
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }

.accent-text { color: var(--brand); }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); color: #fff; }

.btn .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
}
.link-arrow:hover { color: var(--accent-hover); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Nawigacja ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
body.menu-open .nav { background: rgba(0, 0, 0, 0.96); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
}
.nav-logo img { width: 100px; height: 22px; }

.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.is-active { color: var(--text); }
@media (max-width: 1279px) {
  .nav-inner { gap: 16px; }
  .nav-links a { padding: 0 8px; }
}

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  margin-left: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 40px;
  background: rgba(0, 0, 0, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { max-width: 560px; margin: 0 auto; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mobile-menu li a .icon { color: var(--text-3); }
.mobile-menu-foot {
  max-width: 560px;
  margin: 28px auto 0;
  display: grid;
  gap: 18px;
}
.mobile-menu-foot .btn { width: 100%; }
.mobile-menu-foot p { color: var(--text-2); font-size: 15px; }
.mobile-menu-foot a:not(.btn) { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menu-in 0.28s var(--ease); }
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1099px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 479px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Sekcje: wspólne ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.section-head-left { margin-inline: 0; text-align: left; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(34px, 1.4rem + 3.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.lead {
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(18px, 1rem + 0.45vw, 21px);
  line-height: 1.5;
}
.section-head .lead { margin-inline: auto; max-width: 640px; }
.lead, .step p, .feature p, .type-card p { text-wrap: pretty; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(64px, 8vw, 112px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/tlo/hero-mapa-960.webp") center 30% / cover no-repeat;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 85%);
}
@media (min-width: 961px) {
  .hero-bg::before { background-image: url("../img/tlo/hero-mapa-1920.webp"); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: min(1100px, 140vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 95, 0, 0.22), rgba(255, 95, 0, 0.06) 55%, transparent 75%);
}

.hero-inner { text-align: center; }

.hero .eyebrow { font-size: clamp(15px, 0.85rem + 0.35vw, 19px); margin-bottom: 18px; }

.hero h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(46px, 1.2rem + 6.2vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 660px;
  margin: 26px auto 0;
  font-size: clamp(18px, 1rem + 0.55vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 7px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd2b8;
  font-size: 14px;
  font-weight: 600;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .badge .dot { animation: pulse 2.4s infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 95, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0); }
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 30px;
  color: var(--text-2);
  font-size: 15px;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--brand); }

.hero-media {
  margin: clamp(48px, 7vw, 88px) auto 0;
  max-width: 1080px;
}
.hero-media figcaption {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

/* ---------- Ramka filmu ---------- */

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 24px);
  border: 1px solid var(--line-2);
  background: #050506;
  box-shadow: 0 50px 120px -40px rgba(255, 95, 0, 0.28), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.video-frame video,
.video-frame .video-poster {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-frame .video-poster {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: opacity 0.6s var(--ease);
}
.video-frame.is-playing .video-poster { opacity: 0; pointer-events: none; }

.video-frame-tall video,
.video-frame-tall .video-poster { aspect-ratio: 9 / 16; }

.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.video-toggle:hover { background: rgba(0, 0, 0, 0.78); }
.video-toggle .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.video-toggle .icon-pause,
.video-toggle .label-pause { display: none; }
.video-toggle[data-state="playing"] .icon-play,
.video-toggle[data-state="playing"] .label-play { display: none; }
.video-toggle[data-state="playing"] .icon-pause { display: block; }
.video-toggle[data-state="playing"] .label-pause { display: inline; }
.video-toggle .sr-only { position: absolute !important; }
@media (max-width: 639px) {
  .video-toggle {
    right: 10px;
    bottom: 10px;
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .video-toggle .label-play,
  .video-toggle .label-pause {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   BLOK X-MUD 10 — START (style bloku; po usunięciu sekcji #xmud10 można skasować)
   ========================================================================== */
.xmud { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.xmud-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 95, 0, 0.14), transparent 55%),
    var(--surface);
}
.xmud-logo { width: 168px; height: auto; border-radius: 22px; }
.xmud h2 { font-size: clamp(28px, 1.1rem + 2.2vw, 42px); line-height: 1.1; letter-spacing: -0.024em; }
.xmud .eyebrow { font-size: 14px; }
.xmud-text { margin-top: 16px; color: var(--text-2); max-width: 68ch; }
.xmud-note { margin-top: 12px; color: var(--text-3); font-size: 15px; }
.xmud .btn { margin-top: 22px; }
@media (max-width: 640px) {
  .xmud-card { grid-template-columns: 1fr; }
  .xmud-logo { width: 112px; border-radius: 16px; }
}
/* BLOK X-MUD 10 — KONIEC */

/* ---------- Jak to działa ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-num {
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brand);
}
.icon-tile .icon { width: 22px; height: 22px; }

.roles {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(72px, 9vw, 120px);
}
.roles-visual img { width: 100%; max-width: 620px; margin-inline: auto; }
.roles h3 {
  font-size: clamp(28px, 1.1rem + 2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.024em;
}
.roles-list { display: grid; gap: 12px; margin-top: 28px; }
.role {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.role-dot {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.role-dot .icon { width: 20px; height: 20px; }
.role-crew .role-dot { background: var(--accent-soft); color: var(--brand); }
.role-admin .role-dot { background: var(--admin-soft); color: #c98bea; }
.role-med .role-dot { background: var(--med-soft); color: #ff7a72; }
.role strong { display: block; font-size: 17px; }
.role div > span { display: block; margin-top: 2px; color: var(--text-2); font-size: 15px; }

/* ---------- Rodzaje rajdów ---------- */

.types-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.types { display: grid; gap: 16px; }
.type-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.type-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.type-card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.type-meta {
  display: inline-flex;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.types-video { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.types-video figcaption { margin-top: 12px; color: var(--text-3); font-size: 13px; text-align: center; }

.note-bar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16.5px;
}
.note-bar .icon-tile { flex: none; width: 36px; height: 36px; border-radius: 10px; }
.note-bar .icon-tile .icon { width: 18px; height: 18px; }
.note-bar p { padding-top: 6px; }

/* ---------- Organizator ---------- */

.phase + .phase { margin-top: clamp(80px, 10vw, 136px); }
.phase-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.phase-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 700;
}
.phase-head h3 { font-size: clamp(26px, 1rem + 1.8vw, 36px); letter-spacing: -0.022em; }

.browser {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #0e0e10;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #161619;
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3f; }
.browser-bar em {
  margin: 0 auto;
  padding-right: 51px;
  color: var(--text-3);
  font-size: 12px;
  font-style: normal;
}
.browser-shot { overflow: hidden; }
.browser-shot img { width: 100%; }
/* Zrzut kreatora: dolna część ekranu jest pusta — pokazujemy górę */
.browser-shot.focus-cards img { aspect-ratio: 1200 / 520; object-fit: cover; object-position: top left; }
.shot-caption { margin-top: 12px; color: var(--text-3); font-size: 13px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.features-4 { grid-template-columns: repeat(4, 1fr); }
.features-5 { grid-template-columns: repeat(6, 1fr); }
.features-5 > * { grid-column: span 2; }
.features-5 > :nth-child(-n+2) { grid-column: span 3; }
.feature .icon-tile { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px; }
.feature .icon-tile .icon { width: 20px; height: 20px; }
.feature h3,
.feature h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- Telefony ---------- */

.phone {
  position: relative;
  aspect-ratio: 720 / 1558;
  padding: 3%;
  border-radius: 14% / 6.5%;
  background: linear-gradient(160deg, #3a3a3f, #17171a 40%, #0e0e10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 70px -30px rgba(0, 0, 0, 0.95);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 11.6% / 5.4%;
  background: #000;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 1fr);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  padding: 8px 2px 18px;
}
.rail-item { scroll-snap-align: start; margin: 0; }
.rail-item figcaption {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.rail-item figcaption strong { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 1279px) {
  .rail {
    grid-auto-columns: 200px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}
@media (max-width: 599px) {
  .rail { grid-auto-columns: 62%; }
}

.rail-hint { display: none; margin-top: 4px; color: var(--text-3); font-size: 13px; text-align: center; }
@media (max-width: 1279px) { .rail-hint { display: block; } }

/* ---------- Obsługa: TRAXY Admin i TRAXY Med ---------- */

.crew {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.crew-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.crew-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  pointer-events: none;
}
.crew-admin::before { background: radial-gradient(80% 100% at 50% 0%, rgba(175, 82, 222, 0.16), transparent 70%); }
.crew-med::before { background: radial-gradient(80% 100% at 50% 0%, rgba(255, 59, 48, 0.13), transparent 70%); }

.crew-head { position: relative; display: flex; align-items: center; gap: 14px; }
.app-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
}
.app-icon .icon { width: 26px; height: 26px; }
.crew-admin .app-icon { background: var(--admin); }
.crew-med .app-icon { background: var(--med); }
.crew-head h3 { font-size: clamp(24px, 1rem + 1.2vw, 30px); letter-spacing: -0.02em; }
.crew-head p { color: var(--text-2); font-size: 15px; margin: 2px 0 0; }

.crew-shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 32px auto 8px;
  max-width: 440px;
}
.screen-crop {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.screen-crop img { width: 100%; }
.crew-shots figcaption {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.crew-list { position: relative; display: grid; gap: 4px; margin-top: 20px; }
.crew-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.crew-list .icon { width: 20px; height: 20px; margin-top: 2px; }
.crew-admin .crew-list .icon { color: #c98bea; }
.crew-med .crew-list .icon { color: #ff7a72; }
.crew-list h4 { font-size: 17px; letter-spacing: -0.01em; }
.crew-list p { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.callout .icon-tile { flex: none; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.callout p { padding-top: 8px; font-size: clamp(17px, 1rem + 0.3vw, 20px); line-height: 1.45; }
.callout strong { font-weight: 600; }

/* ---------- Bezpieczeństwo ---------- */

.security-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.security-layout .browser { position: sticky; top: calc(var(--nav-h) + 24px); }
.security-list { display: grid; gap: 0; }
.security-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.security-list li:first-child { padding-top: 4px; }
.security-list .icon-tile { width: 40px; height: 40px; border-radius: 11px; }
.security-list .icon-tile .icon { width: 20px; height: 20px; }
.security-list h3 { font-size: 18px; letter-spacing: -0.01em; }
.security-list p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- Formularze ---------- */

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form-card-glow {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 95, 0, 0.12), transparent 70%),
    var(--surface);
}
.form-card .section-head { margin-bottom: 36px; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.field .opt { color: var(--text-3); font-weight: 400; }
.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #0c0c0f;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: #8a8a90; }
.input:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.28); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--error);
  font-size: 14px;
}
.field-error[hidden] { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0c0c0f;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice span:hover { border-color: rgba(255, 255, 255, 0.3); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
fieldset[aria-invalid="true"] .choice span { border-color: rgba(255, 105, 97, 0.7); }

.field label.consent,
.consent {
  margin-bottom: 0;
  font-weight: 400;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a, .form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover, .form-note a:hover { color: var(--brand); }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { min-width: 200px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { color: var(--text-3); font-size: 14px; margin: 0; }

.form-alert {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 105, 97, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(255, 69, 58, 0.1);
  color: #ffd1ce;
  font-size: 15px;
}
.form-alert[hidden] { display: none; }
.form-alert a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.form-success { text-align: center; padding: 24px 0 8px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success .success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.14);
  color: var(--ok);
}
.form-success .success-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-success h3 { font-size: 28px; letter-spacing: -0.02em; }
.form-success p { margin: 10px auto 0; max-width: 46ch; color: var(--text-2); }
.form-success .btn { margin-top: 24px; }

/* ---------- Kontakt ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-info .lead { margin-top: 18px; }
.contact-data { display: grid; gap: 14px; margin-top: 36px; }
.contact-data li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.contact-data .icon-tile { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.07); color: var(--text); }
.contact-data small { display: block; color: var(--text-3); font-size: 13px; }
.contact-data a, .contact-data address { font-size: 17px; font-weight: 600; }
.contact-data a { display: inline-block; padding-block: 4px; }
.contact-data a:hover { color: var(--brand); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 2px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1rem + 0.35vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform 0.25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover .icon { color: var(--text); }
.faq-body { padding: 0 2px 26px; color: var(--text-2); font-size: 16.5px; max-width: 70ch; }

/* ---------- Stopka ---------- */

.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { width: 110px; height: 24px; }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}
.footer li + li { margin-top: 2px; }
.footer ul a,
.footer .linklike { display: inline-block; padding-block: 6px; }
.footer a:hover, .footer .linklike:hover { color: var(--text); }
.footer .linklike {
  padding: 6px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}
.footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links li + li { margin-top: 0; }
.footer-bottom p { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Baner cookies ---------- */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 580px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(18, 18, 21, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
.cookie[hidden] { display: none; }
.cookie h2 { font-family: var(--font); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.cookie p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { min-height: 44px; }
.cookie-actions .btn-accent { min-height: 48px; padding: 0 28px; }
@media (max-width: 479px) {
  .cookie-actions .btn-accent { width: 100%; }
  .cookie-actions .btn-ghost { flex: 1; }
}
/* Telefon poziomo: niski ekran — baner w jednym pasku, żeby nie zasłaniał połowy strony */
@media (max-height: 500px) and (min-width: 560px) {
  .cookie { max-width: 820px; padding: 12px 16px; bottom: 8px; }
  .cookie h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cookie p { font-size: 13px; line-height: 1.4; }
  .cookie-actions { margin-top: 10px; flex-wrap: nowrap; justify-content: flex-end; }
  .cookie-actions .btn-accent { min-height: 44px; padding: 0 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: cookie-in 0.4s var(--ease); }
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Podstrony (polityka, 404) ---------- */

.page-header .nav-inner { justify-content: space-between; }
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc h1 { font-size: clamp(36px, 1.4rem + 3vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.doc-meta {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 15px;
}
.doc h2 {
  margin-top: 48px;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.doc p, .doc li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--brand); }
.doc .btn { text-decoration: none; margin-top: 8px; }
.doc code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}

.notfound { min-height: calc(100vh - var(--nav-h) - 140px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { color: var(--brand); font-weight: 700; font-size: 15px; }
.notfound h1 { margin-top: 10px; font-size: clamp(36px, 1.4rem + 3vw, 56px); letter-spacing: -0.03em; }
.notfound p { margin: 16px auto 0; max-width: 44ch; color: var(--text-2); }
.notfound .hero-actions { margin-top: 28px; }

/* ---------- Animacje wejścia (tylko gdy JS i bez ograniczenia ruchu) ---------- */

.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-in { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 1099px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .features-4, .features-5 { grid-template-columns: repeat(2, 1fr); }
  .features-5 > *, .features-5 > :nth-child(-n+2) { grid-column: auto; }
  .features-5 > :first-child, .features-9 > :last-child { grid-column: 1 / -1; }
  .features:not(.features-5) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .roles { grid-template-columns: 1fr; }
  .roles-visual img { max-width: 520px; }
}

@media (max-width: 899px) {
  .types-layout { grid-template-columns: 1fr; }
  .types-video { position: static; max-width: 320px; margin-inline: auto; order: -1; }
  .crew { grid-template-columns: 1fr; }
  .security-layout { grid-template-columns: 1fr; }
  .security-layout .browser { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 20px; }
  .step-top { margin-bottom: 14px; }
  .features, .features-4, .features-5 { grid-template-columns: 1fr; }
  .features-5 > :first-child, .features-9 > :last-child,
  .features:not(.features-5) > :last-child:nth-child(odd) { grid-column: auto; }
  .feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .feature .icon-tile { grid-row: span 2; margin-bottom: 0; }
  .feature p { margin-top: 4px; font-size: 15px; }
  .types-video { max-width: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .type-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .hero-actions .btn { width: 100%; max-width: 360px; }
  .hero-facts { flex-direction: column; align-items: center; gap: 10px; }
  .browser-bar em { display: none; }
  .browser-shot img { width: 165%; max-width: none; }
  .browser-shot.focus-right img { margin-left: -65%; }
  .browser-shot.focus-center img { margin-left: -32.5%; }
  .browser-shot.focus-cards img { margin-left: -35%; aspect-ratio: 1200 / 380; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}
