/* =========================================================================
   gimnazium.hu — független felnőtt-érettségi útmutató
   Vizuális identitás: "útikönyv" — mély fenyőzöld + meleg mézsárga, papírháttér
   Konvenció: kizárólag CSS változók, angol kódnevek, magyar UI szöveg
   ========================================================================= */

:root {
  /* színek */
  --ink:        #16302A;   /* fő szövegszín, sötét fenyő-tinta */
  --ink-soft:   #3A4D47;
  --muted:      #5C6B64;   /* másodlagos szöveg */
  --pine:       #1E4A40;   /* elsődleges mély zöld */
  --pine-deep:  #143229;   /* fejléc / lábléc háttér */
  --moss:       #2F7A66;   /* élénkebb zöld: linkek, hover */
  --honey:      #E2A23B;   /* meleg akcentus: jelzések, CTA */
  --honey-deep: #C2842A;
  --paper:      #EDF2EC;   /* lapháttér, halvány zsálya-fehér */
  --card:       #FFFFFF;
  --card-warm:  #F7F9F5;
  --line:       rgba(22, 48, 42, 0.12);
  --line-soft:  rgba(22, 48, 42, 0.07);
  --shadow-sm:  0 1px 2px rgba(20, 50, 41, 0.06), 0 2px 8px rgba(20, 50, 41, 0.05);
  --shadow-md:  0 6px 24px rgba(20, 50, 41, 0.10), 0 2px 6px rgba(20, 50, 41, 0.06);
  --shadow-lg:  0 18px 48px rgba(20, 50, 41, 0.16);

  /* tipográfia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* méretek */
  --maxw: 1120px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --space: clamp(4rem, 8vw, 7rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 540; line-height: 1.12; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: var(--space); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--honey-deep);
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--honey); border-radius: 2px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 650; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--honey); color: var(--pine-deep); box-shadow: 0 4px 14px rgba(226,162,59,0.4); }
.btn-primary:hover { background: var(--honey-deep); box-shadow: 0 8px 22px rgba(226,162,59,0.45); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pine); background: rgba(30,74,64,0.04); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-light:hover { background: rgba(255,255,255,0.2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,242,236,0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 0.1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--honey); }
.brand .tld { color: var(--moss); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-soft); font-weight: 550; font-size: 0.97rem; }
.nav a:hover { color: var(--pine); text-decoration: none; }
.nav .btn { margin-left: 0.4rem; padding: 0.62rem 1.2rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); padding: 0.5rem 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.32s var(--ease); margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin: 0.8rem 0 0; }
  .nav-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open span:nth-child(2) { opacity: 0; }
  .nav-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6rem) var(--space); }
.hero::after {
  content: ""; position: absolute; right: -12%; top: -20%; width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(226,162,59,0.20), rgba(226,162,59,0) 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 560; }
.hero h1 em { font-style: italic; color: var(--moss); }
.hero .lead { margin: 1.4rem 0 2rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-trust { margin-top: 1.8rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.hero-trust strong { color: var(--pine); font-weight: 650; }

/* hero seal / signature stamp */
.seal {
  position: relative; aspect-ratio: 1; width: min(82%, 360px); margin-inline: auto;
  display: grid; place-items: center;
}
.seal-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed var(--honey); animation: spin 38s linear infinite;
}
.seal-ring.inner { inset: 14%; border-style: solid; border-color: rgba(30,74,64,0.18); animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-core {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(155deg, var(--pine), var(--pine-deep));
  color: #fff; display: grid; place-content: center; text-align: center; gap: 0.2rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 1rem;
}
.seal-core .big { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; color: var(--honey); }
.seal-core .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.seal-core .sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .seal { grid-row: 1; width: min(64%, 280px); }
}

/* ---------- the path (signature) ---------- */
.path { background: linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%); color: #fff; }
.path h2, .path h3 { color: #fff; }
.path .eyebrow { color: var(--honey); }
.path-head { max-width: 54ch; margin-bottom: 3rem; }
.path-head p { color: rgba(255,255,255,0.78); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(226,162,59,0.7) 0 14px, transparent 14px 26px);
}
.step { position: relative; padding: 0 1rem; text-align: center; }
.step .marker {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: var(--honey); color: var(--pine-deep);
  display: grid; place-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--pine-deep);
}
.step h4 { color: #fff; font-size: 1.18rem; margin-bottom: 0.5rem; }
.step p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; text-align: left; padding: 0; align-items: start; }
  .step .marker { margin: 0; }
}

/* ---------- cards / guides ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .kicker { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey-deep); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card .more { margin-top: auto; font-weight: 650; color: var(--moss); display: inline-flex; align-items: center; gap: 0.35rem; padding-top: 0.6rem; }
.card .more::after { content: "→"; transition: transform 0.2s var(--ease); }
.card:hover .more::after { transform: translateX(4px); }

/* ---------- comparison table ---------- */
.compare { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--card); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.98rem; }
table.cmp th, table.cmp td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.cmp thead th { background: var(--card-warm); font-family: var(--font-display); font-weight: 580; font-size: 1.02rem; color: var(--ink); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child, table.cmp th:first-child { font-weight: 600; color: var(--ink); }
table.cmp .yes { color: var(--moss); font-weight: 650; }
table.cmp .row-head { background: rgba(30,74,64,0.03); }

/* ---------- recommend / funnel block ---------- */
.recommend {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--honey);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; align-items: center;
}
.recommend h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.7rem; }
.recommend ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.recommend li { padding-left: 1.9rem; position: relative; color: var(--ink-soft); }
.recommend li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--moss); font-weight: 800; background: rgba(47,122,102,0.12); width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-content: center; font-size: 0.8rem; }
.recommend .panel { background: linear-gradient(160deg, var(--pine), var(--pine-deep)); color: #fff; border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.recommend .panel h4 { color: #fff; font-size: 1.25rem; margin-bottom: 0.4rem; }
.recommend .panel p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.recommend .panel .btn { margin-top: 1rem; width: 100%; }
.recommend .panel small { display: block; margin-top: 0.9rem; color: rgba(255,255,255,0.55); font-size: 0.78rem; }
@media (max-width: 820px) { .recommend { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.8rem; max-width: 780px; }
.faq details {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 0 1.4rem; box-shadow: var(--shadow-sm); transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0; font-family: var(--font-display);
  font-weight: 540; font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--honey-deep); line-height: 1; transition: transform 0.25s var(--ease); font-family: var(--font-body); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.25rem; margin: 0; color: var(--ink-soft); }

/* ---------- lead form ---------- */
.form-section { background: var(--card-warm); }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-md); max-width: 720px; margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--honey-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(47,122,102,0.15); }
.field textarea { resize: vertical; min-height: 96px; }
.consent { grid-column: 1 / -1; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--moss); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: 0.84rem; color: var(--muted); margin: 0; }
.form-status { grid-column: 1 / -1; padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: rgba(47,122,102,0.12); color: var(--pine); border: 1px solid rgba(47,122,102,0.3); }
.form-status.err { display: block; background: rgba(199,82,42,0.1); color: #9c3b1d; border: 1px solid rgba(199,82,42,0.3); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- prose (content pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 0.7rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3rem; display: grid; gap: 0.45rem; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--honey); background: var(--card-warm); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pine); }
.page-hero { background: linear-gradient(180deg, rgba(47,122,102,0.07), transparent); padding-block: clamp(2.6rem, 5vw, 4rem) 1rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); max-width: 18ch; }
.page-hero .lead { margin-top: 1rem; max-width: 56ch; }
.toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 0 0 2.4rem; box-shadow: var(--shadow-sm); }
.toc strong { display: block; font-family: var(--font-display); margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }

/* ---------- callout ---------- */
.callout { background: var(--card-warm); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.8rem 0; display: flex; gap: 1rem; }
.callout .ico { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--honey); color: var(--pine-deep); display: grid; place-content: center; font-weight: 800; }
.callout p { margin: 0; }
.callout p strong { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--pine-deep); color: rgba(255,255,255,0.75); padding-block: 3.5rem 2rem; margin-top: var(--space); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer h5 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey); margin: 0 0 1rem; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 0.3rem 0; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.disclosure { font-size: 0.88rem; color: rgba(255,255,255,0.62); max-width: 42ch; margin-top: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .about { grid-column: 1 / -1; } }

/* ---------- cookie consent ---------- */
.cookiebar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 560px; margin-inline: auto;
  background: var(--pine-deep); color: rgba(255,255,255,0.88); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-lg); display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookiebar.show { display: flex; }
.cookiebar p { margin: 0; font-size: 0.9rem; flex: 1 1 260px; }
.cookiebar p a { color: var(--honey); }
.cookiebar .cb-actions { display: flex; gap: 0.6rem; }
.cookiebar .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .seal-ring { animation: none; } }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-head { max-width: 52ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }

/* =========================================================================
   DINAMIKUS KOMPONENSEK
   ========================================================================= */

/* ---- scroll progress ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--honey), var(--moss)); transition: width 0.1s linear; }

/* ---- sticky CTA bar ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; transform: translateY(120%);
  transition: transform 0.4s var(--ease); background: rgba(20,50,41,0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff;
  border-top: 1px solid rgba(255,255,255,0.12); box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding-block: 0.7rem; }
.sticky-cta strong { font-family: var(--font-display); font-weight: 540; font-size: 1.05rem; }
.sticky-cta span { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.sticky-cta .btn { margin-left: auto; white-space: nowrap; }
.sticky-cta .txt { display: flex; flex-direction: column; line-height: 1.25; }
@media (max-width: 560px) { .sticky-cta span { display: none; } .sticky-cta .btn { padding: 0.6rem 1.1rem; font-size: 0.92rem; } }

/* ---- animated stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 580; color: var(--pine); line-height: 1; }
.stat .num .suffix { color: var(--honey-deep); }
.stat .cap { margin-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---- interactive tool shell (calc + quiz) ---- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.tool-head { background: linear-gradient(155deg, var(--pine), var(--pine-deep)); color: #fff; padding: 1.6rem 1.8rem; display: flex; align-items: center; gap: 1rem; }
.tool-head .badge { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--honey); color: var(--pine-deep); display: grid; place-content: center; font-size: 1.3rem; }
.tool-head h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.tool-head p { color: rgba(255,255,255,0.72); margin: 0.15rem 0 0; font-size: 0.9rem; }
.tool-body { padding: 1.8rem; }
.tool-q { display: none; }
.tool-q.active { display: block; animation: fadeSlide 0.4s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tool-q .q-label { font-family: var(--font-display); font-size: 1.18rem; font-weight: 540; margin: 0 0 1.1rem; display: block; }
.opt-list { display: grid; gap: 0.7rem; }
.opt {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left; cursor: pointer;
  padding: 0.95rem 1.1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); transition: all 0.16s var(--ease);
}
.opt:hover { border-color: var(--moss); background: rgba(47,122,102,0.05); transform: translateX(3px); }
.opt.sel { border-color: var(--moss); background: rgba(47,122,102,0.1); box-shadow: 0 0 0 3px rgba(47,122,102,0.12); }
.opt .tick { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--line); display: grid; place-content: center; font-size: 0.8rem; color: #fff; transition: all 0.16s; }
.opt.sel .tick { background: var(--moss); border-color: var(--moss); }
.opt.multi .tick { border-radius: 6px; }
.tool-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }
.tool-dots { display: flex; gap: 0.4rem; }
.tool-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all 0.2s; }
.tool-dots i.on { background: var(--honey); width: 22px; border-radius: 4px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; padding: 0.5rem; }
.link-btn:hover { color: var(--pine); }
.link-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* tool result */
.tool-result { display: none; padding: 2rem 1.8rem; text-align: center; animation: fadeSlide 0.4s var(--ease); }
.tool-result.show { display: block; }
.result-big { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--pine); line-height: 1; margin: 0.4rem 0; }
.result-big .u { color: var(--honey-deep); }
.result-tag { display: inline-block; padding: 0.3rem 0.9rem; border-radius: var(--radius-pill); background: rgba(226,162,59,0.16); color: var(--honey-deep); font-weight: 650; font-size: 0.85rem; letter-spacing: 0.04em; }
.result-note { color: var(--muted); font-size: 0.92rem; max-width: 44ch; margin: 1rem auto 0; }
.result-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1.4rem 0; }
.result-meta div { text-align: center; }
.result-meta .k { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.result-meta .l { font-size: 0.8rem; color: var(--muted); }
.result-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* recommend bar (quiz visual) */
.rec-bar { max-width: 360px; margin: 1.2rem auto; }
.rec-bar .lbls { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.rec-bar .track { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.rec-bar .fill { height: 100%; background: linear-gradient(90deg, var(--moss), var(--honey)); width: 50%; transition: width 0.8s var(--ease); }

/* ---- countdown ---- */
.countdown-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; background: linear-gradient(155deg, var(--pine), var(--pine-deep)); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); color: #fff; box-shadow: var(--shadow-lg); }
.countdown-wrap h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.countdown-wrap p { color: rgba(255,255,255,0.75); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.cd-unit { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 1rem 0.4rem; text-align: center; }
.cd-unit b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--honey); line-height: 1; font-weight: 580; }
.cd-unit span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }
@media (max-width: 720px) { .countdown-wrap { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; } }

/* ---- tabs ---- */
.tabs { display: flex; gap: 0.5rem; background: var(--card-warm); padding: 0.4rem; border-radius: var(--radius-pill); width: fit-content; margin: 0 auto 2rem; border: 1px solid var(--line-soft); }
.tab-btn { border: 0; background: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; color: var(--muted); padding: 0.65rem 1.4rem; border-radius: var(--radius-pill); transition: all 0.2s var(--ease); }
.tab-btn.active { background: var(--pine); color: #fff; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; animation: fadeSlide 0.4s var(--ease); }
.tab-panel.active { display: block; }

/* ---- persona slider ---- */
.slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.slides { display: flex; transition: transform 0.5s var(--ease); }
.slide { flex: 0 0 100%; padding: clamp(1.8rem, 4vw, 2.8rem); background: var(--card); border: 1px solid var(--line-soft); }
.slide .quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-style: italic; color: var(--ink); line-height: 1.4; }
.slide .who { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.9rem; }
.slide .who .av { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(155deg, var(--moss), var(--pine)); color: #fff; display: grid; place-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.slide .who b { display: block; color: var(--ink); }
.slide .who span { font-size: 0.88rem; color: var(--muted); }
.slider-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.slider-ctrl button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--pine); transition: all 0.18s; }
.slider-ctrl button:hover { border-color: var(--pine); background: var(--pine); color: #fff; }
.slider-dots { display: flex; gap: 0.45rem; }
.slider-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); cursor: pointer; transition: all 0.2s; }
.slider-dots i.on { background: var(--honey); width: 24px; border-radius: 5px; }
.slide-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* ---- multi-step wizard ---- */
.wizard-progress { display: flex; align-items: center; gap: 0; margin-bottom: 1.8rem; }
.wstep { flex: 1; display: flex; align-items: center; }
.wstep .ball { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-content: center; font-weight: 700; font-size: 0.9rem; transition: all 0.3s var(--ease); border: 2px solid transparent; }
.wstep .line { flex: 1; height: 2px; background: var(--line); margin: 0 0.4rem; transition: background 0.3s; }
.wstep:last-child .line { display: none; }
.wstep.done .ball { background: var(--moss); color: #fff; }
.wstep.current .ball { background: var(--honey); color: var(--pine-deep); box-shadow: 0 0 0 4px rgba(226,162,59,0.22); }
.wstep.done .line { background: var(--moss); }
.wpanel { display: none; animation: fadeSlide 0.35s var(--ease); }
.wpanel.active { display: block; }
.wpanel h4 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.3rem; }
.wpanel .sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { cursor: pointer; padding: 0.7rem 1.2rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-size: 0.96rem; font-family: var(--font-body); transition: all 0.16s; }
.chip:hover { border-color: var(--moss); }
.chip.sel { background: var(--pine); color: #fff; border-color: var(--pine); }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.review-box { background: var(--card-warm); border: 1px solid var(--line-soft); border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.review-box .row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.review-box .row:last-child { border-bottom: 0; }
.review-box .row span:first-child { color: var(--muted); }
.review-box .row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }

/* prefilled hint badge */
.prefill-hint { display: none; align-items: center; gap: 0.5rem; background: rgba(47,122,102,0.1); border: 1px solid rgba(47,122,102,0.25); color: var(--pine); border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.9rem; margin-bottom: 1.2rem; }
.prefill-hint.show { display: flex; }

/* =========================================================================
   MOZGÓ / FIGYELEMFELKELTŐ ELEMEK
   ========================================================================= */

/* hero tartalom a háttér fölé */
.hero .wrap { position: relative; z-index: 2; }

/* aurora animált háttér */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora b { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; mix-blend-mode: multiply; }
.aurora b:nth-child(1) { width: 38vw; height: 38vw; max-width: 460px; max-height: 460px; left: -6%; top: -10%; background: radial-gradient(circle, rgba(47,122,102,0.5), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora b:nth-child(2) { width: 32vw; height: 32vw; max-width: 400px; max-height: 400px; right: -4%; top: 6%; background: radial-gradient(circle, rgba(226,162,59,0.45), transparent 70%); animation: drift2 22s ease-in-out infinite; }
.aurora b:nth-child(3) { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: 35%; bottom: -18%; background: radial-gradient(circle, rgba(30,74,64,0.35), transparent 70%); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%, 10%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10%, 8%) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, -8%) scale(1.15); } }

/* lebegő pontok */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floaters i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); opacity: 0.5; animation: floaty 7s ease-in-out infinite; }
.floaters i:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s; }
.floaters i:nth-child(2) { left: 48%; top: 18%; width: 7px; background: var(--moss); animation-delay: 1.4s; }
.floaters i:nth-child(3) { left: 62%; top: 62%; width: 13px; animation-delay: 2.6s; }
.floaters i:nth-child(4) { left: 28%; top: 72%; width: 6px; background: var(--moss); animation-delay: 0.8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-18px); opacity: 0.9; } }

/* animált aláhúzás a hero kiemelt szaván */
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.42em; background: rgba(226,162,59,0.42); border-radius: 0.2em; z-index: -1; transform: scaleX(0); transform-origin: left; animation: drawline 0.9s 0.5s var(--ease) forwards; }
@keyframes drawline { to { transform: scaleX(1); } }

/* futó szalag (marquee) */
.ticker { background: var(--pine-deep); color: #fff; overflow: hidden; border-block: 1px solid rgba(255,255,255,0.08); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.85rem 2rem; font-size: 0.95rem; font-weight: 600; white-space: nowrap; color: rgba(255,255,255,0.9); }
.ticker-item::before { content: "★"; color: var(--honey); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* csillanó / pulzáló CTA */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent); transform: skewX(-18deg); transition: none; }
.btn-primary:hover::after { animation: sweep 0.8s var(--ease); }
@keyframes sweep { to { left: 130%; } }
.btn-glow { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse { 0%,100% { box-shadow: 0 4px 14px rgba(226,162,59,0.4); } 50% { box-shadow: 0 6px 26px rgba(226,162,59,0.75); } }

/* dőlő (tilt) kártya */
.card { transform-style: preserve-3d; will-change: transform; }
.card[data-tilt] { transition: transform 0.12s ease, box-shadow 0.22s var(--ease); }

/* animált gradiens szöveg-akcentus */
.grad-text { background: linear-gradient(90deg, var(--moss), var(--honey), var(--moss)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradshift 5s linear infinite; }
@keyframes gradshift { to { background-position: 200% center; } }

/* szekció-belépő badge pulzálás */
.live-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--moss); }
.live-badge .dotpulse { width: 9px; height: 9px; border-radius: 50%; background: var(--moss); position: relative; }
.live-badge .dotpulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--moss); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

/* count-up szám kiemelés */
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); transition: all 0.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .aurora b, .floaters i, .ticker-track, .btn-glow, .grad-text, .hl::after, .live-badge .dotpulse::after { animation: none !important; }
  .hl::after { transform: scaleX(1); }
}
