:root {
  --ink: #172330;
  --navy: #131c28;
  --navy-soft: #1d2937;
  --gold: #cbb895;
  --gold-dark: #89744f;
  --paper: #ffffff;
  --muted: #f7f6f2;
  --line: #e0dfdb;
  --text-muted: #62666a;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}

.site-header {
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid #35404b;
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-block;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.desktop-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.desktop-nav .call-link {
  padding: 10px 15px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  text-decoration: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  font-size: 25px;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-menu {
  position: absolute;
  z-index: 20;
  top: 38px;
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 13px;
  padding: 18px;
  background: var(--navy-soft);
  border: 1px solid #35404b;
  border-radius: 7px;
  box-shadow: 0 18px 45px rgb(0 0 0 / 28%);
}

.article-hero {
  padding: 68px 0 56px;
  color: #fff;
  background: var(--navy);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #bcc7d1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.eyebrow {
  display: block;
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.article-hero.company-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 4.3vw, 54px);
}

.article-meta {
  margin: 22px 0 0;
  color: #bcc7d1;
  font-size: 14px;
}

.article-section {
  padding: 64px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 64px;
  align-items: start;
}

.article-content {
  min-width: 0;
  font-size: 18px;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-content h2 {
  margin: 52px 0 18px;
  font-size: clamp(28px, 3.2vw, 38px);
}

.article-content h3 {
  margin: 38px 0 14px;
  font-size: 24px;
}

.article-content h4 {
  margin: 30px 0 12px;
  font-size: 20px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content figure {
  margin: 0 0 22px;
}

.article-content p {
  color: #343a40;
}

.article-content ul,
.article-content ol {
  padding-left: 26px;
}

.article-content li {
  margin-bottom: 9px;
}

.article-content a {
  color: #765f38;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content strong {
  color: var(--ink);
}

.article-content blockquote {
  padding: 20px 24px;
  background: var(--muted);
  border-left: 4px solid var(--gold-dark);
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-content th {
  background: var(--muted);
}

.article-content .source-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  text-decoration: none;
}

.article-content.company-polished {
  line-height: 1.75;
}

.company-polished .article-summary {
  margin: 0 0 28px;
  padding: 26px 28px;
  background: var(--navy);
  border-radius: 8px;
}

.company-polished .article-summary h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 25px;
}

.company-polished .article-summary ul {
  margin: 0;
  padding-left: 22px;
  color: #eef2f5;
}

.company-polished .article-summary li {
  margin-bottom: 7px;
}

.company-polished .article-summary li:last-child {
  margin-bottom: 0;
}

.company-polished .article-toc {
  margin: 0 0 42px;
  padding: 24px 26px;
  background: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-polished .article-toc h2 {
  margin: 0 0 13px;
  font-size: 24px;
}

.company-polished .article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 28px;
  margin: 0;
  padding-left: 22px;
}

.company-polished .article-toc li {
  margin: 0;
}

.company-polished .article-toc a {
  color: var(--ink);
  text-decoration-color: #b7a785;
}

.company-polished > h2 {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.company-polished > h2:first-of-type,
.company-polished .article-summary + .article-toc + h2 {
  border-top: 0;
}

.company-polished .faq-section-title {
  margin-top: 58px;
  padding: 24px 28px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 8px 8px 0 0;
  font-size: 28px;
}

.company-polished .faq-question {
  margin: 0;
  padding: 20px 24px 8px;
  background: var(--muted);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 21px;
}

.company-polished .faq-question + p {
  margin: 0;
  padding: 0 24px 20px;
  background: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.company-polished .sources-title {
  margin-top: 54px;
}

.company-polished .source-list {
  padding: 22px 24px 22px 44px;
  background: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-sidebar {
  position: sticky;
  top: 24px;
}

.contact-card {
  padding: 28px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.contact-card .eyebrow {
  margin-bottom: 10px;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.contact-card p {
  margin: 0 0 22px;
  color: #d4dbe2;
  font-size: 16px;
}

.phone-button {
  display: block;
  padding: 13px 15px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.contact-card .email-link {
  display: block;
  margin-top: 14px;
  color: #d4dbe2;
  font-size: 14px;
  text-align: center;
  text-decoration: underline;
}

.related {
  padding: 64px 0;
  background: var(--muted);
}

.related h2,
.library h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.related-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 28px;
}

.related-card,
.library-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-card:hover,
.library-card:hover {
  border-color: #b9aa8b;
}

.related-card span,
.library-card span {
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card h3,
.library-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.library {
  padding: 68px 0 84px;
}

.library-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 19px;
}

.library-section {
  margin-top: 55px;
}

.library-section > h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-card {
  min-height: 165px;
}

.site-footer {
  padding: 46px 0;
  color: #fff;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.site-footer p,
.site-footer a {
  color: #d4dbe2;
  font-size: 15px;
}

.site-footer p {
  margin: 7px 0;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.legal {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  color: #aab5c1;
  border-top: 1px solid #35404b;
  font-size: 13px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .article-sidebar {
    position: static;
  }

  .related-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .header-inner {
    min-height: 80px;
  }

  .brand {
    max-width: 265px;
    font-size: 17px;
  }

  .brand small {
    font-size: 11px;
  }

  .article-hero {
    padding: 48px 0 42px;
  }

  .article-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .article-hero.company-hero h1 {
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .article-section {
    padding: 45px 0 60px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .company-polished .article-summary,
  .company-polished .article-toc {
    padding: 21px 20px;
  }

  .company-polished .article-toc ol {
    grid-template-columns: 1fr;
  }

  .company-polished > h2 {
    font-size: 29px;
  }

  .related-grid,
  .library-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal {
    grid-column: auto;
  }
}

/* V10 – az eredeti modern arculat finomhangolt cikkrendszere */
.article-hero {
  padding: 58px 0 50px;
}

.article-hero.company-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
}

.article-section {
  padding: 72px 0 90px;
  background: #fbfbf9;
}

.article-layout {
  grid-template-columns: minmax(0, 790px) 290px;
  justify-content: space-between;
  gap: 68px;
}

.article-content {
  line-height: 1.78;
}

.company-polished .article-summary {
  margin-bottom: 32px;
  padding: 29px 30px 26px;
  color: var(--ink);
  background: #f5f2ea;
  border: 1px solid #ded5c2;
  border-left: 4px solid #9a814f;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgb(19 28 40 / 5%);
}

.company-polished .article-summary h2 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 26px;
}

.company-polished .article-summary ul {
  color: #39434c;
}

.company-polished .article-summary li::marker {
  color: #89744f;
}

.company-polished .article-toc {
  margin-bottom: 50px;
  padding: 27px 29px;
  background: #fff;
  border-radius: 10px;
}

.company-polished .article-toc h2 {
  font-size: 24px;
}

.company-polished .article-toc ol {
  gap: 9px 30px;
}

.company-polished .article-toc a {
  color: #26323d;
  text-decoration: none;
}

.company-polished .article-toc a:hover {
  color: #765f38;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.company-polished > h2 {
  margin-top: 62px;
  padding-top: 0;
  border-top: 0;
}

.company-polished .faq-section-title {
  margin-top: 68px;
  padding: 27px 28px;
  border-radius: 10px 10px 0 0;
}

.company-polished .faq-question {
  padding: 22px 25px 8px;
  background: #fff;
  font-size: 20px;
}

.company-polished .faq-question + p {
  padding: 0 25px 22px;
  background: #fff;
}

.article-layout:has(.company-polished) .article-sidebar {
  margin-top: 260px;
}

.contact-card {
  border-radius: 10px;
  box-shadow: 0 20px 55px rgb(19 28 40 / 14%);
}

.phone-button {
  border-radius: 999px;
}

.related-card,
.library-card {
  border-radius: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.related-card:hover,
.library-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgb(19 28 40 / 7%);
}

@media (max-width: 900px) {
  .article-layout:has(.company-polished) .article-sidebar {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .article-hero {
    padding: 45px 0 40px;
  }

  .article-section {
    padding: 50px 0 66px;
  }

  .company-polished .article-summary,
  .company-polished .article-toc {
    padding: 23px 21px;
  }

  .company-polished .article-summary h2 {
    font-size: 24px;
  }

  .company-polished > h2 {
    margin-top: 52px;
  }
}

@media print {
  .site-header,
  .article-sidebar,
  .related,
  .site-footer {
    display: none;
  }

  .article-section {
    padding: 0;
  }

  .article-layout {
    display: block;
  }
}
