/* =========================================================================
   B.W.A Kft. — Belsőépítészeti igényfelmérő · LaszloDesign Studio
   Képernyő-stílusok (nyomtatás: print.css)
   ========================================================================= */

:root {
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-mid: #e6c968;
  --gold-dark: #aa8022;
  --gold-print: #b8860b;
  --bg: #000;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --faint: #78716c;
  --ok: #86efac;
  --warn: #fbbf24;
  --err: #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, .serif { font-family: "Playfair Display", serif; font-weight: 500; }

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(212, 175, 55, 0.35); }

/* ------------------------------ háttér ---------------------------------- */
#meshCanvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.lava-lamp-bg {
  background: linear-gradient(135deg, #d4af37, #f3e5ab, #aa8022, #d4af37);
  background-size: 300% 300%;
  animation: lava-lamp 10s ease infinite;
}
@keyframes lava-lamp {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* animált arany keret (az árajánlat-oldal bevált eleme) */
.animated-border { position: relative; }
.animated-border::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(212,175,55,1) 0%, rgba(255,255,255,0.6) 50%, rgba(212,175,55,1) 100%);
  background-size: 300% 300%;
  animation: lava-lamp 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --------------------------- jelszó-képernyő ----------------------------- */
#password-screen {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem;
}
.gate-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.gate-card .logo { width: 80px; height: 80px; margin: 0 auto 1.5rem; }
.gate-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.gate-card p { color: var(--muted); font-size: 0.875rem; margin-bottom: 2rem; font-weight: 300; }
.gate-card form { display: flex; flex-direction: column; gap: 1rem; transition: transform 0.1s ease; }
.gate-card input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1.125rem;
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}
.gate-card input::placeholder { color: var(--faint); letter-spacing: normal; }
.gate-card input:focus { border-color: var(--gold); }
.gate-card input.error { border-color: var(--err); }
.gate-error { color: var(--err); font-size: 0.875rem; display: none; }
.gate-error.visible { display: block; }

/* ------------------------------- gombok ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, #d4af37, #e6c968, #aa8022, #d4af37);
  background-size: 300% 300%;
  animation: lava-lamp 8s ease infinite;
  color: #100c02;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover { box-shadow: 0 0 28px rgba(212, 175, 55, 0.55); transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-gold {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-mid);
  border: 1px solid rgba(212, 175, 55, 0.45);
}
.btn-outline-gold:hover { background: rgba(212, 175, 55, 0.16); box-shadow: 0 0 18px rgba(212, 175, 55, 0.25); }
.btn-lg { padding: 1rem 2.6rem; font-size: 1.05rem; }

/* ------------------------------- fejléc ---------------------------------- */
#main-content { display: none; position: relative; min-height: 100vh; }
#main-content.ready { display: flex; flex-direction: column; }

header.site {
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}
.site-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-group { display: flex; align-items: center; gap: 1.4rem; }
.award-link { display: flex; align-items: center; text-decoration: none; }
.award-link .award {
  width: 86px; height: 72px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.5s ease;
}
.award-link:hover .award { opacity: 1; transform: scale(1.05); }
.site-brand { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; }
.site-brand .logo { width: 72px; height: 72px; transition: transform 0.5s ease; }
.site-brand:hover .logo { transform: scale(1.05); }
.brand-lines { display: flex; flex-direction: column; }
.brand-lines .studio { font-family: "Playfair Display", serif; font-size: 1.15rem; color: #fff; letter-spacing: 0.04em; }
.brand-lines .tag { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-top: 0.15rem; }
.site-title { text-align: right; }
.site-title .over { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.site-title .main { font-family: "Playfair Display", serif; color: var(--gold-mid); font-size: 1.35rem; }
.site-title .client { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* --------------------------- haladásjelző -------------------------------- */
#progress-wrap {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.progress-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.progress-track { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 2px; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.05em; }
.save-hint { font-size: 0.68rem; color: var(--faint); white-space: nowrap; opacity: 0; transition: opacity 0.4s; }
.save-hint.visible { opacity: 1; color: var(--ok); }

/* ------------------------------ tartalom --------------------------------- */
main.app { flex: 1; position: relative; z-index: 5; width: 100%; max-width: 56rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.screen { display: none; }
.screen.active { display: block; animation: rise 0.5s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 2.25rem 2rem;
}

/* --------------------------------- intro --------------------------------- */
.intro-head { text-align: center; margin-bottom: 2rem; }
.intro-head .over { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-mid); margin-bottom: 0.8rem; }
.intro-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: #fff; line-height: 1.2; margin-bottom: 0.8rem; }
.intro-head .scope { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.03em; }
.intro-text p { color: #d6d3d1; font-size: 0.95rem; margin-bottom: 1rem; }
.intro-text p:last-child { margin-bottom: 0; }

.intro-meta { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.intro-meta h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.meta-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field label .req { color: var(--gold-mid); }
.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.field input.error { border-color: var(--err); }
.field-err { color: var(--err); font-size: 0.75rem; margin-top: 0.3rem; display: none; }
.field-err.visible { display: block; }

.intro-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.6rem; }
.fact-chip {
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}
.fact-chip b { color: var(--gold-mid); font-weight: 500; }

.intro-actions { text-align: center; margin-top: 2.2rem; }

/* -------------------------------- stepper -------------------------------- */
.stepper {
  display: flex; gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  margin-bottom: 1.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.4) transparent;
}
.step-pill {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.step-pill .n { font-family: "Playfair Display", serif; color: var(--faint); font-size: 0.8rem; }
.step-pill:hover { border-color: rgba(212, 175, 55, 0.4); color: #fff; }
.step-pill.current { border-color: var(--gold); color: #fff; background: rgba(212, 175, 55, 0.1); box-shadow: 0 0 14px rgba(212,175,55,0.18); }
.step-pill.current .n { color: var(--gold-mid); }
.step-pill.done .n { color: var(--ok); }
.step-pill .tick { display: none; color: var(--ok); font-size: 0.7rem; }
.step-pill.done .tick { display: inline; }

/* ------------------------------ szekció-kártya ---------------------------- */
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.section-head .num { font-family: "Playfair Display", serif; font-size: 2.4rem; color: rgba(212, 175, 55, 0.55); line-height: 1; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; }
.section-intro { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.8rem; max-width: 44rem; }

.qblock { border-top: 1px solid var(--line); padding: 1.7rem 0; }
.qblock:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.qtext { font-size: 1.02rem; font-weight: 400; color: #fff; margin-bottom: 0.35rem; }
.qtext .qno { color: var(--gold-mid); font-family: "Playfair Display", serif; margin-right: 0.5rem; }
.qhint { font-size: 0.78rem; color: var(--faint); margin-bottom: 0.9rem; }
.qblock.answered .qtext::after {
  content: "✓";
  color: var(--ok);
  font-size: 0.85rem;
  margin-left: 0.55rem;
}

/* opciók */
.options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.9rem; }
.opt {
  display: flex; align-items: flex-start; gap: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.opt:hover { border-color: rgba(212, 175, 55, 0.45); background: rgba(212, 175, 55, 0.05); }
.opt .mark {
  flex: 0 0 auto;
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.18rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: #100c02;
  transition: all 0.25s;
}
.opt.single .mark { border-radius: 50%; }
.opt .mark::after { content: ""; }
.opt .lbl { font-size: 0.92rem; color: #e7e5e4; font-weight: 300; }
.opt.selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.10); box-shadow: 0 0 16px rgba(212, 175, 55, 0.12); }
.opt.selected .mark { background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-color: var(--gold); }
.opt.selected .mark::after { content: "✓"; font-weight: 700; }
.opt.single.selected .mark::after { content: "●"; font-size: 0.5rem; }
.opt.selected .lbl { color: #fff; }

/* egyéni válasz */
.custom-row { margin-top: 0.5rem; }
.custom-row .opt { align-items: center; }
.custom-input-wrap { display: none; margin-top: 0.5rem; }
.custom-input-wrap.visible { display: block; animation: rise 0.3s ease; }
.custom-input-wrap input, .qblock textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
}
.custom-input-wrap input:focus, .qblock textarea:focus { border-color: var(--gold); }
.qblock textarea { min-height: 6.2rem; resize: vertical; line-height: 1.55; margin-top: 0.9rem; }
.qblock textarea::placeholder, .custom-input-wrap input::placeholder { color: var(--faint); }

/* „nem tudok válaszolni" */
.skip-row { margin-top: 0.7rem; }
.skip-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--faint);
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  transition: all 0.25s;
}
.skip-btn:hover { color: var(--warn); border-color: rgba(251, 191, 36, 0.5); }
.skip-btn.active {
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.08);
}
.skip-btn.active::before { content: "◔ "; }
.qblock.skipped .options, .qblock.skipped .custom-row, .qblock.skipped textarea { opacity: 0.35; pointer-events: none; }

/* tervezői megjegyzés */
.dnote {
  margin-top: 1rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.09), rgba(212, 175, 55, 0.02));
  padding: 0.8rem 1rem;
}
.dnote .dlabel {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-mid); margin-bottom: 0.3rem; font-weight: 500;
}
.dnote p { font-size: 0.82rem; color: #d6d3d1; line-height: 1.55; }

/* szekció-navigáció */
.section-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.section-nav .spacer { flex: 1; }
.nav-pos { font-size: 0.72rem; color: var(--faint); letter-spacing: 0.1em; }

/* ------------------------------ áttekintés -------------------------------- */
.review-head { margin-bottom: 1.6rem; }
.review-head h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.review-head p { color: var(--muted); font-size: 0.9rem; }
.review-warn {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.4rem;
}
.review-warn b { font-weight: 600; }
.review-body { margin-bottom: 2rem; }

/* a review a print-riport képernyős változatát használja */
.report { color: var(--text); }
.report .rp-cover { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
.report .rp-title { font-family: "Playfair Display", serif; font-size: 1.5rem; color: #fff; }
.report .rp-sub { color: var(--gold-mid); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }
.report .rp-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.report .rp-meta b { color: #fff; font-weight: 500; }
.report .rp-section { margin: 1.6rem 0 0.6rem; }
.report .rp-section-title { font-family: "Playfair Display", serif; color: var(--gold-mid); font-size: 1.12rem; border-bottom: 1px solid rgba(212, 175, 55, 0.25); padding-bottom: 0.35rem; margin-bottom: 0.9rem; }
.report .rp-q { padding: 0.55rem 0 0.7rem; border-bottom: 1px dotted rgba(255, 255, 255, 0.08); }
.report .rp-q:last-child { border-bottom: none; }
.report .rp-question { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.3rem; }
.report .rp-answer { font-size: 0.94rem; color: #fff; }
.report .rp-answer ul { margin: 0.2rem 0 0 1.1rem; }
.report .rp-answer li { margin-bottom: 0.15rem; }
.report .rp-custom { color: var(--gold-light); }
.report .rp-none { color: var(--faint); font-style: italic; }
.report .rp-skip {
  display: inline-block;
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.45);
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
}
.report .rp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.6rem;
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
}
.review-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.review-actions .spacer { flex: 1; }
.submit-err { color: var(--err); font-size: 0.85rem; margin-top: 0.8rem; display: none; }
.submit-err.visible { display: block; }

/* -------------------------------- kész ----------------------------------- */
.done-card { text-align: center; padding: 3.2rem 2rem; }
.done-mark {
  width: 74px; height: 74px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gold-mid);
  box-shadow: 0 0 34px rgba(212, 175, 55, 0.3);
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-card h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.7rem; }
.done-card p { color: var(--muted); font-size: 0.92rem; max-width: 34rem; margin: 0 auto 0.4rem; }
.done-id { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.08em; margin-top: 0.6rem; }
.done-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

/* ------------------------------- lábléc ----------------------------------- */
footer.site {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  margin-top: 2rem;
}
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem;
  font-size: 0.75rem; color: var(--faint);
}
.footer-inner a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-inner a:hover { color: var(--gold-mid); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }

/* ---------------------- bemutató üzemmód jelzése -------------------------- */
.demo-flag {
  background: rgba(251, 191, 36, 0.1);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn);
  font-size: 0.8rem; line-height: 1.55;
  padding: 0.7rem 1.5rem; text-align: center;
}
.demo-flag[hidden] { display: none; }
.demo-flag b { font-weight: 600; }
.done-id.demo-note { color: var(--warn); }

/* ------------------ mentett piszkozat jelzése a bevezetőn ----------------- */
.draft-banner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem;
  margin-top: 1.6rem; padding: 0.9rem 1.1rem;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-left-width: 3px;
}
.draft-banner[hidden] { display: none; }
.draft-text { font-size: 0.85rem; color: var(--muted); }
.draft-text b { color: var(--gold-mid); font-weight: 500; }
.draft-text span { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--faint); }
.draft-banner .btn { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* --------------------- hozzájárulás és adatkezelés ------------------------ */
.intro-legal { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.consent { display: flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent-mark {
  flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 0.15rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.consent-mark::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #100c02; font-weight: 600;
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.consent:hover .consent-mark { border-color: var(--gold-mid); }
.consent input:focus-visible + .consent-mark { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35); }
.consent input:checked + .consent-mark {
  background: linear-gradient(135deg, #d4af37, #f3e5ab, #aa8022, #d4af37);
  background-size: 300% 300%;
  animation: lava-lamp 8s ease infinite;
  border-color: transparent;
}
.consent input:checked + .consent-mark::after { opacity: 1; transform: scale(1); }
.consent-text { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.consent.error .consent-mark { border-color: var(--err); }
#meta-consent-err { margin-left: 2.8rem; }

.gdpr { margin-top: 1rem; }
.gdpr summary {
  cursor: pointer; list-style: none;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-mid); padding: 0.35rem 0;
  transition: color 0.3s;
}
.gdpr summary::-webkit-details-marker { display: none; }
.gdpr summary::before { content: "＋ "; font-weight: 400; }
.gdpr[open] summary::before { content: "－ "; }
.gdpr summary:hover { color: var(--gold-light); }
.gdpr-body {
  margin-top: 0.7rem; padding: 1.1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted); line-height: 1.7;
}
.gdpr-body p + p { margin-top: 0.7rem; }
.gdpr-body b { color: var(--text); font-weight: 500; }
.gdpr-body a { color: var(--gold-mid); text-decoration: none; }
.gdpr-body a:hover { text-decoration: underline; }
.gdpr-more { margin-top: 0.9rem !important; padding-top: 0.7rem; border-top: 1px solid var(--line); }

/* ------------------ párbeszédablak: kihagyott kérdések -------------------- */
.modal-veil {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  animation: veil-in 0.25s ease both;
}
.modal-veil[hidden] { display: none; }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-card {
  width: 100%; max-width: 34rem;
  max-height: calc(100vh - 3rem);
  /* a fejléc és a gombok fixek maradnak — hosszú listánál csak a felsorolás gördül */
  display: flex; flex-direction: column; overflow: hidden;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.12);
  padding: 2.2rem 2rem 1.8rem;
  text-align: center;
  animation: card-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-badge {
  width: 46px; height: 46px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 50%;
  font-family: "Playfair Display", serif; font-size: 1.5rem;
  color: var(--gold-mid);
}
.modal-card h3 {
  font-family: "Playfair Display", serif; font-weight: 400;
  font-size: 1.4rem; color: #fff; margin-bottom: 0.7rem;
}
.modal-lead { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.modal-badge, .modal-card h3, .modal-lead, .modal-actions { flex: 0 0 auto; }
.modal-list {
  list-style: none; text-align: left;
  margin: 1.3rem 0 0.4rem;
  border-top: 1px solid var(--line);
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}
.modal-list li {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem; color: var(--text);
}
.modal-list .mno {
  flex: 0 0 auto;
  font-family: "Playfair Display", serif;
  color: var(--gold-mid); font-size: 0.85rem;
}
.modal-actions {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.6rem;
}
.modal-actions .btn { flex: 1 1 auto; min-width: 12rem; }

/* a párbeszédből megnyitott kérdés kiemelése */
@keyframes q-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  30% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.85), 0 0 26px rgba(212, 175, 55, 0.35); }
}
.qblock.attention { animation: q-attention 2s ease 2; }

/* ------------------------------- admin ------------------------------------ */
.admin-wrap { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.admin-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.admin-title h1 { color: #fff; font-size: 1.7rem; }
.admin-title .sub { color: var(--muted); font-size: 0.85rem; }
table.subs { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.subs th {
  text-align: left; font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-mid);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.6rem 0.75rem;
}
table.subs td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); color: #e7e5e4; }
table.subs tr:hover td { background: rgba(212, 175, 55, 0.05); }
.subs .dim { color: var(--faint); }
.mini-btn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-mid);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  transition: all 0.25s;
}
.mini-btn:hover { background: rgba(212, 175, 55, 0.18); }
.empty-note { color: var(--faint); text-align: center; padding: 3rem 1rem; font-size: 0.9rem; }
.admin-toolbar { display: flex; gap: 0.8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }

/* ---------------------------- print-riport tartó -------------------------- */
#print-report { display: none; }

/* ------------------------------ reszponzív -------------------------------- */
@media (max-width: 720px) {
  .site-inner { justify-content: center; text-align: center; }
  .site-title { text-align: center; }
  .brand-group { justify-content: center; gap: 1rem; }
  .award-link .award { width: 66px; height: 55px; }
  .modal-card { padding: 1.8rem 1.25rem 1.4rem; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { min-width: 0; width: 100%; }
  #meta-consent-err { margin-left: 0; }
  .glass { padding: 1.6rem 1.15rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .section-head .num { font-size: 1.8rem; }
  .section-nav { flex-direction: column-reverse; align-items: stretch; }
  .section-nav .btn { width: 100%; }
  .nav-pos { text-align: center; }
  .review-actions { flex-direction: column; align-items: stretch; }
  .review-actions .btn { width: 100%; }
  .done-actions { flex-direction: column; }
}
