/* Rádce Kvalitních Řemeslníků – společný styl */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #5b6168;
  --line: #e6e0d6;
  --accent: #b4532a;       /* cihlová */
  --accent-ink: #ffffff;
  --accent-soft: #f6e6dc;
  --slate: #2f4858;
  --info-bg: #eef3f6;
  --warn-bg: #fff4e0;
  --warn-line: #d99a2b;
  --radius: 14px;
  --maxw: 760px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16191c;
    --surface: #1e2226;
    --ink: #eceae6;
    --muted: #a7adb3;
    --line: #2f353b;
    --accent: #e07a4f;
    --accent-ink: #16191c;
    --accent-soft: #3a2a22;
    --slate: #9fc2d6;
    --info-bg: #1f2a31;
    --warn-bg: #33291a;
    --warn-line: #d99a2b;
  }
}
:root[data-theme="dark"] {
  --bg: #16191c; --surface: #1e2226; --ink: #eceae6; --muted: #a7adb3; --line: #2f353b;
  --accent: #e07a4f; --accent-ink: #16191c; --accent-soft: #3a2a22; --slate: #9fc2d6;
  --info-bg: #1f2a31; --warn-bg: #33291a; --warn-line: #d99a2b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Hlavička */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.head-cta { font-size: 15px; font-weight: 600; white-space: nowrap; }

.crumbs { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.crumbs a { color: var(--muted); }

/* Článek */
.kicker { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 12px; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 26px 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.quick {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0 8px;
}
.quick strong.lbl { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.quick p { margin: 0; }

.box { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box.info { background: var(--info-bg); }
.box.warn { background: var(--warn-bg); border-left: 4px solid var(--warn-line); }
.box .lbl { font-weight: 700; display: block; margin-bottom: 4px; }

ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 14px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--slate); color: var(--bg); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.tbl-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.two { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 14px 0; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.two > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.two h3 { margin-top: 0; font-size: 17px; }
.two ul { padding-left: 20px; margin: 0; }

figure { margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 2px; }
.fig-ink { fill: var(--ink); }
.fig-muted { fill: var(--muted); }
.fig-line { stroke: var(--ink); }

/* Výzva k poptávce */
.cta {
  margin: 40px 0 10px; padding: 22px 20px; border-radius: var(--radius);
  background: var(--slate); color: var(--bg);
}
.cta h2 { margin: 0 0 6px; font-size: 22px; color: var(--bg); }
.cta p { margin: 0 0 14px; opacity: .92; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px;
}
.btn:hover { filter: brightness(1.05); }

.related { margin: 34px 0; }
.related ul { padding-left: 20px; }

/* Rozcestník */
.hero { padding: 26px 0 6px; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0 30px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .kicker { margin: 0; }
.card h2 { font-size: 20px; margin: 4px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.featured { grid-column: 1 / -1; border-color: var(--accent); }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot p { margin: 0 0 8px; }

/* Formulář „Zeptejte se řemeslníka“ */
.ask { margin: 40px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ask h2 { margin-top: 0; }
.ask > p { color: var(--muted); margin-top: 0; }
.ask-form { display: grid; gap: 8px; }
.ask-form label { font-weight: 600; font-size: 15px; }
.ask-form .opt { font-weight: 400; color: var(--muted); }
.ask-form input:not([type=checkbox]), .ask-form textarea, .adm textarea, .adm input:not([type=checkbox]), .adm select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px;
}
.ask-form textarea, .adm textarea { resize: vertical; min-height: 110px; }
.ask-form input:focus, .ask-form textarea:focus, .adm textarea:focus, .adm input:focus, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ask-row { grid-template-columns: 1fr 1fr; } }
.ask-row > div { min-width: 0; }
.ask-form .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.ask-form .chk input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.ask-form .btn { justify-self: start; border: 0; cursor: pointer; font-size: 16px; margin-top: 6px; }
.ask-form .btn:disabled { opacity: .6; cursor: wait; }
.ask-status { margin: 4px 0 0; min-height: 1.4em; font-size: 15px; }
.ask-status.ok { color: var(--slate); }
.ask-status.err { color: var(--accent); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0; }

/* Poradna */
.poradna-list { margin: 34px 0 0; }
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 16px; margin: 10px 0; }
.qa summary { font-weight: 700; cursor: pointer; }
.qa-q { color: var(--muted); font-style: italic; }
.qa-lbl { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-top: 8px; }
.muted { color: var(--muted); }
.poradna-link { font-weight: 600; margin: -10px 0 26px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
