/* ==========================================================================
   Székhelyszolgálat.hu – stíluslap
   Arculat: minimalista, szögletes, sötétszürke – padlizsánlila – fehér
   ========================================================================== */

/* Betűtípus: Inter (SIL Open Font License 1.1, lásd assets/fonts/OFL.txt) – helyben tárolva, magyar ékezetekkel */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/InterDisplay-SemiBold.woff2") format("woff2"); }

:root {
  --ink: #25252B;          /* elsődleges sötétszürke */
  --plum: #4B2549;         /* sötét padlizsánlila */
  --plum-hover: #63325D;   /* CTA hover */
  --plum-deep: #301B30;    /* mély padlizsán háttér */
  --white: #FFFFFF;
  --mist: #F5F4F6;         /* halványszürke háttér */
  --surface: #EDEAEF;      /* másodlagos felület */
  --line: #DAD6DD;         /* vonalak, keretek */
  --muted: #54515A;        /* másodlagos szöveg */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 8vw, 104px);
  --header-h: 72px;
}

/* --- Alapok --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17 px */
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; background: var(--surface); padding: .1em .35em; }
button { font: inherit; }
main { display: block; }
main:focus { outline: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-family: var(--font-display); font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); line-height: 1.14; letter-spacing: -0.022em; }
h3, .h3 { font-family: var(--font); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.3; letter-spacing: -0.012em; }
h4, .h4 { font-family: var(--font); font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.005em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--plum-hover); outline-offset: 2px; }
.lead-cta :focus-visible, .site-footer :focus-visible, .foundation :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white);
  padding: 12px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* --- Gombok --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.003em;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--plum); }
.btn-light:hover { background: var(--surface); color: var(--plum-deep); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: var(--white); color: var(--plum); }
.btn-text { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.btn-text:hover { color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.btn-row-spaced { margin-top: 40px; }
.btn-row-end { justify-content: flex-end; align-self: end; }
.text-link { font-weight: 600; color: var(--plum); }

/* --- Header + navigáció ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { position: relative; width: 20px; height: 22px; border: 1.5px solid var(--ink); border-bottom: 0; }
.logo-mark span { position: absolute; left: -1.5px; right: -1.5px; bottom: 0; height: 7px; background: var(--plum); }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .07em; line-height: 1; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px 7px; color: var(--ink); text-decoration: none;
  font-size: .90625rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--plum); }
.nav-item.is-active > .nav-link { border-bottom-color: var(--plum); }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 36px; margin-left: -6px; margin-right: 2px;
  background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 0;
}
.sub-toggle .icon { transition: transform .15s ease; }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px; margin: 0; padding: 8px 0;
  list-style: none; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--plum);
}
.sub-menu a { display: block; padding: 10px 20px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--mist); color: var(--plum); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }
.has-sub.is-closed > .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; background: transparent;
  border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .9375rem;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1279px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
    background: var(--white); overflow-y: auto; margin: 0; padding: 8px var(--gutter) 40px; border-top: 1px solid var(--line);
  }
  .nav-open .main-nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; max-width: 640px; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 1.125rem; border-bottom: 0; }
  .nav-item.is-active > .nav-link { border-bottom: 0; color: var(--plum); }
  .sub-toggle { display: none; }
  .sub-menu, .has-sub:hover > .sub-menu, .has-sub.is-closed > .sub-menu {
    display: block; position: static; width: 100%; min-width: 0; border: 0; padding: 0 0 12px; background: transparent;
  }
  .sub-menu a { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); color: var(--muted); font-size: 1rem; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: transparent; border-left-color: var(--plum); }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-cta { display: none; }
  .logo-word { font-size: 13px; letter-spacing: .07em; }
  .menu-toggle-label { display: none; }
}

/* Mobil, rögzített ajánlatkérő sáv (csak kis kijelzőn) */
.mobile-cta { display: none; }
@media (max-width: 479px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white);
    border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 72px; }
  body.no-mobile-cta { padding-bottom: 0; }
  body.no-mobile-cta .mobile-cta, body.consent-open .mobile-cta, body.nav-open .mobile-cta { display: none; }
}

/* --- Morzsamenü ------------------------------------------------------------ */
.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--white); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 12px 0; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--plum); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* --- Szekciók --------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-tight-top { padding-top: 32px; }
.section-alt { background: var(--mist); }
.section + .section:not(.section-alt):not(.section-tight-top) { border-top: 1px solid var(--line); }
.section-alt + .section, .section + .section-alt { border-top: 0; }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading-wide { max-width: 900px; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; max-width: 64ch; }
.section-foot { margin-top: 28px; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Közös keretű rács: a panelek osztoznak a vonalakon (homlokzati rács hatás) */
.grid-flush { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid-flush > .card { border-top: 0; border-left: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }

@media (max-width: 959px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide, .split-faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 639px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Kártyák ------------------------------------------------------------------ */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); padding: 32px; }
.card-icon { display: inline-flex; color: var(--plum); margin-bottom: 20px; }
.card-icon .icon { width: 28px; height: 28px; }
.card-num { font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--plum); letter-spacing: .02em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.card-title { font-size: 1.25rem; margin-bottom: 10px; }
.card-text { color: var(--muted); margin-bottom: 0; }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px;
  font-weight: 600; color: var(--plum); text-decoration: none;
}
.card-link .card-cta::after { content: ""; position: absolute; inset: 0; }
.card-link { transition: border-color .15s ease, background-color .15s ease; }
.card-link:hover { border-color: var(--plum); z-index: 1; }
.card-link:hover .card-cta { color: var(--plum-hover); }
.card-link:hover .card-cta .icon { transform: translateX(3px); }
.card-cta .icon { transition: transform .15s ease; }
.card-link:focus-within { outline: 3px solid var(--plum-hover); outline-offset: -3px; z-index: 1; }
.card-link .card-cta:focus-visible { outline: none; }

.card-quick { padding: 36px 32px; }
.card-quick .card-title { font-size: 1.5rem; }
.card-quick-main { border-top: 3px solid var(--plum); padding-top: 34px; }

.panel { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.panel h3, .panel .h3 { margin-bottom: 14px; }

.list { padding-left: 0; list-style: none; }
.list li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--plum); }

/* --- Hero ---------------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.hero-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--plum); margin-bottom: 20px; }
.hero h1 { max-width: 11.5em; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; margin-bottom: 0; }
.hero-note { display: flex; gap: 10px; align-items: flex-start; max-width: 60ch; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.hero-note .icon { margin-top: 2px; color: var(--plum); }
.hero-art { display: flex; justify-content: flex-end; }
.hero-illustration { width: 100%; max-width: 480px; height: auto; }

.bld-slab { fill: var(--plum); }
.bld-slab-label { fill: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.bld-door { fill: var(--plum-deep); }
.bld-sign { fill: var(--white); }
.bld-sign-line { stroke: var(--plum); stroke-width: 2; }
.bld-wall { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.bld-future { fill: transparent; stroke: var(--muted); stroke-dasharray: 6 6; }
.bld-win rect { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.bld-lead { stroke: var(--line); stroke-width: 1.5; }
.bld-label { fill: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500; }
.bld-label-strong { fill: var(--plum); font-weight: 600; }
.bld-ground { stroke: var(--ink); stroke-width: 1.5; }

/* Az oldal egyetlen „mozgó” pillanata: az épület alulról felfelé felépül */
@media (prefers-reduced-motion: no-preference) {
  .bld-floor { animation: bld-rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 150ms + 150ms); }
  @keyframes bld-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { justify-content: flex-start; }
  .hero-illustration { max-width: 360px; }
}
@media (max-width: 639px) { .hero-art { display: none; } }

/* Aloldali hero */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.page-hero h1 { max-width: 22ch; margin-bottom: 20px; }
.page-hero-legal { padding: 40px 0 32px; }
.page-hero-legal h1 { margin-bottom: 0; }
.hero-facts { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--plum); padding: 24px; }
.hero-facts-title { font-weight: 600; margin-bottom: 12px; }
.hero-facts ul { list-style: none; padding: 0; margin: 0; }
.hero-facts li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.hero-facts li:first-child { border-top: 0; padding-top: 0; }
.hero-facts .icon { color: var(--plum); margin-top: 3px; }
@media (max-width: 959px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* --- Főoldali blokkok ------------------------------------------------------- */
.factor-list { margin: 28px 0; border-top: 1px solid var(--line); }
.factor-list > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.factor-list dt { font-weight: 600; }
.factor-list dd { margin: 0; color: var(--muted); }
@media (max-width: 479px) { .factor-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.checklist-box { background: var(--white); border: 1px solid var(--line); padding: 36px; }
.checklist-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist .icon { color: var(--plum); margin-top: 4px; }
.checklist-more { margin: 20px 0 0; }

/* Folyamatlépések */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.steps .step { padding: 28px 8px 8px 0; border-top: 2px solid var(--ink); }
.step-num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--plum); letter-spacing: -.03em; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step-title { font-size: 1.1875rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin-bottom: 0; }
.steps:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
@media (max-width: 959px) { .steps, .steps:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 639px) {
  .steps, .steps:has(> :nth-child(5)) { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps .step { margin-right: 0; padding: 20px 0 24px; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; border-top-width: 1px; }
  .steps .step:first-child { border-top-width: 2px; }
  .step-num { grid-row: span 2; font-size: 1.75rem; margin-bottom: 0; }
}

/* „A székhely csak a kezdet” – emeletek a lila alapon */
.stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stations .card { border-top: 0; border-left: 0; }
.foundation { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--plum); color: var(--white); padding: 22px 32px; }
.foundation-label { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; }
.foundation-text { color: rgba(255,255,255,.82); }
@media (max-width: 959px) { .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .stations { grid-template-columns: minmax(0, 1fr); } .foundation { padding: 20px 24px; } }

/* Oktatási termékkártya */
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--plum); padding: 36px; }
.product-kicker { font-size: .9375rem; font-weight: 600; color: var(--plum); margin-bottom: 12px; }
.product-title { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-family: var(--font-display); letter-spacing: -.018em; line-height: 1.2; }
.product-card > p:not(.product-kicker) { color: var(--muted); }
.product-card .btn-row { margin-top: auto; padding-top: 12px; }
.product-meta { margin: 8px 0 20px; border-top: 1px solid var(--line); }
.product-meta > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-meta dt { font-weight: 600; font-size: .9375rem; margin-bottom: 2px; }
.product-meta dd { margin: 0; color: var(--muted); }

/* GYIK */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; cursor: pointer;
  list-style: none; font-size: 1.1875rem; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--plum); }
.faq-chevron { margin-top: 2px; color: var(--plum); transition: transform .2s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 48px 24px 0; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* Lead CTA */
.lead-cta { padding: clamp(56px, 7vw, 88px) 0; }
.lead-cta-plum { background: var(--plum); color: var(--white); }
.lead-cta-plum h2 { color: var(--white); }
.lead-cta-plum p { color: rgba(255,255,255,.86); }
.lead-cta-soft { background: var(--mist); border-top: 1px solid var(--line); }
.lead-cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.lead-cta-text h2 { margin-bottom: 16px; }
.lead-cta-text p { font-size: 1.125rem; max-width: 56ch; margin: 0; }
.lead-cta .btn-row { justify-content: flex-end; margin-top: 0; }
@media (max-width: 959px) { .lead-cta-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } .lead-cta .btn-row { justify-content: flex-start; } }

/* Tájékoztató doboz */
.legal-notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 20px 24px; background: var(--surface); border-left: 3px solid var(--plum); font-size: .9375rem; color: var(--ink); }
.legal-notice p { margin: 0; }
.legal-notice-title { font-weight: 600; margin-bottom: 4px !important; }
.legal-notice-icon { color: var(--plum); margin-top: 1px; }
.legal-notice-compact { margin-top: 32px; }
.split > .legal-notice { margin-top: 0; }
.section-tight .legal-notice:first-child { margin-top: 0; }

.note { margin: 32px 0; padding: 24px 28px; background: var(--mist); border: 1px solid var(--line); border-left: 3px solid var(--plum); }
.note-title { font-weight: 600; margin-bottom: 8px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.empty-state { display: flex; gap: 16px; padding: 28px; border: 1px dashed var(--muted); background: var(--white); }
.empty-state .icon { color: var(--plum); }
.empty-state-title { font-weight: 600; margin-bottom: 4px; }
.empty-state p:last-child { margin-bottom: 0; color: var(--muted); }

.related { margin-top: 40px; }
.related-title { font-weight: 600; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 12px 0; font-weight: 500; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Táblázat */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compare caption { text-align: left; font-weight: 600; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--mist); font-weight: 600; white-space: nowrap; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare-simple td:first-child { width: 50%; }
@media (max-width: 639px) {
  .compare-simple thead { display: none; }
  .compare-simple tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare-simple td { display: block; width: auto !important; border: 0; padding: 6px 16px; }
}

/* Vállalkozásfejlesztés pillérek */
.where { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.where > div:first-child { max-width: 70ch; }
.where .btn-row { margin-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.pillar:target { box-shadow: inset 0 3px 0 var(--plum); }
.pillar-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pillar-head h2 { margin: 0; }
.pillar-icon { color: var(--plum); width: 28px; height: 28px; }
.pillar-body > p:first-child { color: var(--muted); }
.pillar-q-title { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.partner-line { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 959px) { .pillars { grid-template-columns: minmax(0, 1fr); } .pillar { padding: 28px 24px; } }

/* --- Prózai tartalom (cikkek, jogi oldalak) --------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 1.875rem); margin-top: 56px; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin-bottom: 1.25em; }
.prose ul > li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--plum); }
.prose ol { counter-reset: item; }
.prose ol > li { position: relative; padding-left: 36px; margin-bottom: 12px; counter-increment: item; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 600; color: var(--plum); font-variant-numeric: tabular-nums; }
.prose-legal { max-width: 80ch; }
.prose-legal h2 { font-size: 1.375rem; margin-top: 40px; }
.data-list { margin: 0 0 1.25em; border-top: 1px solid var(--line); }
.data-list > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.data-list dt { font-weight: 600; }
.data-list dd { margin: 0; }
@media (max-width: 479px) { .data-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.placeholder { background: #FFF4D6; color: #6B4E00; padding: 1px 6px; font-weight: 500; font-size: .9375em; }
.placeholder-block { background: #FFF4D6; color: #6B4E00; padding: 12px 16px; font-weight: 500; }

/* Cikk elrendezés */
.article-header { padding: clamp(40px, 6vw, 72px) 0 40px; background: var(--mist); border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 24ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.article-meta a { font-weight: 600; text-decoration: none; }
.article-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 64ch; margin: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.article-main .legal-notice { max-width: 72ch; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.toc { border-top: 2px solid var(--ink); padding-top: 16px; }
.toc-title { font-weight: 600; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: .9375rem; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--plum); }
.aside-cta { background: var(--plum); color: var(--white); padding: 28px; }
.aside-cta-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.aside-cta p { color: rgba(255,255,255,.86); font-size: .9375rem; }
.aside-cta .btn { background: var(--white); color: var(--plum); width: 100%; }
.aside-cta .btn:hover { background: var(--surface); color: var(--plum-deep); }
.aside-cta :focus-visible { outline-color: var(--white); }
.inline-cta { margin: 40px 0 0; padding: 28px 32px; border: 1px solid var(--line); border-top: 3px solid var(--plum); background: var(--white); }
.inline-cta-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.015em; margin-bottom: 8px; }
.inline-cta .btn { margin-top: 8px; }
.article-footer { border-top: 1px solid var(--line); background: var(--mist); padding: 48px 0 64px; }
.more-articles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.more-articles a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.more-articles a:hover { text-decoration: underline; }
@media (max-width: 959px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .article-aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 639px) { .more-articles { grid-template-columns: minmax(0, 1fr); } }

/* Tudástár lista */
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.article-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); transition: border-color .15s ease; }
.article-card:first-child { grid-column: span 2; padding: 40px; }
.article-card:first-child h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover h2 a { color: var(--plum); }
.article-card:focus-within { outline: 3px solid var(--plum-hover); outline-offset: -3px; }
.article-card h2 a:focus-visible { outline: none; }
.article-card p { color: var(--muted); }
.article-card-meta { font-size: .875rem; margin-bottom: 12px; }
@media (max-width: 639px) { .article-list { grid-template-columns: minmax(0, 1fr); } .article-card:first-child { grid-column: auto; padding: 32px; } }

/* --- Kapcsolat -------------------------------------------------------------- */
.contact-hero { padding: clamp(40px, 6vw, 72px) 0 8px; }
.contact-hero h1 { max-width: 20ch; margin-bottom: 20px; }
.form-context { display: inline-flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--plum); font-size: .9375rem; }
.form-context[hidden] { display: none; }
.form-context .icon { color: var(--plum); margin-top: 3px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.contact-form { border-top: 2px solid var(--ink); padding-top: 24px; }
.minicrm-embed { min-height: 360px; margin: 16px 0 24px; }
.minicrm-status { padding: 20px; background: var(--mist); border: 1px dashed var(--line); color: var(--muted); font-size: .9375rem; }
.minicrm-status.is-error { border-color: var(--plum); color: var(--ink); background: var(--surface); }
.minicrm-status[hidden] { display: none; }
.contact-aside { display: grid; gap: 32px; }
.contact-aside .legal-notice { margin-top: 0; }
.aside-block { border-top: 1px solid var(--line); padding-top: 20px; }
.aside-block h2 { margin-bottom: 12px; }
.mini-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.mini-steps li { position: relative; padding-left: 36px; margin-bottom: 10px; counter-increment: s; color: var(--muted); }
.mini-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 600; color: var(--plum); font-variant-numeric: tabular-nums; }
@media (max-width: 959px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* --- Köszönőoldal, 404 ------------------------------------------------------ */
.thanks { padding: clamp(56px, 8vw, 112px) 0; }
.thanks-inner { max-width: 880px; }
.thanks-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--plum); color: var(--white); margin-bottom: 28px; }
.thanks-mark .icon { width: 28px; height: 28px; }
.thanks h1 { max-width: 18ch; }
.thanks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.thanks-grid .related { margin-top: 0; }
.soft-offer { background: var(--mist); padding: 24px 28px; border: 1px solid var(--line); }
.soft-offer-title { font-weight: 600; margin-bottom: 6px; }
.soft-offer p:not(.soft-offer-title) { color: var(--muted); }
.error-code { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--plum); letter-spacing: .04em; margin-bottom: 16px; }
.link-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.link-grid a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; text-decoration: none; margin-right: 24px; }
@media (max-width: 639px) { .thanks-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Footer -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 72px 0 28px; font-size: .9375rem; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.14); }
.logo-footer { color: var(--white); margin-bottom: 20px; }
.logo-footer:hover { color: var(--white); text-decoration: none !important; }
.logo-footer .logo-mark { border-color: var(--white); }
.logo-footer .logo-mark span { background: #8A4C84; }
.footer-brand p { max-width: 42ch; }
.footer-small { font-size: .8125rem; color: rgba(255,255,255,.6); }
.footer-heading { color: var(--white); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; line-height: 1.4; }
.footer-link-btn { background: none; border: 0; padding: 0; color: rgba(255,255,255,.86); cursor: pointer; text-align: left; }
.footer-link-btn:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 24px; font-size: .8125rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
.footer-domain { margin: 10px 0 0; font-size: .75rem; }
.site-footer .footer-domain a { color: rgba(255,255,255,.55); }
.site-footer .footer-domain a:hover { color: var(--white); }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: span 2; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } .footer-brand { grid-column: auto; } }

/* --- Sütihozzájárulás ----------------------------------------------------------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 3px solid var(--plum); box-shadow: 0 -12px 32px rgba(37,37,43,.10); }
.consent[hidden] { display: none; }
.consent-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.consent-title { font-weight: 600; margin-bottom: 4px; }
.consent-text p { margin-bottom: 0; font-size: .9375rem; color: var(--muted); }
.consent-text p.consent-title { color: var(--ink); }
.consent-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.consent-options[hidden] { display: none; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9375rem; }
.check input { width: 18px; height: 18px; accent-color: var(--plum); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.consent-actions [hidden] { display: none; }
@media (max-width: 959px) { .consent-inner { grid-template-columns: minmax(0, 1fr); } .consent-actions { justify-content: flex-start; } }
@media (max-width: 479px) { .consent-actions .btn { flex: 1 1 auto; } }

@media print {
  .site-header, .site-footer, .consent, .mobile-cta, .lead-cta, .article-aside, .breadcrumbs { display: none !important; }
  body { font-size: 11pt; }
}

.grid + .muted.small, .grid + .small { margin-top: 20px; }
@media (max-width: 639px) {
  .card, .panel, .checklist-box, .product-card { padding: 24px; }
  .card-quick { padding: 28px 24px; }
}
.thanks .hero-lead { margin-bottom: 12px; color: var(--ink); }
.prose .legal-notice { margin: 40px 0 0; }
/* Hosszú magyar összetett szavak keskeny kijelzőn */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) {
  h1, .article-header h1 { font-size: 1.875rem; letter-spacing: -0.024em; }
  h2, .h2 { font-size: 1.625rem; }
}

/* --- Célzott ajánlatkérés, témaválasztó, partneroldalak -------------------- */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card-external { padding: 28px; }
.card-external .card-title { font-size: 1.125rem; letter-spacing: -.005em; }
.card-external .card-cta { padding-top: 18px; font-size: .9375rem; }

.chooser-title { font-weight: 600; margin-bottom: 8px; }
.chooser ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.chooser li { border-bottom: 1px solid var(--line); }
.chooser a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--ink); }
.chooser a:hover .chooser-label { color: var(--plum); text-decoration: underline; }
.chooser .chooser-label { font-weight: 600; grid-column: 1; }
.chooser .chooser-text { grid-column: 1; font-size: .875rem; color: var(--muted); }
.chooser .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--plum); }
.aside-chooser { border-top: 2px solid var(--plum); }
.quote-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.quote-footer .related { margin-top: 0; }
@media (max-width: 959px) { .quote-footer { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.aside-offer p { color: var(--muted); font-size: .9375rem; }
.aside-offer p:last-child { margin-bottom: 0; }

.pillar-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pillar-actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.pillar-links { margin: 14px 0 0; font-size: .9375rem; line-height: 1.7; }
.pillar-links > span:first-child { color: var(--muted); margin-right: 4px; }
.pillar-actions > .btn + .pillar-links { margin-top: 14px; }
.pillar-actions > .pillar-links:first-child { margin-top: 0; }
