:root {
  --ink: #0B0B0B;
  --ivory: #F8F6F1;
  --gold: #D4AF7C;
  --gold-deep: #8A6F3E;
  --graphite: #4A4A4A;
  --surface: #EFEBE2;
  --line: #DAD6CC;
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.section :focus-visible { outline-color: var(--ink); }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 241, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { display: block; height: 44px; width: auto; }
.site-nav ul { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .02em; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav .nav-cta { background: var(--ink); color: var(--ivory); padding: 10px 18px; border-radius: 2px; border: 0; }
.site-nav .nav-cta:hover { background: #222; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--ink); padding: 10px 14px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink); }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle-bars::before { content: ""; position: absolute; top: -6px; left: 0; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { display: block; padding: 12px 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
}

/* Typography */
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 14px; color: var(--graphite); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.03; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 56ch; margin-top: 28px; }
.section-lead { max-width: 62ch; margin-top: 18px; color: var(--graphite); }

/* Hero */
.hero { background: var(--ink); color: var(--ivory); padding: clamp(64px, 12vw, 140px) 0; }
.hero .eyebrow { color: #cfc9bb; }
.hero h1 { color: var(--ivory); }
.hero h1::after { content: ""; display: block; width: 96px; height: 4px; background: var(--gold); margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 700; font-size: .95rem; padding: 15px 26px; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e2c391; }
.btn-ghost { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: var(--ivory); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: #2a2a2a; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-link { background: none; color: var(--graphite); text-decoration: underline; padding-inline: 10px; }

/* Sections */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--ink); color: var(--ivory); }
.section.dark .eyebrow { color: #cfc9bb; }
.section.dark p { max-width: 62ch; margin-top: 24px; font-size: 1.1rem; }
.sub { margin-top: 56px; margin-bottom: 20px; }

.cards { display: grid; gap: 20px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-tag { font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--gold-deep); }
.card p { color: var(--graphite); font-size: 1rem; }

.two-col { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }
.two-col p { margin-top: 10px; color: var(--graphite); }

.packages { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 40px; }
.package { border: 1px solid var(--ink); padding: 28px; background: #fff; }
.package.dark { background: var(--ink); color: var(--ivory); }
.package-kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); margin-bottom: 8px; }
.package.dark .package-kicker { color: var(--gold); }
.package-phases { font-weight: 700; margin: 6px 0 12px; }
.package p { font-size: 1rem; }
.package h3 { margin-bottom: 10px; }

.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); background: #fff; }
.phases { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.phases th, .phases td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.phases thead th { background: var(--ink); color: var(--ivory); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.phases tbody th { white-space: nowrap; }
.phases tbody tr:last-child > * { border-bottom: 0; }

.principles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); counter-reset: p; }
.principles li { counter-increment: p; padding-left: 52px; position: relative; color: var(--graphite); }
.principles li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.principles strong { color: var(--ink); }

/* Assessment */
.privacy-note { margin-top: 14px; font-size: .92rem; color: var(--graphite); border-left: 3px solid var(--gold); padding-left: 14px; }
#assessment { margin-top: 36px; }
fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.fs-title { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); padding: 0; margin-bottom: 14px; display: block; }
.q { border: 1px solid var(--line); background: #fff; padding: 20px 22px; margin-bottom: 14px; }
.q legend, .q .q-label { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.q .q-label { display: block; margin-bottom: 10px; padding: 0; margin-left: 0; }
.q.invalid { border-color: #a4262c; box-shadow: 0 0 0 1px #a4262c; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: block; padding: 10px 16px; border: 1.5px solid var(--ink); border-radius: 2px; font-size: .95rem; font-weight: 600; background: #fff; min-width: 48px; text-align: center; }
.opt input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.scale-key { display: flex; justify-content: space-between; font-size: .8rem; color: var(--graphite); margin-top: 8px; max-width: 360px; }
.scale .opts { max-width: 360px; }
.scale .opt { flex: 1; }
textarea, input[type="text"] { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.opt-note { font-weight: 400; color: var(--graphite); font-size: .85rem; }
.form-error { color: #a4262c; font-weight: 600; margin-bottom: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Result */
.result { margin-top: 48px; border: 2px solid var(--ink); background: #fff; padding: clamp(22px, 4vw, 40px); scroll-margin-top: 100px; }
.result:focus { outline: none; }
.result h3 { font-size: 1.5rem; margin-bottom: 8px; }
.result h4 { margin: 28px 0 10px; font-size: 1rem; letter-spacing: .02em; }
.bars { display: grid; gap: 16px; margin-top: 18px; }
.bar-row .bar-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; margin-bottom: 6px; gap: 12px; }
.bar { height: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); }
.bar-row.low .bar > i { background: var(--gold); }
.bar-row.low .bar-head::after { content: "← itt érdemes kezdeni"; font-weight: 600; color: var(--gold-deep); font-size: .85rem; }
.bar-row.low .bar-head { flex-wrap: wrap; }
.entry { background: var(--ink); color: var(--ivory); padding: 22px 24px; margin-top: 24px; border-left: 6px solid var(--gold); }
.entry strong { color: var(--gold); }
.entry p + p { margin-top: 10px; }
.note { margin-top: 18px; padding: 14px 16px; background: var(--surface); font-size: .95rem; }
.share textarea { min-height: 220px; font-size: .85rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.copied { font-weight: 600; color: var(--gold-deep); align-self: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ivory); padding: 48px 0; }
.footer-inner { display: grid; gap: 10px; }
.footer-inner img { height: 48px; width: auto; margin-bottom: 8px; }
.footer-inner .copy { color: #a9a496; font-size: .85rem; margin-top: 8px; }
.site-footer a { color: var(--gold); }

@media print {
  .site-header, .hero-actions, .form-actions, .site-footer, .share-actions { display: none !important; }
  .hero { padding: 24px 0; }
}

/* Kiegészítések */
.hero-note { margin-top: 18px; font-size: .92rem; color: #cfc9bb; }
.outcomes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.outcomes li { border-top: 3px solid var(--gold); padding-top: 16px; }
.outcomes p { margin-top: 8px; color: var(--graphite); font-size: 1rem; }
.steps { display: grid; gap: 24px; margin-top: 36px; max-width: 760px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--gold); font-weight: 700; display: grid; place-items: center; }
.steps p { margin-top: 4px; color: var(--graphite); }
.packages { margin-top: 48px; }
.contact-line { margin-top: 24px; }
.lead-2 { margin-top: 18px; }
.symptoms { display: grid; gap: 14px; margin-top: 36px; max-width: 760px; }
.symptoms li { position: relative; padding: 4px 0 4px 34px; font-size: 1.1rem; }
.symptoms li::before { content: ""; position: absolute; left: 0; top: .72em; width: 20px; height: 3px; background: var(--gold); }
.areas { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.areas li { border-top: 3px solid var(--ink); padding-top: 16px; }
.area-n { display: block; font-weight: 700; color: var(--gold-deep); margin-bottom: 6px; }
.areas p { margin-top: 8px; color: var(--graphite); font-size: 1rem; }

/* Közösen: kézzel húzott arany aláhúzás */
.hl { position: relative; display: inline-block; white-space: nowrap; padding-bottom: .12em; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.04em; height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 45 3, 95 12, 150 6 S 245 10, 297 4' fill='none' stroke='%23D4AF7C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left center; animation: hl-draw .9s .2s ease-out both;
}
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hl::after { animation: none; } }

.symptoms-note { margin-top: 28px; max-width: 60ch; color: var(--graphite); }
.contact-alt { margin-top: 16px; font-size: .95rem; color: var(--graphite); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0; }
.footer-links a, .footer-inner .copy a { color: var(--gold); }
.package p + p { margin-top: 12px; }

/* Jogi oldal */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 110px); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-meta { color: var(--graphite); margin: 10px 0 28px; font-size: .95rem; }
.legal h2 { font-size: 1.35rem; max-width: none; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p { margin-top: 12px; max-width: 70ch; }
.legal .facts { margin: 14px 0; border: 1px solid var(--line); background: #fff; }
.legal .facts div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal .facts div:last-child { border-bottom: 0; }
.legal dt { font-weight: 700; font-size: .92rem; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal .facts div { grid-template-columns: 1fr; gap: 2px; } }
.legal-list { display: grid; gap: 8px; margin: 12px 0; padding-left: 20px; list-style: disc; max-width: 70ch; }
.legal-back { margin-top: 40px; }
