/* =====================================================================
   Szirák Studio – nyilvános oldalak stíluslapja
   Külső függőség nélkül: rendszer-betűtípus, beépített SVG ikonok.
   ===================================================================== */

:root {
  --bg: #0b1018;
  --bg-alt: #0e141e;
  --surface: #131a25;
  --surface-2: #18202d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #e7eaf0;
  --muted: #a1abb9;
  --dim: #6f7a8a;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .12);
  --orange: #ff7a1a;
  --orange-ink: #ffa465;
  --orange-soft: rgba(255, 122, 26, .12);
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: #fff; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(34, 211, 238, .25); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { 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: -100px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none !important; transition: background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn-primary:hover .icon, a.btn[href^="#"]:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--orange); color: #160a02; }
.btn-primary:hover { background: #ff8d3a; }
.btn-secondary { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.btn-sm { min-height: 38px; padding: .45rem .9rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Fejléc ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(11, 16, 24, .92); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(11, 16, 24, .8); backdrop-filter: blur(8px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: none; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: .45rem .8rem; border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { display: none; }
.menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.menu-toggle .icon { width: 22px; height: 22px; }
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto; z-index: 49; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
.mobile-nav .btn { margin-top: 16px; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 72px) 0 80px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(60% 55% at 50% 0%, rgba(34, 211, 238, .07), transparent 70%); }
.hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(2.2rem, 6vw, 4.25rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.hero .hl-1 { color: var(--cyan); }
.hero .hl-2 { color: var(--orange); }
.hero-lead { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); text-wrap: pretty; }
.hero-lead strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-actions .btn { width: 100%; max-width: 320px; }
@media (min-width: 560px) { .hero-actions { flex-direction: row; } .hero-actions .btn { width: auto; } }
@media (min-width: 768px) { .hero { padding: calc(var(--header-h) + 112px) 0 120px; } }

/* ---------- Szekciók ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--cyan); font-size: .875rem; font-weight: 600; }
.section-head h2, .about h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-wrap: balance; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.075rem; }

/* ---------- Szolgáltatások ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-1 { max-width: 640px; }
.card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: var(--line-2); }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--cyan); background: var(--cyan-soft); }
.service-icon .icon { width: 22px; height: 22px; }
.t-ember .service-icon { color: var(--orange-ink); background: var(--orange-soft); }
.t-mix .service-icon { color: #e7eaf0; background: rgba(255, 255, 255, .07); }
.service-card h3 { margin-top: 20px; font-size: 1.3rem; }
.service-sub { margin-top: 4px; color: var(--cyan); font-weight: 500; }
.t-ember .service-sub { color: var(--orange-ink); }
.t-mix .service-sub { color: var(--muted); }
.service-card > p:not(.service-sub) { margin-top: 12px; color: var(--muted); }
.checklist { display: grid; gap: 8px; margin-top: 20px; list-style: none; font-size: .95rem; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--cyan); }
.t-ember .checklist .icon { color: var(--orange-ink); }
@media (min-width: 1024px) { .checklist.two-col { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.service-meta { margin-top: auto; padding-top: 18px; color: var(--dim); font-size: .875rem; }
.service-card .service-meta { border-top: 1px solid var(--line); margin-top: 24px; }

.steps { display: grid; gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--cyan); }
.step-icon .icon { width: 20px; height: 20px; }
.step h3 { font-size: 1.05rem; }
.step-n { margin-right: .35rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.step p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

/* ---------- Portfólió ---------- */
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.portfolio-head .section-head { margin-bottom: 0; }
.filters { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.filter-btn { padding: .45rem .9rem; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; }
.filter-btn:hover { color: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--surface-2); color: #fff; }
.work-card { position: relative; overflow: hidden; padding: 0; transition: border-color .2s, transform .25s ease; }
.work-card:has(h3 a):hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); }
.work-card[hidden] { display: none; }
.work-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d131c; border-bottom: 1px solid var(--line); }
.work-visual > img { width: 100%; height: 100%; object-fit: cover; }
.work-visual > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.work-body h3 { margin-top: 12px; font-size: 1.15rem; }
.work-body h3 a { color: inherit; }
.work-body h3 a::after { content: ""; position: absolute; inset: 0; }
.work-body h3 a:hover { text-decoration: none; }
.work-card:has(h3 a):hover h3 { color: var(--cyan); }
.work-body > p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.tag { align-self: flex-start; padding: .15rem .55rem; border-radius: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--cyan); background: var(--cyan-soft); }
.t-ember .tag { color: var(--orange-ink); background: var(--orange-soft); }
.t-mix .tag { color: var(--text); background: rgba(255, 255, 255, .07); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; list-style: none; }
.chips li { padding: .1rem .5rem; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); font-size: .78rem; }
.work-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--cyan); font-size: .9rem; font-weight: 600; }
.work-link .icon { width: 15px; height: 15px; transition: transform .15s ease; }
.work-card:hover .work-link .icon { transform: translateX(3px); }
.work-visual > img { transition: transform .3s ease; }
.work-card:has(h3 a):hover .work-visual > img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .work-link .icon, .work-visual > img { transition: none; } }
.empty-note { padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--dim); text-align: center; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.cta-line p { color: var(--muted); }
.cta-line strong { color: var(--text); font-weight: 600; }

/* Beépített illusztrációk (ha nincs feltöltött kép) – egyszerű vázlat-ábrák */
.mock { position: absolute; inset: 18px 18px -10px; border-radius: 8px; border: 1px solid var(--line-2); background: #111823; overflow: hidden; }
.mock--narrow { right: 30%; }
.mock-bar { display: flex; gap: 5px; align-items: center; height: 22px; padding: 0 9px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: #2b3545; }
.mock-body { display: grid; gap: 8px; padding: 10px; }
.sk { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .09); }
.sk-accent { background: rgba(34, 211, 238, .45); }
.sk-warm { background: rgba(255, 122, 26, .6); }
.sk-block { height: 46px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.sk-hero { height: 52px; border-radius: 6px; background: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(255, 122, 26, .12)); }
.sk-row { display: flex; gap: 8px; align-items: center; }
.sk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-75 { width: 75%; } .grow { flex: 1; }
.mock-app { display: grid; grid-template-columns: 30px 1fr; height: 100%; }
.mock-app aside { display: grid; align-content: start; justify-items: center; gap: 9px; padding-top: 10px; border-right: 1px solid var(--line); }
.mock-app aside i { width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.mock-app aside i:first-child { background: rgba(34, 211, 238, .55); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding: 8px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.bars span { flex: 1; border-radius: 2px 2px 0 0; background: rgba(34, 211, 238, .4); }
.bars span.hot { background: rgba(255, 122, 26, .7); }
.mock-phone { position: absolute; right: 7%; bottom: -12px; width: 22%; height: 78%; border-radius: 12px; border: 1px solid var(--line-2); background: #111823; padding: 12px 7px; display: grid; align-content: start; gap: 6px; }

/* ---------- Vélemények ---------- */
.quote { margin: 0; gap: 18px; }
.quote blockquote { margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { display: grid; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.quote figcaption b { color: #fff; }
.quote figcaption span { color: var(--dim); }
.quote-project a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.quote-project .icon { width: 14px; height: 14px; }

/* ---------- Biztonság és technikai háttér ---------- */
.tech-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .tech-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; } }
.practice-list { display: grid; gap: 22px 28px; list-style: none; }
@media (min-width: 640px) { .practice-list { grid-template-columns: 1fr 1fr; } }
.practice-list li { display: flex; gap: 12px; align-items: flex-start; }
.practice-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }
.practice-list b { display: block; color: #fff; font-weight: 600; }
.practice-list span { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; }
.facts h3 { font-size: 1.05rem; }
.facts .checklist { margin-top: 16px; }
.facts .checklist .icon { color: var(--ok); }
.facts-sub { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts .chips { margin-top: 0; padding-top: 12px; }

/* ---------- Gyakori kérdések ---------- */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 18px 40px 18px 0; color: #fff; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--cyan); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); }

/* ---------- Rólunk + Kapcsolat ---------- */
.about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-text { margin-top: 24px; color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-sign { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.initials { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); color: #fff; font-weight: 700; font-size: .9rem; }
.about-sign b { display: block; color: #fff; }
.about-sign span { color: var(--dim); font-size: .9rem; }
.contact-list { display: grid; gap: 10px; margin-top: 32px; list-style: none; }
.contact-list li, .contact-list a { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact-list a:hover { color: #fff; text-decoration: none; }
.contact-list .icon { color: var(--dim); }

/* Közösségi ikonok – csak a megadott profilok jelennek meg */
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s, transform .2s ease; }
.socials a:hover { color: #fff; border-color: rgba(34, 211, 238, .45); background: var(--cyan-soft); transform: translateY(-2px); text-decoration: none; }
.socials .icon { width: 19px; height: 19px; }
.footer-grid .socials { display: flex; gap: 6px; margin-top: 20px; }
.socials-sm a { width: 32px; height: 32px; border-radius: 8px; }
.socials-sm .icon { width: 16px; height: 16px; }

.form-card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 640px) { .form-card { padding: 36px; } }
.form-card h3 { font-size: 1.4rem; }
.form-card > form > p.lead { margin-top: 6px; color: var(--muted); }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 560px) { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 500; color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.counter { color: var(--dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.input {
  width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #566173; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.input:user-invalid { border-color: var(--danger); }
textarea.input { min-height: 140px; resize: vertical; }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--bg) inset; }
fieldset { margin: 0; padding: 0; border: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .9rem; cursor: pointer; transition: all .15s; user-select: none; }
.topic:hover span { color: #fff; }
.topic input:checked + span { border-color: var(--cyan); color: #fff; background: var(--cyan-soft); }
.topic input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--cyan); flex-shrink: 0; }
.consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.req { color: var(--orange-ink); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: flex; gap: 10px; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fecaca; font-size: .92rem; }
.form-error[hidden] { display: none; }
.form-note { margin-top: 14px; color: var(--dim); font-size: .85rem; text-align: center; }
.form-note a { color: var(--muted); text-decoration: underline; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #160a02; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.form-success[hidden] { display: none; }
.form-success .ok-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: rgba(74, 222, 128, .12); color: var(--ok); }
.form-success .ok-mark .icon { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { max-width: 360px; color: var(--muted); }
.form-success .btn { margin-top: 14px; }

/* ---------- Lábléc ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.75fr 1fr 1fr 1.3fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h2 { margin-bottom: 14px; color: var(--text); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.footer-grid ul { display: grid; gap: 8px; list-style: none; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover, .footer-grid .brand { color: #fff; }
.footer-about { max-width: 300px; margin-top: 14px; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: 9px; min-width: 0; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--dim); }
.footer-contact a:hover .icon { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .875rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal { display: block; margin-top: 4px; font-size: .8rem; }
.footer-bottom a, .linklike { color: var(--dim); }
.linklike { padding: 0; border: 0; background: none; font: inherit; }
.footer-bottom a:hover, .linklike:hover { color: #fff; }

/* =====================================================================
   Jogi oldalak (ÁSZF, Adatkezelési tájékoztató)
   ===================================================================== */
.legal-hero { padding: calc(var(--header-h) + 56px) 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
.legal-hero p { max-width: 680px; margin-top: 14px; color: var(--muted); font-size: 1.075rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 20px; color: var(--dim); font-size: .9rem; }
.legal-layout { display: grid; gap: 32px; padding: 40px 0 96px; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }
.toc { align-self: start; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h2 { margin-bottom: 8px; padding: 0 8px; color: var(--dim); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.toc ol { display: grid; gap: 2px; list-style: none; }
@media (min-width: 640px) and (max-width: 1023px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc a { display: flex; gap: 8px; padding: .35rem .5rem; border-radius: 6px; color: var(--muted); }
.toc a span { min-width: 1.6em; color: var(--dim); font-variant-numeric: tabular-nums; }
.toc a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .04); }
.toc a.active { color: #fff; background: var(--cyan-soft); }
.toc a.active span { color: var(--cyan); }

.legal { min-width: 0; max-width: 780px; color: var(--muted); line-height: 1.75; overflow-wrap: break-word; }
.legal h2 { display: flex; align-items: baseline; gap: .6rem; margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line); font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h2 .n { color: var(--dim); font-size: .85em; font-weight: 600; font-variant-numeric: tabular-nums; }
.legal h3 { margin-top: 1.75rem; color: var(--text); font-size: 1.05rem; }
.legal p { margin-top: .9rem; }
.legal .pn { margin-right: .35rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.legal ul, .legal ol { margin-top: .75rem; padding-left: 1.3rem; }
.legal ul li { list-style: disc; margin-top: .35rem; }
.legal ol li { list-style: lower-alpha; margin-top: .35rem; }
.legal li::marker { color: var(--dim); }
.legal strong, .legal b { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .note { margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--surface); }
.legal .note-ember { border-left-color: var(--orange); }
.legal .data { width: 100%; margin-top: 1.1rem; border-collapse: collapse; font-size: .95rem; border: 1px solid var(--line); }
.legal .data th, .legal .data td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.legal .data tr:first-child th, .legal .data tr:first-child td { border-top: 0; }
.legal .data th { width: 32%; color: var(--dim); font-weight: 500; }
.legal .data td { color: var(--text); overflow-wrap: anywhere; }
.legal .data.cols th { width: auto; background: var(--surface); color: var(--dim); font-size: .85rem; }
.legal .data.cols td { color: var(--muted); }
.legal .data code { font-family: var(--mono); font-size: .88em; color: var(--text); }
.legal .data.cols td { overflow-wrap: normal; }
.legal .data.cols code { white-space: nowrap; }
@media (max-width: 640px) {
  .legal .data:not(.cols), .legal .data:not(.cols) tbody, .legal .data:not(.cols) tr, .legal .data:not(.cols) th, .legal .data:not(.cols) td { display: block; width: auto; }
  .legal .data:not(.cols) th { padding: .7rem .9rem 0; font-size: .85rem; }
  .legal .data:not(.cols) td { padding: .15rem .9rem .7rem; border-top: 0; }
  .legal .scroll-x { overflow-x: auto; margin-top: 1.1rem; }
  .legal .scroll-x .data { margin-top: 0; min-width: 520px; }
}
.legal .rights { display: grid; gap: 12px; margin-top: 1.1rem; }
@media (min-width: 720px) { .legal .rights { grid-template-columns: 1fr 1fr; } }
.legal .rights > div { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.legal .rights b { display: block; }
.legal .rights p { margin-top: .3rem; font-size: .92rem; line-height: 1.6; }
.legal .form-sample { margin-top: 1.1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); font-size: .95rem; }
.legal .form-sample p { margin-top: .6rem; overflow-wrap: anywhere; }
.legal .form-sample p:first-child { margin-top: 0; }
mark.fill { padding: 0 .25em; border-radius: 4px; color: var(--orange-ink); background: var(--orange-soft); border-bottom: 1px dashed var(--orange); }

/* ---------- Visszafogott animációk ---------- */
/* Nyitó szöveg: egyszeri, rövid beúszás betöltéskor */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-actions { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-lead { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* Görgetéskor megjelenő tartalom – a .reveal osztályt a site.js teszi fel, csak a még nem látható elemekre */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }

/* ---------- Mozgás csökkentése, nyomtatás ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-nav, .site-footer, .toc, .no-print, #ck-banner, #ck-modal { display: none !important; }
  .legal-hero { padding-top: 0; border: 0; }
  .legal-hero h1, .legal h2, .legal h3, .legal strong, .legal b, .legal td, .legal th, .legal, .legal p, .legal li { color: #000 !important; }
  .legal .note, .legal .rights > div, .legal .data, .legal .data.cols th { background: none !important; border-color: #999 !important; }
  .legal a { color: #000; }
  mark.fill { color: #000; background: #ffe7d1; }
  .legal-layout { display: block; padding: 0; }
  .legal h2 { break-after: avoid; }
}
