/* najdi-elektrikare.cz
   Signature: barevné kódování vodičů podle ČSN EN 60445 jako strukturní systém.
   PE zelenožlutá = bezpečnost/revize · N modrá = postup · L1 hnědá = práce · měď = ceny.
   Barva sekce tedy nese význam, není dekorace. */

:root {
  --paper: #f7f7f4;
  --paper-2: #eeeee9;
  --ink: #1c1e22;
  --ink-soft: #545a63;
  --graphite: #23262b;
  --line: #d9d9d2;

  /* vodiče */
  --pe: #c7d82f;
  --l1: #8b5e3c;
  --n: #2b5ce6;
  --cu: #b87333;

  --r: 4px;
  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 760px; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--n);
  outline-offset: 2px;
}

/* ── header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  /* pruh vodičů = podpis značky, hned v prvním pixelu stránky */
  box-shadow: inset 0 3px 0 0 var(--pe);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: 'Archivo', sans-serif; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand-text { font-weight: 500; }
.brand-text strong { font-weight: 800; }
.brand-mark {
  width: 13px; height: 30px; border-radius: 2px;
  background: linear-gradient(180deg, var(--l1) 0 33%, var(--n) 33% 66%, var(--pe) 66% 100%);
}
.header-nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.2rem); }
.header-tel {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.02rem;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.4rem;
}
.header-tel:hover { color: var(--n); }
/* na úzkém displeji je telefon užitečnější než druhé CTA — formulář je hned níž */
@media (max-width: 560px) {
  .header-nav .btn-sm { display: none; }
  .header-tel { font-size: 1.06rem; }
}

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem;
  border-radius: var(--r); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn-primary { background: var(--graphite); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 1.05rem; font-size: 0.94rem; }
.btn-block { width: 100%; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }

.eyebrow {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; background: var(--pe); border-radius: 2px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 1.8rem; }

.hero-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.hero-proof li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.97rem; font-weight: 500; }
.wire { width: 22px; height: 5px; border-radius: 3px; flex: 0 0 auto; }
.wire-pe { background: var(--pe); }
.wire-n  { background: var(--n); }
.wire-l1 { background: var(--l1); }

.hero-media { margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r);
  border-left: 6px solid var(--pe);
}
/* vedle textového sloupce je fotka na výšku — vyplní sloupec místo aby
   nechala pod sebou prázdno */
@media (min-width: 900px) {
  .hero-media img { aspect-ratio: 4 / 5; }
}

/* ── sections + vodičový systém ───────────────────────── */
.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--paper-2); }

.section-tag { display: inline-flex; align-items: center; gap: 0.7rem; }
.section-tag::before {
  content: ""; width: 8px; height: 1.05em; border-radius: 2px; background: var(--ink);
}
[data-wire="pe"] .section-tag::before { background: var(--pe); }
[data-wire="n"]  .section-tag::before { background: var(--n); }
[data-wire="l1"] .section-tag::before { background: var(--l1); }
[data-wire="cu"] .section-tag::before { background: var(--cu); }

.section-lead { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2rem; }

/* ── cards ────────────────────────────────────────────── */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); padding: 1.5rem 1.4rem; }
.card h3 { margin-bottom: 0.45rem; }
.card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.section-tint .card { background: var(--paper-2); }

/* ── steps (skutečná sekvence → číslování je oprávněné) ─ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { position: relative; padding-top: 1.4rem; border-top: 3px solid var(--n); }
.step-num {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 0.82rem;
  color: #fff; background: var(--n);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* ── pricing ──────────────────────────────────────────── */
.pricing { width: 100%; border-collapse: collapse; font-size: 1rem; }
.pricing th, .pricing td { text-align: left; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); }
.pricing th {
  font-family: 'Archivo', sans-serif; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--cu);
}
.pricing td:last-child, .pricing th:last-child { text-align: right; white-space: nowrap; }
.pricing tbody tr:hover { background: var(--paper-2); }
.note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }

/* ── form ─────────────────────────────────────────────── */
.form-section { background: var(--graphite); color: #fff; padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.form-section h2 { color: #fff; }
.form-grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 900px) { .form-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; } }
.form-intro p { color: #b8bcc4; max-width: 38ch; }
.form-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r); margin-top: 1.5rem;
  border-left: 6px solid var(--cu);
}
.form-media { margin: 0; }

.form-wrap { background: #fff; color: var(--ink); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); }
.row2 { display: grid; gap: 0.7rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-wrap input[type="text"],
.form-wrap input[type="tel"],
.form-wrap input[type="email"],
.form-wrap select,
.form-wrap textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; margin-bottom: 0.7rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
}
.form-wrap textarea { min-height: 118px; resize: vertical; }
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus {
  border-color: var(--n); background: #fff;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft); margin: 0.4rem 0 1rem; }
.consent input { margin-top: 0.25rem; width: 18px; height: 18px; flex: 0 0 auto; }
.form-success { font-weight: 500; line-height: 1.5; }

/* ── faq ──────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 0.95rem 2rem 0.95rem 0; position: relative;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* PE zelenožlutá je v tomhle systému dekorativní (má nízký kontrast na papíru),
   takže funkční prvek jako rozbalovací ikona musí být v inkoustu, ne v ní. */
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--ink);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ── footer ───────────────────────────────────────────── */
.site-footer { background: var(--paper-2); padding: 2.6rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer > .container > div { margin-bottom: 0.6rem; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink); }
.footer-wire {
  height: 5px; border-radius: 3px; margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--l1) 0 25%, #1c1e22 25% 50%, var(--n) 50% 75%, var(--pe) 75% 100%);
}
.footer-fine { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .btn-primary:hover { transform: none; }
}
