/* ==========================================================================
   BISPED — Autodoprava & Spedice
   Design: ostrý modernismus | bílá + černá + zelený akcent
   ========================================================================== */

/* TOKENS
   ----------------------------------------------------------------------- */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-line: #1f1f1f;
  --gray-900: #1f1f1f;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50:  #fafafa;
  --white: #ffffff;

  /* Akcent — zelená střídmě */
  --accent: #00d563;
  --accent-deep: #00a84e;
  --accent-soft: #ccffe2;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,.18);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --container: 1280px;
  --section-y: clamp(72px, 10vw, 140px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 80px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease-out);
}

button { font: inherit; }

::selection { background: var(--accent); color: var(--black); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* TYPOGRAPHY
   ----------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

/* CONTAINER
   ----------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* BUTTONS
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  transition: background .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .15s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-ghost:hover { background: var(--black); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-block { width: 100%; }

.btn:active { transform: translateY(1px); }

/* HEADER
   ----------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 32px; width: auto; }
@media (min-width: 768px) { .brand-logo { height: 36px; } }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; flex: 1; } }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  justify-content: center;
}

.nav-list a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease-out);
}
.nav-list a:hover { color: var(--black); }
.nav-list a:hover::after { width: 100%; }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 12px;
  font-weight: 500;
  font-size: 17px;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav .btn { margin-top: 12px; }

/* HERO
   ----------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: 0;
  overflow: hidden;
  background: var(--white);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero { min-height: auto; display: block; padding-top: clamp(40px, 8vw, 72px); }
}

/* Hero video pozadí + parallax */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  /* parallax přes CSS — video bude posunované přes JS pomocí transform */
  will-change: transform;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 112%;
  min-width: 100%;
  min-height: 112%;
  object-fit: cover;
  object-position: center 45%;
  transform: translate(-50%, -50%);
  /* Filtr pro lepší kontrast textu */
  filter: brightness(.55) saturate(.85) contrast(1.05);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Bílý overlay aby text zůstal čitelný — gradient zleva dolů */
  background:
    linear-gradient(110deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.82) 35%, rgba(255,255,255,.45) 70%, rgba(255,255,255,.25) 100%),
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, transparent 30%, transparent 70%, rgba(255,255,255,.55) 100%);
}
.hero-grid { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.7) 100%);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 24px;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gray-700);
  width: fit-content;
}
.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}

.hero-title {
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: .95;
  max-width: 14ch;
}

.accent-stroke {
  display: inline-block;
  position: relative;
  color: var(--black);
  isolation: isolate;
}
.accent-stroke::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 8%;
  height: 30%;
  background: var(--accent);
  z-index: -1;
  transform: skewX(-6deg);
}
.section-title--light .accent-stroke,
.fleet-num .accent-stroke {
  color: var(--white);
}

.hero-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 60ch;
}
.hero-lead strong { color: var(--black); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-stats {
  list-style: none;
  margin: 32px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.stat-num small {
  font-size: .55em;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-left: 2px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

/* Geometric shapes — strong asymmetric accent */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .9;
}
.shape-1 {
  top: -10%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: var(--accent);
  filter: blur(80px);
  opacity: .25;
}
.shape-2 {
  top: 20%;
  right: 5%;
  width: 12px;
  height: 12px;
  background: var(--black);
  border-radius: 0;
  transform: rotate(45deg);
  display: none;
}
.shape-3 {
  bottom: 15%;
  right: 12%;
  width: 200px;
  height: 200px;
  background: transparent;
  border: 2px solid var(--black);
  border-radius: 0;
  transform: rotate(12deg);
  display: none;
}
@media (min-width: 1024px) {
  .shape-2, .shape-3 { display: block; }
  .shape-1 { width: 600px; height: 600px; opacity: .35; }
}

/* MARQUEE
   ----------------------------------------------------------------------- */
.marquee {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  animation: marquee 30s linear infinite;
}
.marquee-track .sep {
  color: var(--accent);
  font-weight: 700;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* SECTIONS — base
   ----------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.eyebrow-light { color: rgba(255,255,255,.55); }

.section-title {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-title--light { color: var(--white); }

.section-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--gray-700);
  margin-top: 24px;
  line-height: 1.6;
}
.section-lead--light { color: rgba(255,255,255,.7); }

/* SLUŽBY
   ----------------------------------------------------------------------- */
.section-services { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 40px 32px 36px;
  border-radius: var(--radius);
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--black);
  transform: translateY(-4px);
}

.service-num {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: .08em;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card--highlight {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.service-card--highlight:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-card--highlight .service-icon { background: var(--accent); color: var(--black); }
.service-card--highlight .service-num { color: var(--gray-700); }

.service-card h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-card--highlight p { color: rgba(255,255,255,.7); }

.service-points {
  list-style: none;
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 8px;
}
.service-card--highlight .service-points { border-top-color: rgba(255,255,255,.12); }
.service-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.service-badge {
  position: absolute;
  top: 24px;
  right: 32px;
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.service-card--highlight .service-num { display: none; }

/* O FIRMĚ
   ----------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
  }
}

.about-values {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.about-values li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease-out);
}
.about-values li:hover { border-color: var(--black); }
.about-values svg {
  width: 32px;
  height: 32px;
  color: var(--accent-deep);
  margin-top: 2px;
}
.about-values strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.about-values span {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
}

.about-sidecard {
  background: var(--black);
  color: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.about-sidecard::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .15;
  filter: blur(20px);
}
.sidecard-head { margin-bottom: 32px; position: relative; z-index: 1; }
.sidecard-head h3 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.sidecard-list {
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
  z-index: 1;
}
.sidecard-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidecard-list > div:first-child { border-top: 0; padding-top: 0; }
.sidecard-list dt {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.sidecard-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

/* VOZOVÝ PARK
   ----------------------------------------------------------------------- */
.section-fleet {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-fleet::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 213, 99, .08) 0%, transparent 60%);
  pointer-events: none;
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .fleet-grid { grid-template-columns: repeat(3, 1fr); } }

.fleet-card {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.fleet-card:hover {
  border-color: var(--accent);
  background: rgba(0, 213, 99, .04);
}

.fleet-stat { margin-bottom: 20px; }
.fleet-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}
.fleet-num small {
  font-size: .45em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 4px;
}
.fleet-label {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.fleet-card p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.6;
}

.fleet-teaser {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--radius);
}
.teaser-label {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.fleet-teaser p {
  color: rgba(255,255,255,.85);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* FOTOGALERIE
   ----------------------------------------------------------------------- */
.fleet-gallery { margin-top: 8px; }
.gallery-head { text-align: center; margin-bottom: 32px; }
.gallery-head .teaser-label { margin-bottom: 16px; }
.gallery-head p {
  color: rgba(255,255,255,.8);
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  aspect-ratio: 4 / 3;
  outline-offset: 3px;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--accent); }

.gallery-more-wrap { text-align: center; margin-top: 28px; }
.gallery-more-wrap .btn svg { transition: transform .25s var(--ease-out); }
.gallery-more-wrap.is-open .btn svg { transform: rotate(180deg); }

/* LIGHTBOX
   ----------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8,8,8,.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s var(--ease-out);
}
.lightbox:not([hidden]) { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lightbox-count {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.16); border-color: var(--accent); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img, .lightbox, .gallery-more-wrap .btn svg { transition: none; }
}

/* KAMION DIVIDER — čára s projíždějící ikonou
   ----------------------------------------------------------------------- */
.truck-divider {
  position: relative;
  --truck-y: 0px;
  height: 180px;
  background: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.truck-divider-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--black);
  transform: translateY(-50%);
}
.truck-divider-icon {
  position: absolute;
  left: -360px;
  top: 50%;
  height: 100px;
  width: auto;
  transform: translateY(calc(-50% + var(--truck-y, 0px))) scaleX(-1);
  animation: truck-drive 14s linear infinite;
}
@keyframes truck-drive {
  0%   { left: -360px; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .truck-divider-icon { animation: none; left: 50%; transform: translate(-50%, -50%) scaleX(-1); }
}

/* reCAPTCHA odsazení */
.form-captcha { margin: 16px 0 8px; display: flex; justify-content: flex-start; }

/* Slider pro výšku kamionu */
.truck-size-control {
  position: absolute;
  right: 24px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-700);
  z-index: 2;
}
.truck-size-control label { font-weight: 600; }
.truck-size-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.truck-size-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--black);
  cursor: pointer;
}
.truck-size-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--black);
  cursor: pointer;
}
@media (max-width: 640px) {
  .truck-size-control { right: 12px; top: 8px; gap: 8px; }
  .truck-size-control label { display: none; }
  .truck-size-control input[type="range"] { width: 110px; }
}

/* KONTAKT
   ----------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
  }
}

.contact-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent-deep);
  margin-top: 4px;
}
.contact-label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-list a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}
.contact-list a:hover { color: var(--accent-deep); }
.contact-list li > div > span:not(.contact-label) {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* FORM
   ----------------------------------------------------------------------- */
.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) { .contact-form { padding: 48px 40px; } }

.form-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: grid; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gray-700);
}
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
  color: var(--black);
  width: 100%;
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--gray-300); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 213, 99, .15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* DROP ZÓNA PRO PŘÍLOHY
   ----------------------------------------------------------------------- */
.form-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gray-700);
}
.form-optional { font-weight: 400; color: var(--gray-500); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.dropzone:hover { border-color: var(--gray-300); background: var(--gray-50); }
.dropzone:focus-visible {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0, 213, 99, .15);
}
.dropzone.is-dragover {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(0, 213, 99, .06);
}
.dropzone-icon { width: 30px; height: 30px; color: var(--gray-500); }
.dropzone.is-dragover .dropzone-icon { color: var(--accent-deep); }
.dropzone-text { font-size: 15px; color: var(--gray-700); margin: 0; line-height: 1.45; }
.dropzone-text strong { color: var(--black); }
.dropzone-hint { font-size: 13px; color: var(--gray-500); margin: 0; }

.dropzone-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dropzone-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
}
.dropzone-list li.is-too-big {
  border-color: #e5b4b4;
  background: #fff7f7;
}
.dropzone-file-icon { width: 18px; height: 18px; color: var(--gray-500); }
.dropzone-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--black);
}
.dropzone-size { font-size: 13px; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.dropzone-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.dropzone-remove:hover { background: #ffe3e3; color: #c00; }
.dropzone-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone-total {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}
.dropzone-total.is-over { color: #c00; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .dropzone, .dropzone-remove { transition: none; }
}

.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
  cursor: pointer;
}
.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-deep);
  cursor: pointer;
}

.form-note {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

.form-success {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}
.form-error {
  background: #fee;
  color: #c00;
  border: 1px solid #fcc;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

/* FOOTER
   ----------------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand { max-width: 320px; }
.brand-logo--light { color: var(--white); height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; }

.brand-logo { color: var(--black); }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-credit a { color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-credit a:hover { color: var(--accent); border-color: var(--accent); }

/* MOTION SAFETY
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-tag .dot { animation: none; }
}
