/* TotalGPS – totalgps.pl */

:root {
  --navy-950: #07111c;
  --navy-900: #0b1724;
  --navy-800: #10233a;
  --ink: #0f1b2a;
  --muted: #5a6a7e;
  --muted-dark: #9fb4ca;
  --text-dark: #c3d3e4;
  --line: #e2e8f0;
  --field: #cfd8e3;
  --soft: #f3f6f9;
  --accent: #14b87a;
  --accent-600: #0e9c66;
  --accent-300: #5fe3b0;
  --accent-50: #e8f8f1;
  --danger: #c63a3a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 42, .06), 0 10px 30px rgba(15, 27, 42, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
fieldset { min-width: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* ── Przyciski ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px;
  padding: .7em 1.3em; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--navy-950); }
.btn-accent:hover { background: var(--accent-300); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ── Nagłówek ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text span { color: var(--accent-600); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: .5em .85em; border-radius: 8px;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .97rem;
}
.nav a:hover { color: var(--ink); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { width: 18px; height: 18px; color: var(--accent-600); }
.header-phone:hover span { text-decoration: underline; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer;
}

@media (max-width: 920px) {
  .nav {
    display: none; position: absolute; top: 72px; left: -20px; right: -20px;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 27, 42, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em .6em; font-size: 1.05rem; color: var(--ink); }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-phone {
    width: 44px; height: 44px; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
  }
  .header-phone span { display: none; }
}
@media (max-width: 380px) {
  .header-actions .btn-sm { display: none; }
}

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(20, 184, 122, .2), transparent 62%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
  padding: 88px 0 100px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: .9rem; font-weight: 600; color: var(--text-dark);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-300); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(95, 227, 176, .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(95, 227, 176, 0); }
}
.hl { color: var(--accent-300); }
.lead { font-size: 1.17rem; color: var(--text-dark); max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero-facts {
  list-style: none; margin: 0; padding: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts strong { display: block; font-size: 1.4rem; letter-spacing: -.02em; }
.hero-facts span { font-size: .9rem; color: var(--muted-dark); }

.hero-visual { position: relative; }
.map {
  width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
}
.route-flow { stroke-dasharray: 2 14; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.map-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
  background: #fff; color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  font-size: .9rem; line-height: 1.35;
}
.map-card strong { display: block; font-size: .95rem; }
.map-card small { color: var(--muted); }
.map-card .ic {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent-600);
}
.map-card .icon { width: 20px; height: 20px; }
.map-card--alert { left: -22px; top: 28px; }
.map-card--live { right: -22px; bottom: 30px; }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-600); font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; animation: ping 2s infinite;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 80px; }
  .hero-visual { max-width: 620px; }
  .map-card--alert { left: 12px; top: 12px; }
  .map-card--live { right: 12px; bottom: 12px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .map-card { font-size: .8rem; padding: 8px 12px 8px 8px; }
  .map-card strong { font-size: .84rem; }
  .map-card .ic { width: 30px; height: 30px; }
  .map-card--alert { position: static; margin-top: 12px; }
  .map-card--live { display: none; }
}

/* ── Sekcje ───────────────────────────────── */
.section { padding: 100px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child:not(.kicker) { color: var(--muted); font-size: 1.08rem; margin: 0; }
.kicker {
  margin: 0 0 12px;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600);
}
@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

/* Funkcje */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature:hover { border-color: #c9eadb; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ic {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 20px; border-radius: 13px;
  background: var(--accent-50); color: var(--accent-600);
}
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Jak to działa */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step { position: relative; padding: 34px 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%;
  background: var(--navy-900); color: var(--accent-300); font-weight: 800; font-size: 1.1rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 57px; right: -24px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px);
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* Cennik */
.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center; gap: 28px; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 40px 34px 34px; border: 1px solid var(--line); border-radius: 22px; background: #fff;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .3em; }
.plan-featured {
  background: var(--navy-900); color: #fff; border-color: var(--navy-900);
  box-shadow: 0 28px 60px rgba(11, 23, 36, .28);
}
.badge {
  position: absolute; top: -14px; left: 34px; margin: 0;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent); color: var(--navy-950);
  font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.plan-desc { color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 4px; }
.amount { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.per { color: var(--muted); font-weight: 600; }
.gross { margin-bottom: 26px; font-size: .92rem; color: var(--muted); }
.plan-featured .plan-desc, .plan-featured .per, .plan-featured .gross { color: var(--muted-dark); }
.checks { list-style: none; margin: 0 0 32px; padding: 26px 0 0; display: grid; gap: 13px; flex: 1; border-top: 1px solid var(--line); align-content: start; }
.plan-featured .checks { border-top-color: rgba(255, 255, 255, .12); }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-600); }
.plan-featured .checks .icon { color: var(--accent-300); }
.plans-note { margin: 36px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.plans-note a { color: var(--accent-600); font-weight: 700; }
@media (max-width: 780px) { .plans { grid-template-columns: minmax(0, 480px); } }

/* ── Kontakt ───────────────────────────────── */
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .kicker { color: var(--accent-300); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-info { padding-top: 12px; }
.contact-info > p { color: var(--text-dark); font-size: 1.08rem; }
.phone-card {
  display: inline-flex; align-items: center; gap: 16px;
  margin: 14px 0 32px; padding: 14px 24px 14px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none; transition: background-color .2s, border-color .2s;
}
.phone-card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.phone-card .ic {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px;
  background: var(--accent); color: var(--navy-950);
}
.phone-card small { display: block; color: var(--muted-dark); font-size: .85rem; }
.phone-card strong { font-size: 1.4rem; letter-spacing: .01em; white-space: nowrap; }
.contact-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-dark); }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; }
.contact-points .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent-300); }

.form-card {
  padding: 38px; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-narrow { max-width: 260px; }
.field label, .field legend { font-weight: 600; font-size: .93rem; }
.field legend { padding: 0; margin-bottom: 7px; }
.opt { color: var(--muted); font-weight: 500; }
.req { color: var(--danger); }
.field :is(input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea) {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--field); border-radius: 10px; padding: .72em .9em;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field textarea:hover { border-color: #b6c3d1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-600); box-shadow: 0 0 0 4px rgba(20, 184, 122, .18); }
.field textarea { resize: vertical; min-height: 112px; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: .86rem; font-weight: 600; }

.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  display: block; height: 100%; padding: .7em .6em; text-align: center;
  border: 1.5px solid var(--field); border-radius: 10px; font-weight: 700;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.choice:hover > span { border-color: #b6c3d1; }
.choice input:checked + span { border-color: var(--accent-600); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-600); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.field .consent { font-weight: 500; font-size: .9rem; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-600); }
.consent a { color: var(--ink); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-note { margin: -6px 0 0; font-size: .85rem; color: var(--muted); }

.form-success { padding: 40px 12px; text-align: center; }
.form-success:focus { outline: none; }
.form-success .icon { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--accent-600); stroke-width: 1.6; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--muted); margin: 0; }
.form-success a { color: var(--ink); font-weight: 700; white-space: nowrap; }

@media (max-width: 920px) { .contact { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) {
  .form-card { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .field-narrow { max-width: none; }
  .phone-card strong { font-size: 1.2rem; }
}
@media (max-width: 400px) { .choices { grid-template-columns: 1fr; } }

/* ── Stopka ───────────────────────────────── */
.site-footer { background: var(--navy-950); color: var(--muted-dark); padding: 52px 0 30px; font-size: .95rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .logo { color: #fff; }
.site-footer .logo-text span { color: var(--accent-300); }
.footer-tag { margin: 14px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 4px; }
.footer-links a { color: #dbe6f1; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { padding-top: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ── Podstrony (polityka prywatności, wynik formularza) ─────────────── */
.page { padding: 64px 0 100px; }
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.prose h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; }
.prose p, .prose li { color: #334155; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent-600); }
.prose .updated { color: var(--muted); font-size: .95rem; }
mark.todo { background: #fff1b8; color: #6b4e00; padding: 0 .3em; border-radius: 4px; }
.back-link { font-weight: 600; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }

.result-page { min-height: 100vh; display: grid; place-items: center; background: var(--navy-900); padding: 20px; }
.result-card { max-width: 520px; padding: 40px 36px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.result-card ul { text-align: left; color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
