:root {
  --bg: #f4f6f8;
  --panel: #111821;
  --card: #ffffff;
  --text: #15202b;
  --muted: #6c7784;
  --line: #e5e9ee;
  --accent: #1769ff;
  --accent-soft: #eaf1ff;
  --success: #19a66a;
  --warning: #a66b00;
  --shadow: 0 24px 60px rgba(18, 31, 44, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 760px);
  justify-content: center;
  gap: 28px;
  padding: 36px;
}
.service-panel {
  background: linear-gradient(155deg, #111923, #1b2836);
  color: white;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 620px;
  box-shadow: var(--shadow);
}
.brand-row { display: flex; gap: 16px; align-items: center; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent); font-size: 26px; font-weight: 900;
}
.brand-mark.has-logo { background: #ffffff; overflow: hidden; padding: 6px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.eyebrow { font-size: 11px; letter-spacing: .16em; opacity: .62; font-weight: 800; }
h1 { margin: 4px 0 0; font-size: 30px; }
.lead { margin: 42px 0 28px; font-size: 18px; line-height: 1.55; color: #d5dde6; }
.info-card { border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.035); }
.info-row { padding: 17px 18px; display: grid; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.09); }
.info-row:last-child { border-bottom: 0; }
.info-row span { font-size: 12px; color: #8f9ba8; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.info-row strong { font-size: 15px; color: #f7f9fb; }
.trust-note { margin-top: auto; display: flex; gap: 9px; align-items: center; color: #b9c3cf; font-size: 13px; padding-top: 30px; }
.dot, .online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.chat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 720px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-header { padding: 26px 28px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.chat-header h2 { margin: 4px 0 0; font-size: 24px; }
.status-line { color: var(--success); font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.admin-link { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 28px; gap: 6px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.progress-item { font-size: 12px; color: #9aa3ad; font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; }
.progress-item span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e8ebef; color: #7e8894; font-size: 11px; flex: 0 0 auto; }
.progress-item.active { color: var(--accent); }
.progress-item.active span, .progress-item.done span { background: var(--accent); color: white; }
.progress-item.done { color: #52606d; }
.messages { padding: 24px 28px 14px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; max-height: 340px; overflow-y: auto; }
.message { max-width: 82%; padding: 12px 15px; border-radius: 16px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; }
.message.assistant { align-self: flex-start; background: #f0f3f6; border-bottom-left-radius: 5px; }
.message.user { align-self: flex-end; background: var(--accent); color: white; border-bottom-right-radius: 5px; }
.message.system { align-self: center; max-width: 95%; background: #fff7e6; color: #77530d; border: 1px solid #f4dfaa; font-size: 13px; }
.service-picker { padding: 8px 28px 20px; }
.picker-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.picker-kicker { font-size: 11px; color: var(--accent); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.picker-heading h3 { margin: 3px 0 0; font-size: 18px; }
.picker-note { font-size: 11px; color: var(--muted); }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.service-option { border: 1px solid var(--line); background: white; border-radius: 13px; text-align: left; padding: 12px 13px; cursor: pointer; transition: .15s ease; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.service-option:hover { border-color: #a9c5ff; background: #f7faff; transform: translateY(-1px); }
.service-option strong { font-size: 13px; }
.service-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.service-option.manual { border-style: dashed; }
.service-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.service-option .arrow { color: var(--accent); font-weight: 900; }
.other-hint { margin: 0 28px 12px; padding: 11px 13px; border-radius: 12px; background: #fff8e8; color: #71520f; border: 1px solid #f2dfad; font-size: 13px; }
.composer { margin-top: auto; padding: 16px 28px 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid var(--line); }
.composer input { width: 100%; border: 1px solid #d9dfe6; border-radius: 13px; padding: 13px 14px; outline: none; background: #fbfcfd; }
.composer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,105,255,.10); background: white; }
.composer button { border: 0; border-radius: 13px; padding: 0 19px; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
.composer button:disabled { opacity: .55; cursor: wait; }
.footnote { padding: 0 28px 18px; color: #8a94a0; font-size: 11px; line-height: 1.45; }
.footnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footnote a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; padding: 16px; }
  .service-panel { min-height: auto; padding: 24px; }
  .lead { margin: 26px 0 20px; }
  .trust-note { margin-top: 24px; }
  .chat-card { min-height: 700px; }
}
@media (max-width: 560px) {
  .page-shell { padding: 0; gap: 0; }
  .service-panel, .chat-card { border-radius: 0; box-shadow: none; }
  .service-panel { display: none; }
  .chat-header, .messages, .service-picker { padding-left: 18px; padding-right: 18px; }
  .progress { padding-left: 18px; padding-right: 18px; }
  .progress-item { font-size: 0; }
  .progress-item span { font-size: 11px; }
  .service-options { grid-template-columns: 1fr; }
  .composer { padding-left: 18px; padding-right: 18px; }
  .footnote { padding-left: 18px; padding-right: 18px; }
  .other-hint { margin-left: 18px; margin-right: 18px; }
}


/* Zákaznícky kalendár dostupnosti */
.customer-calendar {
  margin: 4px 28px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfd;
}
.calendar-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.calendar-head h3 { margin: 3px 0 0; font-size: 18px; }
.calendar-nav { display: flex; align-items: center; gap: 9px; }
.calendar-nav strong { min-width: 132px; text-align: center; font-size: 13px; text-transform: capitalize; }
.calendar-nav button {
  width: 31px; height: 31px; border-radius: 9px; border: 1px solid var(--line); background: white;
  color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
.calendar-nav button:hover { border-color: #b9c7d8; background: #f5f8fb; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 14px 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-dot.available { background: #20a66a; }
.legend-dot.tentative { background: #d89b21; }
.legend-dot.full { background: #df5d63; }
.calendar-weekdays, .customer-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 6px; }
.calendar-weekdays span { text-align: center; font-size: 10px; font-weight: 800; color: #9aa3ad; text-transform: uppercase; }
.calendar-spacer { min-height: 58px; }
.customer-day {
  min-height: 62px; padding: 7px 5px; border-radius: 11px; border: 1px solid var(--line); background: white;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: .15s ease;
}
.customer-day:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(18,31,44,.08); }
.customer-day-number { font-size: 15px; font-weight: 850; }
.customer-day-state { font-size: 9px; line-height: 1.1; text-align: center; font-weight: 800; }
.customer-day.available { background: #effaf5; border-color: #b9e6d2; color: #14784f; }
.customer-day.tentative { background: #fff8e9; border-color: #efdba5; color: #8a5d00; }
.customer-day.full { background: #fff1f2; border-color: #efc6c9; color: #a33a41; cursor: not-allowed; }
.customer-day.closed { background: #f2f4f6; border-color: #e5e9ee; color: #a0a8b1; cursor: not-allowed; }
.customer-day:disabled { opacity: .78; }
.calendar-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.calendar-loading { grid-column: 1 / -1; padding: 25px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.calendar-loading.error { color: #a33a41; }
.customer-day.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.customer-day:focus-visible, .customer-time:focus-visible, .time-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Výber času pre zvolený deň. Zelená = voľné, rovnako ako voľný deň v kalendári. */
.customer-times { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.customer-times h4 { margin: 0 0 10px; font-size: 15px; }
.time-group + .time-group { margin-top: 12px; }
.time-group-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.customer-time {
  padding: 9px 4px; border-radius: 10px; border: 1px solid #b9e6d2; background: #effaf5; color: #14784f;
  font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.customer-time:hover { border-color: #14784f; background: #e2f5ec; }
.times-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.times-note:first-child { margin-top: 0; }
.times-note.error { color: #a33a41; }
.time-skip {
  margin-top: 12px; padding: 0; border: 0; background: none; color: var(--accent);
  font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .customer-day, .customer-time { transition: none; }
  .customer-day:not(:disabled):hover { transform: none; }
}

@media (max-width: 560px) {
  .customer-calendar { margin-left: 18px; margin-right: 18px; padding: 14px; }
  .calendar-head { align-items: flex-start; flex-direction: column; }
  .calendar-nav { width: 100%; justify-content: space-between; }
  .calendar-nav strong { flex: 1; }
  .calendar-weekdays, .customer-calendar-grid { gap: 4px; }
  .customer-day { min-height: 56px; padding: 5px 2px; border-radius: 9px; }
  .customer-day-state { font-size: 8px; }
}


.price-estimate-card {
  margin: 10px 0 16px 48px;
  max-width: 520px;
  border: 1px solid rgba(34, 197, 94, .28);
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(17, 46, 36, .88));
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
.price-estimate-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.price-estimate-top > div { display:grid; gap:4px; }
.price-kicker { color:#86efac; font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.price-estimate-top strong { color:#fff; font-size:24px; line-height:1.1; }
.price-badge { color:#bbf7d0; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.24); border-radius:999px; padding:6px 8px; font-size:10px; font-weight:800; letter-spacing:.06em; }
.price-estimate-card p { margin:12px 0 7px; color:#e2e8f0; font-size:13px; line-height:1.5; }
.price-estimate-card small { display:block; color:#94a3b8; line-height:1.45; }
@media (max-width:720px) { .price-estimate-card { margin-left:0; max-width:none; } .price-estimate-top strong { font-size:21px; } }


/* Výber vozidla */
.vehicle-picker { padding: 8px 28px 20px; border-bottom: 1px solid var(--line); }
.vehicle-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.vehicle-grid label { display:grid; gap:6px; font-size:11px; color:var(--muted); font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.vehicle-grid select, .vehicle-grid input, .vehicle-custom input {
  width:100%; min-height:43px; border:1px solid #d9dfe6; background:#fbfcfd; color:var(--text); border-radius:12px; padding:10px 11px; outline:none; text-transform:none; letter-spacing:normal; font-weight:600;
}
.vehicle-grid select:focus, .vehicle-grid input:focus, .vehicle-custom input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(23,105,255,.10); background:#fff; }
.vehicle-grid select:disabled { color:#a2aab3; background:#f2f4f6; }
.optional { font-weight:500; text-transform:none; letter-spacing:normal; }
.vehicle-custom { margin-top:10px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.vehicle-custom#modelCustom { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vehicle-custom#engineCustom { grid-template-columns:1fr; }
.vehicle-submit { margin-top:12px; width:100%; border:0; border-radius:12px; padding:12px 14px; background:var(--accent); color:#fff; font-weight:850; cursor:pointer; }
.vehicle-submit:hover { filter:brightness(.96); }
.vehicle-submit:disabled { opacity:.6; cursor:wait; }
.vehicle-manual-note { margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.ev-note { margin-top:10px; border:1px solid #b9d8ff; background:#f1f7ff; color:#315f99; border-radius:12px; padding:10px 12px; font-size:12px; line-height:1.45; }
.price-estimate-card.unavailable { border-color:rgba(245,158,11,.35); background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(66,43,16,.88)); }
.price-estimate-card.unavailable .price-kicker, .price-estimate-card.unavailable .price-badge { color:#fde68a; }
.price-estimate-card.unavailable .price-badge { background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.28); }
@media (max-width:560px) {
  .vehicle-picker { padding-left:18px; padding-right:18px; }
  .vehicle-grid, .vehicle-custom, .vehicle-custom#modelCustom { grid-template-columns:1fr; }
}


/* Vyhľadávanie a prehľad značiek */
.brand-browser { margin: 0 0 14px; padding: 12px; border: 1px solid #dfe5eb; border-radius: 14px; background: #fbfcfe; }
.brand-search-row { display:flex; gap:8px; }
.brand-search-row input { flex:1; min-width:0; min-height:42px; border:1px solid #d9dfe6; border-radius:11px; padding:10px 12px; font:inherit; outline:none; background:#fff; }
.brand-search-row input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(23,105,255,.10); }
.brand-clear { border:1px solid #d9dfe6; background:#fff; border-radius:11px; padding:0 12px; color:var(--muted); font-weight:750; cursor:pointer; }
.brand-results { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; max-height:190px; overflow:auto; padding-right:2px; }
.brand-chip { min-height:40px; display:flex; justify-content:space-between; align-items:center; gap:6px; border:1px solid #dfe4ea; background:#fff; color:var(--text); border-radius:10px; padding:8px 10px; text-align:left; font-weight:750; cursor:pointer; }
.brand-chip:hover { border-color:#9fc3ff; background:#f5f9ff; }
.brand-chip.selected { border-color:var(--accent); background:#eef5ff; box-shadow:0 0 0 2px rgba(23,105,255,.08); }
.brand-chip small { font-size:8px; letter-spacing:.04em; color:#8b5cf6; background:#f3e8ff; padding:3px 4px; border-radius:999px; }
.brand-empty { grid-column:1/-1; color:var(--muted); font-size:12px; padding:8px 2px; }
@media (max-width:720px) { .brand-results { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:230px; } }
@media (max-width:420px) { .brand-results { grid-template-columns:1fr 1fr; } .brand-clear { display:none; } }

/* Voľný AI chat: rýchle návrhy pod správami */
.quick-starts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.quick-start { border: 1px solid var(--line); background: white; color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; transition: .15s ease; }
.quick-start:hover { border-color: #a9c5ff; background: #f7faff; }

/* Stránka ochrany osobných údajov */
.privacy-page { background: var(--bg); }
.privacy-shell { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; line-height: 1.65; }
.privacy-shell h1 { font-size: 32px; margin: 18px 0 8px; }
.privacy-shell h2 { font-size: 18px; margin: 32px 0 6px; }
.privacy-shell p { margin: 0 0 12px; color: #2b3640; }
.privacy-lead { font-size: 18px; color: var(--muted); }
.privacy-back { color: var(--accent); font-weight: 700; text-decoration: none; }
.privacy-back:hover { text-decoration: underline; }
.privacy-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
