:root {
  --papier: #faf8ff; --atrament: #221937; --opis: #625870; --linia: #ded4ea;
  --fiolet: #5529a2; --noc: #211936; --zielony: #d9f4bd;
  font: 16px/1.58 "Segoe UI", system-ui, sans-serif;
  color: var(--atrament);
  background: var(--papier);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--fiolet); text-underline-offset: .24em; }
:focus-visible { outline: 3px solid #8753cf; outline-offset: 4px; }
img { display: block; }
h1, h2, h3, .marka { font-family: var(--font-marki, "Segoe UI", sans-serif); letter-spacing: -.045em; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.ramka { width: min(1320px, 100% - 2 * clamp(18px, 5vw, 72px)); margin-inline: auto; }
.naglowek { border-bottom: 1px solid var(--linia); }
.pasek { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marka { display: flex; align-items: center; gap: .55rem; font-size: 1.6rem; text-decoration: none; }
nav, .jezyki, .start-akcje { display: flex; align-items: center; }
nav { gap: clamp(.6rem, 3vw, 1.6rem); font-size: .9rem; }
nav .logowanie { font-weight: 700; white-space: nowrap; }
.jezyki { gap: 3px; }
.jezyki button { border: 1px solid transparent; background: none; border-radius: 5px; color: var(--opis); font: inherit; padding: .2rem .36rem; cursor: pointer; }
.jezyki button.active { border-color: var(--linia); color: var(--fiolet); }
.start { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 75px); padding-block: clamp(52px, 7vw, 110px); }
.wprowadzenie h1 { max-width: 8ch; font-size: clamp(3.8rem, 7.6vw, 7.9rem); line-height: .86; font-weight: 800; letter-spacing: -.08em; }
.wprowadzenie p { max-width: 42ch; margin-top: 1.5rem; color: var(--opis); font-size: clamp(1.02rem, 1.5vw, 1.23rem); }
.wprowadzenie small { display: block; margin-top: .7rem; color: var(--opis); }
.start-akcje { gap: clamp(.65rem, 3vw, 1.4rem); flex-wrap: wrap; margin-top: 1.5rem; }
.przycisk { display: inline-block; background: var(--fiolet); color: white; border-radius: .65rem; padding: .76rem 1.1rem; font-weight: 700; text-decoration: none; }
.przycisk:hover { background: #432081; }
.odnosnik { font-weight: 650; }
.telemetria { min-width: 0; border-radius: 24px; overflow: hidden; background: var(--noc); color: #f4eafd; box-shadow: 0 24px 66px #32145127; }
.telemetria-naglowek { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: 1.05rem 1.2rem .8rem; }
.telemetria-naglowek strong, .telemetria-naglowek div span { display: block; }
.telemetria-naglowek div span { color: #cabadd; font-size: .87rem; }
.symulacja { color: var(--zielony); font-size: .81rem; white-space: nowrap; }
.symulacja::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .45rem; background: currentColor; }
#mapa-demo { display: block; width: 100%; height: auto; background: #261e3e; }
.pojazdy { display: flex; min-height: 72px; overflow-x: auto; }
.pojazdy > span { padding: 1rem; color: #cabadd; }
.pojazdy button { flex: 1 0 100px; background: transparent; border: 0; border-top: 2px solid transparent; padding: .55rem .8rem; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.pojazdy button[aria-pressed="true"] { border-color: var(--zielony); background: #342853; }
.pojazdy button:focus-visible { outline-offset: -4px; }
.pojazdy small { display: block; color: #cabadd; font-size: .74rem; line-height: 1.35; }
.mozliwosci { border-block: 1px solid var(--linia); padding-block: 2.25rem; }
.funkcje { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.3rem; margin-top: 1.3rem; }
.funkcje article { min-width: 0; padding-right: 1.1rem; }
.funkcje article:not(:nth-child(3n+1)) { border-left: 1px solid var(--linia); padding-left: 1.1rem; }
.funkcje h3, .raport h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.16; }
.funkcje p { color: var(--opis); margin-top: .55rem; }
.raporty { padding-block: clamp(44px, 6vw, 95px); }
.sekcja-tytul { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.sekcja-tytul p { color: var(--opis); margin-top: .55rem; }
.raporty-siatka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.raport { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; border: 1px solid var(--linia); border-radius: 12px; background: #fff; }
.raport-naglowek { display: flex; justify-content: space-between; align-items: baseline; gap: .65rem; }
.raport-naglowek span { white-space: nowrap; color: var(--fiolet); font-weight: 700; }
.raport-opis { color: var(--opis); font-size: .93rem; }
.raport a { align-self: start; margin-top: auto; padding-top: .85rem; font-weight: 650; }
.dni-jazdy { display: flex; height: 115px; align-items: end; gap: max(2px, .35vw); border-bottom: 1px solid var(--linia); margin-top: .5rem; }
.dni-jazdy span { flex: 1; min-width: 0; background: #8e5bdf; border-radius: 3px 3px 0 0; min-height: 2px; }
.os-czasu { display: flex; justify-content: space-between; font-size: .75rem; color: var(--opis); }
.tabela-naruszen table { border-collapse: collapse; margin-top: .55rem; width: 100%; text-align: left; font-size: .88rem; }
.tabela-naruszen th, .tabela-naruszen td { padding: .35rem .45rem .35rem 0; border-bottom: 1px solid var(--linia); }
.tabela-naruszen th { font-weight: 600; color: var(--opis); cursor: pointer; }
.tabela-naruszen .th-strzalka { margin-left: .35em; opacity: .65; }
.tabela-naruszen .filtr-wlaczony { color: var(--fiolet); }
.tabela-naruszen .table-empty, .tabela-naruszen .tabela-stopka { font-size: .85rem; color: var(--opis); }
.panel-filtra { position: absolute; z-index: 10; display: grid; gap: .35rem; width: 240px; min-width: 0; padding: .65rem; background: #fff; border: 1px solid var(--linia); border-radius: 8px; box-shadow: 0 12px 24px #32145127; font-size: .85rem; }
.panel-filtra-lista { overflow: auto; max-height: 140px; }
.panel-filtra-poz { display: flex; gap: .35rem; }
.panel-filtra-akcja { background: none; border: 0; text-align: left; padding: .25rem .2rem; cursor: pointer; }
.panel-filtra-akcja:hover { background: var(--papier); }
.panel-filtra-ikona { display: inline-block; width: 1.2rem; }
.panel-filtra-stopka { display: flex; justify-content: flex-end; gap: .4rem; }
.stopka { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; border-top: 1px solid var(--linia); padding-block: 1.2rem; color: var(--opis); font-size: .87rem; }
.stopka a { margin-left: auto; }
@media (max-width: 880px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .wprowadzenie h1 { max-width: 13ch; }
}
@media (max-width: 640px) {
  .tekst-menu { display: none; }
  .pasek { min-height: 64px; }
  .marka { font-size: 1.24rem; }
  .marka img { width: 30px; height: 30px; }
  .funkcje, .raporty-siatka { grid-template-columns: minmax(0, 1fr); }
  .funkcje article:not(:first-child) { padding: .8rem 0 0; border: 0; border-top: 1px solid var(--linia); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
