/* ============================================================
   rekonstrukciastrechy.com — lokálny dizajn
   Editorial magazín + komunita. Paper/terracotta/slate paleta.
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-2: #f3ecdf;
  --white: #ffffff;
  --ink: #22303a;
  --ink-soft: #56646e;
  --ink-faint: #8a949c;
  --terra: #c2542b;
  --terra-dark: #9e401c;
  --terra-soft: #f6e3d9;
  --green: #2e7d4f;
  --green-soft: #e2f0e7;
  --red: #b93a2b;
  --red-soft: #f9e4e0;
  --amber: #b97c1f;
  --amber-soft: #f7ecd8;
  --line: #e6ddcd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 48, 58, .06), 0 8px 24px rgba(34, 48, 58, .07);
  --shadow-lift: 0 2px 4px rgba(34, 48, 58, .08), 0 16px 40px rgba(34, 48, 58, .13);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfd8de;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar-live { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4cc07a;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 192, 122, .5); }
  50% { box-shadow: 0 0 0 5px rgba(76, 192, 122, 0); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.logo-text b { color: var(--terra); font-weight: 700; }
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: .15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.is-active { color: var(--terra); font-weight: 600; }
.nav .nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--terra);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 4px 14px rgba(194, 84, 43, .3); }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33444f; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--terra); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }

.search {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.search input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.search input::placeholder { color: var(--ink-faint); }

.hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-tags span { font-size: 13px; color: var(--ink-faint); margin-right: 2px; }
.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: .15s;
}
.tag:hover { border-color: var(--terra); color: var(--terra); }

.hero-visual { position: relative; }
.hero-visual figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 20px;
  box-shadow: var(--shadow-lift);
}
.hero-visual figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 12px;
}
.hero-stats {
  position: absolute;
  bottom: -24px;
  left: -18px;
  display: flex;
  gap: 10px;
}
.stat-chip {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-lift);
}
.stat-chip b { display: block; font-size: 18px; font-family: var(--font-display); }
.stat-chip small { font-size: 11.5px; color: #aeb9c1; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }
.section-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
  padding-bottom: 4px;
}
.section-link:hover { text-decoration: underline; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Roof types grid ---------- */
.roof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: .2s;
  display: block;
}
.roof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d8cdb8; }
.roof-card .roof-icon {
  width: 62px; height: 46px;
  margin-bottom: 16px;
}
.roof-card h3 { font-size: 19px; margin-bottom: 6px; }
.roof-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; min-height: 42px; }
.roof-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.chip-pro { background: var(--green-soft); color: var(--green); }
.chip-con { background: var(--red-soft); color: var(--red); }
.chip-neutral { background: var(--paper-2); color: var(--ink-soft); }

/* ---------- Article cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-thumb { height: 170px; position: relative; }
.article-thumb svg { width: 100%; height: 100%; }
.article-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
}
.article-badge.is-risk { color: var(--red); }
.article-badge.is-guide { color: var(--green); }
.article-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 18.5px; margin-bottom: 8px; }
.article-body h3 a:hover { color: var(--terra); }
.article-body p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.av-a { background: #7a5c46; }
.av-b { background: #46657a; }
.av-c { background: #5c7a46; }
.av-d { background: #8a4d62; }
.av-e { background: #b3762a; }

/* ---------- Poruchy list ---------- */
.faults { display: flex; flex-direction: column; gap: 12px; }
.fault-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: .15s;
}
.fault-row:hover { border-color: var(--terra); box-shadow: var(--shadow); }
.fault-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terra-soft);
}
.fault-ico svg { width: 26px; height: 26px; }
.fault-row h3 { font-size: 17px; margin-bottom: 3px; }
.fault-row .fault-desc { font-size: 13.5px; color: var(--ink-soft); }
.severity { text-align: right; }
.severity small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.severity-bar { display: flex; gap: 3px; justify-content: flex-end; }
.severity-bar i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); }
.sev-low i:nth-child(-n+1) { background: var(--green); }
.sev-mid i:nth-child(-n+2) { background: var(--amber); }
.sev-high i:nth-child(-n+3) { background: var(--red); }
.fault-arrow { color: var(--ink-faint); font-size: 20px; transition: .15s; }
.fault-row:hover .fault-arrow { color: var(--terra); transform: translateX(3px); }

/* ---------- Forum section ---------- */
.forum-cols {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.panel-head .panel-note { font-size: 12.5px; color: var(--ink-faint); }
.thread {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--paper-2);
  transition: .12s;
}
.thread:last-child { border-bottom: 0; }
.thread:hover { background: var(--paper); }
.thread .avatar { width: 36px; height: 36px; font-size: 12.5px; }
.thread h4 { font-size: 14.5px; font-weight: 600; font-family: var(--font-body); line-height: 1.35; }
.thread h4:hover { color: var(--terra); }
.thread .thread-meta { font-size: 12px; color: var(--ink-faint); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.thread-cat { color: var(--terra); font-weight: 600; }
.thread-stats { text-align: right; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.thread-stats b { display: block; font-size: 15px; color: var(--ink); }

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-soft);
}
.source-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

.connect-note {
  background: var(--ink);
  color: #c9d3da;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.connect-note h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.connect-note p { font-size: 14px; }
.connect-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.connect-logos .source-badge { background: rgba(255,255,255,.1); color: #dbe3e8; }
.connect-logos .source-badge::before { background: #4cc07a; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--terra) 0%, var(--terra-dark) 100%);
  border-radius: 22px;
  padding: 52px 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(158, 64, 28, .3);
}
.newsletter h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.newsletter p { color: #f6ddd2; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  min-width: 0;
}
.newsletter .btn { background: var(--ink); color: #fff; }
.newsletter .btn:hover { background: #33444f; }
.newsletter small { display: block; margin-top: 10px; font-size: 12px; color: #eecfc0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #9daab3;
  margin-top: 88px;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: #7f8b94; }
.footer-about p { margin-top: 14px; max-width: 34ch; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid #33424d;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #7f8b94;
}

/* ============================================================
   Článok
   ============================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 20px 0 0;
}
.breadcrumbs a:hover { color: var(--terra); }
.breadcrumbs span { color: var(--line); }

.article-hero { padding: 28px 0 40px; }
.article-hero .article-badge { position: static; display: inline-block; background: var(--terra-soft); color: var(--terra); margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(30px, 4vw, 46px); max-width: 22ch; margin-bottom: 18px; }
.article-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 62ch; margin-bottom: 24px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-faint); flex-wrap: wrap; }
.byline .avatar { width: 40px; height: 40px; font-size: 14px; }
.byline b { color: var(--ink); font-size: 14px; display: block; }
.byline-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}
.toc {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14px;
}
.toc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 10px; }
.toc a { display: flex; gap: 10px; color: var(--ink-soft); line-height: 1.4; }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--terra);
  padding-top: 2px;
}
.toc a:hover { color: var(--ink); }
.toc-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--paper-2); }
.toc-cta .btn { width: 100%; font-size: 13.5px; padding: 10px; }

.prose { max-width: 720px; }
.prose h2 {
  font-size: 27px;
  margin: 48px 0 16px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: #3b4a54; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: #3b4a54; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 40px;
  background: var(--white);
}
.summary-col { padding: 24px; }
.summary-col + .summary-col { border-left: 1px solid var(--line); }
.summary-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.summary-col.pros h3 { color: var(--green); }
.summary-col.cons h3 { color: var(--red); }
.summary-col ul { list-style: none; margin: 0; }
.summary-col li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #3b4a54;
}
.summary-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.summary-col.pros li::before { content: "✓"; color: var(--green); }
.summary-col.cons li::before { content: "✕"; color: var(--red); }

.risk-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  padding: 22px 24px;
  margin: 20px 0;
}
.risk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.risk-card h3 { margin: 0; font-size: 19px; }
.risk-card .chip { flex-shrink: 0; }
.risk-card p { margin-bottom: 0; font-size: 15px; }

.steps { counter-reset: step; list-style: none; margin: 24px 0 !important; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
  margin: 0 !important;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18.5px; top: 40px; bottom: 4px;
  width: 1.5px;
  background: var(--line);
}
.steps h4 { font-size: 16.5px; margin-bottom: 4px; }
.steps p { font-size: 14.5px; margin-bottom: 0; }

.callout {
  display: flex;
  gap: 16px;
  background: var(--amber-soft);
  border: 1px solid #ecd9b4;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}
.callout-ico { font-size: 22px; line-height: 1.3; }
.callout h4 { font-size: 15.5px; margin-bottom: 4px; }
.callout p { font-size: 14.5px; margin: 0; }

.price-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; font-size: 14.5px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--paper-2); }
.price-table th { background: var(--paper-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 600; white-space: nowrap; }

.discussion-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 48px;
}
.discussion-cta h3 { font-size: 21px; margin-bottom: 6px; }
.discussion-cta > p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--paper-2);
}
.comment-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ink-faint); margin-bottom: 4px; flex-wrap: wrap; }
.comment-head b { color: var(--ink); font-size: 14px; }
.comment p { font-size: 14.5px; margin: 0; color: #3b4a54; }
.discussion-foot { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ============================================================
   Fórum
   ============================================================ */
.page-head { padding: 44px 0 36px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
.page-head p { color: var(--ink-soft); max-width: 64ch; }
.forum-statbar {
  display: flex;
  gap: 36px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.forum-statbar div b { font-family: var(--font-display); font-size: 24px; display: block; }
.forum-statbar div small { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.cat-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--paper-2);
  transition: .12s;
}
.cat-row:hover { background: var(--paper); }
.cat-row:last-child { border-bottom: 0; }
.cat-row .fault-ico { width: 46px; height: 46px; }
.cat-row h4 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }
.cat-row h4:hover { color: var(--terra); }
.cat-row p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.side-box h3 { font-size: 16px; margin-bottom: 12px; }
.side-box p { font-size: 13.5px; color: var(--ink-soft); }
.side-box .btn { width: 100%; margin-top: 14px; }
.side-box ul { list-style: none; font-size: 13.5px; color: var(--ink-soft); }
.side-box li { padding: 7px 0; border-bottom: 1px solid var(--paper-2); display: flex; gap: 8px; }
.side-box li:last-child { border-bottom: 0; }
.side-box li::before { content: "→"; color: var(--terra); font-weight: 700; }

.ext-feed-item { padding: 12px 0; border-bottom: 1px solid var(--paper-2); }
.ext-feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ext-feed-item a { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; margin-bottom: 5px; }
.ext-feed-item a:hover { color: var(--terra); }
.ext-feed-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-faint); }

.compose { scroll-margin-top: 96px; border-color: #d8cdb8; }
.compose-form { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.compose-form label { display: flex; flex-direction: column; gap: 6px; }
.compose-form label > span {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
}
.compose-form input,
.compose-form select,
.compose-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  resize: vertical;
  transition: .15s;
  width: 100%;
}
.compose-form input:focus,
.compose-form select:focus,
.compose-form textarea:focus { border-color: var(--terra); background: var(--white); }
.compose-form input::placeholder,
.compose-form textarea::placeholder { color: var(--ink-faint); }
.compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.compose-hint { font-size: 13px; color: var(--ink-soft); max-width: 42ch; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .tag.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-stats { position: static; margin-top: 20px; }
  .roof-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-cols { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .forum-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header .wrap { gap: 14px; }
  .nav a { padding: 9px 10px; font-size: 14px; }
}

/* Logo + navigácia + CTA sa v tomto rozsahu už nezmestia vedľa seba. */
@media (max-width: 900px) and (min-width: 721px) {
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  .topbar .topbar-msg { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-lift);
  }
  .nav.is-open { display: flex; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 52px 0; }
  .roof-grid, .articles-grid { grid-template-columns: 1fr; }
  .fault-row { grid-template-columns: 44px 1fr; }
  .fault-row .severity { display: none; }
  .fault-row .fault-arrow { display: none; }
  .newsletter { grid-template-columns: 1fr; padding: 36px 28px; }
  .newsletter form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary-box { grid-template-columns: 1fr; }
  .summary-col + .summary-col { border-left: 0; border-top: 1px solid var(--line); }
  .thread-stats { display: none; }
  .search { flex-direction: column; gap: 8px; padding: 10px; }
  .compose-foot { flex-direction: column; align-items: stretch; }
  .compose-foot .btn { width: 100%; }
}

/* hero: dvojica tlačidiel namiesto nefunkčného vyhľadávania */
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0 18px}
.hero-actions .btn{padding:14px 22px;font-size:16px}
