/* =========================
   CarPrice website
   ========================= */

:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --bg-elevated: #12243a;
  --text: #f4f8ff;
  --muted: #a9b8cc;
  --primary: #1d7afc;
  --primary-700: #1264d4;
  --accent: #25c08b;
  --surface: rgba(255,255,255,0.07);
  --surface-strong: rgba(255,255,255,0.11);
  --border: rgba(255,255,255,0.13);
  --shadow: rgba(0,0,0,0.42);
}

body[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #ffffff;
  --bg-elevated: #eef4fb;
  --text: #0f172a;
  --muted: #5b677a;
  --primary: #0b6ee8;
  --primary-700: #095bbf;
  --accent: #0b9f73;
  --surface: rgba(15,23,42,0.05);
  --surface-strong: rgba(15,23,42,0.08);
  --border: rgba(15,23,42,0.12);
  --shadow: rgba(15,23,42,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(37,192,139,0.22), transparent 62%),
    radial-gradient(880px 520px at 86% 5%, rgba(29,122,252,0.24), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(7,17,31,0.78);
  backdrop-filter: blur(16px);
}

body[data-theme="light"] .site-header { background: rgba(244,247,251,0.82); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
}

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29,122,252,.28);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary,
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}
.theme-toggle .sun { display: none; }
body[data-theme="light"] .theme-toggle .sun { display: inline; }
body[data-theme="light"] .theme-toggle .moon { display: none; }

.hero {
  position: relative;
  padding: 82px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .86fr);
  gap: 58px;
  align-items: center;
}

.eyebrow,
.section-label {
  color: var(--accent);
  letter-spacing: .12em;
  font-weight: 900;
  font-size: 12px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.02;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

h3 { margin: 0 0 8px; font-size: 20px; }

.lead {
  max-width: 700px;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 19px;
}

.sub { color: var(--muted); margin: 0; max-width: 720px; }
.hero-actions,
.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
  margin: 18px 0 8px;
}

.trust-row div {
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
}

.trust-row strong {
  display: block;
  font-size: 20px;
}

.trust-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: var(--text);
}

.ticks li {
  display: flex;
  gap: 9px;
  margin: 8px 0;
}

.ticks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: min(390px, 100%);
  aspect-ratio: 9/19.5;
  border-radius: 34px;
  background: linear-gradient(165deg,#08111f 0%, #102746 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 90px var(--shadow), 0 0 0 8px rgba(0,0,0,.18) inset;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 92px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  z-index: 2;
}

.phone img#appScreen {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 28px;
}

.phone-ui {
  width: 88%;
  height: 91%;
  background: #f6f8fc;
  color: #101827;
  border-radius: 26px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.phone-ui .title { font-weight: 800; font-size: 18px; padding: 2px 2px 5px; }
.btn-ui { border-radius: 8px; padding: 10px 12px; font-weight: 800; text-align: center; font-size: 13px; }
.btn-ui.dark { background: #101827; color: #fff; }
.btn-ui.blue { background: #1d7afc; color: #fff; }
.input-ui {
  min-height: 34px;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 12px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.dealer-banner-slot {
  width: min(1160px, 92vw);
  margin: 26px auto 0;
}

.dealer-side-banner {
  position: relative;
  display: flex;
  width: min(360px, 100%);
  aspect-ratio: 864 / 1821;
  min-height: 560px;
  max-width: 360px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
  overflow: hidden;
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5,12,22,0.08) 0%, rgba(5,12,22,0.62) 48%, rgba(5,12,22,0.96) 100%),
    url("banner-autobazar-fojtik-side.png") center 58% / cover;
  box-shadow: 0 18px 52px var(--shadow);
  color: #fff;
}

.dealer-side-banner > .dealer-kicker,
.dealer-side-banner > strong,
.dealer-side-banner > .dealer-copy,
.dealer-side-banner > .dealer-url,
.dealer-side-banner > em {
  position: relative;
  z-index: 2;
}

.dealer-side-banner .dealer-picture {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  z-index: 1;
  height: 42%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: #0c1726;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}

.dealer-side-banner .dealer-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.dealer-side-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5,12,22,0) 32%, rgba(5,12,22,.45) 56%, rgba(5,12,22,.98) 100%);
  pointer-events: none;
}

.dealer-side-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: inherit;
  pointer-events: none;
}

.dealer-side-banner .dealer-kicker {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: #e21d2f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(226,29,47,.28);
}

.dealer-side-banner strong {
  max-width: 13ch;
  font-size: 34px;
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}

.dealer-side-banner strong span {
  display: block;
  color: #fff;
}

.dealer-side-banner .dealer-copy {
  max-width: 270px;
  color: rgba(255,255,255,.86);
  font-weight: 650;
}

.dealer-side-banner .dealer-url {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.94);
  font-size: 13px;
  font-weight: 850;
}

.dealer-side-banner em {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: #07111f;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

@media (min-width: 1500px) {
  .dealer-banner-slot {
    position: fixed;
    top: 128px;
    right: 22px;
    z-index: 14;
    width: 260px;
    margin: 0;
  }

  .dealer-side-banner {
    min-height: 548px;
    max-width: none;
    margin: 0;
    background-position: center;
  }

  .dealer-side-banner strong {
    font-size: 31px;
  }

  .dealer-side-banner .dealer-copy {
    max-width: 190px;
  }
}

.download-section,
.steps-section,
.pricing,
.final-cta {
  padding: 62px 0;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 60px var(--shadow);
}

.store-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store {
  width: 166px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.store-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}

.store img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.steps-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.step-card,
.price-plan,
.price-card,
.final-cta-inner {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 60px var(--shadow);
}

.step-card,
.price-plan { padding: 22px; }

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: rgba(37,192,139,.16);
  color: var(--accent);
  font-weight: 900;
}

.step-card p,
.price-plan p { color: var(--muted); margin: 0; }

.price-card-wrap { padding: 64px 0; }
.price-card { padding: 28px; }
.section-heading { margin-bottom: 22px; }

.vin-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.est-form .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

.form-group input,
.form-group select,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.contact-form textarea:focus {
  border-color: rgba(29,122,252,.72);
  box-shadow: 0 0 0 3px rgba(29,122,252,.16);
}

.form-group input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); opacity: .82; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.found-pill,
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
}

.est-out {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pill strong { color: var(--text); }
.pill-strong { border-color: rgba(37,192,139,.55); background: rgba(37,192,139,.10); }
.note { color: var(--muted); margin: 14px 0 0; font-size: 14px; }

.matches-out {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.matches-out h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.matches-list {
  display: grid;
  gap: 8px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
}

.match-row strong,
.match-row span {
  display: block;
}

.match-row span {
  color: var(--muted);
  font-size: 13px;
}

.match-row b {
  display: block;
  text-align: right;
}

.match-row a {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.price-plan.featured {
  border-color: rgba(37,192,139,.48);
  background: linear-gradient(180deg, rgba(37,192,139,.12), var(--bg-soft));
}

.price {
  color: var(--text) !important;
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 12px !important;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--text); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7,17,31,0.96);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  padding: 12px 0;
  font-size: 14px;
  z-index: 1000;
}

.cookie-inner {
  width: min(1080px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p { margin: 0; line-height: 1.5; }
.cookie-inner a { color: #b8d2ff; text-decoration: underline; }
.cookie-inner button {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

#funkce,
#jak-to-funguje,
#cenik { scroll-margin-top: 96px; }

.app-features {
  padding: 50px 0 70px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.contact-hero { padding: 60px 0 20px; }
.contact-hero h1 { margin: 0 0 8px; font-size: 34px; }
.contact-hero-sub { margin: 0; max-width: 640px; color: var(--muted); }
.contact-section { padding: 10px 0 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
}
.contact-card {
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 22px 24px;
  box-shadow: 0 16px 50px var(--shadow);
}
.contact-info h2 { margin-top: 0; margin-bottom: 10px; font-size: 24px; }
.contact-info p { margin: 6px 0; }
.contact-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  resize: vertical;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; }
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.contact-status { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .hero { padding-top: 54px; }
  .hero-grid,
  .download-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .phone { width: min(330px, 88vw); }
  .download-grid { padding: 22px; }
  .steps-grid,
  .pricing-grid,
  .est-out {
    grid-template-columns: 1fr;
  }
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .header-cta { margin-left: auto; }
  .header-cta .btn-primary { display: none; }
  .hero { padding-top: 38px; }
  .trust-row,
  .est-form .grid,
  .vin-panel,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .vin-panel .btn { width: 100%; }
  .row-between {
    align-items: stretch;
    flex-direction: column;
  }
  .match-row {
    grid-template-columns: 1fr;
  }
  .match-row b,
  .match-row a {
    text-align: left;
  }
  .row-between .btn { width: 100%; }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .store { width: min(168px, calc(50vw - 28px)); }
}

@media (max-width: 430px) {
  h1 { font-size: 36px; }
  .hero-actions .btn,
  .final-actions .btn { width: 100%; }
  .store { width: 100%; }
  .store-row { width: 100%; }
}
