/* Veřejný web – pracovní vzhled. Firemní design (barvy, písmo, logo) se doplní později:
   stačí upravit proměnné níže. */
:root { --brand: #1e40af; --brand-d: #1e3a8a; --accent: #16a34a; --bg: #f3f4f6; --text: #1f2937; --muted: #6b7280; --line: #e5e7eb; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 1.2rem; padding-bottom: 3rem; }
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.site-head .logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--brand-d); text-decoration: none; }
.site-head .logo img { max-height: 40px; }
.site-head nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; color: var(--text); }
.site-foot { background: #111827; color: #9ca3af; padding: 1.5rem 0; font-size: .9rem; }
.site-foot strong { color: #fff; }
h1 { font-size: 1.6rem; margin: 0 0 .8rem; } h2 { font-size: 1.25rem; margin: 0 0 .7rem; } h3 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.section-title { margin: 1.6rem 0 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.btn, button { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover, button:hover { background: var(--brand-d); }
.btn.light { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.light:hover { background: #eff6ff; }
.btn.big { padding: .8rem 1.4rem; font-size: 1.05rem; }
input, select, textarea { font: inherit; padding: .55rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; width: 100%; }
label { display: block; font-size: .9rem; margin-bottom: .5rem; }
.alert { padding: .7rem 1rem; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; margin: .6rem 0; }
.alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.badge { display: inline-block; color: #fff; font-size: .8rem; padding: .1rem .55rem; border-radius: 999px; vertical-align: middle; font-weight: 600; }

/* vyhledávání */
.search h1 { margin-bottom: 1rem; }
.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.search-form label { font-weight: 600; margin-bottom: .3rem; }
.dt { display: flex; gap: .4rem; }
.dt input { flex: 1.4; } .dt select { flex: 1; }
@media (max-width: 760px) { .search-form { grid-template-columns: 1fr; } }

/* karty aut */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.car { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
.car-img { display: block; aspect-ratio: 16/10; background: #e5e7eb; overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--muted); }
.car-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.car-body h3 { margin: 0; font-size: 1.15rem; }
.car-body .btn { margin-top: auto; align-self: flex-start; }
.specs { font-size: .88rem; color: var(--muted); }
.specs .sep { margin: 0 .35rem; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }

/* detail */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.hero { width: 100%; border-radius: 8px; display: block; margin-bottom: .6rem; max-height: 440px; object-fit: cover; }
.thumbs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.thumbs img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: .8rem; }
.spec-table th, .spec-table td { text-align: left; padding: .4rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.rte img { max-width: 100%; height: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table td { padding: .35rem .2rem; border-bottom: 1px solid var(--line); }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table .sum td { border-top: 2px solid #9ca3af; border-bottom: 0; font-size: 1.05rem; }
.term-form label { font-weight: 600; margin: .4rem 0 .2rem; }
.term-form .btn { margin-top: .8rem; width: 100%; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 500px) { .fgrid { grid-template-columns: 1fr; } }
label.extra, label.agree { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
label.extra input, label.agree input { width: auto; margin-top: .3rem; }
label.agree { margin: 1rem 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.doc-public table { border-collapse: collapse; width: 100%; }
.doc-public td, .doc-public th { border: 1px solid var(--line); padding: .3rem .5rem; text-align: left; }
