/* TESLA Owners SVK – jednoduchý štýl bez build krokov */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14171c;
  --muted: #5d6673;
  --line: #e3e6eb;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fe;
  --hero: #0f1318;
  --hero-ink: #f2f4f7;
  --ok: #137a3f;
  --ok-soft: #e6f4ec;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Hlavička */
.site-header { background: var(--hero); color: var(--hero-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { color: var(--hero-ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 18px; }
.brand small { font-weight: 600; opacity: .7; margin-left: 4px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--hero-ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; opacity: .85; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); opacity: 1; }
.nav a.cta { background: var(--accent); opacity: 1; font-weight: 600; }

/* Hero */
.hero { background: var(--hero); color: var(--hero-ink); padding: 48px 0 56px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p.lead { font-size: 18px; max-width: 680px; opacity: .88; margin: 0 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: #8fb5ff; margin: 0 0 12px; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.danger { background: var(--err); }
.btn.block { width: 100%; }

/* Sekcie a karty */
main { padding: 32px 0 56px; }
.section { margin: 0 0 40px; }
.section h2 { font-size: 24px; margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid.two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Počítadlo */
.counter { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.counter strong { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.progress { height: 10px; background: #dfe5ee; border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.hero .progress { background: rgba(255,255,255,.15); }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 6px; }

/* Petícia – text */
.petition-text h2 { font-size: 20px; margin: 24px 0 8px; }
.petition-text ol { padding-left: 22px; }
.petition-text li { margin-bottom: 8px; }
.addressee { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* Formulár */
form .row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
form .row.one { grid-template-columns: 1fr; }
form .row.zip { grid-template-columns: 2fr 1fr; }
@media (max-width: 480px) { form .row, form .row.zip { grid-template-columns: 1fr; } }
label.field { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
label.field input, label.field textarea, label.field select {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-weight: 400;
  border: 1px solid #cdd3dc; border-radius: 10px; background: #fff; color: var(--ink); }
label.field textarea { min-height: 110px; resize: vertical; }
label.field input:focus, label.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-text { color: var(--err); font-size: 13px; font-weight: 500; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--err-soft); color: var(--err); }

/* Zoznamy */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }

/* Zdieľanie */
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.copy { display: flex; gap: 8px; margin: 12px 0; }
.copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cdd3dc; border-radius: 10px; font: inherit; }

/* Pätička */
.site-footer { background: #eceff3; color: var(--muted); font-size: 14px; padding: 32px 0; }
.site-footer .cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer a { color: var(--ink); }
.disclaimer { margin-top: 20px; font-size: 13px; }

/* Admin */
.admin-bar { background: #1b2330; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat .num { font-size: 30px; font-weight: 800; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid #cdd3dc; border-radius: 8px; font: inherit; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
#podpis { scroll-margin-top: 16px; }

/* Novinky */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1, .page-head h2 { margin: 0; }
.post-card { display: flex; flex-direction: column; padding: 0 0 20px; overflow: hidden; }
.post-card > *:not(.post-thumb) { margin-left: 20px; margin-right: 20px; }
.post-card > p:first-child, .post-card > .muted:first-child { margin-top: 20px; }
.post-thumb { display: block; aspect-ratio: 1200 / 630; background: var(--line); margin-bottom: 16px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-title { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--accent); }
.post-card p:last-of-type { flex: 1; }
.post h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; margin: 8px 0 12px; }
.post-lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.post-cover { display: block; width: 100%; border-radius: var(--radius); margin: 0 0 24px; }
.post-body { font-size: 17px; line-height: 1.7; }
.post-body h2 { font-size: 24px; margin: 32px 0 8px; }
.post-body h3 { font-size: 20px; margin: 24px 0 8px; }
.post-body img { border-radius: 10px; }
.post-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.post-body pre, .post-body code { background: #eef1f5; border-radius: 6px; font-size: 14px; }
.post-body code { padding: 1px 5px; }
.post-body pre { padding: 12px; overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

/* Členstvo */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0 0 12px 30px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 6px; }
label.field select { appearance: auto; }

/* Admin doplnky */
.badge.warn { background: #fff4d6; color: #8a5a00; }
.md-help { background: #f3f5f8; border-radius: 8px; padding: 12px; font-size: 13px; white-space: pre-wrap; margin: 0; }
a.card.stat:hover { border-color: var(--accent); }
