:root {
  --navy: #093c5d;
  --steel: #3b7597;
  --teal: #6fd1d7;
  --aqua: #5df8d8;
  --ink: #062536;
  --paper: #f3f8fb;
  --muted: #5f7a8c;
  --line: rgba(9, 60, 93, 0.14);
  --font: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(6, 37, 54, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(93, 248, 216, 0.22), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(111, 209, 215, 0.2), transparent 55%),
    linear-gradient(180deg, #e8f3f7 0%, var(--paper) 42%, #e3eef4 100%);
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo {
  width: 2.85rem;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(6, 37, 54, 0.18));
}

.brand-logo.sm { width: 2.35rem; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
}

.nav-cta-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}

/* Silnice v navu + zastávky sekcí */
.nav-road {
  background:
    linear-gradient(180deg, rgba(9, 60, 93, 0.98), rgba(9, 60, 93, 0.9)),
    linear-gradient(90deg, #093c5d, #3b7597);
  border-top: 1px solid rgba(93, 248, 216, 0.18);
  padding-bottom: 0.55rem;
}

.nav-road-track {
  position: relative;
  height: 3.6rem;
  overflow: hidden;
}

.nav-road-line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.55rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 248, 216, 0.5) 10%,
    rgba(111, 209, 215, 0.4) 90%,
    transparent
  );
  z-index: 0;
}

.nav-car {
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: min(150px, 34vw);
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
  transition: transform 0.15s linear;
}

.nav-car-svg {
  display: block;
  width: 100%;
  height: auto;
}

.nav-car .bp-body,
.nav-car .bp-wheel {
  fill: none;
}

.nav-stops {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  align-items: end;
  padding-top: 0.15rem;
  padding-bottom: 0.35rem;
}

.nav-stop {
  text-align: center;
  text-decoration: none;
  color: rgba(244, 251, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.2rem 0.1rem;
  transition: color 0.2s ease, font-size 0.2s ease, transform 0.2s ease;
}

.nav-stop.is-active {
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4fbff;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(9, 60, 93, 0.94) 0%, rgba(9, 60, 93, 0.78) 38%, rgba(59, 117, 151, 0.52) 100%),
    radial-gradient(circle at 78% 28%, rgba(93, 248, 216, 0.32), transparent 42%),
    linear-gradient(160deg, #093c5d, #3b7597 55%, #6fd1d7);
  background-size: cover;
  background-position: center;
}

.hero-plane.has-image {
  background-blend-mode: multiply, normal, normal;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.45;
}

/* Statické auto v hero + scan; odjezd jen uvnitř hero */
.hero-stage {
  position: absolute;
  right: max(-2rem, calc(50% - 560px));
  bottom: 8%;
  width: min(640px, 58vw);
  aspect-ratio: 640 / 280;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 20px 40px rgba(6, 37, 54, 0.35));
  transform: translate3d(0, 0, 0);
}

.hero-stage .car-blueprint {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.hero-stage .bp-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawPath 2.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-stage .bp-cabin { animation-delay: 0.35s; }
.hero-stage .bp-detail { animation-delay: 0.7s; }
.hero-stage .bp-wheel { animation-delay: 0.55s; stroke-dasharray: 180; stroke-dashoffset: 180; }
.hero-stage .bp-link { animation-delay: 1s; stroke-dasharray: 280; stroke-dashoffset: 280; }

.hero-stage .bp-hub {
  opacity: 0;
  animation: fadeNode 0.6s ease 1.2s forwards;
}

.hero-stage .bp-nodes .node {
  opacity: 0;
  animation: nodePulse 2.8s ease-in-out infinite;
}

.hero-stage .bp-nodes .node:nth-child(1) { animation-delay: 1.1s; }
.hero-stage .bp-nodes .node:nth-child(2) { animation-delay: 1.25s; }
.hero-stage .bp-nodes .node:nth-child(3) { animation-delay: 1.4s; }
.hero-stage .bp-nodes .node:nth-child(4) { animation-delay: 1.55s; }
.hero-stage .bp-nodes .node:nth-child(5) { animation-delay: 1.7s; }

.hero-stage .scan-beam {
  position: absolute;
  inset: -8% auto -8% 0;
  width: 18%;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(93, 248, 216, 0.05) 30%,
    rgba(93, 248, 216, 0.45) 50%,
    rgba(111, 209, 215, 0.12) 70%,
    transparent 100%
  );
  mix-blend-mode: screen;
  animation: scanSweep 3.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: blur(0.5px);
}

.hero-stage .orbit-ring {
  position: absolute;
  left: 52%;
  top: 48%;
  width: 72%;
  height: 118%;
  border: 1px solid rgba(93, 248, 216, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-8deg);
  animation: orbitSpin 18s linear infinite;
  z-index: 1;
  box-shadow: inset 0 0 40px rgba(93, 248, 216, 0.06);
}

.hero-stage .orbit-ring.delay {
  width: 88%;
  height: 140%;
  border-color: rgba(111, 209, 215, 0.14);
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero-stage.is-drawn .bp-path {
  animation: none;
  stroke-dashoffset: 0;
}

.hero-stage.is-drawn .bp-hub {
  opacity: 1;
  animation: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: min(820px, 54%);
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--aqua);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(244, 251, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--aqua); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-block { width: 100%; }

.section { padding: 5rem 0; }

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.section-grid p {
  color: var(--muted);
  font-size: 1.12rem;
}

.logo-slot {
  min-height: 220px;
  border: 2px dashed rgba(59, 117, 151, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(111, 209, 215, 0.18), rgba(255, 255, 255, 0.7));
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--navy);
  padding: 1.5rem;
}

.logo-slot-filled {
  border-style: solid;
  border-color: var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(93, 248, 216, 0.16), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #e8f4f8 100%);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 36px rgba(6, 37, 54, 0.08);
}

.logo-slot-filled img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 10px 22px rgba(6, 37, 54, 0.16));
}

.service-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.svc-code {
  font-family: var(--mono);
  color: var(--steel);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.service-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #d7e7ef;
  min-height: 360px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.map-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-contact {
  background:
    linear-gradient(180deg, rgba(9, 60, 93, 0.04), transparent 30%),
    rgba(255, 255, 255, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-meta li { display: grid; gap: 0.15rem; }

.contact-meta span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-meta strong,
.contact-meta a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.chip-link {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}

.contact-form .opt {
  font-weight: 500;
  color: var(--muted);
}

.contact-form label.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form label.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(9, 60, 93, 0.2);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(111, 209, 215, 0.7);
  border-color: var(--steel);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-note.is-ok { color: #1f7a4d; font-weight: 600; }
.form-note.is-err { color: #a11f2c; font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  background: rgba(9, 60, 93, 0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand strong { color: var(--navy); }
.footer-brand p,
.footer-copy {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes scanSweep {
  0% { left: -12%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 94%; opacity: 0; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.55); }
}

@keyframes fadeNode {
  to { opacity: 1; }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-8deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(352deg); }
}

@media (max-width: 880px) {
  .section-grid,
  .contact-grid,
  .service-list { grid-template-columns: 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 4.6rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(243, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.2rem; }
  .nav-toggle { display: inline-flex; }

  .nav-road-track { height: 3rem; }
  .nav-car { width: min(118px, 30vw); transition: none; }
  .nav-stop { font-size: 0.58rem; letter-spacing: 0.02em; }
  .nav-stop.is-active { font-size: 0.78rem; }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-copy {
    max-width: 100%;
    padding: 5.5rem 0 1.5rem;
  }

  .hero-stage {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 420px);
    margin: 0 auto 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-car,
  .nav-stop { transition: none; }
  .hero-stage .bp-path,
  .hero-stage .scan-beam,
  .hero-stage .orbit-ring,
  .hero-stage .bp-nodes .node,
  .hero-stage .bp-hub { animation: none !important; }
  .hero-stage .bp-path { stroke-dashoffset: 0; }
  .hero-stage .bp-hub,
  .hero-stage .bp-nodes .node { opacity: 1; }
}
