/* ==========================================================================
   [Cégnév] – tetőfedő landing oldal
   Színek: elsődleges piros #C9252C, kiegészítők #FFF4F4 és #F5F5F5
   ========================================================================== */

/* Manrope (SIL OFL 1.1, lásd assets/fonts/OFL-Manrope.txt) – saját tárhelyről,
   így nem kerül adat külső betűkészlet-szolgáltatóhoz. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #c9252c;
  --red-hover: #a91d23;
  --red-tint: #fff4f4;
  --red-line: rgba(201, 37, 44, 0.22);
  --gray-bg: #f5f5f5;
  --text: #26262a;
  --text-muted: #5b5b62;
  --border: #e4e4e7;
  --border-strong: #cfcfd4;
  --white: #fff;
  --navy: #0f1a33;      /* a logó sötétkékjéből */
  --navy-deep: #0a1226;
  --footer-bg: var(--navy);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 24, 0.06);
  --shadow: 0 1px 2px rgba(20, 20, 24, 0.04), 0 8px 24px rgba(20, 20, 24, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 20, 24, 0.04), 0 18px 48px rgba(20, 20, 24, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 120px);
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--text); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.text-accent { color: var(--red); }

/* Kiemelő „marker” a hero fő üzenete alatt; betöltéskor egyszer végighúzódik. */
.hl {
  background-image: linear-gradient(transparent 62%, rgba(201, 37, 44, 0.12) 62%, rgba(201, 37, 44, 0.12) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: hl-draw 1s .45s var(--ease) both; }
}
@keyframes hl-draw { from { background-size: 0% 100%; } }

.section { padding-block: var(--section-y); }
.section-tint { background: var(--gray-bg); }
.section-divided { border-top: 1px solid var(--border); }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-muted); font-size: 1.125rem; }
.section-head-left { text-align: left; margin-inline: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--red); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow-line {
  /* kis tetőoromzat a logó tetővonalából */
  width: 22px; height: 12px; background: var(--red);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 80% 100%, 50% 34%, 20% 100%);
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 16px rgba(201, 37, 44, 0.22); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); box-shadow: 0 10px 22px rgba(201, 37, 44, 0.28); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border-strong); }
.btn-secondary .icon { color: var(--red); }
.btn-secondary:hover { color: var(--text); border-color: var(--text); background: var(--white); transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn .icon { transition: transform .2s var(--ease); }
.btn-primary:hover .icon { transform: translateX(2px); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost .icon { color: var(--white); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 1. Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img { width: auto; height: 56px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--text); font-weight: 600; font-size: 0.975rem; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 6px;
  color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--red); }
.header-phone:hover { color: var(--red); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--white); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .header-phone-text { display: none; }
  .header-phone {
    justify-content: center; width: 44px; padding: 0;
    border: 1.5px solid var(--border); border-radius: 12px;
  }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--border); }
  .main-nav a { padding: 14px 0; font-size: 1.0625rem; }
  .main-nav a::after { display: none; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .logo-img { height: 42px; }
  .header-actions { gap: 4px; }
  .header-phone, .nav-toggle { width: 40px; height: 40px; min-height: 40px; border-color: transparent; }
  .header-actions .btn-sm { min-height: 40px; padding-inline: 12px; font-size: 0.8125rem; }
}

/* ---------- 2. Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { position: relative; }
.hero-deco {
  position: absolute; top: -40px; right: -120px; width: min(62vw, 900px); height: 520px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 520' fill='none' stroke='%23c9252c' stroke-linejoin='round'%3E%3Cpath d='M40 420 330 150l290 270' stroke-opacity='.10' stroke-width='14'/%3E%3Cpath d='M380 420 610 205l230 215' stroke-opacity='.07' stroke-width='12'/%3E%3Cpath d='M120 500 330 300l210 200' stroke-opacity='.05' stroke-width='10'/%3E%3C/svg%3E") no-repeat right top / contain;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 54ch; margin-top: 24px; color: var(--text-muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--border); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 0.975rem; }
.hero-points .icon { color: var(--red); width: 1.1em; height: 1.1em; stroke-width: 2.6; }

.hero-media { position: relative; }
.hero-badge {
  position: absolute; left: -28px; top: 36px; z-index: 1;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px);
  padding: 14px 20px 14px 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-badge > div { min-width: 0; }
a.hero-badge { color: var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.hero-badge:hover { color: var(--text); transform: translateY(-2px); }
a.hero-badge .hero-badge-value { color: var(--red); }
.hero-badge-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-badge-value { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: badge-in .8s .5s var(--ease) both; }
}
@keyframes badge-in { from { transform: translateY(14px); } }
.hero-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1.5px solid var(--red-line); border-radius: var(--radius-lg); pointer-events: none;
}
.hero-media img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--gray-bg);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-media::before { inset: 14px -10px -14px 14px; }
  .hero-badge { left: 12px; top: 12px; padding: 10px 14px 10px 10px; }
  .hero-deco { right: -200px; width: 120vw; height: 380px; opacity: .8; }
  .hero-media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- Űrlapok (3. és 10.) ---------- */
.section-form-1 { padding-top: 0; }
.section-form-1 { background: linear-gradient(var(--white) 0 50%, var(--gray-bg) 50% 100%); padding-bottom: clamp(40px, 5vw, 64px); }
.section-form-2 {
  position: relative; overflow: hidden; background: var(--gray-bg);
  padding-bottom: calc(var(--section-y) + clamp(24px, 4vw, 56px));
}
.section-form-2 > .container { position: relative; }
.section-form-2-deco {
  /* halvány tetőoromzatok a kártya mögött, ugyanaz a motívum, mint a heróban */
  position: absolute; inset: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 520' fill='none' stroke='%23c9252c' stroke-linejoin='round'%3E%3Cpath d='M40 420 330 150l290 270' stroke-opacity='.08' stroke-width='14'/%3E%3Cpath d='M380 420 610 205l230 215' stroke-opacity='.06' stroke-width='12'/%3E%3C/svg%3E") no-repeat left -160px bottom 40px / min(70vw, 900px) auto,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 520' fill='none' stroke='%230f1a33' stroke-linejoin='round'%3E%3Cpath d='M120 500 330 300l210 200' stroke-opacity='.05' stroke-width='10'/%3E%3Cpath d='M40 420 330 150l290 270' stroke-opacity='.04' stroke-width='14'/%3E%3C/svg%3E") no-repeat right -200px top 20px / min(60vw, 760px) auto;
}

.form-card {
  position: relative; padding: clamp(24px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.form-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red) 30%, rgba(201, 37, 44, 0.25));
}
.form-card.is-highlighted { box-shadow: 0 0 0 4px rgba(201, 37, 44, 0.18), var(--shadow-lg); }

.form-grid { display: grid; gap: 4px 20px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; min-width: 0; }
.field label { margin-bottom: 8px; font-weight: 700; font-size: 0.9375rem; line-height: 1.35; }
.optional { color: var(--text-muted); font-weight: 500; }

.field input {
  width: 100%; min-height: 54px; padding: 13px 16px;
  border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--white);
  font-size: 1rem; /* 16px – iOS-en nem nagyít bele */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: #717178; }
.field input:hover { border-color: #a9a9b0; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 37, 44, 0.14); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fffafa; }

.field-error { min-height: 1.5em; padding-top: 6px; color: #b3171e; font-size: 0.875rem; font-weight: 600; line-height: 1.35; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy { margin-top: 18px; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; }

/* ---------- Kérdőív (mindkét ajánlatkérő űrlap) ---------- */
.quiz-card { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 64px); }
.quiz-aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); text-wrap: balance; }
.quiz-aside > p { margin-top: 12px; color: var(--text-muted); }
.quiz-aside .quiz-aside-note { margin-top: 8px; color: var(--text); font-weight: 600; font-size: 0.9375rem; }

.quiz-steps { display: grid; gap: 2px; margin-top: 28px !important; padding-top: 24px !important; border-top: 1px solid var(--border); }
.quiz-steps-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 8px; margin-left: -8px;
  border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer;
  color: var(--text-muted); font-weight: 600; font-size: 0.9375rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.quiz-steps-item:hover:not(:disabled) { background: var(--gray-bg); color: var(--text); }
.quiz-steps-item:disabled { cursor: default; opacity: 0.55; }
.quiz-steps-num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); font-size: 0.8125rem; font-weight: 800; color: var(--text-muted);
  transition: all .25s var(--ease);
}
.quiz-steps-item[aria-current="step"] { color: var(--text); }
.quiz-steps-item[aria-current="step"] .quiz-steps-num { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 4px rgba(201, 37, 44, 0.12); }
.quiz-steps-item.is-done .quiz-steps-num { border-color: var(--red); background: var(--red); color: transparent; position: relative; }
.quiz-steps-item.is-done .quiz-steps-num::after {
  content: ""; position: absolute; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg);
}

.quiz-main { min-width: 0; }
.quiz-progress { margin-bottom: 22px; }
.quiz-progress-text { margin-bottom: 10px; color: var(--text-muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.quiz-progress-bar { height: 6px; border-radius: 6px; background: var(--gray-bg); overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width .45s var(--ease); }

.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-q { display: block; width: 100%; margin-bottom: 20px; padding: 0; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.quiz-q:focus { outline: none; }
.quiz-q-num { color: var(--red); }

.quiz-options { display: grid; gap: 12px; }
.quiz-options-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quiz-options-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quiz-options-3 { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .quiz-options-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quiz-options-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .quiz-options-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-options-5 .quiz-option:last-child { grid-column: 1 / -1; }
  .quiz-options-5 .quiz-option:last-child .quiz-option-box { flex-direction: row; min-height: 0; padding-block: 12px; }
}

.quiz-option { position: relative; display: block; cursor: pointer; }
.quiz-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.quiz-option-box {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  height: 100%; min-height: 128px; padding: 18px 10px; text-align: center;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.quiz-option-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--red-tint); color: var(--red);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.quiz-option-icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.quiz-option-title { font-weight: 700; line-height: 1.3; }
.quiz-option-sub { margin-top: -6px; color: var(--text-muted); font-size: 0.875rem; font-weight: 600; }
.quiz-option-box::after {
  /* pipa a kiválasztott kártya sarkában */
  content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  transform: scale(0); transition: transform .25s var(--ease);
}
@media (hover: hover) {
  .quiz-option:hover .quiz-option-box { border-color: var(--red-line); box-shadow: var(--shadow); transform: translateY(-2px); }
}
.quiz-option input:checked + .quiz-option-box { border-color: var(--red); background: var(--red-tint); box-shadow: 0 0 0 3px rgba(201, 37, 44, 0.10); }
.quiz-option input:checked + .quiz-option-box .quiz-option-icon { background: var(--red); color: var(--white); }
.quiz-option input:checked + .quiz-option-box::after { transform: scale(1); }
.quiz-option input:focus-visible + .quiz-option-box { outline: 3px solid var(--red); outline-offset: 3px; }
.quiz-step[aria-invalid="true"] .quiz-option-box { border-color: var(--red-line); }

/* Hosszabb szövegű lehetőségek (kezdés): vízszintes sor */
.quiz-options-3 .quiz-option-box { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 14px 44px 14px 14px; text-align: left; }
.quiz-options-3 .quiz-option-box::after { top: 50%; margin-top: -10px; right: 14px; }
.icon-size rect { fill: none; }
.icon-size rect:last-child { fill: currentColor; fill-opacity: .18; }

.quiz-other { margin-top: 16px; }
.quiz-options + .quiz-other + .field-error, .quiz-options + .field-error { padding-top: 10px; }

.quiz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.quiz-nav .quiz-next, .quiz-nav .quiz-submit { margin-left: auto; }
@media (max-width: 520px) {
  .quiz-nav .btn { flex: 1 1 auto; }
  .quiz-nav .quiz-submit { width: 100%; }
}

/* JavaScript nélkül minden kérdés egymás alatt látszik, egy beküldés gombbal. */
.quiz:not(.quiz-ready) .quiz-progress,
.quiz:not(.quiz-ready) .quiz-back,
.quiz:not(.quiz-ready) .quiz-next { display: none; }
.quiz:not(.quiz-ready) .quiz-step + .quiz-step { margin-top: 32px; }
.quiz-fallback { padding: 24px; border-radius: var(--radius); background: var(--gray-bg); }
@media (prefers-reduced-motion: no-preference) {
  .quiz-step.is-entering { animation: step-in .4s var(--ease); }
}
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }

@media (max-width: 900px) {
  .quiz-card { grid-template-columns: 1fr; gap: 24px; }
  .quiz-steps { display: none; }
}
@media (max-width: 600px) {
  .quiz-option-box { min-height: 112px; padding: 16px 8px; }
}

.btn-spinner { display: none; animation: spin 0.9s linear infinite; }
.lead-form.is-sending .btn-spinner { display: block; }
.lead-form.is-sending button[type="submit"] { opacity: 0.85; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--red-tint); border: 1px solid var(--red-line); color: #8f1218; font-weight: 600; font-size: 0.9375rem;
}
.form-status a { color: inherit; font-weight: 800; }

@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------- Kártyák, ikonjelvények ---------- */
.card {
  position: relative; padding: 32px 28px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--red-tint); color: var(--red); border: 1px solid var(--red-line);
}
.icon-badge .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.icon-badge-sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge-sm .icon { width: 21px; height: 21px; }

/* ---------- 4. Szolgáltatások ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.service-card h3 { margin-top: 22px; }
.service-card { display: flex; flex-direction: column; }
.service-card p { margin-top: 10px; color: var(--text-muted); font-size: 1rem; }
.service-card .icon-badge { transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.service-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
}
.service-link .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.service-link:hover .icon { transform: translateX(3px); }
.service-card::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:not(.service-card-cta):hover .icon-badge { background: var(--red); color: var(--white); transform: rotate(-6deg); }
}
.service-card-cta { display: flex; flex-direction: column; background: var(--red-tint); border: 1.5px dashed var(--red-line); box-shadow: none; }
.service-card-cta h3 { margin-top: 0; }
.service-card-cta .link-arrow { margin-top: auto; padding-top: 20px; }
.service-card-cta::after { display: none; }
@media (max-width: 640px) {
  .card { padding: 24px 22px; }
  .service-card:not(.service-card-cta) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .service-card:not(.service-card-cta) h3 { margin-top: 0; }
  .service-card:not(.service-card-cta) p { grid-column: 1 / -1; margin-top: 14px; }
  .service-card .service-link { grid-column: 1 / -1; padding-top: 14px; }
  .service-card .icon-badge { width: 46px; height: 46px; }
}

/* ---------- 5. Rólunk ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 1.5px solid var(--red-line); border-radius: var(--radius-lg); pointer-events: none;
}
.about-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-content > p:not(.eyebrow) { margin-top: 20px; color: var(--text-muted); font-size: 1.125rem; }
.approach-list { margin-top: 36px !important; display: grid; gap: 26px; }
.approach-item { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.approach-item:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: -22px; width: 1.5px;
  background: linear-gradient(var(--red-line), transparent);
}
.approach-item p { margin-top: 6px; color: var(--text-muted); font-size: 1rem; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px !important; padding-top: 28px !important; border-top: 1px solid var(--border); }
.facts[hidden] { display: none; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { color: var(--red); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.facts span { color: var(--text-muted); font-size: 0.9375rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-media img { aspect-ratio: 4 / 3.6; }
  .about-media::before { inset: -12px 12px 12px -12px; }
}
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* ---------- 6. Referenciák ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin-top: 40px !important; }
@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ref-grid { gap: 18px 12px; } }
.ref-img {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 0; border-radius: var(--radius); background: var(--gray-bg);
}
.ref-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.ref-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 26, 51, 0.35));
  opacity: 0; transition: opacity .35s var(--ease);
}
.ref-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--red); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ref-zoom .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .ref-item:hover .ref-img img { transform: scale(1.04); }
  .ref-item:hover .ref-img::after, .ref-item:hover .ref-zoom { opacity: 1; transform: none; }
}
.ref-img:focus-visible .ref-zoom { opacity: 1; transform: none; }
/* fekvő képek: a lényeg a kép jobb oldalán van */
.ref-item:nth-child(9) .ref-img img { object-position: 70% center; }
@media (max-width: 560px) {
  .ref-caption { padding-top: 10px; }
  .ref-type { font-size: 0.9375rem; line-height: 1.3; }
  .ref-place { font-size: 0.8125rem; }
}

/* Képnagyító */
.lightbox {
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 18, 38, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 64px 16px 24px; }
.lightbox-img { max-width: min(100%, 1200px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }
.lightbox-caption { font-weight: 700; text-align: center; }
.lightbox-caption span { color: #a9b0c2; font-weight: 500; }
.lightbox-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08); color: var(--white); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-figure { padding-bottom: 80px; }
  .lightbox-img { max-height: calc(100dvh - 210px); }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-img { animation: pop-in .35s var(--ease) both; }
}

.ref-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 14px; }
.ref-type { font-weight: 700; }
.ref-place { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.9375rem; }
.ref-place .icon { width: 1em; height: 1em; color: var(--red); }

.before-after .ba-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4; max-width: 100%; background: var(--gray-bg); box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 16px; }
.ba-tag-after { right: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--red); box-shadow: var(--shadow);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba-frame:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid var(--red); outline-offset: 3px; }
/* álló képpár, mellette a leírás */
.before-after { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ba-text .eyebrow { margin-bottom: 12px; }
.ba-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.ba-text > p:not(.eyebrow) { margin-top: 14px; max-width: 46ch; color: var(--text-muted); }
.ba-meta { display: grid; gap: 0; margin: 24px 0 26px; border-top: 1px solid var(--border); }
.ba-meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ba-meta dt { color: var(--text-muted); font-size: 0.9375rem; }
.ba-meta dd { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; text-align: right; }
.ba-meta dd .icon { width: 1em; height: 1em; color: var(--red); }
@media (max-width: 900px) {
  .before-after { grid-template-columns: 1fr; }
  .before-after .ba-frame { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* ---------- 7. Az együttműködés menete ---------- */
#menet { position: relative; }
#menet::before {
  /* a szürke sáv teteje enyhe tetőoromzat */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(24px, 4vw, 56px);
  background: var(--gray-bg); clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step {
  position: relative; padding: 28px 24px 30px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: block; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  transition: color .3s var(--ease);
}
@media (hover: hover) {
  .step { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
  .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .step:hover .step-num { color: var(--red); }
}
.step::before {
  content: ""; position: absolute; top: 52px; left: calc(24px + 4rem); right: -21px; height: 0;
  border-top: 1.5px dashed var(--red-line);
}
.step:last-child::before { display: none; }
.step p { margin-top: 10px; color: var(--text-muted); font-size: 1rem; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 22px 20px; }
  .step-num { grid-row: span 2; margin: 0; font-size: 2rem; }
  .step p { margin-top: 2px; }
}

/* ---------- 8. GYIK ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { position: relative; border-bottom: 1px solid var(--border); }
.faq-item::before {
  content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--red); transform: scaleY(0); transition: transform .3s var(--ease);
}
.faq-item[open]::before { transform: scaleY(1); }
@media (max-width: 600px) { .faq-item::before { left: -10px; } }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.125rem; line-height: 1.4;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: var(--red-tint); color: var(--red);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--red); color: var(--white); }
.faq-body { padding: 0 52px 24px 4px; color: var(--text-muted); }
.faq-body p + p { margin-top: 12px; }
.faq-body strong { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-body { animation: faq-in .3s var(--ease); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- 9. Kapcsolat ---------- */
.section-contact { padding-bottom: clamp(48px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin-inline: auto; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; max-width: 640px; } }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-card > div { min-width: 0; }
.contact-label { color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { display: block; margin-top: 2px; color: var(--text); font-weight: 800; font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
a.contact-value { color: var(--red); }
/* Az e-mail-cím mindig egy sorban marad */
.contact-value-email { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 560px) {
  .contact-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; }
  .contact-value-email { font-size: min(1.125rem, 4.3vw); }
}
.contact-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.contact-card:has(a[href^="tel:"]) { border-color: var(--red-line); background: var(--red-tint); }
@media (hover: hover) { .contact-card:has(a):hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
a.contact-value:hover { text-decoration: underline; color: var(--red-hover); }

/* ---------- 11. Lábléc ---------- */
.site-footer { position: relative; padding-top: clamp(48px, 6vw, 72px); background: var(--footer-bg); color: #c3c8d6; font-size: 0.9375rem; }
main + .site-footer::before {
  /* a lábléc teteje tetőoromzat: az oldal egy házzal zárul */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(24px, 4vw, 56px);
  background: var(--footer-bg); clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding-bottom: clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta > div:first-child { min-width: 0; max-width: 560px; }
.footer-cta-title { color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.footer-cta-text { margin-top: 10px; color: #a9b0c2; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .footer-cta-actions, .footer-cta-actions .btn { width: 100%; } }
.site-footer .footer-cta .btn-primary, .site-footer .footer-cta .btn-primary:hover { color: var(--white); text-decoration: none; }
.site-footer .footer-cta .btn-ghost:hover { text-decoration: none; }

.footer-wordmark { overflow: hidden; margin-top: clamp(32px, 5vw, 64px); padding-inline: var(--gutter); pointer-events: none; user-select: none; }
.footer-wordmark svg { display: block; width: 100%; max-width: 1400px; height: auto; margin: 0 auto -0.8%; }
.footer-wordmark .footer-wordmark-stacked { display: none; }
.footer-wordmark .footer-wordmark-stacked text { fill: url(#wordmark-fade-stacked); }
@media (max-width: 600px) {
  .footer-wordmark .footer-wordmark-wide { display: none; }
  .footer-wordmark .footer-wordmark-stacked { display: block; margin-bottom: -1.5%; }
}
.footer-wordmark text {
  font-family: var(--font); font-weight: 800; font-size: 92px; letter-spacing: -0.02em;
  fill: url(#wordmark-fade);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
/* A láblécben a logó világos változata áll (logo-light.png: a sötétkék részek fehérek), háttér nélkül. */
.logo-footer .logo-img { height: 72px; }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-title { margin-bottom: 14px; color: var(--white); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-list li + li { margin-top: 8px; }
.site-footer a { color: #ececf0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { position: relative; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8f97ab; font-size: 0.875rem; }

/* ---------- Megjelenési animációk ---------- */
/* A tartalom JS nélkül is látható: a .js osztályt egy inline script teszi ki, és ha a main.js
   valamiért nem fut le, a tartalék animáció 2,5 mp után mindent megjelenít. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); animation: reveal-fallback 0s 2.5s forwards; }
  .js.reveal-ready .reveal { animation: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

  .hero-in { animation: hero-in .8s var(--ease) both; }
  .hero-in:nth-child(2) { animation-delay: .06s; }
  .hero-in:nth-child(3) { animation-delay: .12s; }
  .hero-in:nth-child(4) { animation-delay: .18s; }
  .hero-in:nth-child(5) { animation-delay: .24s; }
  .hero-media img { animation: hero-img 1.2s var(--ease) both; }
}
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
/* Csak transform – az átlátszóság nem változik, így a hero nem késlelteti a legnagyobb tartalmi elem (LCP) megjelenését. */
@keyframes hero-in { from { transform: translateY(14px); } }
@keyframes hero-img { from { transform: scale(1.035); } }

/* ---------- Nyomtatás ---------- */
@media print {
  .site-header, .nav-toggle, .lead-form, .before-after { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Jogi aloldalak ---------- */
.legal-header { border-bottom: 1px solid var(--border); }
.legal-header .header-inner { justify-content: space-between; }
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { margin-top: 44px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.legal p, .legal ul, .legal dl { margin-top: 14px; color: var(--text-muted); }
.legal li + li { margin-top: 6px; }
.legal strong, .legal dt { color: var(--text); }
.legal dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.legal-note {
  margin-top: 24px !important; padding: 16px 18px; border-radius: 12px;
  background: var(--red-tint); border: 1px solid var(--red-line); color: #8f1218 !important; font-weight: 600; font-size: 0.9375rem;
}
.legal-updated { font-size: 0.9375rem; }
@media (max-width: 359px) {
  .site-header .logo-img { height: 36px; }
}

/* ---------- Köszönő aloldal ---------- */
.thanks { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) calc(clamp(56px, 8vw, 104px) + clamp(24px, 4vw, 56px)); background: var(--gray-bg); }
.thanks > .container { position: relative; }
.thanks-card {
  position: relative; max-width: 760px; margin-inline: auto; padding: clamp(28px, 5vw, 56px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.thanks-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red) 30%, rgba(201, 37, 44, 0.25));
}
.thanks-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 0 0 8px rgba(201, 37, 44, 0.12);
}
.thanks-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.thanks h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); text-wrap: balance; }
.thanks-lead { margin-top: 14px; color: var(--text-muted); font-size: 1.125rem; max-width: 52ch; }
.thanks-steps { display: grid; gap: 18px; margin-top: 32px !important; padding-top: 28px !important; border-top: 1px solid var(--border); counter-reset: thanks; }
.thanks-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.thanks-steps li::before {
  counter-increment: thanks; content: counter(thanks);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red); font-weight: 800; font-size: 0.875rem;
}
.thanks-steps strong { display: block; color: var(--text); }
.thanks-steps span { color: var(--text-muted); font-size: 0.975rem; }
.thanks-call {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 32px; padding: 20px 22px; border-radius: var(--radius); background: var(--red-tint); border: 1px solid var(--red-line);
}
.thanks-call p { font-weight: 700; }
.thanks-call p span { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.9375rem; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.thanks-demo { margin-top: 20px; padding: 10px 14px; border-radius: 10px; background: var(--gray-bg); border: 1px dashed var(--border-strong); font-size: 0.875rem; }
@media (max-width: 520px) { .thanks-call .btn, .thanks-actions .btn { width: 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .thanks-card { animation: pop-in .6s var(--ease) both; }
  .thanks-icon { animation: pop-in .6s .15s var(--ease) both; }
}

/* ---------- Süti-sáv ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: 560px; margin-left: auto;
  background: var(--white); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 26, 51, 0.22); overflow: hidden;
}
.cookie-banner::before { content: ""; display: block; height: 3px; background: var(--red); }
.cookie-inner { padding: 20px 22px 18px; }
.cookie-title { font-weight: 800; font-size: 1.0625rem; }
.cookie-text { margin-top: 6px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.cookie-settings { display: grid; gap: 10px; margin-top: 14px; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.cookie-option input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--red); }
.cookie-option input:disabled { cursor: not-allowed; }
.cookie-option strong { display: block; font-size: 0.9375rem; }
.cookie-option small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { min-height: 44px; }
@media (max-width: 520px) {
  .cookie-banner { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .cookie-inner { padding: 16px; }
  /* Elutasítás és elfogadás egyforma méretben, egymás mellett; a beállítások alattuk */
  .cookie-actions .btn { flex: 1 1 0; }
  .cookie-actions [data-cookie="settings"], .cookie-actions [data-cookie="save"] { flex-basis: 100%; order: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not([hidden]) { animation: cookie-in .45s var(--ease) both; }
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
@media print { .cookie-banner { display: none !important; } }

/* Gombként működő, linknek látszó elem (pl. „Süti-beállítások” a láblécben) */
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.site-footer .link-btn { color: #ececf0; }
.site-footer .link-btn:hover { color: var(--white); text-decoration: underline; }

/* Adatvédelmi jelölőnégyzet a kérdőív utolsó lépésében */
.field-consent { margin-top: 6px; }
.field .consent-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 0; cursor: pointer; font-weight: 500; font-size: 0.9375rem; line-height: 1.5; }
.field .consent-check input {
  appearance: auto; -webkit-appearance: checkbox; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; flex-shrink: 0;
  border: 0; border-radius: 4px; box-shadow: none; background: none; accent-color: var(--red); cursor: pointer;
}
.field-consent [aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
