/* ============================================================
   TŰZKARBANTARTÓ Bt. — Blog cikk stílus (közös)
============================================================ */
:root {
  --ink: #0a0a0a;
  --ink-soft: #525252;
  --ink-lighter: #737373;
  --paper: #faf8f4;
  --paper-soft: #f0ede5;
  --paper-warm: #f5f1ea;
  --line: #d6d3d1;
  --fire: #b91c1c;
  --fire-bright: #dc2626;
  --fire-dark: #7f1d1d;
  --ember: #f59e0b;
  --ash: #1c1917;
  --bone: #ffffff;
  --font-display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* TOPBAR */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto; gap: 12px;
}
@media (min-width: 768px) { .topbar-inner { padding: 16px 40px; } }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; color: var(--ink); min-width: 0;
}
.brand img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-cta { display: flex; align-items: center; gap: 12px; }
.topbar-nav-link {
  font-weight: 700; font-size: 14.5px; color: var(--ink);
  padding: 6px 4px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topbar-nav-link.active, .topbar-nav-link:hover { color: var(--fire); border-bottom-color: var(--fire); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; font-family: var(--font-body); font-weight: 700;
  font-size: 14px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, transform .12s;
}
.btn-fire { background: var(--fire); color: #fff; }
.btn-fire:hover { background: var(--fire-bright); transform: translateY(-1px); }
@media (max-width: 600px) {
  .topbar-inner { padding: 12px 14px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .topbar-nav-link { font-size: 13px; padding: 6px 2px; }
  .btn { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 400px) {
  .brand { font-size: 12px; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .topbar-nav-link { font-size: 12px; }
  .topbar-cta { gap: 8px; }
  .btn { padding: 9px 12px; font-size: 12.5px; }
  .topbar-inner { padding: 10px 12px; gap: 8px; }
}

/* ARTICLE HEADER */
.article-hero {
  background: linear-gradient(180deg, var(--ash) 0%, #2d1414 100%);
  color: var(--paper);
  padding: 40px 24px 48px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: ""; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 60%);
  top: -200px; right: -120px; pointer-events: none;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: rgba(250,248,244,0.6);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: rgba(250,248,244,0.8); }
.breadcrumb a:hover { color: var(--paper); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }

.article-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ash);
  background: var(--ember); padding: 5px 12px;
  border-radius: 100px; margin-bottom: 18px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
  color: var(--paper); margin-bottom: 18px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 13.5px; color: rgba(250,248,244,0.7);
}
.article-meta .dot { opacity: 0.4; }

/* ARTICLE BODY */
.article-body {
  flex: 1;
  padding: 0 24px 64px;
  position: relative;
}
/* Finom textúra/dekoráció a háttéren, mint a főoldalon */
.article-body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 320px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(185,28,28,0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.article-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px 48px;
  margin-top: -28px;
  box-shadow: 0 30px 60px -30px rgba(28,25,23,0.18);
}
.article-content > .lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 44px 0 16px;
  padding-top: 8px;
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p {
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px;
  padding-left: 4px;
  list-style: none;
}
.article-content ul li, .article-content ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--fire);
}
.article-content ol { counter-reset: li; }
.article-content ol li { counter-increment: li; }
.article-content ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--paper-warm);
  color: var(--fire);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-content strong { font-weight: 700; color: var(--ink); }
.article-content a:not(.btn) {
  color: var(--fire);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.article-content a:not(.btn):hover { color: var(--fire-dark); }

/* KIEMELT DOBOZ (figyelmeztetés / kulcsinfó) */
.callout {
  background: linear-gradient(135deg, var(--paper-warm) 0%, var(--paper-soft) 100%);
  border-left: 4px solid var(--fire);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.6;
}
.callout strong { color: var(--fire-dark); }
.callout.ember { border-left-color: var(--ember); }
.callout.ember strong { color: #92400e; }

/* TÁBLÁZAT */
.table-wrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.article-content table th {
  background: var(--ash);
  color: var(--paper);
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 14px;
}
.article-content table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.article-content table tr:nth-child(even) td { background: var(--bone); }

/* CTA A CIKK VÉGÉN */
.article-cta {
  background: linear-gradient(135deg, var(--fire) 0%, var(--fire-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  color: #fff;
  margin: 40px 0 8px;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}
.article-cta p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin: 0 auto 22px;
}
.article-cta .btn-white {
  background: #fff;
  color: var(--fire);
  padding: 14px 26px;
  font-size: 15px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}
.article-cta .btn-white:hover { background: var(--paper); transform: translateY(-1px); }

/* JOGI LÁBJEGYZET */
.article-footnote {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-lighter);
  font-style: italic;
  line-height: 1.6;
}

/* TOVÁBBI CIKKEK */
.related {
  max-width: 760px;
  margin: 44px auto 0;
}
.related h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.related-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-item {
  display: block;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color .15s, transform .15s;
}
.related-item:hover { border-color: var(--fire); transform: translateY(-2px); }
.related-item .rtag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fire); display: block; margin-bottom: 6px;
}
.related-item .rtitle {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  line-height: 1.3; color: var(--ink);
}

/* FOOTER */
.site-footer {
  background: var(--ash); color: rgba(250,248,244,0.65);
  padding: 36px 24px 24px; font-size: 13.5px;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; color: var(--paper);
  font-family: var(--font-display); font-weight: 700;
}
.footer-brand img { width: 28px; height: 28px; object-fit: contain; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.footer-meta a {
  color: rgba(250,248,244,0.85); border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.footer-meta a:hover { color: var(--paper); border-bottom-color: rgba(250,248,244,0.5); }
.footer-sep { opacity: 0.4; }
.footer-copyright { font-size: 12.5px; color: rgba(250,248,244,0.45); margin-top: 6px; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .article-body { padding: 0 14px 50px; }
  .article-content {
    padding: 28px 20px 32px;
    margin-top: -20px;
    border-radius: 12px;
  }
  .article-content > .lead { font-size: 17px; padding-bottom: 22px; }
  .article-cta { padding: 28px 20px; }
  .related { margin-top: 36px; }
}

