/* Autodoprava Karel Bláha – styly */
:root {
  --navy: #14213d;
  --navy-2: #1f2f55;
  --accent: #fca311;
  --accent-dark: #d98a00;
  --text: #1b1f2a;
  --muted: #5a6275;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --line: #dfe3ec;
  --ok: #1a7f37;
  --err: #b42318;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-big { padding: 15px 28px; font-size: 1.08rem; }
.btn-small { padding: 8px 16px; font-size: .95rem; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 33, 61, .97); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; }
.brand strong { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: #e8ecf5; text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Úvod */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: #d6dcea; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-facts li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: #c9d1e3; line-height: 1.35; }
.hero-facts strong { display: block; color: #fff; font-size: 1.25rem; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Sekce */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 46em; }

.cards { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

/* Vozový park */
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 30px; }
.vehicle { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vehicle img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.vehicle-body { padding: 20px 22px 24px; }
.vehicle-body p:last-child { margin: 0; color: var(--muted); }
.tag { display: inline-block; background: #fff4e0; color: #8a5300; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.specs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { background: var(--bg-alt); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: .92rem; }
.specs span { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Ceník */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.prices { width: 100%; border-collapse: collapse; background: #fff; }
.prices th, .prices td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.prices thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; }
.prices td:nth-child(2) { font-weight: 700; color: var(--navy); }
.prices td:nth-child(3) { color: var(--muted); }
.prices tbody tr:last-child td { border-bottom: 0; }
.notes { padding-left: 20px; margin: 0 0 24px; }
.notes li { margin-bottom: 6px; }

/* O nás */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.company { margin: 0; background: #fff; border-radius: var(--radius); padding: 8px 24px; box-shadow: var(--shadow); }
.company div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.company div:last-child { border-bottom: 0; }
.company dt { color: var(--muted); }
.company dd { margin: 0; font-weight: 600; text-align: right; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.contact-item { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
a.contact-item:hover { border-color: var(--accent); background: #fffaf0; }
.ci-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ci-value { font-weight: 700; font-size: 1.1rem; color: var(--navy); overflow-wrap: anywhere; }
.hours { border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { padding: 4px 24px 4px 0; text-align: left; }
.hours th { font-weight: 500; color: var(--muted); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.map-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 240px; border: 0; background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 12px, #e7ebf2 12px, #e7ebf2 24px); color: var(--navy); font: 700 1.05rem var(--font); cursor: pointer; }
.map-load small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-link { display: block; padding: 10px 16px; font-size: .92rem; border-top: 1px solid var(--line); background: #fff; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #c8cfdc; border-radius: 10px; background: #fff; color: var(--text); }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .85rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Patička */
.site-footer { background: var(--navy); color: #c9d1e3; padding: 40px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-inner p { margin: 0; }
.site-footer strong { color: #fff; }

/* Mobilní lišta */
.mobile-bar { display: none; }

/* Stránka GDPR */
.doc { padding: 48px 0 72px; }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* Responzivita */
@media (max-width: 960px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .hero { padding-top: 24px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 16px 18px; display: none; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 12px; }
  .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 (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .section { padding: 52px 0; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .fleet { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .company div { flex-direction: column; gap: 2px; }
  .company dd { text-align: left; }
  .prices th, .prices td { padding: 12px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; height: 56px; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
  .mb-call { background: var(--accent); color: var(--navy); }
  .mb-wa { background: #1f8f4e; color: #fff; }
}

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

/* Galerie */
.section-tight { padding-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 24, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 8px; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }

/* Slogan v úvodu */
.slogan { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; color: var(--accent); line-height: 1.4; max-width: 30em; margin-bottom: .6em; }
