/* ============================================================
   CarHistory.cz – styly reportu
   Světlý, důvěryhodný design (Apple-like), font Montserrat
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #e8e8ed;
  --accent: #0071e3;
  --accent-soft: #eaf3fd;

  --ok: #1d7a45;
  --ok-bg: #e6f5ec;
  --warn: #9a5b00;
  --warn-bg: #fdf1df;
  --danger: #c81e2e;
  --danger-bg: #fdebed;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 58px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo em { font-style: normal; font-weight: 600; color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.report-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-meta b { color: var(--text); font-weight: 600; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: 600 13px/1 "Montserrat", sans-serif;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.btn:hover { background: #0077ed; }

/* ---------- Sekce, karty ---------- */

main { padding: 28px 0 40px; }

section { margin-bottom: 28px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: -10px 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero / souhrn ---------- */

.hero-card { padding: 28px; }

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-title h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-vin {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.hero-vin b {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.report-meta-line { font-size: 12px; margin-top: 4px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 980px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip.demo { background: var(--accent-soft); color: var(--accent); }

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fbfbfd;
}

.status-tile .icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.status-tile .icon svg { width: 19px; height: 19px; }

.status-tile.ok .icon { background: var(--ok-bg); color: var(--ok); }
.status-tile.warn .icon { background: var(--warn-bg); color: var(--warn); }
.status-tile.danger .icon { background: var(--danger-bg); color: var(--danger); }
.status-tile.neutral .icon { background: var(--accent-soft); color: var(--accent); }

.status-tile .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.status-tile .value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.status-tile.ok .value { color: var(--ok); }
.status-tile.warn .value { color: var(--warn); }
.status-tile.danger .value { color: var(--danger); }
.status-tile .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Základní informace (mřížka) ---------- */

.basic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 0;
}

.basic-item {
  padding: 14px 24px;
  border-right: 1px solid var(--border);
}
.basic-item:nth-child(4n) { border-right: 0; }

.basic-item .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 3px;
}
.basic-item .value {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Specifikace (tabulky) ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.spec-card { padding: 22px 24px; }

.spec-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.spec-table { width: 100%; border-collapse: collapse; }

.spec-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: 0; }

.spec-table .k {
  color: var(--muted);
  font-weight: 500;
  padding-right: 16px;
  width: 52%;
}
.spec-table .v {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.spec-table .group td {
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

/* ---------- Graf tachometru ---------- */

.tacho-card { padding: 24px; margin-bottom: 16px; }

.tacho-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.tacho-head h3 { margin: 0; font-size: 16px; font-weight: 700; }

.tacho-note { font-size: 12px; color: var(--muted); }

.tacho-verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 980px;
  padding: 5px 12px;
}
.tacho-verdict.ok { background: var(--ok-bg); color: var(--ok); }
.tacho-verdict.danger { background: var(--danger-bg); color: var(--danger); }

.chart-wrap { position: relative; height: 320px; margin-top: 12px; }

/* ---------- Prohlídky ---------- */

.insp-list { display: flex; flex-direction: column; gap: 10px; }

details.insp {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

details.insp summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 92px 1.5fr 150px 110px 1.2fr 28px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}
details.insp summary::-webkit-details-marker { display: none; }
details.insp summary:hover { background: #fbfbfd; }

.insp-date { font-weight: 700; font-size: 13px; white-space: nowrap; }
.insp-type { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 980px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }

.insp-km { font-weight: 600; font-size: 13px; text-align: right; white-space: nowrap; }

.insp-station { font-size: 12.5px; color: var(--muted); }
.insp-station b { color: var(--text); font-weight: 600; display: block; }

.insp-chevron {
  width: 22px; height: 22px;
  color: var(--muted);
  transition: transform .2s ease;
  justify-self: end;
}
details[open] .insp-chevron { transform: rotate(180deg); }

.insp-body {
  border-top: 1px solid var(--border);
  padding: 16px 18px 18px;
  background: #fbfbfd;
}

.insp-protocol {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.insp-protocol b { color: var(--text); font-weight: 600; }

.defect {
  display: grid;
  grid-template-columns: 30px 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.defect:last-child { border-bottom: 0; }

.defect-cat {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  align-self: center;
}
.defect-cat.A { background: var(--ok-bg); color: var(--ok); }
.defect-cat.B { background: var(--warn-bg); color: var(--warn); }
.defect-cat.C { background: var(--danger-bg); color: var(--danger); }

.defect-code { font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.defect-desc { font-size: 13px; }

.no-defects {
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.defect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 2px 0;
  font-size: 12px;
  color: var(--muted);
}
.defect-legend span { display: inline-flex; align-items: center; gap: 7px; }
.defect-legend i {
  width: 12px; height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.defect-legend .A { background: var(--ok); }
.defect-legend .B { background: #e8a33d; }
.defect-legend .C { background: var(--danger); }

/* ---------- Statistiky modelu ---------- */

.insights-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.reliability-card, .issues-card, .forecast-card { padding: 24px; }

.reliability-card h3, .issues-card h3, .forecast-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

.reli-main { display: flex; gap: 24px; align-items: center; }

.reli-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.reli-donut { position: relative; width: 122px; height: 122px; }
.reli-donut svg { width: 100%; height: 100%; display: block; }
.reli-donut .track { stroke: var(--bg); }
.reli-donut .fill { stroke: currentColor; }
.reli-donut.ok { color: #2fa662; }
.reli-donut.warn { color: #e8a33d; }
.reli-donut.danger { color: #e0403f; }

.reli-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.reli-score b { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.reli-score small { color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 3px; }

.reli-bars { flex: 1; min-width: 0; }

.reli-row {
  display: grid;
  grid-template-columns: 118px 1fr 32px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}
.reli-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.reli-track {
  display: block;
  height: 8px;
  border-radius: 980px;
  background: var(--bg);
  overflow: hidden;
}
.reli-fill { display: block; height: 100%; border-radius: 980px; }
.reli-fill.ok { background: #2fa662; }
.reli-fill.warn { background: #e8a33d; }
.reli-fill.danger { background: #e0403f; }
.reli-val { font-size: 12.5px; font-weight: 700; text-align: right; }

.reli-note { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }

/* Závady modelu */

.issue { padding: 14px 0; border-bottom: 1px solid var(--border); }
.issue:first-of-type { padding-top: 2px; }
.issue:last-child { border-bottom: 0; padding-bottom: 2px; }

.issue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.issue-head b { font-size: 14px; font-weight: 700; }

.issue-tags { display: inline-flex; align-items: center; gap: 8px; }
.issue-cost { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.badge.neutral { background: #eef0f3; color: var(--muted); }

.issue-desc { margin: 6px 0 10px; font-size: 13px; color: var(--muted); }

.issue-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
}
.issue-check svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.issue-check b { font-weight: 700; }

/* Predikce nákladů */

.forecast-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.forecast-head h3 { margin: 0; }

.forecast-total { text-align: right; }
.forecast-total b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.forecast-total small { color: var(--muted); font-size: 11.5px; font-weight: 600; }

.forecast-summary { margin: 10px 0 26px; font-size: 13px; color: var(--muted); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  padding-top: 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
}

.tl-item { position: relative; text-align: center; padding-top: 30px; }

.tl-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
  z-index: 1;
}
.tl-item.now .tl-dot { border-color: var(--accent); background: var(--accent); }
.tl-item.soon .tl-dot { border-color: #e8a33d; }
.tl-item.later .tl-dot { border-color: #b9b9c0; }

.tl-km {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 7px;
}
.tl-item.now .tl-km { color: var(--accent); }

.tl-body b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.tl-body small { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }

.tl-cost {
  display: inline-block;
  margin-top: 7px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
}
.tl-item.later .tl-cost { background: #eef0f3; color: var(--muted); }

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .reli-main { flex-direction: column; align-items: stretch; }
  .reli-left { align-self: center; }
  .timeline { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; padding-top: 0; }
  .timeline::before { left: 6px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .tl-item { text-align: left; padding: 10px 0; }
  .tl-dot { left: -30px; top: 12px; transform: none; }
  .forecast-total { text-align: left; }
}

/* ---------- Patička ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer p { margin: 0 0 8px; max-width: 760px; }
.site-footer b { color: var(--text); }
.copyright { font-weight: 600; }

/* ---------- Responzivita ---------- */

@media (max-width: 900px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .basic-grid { grid-template-columns: repeat(3, 1fr); }
  .basic-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .basic-item:nth-child(3n) { border-right: 0; }
  .spec-grid { grid-template-columns: 1fr; }
  details.insp summary {
    grid-template-columns: 1fr 1fr 28px;
    grid-template-areas:
      "date km chev"
      "type type type"
      "badge station station";
    row-gap: 8px;
  }
  .insp-date { grid-area: date; }
  .insp-km { grid-area: km; }
  .insp-type { grid-area: type; }
  .insp-badge { grid-area: badge; justify-self: start; }
  .insp-station { grid-area: station; text-align: right; }
  .insp-station b { display: inline; }
  .insp-chevron { grid-area: chev; }
}

@media (max-width: 560px) {
  .status-grid { grid-template-columns: 1fr; }
  .basic-grid { grid-template-columns: repeat(2, 1fr); }
  .basic-item { border-right: 0 !important; }
  .basic-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .hero-title h1 { font-size: 24px; }
  .header-actions .report-meta { display: none; }
  .chart-wrap { height: 240px; }
}

/* ============================================================
   Titulní strana (landing)
   ============================================================ */

main.landing { padding: 0; }

.main-nav {
  display: flex;
  gap: 22px;
  margin: 0 auto;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #d2d2d7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font: 600 13px/1 "Montserrat", sans-serif;
  padding: 10px 18px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.btn-lg { padding: 14px 26px; font-size: 14px; }

.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: #f2f7ff; }

/* ---------- Hero ---------- */

.hero-landing {
  padding: 72px 0 60px;
  margin-bottom: 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-landing h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-landing .lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 16.5px;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 6px;
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: 980px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
}
.hero-badges span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.vin-form {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 980px;
  box-shadow: 0 12px 44px rgba(0, 113, 227, .16);
  padding: 7px 7px 7px 12px;
  max-width: 680px;
  margin: 26px auto 10px;
  transition: box-shadow .2s ease;
}
.vin-form:focus-within { box-shadow: 0 12px 48px rgba(0, 113, 227, .28); }
.vin-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 13px 14px;
  font: 600 15px "Montserrat", sans-serif;
  letter-spacing: 0.05em;
  color: var(--text);
}

.btn-cta { display: inline-flex; align-items: center; justify-content: center; }

.price-tag {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  border-radius: 980px;
  padding: 5px 12px;
  margin-left: 10px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.vin-form input::placeholder {
  color: #a1a1a6;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.vin-error-line {
  display: inline-block;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: 980px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  margin: 12px auto 0;
}
.vin-error-line[hidden] { display: none; }

.vin-hint.arrowed {
  position: relative;
  display: inline-block;
  margin: 30px auto 0;
}

.vin-arrow {
  position: absolute;
  left: -64px;
  bottom: -5px;
  width: 58px;
  height: 54px;
  color: #4b4b50;
  opacity: .85;
}

.vin-demo-line {
  text-align: center;
  font-size: 12.5px;
  margin: 8px 0 6px;
}
.vin-demo-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.vin-demo-line a:hover { text-decoration: underline; }

.vin-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 6px;
}
.vin-hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
.vin-hint a:hover { text-decoration: underline; }
#vin-error { color: var(--danger); font-weight: 600; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* ---------- Sekce landing ---------- */

.landing-section { padding: 56px 0; margin-bottom: 0; }
.landing-section.alt { background: #ffffff; }

.section-title.center { text-align: center; font-size: 30px; }
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: -6px 0 30px;
}
.section-lead.left { text-align: left; }

.container.narrow { max-width: 720px; }

.center-link { text-align: center; margin: 26px 0 0; }
.center-link a { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.center-link a:hover { text-decoration: underline; }

/* ---------- Feature karty ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card { padding: 26px; }

.feature-card .ficon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.feature-card .ficon svg { width: 21px; height: 21px; }

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

.feature-wide { margin-top: 16px; }
.feature-wide .tacho-note b { color: var(--text); }

/* ---------- Exkluzivní funkce ---------- */

.excl-head { text-align: center; margin-bottom: 28px; }

.excl-chip {
  background: linear-gradient(135deg, var(--accent) 0%, #0059b8 100%);
  color: #fff;
  margin-bottom: 14px;
}

.excl-head .section-lead { margin-bottom: 0; }

.excl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.excl-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.excl-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7fb8f4);
}

.excl-visual {
  background: var(--bg);
  border-radius: 14px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 16px;
}

.excl-card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.excl-card p { margin: 0; color: var(--muted); font-size: 13px; }

.mini-donut { position: relative; width: 92px; height: 92px; }
.mini-donut svg { width: 100%; height: 100%; display: block; }
.mini-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mini-score b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.mini-score small { color: var(--muted); font-size: 9.5px; font-weight: 600; margin-top: 2px; }

.mini-issues { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 240px; }
.mini-issue {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
}
.mini-issue i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mini-issue i.sev-danger { background: #e0403f; }
.mini-issue i.sev-warn { background: #e8a33d; }
.mini-issue small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 11px; }

.mini-cost { text-align: center; }
.mini-cost-chip {
  display: inline-block;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.mini-cost b {
  display: block;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mini-cost > span { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Škrtnuté ceny (zaváděcí sleva) */

.price-tag s {
  opacity: .6;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 5px;
}

.price-old {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 9px;
  vertical-align: 14px;
}

.cta-band s { opacity: .7; }
.cta-band p b { color: #fff; }

@media (max-width: 900px) {
  .excl-grid { grid-template-columns: 1fr; }
}

/* ---------- Kroky ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.step .num {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
}
.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.step p { margin: 0 auto; max-width: 260px; color: var(--muted); font-size: 13px; }

/* ---------- Ceník ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card.featured { border: 2px solid var(--accent); }

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-badge.neutral { background: var(--ok); }

.price-card h3 { margin: 4px 0 10px; font-size: 15px; font-weight: 700; color: var(--muted); }

.price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.per { color: var(--muted); font-size: 12.5px; margin: 8px 0 18px; }

.price-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
}
.price-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.price-card .btn, .price-card .btn-ghost { margin-top: auto; width: 100%; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin: 22px 0 0;
}

/* ---------- Účet / můj panel ---------- */

.account-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.account-text .section-title { font-size: 28px; }

.check-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 14px;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.panel-mock { padding: 18px 22px 14px; }

.win-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.win-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e3e3e8;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel-head b { font-size: 15px; font-weight: 700; }

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.panel-row b { display: block; font-size: 13.5px; font-weight: 600; }
.panel-row small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.03em; }

.panel-link {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-foot { padding: 12px 0 4px; text-align: center; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details { overflow: hidden; }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

.faq .faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #0059b8 100%);
  border-radius: var(--radius);
  padding: 52px 30px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cta-band p { margin: 0 0 24px; opacity: .85; font-size: 15px; font-weight: 500; }

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Responzivita landing ---------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .account-section { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 22px; }
  .vin-form { flex-direction: column; border-radius: 22px; padding: 10px; }
  .vin-form input { width: 100%; text-align: center; padding: 10px; }
  .vin-form .btn { width: 100%; }
  .vin-arrow { display: none; }
  .vin-hint.arrowed { margin-top: 10px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-landing { padding: 48px 0 44px; }
}

/* ============================================================
   Aplikační header (sdílený) + Můj panel
   ============================================================ */

.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 980px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.credits-chip:hover { background: #dcecfc; }
.credits-chip svg { width: 14px; height: 14px; }

.user-menu { position: relative; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: 700 12.5px "Montserrat", sans-serif;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 60;
}

.menu-head {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.menu-head b { display: block; font-size: 13.5px; }
.menu-head small { color: var(--muted); font-size: 12px; }

.menu a, .menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: 600 13px "Montserrat", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu #ch-logout { color: var(--danger); }

/* ---------- Ikonová tlačítka v headeru ---------- */

.btn-print, .auth-btn { gap: 7px; }
.btn-print svg, .auth-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---------- Mobilní header ---------- */

@media (max-width: 680px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; min-width: 0; }

  /* Logo bez ".cz", ať se vejde */
  .logo { font-size: 18px; }
  .logo em { display: none; }

  /* Blog odkaz je v uživatelském menu a patičce */
  .header-link { display: none; }

  /* Kreditový odznak jen ikona + číslo */
  .chip-label { display: none; }
  .credits-chip { padding: 8px 11px; }
  .credits-chip svg { width: 13px; height: 13px; }

  /* Přihlášení a PDF jako kulatá ikonová tlačítka */
  .btn-print span, .auth-btn span { display: none; }
  .site-header .btn-print, .site-header .auth-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .btn-print svg, .auth-btn svg { width: 17px; height: 17px; }

  /* Kompaktnější CTA */
  .site-header .btn:not(.btn-print):not(.auth-btn) { padding: 9px 14px; font-size: 12.5px; }

  /* Na marketingových stránkách (mají navigaci) se odznak kreditů schová –
     zůstane avatar a hlavní CTA; zůstatek je v panelu */
  .site-header:has(.main-nav) .credits-chip { display: none; }
}

/* ---------- Panel: rozvržení ---------- */

.panel-main { padding: 30px 20px 46px; }

.panel-welcome h1 {
  margin: 0 0 2px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.welcome-email { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat-tile .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat-tile .value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-tile .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-card { padding: 20px 24px; margin-bottom: 16px; }
.search-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }

.vin-form.compact {
  margin: 0 0 8px;
  max-width: none;
  box-shadow: none;
  border: 1px solid #d2d2d7;
}
.vin-form.compact:focus-within { box-shadow: 0 0 0 3px rgba(0, 113, 227, .14); }

.panel-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.panel-side { display: flex; flex-direction: column; gap: 16px; }

.panel-card { padding: 20px 22px; }

.empty-note { color: var(--muted); font-size: 13px; margin: 12px 0 4px; }

/* ---------- Kredity / balíčky ---------- */

.credits-big { font-size: 13px; font-weight: 800; color: var(--accent); }

.packages { margin: 14px 0; }

.package {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.package:hover { border-color: #c7c7cc; }
.package.selected { border-color: var(--accent); background: #f5faff; }

.package .radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  position: relative;
}
.package.selected .radio { border-color: var(--accent); }
.package.selected .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.package .p-name { flex: 1; min-width: 0; }
.package .p-name b { display: block; font-size: 13.5px; font-weight: 700; }
.package .p-name small { color: var(--muted); font-size: 11.5px; }
.package .p-price { font-size: 15px; font-weight: 800; white-space: nowrap; }

.stripe-btn { width: 100%; }

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
  margin: 10px 0 0;
}
.secure-note svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }

.tx-block { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.tx-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.tx-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.tx-row:last-child { border-bottom: 0; }
.tx-row b { color: var(--text); font-weight: 600; }

/* ---------- Formuláře ---------- */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field { margin-bottom: 12px; }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 11px 14px;
  background: #fff;
  color: var(--text);
  font: 500 13.5px "Montserrat", sans-serif;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}

textarea.input { min-height: 110px; resize: vertical; }

select.input { appearance: none; }

.form-error {
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 10px;
  min-height: 0;
}

.form-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Login gate ---------- */

.login-gate {
  max-width: 430px;
  margin: 60px auto;
  padding: 36px 30px;
  text-align: center;
}
.login-gate h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.login-gate p { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

.auth-form { text-align: left; }
.auth-form .form-error { text-align: center; }
.auth-submit { width: 100%; margin-top: 4px; }

.auth-switch { margin: 18px 0 0 !important; font-size: 12.5px; }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ---------- Modály ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 31, .45);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.modal p { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.modal p b { color: var(--text); }
.modal .btn { width: 100%; }

.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn, .modal-actions .btn-ghost { flex: 1; width: auto; }

.modal-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.modal-check svg { width: 24px; height: 24px; }

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 4px auto 18px;
  animation: ch-spin .8s linear infinite;
}
@keyframes ch-spin { to { transform: rotate(360deg); } }

/* ---------- Responzivita panelu ---------- */

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .vin-form.compact { border-radius: 22px; }
}

/* ============================================================
   Blog
   ============================================================ */

.main-nav a.active { color: var(--accent); }

.header-link {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s ease;
}
.header-link:hover { color: var(--accent); }

.blog-hero {
  padding: 52px 0 8px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.blog-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.blog-hero .lead { color: var(--muted); font-size: 15.5px; margin: 0; font-weight: 500; }

.blog-list { padding-top: 36px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.09);
}

.post-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #dcecfc 100%);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.post-cover svg { width: 42px; height: 42px; }

.post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-tag {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 980px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.post-excerpt {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.post-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.post-card.placeholder { border-style: dashed; }
.post-card.placeholder .post-cover {
  background: #f2f2f5;
  color: #b9b9c0;
}
.post-card.placeholder .post-tag { background: #f2f2f5; color: var(--muted); }
.post-card.placeholder .post-title,
.post-card.placeholder .post-excerpt { color: var(--muted); }

/* ---------- Článek ---------- */

.article {
  max-width: 760px;
  padding-top: 34px;
  padding-bottom: 56px;
}

.breadcrumbs {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.article-head h1 {
  margin: 12px 0 12px;
  font-size: clamp(27px, 4.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.article-lead {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
}

.article-content p {
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.article-content h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 34px 0 12px;
}

.article-content h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 24px 0 8px;
}

.article-content a { color: var(--accent); font-weight: 600; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

.article-content ul, .article-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.article-content li { margin: 6px 0; font-size: 14.5px; line-height: 1.7; }

.article-cta {
  background: var(--accent-soft);
  border: 1px solid #cfe3fa;
  border-radius: var(--radius);
  padding: 26px 28px;
  text-align: center;
  margin: 30px 0;
}
.article-cta h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.article-cta p { margin: 0 auto 16px; max-width: 480px; color: var(--muted); font-size: 13.5px; }

.article-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}
.back-link { color: var(--accent); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---------- Tisk ---------- */

@media print {
  :root { --shadow: none; }
  body { background: #fff; font-size: 12px; }
  .no-print { display: none !important; }
  .card, details.insp { box-shadow: none; break-inside: avoid; }
  section { margin-bottom: 18px; }
  details.insp summary { padding: 10px 14px; }
  .chart-wrap { height: 260px; }
}
