/* ============================================================
   SNADNÝ PRODEJ VOZU – Global Styles  (v2 – editorial, emotivní)
   Komisní prodej vozů | Matěj Horňák & Ondřej Janota
   Teplá, lidská varianta navazující na ekosystém vyberovaauta.cz
   ============================================================ */

/* 1. VARIABLES */
:root {
  --cream:      #FFFFFF;
  --cream-2:    #F2F5F9;
  --paper:      #FFFFFF;
  --ink:        #111E2E;
  --ink-2:      #2A3A4D;
  --muted:      #6B7888;
  --muted-2:    #9AA4B0;
  --line:       #E4E9F0;
  --line-soft:  #ECF0F5;
  --blue:       #2E83F0;
  --blue-h:     #1A6FDC;
  --blue-light: #4FABFF;
  --blue-ink:   #0D2B52;
  --blue-tint:  #EAF2FE;
  --green:      #2BA66A;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --max:        1240px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --r-sm:       10px;
  --r:          16px;
  --r-lg:       24px;
  --r-xl:       34px;
  --shadow-sm:  0 4px 18px rgba(17,30,46,0.06);
  --shadow:     0 18px 50px rgba(17,30,46,0.10);
  --shadow-lg:  0 30px 80px rgba(17,30,46,0.16);
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip nevytváří scroll kontejner – nerozbije position: sticky (Safari) */
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; font-size: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 { line-height: 1.06; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
h1 { font-size: clamp(42px, 5.8vw, 80px); }
h2 { font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -0.028em; }
h3 { font-size: clamp(21px, 2.4vw, 30px); letter-spacing: -0.02em; }
h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p  { color: var(--ink-2); line-height: 1.72; font-size: 16px; }
strong { font-weight: 700; color: var(--ink); }
.serif-em { font-style: normal; font-weight: 900; letter-spacing: -0.035em; }

/* 4. LAYOUT */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
section { padding: 112px 0; position: relative; }
.head { max-width: 660px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { margin-bottom: 18px; }
.head p { font-size: 18.5px; color: var(--muted); line-height: 1.6; }
.tilt-blue { color: var(--blue); }

/* 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 15px; font-weight: 700; letter-spacing: 0.005em;
  border-radius: 100px; transition: all .24s var(--ease); border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; transition: transform .24s var(--ease); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 10px 26px rgba(46,131,240,0.32); }
.btn-primary:hover { background: var(--blue-h); border-color: var(--blue-h); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(46,131,240,0.42); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #1c2c40; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(17,30,46,0.16); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 11px 22px; font-size: 13.5px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* 6. NAV */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1180px; z-index: 1000;
  border-radius: 100px; transition: all .35s var(--ease);
  background: rgba(247,244,239,0.0);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; }
.nav.scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(17,30,46,0.10); top: 12px; }
.nav-logo { display: inline-flex; align-items: center; position: relative; }
.nav-logo img { height: 36px; width: auto; display: block; transition: opacity .3s var(--ease); }
/* nahoře (průhledný nav přes tmavé hero) svítí bílá varianta, po scrollu barevná */
.nav-logo .logo-w { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.nav .nav-logo .logo-c { opacity: 0; }
.nav.scrolled .nav-logo .logo-c { opacity: 1; }
.nav.scrolled .nav-logo .logo-w { opacity: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 9px 15px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-radius: 100px; transition: all .2s var(--ease); }
.nav-links a:hover { color: var(--ink); background: rgba(17,30,46,0.05); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.nav-hamburger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-mobile-panel {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 40px;
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
.nav-mobile-panel.open { transform: translateX(0); visibility: visible; }
.nav-mobile-panel a { color: rgba(255,255,255,0.88); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; padding: 12px 0; }
.nav-mobile-panel a.mobile-cta { margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* 7. HERO – full-bleed, centrovaný, dominantní */
.hero { position: relative; min-height: 96vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 150px 0 110px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9,16,26,0.58) 0%, rgba(9,16,26,0.40) 42%, rgba(9,16,26,0.82) 100%); }
.hero-scrim::after { content: ''; position: absolute; inset: 0; background: radial-gradient(115% 85% at 50% 52%, transparent 38%, rgba(9,16,26,0.5)); }
.hero-inner { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; padding: 9px 18px; border-radius: 100px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; }
.hero-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(43,166,106,0.28); }
.hero h1 { color: #fff; font-size: clamp(46px, 7.4vw, 108px); line-height: 1.02; margin-bottom: 26px; text-shadow: 0 6px 44px rgba(0,0,0,0.32); }
.hero-lead { color: rgba(255,255,255,0.9); font-size: clamp(17px, 1.85vw, 21px); line-height: 1.6; max-width: 660px; margin: 0 auto 42px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: inline-flex; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.hero-stats > div { padding: 4px 38px; position: relative; }
.hero-stats > div + div::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 40px; background: rgba(255,255,255,0.2); }
.hero-stats b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.hero-stats b em { color: var(--blue-light); font-style: normal; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,0.62); }

/* animovaná záměna celého slova (nutných <-> nudných) na vlastním řádku */
.swap { position: relative; display: inline-block; color: var(--blue-light); vertical-align: baseline; }
.swap .w-d, .swap .w-t { transition: opacity .5s var(--ease), transform .5s var(--ease); backface-visibility: hidden; will-change: opacity, transform; }
.swap .w-d { display: inline-block; opacity: 0; transform: rotateX(90deg); }
.swap .w-t { position: absolute; left: 0; right: 0; top: 0; text-align: center; opacity: 1; transform: rotateX(0deg); }
.swap.flip .w-t { opacity: 0; transform: rotateX(-90deg); }
.swap.flip .w-d { opacity: 1; transform: rotateX(0deg); }

/* NAV nad tmavým hero (v horní, neposcrollované poloze) */
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.82); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.14); }
.nav:not(.scrolled) .nav-hamburger span { background: #fff; }

/* 8. BRAND MARQUEE */
.marquee-wrap { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; overflow: hidden; }
.marquee-label { text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 18px; }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); opacity: 0.32; white-space: nowrap; transition: opacity .2s; }
.marquee span:hover { opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 9. PAIN → RELIEF */
.pain { background: var(--cream); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pain-list { display: flex; flex-direction: column; gap: 14px; }
.pain-item { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: all .3s var(--ease); }
.pain-item.bad { opacity: 0.62; }
.pain-item.bad .pain-ico { background: #F4E9E9; color: #C9645C; }
.pain-item.bad .pain-txt { color: var(--muted); }
.pain-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.pain-ico svg { width: 22px; height: 22px; }
.pain-txt { font-size: 16px; font-weight: 600; color: var(--ink); }

/* BAD – animovaný přeškrt + „zabručení" ikony po najetí do viewportu */
.pain-item.bad .pain-txt { position: relative; }
.pain-item.bad .pain-txt::after {
  content: ''; position: absolute; left: 0; top: 54%; height: 2px; width: 0;
  background: rgba(201,100,92,0.75); border-radius: 2px; transform: translateY(-50%);
  transition: width .5s var(--ease) .15s;
}
.pain-item.bad.in .pain-txt::after { width: 100%; }
.pain-item.bad.in .pain-ico { animation: painBuzz .55s var(--ease) .2s both; }
@keyframes painBuzz {
  0%,100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-2px) rotate(-8deg); }
  30% { transform: translateX(2px) rotate(7deg); }
  45% { transform: translateX(-2px) rotate(-5deg); }
  60% { transform: translateX(2px) rotate(4deg); }
  78% { transform: translateX(-1px) rotate(-2deg); }
}

/* GOOD – spokojená zelená fajfka: nakreslí se, popne a vyšle prstenec */
.pain-item.good { border-color: rgba(43,166,106,0.4); box-shadow: var(--shadow-sm); }
.pain-item.good .pain-ico { background: #E3F7EB; color: var(--green); position: relative; }
.pain-item.good .pain-ico svg { stroke-dasharray: 26; stroke-dashoffset: 26; }
.pain-item.good.in .pain-ico { animation: painPop .55s var(--ease) .25s both; }
.pain-item.good.in .pain-ico svg { animation: painDraw .5s var(--ease) .32s forwards; }
.pain-item.good .pain-ico::before {
  content: ''; position: absolute; inset: -5px; border-radius: 15px;
  border: 2px solid var(--green); opacity: 0; transform: scale(.7);
}
.pain-item.good.in .pain-ico::before { animation: painRing .75s var(--ease) .4s; }
@keyframes painPop { 0%{transform:scale(1)} 42%{transform:scale(1.2)} 70%{transform:scale(.93)} 100%{transform:scale(1)} }
@keyframes painDraw { to { stroke-dashoffset: 0; } }
@keyframes painRing { 0%{opacity:.75;transform:scale(.7)} 100%{opacity:0;transform:scale(1.55)} }

/* 10. JOURNEY / JAK TO FUNGUJE – cesta: auto jede po silnici se scrollem */
.journey-sec { background: var(--paper); overflow: hidden; }
.road { position: relative; margin: 30px auto 0; }
/* jemná „mapová“ tečkovaná textura pod cestou */
.road::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #DEE6F0 1.3px, transparent 1.3px);
  background-size: 30px 30px; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent);
}
.road-svg { position: absolute; left: 50%; transform: translateX(-50%); top: 0; height: auto; }
#roadBase { fill: none; stroke: #E4EBF4; stroke-width: 30; stroke-linecap: round; }
#roadDash { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-dasharray: 12 16; opacity: .95; }
#roadGlow { fill: none; stroke: rgba(46,131,240,0.2); stroke-width: 18; stroke-linecap: round; }
#roadTrail { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.road-start { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; z-index: 2; }
.rnode circle { fill: var(--paper); stroke: #C9D4E3; stroke-width: 3; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.rnode text { font-family: var(--font); font-size: 11px; font-weight: 800; fill: var(--muted-2); text-anchor: middle; dominant-baseline: central; transition: fill .3s var(--ease); }
.rn-in { transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.rnode.hit .rn-in { transform: scale(1.18); }
.rnode.hit circle { fill: var(--blue); stroke: var(--blue); }
.rnode.hit text { fill: #fff; }
/* karty kroků podél cesty */
.rcard { position: absolute; width: min(400px, 40%); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); transition: border-color .4s var(--ease), box-shadow .4s var(--ease), opacity .7s var(--ease), transform .7s var(--ease); }
.rcard.l { right: calc(50% + 150px); }
.rcard.r { left: calc(50% + 150px); }
/* tečkovaná spojnice karty s milníkem */
.rcard::after { content: ''; position: absolute; top: 50%; width: 34px; border-top: 2px dashed #C7D3E3; }
.rcard.l::after { right: -35px; }
.rcard.r::after { left: -35px; }
.rcard.on { border-color: rgba(46,131,240,0.4); box-shadow: var(--shadow); }
.rc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rc-n { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--cream-2); color: var(--ink-2); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; transition: background .3s var(--ease), color .3s var(--ease); }
.rcard.on .rc-n { background: var(--blue); color: #fff; }
.rcard h4 { font-size: 18px; }
.rcard p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
/* cíl – šachovnicová páska (kreslí journey.js) + badge Prodáno */
#finishG rect { stroke: none; }
.road-finish { position: absolute; bottom: -18px; left: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); font-size: 16px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.88); pointer-events: none; }
.road-finish.show { animation: finishIn .55s cubic-bezier(.22, 1, .36, 1) forwards; }
.rf-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; flex-shrink: 0; }
.rf-ico svg { width: 14px; height: 14px; }
@keyframes finishIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.88); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (max-width: 899px) {
  .road-svg { left: 0; transform: none; }
  .road-start { left: 48px; }
  .rcard, .rcard.l, .rcard.r { left: 104px; right: 0; width: auto; }
  .rcard::after { left: -35px; right: auto; }
  .road-finish { left: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .road-finish.show { animation: none; opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* 11. CARS (shared) */
.cars-sec { background: var(--cream); }
.cars-sec.sky { background: var(--paper); }
/* panel prodaných – tmavý showcase: bílé karty svítí na navy gradientu */
.sold-panel {
  background:
    radial-gradient(120% 150% at 12% -30%, rgba(79,171,255,0.24) 0%, rgba(79,171,255,0) 55%),
    linear-gradient(128deg, #0C1B30 0%, #0D2B52 48%, #1E63C8 100%);
  border-radius: var(--r-xl);
  padding: 42px 0 38px;
  overflow: hidden;
}
.sold-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 0 52px; margin-bottom: 30px; }
.sold-head h2 { font-size: clamp(24px, 2.8vw, 34px); color: #fff; }
.sold-head h2 .tilt-blue { color: var(--blue-light); }
/* CTA pruh dole v panelu */
.sold-cta { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 36px; padding: 0 52px; }
.sold-cta span { font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,0.72); }
@media (max-width: 899px) {
  .sold-panel { border-radius: 22px; padding: 38px 0 34px; }
  .sold-top { padding: 0 24px; gap: 24px; margin-bottom: 28px; }
  .sold-cta { padding: 0 24px; margin-top: 26px; text-align: center; }
}
.cars-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.cars-head .head { margin-bottom: 0; }
.cars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.car-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
a.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(46,131,240,0.3); }
.car-photo { position: relative; aspect-ratio: 16/11; background: var(--cream-2) center/cover no-repeat; }
.car-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; background: rgba(255,255,255,0.94); color: var(--ink); box-shadow: var(--shadow-sm); }
.car-badge svg { width: 11px; height: 11px; }
.car-badge.amg { background: var(--ink); color: #fff; }
.car-badge.elektro { background: #E4F7EC; color: var(--green); }
.car-badge.nove { background: var(--blue); color: #fff; }
.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-make { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.car-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; margin-bottom: 14px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.car-specs span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--cream-2); padding: 5px 9px; border-radius: 8px; }
.car-specs svg { width: 12px; height: 12px; color: var(--muted-2); }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.car-price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.car-price sup { font-size: 11px; font-weight: 600; color: var(--muted); }
.car-detail { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--blue); }
.car-detail svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
a.car-card:hover .car-detail svg { transform: translateX(3px); }

/* sold cars */
.car-card.sold { background: var(--paper); }
/* odbarvení řeší backdrop-filter overlay – badge nad ním zůstávají barevné */
.car-card.sold .car-photo::after {
  content: ''; position: absolute; inset: 0; background: rgba(17,30,46,0.16);
  -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1);
  transition: background .45s var(--ease), -webkit-backdrop-filter .45s var(--ease), backdrop-filter .45s var(--ease);
}
/* na hover se fotce vrátí barva */
.car-card.sold:hover .car-photo::after { background: rgba(17,30,46,0.02); -webkit-backdrop-filter: grayscale(0); backdrop-filter: grayscale(0); }
.sold-stamp {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 8px;
  background: var(--paper); border-radius: 99px; box-shadow: var(--shadow);
  font-size: 15px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap;
}
.sold-stamp .rf-ico { width: 24px; height: 24px; }
.sold-stamp .rf-ico svg { width: 12px; height: 12px; }
.car-card.sold .car-body { display: flex; flex-direction: column; flex: 1; }
/* badge doby prodeje na fotce – karty tak mají jednotnou výšku */
.sold-days { position: absolute; z-index: 3; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--paper); color: var(--green); font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-sm); }
.sold-days svg { width: 13px; height: 13px; }
.car-card.sold .car-specs { margin-bottom: 0; }
.sold-track .car-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* nekonečný pás prodaných vozů – uvnitř panelu, mizí u jeho hran */
.sold-mq {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sold-track { display: flex; align-items: flex-start; width: max-content; will-change: transform; }
.sold-track .car-card { width: 320px; flex-shrink: 0; margin-right: 20px; }
.sold-track .car-body { padding: 15px 18px 16px; }
.sold-track .car-name { margin-bottom: 11px; }
@media (max-width: 899px) {
  .sold-track .car-card { width: 280px; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sold-track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .sold-track .car-card { margin-right: 0; }
  .sold-dup { display: none !important; }
}
/* statistiky – jeden textový řádek vpravo v hlavičce panelu */
.sold-stats { display: flex; align-items: center; flex-wrap: wrap; margin: 0; }
.sold-stats > div { display: flex; align-items: baseline; gap: 7px; padding: 0 18px; position: relative; }
.sold-stats > div:first-child { padding-left: 0; }
.sold-stats > div:last-child { padding-right: 0; }
.sold-stats > div + div::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 16px; background: rgba(255,255,255,0.18); }
.sold-stats b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.sold-stats span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); white-space: nowrap; }
.car-price-sold svg { width: 16px; height: 16px; }

/* cars-sec sky variant (prodané) – bílé karty na světle modré */
.cars-sec.sky .car-card { border-color: rgba(46,131,240,0.14); box-shadow: 0 10px 30px rgba(17,30,46,0.06); }

.cars-foot-cta { display: flex; justify-content: center; margin-top: 44px; }

/* 12. PRICING */
.pricing { background: var(--paper); }
.price-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: stretch; }
.price-card { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 50px 48px; position: relative; overflow: hidden; }
.price-card::before { content: ''; position: absolute; top: -30%; right: -15%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(46,131,240,0.35), transparent 65%); }
.price-card > * { position: relative; z-index: 1; }
.price-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.price-fig { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.price-fig .num { font-size: 128px; font-weight: 900; letter-spacing: -0.05em; line-height: 0.85; }
.price-fig .pct { font-size: 48px; font-weight: 800; color: var(--blue-light); }
.price-fig .of { font-size: 17px; color: rgba(255,255,255,0.62); font-weight: 500; align-self: flex-end; margin-bottom: 14px; }
.price-min { font-size: 15.5px; color: rgba(255,255,255,0.72); margin-bottom: 20px; }
.price-min b { color: #fff; }
/* rozdělení ceny 95/5 – transparentnost na první pohled */
.price-split { margin-bottom: 32px; }
.ps-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,0.16); }
.ps-bar i { display: block; width: 0; margin-right: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--blue-light), var(--blue)); transition: width 1.1s cubic-bezier(.22, 1, .36, 1) .25s; }
.price-split.in .ps-bar i { width: 95%; }
@media (prefers-reduced-motion: reduce) {
  .ps-bar i { transition: none; width: 95%; }
}
.ps-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.55); }
.ps-legend b { color: #fff; font-weight: 800; }
.price-incl { display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.price-incl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.85); }
.price-incl svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--blue-light); margin-top: 1px; }
.price-note { font-size: 12.5px; color: rgba(255,255,255,0.4); margin-top: 16px; }
.price-side { display: flex; flex-direction: column; gap: 18px; }
.price-extra { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; flex: 1; }
.price-extra h4 { display: flex; align-items: center; gap: 11px; font-size: 17px; margin-bottom: 9px; }
.price-extra h4 svg { width: 22px; height: 22px; color: var(--blue); }
.price-extra p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }
.price-extra .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 6px 13px; border-radius: 100px; }

/* 13. TEAM */
.team { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.team-card { display: flex; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: all .3s var(--ease); }
.team-card:hover { box-shadow: var(--shadow); border-color: rgba(46,131,240,0.25); }
.team-avatar { width: 88px; height: 88px; border-radius: 22px; flex-shrink: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(150deg, #5BB0FF, #1A6FDC); letter-spacing: -0.02em; }
.team-info h4 { font-size: 21px; margin-bottom: 4px; }
.team-role { font-size: 12.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 13px; }
.team-contacts { display: flex; flex-direction: column; gap: 6px; }
.team-contacts a { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; transition: color .2s; }
.team-contacts a:hover { color: var(--blue); }
.team-contacts svg { width: 15px; height: 15px; color: var(--muted-2); }

/* 14. ECOSYSTEM */
.eco { background: var(--paper); }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .3s var(--ease); }
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(46,131,240,0.25); }
.eco-img { aspect-ratio: 16/9; background: var(--cream-2) center/cover; }
.eco-body { padding: 22px 24px 26px; }
.eco-domain { font-size: 12.5px; font-weight: 700; color: var(--blue); }
.eco-name { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 9px; }
.eco-desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 16px; }
.eco-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.eco-cta svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.eco-card:hover .eco-cta { color: var(--blue); }
.eco-card:hover .eco-cta svg { transform: translateX(4px); }

/* 15. CONTACT */
.contact { background: var(--ink); color: #fff; overflow: hidden; }
.contact::before { content: ''; position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 760px; height: 520px; background: radial-gradient(circle, rgba(46,131,240,0.2), transparent 64%); }
.contact-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-left .eyebrow { color: var(--blue-light); }
.contact-left .eyebrow::before { background: var(--blue-light); }
.contact-left h2 { color: #fff; margin-bottom: 18px; }
.contact-left h2 .serif-em { color: var(--blue-light); }
.contact-left > p { color: rgba(255,255,255,0.62); font-size: 18px; line-height: 1.6; margin-bottom: 36px; max-width: 440px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.cdetail { display: flex; align-items: center; gap: 15px; }
.cdetail-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--blue-light); flex-shrink: 0; }
.cdetail-ico svg { width: 21px; height: 21px; }
.cdetail-txt span { display: block; font-size: 12px; color: rgba(255,255,255,0.42); margin-bottom: 2px; }
.cdetail-txt b, .cdetail-txt a { font-size: 16px; font-weight: 600; color: #fff; }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-xl); padding: 40px 38px; }
.contact-form h3 { color: #fff; margin-bottom: 6px; font-size: 23px; }
.contact-form > p { color: rgba(255,255,255,0.5); font-size: 14.5px; margin-bottom: 26px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.62); margin-bottom: 7px; }
.f-field input, .f-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-size: 15px; transition: all .2s; }
.f-field input::placeholder, .f-field textarea::placeholder { color: rgba(255,255,255,0.32); }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--blue-light); background: rgba(255,255,255,0.08); }
.f-field textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
.f-note { font-size: 12px; color: rgba(255,255,255,0.36); text-align: center; margin-top: 14px; }

/* 16. FOOTER */
.footer { background: #0B1521; color: rgba(255,255,255,0.6); padding: 72px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 46px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand .nav-logo img { height: 34px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 320px; }
.footer-brand .small { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 14px; }
.footer-col h6 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color .25s var(--ease); }
.footer-legal a:hover { color: #fff; }

/* 15. PODSTRÁNKY (právní texty) */
.legal-hero { padding: 150px 0 34px; }
.legal-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.legal-hero .lead { font-size: 17px; color: var(--muted); max-width: 62ch; }
.legal-hero .legal-meta { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.legal-body { padding: 6px 0 90px; }
.legal-body .container > * { max-width: 760px; }
.legal-body h2 { font-size: 21px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--blue); font-weight: 600; }
.legal-body a.btn { color: #fff; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--cream-2); font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.legal-back { margin-top: 42px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); transition: all .25s var(--ease); }
.footer-social a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* 17. REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rd-1 { transition-delay: .08s; }
.rd-2 { transition-delay: .16s; }
.rd-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .pain-item.bad .pain-txt::after { width: 100%; transition: none; }
  .pain-item.bad.in .pain-ico, .pain-item.good.in .pain-ico, .pain-item.good.in .pain-ico::before { animation: none; }
  .pain-item.good .pain-ico svg { stroke-dashoffset: 0; }
}

/* 18. RESPONSIVE */
@media (max-width: 1080px) {
  .cars-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  section { padding: 84px 0; }
  .container { padding: 0 24px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .pain-grid, .team-grid, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .cars-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .price-card { padding: 38px 28px; }
  .price-fig .num { font-size: 92px; }
  .price-fig .pct { font-size: 38px; }
  .hero-float { left: 0; }
  .hero-float-2 { right: 0; }
}
