/* =========================================================
   UJEBOMAT — website template
   Mobile first · Bootstrap 5 (CDN) + custom CSS
   Brand tokens mirror docs/BrandIdentity.md
   ========================================================= */

:root {
  --night: #101216;        /* night asphalt */
  --night-deep: #08090b;
  --surface: #16181d;      /* slightly lifted dark panel */
  --ink: #101216;
  --paper: #f2f0e9;        /* map paper */
  --blue: #0869f6;         /* GPXLAB blue */
  --blue-bright: #3e86ff;
  --red: #f32724;          /* signal red */
  --green: #258c40;        /* legal green */
  --grey: #8b929b;         /* unknown grey */
  --text: #f2f0e9;
  --muted: rgba(242, 240, 233, 0.62);
  --line: rgba(242, 240, 233, 0.13);
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 68px;
}

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  background: var(--night-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

/* shared stroke icons (SVG sprite) */
.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- header / navbar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1040;
  border-bottom: 1px solid transparent;
  background: rgba(10, 12, 15, 0.62);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 11, 0.9);
  border-bottom-color: rgba(242, 240, 233, 0.09);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}
.site-header .navbar {
  padding: 0.72rem 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--paper);
  text-decoration: none;
}
.navbar-brand:hover,
.navbar-brand:focus-visible {
  color: var(--paper);
}
.navbar-brand:hover .brand-word,
.navbar-brand:focus-visible .brand-word {
  text-shadow: 0 0 12px rgba(242, 240, 233, 0.45);
}
.brand-mascot {
  width: 44px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.8;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.brand-signal {
  width: 6px;
  height: 6px;
  margin: 0 0 0.6rem -0.15rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(243, 39, 36, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  border: 1px solid rgba(242, 240, 233, 0.16);
  border-radius: 999px;
}
.lang-switch a,
.lang-switch button {
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(242, 240, 233, 0.45);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.lang-switch .is-active {
  background: var(--paper);
  color: var(--ink);
}

.btn-gpx {
  padding: 0.62rem 0.9rem;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -14px rgba(8, 105, 246, 1);
}
.btn-gpx:hover,
.btn-gpx:focus-visible {
  background: #2b7dff;
  border-color: #2b7dff;
  color: #fff;
}

.navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(242, 240, 233, 0.2);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  box-shadow: none;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(8, 105, 246, 0.3);
}
.navbar-toggler .icon {
  width: 24px;
  height: 24px;
}

/* mobile collapse as a floating card */
.navbar-collapse {
  margin: 0.7rem 0 0;
  padding: 0.55rem 1rem 1.1rem;
  border: 1px solid rgba(242, 240, 233, 0.1);
  border-radius: 12px;
  background: #0a0c0f;
  box-shadow: 0 32px 50px -24px rgba(0, 0, 0, 0.95);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.navbar-nav {
  gap: 0.1rem;
}
.navbar-nav .nav-link {
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(242, 240, 233, 0.07);
  color: rgba(242, 240, 233, 0.72);
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible {
  color: var(--paper);
}

.nav-mobile-extra {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem 0 1rem;
}
.lang-switch--mobile {
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
}
.lang-switch--mobile a,
.lang-switch--mobile button {
  flex: 1;
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.575) 0%, rgba(8, 9, 11, 0.8) 68%, var(--night-deep) 100%),
    url("../assets/img/hero-hex.webp") center / cover no-repeat;
}
.hero-glow {
  position: absolute;
  top: -280px;
  right: -320px;
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 105, 246, 0.38), rgba(8, 105, 246, 0) 64%);
  filter: blur(12px);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.hero-title {
  margin: 0.9rem 0 0;
  font-family: var(--font-display);
  font-size: min(11.7vw, 6.84rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero-title .line {
  display: block;
}
/* line 1 shrinks so all three lines end at a similar width */
.hero-title .line:first-child {
  font-size: 0.78em;
}
.hero-title .accent {
  color: var(--blue-bright);
  text-shadow: 0 0 38px rgba(8, 105, 246, 0.35);
}
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.3rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
}
.tagline-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(243, 39, 36, 0.8);
}
.hero-lead {
  max-width: 34rem;
  margin: 1.3rem 0 0;
  color: rgba(242, 240, 233, 0.66);
  font-size: 0.98rem;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

/* brand buttons (display style, scoped so nav CTA is untouched) */
.btn-brand {
  --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(8, 105, 246, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-brand .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.18s ease;
}
.btn-brand:hover .icon {
  transform: translateX(2px);
}
.btn-brand .spinner-border {
  width: 1.05em;
  height: 1.05em;
  border-width: 0.15em;
}
.btn-brand-primary {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(8, 105, 246, 0.95);
}
.btn-brand-primary:hover,
.btn-brand-primary:focus-visible {
  background: #2b7dff;
  border-color: #2b7dff;
  color: #fff;
  transform: translateY(-2px);
}
.btn-brand-outline {
  background: transparent;
  border-color: rgba(242, 240, 233, 0.34);
  color: var(--paper);
}
.btn-brand-outline:hover,
.btn-brand-outline:focus-visible {
  background: rgba(242, 240, 233, 0.08);
  border-color: var(--paper);
  color: var(--paper);
  transform: translateY(-2px);
}

/* hero visual: Poland map floating between two orbit rings */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.2rem 0.5rem 0;
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(108%, 600px);
  aspect-ratio: 1;
  margin: -0.5rem 0 0;
  border: 1px dashed rgba(8, 105, 246, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 90s linear infinite;
  pointer-events: none;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.orbit::before {
  top: 12%;
  left: 20%;
  box-shadow: 0 0 14px rgba(8, 105, 246, 0.9);
}
.orbit::after {
  right: 10%;
  bottom: 24%;
  width: 5px;
  height: 5px;
  background: var(--paper);
  opacity: 0.6;
}
.orbit--inner {
  width: min(92%, 500px);
  border-style: dotted;
  border-color: rgba(242, 240, 233, 0.15);
  animation-duration: 70s;
  animation-direction: reverse;
}
.orbit--inner::before,
.orbit--inner::after {
  display: none;
}
.map-float {
  position: relative;
  z-index: 1;
  width: min(100%, 629px);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(8, 105, 246, 0.25)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  animation: float 9s ease-in-out infinite;
}

/* hero counters */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-stat__num {
  display: block;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-stat__label {
  display: block;
  margin-top: 0.45rem;
  color: rgba(242, 240, 233, 0.42);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  scroll-margin-top: var(--header-h);
}
.section--lighter {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.section-kicker {
  margin: 0 0 1.6rem;
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.text-blue {
  color: var(--blue-bright);
}
/* inline text links: theme blue, no underline, paper-white on hover */
a.link {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color 0.18s ease;
}
a.link:hover,
a.link:focus-visible {
  color: var(--paper);
}
/* prominent italic call-to-action link with a blue underline */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(8, 105, 246, 0.45);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link .icon {
  transition: transform 0.18s ease;
}
.text-link:hover,
.text-link:focus-visible {
  border-color: var(--paper);
  color: var(--paper);
}
.text-link:hover .icon {
  transform: translateX(3px);
}
/* the three-beat title: one line per word on phones, inline from tablet up */
.title-line {
  display: block;
}

/* ---------- co to jest ---------- */
.story {
  padding-top: 0.4rem;
}
.story p {
  margin: 0 0 0.95rem;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.94rem;
  line-height: 1.75;
}
.story > p:first-of-type {
  margin-top: 1.4rem;
}
.story p strong {
  color: var(--paper);
  font-weight: 600;
}

/* phone stage: glow + dashed ring behind a slightly tilted phone */
.phone-stage {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  padding: 1rem 0;
}
.phone-glow {
  position: absolute;
  inset: 6% -12% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(8, 105, 246, 0.75), rgba(8, 105, 246, 0) 62%);
  filter: blur(30px);
}
.phone-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124%;
  aspect-ratio: 1;
  border: 1px dashed rgba(242, 240, 233, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(8deg);
}
.phone {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-1.4deg);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.75));
}

/* Ujebomat vs GPXLAB */
.identity-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.7rem 0 1.4rem;
}
.identity-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(242, 240, 233, 0.12);
  border-radius: 10px;
  background: rgba(242, 240, 233, 0.035);
}
.identity-card__label {
  display: block;
  color: rgba(242, 240, 233, 0.85);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.identity-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3.6vw, 1.15rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
.identity-card--blue {
  border-color: rgba(8, 105, 246, 0.4);
  background: rgba(8, 105, 246, 0.1);
}
.identity-card--blue .identity-card__label {
  color: var(--blue-bright);
}

/* alert: why there is no Ujebomat app */
.alert-card {
  padding: 1.1rem 1.15rem;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  background: rgba(243, 39, 36, 0.055);
}
.alert-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.alert-card__icon {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex: none;
  color: var(--red);
}
.alert-card h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.alert-card p {
  margin: 0.55rem 0 0;
  color: rgba(242, 240, 233, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* GPXLAB links row under the alert */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}
.store-btn {
  flex: 1 1 100%;
  font-size: 1.14rem;
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .store-btn {
    flex: 1 1 0;
    font-size: 1.02rem;
    padding: 0.75rem 0.75rem;
  }
}

/* ---------- jak to działa ---------- */
.section--dark {
  background: var(--night);
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 2.4rem;
}

/* three step cards above a shared blue glow */
.step-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-bottom: 3.4rem;
}
.step-grid::before {
  content: "";
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(8, 105, 246, 0.38), rgba(8, 105, 246, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}
.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.25rem 1.45rem;
  border: 1px solid rgba(242, 240, 233, 0.1);
  border-radius: 12px;
  background: var(--surface);
}
.step-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* lead illustration, optically sized by height (the three marks differ in aspect) */
.step-icon-stage {
  position: relative;
  flex: none;
}
.step-icon-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(8, 105, 246, 0.45), rgba(8, 105, 246, 0) 68%);
  filter: blur(18px);
}
.step-icon {
  position: relative;
  display: block;
  width: auto;
  height: 106px;
}
.step-num {
  color: transparent;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 900;
  line-height: 0.75;
  -webkit-text-stroke: 1.5px rgba(242, 240, 233, 0.38);
}
.step-card h3 {
  margin: 0 0 0.55rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 1.85rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.step-card p {
  margin: 0;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* feature list + router list columns */
.feature-split {
  margin-top: 0.5rem;
}
.subhead {
  margin-bottom: 1.4rem;
}
.subhead-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.subhead-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.feature-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.feature-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border: 1px solid rgba(63, 191, 99, 0.5);
  border-radius: 50%;
  background: rgba(63, 191, 99, 0.12);
  color: #3fbf63;
}
.feature-check .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.8;
}
.feature-list strong {
  display: block;
  color: var(--paper);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}
.feature-list span:not(.feature-check) {
  display: block;
  margin-top: 0.15rem;
  color: rgba(242, 240, 233, 0.58);
  font-size: 0.85rem;
  line-height: 1.55;
}

.router-list {
  border-top: 1px solid rgba(242, 240, 233, 0.14);
}
.router-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(242, 240, 233, 0.12);
}
.router-track {
  flex: 0 0 40px;
  padding-top: 0.3rem;
}
.router-track svg {
  display: block;
  width: 40px;
  height: 22px;
}
.router-track path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
}
.router-track--grey {
  color: #9aa1aa;
}
.router-track--brown {
  color: #b98256;
}
.router-track--orange {
  color: #f08a2c;
}
.router-track--red {
  color: var(--red);
}
.router-track--green {
  color: #3fbf63;
}
.router-body {
  flex: 1;
  min-width: 0;
}
.router-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.router-name strong {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.badge-soft {
  padding: 0.12rem 0.38rem;
  border: 1px solid rgba(242, 240, 233, 0.22);
  border-radius: 3px;
  color: rgba(242, 240, 233, 0.55);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}
.router-row p {
  margin: 0.3rem 0 0;
  color: rgba(242, 240, 233, 0.58);
  font-size: 0.85rem;
  line-height: 1.55;
}
.router-note {
  margin-top: 1.4rem;
}

@media (min-width: 768px) {
  .title-line {
    display: inline;
  }
  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .step-card {
    padding: 1.35rem 1.2rem 1.4rem;
  }
  .step-card h3 {
    font-size: 1.6rem;
  }
  .step-card p {
    font-size: 0.86rem;
  }
  /* three-up cards are narrow: keep the mark legible but compact */
  .step-icon {
    height: 91px;
  }
  .step-num {
    font-size: 2.2rem;
  }
  .offem-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .step-icon {
    height: 115px;
  }
  .step-num {
    font-size: 2.6rem;
  }
}

/* ---------- polska offem ---------- */
.offem {
  padding-top: 0.4rem;
}
.offem-sub {
  margin: 0.6rem 0 1.3rem;
  color: rgba(242, 240, 233, 0.5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}
.offem-copy p {
  margin: 0 0 0.95rem;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* stats row between hairlines */
.offem-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 1.7rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.offem-stats span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(242, 240, 233, 0.45);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
/* same digit style as the hero counters (Roboto Mono); mono is wide, so below
   576px keep the value small enough that "8 000+ km" fits one stat cell */
.offem-stats strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
@media (min-width: 576px) {
  .offem-stats strong {
    font-size: 1.4rem;
  }
}

.offem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* same type size as the .store-btn row in #co-to-jest (vertical padding kept
   in step with the font so the button box stays the same height) */
.offem-actions .btn-brand {
  font-size: 1.14rem;
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .offem-actions .btn-brand {
    font-size: 1.02rem;
    padding: 0.75rem 0.75rem;
  }
}

/* fake browser window: the whole thing links to the live GPXLAB share */
.map-window {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(242, 240, 233, 0.14);
  border-radius: 13px;
  background: #0a0c0f;
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.9);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.map-window:hover,
.map-window:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(8, 105, 246, 0.65);
  box-shadow: 0 48px 80px -35px rgba(0, 0, 0, 0.95), 0 0 34px -6px rgba(8, 105, 246, 0.35);
}
.map-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: 42px;
  padding: 0 0.85rem;
  border-bottom: 1px solid rgba(242, 240, 233, 0.08);
  background: #14171c;
}
.browser-dots {
  display: flex;
  flex: none;
  gap: 4px;
}
.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3f47;
}
.browser-dots i:first-child {
  background: #ff5f57;
}
.browser-dots i:nth-child(2) {
  background: #febc2e;
}
.browser-dots i:last-child {
  background: #28c840;
}
.map-url {
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(242, 240, 233, 0.1);
  border-radius: 999px;
  background: #0d0f13;
  color: rgba(242, 240, 233, 0.6);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}
.map-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  color: rgba(242, 240, 233, 0.5);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbf63;
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 191, 99, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(63, 191, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 191, 99, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot {
    animation: none;
  }
}
.map-canvas {
  position: relative;
  display: block;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(8, 105, 246, 0.1), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.03) 39px 40px);
}
.map-canvas__poland {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0.2rem auto 0;
}
.map-legend {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(242, 240, 233, 0.12);
  border-radius: 7px;
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(3px);
  color: rgba(242, 240, 233, 0.75);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.map-legend .lg {
  width: 12px;
  height: 3px;
  border-radius: 2px;
}
.lg--tet {
  background: var(--red);
}
.lg--done {
  background: #3fbf63;
}
.lg--todo {
  background: #a06bff;
}
.map-cta {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.map-window:hover .map-cta,
.map-window:focus-visible .map-cta {
  opacity: 1;
  transform: none;
}
.map-cta .icon {
  width: 0.95em;
  height: 0.95em;
}

/* bottom feature strip */
.offem-features {
  display: grid;
  gap: 1.1rem;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.offem-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.offem-feature .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--blue-bright);
}
.offem-feature strong {
  display: block;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.offem-feature span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(242, 240, 233, 0.55);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ---------- tutorial ---------- */
.tutorial-lead {
  margin: 0;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.85rem;
  line-height: 1.75;
}

/* youtube facade: zero third-party requests until the card is clicked */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e12;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover,
.video-card:focus-visible {
  border-color: rgba(8, 105, 246, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -30px rgba(8, 105, 246, 0.55);
  outline: none;
}
.video-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.6s ease, filter 0.3s ease;
}
.video-card:hover > img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.02);
}
.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 9, 0.12) 0%, rgba(6, 7, 9, 0.38) 40%, rgba(6, 7, 9, 0.88) 78%, rgba(6, 7, 9, 0.98) 100%);
}
.video-card--main {
  margin-bottom: 1.4rem;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 9px rgba(8, 105, 246, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
}
.video-play .icon {
  width: 25px;
  height: 25px;
}
.video-card:hover .video-play {
  background: var(--blue-bright);
  transform: translate(-50%, -50%) scale(1.06);
}
.video-play--sm {
  width: 46px;
  height: 46px;
  box-shadow: 0 0 0 6px rgba(8, 105, 246, 0.16);
}
.video-play--sm .icon {
  width: 18px;
  height: 18px;
}
.video-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
}
.video-kicker {
  color: #7fb0ff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.video-meta strong {
  display: block;
  max-width: 34ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}
.video-sub {
  color: rgba(242, 240, 233, 0.55);
  font-size: 0.78rem;
  line-height: 1.5;
}
.video-brand {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  z-index: 2;
  color: rgba(242, 240, 233, 0.55);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}
.video-duration {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.35rem;
  border-radius: 3px;
  background: rgba(6, 7, 9, 0.82);
  color: rgba(242, 240, 233, 0.8);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.video-row .video-meta {
  padding: 0.8rem 0.85rem;
}
.video-row .video-meta strong {
  font-size: 1.05rem;
  line-height: 1.02;
}
/* video player modal */
.video-modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08090b;
  color: var(--paper);
}
.video-modal .modal-header {
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.video-modal__head {
  min-width: 0;
}
.video-modal__kicker {
  margin: 0 0 0.2rem;
  color: #7fb0ff;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.video-modal__title {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.05;
  text-transform: uppercase;
}
.video-modal .btn-close {
  flex: 0 0 auto;
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.55;
}
.video-modal .btn-close:hover,
.video-modal .btn-close:focus-visible {
  opacity: 1;
}
.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal .modal-footer {
  justify-content: flex-start;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
}
.video-modal__yt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}
.video-modal__yt .icon {
  width: 13px;
  height: 13px;
}
.video-modal__yt:hover,
.video-modal__yt:focus-visible {
  color: var(--paper);
}
.modal-backdrop.show {
  opacity: 0.82;
}
/* large desktop: give the player more room, but keep it inside the viewport */
@media (min-width: 1200px) {
  .video-modal .modal-dialog {
    max-width: min(1200px, calc((100vh - 10rem) * 16 / 9));
  }
  .video-modal__title {
    font-size: 1.35rem;
  }
}
@media (max-width: 575.98px) {
  .video-modal .modal-dialog {
    margin: 0.5rem;
  }
  .video-modal__title {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .video-meta strong {
    font-size: 1.55rem;
  }
}
@media (min-width: 992px) {
  .video-card--main {
    margin-bottom: 1.5rem;
  }
  .video-card--main .video-meta {
    padding: 1.7rem 1.9rem;
  }
  .video-meta strong {
    font-size: 2rem;
  }
  .video-sub {
    font-size: 0.85rem;
  }
  .video-row {
    --bs-gutter-x: 1.5rem;
  }
  .video-play {
    width: 74px;
    height: 74px;
  }
  .video-play .icon {
    width: 29px;
    height: 29px;
  }
  .video-play--sm {
    width: 50px;
    height: 50px;
  }
  .video-play--sm .icon {
    width: 19px;
    height: 19px;
  }
}
/* small phones: main card goes 4:3 so the meta text does not eat the frame */
@media (max-width: 575.98px) {
  .video-card--main {
    aspect-ratio: 4 / 3;
  }
  .video-card--main .video-sub {
    display: none;
  }
  .video-card--main .video-play {
    top: 40%;
    width: 52px;
    height: 52px;
  }
  .video-card--main .video-play .icon {
    width: 20px;
    height: 20px;
  }
  .video-meta strong {
    font-size: 1.1rem;
  }
  .video-row .video-meta strong {
    font-size: 0.9rem;
  }
  .video-row .video-kicker {
    font-size: 0.42rem;
  }
  .video-play--sm {
    width: 38px;
    height: 38px;
  }
  .video-play--sm .icon {
    width: 15px;
    height: 15px;
  }
}

/* ---------- pytania ---------- */
.section-head--tight {
  margin-bottom: 1.9rem;
}
.section-lead {
  margin: 1.15rem 0 0;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.85rem;
  line-height: 1.75;
}

.faq {
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--paper);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--blue-bright);
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  border: 0;
  border-radius: 0;
}
.faq .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.faq .accordion-button {
  gap: 0.75rem;
  padding: 1.1rem 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--blue-bright);
  box-shadow: none;
}
.faq .accordion-button:hover {
  color: var(--blue-bright);
}
.faq .accordion-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.faq .accordion-button::after {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border: 1px solid rgba(242, 240, 233, 0.25);
  border-radius: 50%;
  background-image: none;
  content: "+";
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.faq .accordion-button:not(.collapsed)::after {
  background-color: var(--paper);
  color: var(--surface);
  content: "\2212";
  transform: none;
}
.faq-index {
  align-self: flex-start;
  padding-top: 0.25rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}
.faq .accordion-body {
  max-width: 66ch;
  padding: 0 2.3rem 1.3rem 2.25rem;
  color: rgba(242, 240, 233, 0.62);
  font-size: 0.91rem;
  line-height: 1.75;
}
.faq .accordion-body p {
  margin: 0 0 0.7rem;
}
.faq .accordion-body p:last-child {
  margin: 0;
}
.faq .accordion-body strong {
  color: var(--paper);
}

@media (min-width: 992px) {
  .faq .accordion-button {
    font-size: 1.5rem;
    padding: 1.25rem 0;
  }
  .faq .accordion-body {
    padding-left: 2.5rem;
  }
}
/* flush body text under the question on small phones */
@media (max-width: 575.98px) {
  .faq .accordion-body {
    padding: 0 0 1.2rem;
  }
}

/* ---------- zasady ---------- */
.decalogue {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 3.5vw, 2.6rem);
  border: 1px solid rgba(242, 240, 233, 0.13);
  border-radius: 16px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(243, 39, 36, 0.09), transparent 62%),
    linear-gradient(180deg, #14161a, #0c0e12);
  box-shadow: 0 50px 90px -60px rgba(0, 0, 0, 0.95);
}
/* red spine, like a field manual */
.decalogue::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
}
.decalogue .section-title {
  font-size: clamp(1.55rem, 5.4vw, 3.4rem);
}
.decalogue__lead {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}
.decalogue__lead--short {
  margin-top: 0.45rem;
  color: rgba(242, 240, 233, 0.82);
}
.decalogue__list {
  display: grid;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}
.decalogue__item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(242, 240, 233, 0.09);
}
.decalogue__num {
  flex: none;
  padding-top: 0.2rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.decalogue__item h3 {
  margin: 0 0 0.3rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.decalogue__item p {
  margin: 0;
  max-width: 47ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.decalogue__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(242, 240, 233, 0.09);
}
.decalogue__foot p {
  margin: 0;
  max-width: 64ch;
  color: rgba(242, 240, 233, 0.5);
  font-size: 0.86rem;
  line-height: 1.7;
}
@media (min-width: 992px) {
  .decalogue__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.6rem;
  }
}

/* ---------- kontakt ---------- */
.contact-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.9rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.contact-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(8, 105, 246, 0.3);
  border-radius: 8px;
  background: rgba(8, 105, 246, 0.08);
  color: var(--blue-bright);
}
.contact-ico .icon {
  width: 17px;
  height: 17px;
}
.contact-ico--grey {
  border-color: rgba(154, 161, 170, 0.3);
  background: rgba(154, 161, 170, 0.08);
  color: #9aa1aa;
}
.contact-ico--brown {
  border-color: rgba(185, 130, 86, 0.3);
  background: rgba(185, 130, 86, 0.08);
  color: #b98256;
}
.contact-ico--orange {
  border-color: rgba(240, 138, 44, 0.3);
  background: rgba(240, 138, 44, 0.08);
  color: #f08a2c;
}
.contact-ico--red {
  border-color: rgba(243, 39, 36, 0.3);
  background: rgba(243, 39, 36, 0.08);
  color: var(--red);
}
.contact-kicker {
  display: block;
  color: rgba(242, 240, 233, 0.35);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.contact-list a {
  display: block;
  margin-top: 0.2rem;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.contact-list a:hover,
.contact-list a:focus-visible {
  border-bottom-color: rgba(62, 134, 255, 0.4);
  color: var(--blue-bright);
}

.contact-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(242, 240, 233, 0.035);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 70px -45px rgba(0, 0, 0, 0.9);
}
.contact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(242, 240, 233, 0.09);
  color: rgba(242, 240, 233, 0.35);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8fe0a6;
  font-size: 0.56rem;
}

.contact-form .form-label {
  margin-bottom: 0.35rem;
  color: rgba(242, 240, 233, 0.5);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-form .form-control {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(242, 240, 233, 0.15);
  border-radius: 7px;
  background: rgba(6, 7, 9, 0.45);
  color: var(--paper);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.contact-form .form-control::placeholder {
  color: rgba(242, 240, 233, 0.26);
}
.contact-form .form-control:focus {
  border-color: var(--blue);
  background: rgba(6, 7, 9, 0.65);
  color: var(--paper);
  box-shadow: 0 0 0 3px rgba(8, 105, 246, 0.18);
}
.contact-form .form-control:focus-visible {
  outline: none;
}
.contact-form textarea.form-control {
  min-height: 128px;
  resize: vertical;
}
.contact-form.was-validated .form-control:invalid {
  border-color: rgba(255, 108, 105, 0.8);
  background-image: none;
}
.contact-form.was-validated .form-control:valid {
  border-color: rgba(37, 140, 64, 0.55);
  background-image: none;
}
.contact-form .invalid-feedback {
  color: #ff8f8c;
  font-size: 0.74rem;
}
.contact-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.contact-form__note {
  max-width: 36ch;
  margin: 0;
  color: rgba(242, 240, 233, 0.4);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(37, 140, 64, 0.45);
  border-radius: 8px;
  background: rgba(37, 140, 64, 0.11);
}
.form-success[hidden] {
  display: none !important;
}
.form-success__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(63, 191, 99, 0.16);
  color: #8fe0a6;
}
.form-success__ico .icon {
  width: 13px;
  height: 13px;
}
.form-success strong {
  display: block;
  color: #8fe0a6;
  font-size: 0.86rem;
}
.form-success span span,
.form-success div > span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(242, 240, 233, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(243, 39, 36, 0.45);
  border-radius: 8px;
  background: rgba(243, 39, 36, 0.11);
}
.form-error[hidden] {
  display: none !important;
}
.form-error__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(243, 39, 36, 0.16);
  color: #ff9a98;
}
.form-error__ico .icon {
  width: 13px;
  height: 13px;
}
.form-error strong {
  display: block;
  color: #ff9a98;
  font-size: 0.86rem;
}
.form-error span span,
.form-error div > span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(242, 240, 233, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (min-width: 992px) {
  .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.6rem;
  }
  .contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  /* the fields grid takes the slack and the textarea grows, so the card
     bottoms out level with the contact list on the left */
  .contact-form .row {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .contact-form .row > .col-md-6 {
    /* bootstrap's width:50% would be 50% of the grid track, not the row */
    width: auto;
  }
  .contact-form .row > .col-12 {
    grid-column: 1 / -1;
  }
  .contact-form .row > .col-12:has(textarea) {
    display: flex;
    flex-direction: column;
  }
  .contact-form textarea.form-control {
    flex: 1;
    height: auto;
  }
}
/* small phones: note above a full-width submit button */
@media (max-width: 575.98px) {
  .contact-form__foot {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-form__foot .btn {
    width: 100%;
  }
}

/* narrow screens: keep the legend chip clear of the map art's baked-in shadow edge */
@media (max-width: 767.98px) {
  .map-canvas {
    padding-bottom: 3.5rem;
  }
}

/* ---------- smallest phones ---------- */
/* stacked title lines: at 2.4rem the italic overhang of JEDZIESZ. reaches the screen edge at 320px */
@media (max-width: 359.98px) {
  #jak-to-dziala .section-title {
    font-size: 2.15rem;
  }
}

/* ---------- below lg ---------- */
@media (max-width: 991.98px) {
  .hero-copy {
    text-align: center;
  }
  .hero-tagline {
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  /* phone stays below the fold: stage width capped at the image aspect (800/1693) for 50vh height */
  .phone-stage {
    width: min(100%, calc(50vh * 0.4725));
    padding: 0 0 0.6rem;
  }
  /* stacked cards: per-card halo instead of the single glow showing between them */
  .step-grid::before {
    display: none;
  }
  .step-card {
    box-shadow: 0 0 40px -12px rgba(8, 105, 246, 0.18);
  }
}

/* ---------- small+ ---------- */
@media (min-width: 576px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .hero-stat + .hero-stat {
    padding-left: 0.9rem;
    border-left: 1px solid var(--line);
  }
  .hero-stat__num {
    font-size: 1.4rem;
  }
}

/* ---------- desktop ---------- */
@media (min-width: 992px) {
  :root {
    --header-h: 78px;
  }
  .site-header .navbar {
    padding: 0.85rem 0;
  }
  .brand-mascot {
    width: 48px;
  }
  .brand-word {
    font-size: 1.9rem;
  }
  .navbar-collapse {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .navbar-nav {
    gap: 0.05rem;
  }
  .navbar-nav .nav-link {
    padding: 0.4rem 0.6rem;
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  /* CTA matches the desktop menu type size */
  .btn-gpx {
    padding: 0.5rem 0.83rem;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .orbit,
  .map-float {
    animation: none;
  }
  .video-modal.fade .modal-dialog {
    transition: none;
  }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 4.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  background: var(--night-deep);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  text-decoration: none;
}
.footer-logo img {
  width: 87px;
  height: 87px;
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}
.footer-word {
  width: 87px;
  font-family: var(--font-display);
  font-size: 1.41rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.socials {
  display: flex;
  gap: 0.55rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 240, 233, 0.28);
  border-radius: 9px;
  color: rgba(242, 240, 233, 0.88);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.socials a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.socials a .icon {
  width: 20px;
  height: 20px;
}

.footer-social {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.footer-social__title {
  margin: 0;
  color: rgba(242, 240, 233, 0.4);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-disclaimer {
  display: flex;
  flex: 1 1 360px;
  align-items: flex-start;
  min-width: 0;
  gap: 0.7rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(242, 240, 233, 0.08);
  border-radius: 8px;
  background: rgba(242, 240, 233, 0.02);
}
.footer-disclaimer .icon {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 0.1rem;
  color: #3fbf63;
}
.footer-disclaimer p {
  margin: 0;
  color: rgba(242, 240, 233, 0.44);
  font-size: 0.78rem;
  line-height: 1.65;
}
.footer-disclaimer strong {
  color: rgba(242, 240, 233, 0.66);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(242, 240, 233, 0.07);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: rgba(242, 240, 233, 0.36);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .footer-disclaimer {
    flex: 0 0 auto;
    width: 100%;
  }
  .footer-social {
    align-items: center;
  }
}
