/* =====================================================================
   Kerítéstelepítő landing · v2 — HP-erős vizuális nyelv, saját arculat
   F0: design tokenek + alapréteg + megosztott komponensek
   Fontok: Schibsted Grotesk (display) · Newsreader (serif italic) · Figtree (body)
   ===================================================================== */

:root {
  /* ---- Brand (lapos, egységes) ---- */
  --brand:       #368E09;
  --brand-hover: #2C7307;
  --brand-soft:  #E6F1E0;
  --brand-light: #7FC64B;   /* világoszöld kiemelés sötét panelen */

  /* ---- Sötét panelek ---- */
  --panel:      #0F2A1C;
  --panel-2:    #0A1F15;
  --panel-grad: linear-gradient(155deg, #12331F 0%, #0A1F15 100%);

  /* ---- Világos felületek ---- */
  --cream:   #F6F7EF;
  --cream-2: #EEF0E4;
  --card:    #FFFFFF;

  /* ---- Szöveg / vonal ---- */
  --ink:     #17251C;
  --ink-2:   #4C5A50;
  --ink-3:   #7C8880;
  --line:    #E1E5DA;
  --on-dark:     rgba(255,255,255,.82);  /* törzsszöveg sötét panelen */
  --on-dark-dim: rgba(255,255,255,.56);  /* halvány címke sötét panelen */

  /* ---- Tipográfia ---- */
  --ff-display: "Schibsted Grotesk", system-ui, sans-serif;
  --ff-serif:   "Newsreader", Georgia, serif;
  --ff-body:    "Figtree", system-ui, sans-serif;

  /* ---- Forma ---- */
  --r-card:  16px;
  --r-panel: 24px;
  --pill:    160px;

  /* ---- Térköz ---- */
  --pad-y: clamp(80px, 9vw, 160px);
  --pad-x: clamp(20px, 4vw, 40px);
  --container: 1360px;
  --gap: clamp(16px, 2vw, 28px);
  --pad-card: clamp(24px, 2.4vw, 32px);   /* egységes kártya-belső */

  /* ---- Árnyék ---- */
  --sh-card: 0 2px 4px rgba(15,42,28,.04), 0 12px 32px -12px rgba(15,42,28,.14);
  --sh-panel: 0 30px 80px -28px rgba(10,31,21,.45);
  --sh-float: 0 40px 90px -30px rgba(10,31,21,.35);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* clip (nem hidden): levágja a vízszintes túllógást, de NEM töri a position:sticky-t */
body {
  font-family: var(--ff-body);
  font-size: 16px; font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* iOS Safari 16px alatti mezőnél fókuszkor automatikusan ránagyít — ezt megelőzzük */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="password"], input[type="date"], textarea, select { font-size: 16px; }
/* dupla-koppintásos nagyítás kikapcsolása az egész oldalon (a pinch/húzásos nagyítás MEGMARAD) */
html { touch-action: manipulation; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin-inline: auto; width: 100%; }
.section { padding: var(--pad-y) var(--pad-x); }
.section-tight { padding: clamp(48px, 6vw, 96px) var(--pad-x); }

.section-head {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .kicker { margin-bottom: 14px; }
.section-head .lead { max-width: 60ch; }
/* carousel fejléc: cím balra, nyílgombok jobbra (nem stackel) */
.section-head.carousel-head { flex-direction: column; align-items: stretch; gap: 16px; }
.carousel-head .ch-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.carousel-head .ch-bottom .lead { margin: 0; max-width: 62ch; }
.carousel-head .ch-bottom .rating-line { margin: 0; }
/* a nyilak magasabbak a sornál: negatív margóval nem nyújtják a sort,
   így az alcím 16px-re marad a címtől, a nyilak mégis a sor közepére igazodnak */
.carousel-head .ch-bottom .carousel-nav { margin-block: -8.5px; margin-left: auto; }
@media (max-width: 600px) {
  .carousel-head .ch-bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ---------- TIPOGRÁFIA ---------- */
.kicker {
  font-family: var(--ff-body);
  font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--brand);
}
h1, .h1 { font-family: var(--ff-display); font-size: clamp(32px, 4.6vw, 64px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--ff-display); font-size: clamp(31px, 4vw, 53px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.h2-xl { font-size: clamp(40px, 5.6vw, 72px); }
h3, .h3 { font-family: var(--ff-display); font-size: clamp(28px, 3.6vw, 56px); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h4, .h4 { font-family: var(--ff-display); font-size: clamp(26px, 2.6vw, 40px); font-weight: 400; line-height: 1.15; }
.serif-em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; }
/* világos szekció-fejlécek kiemelt szava egységesen brand-zöld */
.section-head .serif-em { color: var(--brand); }
.serif-grad {
  font-family: var(--ff-serif); font-style: italic; font-weight: 400;
  color: var(--brand);
}
.lead { font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* mobilon a szekció-címek 1.5px-el, az alcímek 2px-el kisebbek */
@media (max-width: 767px) {
  .section-head h2, .section-head .h2,
  .carousel-head h2, .carousel-head .h2,
  .faq-head h2, .faq2-intro h2 { font-size: 29.5px; }
  .section-head .lead, .carousel-head .lead, .faq-head .lead { font-size: 16px; }
}
p { color: var(--ink-2); }
.quote { font-size: 22px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.price { font-size: 18px; font-weight: 600; color: var(--brand); }

/* ---------- GOMBOK (egységes: 48px magas, 15px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: var(--pill);
  font-family: var(--ff-body); font-weight: 600; font-size: 15px; line-height: 1;
  text-transform: uppercase; letter-spacing: .02em;
  transition: all .18s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 13px; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--panel); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--sh-card); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- BADGE PILL (HP jel, blur) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--pill);
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
.badge-ink {
  background: rgba(15,42,28,.06); border-color: var(--line);
  color: var(--brand); backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* ikon akcent-gradienssel */
.ic-accent { fill: var(--brand); }
.ic-brand { fill: var(--brand); }

/* placeholder kép */
.ph-img {
  background:
    linear-gradient(155deg, rgba(15,42,28,.06), rgba(15,42,28,.14)),
    repeating-linear-gradient(45deg, #e6e9df 0 14px, #edefE6 14px 28px);
  color: var(--ink-3);
  display: grid; place-items: center;
  font-family: var(--ff-body); font-size: 13px; font-weight: 600; text-align: center;
  padding: 16px;
}

/* =====================================================================
   F1 · GLOBÁLIS ARCULAT (header, megamenü, drawer, alsó sáv, scroll-top)
   ===================================================================== */

/* ---------- HEADER ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246,247,239,.95); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); transition: background-color .45s var(--ease), border-color .45s var(--ease); }
/* a kalkulátor kártyáján áthaladva a fejléc a panel sötétzöldjére vált (immerzív felső sáv), majd kilépéskor visszaáll */
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--pad-x); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; }
.logo-mark svg { width: 25px; height: 25px; }
.logo-text { font-family: var(--ff-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); transition: color .45s var(--ease); }
/* fejléc logó (kép) */
.logo-img { height: 52px; width: auto; display: block; }
@media (max-width: 767px) { .logo-img { height: 46px; } }
/* footer logó: az átlátszó logó világos chipen (a sötét háttéren a fekete felirat így olvasható) */
.foot-logo { background: #F5F3E7; border-radius: 12px; padding: 7px 13px; align-self: flex-start; }
.foot-logo .logo-img { height: 40px; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.nav > a, .nav-link-btn { font-family: var(--ff-body); font-size: 12px; font-weight: 600; letter-spacing: .048em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: color .16s var(--ease); }
.nav > a:hover, .nav-link-btn:hover { color: var(--brand); }
.nav-link-btn .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-mega-trigger:hover .chev, .header.mega-open .chev { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- MEGAMENÜ ---------- */
.mega { position: absolute; left: var(--pad-x); right: var(--pad-x); top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--sh-panel); padding: 36px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; z-index: 49; }
.header.mega-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; max-width: 1120px; margin-inline: auto; }
.mega-kicker { margin-bottom: 20px; }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.mega-list a { display: block; padding: 13px 16px; border-radius: 12px; transition: background .16s var(--ease); }
.mega-list a:hover { background: var(--cream); }
.mega-list b { display: block; font-family: var(--ff-display); font-size: 16px; font-weight: 500; color: var(--ink); }
.mega-list span { font-size: 13px; color: var(--ink-3); }
.mega-promo { background: var(--panel-grad); border-radius: var(--r-card); padding: 30px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mega-promo-title { color: #fff; font-size: 28px; }
.mega-promo p { color: var(--on-dark); font-size: 15px; }
.mega-promo .btn { margin-top: 4px; }

/* ---------- HAMBURGER ---------- */
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; transition: opacity .2s var(--ease); }
.hamburger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: background-color .45s var(--ease); }
/* nyitott menünél a fejléc-hamburger eltűnik – csak a drawer saját X-e látszik */
.hamburger.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- MOBIL DRAWER ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(5,15,10,.45); opacity: 0; transition: opacity .28s var(--ease); }
.drawer-overlay.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 61; width: min(340px, 86vw); background: #F6F7EF; color: var(--ink); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .34s var(--ease); padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 30px 0 70px -30px rgba(0,0,0,.35); overflow-y: auto; }
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(23,37,28,.1); }
.drawer-logo { height: 42px; width: auto; display: block; }
.drawer-close { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); border-radius: 12px; background: rgba(23,37,28,.05); transition: background .16s var(--ease); }
.drawer-close:hover { background: rgba(23,37,28,.1); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-nav { display: flex; flex-direction: column; flex: 1; padding-top: 10px; }
.drawer-nav a { display: block; font-family: var(--ff-display); font-size: 19px; font-weight: 500; color: var(--ink); padding: 15px 4px; border-bottom: 1px solid rgba(23,37,28,.08); transition: color .16s var(--ease); }
.drawer-nav a:hover, .drawer-nav a:active { color: var(--brand); }
.drawer.is-open .drawer-nav a { animation: drawerIn .42s var(--ease) both; }
.drawer.is-open .drawer-nav a:nth-child(1) { animation-delay: .05s; }
.drawer.is-open .drawer-nav a:nth-child(2) { animation-delay: .1s; }
.drawer.is-open .drawer-nav a:nth-child(3) { animation-delay: .15s; }
.drawer.is-open .drawer-nav a:nth-child(4) { animation-delay: .2s; }
.drawer.is-open .drawer-nav a:nth-child(5) { animation-delay: .25s; }
.drawer.is-open .drawer-nav a:nth-child(6) { animation-delay: .3s; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.drawer-foot { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 2px; margin-top: 12px; border-top: 1px solid rgba(23,37,28,.1); }
.drawer-cta { width: 100%; }
.drawer-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink); padding: 4px; }
@media (prefers-reduced-motion: reduce) { .drawer.is-open .drawer-nav a { animation: none; } }

/* ---------- SCROLL-TOP ---------- */
.scroll-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-card); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9); transition: all .25s var(--ease); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { filter: brightness(1.05); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------- MOBIL ALSÓ AKCIÓSÁV ---------- */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 70px; gap: 12px; padding-inline: 14px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(10,31,21,.3); transition: transform .4s var(--ease), opacity .4s var(--ease); }
.mobile-bar.is-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.mbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--brand); margin: 8px 0; border-radius: 12px; border: 1px solid transparent; background: var(--brand-soft); }
.mbar-item svg { width: 22px; height: 22px; }
.mbar-item.is-active { color: #fff; background: var(--brand); border-color: transparent; flex: 1.15; }

/* ---------- RESZPONZÍV KAPCSOLÓK ---------- */
@media (max-width: 1024px) {
  .nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .mega-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  .scroll-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
  /* fixed fejléc: iOS Safarin az overflow-x:clip elrontja a sticky-t, ezért itt fixed marad */
  .header { position: fixed; left: 0; right: 0; top: 0; }
  html { scroll-padding-top: 80px; }
  body { padding-top: 80px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   F2 · HERO (lebegő fotópanel) + BIZALMI IKON-SÁV
   ===================================================================== */
.hero { padding: clamp(15px, 3vw, 35px) var(--pad-x) clamp(32px, 4vw, 56px); }
.hero-panel {
  position: relative; isolation: isolate;
  max-width: var(--container); margin-inline: auto;
  min-height: clamp(560px, 82vh, 820px);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--sh-float);
  display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 68% center;
  display: block;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg, rgba(8,22,14,.85) 0%, rgba(8,22,14,.55) 34%, rgba(8,22,14,.12) 58%, transparent 76%);
}
.hero-content {
  color: #fff;
  padding: clamp(30px, 4vw, 64px);
  max-width: 900px;
}
.hero-content .badge { margin-bottom: 24px; }
.hero-title { color: #fff; margin-bottom: 20px; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; }
.hero-title .serif-em { color: #fff; }
.hero-sub { font-size: 18px; font-weight: 500; line-height: 1.55; color: var(--on-dark); max-width: 46ch; margin-bottom: 34px; }
.hero-sub-m { display: none; }  /* mobil-only rövid alcím; desktopon rejtve */
.hero-proof-m { display: none; }  /* mobil-only rövid proof; desktopon rejtve */
/* gomb, alatta a proof */
.hero-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-proof { display: flex; align-items: center; gap: 4px; font-size: 14.5px; line-height: 1.35; color: var(--on-dark); }
.hero-proof-ic { flex: none; color: var(--brand-light); }
.hero-proof-ic svg { width: 30px; height: 30px; }
.hero-proof b { font-weight: 700; color: #fff; }

/* ---- Bizalmi ikon-sáv ---- */
.trust-bar { padding: clamp(28px, 3.5vw, 48px) var(--pad-x); border-bottom: 1px solid var(--line); overflow: hidden; }
.trust-track { display: flex; }
.trust-group { display: flex; flex: 1; justify-content: space-between; gap: 32px; }
.trust-group + .trust-group { display: none; }
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.trust-ic svg { width: 27px; height: 27px; }
.trust-txt { display: flex; flex-direction: column; line-height: 1.15; }
.trust-txt i { font-style: normal; font-size: 14.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 1px; }
.trust-txt b { font-size: 18.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

@keyframes trust-marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .trust-track { width: max-content; gap: 32px; animation: trust-marquee 22s linear infinite; }
  .trust-group { flex: 0 0 auto; justify-content: flex-start; gap: 32px; }
  .trust-group + .trust-group { display: flex; }
}
@media (max-width: 900px) {
  /* balról induló, desktophoz hasonló átmenet — a jobb oldal világosabb, kevésbé sötét a kép */
  .hero-scrim { background: linear-gradient(100deg, rgba(8,22,14,.84) 0%, rgba(8,22,14,.55) 40%, rgba(8,22,14,.2) 66%, transparent 86%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

/* =====================================================================
   F3 · SZEGMENS KÉPKÁRTYÁK + MIÉRT MI ÖSSZEHASONLÍTÁS
   ===================================================================== */
.section-cream2 { background: var(--cream-2); }

/* ---- Szegmens képkártyák ---- */
/* a "Kinek építünk" szekciófej középre igazítva */
#szegmensek .section-head { align-items: center; text-align: center; }
#szegmensek .section-head .lead { max-width: 54ch; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seg-card { position: relative; isolation: isolate; border-radius: var(--r-card); overflow: hidden; min-height: clamp(400px, 40vw, 480px); display: flex; align-items: flex-end; box-shadow: var(--sh-card); transition: transform .2s var(--ease); }
.seg-card:hover { transform: translateY(-4px); }
.seg-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; }
.seg-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,22,14,.88) 0%, rgba(8,22,14,.42) 42%, rgba(8,22,14,.08) 78%); }
.seg-body { padding: var(--pad-card); color: #fff; }
.seg-body .badge { margin-bottom: 16px; }
.seg-title { color: #fff; margin-bottom: 10px; font-size: clamp(24px, 2.5vw, 32px); }
.seg-title .serif-em { color: #fff; }
.seg-body p { color: var(--on-dark); font-size: 15px; max-width: 34ch; }

/* ---- Miért mi összehasonlítás ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.cmp { border-radius: var(--r-panel); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.cmp-us { background: var(--panel-grad); color: #fff; box-shadow: var(--sh-panel); }
.cmp-them { background: var(--card); border: 1px solid var(--line); }
.cmp-head { margin-bottom: 14px; }
.cmp-head .badge { margin-bottom: 16px; }
.cmp-title { font-size: clamp(26px, 2.6vw, 38px); }
.cmp-us .cmp-title { color: #fff; }
.cmp-us .cmp-title .serif-em { color: #fff; }
.cmp-them .cmp-title { color: var(--ink); }
.cmp-list { display: flex; flex-direction: column; }
.cmp-list li { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; font-size: 16px; font-weight: 500; line-height: 1.45; }
.cmp-us .cmp-list li { color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.12); }
.cmp-them .cmp-list li { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cmp-list li:last-child { border-bottom: 0; }
/* szimmetrikus kis ikon-körök (pipa / X) */
.cmp-ic { width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; }
.cmp-ic svg { width: 10px; height: 10px; }
.cmp-ic.ok { background: var(--brand); color: #fff; }
.cmp-ic.no { background: rgba(23,37,28,.07); color: var(--ink-3); }
.cmp-us .btn { margin-top: 26px; width: 100%; }

@media (max-width: 900px) {
  .segments { grid-template-columns: 1fr; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .cmp { min-width: 0; }
  .cmp .btn { white-space: normal; }
}

/* =====================================================================
   F4 · KERÍTÉSTÍPUS KÁRTYÁK + REFERENCIA KÉPKÁRTYÁK (carousel)
   ===================================================================== */
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav-mobile { display: none; }
.c-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; transition: all .16s var(--ease); }
.c-arrow svg { width: 20px; height: 20px; }
.c-arrow:hover { border-color: var(--ink); box-shadow: var(--sh-card); }
.c-arrow:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; border-color: var(--line); }

.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; margin: 0; scrollbar-width: none; align-items: stretch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; flex: 0 0 auto; }

/* ---- Típuskártya ---- */
.type-card { position: relative; width: clamp(280px, 84vw, 340px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-card); }
/* "Gazdaságos" jelzés a kártyán / kalkulátor-opción */
.type-flag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--brand); color: #fff; font-family: var(--ff-body); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(54,142,9,.55); }
.wiz-type-flag { position: absolute; top: 9px; left: 9px; z-index: 2; background: var(--brand); color: #fff; font-family: var(--ff-body); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 5px 14px -6px rgba(54,142,9,.6); }
.type-img { position: relative; aspect-ratio: 16 / 11; width: 100%; overflow: hidden; }
.type-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.type-badge { position: absolute; top: 16px; left: 16px; background: rgba(15,42,28,.5); }
.type-body { padding: var(--pad-card); display: flex; flex-direction: column; flex: 1; }
.type-name { font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.type-desc { font-size: 15px; margin-bottom: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.type-scales { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.scale { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scale > span:first-child { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--brand); }
.type-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.type-target { font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* ---- Kerítéstípus-kártyák telefonon (dedikált blokk, hogy ne veszhessen el) ---- */
@media (max-width: 767px) {
  /* keskenyebb kártya: a következő lap tisztán bekukucskál lapozáskor, nincs vékony 2px-es csík a széleken */
  .type-card { width: 76vw; }
}

/* ---- Referencia képkártya ---- */
.ref-card { width: clamp(300px, 86vw, 420px); position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); background: #fff; }
.ref-img { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.ref-badge { position: absolute; top: 16px; left: 16px; background: rgba(15,42,28,.5); }
.ref-body { padding: 22px 24px; }
.ref-title { font-size: 26px; color: var(--ink); margin-bottom: 8px; }
.ref-meta { font-size: 13px; font-weight: 500; color: var(--ink-3); }

.carousel-cta { display: flex; justify-content: center; margin-top: 36px; }

/* =====================================================================
   F5 · FOLYAMAT + GOOGLE VÉLEMÉNYEK
   ===================================================================== */
#folyamat .section-head { align-items: center; text-align: center; }
#folyamat .section-head .lead { max-width: 52ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 42px var(--pad-card) calc(var(--pad-card) + 6px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 1px 2px rgba(23,37,28,.05), 0 12px 30px -20px rgba(23,37,28,.20);
  transition: transform .38s cubic-bezier(.34,1.4,.6,1), box-shadow .34s var(--ease), border-color .34s var(--ease);
}
.step-card:hover { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(23,37,28,.05), 0 28px 48px -24px rgba(23,37,28,.32); border-color: var(--brand-soft); }
.step-node {
  position: relative; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #EFF6E9, var(--brand-soft));
  color: var(--brand);
  display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 0 0 6px rgba(54,142,9,.05);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .45s cubic-bezier(.34,1.55,.5,1);
}
.step-card:hover .step-node { background: radial-gradient(circle at 50% 36%, #3F9F0D, var(--brand)); color: #fff; box-shadow: 0 0 0 9px rgba(54,142,9,.14); transform: scale(1.1) translateY(-3px); }
.step-ic svg { width: 33px; height: 33px; transition: transform .45s cubic-bezier(.34,1.55,.5,1); }
.step-card:hover .step-ic svg { transform: rotate(-7deg) scale(1.06); }
.step-badge {
  position: absolute; top: -3px; right: -3px;
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 3px solid var(--card);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 13px; font-weight: 600; line-height: 1;
  box-shadow: 0 2px 6px rgba(54,142,9,.30);
  transition: border-color .26s var(--ease);
}
.step-card:hover .step-badge { border-color: #fff; }
.step-title { font-size: clamp(19px, 1.7vw, 23px); color: var(--ink); margin-bottom: 10px; }
.step-card p { font-size: 15px; color: var(--ink-2); max-width: 30ch; line-height: 1.6; }
/* látványosabb staggered belépő effekt (a .reveal-t a JS teszi rá) + a hover-emelés visszaállítása,
   mert a globális .reveal.is-visible{transform:none} egyébként felülírná */
.steps .step-card.reveal { opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .7s var(--ease), transform .7s cubic-bezier(.22,.9,.3,1); }
.steps .step-card.reveal.is-visible { opacity: 1; transform: none; }
.steps .step-card.reveal.is-visible:hover { transform: translateY(-8px); }

/* ---- Google vélemények ---- */
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.rating-line b { color: var(--ink); font-weight: 700; }
.rating-stars { display: inline-flex; gap: 3px; }
.rating-stars svg { width: 20px; height: 20px; }
.rev-card { width: clamp(308px, 86vw, 396px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 2.3vw, 28px); display: flex; flex-direction: column; box-shadow: var(--sh-card); }
.rev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rev-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--panel-grad); color: #fff; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 600; font-size: 16px; }
.rev-id { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rev-id b { font-family: var(--ff-display); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.rev-date { font-size: 12.5px; color: var(--ink-3); }
.rev-g { margin-left: auto; flex: none; width: 21px; height: 21px; }
.rev-g svg { display: block; width: 100%; height: 100%; }
.rev-stars { display: inline-flex; gap: 2px; margin-bottom: 13px; }
.rev-stars svg { width: 18px; height: 18px; }
.rev-quote { margin: 0; font-size: 15px; font-weight: 400; font-style: normal; line-height: 1.62; color: var(--ink-2); }
.rev-stars .ic-accent, .rating-stars .ic-accent { fill: #FBBC04; }
.rev-stars .ic-empty { fill: #DADED2; }

@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================================
   F6 · ÁRKALKULÁTOR WIZARD (5 lépcsős)
   ===================================================================== */
.wiz-panel {
  background: var(--panel-grad); border-radius: var(--r-panel); box-shadow: var(--sh-panel);
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

/* ---- Bal oszlop (kontextus + ársáv) ---- */
/* nem sticky: együtt görög a kalkulátorral; az ársáv-doboz az aljára húzva, hogy a
   kártya aljához igazodjon és ne maradjon üres tér alul-balra */
.wiz-side { color: #fff; display: flex; flex-direction: column; }
.wiz-side .wiz-estimate { margin-top: auto; }
.wiz-kicker { color: var(--brand-light); }
.wiz-h2 { color: #fff; margin: 14px 0 24px; }
.wiz-h2 .serif-em { color: #fff; }
.wiz-trust { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.wiz-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.wiz-tick { width: 19px; height: 19px; flex: none; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.wiz-tick svg { width: 11px; height: 11px; color: #fff; }
.wiz-estimate { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.wiz-est-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-dim); }
.wiz-est-value { font-family: var(--ff-display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: #fff; line-height: 1.2; }
.wiz-est-value.is-empty { font-size: 15px; font-family: var(--ff-body); color: var(--on-dark); font-weight: 500; }
.wiz-est-note { font-size: 12px; color: var(--on-dark-dim); line-height: 1.45; }

/* ---- Jobb oszlop (wizard kártya) ---- */
.wiz-card { background: #fff; border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); box-shadow: var(--sh-float); display: flex; flex-direction: column; }

/* GÉPES (>=901px) nézet: középre igazított, kinagyított kalkulátor; a cím/szöveg felül középen. Mobilon marad az eredeti (2->1 oszlop). */
@media (min-width: 901px) {
  .wiz-panel { display: block; text-align: center; padding: clamp(36px, 4vw, 60px); }
  .wiz-side { align-items: center; text-align: center; max-width: 660px; margin: 0 auto clamp(26px, 3.5vw, 40px); }
  .wiz-trust { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 0; }
  .wiz-card { width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(28px, 3vw, 40px); text-align: left; }
}
.wiz-progress { margin-bottom: 22px; }
.wiz-progress-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wiz-count { font-size: 13px; font-weight: 600; color: var(--ink-3); flex: none; }
.wiz-count b { font-family: var(--ff-display); font-size: 16px; color: var(--brand); font-weight: 600; }
.wiz-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wiz-bar { height: 6px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.wiz-bar-fill { display: block; height: 100%; width: 20%; background: var(--brand); border-radius: 999px; transition: width .3s var(--ease); }

/* mobil ársáv chip (desktopon rejtve) */
.wiz-est-chip { display: none; }

/* ---- Lépések ---- */
.wiz-body { position: relative; }
.wiz-step { animation: wiz-in .28s var(--ease); }
.wiz-step[hidden] { display: none; }
@keyframes wiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-step-title { font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); margin-bottom: 6px; outline: none; }
.wiz-step-sub { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; max-width: 52ch; }
.wiz-step-sub .serif-em { color: var(--brand); }
.wiz-todo { font-size: 14px; color: var(--ink-3); padding: 40px 0; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

/* ---- Navigáció ---- */
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wiz-nav[hidden] { display: none; }
.wiz-nav .btn[hidden] { display: none; }
.wiz-nav #wiz-next { margin-left: auto; }

@media (prefers-reduced-motion: reduce) { .wiz-step { animation: none; } }

@media (max-width: 900px) {
  .wiz-panel { grid-template-columns: 1fr; }
  .wiz-side { position: static; }
  .wiz-estimate { display: none; }          /* mobilon a chip mutatja */
  .wiz-est-chip { display: flex; flex-direction: column; gap: 3px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; }
  .wiz-est-chip-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .wiz-est-chip-value { font-family: var(--ff-display); font-size: 17px; font-weight: 600; color: var(--ink); }
}

/* ---- Wizard lépés-vezérlők (választók, csúszka) ---- */
.wiz-field { margin-bottom: 26px; }
.wiz-field:last-child { margin-bottom: 0; }
.wiz-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.wiz-label-hint { font-weight: 400; font-size: 12px; color: var(--ink-3); }

.wiz-choices { display: grid; gap: 12px; }
.wiz-choices-3 { grid-template-columns: repeat(3, 1fr); }
.wiz-choices-2 { grid-template-columns: repeat(2, 1fr); }
.wiz-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  text-align: left; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--r-card);
  background: #fff; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease);
  position: relative;
}
.wiz-choice:hover { border-color: var(--ink-3); }
.wiz-choice[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.wiz-choice-ic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--cream-2); color: var(--brand); transition: background .15s var(--ease); }
.wiz-choice[aria-checked="true"] .wiz-choice-ic { background: var(--brand); color: #fff; }
.wiz-choice-ic svg { width: 19px; height: 19px; }
.wiz-choice-t { font-family: var(--ff-display); font-size: 16px; color: var(--ink); }
.wiz-choice-d { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.wiz-choice::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff no-repeat center / 12px 12px; transition: all .15s var(--ease);
}
.wiz-choice[aria-checked="true"]::after {
  border-color: var(--brand); background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10.5'/%3E%3C/svg%3E");
}

/* --- Becsült ártartomány — beleolvasztva a lépésszámláló-fejlécbe (inline, nem box) --- */
.wiz-prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wiz-count-sep { color: var(--line); }
.wiz-count-name { color: var(--ink-2); font-weight: 600; }
.wiz-estbar { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; margin-left: auto; }
.wiz-estbar.is-empty { display: none; }
.wiz-estbar-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wiz-estbar-val { font-family: var(--ff-display); font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }
@media (min-width: 561px) { .wiz-count-sep, .wiz-count-name { display: none; } }
@media (max-width: 560px) { .wiz-estbar-val { font-size: 14px; } }

/* csúszka + szám-mező */
.wiz-slider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wiz-slider-head-l { display: flex; flex-direction: column; gap: 3px; }
.wiz-slider-head-l .wiz-label { margin-bottom: 0; }
.wiz-hint-inline { margin-top: 0; font-size: 12.5px; line-height: 1.3; }
.wiz-length-box { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.wiz-length-box:focus-within { border-color: var(--brand); }
.wiz-length-box input { width: 50px; border: 0; background: none; font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--ink); text-align: right; -moz-appearance: textfield; }
.wiz-length-box input::-webkit-outer-spin-button, .wiz-length-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wiz-length-box input:focus { outline: none; }
.wiz-length-unit { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.wiz-range { width: 100%; accent-color: var(--brand); height: 6px; }
.wiz-slider-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.wiz-hint { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

@media (max-width: 560px) {
  .wiz-choices-3 { grid-template-columns: 1fr; }
  .wiz-choice { flex-direction: row; align-items: center; padding: 14px 16px; padding-right: 44px; }
  .wiz-choice-d { display: none; }

  /* érdeklődés-választó (2 oszlop) — egymás alá kerül, az alcím látható marad,
     kompaktabb, esztétikusabb méretekkel, hogy ne csússzon szét a kártya tartalma */
  .wiz-choices-2 { grid-template-columns: 1fr; gap: 10px; }
  .wiz-choices-2 .wiz-choice { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; padding-right: 40px; }
  .wiz-choices-2 .wiz-choice-d { display: block; font-size: 12.5px; line-height: 1.4; }
  .wiz-choices-2 .wiz-choice-t { font-size: 15px; }
  .wiz-choices-2 .wiz-choice-ic { width: 34px; height: 34px; border-radius: 8px; }
  .wiz-choices-2 .wiz-choice-ic svg { width: 18px; height: 18px; }
}

/* --- 3D panel színválasztó (kör + név) --- */
.wiz-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-coloropt { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 9px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.wiz-coloropt:hover { border-color: var(--ink-3); }
.wiz-coloropt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.wiz-coloropt-sw { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.2); }
.wiz-coloropt-nm { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---- Lépés 2: típus-képkártyák ---- */
.wiz-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wiz-type {
  position: relative; text-align: left; cursor: pointer;
  border: 0; padding: 0; border-radius: var(--r-card); background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow .18s var(--ease), transform .24s var(--ease);
  display: flex; flex-direction: column;
}
.wiz-type-img { aspect-ratio: 4 / 3; width: 100%; font-size: 12px; }
.wiz-type-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.wiz-type-name { font-family: var(--ff-serif); font-style: italic; font-size: 21px; color: var(--ink); }
.wiz-type-sub { font-size: 12px; color: var(--ink-3); }
.wiz-type-price { margin-top: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: var(--pill); padding: 5px 12px; }
.wiz-type::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9); background: rgba(15,42,28,.35) no-repeat center / 13px 13px; backdrop-filter: blur(2px);
}
.wiz-type[aria-checked="true"]::after {
  border-color: #fff; background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10.5'/%3E%3C/svg%3E");
}
@media (max-width: 480px) { .wiz-types { grid-template-columns: 1fr; } }

/* ---- Lépés 3: magasság + lábazat + kerítés-sziluett ---- */
.wiz-step3 { display: grid; grid-template-columns: 1fr 190px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.wiz-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.wiz-pill { padding: 12px 20px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; font-family: var(--ff-body); font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .14s var(--ease); }
.wiz-pill:hover { border-color: var(--ink-3); }
.wiz-pill[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.wiz-fence-vis { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; align-self: stretch; justify-content: center; }
.wiz-fence-vis svg { width: 100%; max-width: 170px; height: auto; }
.wiz-fence-cap { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
@media (max-width: 640px) {
  .wiz-step3 { grid-template-columns: 1fr; }
  .wiz-fence-vis { order: -1; flex-direction: row; gap: 16px; }
  .wiz-fence-vis svg { max-width: 110px; }
}

/* ---- Lépés 4: bontás toggle ---- */
.wiz-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-card); background: #fff; }
.wiz-toggle-text { font-family: var(--ff-display); font-size: 17px; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.wiz-toggle-sub { font-family: var(--ff-body); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.wiz-switch { flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .18s var(--ease); cursor: pointer; }
.wiz-switch[aria-checked="true"] { background: var(--brand); }
.wiz-switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,42,28,.25); transition: transform .18s var(--ease); }
.wiz-switch[aria-checked="true"] .wiz-switch-knob { transform: translateX(22px); }

/* ---- Lépés 5: adatlap ---- */
.wiz-summary { background: var(--brand-soft); border-radius: var(--r-card); padding: 14px 18px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 3px; }
.wiz-summary-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.wiz-summary-value { font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.wiz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.wiz-in { display: flex; flex-direction: column; gap: 6px; }
.wiz-in-full { grid-column: 1 / -1; }
.wiz-in label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.wiz-opt { font-weight: 400; color: var(--ink-3); }
.wiz-in input, .wiz-in textarea { height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--ff-body); font-size: 16px; color: var(--ink); transition: border-color .15s var(--ease); }
.wiz-in textarea { height: auto; min-height: 84px; padding: 14px 16px; resize: vertical; }
.wiz-in input:focus, .wiz-in textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.wiz-in.has-error input, .wiz-in.has-error textarea { border-color: #C0392B; }
.wiz-err { font-size: 12px; font-weight: 500; color: #C0392B; min-height: 0; }
.wiz-err:empty { display: none; }
.wiz-err-check { display: block; margin: -6px 0 6px; }
.wiz-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-bottom: 12px; cursor: pointer; }
.wiz-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); }
.wiz-check a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.wiz-submit { width: 100%; margin-top: 8px; }
.wiz-submit[aria-busy="true"] { opacity: .75; pointer-events: none; }
.wiz-submit-err { margin-top: 12px; font-size: 14px; font-weight: 500; color: #C0392B; }

/* Kötelező választás — piros hibajelzés a csoport alatt. (A kapcsolós mezőkre — beton lábazat, bontás — NEM vonatkozik.) */
.wiz-field-err { margin: 9px 0 0; font-size: 13px; font-weight: 600; color: #C0392B; line-height: 1.4; }
.wiz-req { color: #C0392B; font-weight: 700; }
.wiz-field-err[hidden] { display: none; }
.wiz-choices.has-error, .wiz-pills.has-error, .wiz-colors.has-error, .wiz-types.has-error {
  outline: 1.5px solid rgba(192,57,43,.55); outline-offset: 7px; border-radius: 14px;
}

/* ---- Siker / eredmény nézet — kompakt sötétzöld megerősítő panel ---- */
.wiz-result { padding: 0; }
.wiz-done { position: relative; overflow: hidden; text-align: center; border-radius: 18px; background: radial-gradient(130% 110% at 50% -10%, #17351F 0%, #0F2A1C 58%); padding: clamp(34px, 5.5vw, 52px) clamp(20px, 4vw, 40px); animation: wiz-rise .45s var(--ease) both; }
.wiz-done::before { content: ""; position: absolute; top: -90px; left: 50%; width: 340px; height: 340px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(159,212,99,.14), transparent 62%); }
.wiz-done > * { position: relative; }
.wiz-done-badge { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; background: #9FD463; display: grid; place-items: center; box-shadow: 0 0 0 9px rgba(159,212,99,.13), 0 16px 32px -12px rgba(159,212,99,.55); animation: wiz-badge .5s var(--ease) both; }
.wiz-done-badge svg { width: 30px; height: 30px; color: #0F2A1C; }
.wiz-done-title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(24px, 3vw, 33px); line-height: 1.14; letter-spacing: -.01em; color: #fff; margin: 0 0 12px; }
.wiz-done-title .serif-em { color: #9FD463; }
.wiz-done-mail { font-size: 14.5px; line-height: 1.6; color: #C4D2C0; margin: 0 auto 22px; max-width: 34ch; }
.wiz-done-mail b { color: #fff; font-weight: 700; word-break: break-word; }
.wiz-done-flow { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 11px; margin: 0 auto 22px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(159,212,99,.24); background: rgba(159,212,99,.06); }
.wiz-done-flow span { font-size: 12.5px; font-weight: 600; color: #E4EEDB; white-space: nowrap; }
.wiz-done-flow i { color: #9FD463; font-style: normal; font-size: 13px; }
.wiz-done-foot { font-size: 12px; line-height: 1.6; color: #8C9A85; margin: 0; }
.wiz-done-foot b { color: #C4D2C0; font-weight: 700; }
.wiz-done-foot a { color: #9FD463; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .wiz-done, .wiz-done-badge { animation: none; } }

@media (max-width: 480px) { .wiz-form-grid { grid-template-columns: 1fr; } }

/* ---- F6: reszponzív + akadálymentesség finomítás ---- */
.wiz-toggle-row { cursor: pointer; }
.wiz-choice:focus-visible, .wiz-pill:focus-visible, .wiz-type:focus-visible, .wiz-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wiz-type:focus-visible { outline-offset: -2px; }
/* min. 44px tapintható a switch */
.wiz-switch { min-height: 30px; }

@media (max-width: 767px) {
  .wiz-nav { flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
  .wiz-nav .btn { width: 100%; }
  .wiz-nav #wiz-next { margin-left: 0; }
  .wiz-card { padding: 20px 18px; }
  .wiz-choice-t { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-step, .wiz-bar-fill, .wiz-switch-knob, .wiz-switch, .wiz-choice, .wiz-pill, .wiz-type { transition: none; animation: none; }
}

/* =====================================================================
   KALKULÁTOR · PRÉMIUM OVERHAUL (dizájn, animációk, mobil szélesség)
   ===================================================================== */
/* panel mélység: lágy fény-foltok a sötét háttéren */
.wiz-panel { position: relative; overflow: hidden; }
.wiz-panel::before { content: ""; position: absolute; top: -170px; right: -130px; width: 470px; height: 470px; background: radial-gradient(circle, rgba(127,198,75,.20), transparent 66%); pointer-events: none; }
.wiz-panel::after { content: ""; position: absolute; left: -150px; bottom: -190px; width: 430px; height: 430px; background: radial-gradient(circle, rgba(54,142,9,.16), transparent 70%); pointer-events: none; }
.wiz-side, .wiz-card { position: relative; z-index: 1; }

/* bal panel: lead + záró biztosíték-kártya */
.wiz-lead { color: var(--on-dark); font-size: 15.5px; line-height: 1.55; margin: -2px auto 22px; max-width: 640px; white-space: normal; }
.wiz-side .wiz-estimate { margin-top: 0; }
.wiz-side .wiz-assure { margin-top: auto; display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-card); padding: 15px 17px; }
.wiz-assure-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(150deg, var(--brand-light), var(--brand)); display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(54,142,9,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.wiz-assure-ic svg { width: 22px; height: 22px; color: #fff; }
.wiz-assure-tx { display: flex; flex-direction: column; gap: 2px; }
.wiz-assure-tx b { font-family: var(--ff-display); font-weight: 600; font-size: 15px; color: #fff; }
.wiz-assure-tx span { font-size: 13px; color: var(--on-dark-dim); line-height: 1.4; }

/* címkézett lépcsős stepper */
.wiz-steps { display: flex; list-style: none; margin: 0 0 22px; padding: 0; }
.wiz-stepnode { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wiz-stepnode:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 19px); right: calc(-50% + 19px); height: 2px; background: var(--line); border-radius: 2px; transition: background .4s var(--ease); }
.wiz-stepnode.is-done::after { background: var(--brand); }
.wiz-stepnode-dot { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--ff-display); font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: border-color .28s var(--ease), background .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease); }
.wiz-stepnode.is-active .wiz-stepnode-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.wiz-stepnode.is-done .wiz-stepnode-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.wiz-stepnode-num { grid-area: 1 / 1; transition: opacity .2s var(--ease); }
.wiz-stepnode-check { grid-area: 1 / 1; width: 15px; height: 15px; opacity: 0; transform: scale(.4); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.wiz-stepnode.is-done .wiz-stepnode-num { opacity: 0; }
.wiz-stepnode.is-done .wiz-stepnode-check { opacity: 1; transform: scale(1); }
.wiz-stepnode-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.25; transition: color .28s var(--ease); }
.wiz-stepnode.is-active .wiz-stepnode-label { color: var(--ink); }
.wiz-stepnode.is-done .wiz-stepnode-label { color: var(--ink-2); }
.wiz-progress-compact { display: none; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.wiz-progress-compact .wiz-count { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.wiz-progress-compact .wiz-count b { font-family: var(--ff-display); font-size: 16px; color: var(--brand); }
.wiz-progress-compact .wiz-name { font-size: 14px; font-weight: 600; color: var(--ink); }

/* staggeres tartalom-belépés lépésváltáskor */
.wiz-step.is-shown .wiz-step-inner > * { animation: wiz-rise .5s var(--ease) both; }
.wiz-step.is-shown .wiz-step-inner > *:nth-child(2) { animation-delay: .07s; }
.wiz-step.is-shown .wiz-step-inner > *:nth-child(3) { animation-delay: .14s; }
.wiz-step.is-shown .wiz-step-inner > *:nth-child(4) { animation-delay: .21s; }
@keyframes wiz-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* prémium választókártyák: emelkedő hover + kiválasztás-pop */
.wiz-choice { transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease); }
.wiz-choice:hover { transform: translateY(-2px); border-color: var(--brand-light); box-shadow: 0 12px 26px -16px rgba(23,37,28,.42); }
.wiz-choice[aria-checked="true"] { box-shadow: 0 12px 26px -14px rgba(54,142,9,.5); }
.wiz-choice-ic { transition: background .2s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease); }
.wiz-choice[aria-checked="true"] .wiz-choice-ic { background: linear-gradient(150deg, var(--brand-light), var(--brand)); box-shadow: 0 8px 16px -8px rgba(54,142,9,.55); transform: scale(1.06); }
.wiz-choice[aria-checked="true"]::after { animation: wiz-pop .38s var(--ease); }
@keyframes wiz-pop { 0% { transform: scale(0); } 55% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* 1. és 4. lépés: a pipa-kör függőlegesen középre, a szöveggel szimmetriában */
.wiz-step[data-step="1"] .wiz-choice::after,
.wiz-step[data-step="4"] .wiz-choice::after { top: 50%; bottom: auto; transform: translateY(-50%); }
.wiz-step[data-step="1"] .wiz-choice[aria-checked="true"]::after,
.wiz-step[data-step="4"] .wiz-choice[aria-checked="true"]::after { animation: wiz-pop-mid .38s var(--ease); }
@keyframes wiz-pop-mid { 0% { transform: translateY(-50%) scale(0); } 55% { transform: translateY(-50%) scale(1.25); } 100% { transform: translateY(-50%) scale(1); } }

/* prémium pill-ek + típuskártyák */
.wiz-pill { transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease); }
.wiz-pill:hover { transform: translateY(-1px); }
.wiz-pill[aria-checked="true"] { box-shadow: 0 8px 18px -10px rgba(54,142,9,.6); }
.wiz-type { transition: border-color .18s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease); }
.wiz-type:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--brand-light), 0 16px 32px -18px rgba(23,37,28,.42); }
.wiz-type[aria-checked="true"] { box-shadow: 0 0 0 2px var(--brand), 0 14px 30px -16px rgba(54,142,9,.4); }
.wiz-type-img { position: relative; overflow: hidden; border-top-left-radius: var(--r-card); border-top-right-radius: var(--r-card); }
.wiz-type-img { background: #F5F3E7; }   /* a típusfotók krém háttere — a 2D kizoomozásakor a szélek beleolvadnak */
.wiz-type-img svg, .wiz-type-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-top-left-radius: inherit; border-top-right-radius: inherit; }
/* a 2D panel szorosabban tölti a keretet, mint a 3D — kicsit kizoomozzuk, hogy egyforma legyen a méret */
.wiz-type[data-type="2d"] .wiz-type-img img { transform: scale(0.87); }

/* prémium csúszka: kitöltött sáv + nagy gomb */
.wiz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--p, 2%), var(--cream-2) var(--p, 2%)); cursor: pointer; }
.wiz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 10px -3px rgba(54,142,9,.5); transition: transform .15s var(--ease); }
.wiz-range::-webkit-slider-thumb:hover { transform: scale(1.14); }
.wiz-range::-webkit-slider-thumb:active { transform: scale(.96); }
.wiz-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--cream-2); }
.wiz-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--brand); }
.wiz-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 10px -3px rgba(54,142,9,.5); }

/* nav-gombok mikrointerakció */
.wiz-nav .btn { transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease); }
.wiz-nav #wiz-next:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(54,142,9,.6); }
.wiz-nav .btn-light:hover { transform: translateY(-2px); }

/* siker-nézet ikon lüktetés */
.wiz-result-ic { box-shadow: 0 14px 30px -12px rgba(54,142,9,.6); animation: wiz-badge .5s var(--ease) both; }
@keyframes wiz-badge { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ---- MOBIL: szélesebb, levegősebb kártya ---- */
@media (max-width: 900px) {
  .wiz-panel { gap: 0; }
  .wiz-side { margin-bottom: 22px; }
}
@media (max-width: 640px) {
  #kalkulator { padding-left: 14px; padding-right: 14px; }
  .wiz-panel { padding: 14px; border-radius: 20px; }
  .wiz-card { padding: 24px 16px; }
  .wiz-steps { display: none; }
  .wiz-progress-compact { display: flex; }
  .wiz-side .wiz-assure { display: none; }
  .wiz-lead { margin-bottom: 18px; max-width: none; }
  .wiz-step-title { font-size: clamp(22px, 6.4vw, 27px); }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-step.is-shown .wiz-step-inner > *, .wiz-stepnode-dot, .wiz-stepnode-check, .wiz-result-ic,
  .wiz-choice, .wiz-type, .wiz-pill, .wiz-choice-ic, .wiz-nav .btn { animation: none !important; transition: none !important; }
}

/* ---- Lépés 3 · prémium magasság + lábazat + élő előnézet ---- */
.wiz-step3 { grid-template-columns: 1fr 236px; }
.wiz-hgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wiz-hopt { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 6px 11px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .22s var(--ease), transform .2s var(--ease); }
.wiz-hopt:hover { transform: translateY(-2px); border-color: var(--brand-light); box-shadow: 0 10px 22px -14px rgba(23,37,28,.4); }
.wiz-hopt[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 10px 24px -14px rgba(54,142,9,.45); }
.wiz-hopt-bar { width: 9px; height: 46px; border-radius: 5px; background: #E7EBDF; position: relative; display: block; overflow: hidden; }
.wiz-hopt-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bh, 50%); background: linear-gradient(180deg, var(--brand-light), var(--brand)); border-radius: 5px; transition: height .32s var(--ease); }
.wiz-hopt[aria-checked="true"] .wiz-hopt-bar { background: rgba(54,142,9,.16); }
.wiz-hopt-tx { font-family: var(--ff-display); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1; }
.wiz-hopt-tx i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.wiz-hopt[aria-checked="true"] .wiz-hopt-tx i { color: var(--brand); }
.wiz-hopt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wiz-hint-sm { margin-top: 10px; font-size: 12.5px; }

/* lábazat kapcsoló → feltáruló méretek */
.wiz-plinth-sizes { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .35s var(--ease), opacity .3s var(--ease), margin-top .35s var(--ease); }
.wiz-plinth-sizes.is-open { max-height: 160px; opacity: 1; margin-top: 16px; }
.wiz-label-sub { margin-bottom: 10px; }
/* általános feltáruló blokk (pl. bontás-csúszka) */
.wiz-reveal { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .38s var(--ease), opacity .3s var(--ease), margin-top .38s var(--ease); }
.wiz-reveal.is-open { max-height: 200px; opacity: 1; margin-top: 18px; }
.wiz-demo-field { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .wiz-plinth-sizes, .wiz-reveal { transition: none; } }

.wiz-fence-vis { position: relative; background: none; border: 0; padding: 0; gap: 12px; }
.wiz-fence-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--brand-hover); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 8px; box-shadow: 0 4px 12px -6px rgba(23,37,28,.3); }
.wiz-fence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: wiz-live 1.8s var(--ease) infinite; }
@keyframes wiz-live { 0% { box-shadow: 0 0 0 0 rgba(54,142,9,.5); } 70% { box-shadow: 0 0 0 6px rgba(54,142,9,0); } 100% { box-shadow: 0 0 0 0 rgba(54,142,9,0); } }
.wiz-fence-stage { width: 100%; border-radius: 16px; border: 1px solid var(--line); padding: 10px; overflow: hidden; background: radial-gradient(rgba(54,142,9,.06) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(180deg, #F3F8EE 0%, #FCFDFA 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.wiz-fence-vis svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
#wiz-fence text { font-family: var(--ff-display); }
.wiz-fence-cap { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }

@media (max-width: 640px) {
  .wiz-step3 { grid-template-columns: 1fr; }
  .wiz-fence-vis { order: 0; flex-direction: column; gap: 12px; }
  .wiz-fence-vis svg { max-width: 220px; }
  .wiz-hgrid { gap: 8px; }
  .wiz-hopt-bar { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz-hopt, .wiz-hopt-bar::after, .wiz-fence-dot { animation: none !important; transition: none !important; }
}

/* =====================================================================
   F7 · LEFEDETTSÉGI TÉRKÉP + ZÁRÓ CTA
   ===================================================================== */
.map-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.map-copy h2 { margin: 14px 0 18px; }
.map-copy .serif-em { color: var(--brand); }
.map-copy .lead { margin-bottom: 22px; max-width: 42ch; }
/* megye-chipek (pin ikonnal) */
.map-counties { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.cty {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px 8px 12px; border-radius: var(--pill);
  background: var(--brand-soft); color: var(--brand-hover);
  font-size: 14px; font-weight: 600; line-height: 1;
}
.cty svg { width: 14px; height: 14px; flex: none; color: var(--brand); }
.map-note { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 30px; max-width: 40ch; line-height: 1.5; }
.map-note span { color: var(--brand); font-weight: 700; }

.map-wrap { position: relative; min-width: 0; }   /* min-width:0 = grid-elem ne lógjon ki */
/* desktop/tablet: a map-visual a rács 2. oszlopa, a mobil scrolly-elemek rejtve */
.map-visual { min-width: 0; }
.map-only-mobile { display: none; }
/* teljes méretű térkép (nincs keret/vágás), kicsit balra tolva */
.hu-map { display: block; width: 100%; height: auto; margin-left: -18px; }
.hu-map path { stroke: #C6CEBD; stroke-width: 0.8; stroke-linejoin: round; transition: fill .16s var(--ease); }
.hu-map .co { fill: #DFE4D8; }
.hu-map .co:hover { fill: #CBD3C0; cursor: default; }
/* kiemelt megyék: sötétzöld határ, világos átlátszó kitöltés */
.hu-map .co-hi { fill: rgba(79,168,12,.24); stroke: #245C06; stroke-width: 1.6; }
.hu-map .co-hi:hover { fill: rgba(79,168,12,.34); cursor: default; }
.hu-map .co-bp { fill: #1E4D2B; stroke: #143621; stroke-width: 1; }

@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-wrap { max-width: 560px; margin-inline: auto; }
  .hu-map { margin-left: 0; }   /* mobilon középen, nincs balra tolás */
}

/* =====================================================================
   TELEFONOS TÉRKÉP-SCROLLY: pinnelt szekció, a megyék görgetésre
   egyenként jelennek meg (chip + térkép-kiemelés szinkronban)
   ===================================================================== */
@media (max-width: 640px) {
  .map-only-desktop { display: none; }
  .map-only-mobile { display: block; }

  /* mobilon a desktop fejléc rejtve — a fejléc a pinnelt blokkban van (map-mhead) */
  #terkep .map-copy { display: none; }
  #terkep .map-grid { display: block; }

  /* magas görgetési sáv + EGY pinnelt blokk: fejléc + térkép + chipek EGYÜTT */
  .map-visual { position: relative; height: 250vh; }
  .map-sticky { position: sticky; top: 102px; display: flex; flex-direction: column; align-items: center; }   /* ~25px hely a "Hol dolgozunk" fölött */
  .map-mhead { text-align: center; width: 100%; }
  .map-mhead .kicker { margin-bottom: 10px; }
  .map-mhead h2 { margin: 0 0 10px; font-size: clamp(27px, 7vw, 33px); }
  .map-mhead .serif-em { color: var(--brand); }
  .map-mhead .lead { max-width: 30ch; margin: 0 auto; font-size: 15px; }

  /* térkép + chipek egyetlen kereten belül */
  .map-stage { position: relative; width: 100%; margin-top: 30px; }
  .map-stage .map-wrap { width: 100%; max-width: 100%; margin: 0; }

  /* lebegő chipek a térkép keretén belül (nem lógnak ki), jól látható pill */
  .map-chips-float { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .cty-float { position: absolute; margin: 0; background: #fff; gap: 5px; font-size: 11px; font-weight: 600; color: var(--brand-hover); padding: 5px 10px 5px 8px; border: 1px solid var(--line); box-shadow: 0 6px 16px -6px rgba(23,37,28,.42); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .4s var(--ease), transform .45s cubic-bezier(.34,1.5,.5,1); white-space: nowrap; }
  .cty-float svg { width: 11px; height: 11px; color: var(--brand); }
  .cty-float.is-in { opacity: 1; transform: none; }
  /* orbit a térkép keretén belül: 2 fent, 2 oldalt, 2 lent */
  .cty-float[data-county="Nógrád"]              { top: 6%;   left: 34%; }
  .cty-float[data-county="Borsod-Abaúj-Zemplén"]{ top: 1%;   right: 0; }
  .cty-float[data-county="Komárom-Esztergom"]   { top: 41%;  left: 0; }
  .cty-float[data-county="Heves"]               { top: 28%;  right: 8%; }
  .cty-float[data-county="Pest"]                { bottom: 29%; left: 32%; }
  .cty-float[data-county="Jász-Nagykun-Szolnok"]{ bottom: 42%; right: 0; }

  /* megye-kiemelés mobilon: alapból halvány (nem kiemelt), a .lit világítja ki */
  .hu-map .co-hi { fill: #DFE4D8; stroke: none; transition: fill .5s var(--ease), stroke .5s var(--ease); }
  .hu-map .co-hi.lit { fill: rgba(79,168,12,.24); stroke: #245C06; stroke-width: 1.6; }
  .hu-map .co-bp { fill: #DFE4D8; stroke: none; transition: fill .5s var(--ease), stroke .5s var(--ease); }
  .hu-map .co-bp.lit { fill: #1E4D2B; stroke: #143621; stroke-width: 1; }

  /* prémium, oldal-design-ba simuló megjegyzés (CTA nélkül) */
  .map-foot { display: flex; justify-content: center; margin-top: 42px; padding: 0 2px; }
  .map-note-fancy { max-width: 352px; margin: 0 auto; display: flex; align-items: center; gap: 15px; text-align: left; background: linear-gradient(135deg, #F1F7EB, var(--brand-soft)); border: 1px solid #D6E7C9; border-radius: 18px; padding: 16px 20px 16px 16px; box-shadow: 0 14px 30px -18px rgba(54,142,9,.42), inset 0 1px 0 rgba(255,255,255,.5); }
  .map-note-fancy-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, #49ac13, var(--brand)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 16px -6px rgba(54,142,9,.55), inset 0 1px 0 rgba(255,255,255,.32); }
  .map-note-fancy-ic svg { width: 22px; height: 22px; }
  .map-note-fancy p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
  .map-note-fancy em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 16px; color: var(--brand); }
  /* elegáns belépő, amikor a nézetbe ér */
  .map-note-fancy.reveal, .map-foot.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s cubic-bezier(.22,.9,.3,1); }
  .map-note-fancy.reveal.is-visible, .map-foot.reveal.is-visible { opacity: 1; transform: none; }

  /* görgetés-jelző a térkép alatt: az animáció alatt látszik, a végén elhalványul */
  .map-scrollhint { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 16px; color: var(--brand); opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .map-scrollhint-text { font-family: var(--ff-display); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
  .map-scrollhint-arrows { display: flex; flex-direction: column; align-items: center; animation: map-hint-bounce 1.5s var(--ease) infinite; }
  .map-scrollhint-arrows svg { width: 24px; height: 24px; display: block; }
  .map-scrollhint-arrows svg:nth-child(2) { margin-top: -15px; opacity: .45; }
  .map-scrollhint.is-done { opacity: 0; transform: translateY(10px); pointer-events: none; }
  @keyframes map-hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .map-scrollhint { display: none; }
}

/* reduced-motion: nincs pin, statikus térkép, minden chip + megye látszik */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .map-visual { height: auto; }
  .map-sticky { position: static; }
  .cty-float { position: static; opacity: 1; transform: none; margin: 4px; }
  .map-chips-float { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
  .hu-map .co-hi { fill: rgba(79,168,12,.24); stroke: #245C06; stroke-width: 1.6; }
  .hu-map .co-bp { fill: #1E4D2B; stroke: #143621; stroke-width: 1; }
}

/* =====================================================================
   F8 · GYIK + LÁBLÉC
   ===================================================================== */
.faq2 { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq2-intro { position: sticky; top: 104px; }
.faq2-intro h2 { margin: 14px 0 18px; }
.faq2-lead { max-width: 34ch; margin-bottom: 30px; }
.faq2-help { position: relative; overflow: hidden; background: var(--panel-grad); border-radius: var(--r-panel); padding: clamp(26px, 2.4vw, 34px); box-shadow: var(--sh-panel); }
.faq2-help-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.10); color: var(--brand-light); margin-bottom: 18px; }
.faq2-help-ic svg { width: 24px; height: 24px; }
.faq2-help-k { font-family: var(--ff-display); font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 7px; }
.faq2-help-sub { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-dim); margin-bottom: 22px; max-width: 32ch; }
.faq2-help-phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; color: #fff; margin-bottom: 20px; transition: color .2s var(--ease); }
.faq2-help-phone:hover { color: var(--brand-light); }
.faq2-help-phone svg { width: 20px; height: 20px; color: var(--brand-light); }
.faq2-help .btn { width: 100%; }

.faq2-list { display: flex; flex-direction: column; gap: 12px; }
/* =====================================================================
   GYIK · prémium harmonika (ikonos chipek, forgó chevron, beúszó válasz)
   ===================================================================== */
#gyik .faq-head { align-items: center; text-align: center; margin: 0 auto clamp(34px, 4vw, 54px); }
#gyik .faq-head .lead { max-width: 52ch; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq2-item { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.faq2-item:hover { border-color: #C6CEBD; box-shadow: 0 14px 32px -24px rgba(23,37,28,.42); }
.faq2-item[open] { border-color: #D6E7C9; background: linear-gradient(180deg, #FAFCF5, #ffffff 62%); box-shadow: 0 22px 50px -30px rgba(23,37,28,.36); }

.faq2-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 15px; padding: clamp(14px, 1.6vw, 19px) clamp(15px, 1.7vw, 21px); }
.faq2-item summary::-webkit-details-marker { display: none; }

.faq2-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: background .28s var(--ease), color .28s var(--ease), transform .3s var(--ease), box-shadow .28s var(--ease); }
.faq2-ic svg { width: 22px; height: 22px; }
.faq2-item:hover .faq2-ic { transform: scale(1.06); }
.faq2-item[open] .faq2-ic { background: linear-gradient(150deg, var(--brand-light), var(--brand)); color: #fff; box-shadow: 0 8px 16px -8px rgba(54,142,9,.55); }

.faq2-q { flex: 1; font-family: var(--ff-display); font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; color: var(--ink); line-height: 1.35; transition: color .2s var(--ease); }
.faq2-item[open] .faq2-q { color: var(--brand-hover); }

.faq2-tog { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; transition: background .25s var(--ease), border-color .25s var(--ease); }
.faq2-tog svg { width: 15px; height: 15px; color: var(--brand); transition: transform .4s cubic-bezier(.34,1.4,.5,1), color .25s var(--ease); }
.faq2-item:hover .faq2-tog { border-color: var(--brand); }
.faq2-item[open] .faq2-tog { background: var(--brand); border-color: transparent; }
.faq2-item[open] .faq2-tog svg { transform: rotate(180deg); color: #fff; }

.faq2-ans { overflow: hidden; transition: height .4s var(--ease); }
.faq2-ans p { font-size: 15px; line-height: 1.72; color: var(--ink-2); margin: 0; padding: 0 clamp(15px,1.7vw,21px) clamp(17px,1.9vw,22px) calc(clamp(15px,1.7vw,21px) + 57px); opacity: 0; transform: translateY(8px); transition: opacity .38s var(--ease) .04s, transform .42s var(--ease) .04s; }
.faq2-item[open] .faq2-ans p { opacity: 1; transform: none; }
.faq2-ans p .serif-em { color: var(--brand); }

/* staggeres belépő */
.faq2-item.reveal:nth-child(2) { transition-delay: .05s; }
.faq2-item.reveal:nth-child(3) { transition-delay: .1s; }
.faq2-item.reveal:nth-child(4) { transition-delay: .15s; }
.faq2-item.reveal:nth-child(5) { transition-delay: .2s; }
.faq2-item.reveal:nth-child(6) { transition-delay: .25s; }

/* ---- alsó CTA-sáv (sötét panel, fény-folttal) ---- */
.faq-cta { position: relative; overflow: hidden; max-width: 800px; margin: clamp(28px, 3vw, 44px) auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; background: var(--panel-grad); border-radius: var(--r-panel); padding: clamp(24px, 2.8vw, 38px); box-shadow: var(--sh-panel); }
.faq-cta::before { content: ""; position: absolute; top: -120px; right: -90px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(127,198,75,.22), transparent 68%); pointer-events: none; }
.faq-cta-text, .faq-cta-actions { position: relative; z-index: 1; }
.faq-cta-title { font-family: var(--ff-display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: #fff; margin-bottom: 7px; }
.faq-cta-sub { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-dim); max-width: 52ch; margin-inline: auto; }
.faq-cta-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.faq-cta-phone { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-display); font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; color: #fff; white-space: nowrap; transition: color .2s var(--ease); }
.faq-cta-phone:hover { color: var(--brand-light); }
.faq-cta-phone svg { width: 20px; height: 20px; color: var(--brand-light); }
.faq-cta .btn { flex: none; }

@media (max-width: 560px) {
  .faq2-ans p { padding-left: clamp(15px,1.7vw,21px); }   /* mobilon nincs behúzás, teljes szélesség */
  .faq2-ic { width: 38px; height: 38px; border-radius: 11px; }
  .faq2-ic svg { width: 20px; height: 20px; }
  .faq2-item summary { gap: 12px; }
}
@media (max-width: 640px) { .faq-cta-actions { flex-direction: column; width: 100%; } .faq-cta .btn { width: 100%; } }

/* ---- Lábléc · prémium ---- */
.footer { padding: 0 var(--pad-x) clamp(24px, 4vw, 48px); }
.foot-panel { position: relative; overflow: hidden; background: var(--panel-grad); border-radius: var(--r-panel); box-shadow: var(--sh-panel); padding: clamp(38px, 5vw, 68px); max-width: var(--container); margin-inline: auto; color: var(--on-dark); }
.foot-panel::before { content: ""; position: absolute; top: -160px; right: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(127,198,75,.18), transparent 66%); pointer-events: none; }
.foot-panel::after { content: ""; position: absolute; left: -150px; bottom: -180px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(54,142,9,.14), transparent 70%); pointer-events: none; }
.foot-grid, .foot-bottom { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 88px); align-items: start; }
.foot-brand { max-width: 380px; }
.foot-logo .logo-text { color: #fff; }
.foot-logo .logo-mark { background: var(--brand); }
.foot-desc { color: var(--on-dark); font-size: 14.5px; margin: 16px 0 20px; line-height: 1.6; max-width: 34ch; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.foot-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 7px 13px 7px 10px; border-radius: var(--pill); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--on-dark); }
.foot-chip svg { width: 12px; height: 12px; color: var(--brand-light); }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 4px; }
.foot-col a { font-size: 15px; color: var(--on-dark); transition: color .16s var(--ease); width: fit-content; }
.foot-col a:hover { color: #fff; }

/* kapcsolat: ikonos sorok */
.foot-contact { gap: 14px; }
.foot-cline { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--on-dark); line-height: 1.4; white-space: nowrap; transition: color .16s var(--ease); }
a.foot-cline:hover { color: #fff; }
.foot-ci { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--brand-light); }
.foot-ci svg { width: 16px; height: 16px; }
.foot-phone { font-family: var(--ff-display); font-weight: 600; color: #fff; font-size: 18px; align-items: center; }
.foot-cta-btn { align-self: flex-start; margin-top: 4px; gap: 8px; }
.foot-cta-btn svg { width: 16px; height: 16px; }

.foot-bottom { margin-top: clamp(36px, 4.5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 13px; color: var(--on-dark-dim); text-align: center; }
.foot-legal { display: flex; flex-wrap: nowrap; justify-content: center; gap: 22px; }
.foot-copy { margin: 0; }
.foot-legal a { color: var(--on-dark); transition: color .16s var(--ease); }
.foot-legal a:hover { color: #fff; }
.foot-credit { font-size: 13px; }

@media (max-width: 900px) {
  .faq2 { grid-template-columns: 1fr; }
  .faq2-intro { position: static; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .foot-legal { flex-wrap: wrap; gap: 12px 18px; }
}
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   F9 · SCROLL-REVEAL + ZÁRÓ FINOMHANGOLÁS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s cubic-bezier(.22,.9,.3,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.segments .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.segments .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* mobil finomhangolás */
@media (max-width: 767px) {
  .section-head { margin-bottom: 36px; }
  /* hero: alacsonyabb panel — pontosan a fejléc és az alsó Hívás/Árkalkulátor sáv közé illesztve,
     mindkét oldalon ugyanakkora (15px) réssel; a tartalom középen marad */
  .hero { padding-top: 15px; }
  .hero-panel { min-height: 0; height: calc(100vh - 180px - env(safe-area-inset-bottom)); height: calc(100dvh - 180px - env(safe-area-inset-bottom)); align-items: flex-end; }
  /* a kép minimálisan feljebb a boxban (fekvő kép függőlegesen kitölt, ezért apró zoom+eltolás; a scale fedi a rést) */
  .hero-img { transform: scale(1.05) translateY(-2.5%); }
  /* alulról induló sötétedés (a szöveg alul van), középre + alulra igazítva, szoros közök */
  .hero-scrim { background: linear-gradient(to top, rgba(8,22,14,.92) 0%, rgba(8,22,14,.6) 32%, rgba(8,22,14,.22) 60%, transparent 84%); }
  .hero-content { width: 100%; max-width: none; padding: 30px 26px 34px; text-align: center; }
  .hero-cta-row { align-items: center; gap: 12px; }        /* proof közelebb a CTA-hoz */
  .hero-proof { justify-content: center; }
  .hero-title { font-size: 30px; margin-bottom: 8px; }      /* alcím közelebb a főcímhez */
  .hero-sub { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }  /* 1px-el kisebb, szorosabb köz */
  .hero-sub-d { display: none; }
  .hero-sub-m { display: inline; }
  .hero-proof-d { display: none; }
  .hero-proof-m { display: inline; }
  .btn { padding: 18px 32px; }
}
@media (max-width: 380px) {
  .cw-chips { gap: 6px; }
  .cw-chip { padding: 9px 13px; font-size: 13px; }
}

/* =====================================================================
   MIKRO-INTERAKCIÓK + MOZGÁS  (finom, a márka keretein belül)
   A hover-transformok szándékosan a fájl végén: a globális
   .reveal.is-visible{transform:none} különben elnyomná őket.
   ===================================================================== */
/* nav: balról kinövő aláhúzás */
.nav > a { position: relative; }
.nav > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav > a:hover::after { transform: scaleX(1); }

/* gombok: finom fény-átsuhanás hoverkor + ikon-lökés */
.btn { position: relative; overflow: hidden; }
.btn-primary::before, .btn-white::before { content: ''; position: absolute; top: 0; left: -125%; width: 65%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; }
.btn-primary:hover::before, .btn-white:hover::before { left: 135%; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }

/* szegmens képkártyák: rugós emelés + finom kép-zoom */
.seg-card { transition: transform .34s cubic-bezier(.34,1.4,.6,1), box-shadow .34s var(--ease); }
.seg-card:hover { transform: translateY(-8px); box-shadow: 0 30px 52px -26px rgba(23,37,28,.42); }
.seg-img { transition: transform .6s var(--ease); }
.seg-card:hover .seg-img { transform: scale(1.06); }

/* referencia + Google-vélemény kártyák: emelés */
.ref-card { transition: transform .34s cubic-bezier(.34,1.4,.6,1), box-shadow .34s var(--ease); }
.ref-card:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -26px rgba(23,37,28,.38); }
.rev-card { transition: transform .3s cubic-bezier(.34,1.4,.6,1), box-shadow .3s var(--ease); }
.rev-card:hover { transform: translateY(-5px); box-shadow: 0 24px 42px -26px rgba(23,37,28,.34); }

/* lábléc chipek + térkép megye-chipek */
.foot-chip { transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.foot-chip:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.map-counties .badge { transition: transform .2s var(--ease); }
.map-counties .badge:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before, .btn-white::before { display: none; }
  .nav > a::after, .btn svg, .seg-card, .seg-img, .ref-card, .rev-card, .foot-chip, .map-counties .badge, .faq2-ans { transition: none; }
}

/* =====================================================================
   TELEFONOS NÉZET: minden szekció cím + alcím középre igazítva
   ===================================================================== */
@media (max-width: 640px) {
  .section-head { align-items: center; text-align: center; }
  .section-head .lead, .section-head .kicker { margin-left: auto; margin-right: auto; }
  .section-head.carousel-head { align-items: center; }
  .carousel-head .ch-top { text-align: center; align-items: center; }
  .carousel-head .ch-bottom { align-items: center; text-align: center; }
  .carousel-head .ch-bottom .lead { margin-left: auto; margin-right: auto; }
  .carousel-head .ch-bottom .carousel-nav { margin-left: 0; margin-right: 0; }
  .carousel-head .rating-line { justify-content: center; }
  .map-copy { text-align: center; }
  .map-counties, .map-note { justify-content: center; }
  /* lapozható szekciók: a nyilak a kártyák ALÁ kerülnek, kisebben + több térközzel */
  .carousel-head .ch-bottom .carousel-nav { display: none; }
  .carousel-nav-mobile { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
  .carousel-nav-mobile .c-arrow { width: 40px; height: 40px; }
  .carousel-nav-mobile .c-arrow svg { width: 18px; height: 18px; }
}

/* =====================================================================
   JOGI RÉTEG · modalok + süti-hozzájárulás (a főoldal tokenjeivel)
   ===================================================================== */
.foot-legal-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--on-dark); font-size: 13px; transition: color .16s var(--ease); }
.foot-legal-link:hover { color: #fff; }

/* jogi modalok */
.lgl-overlay { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,31,21,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .28s var(--ease); }
.lgl-overlay.open { display: flex; opacity: 1; }
.lgl-modal { position: relative; width: 100%; max-width: 680px; max-height: 88vh; background: var(--card); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-panel); transform: translateY(14px) scale(.99); opacity: 0; transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .34s var(--ease); }
.lgl-overlay.open .lgl-modal { transform: none; opacity: 1; }
.lgl-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; padding: 0; transition: background .18s var(--ease), border-color .18s var(--ease); }
.lgl-close::before, .lgl-close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 2px; background: var(--ink-2); border-radius: 2px; }
.lgl-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.lgl-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.lgl-close:hover { background: var(--brand); border-color: var(--brand); }
.lgl-close:hover::before, .lgl-close:hover::after { background: #fff; }
.lgl-head { flex: none; padding: 26px 60px 20px 30px; border-bottom: 1px solid var(--line); background: var(--cream); }
.lgl-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.lgl-title { font-family: var(--ff-display); font-size: clamp(22px, 3vw, 27px); font-weight: 600; color: var(--ink); line-height: 1.15; }
.lgl-updated { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.lgl-body { overflow-y: auto; padding: 26px 30px 34px; }
.lgl-body p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; max-width: 68ch; }
.lgl-body p strong { color: var(--ink); font-weight: 600; }
.lgl-body a, .cc-link { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }
.cc-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.lgl-h2 { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.lgl-h2::before { content: ""; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; flex: none; }
.lgl-h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.lgl-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lgl-table th, .lgl-table td { padding: 11px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.lgl-table tr:last-child th, .lgl-table tr:last-child td { border-bottom: 0; }
.lgl-table th { background: var(--cream); color: var(--ink-2); font-weight: 600; width: 40%; }
.lgl-table td { background: #fff; color: var(--ink-2); }
.lgl-list { margin: 0 0 14px; padding: 0; list-style: none; }
.lgl-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.lgl-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.lgl-note { font-size: 13px; color: var(--ink-3); font-style: italic; }
@media (max-width: 640px) { .lgl-head { padding: 22px 54px 16px 20px; } .lgl-body { padding: 22px 20px 30px; } .lgl-table th, .lgl-table td { padding: 9px 11px; font-size: 12.5px; } }

/* süti banner — kompakt sarok-kártya */
.cc-root[hidden] { display: none; }
/* betöltéskori minimális homályosítás, amíg a látogató nem dönt (nem cookie wall: az elutasítás egyenrangú) */
.cc-scrim { position: fixed; inset: 0; z-index: 1890; background: rgba(10,31,21,.30); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: cc-fade .35s var(--ease); }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
.cc-banner { position: fixed; left: 20px; bottom: 20px; z-index: 1900; width: 360px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 22px 50px -22px rgba(10,31,21,.42); animation: cc-up .4s var(--ease); }
@keyframes cc-up { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.cc-emoji { flex: none; font-size: 22px; line-height: 1; }
.cc-title { font-family: var(--ff-display); font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.cc-desc { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.cc-banner-actions { display: flex; gap: 8px; }
.cc-btn { flex: 1; padding: 10px 14px; border-radius: var(--pill); border: 1.5px solid transparent; font-family: var(--ff-body); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .16s var(--ease); }
.cc-btn-primary { background: var(--brand); color: #fff; }
.cc-btn-primary:hover { background: var(--brand-hover); }
.cc-btn-reject { background: var(--ink); color: #fff; }
.cc-btn-reject:hover { background: #000; }
.cc-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.cc-btn-ghost:hover { border-color: var(--ink-3); }
@media (max-width: 767px) {
  .cc-banner { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* süti beállítás-modal */
.cc-modal-overlay { position: fixed; inset: 0; z-index: 2100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,31,21,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .28s var(--ease); }
.cc-modal-overlay.open { display: flex; opacity: 1; }
.cc-modal { position: relative; width: 100%; max-width: 560px; max-height: 88vh; background: var(--card); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-panel); transform: translateY(14px) scale(.99); opacity: 0; transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .34s var(--ease); }
.cc-modal-overlay.open .cc-modal { transform: none; opacity: 1; }
.cc-modal-head { flex: none; padding: 22px 60px 18px 28px; border-bottom: 1px solid var(--line); }
.cc-modal-head h2 { font-family: var(--ff-display); font-size: 20px; font-weight: 600; color: var(--ink); margin: 0; }
.cc-modal-body { overflow-y: auto; padding: 22px 28px; }
.cc-modal-intro { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; }
.cc-cat { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.cc-cat-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.cc-cat-h h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.cc-cat p { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.cc-req { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: var(--pill); }
.cc-toggle { flex: none; position: relative; width: 44px; height: 25px; cursor: pointer; }
.cc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s var(--ease); }
.cc-slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(15,42,28,.25); transition: transform .2s var(--ease); }
.cc-toggle input:checked + .cc-slider { background: var(--brand); }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(19px); }
.cc-toggle input:focus-visible + .cc-slider { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-modal-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .cc-modal-foot { flex-direction: column; } .cc-modal-foot .cc-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lgl-overlay, .lgl-modal, .cc-modal-overlay, .cc-modal, .cc-banner, .cc-scrim { transition: none; animation: none; } }
/* űrlap jogi mikroszöveg (nem checkbox, csak tájékoztatás) */
.wiz-legal-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin: 2px 0 14px; }
.wiz-legal-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* kötelező adatkezelési checkbox az űrlap végén */
.wiz-consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 8px; cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.wiz-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.wiz-consent-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; color: #fff; transition: background .15s var(--ease), border-color .15s var(--ease); }
.wiz-consent-box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s var(--ease); }
.wiz-consent input:checked + .wiz-consent-box { background: var(--brand); border-color: var(--brand); }
.wiz-consent input:checked + .wiz-consent-box svg { opacity: 1; }
.wiz-consent input:focus-visible + .wiz-consent-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.wiz-consent.has-error .wiz-consent-box { border-color: #C0392B; }
.wiz-consent-tx { flex: 1; }
.wiz-consent-err { font-size: 12.5px; color: #C0392B; margin: 0 0 12px; }
.wiz-consent-err[hidden] { display: none; }
/* kalkulátor: típusfüggően tiltott opciók (alu/drót) — szürke, nem választható */
.wiz-opt-disabled { opacity: .4; pointer-events: none; cursor: not-allowed; filter: grayscale(.45); }
.wiz-constraint-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; }
.wiz-constraint-note:empty { display: none; margin: 0; }

/* ============================================================
   REFERENCIA GALÉRIA (Facebook-stílus rács) + EGYEDI LIGHTBOX
   ============================================================ */
.ref-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ref-tile { position: relative; aspect-ratio: 4 / 3; width: 100%; margin: 0; padding: 0; border: 0; display: block; border-radius: var(--r-card); overflow: hidden; cursor: pointer; background: #F5F3E7; box-shadow: var(--sh-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ref-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -18px rgba(10,31,21,.42); }
.ref-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ref-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.ref-tile:hover .ref-tile-img { transform: scale(1.07); }
.ref-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,14,.6) 0%, rgba(8,22,14,.12) 32%, transparent 56%); pointer-events: none; }
.ref-tile-cap { position: absolute; left: 14px; right: 14px; bottom: 11px; z-index: 2; color: #fff; font-family: var(--ff-body); font-weight: 600; font-size: 13.5px; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,.45); pointer-events: none; }

/* „Kattints rá" hint — a szekcióba érve lejátszódik (nincs szöveg) */
.ref-tile-cue { position: absolute; z-index: 3; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(10,31,21,.38); opacity: 0; transform: scale(.5); pointer-events: none; }
.ref-tile-cue svg { width: 25px; height: 25px; }
.ref-tile-cue-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); opacity: 0; }
.ref-gallery.is-cue .ref-tile-cue { animation: refCue 1.5s var(--ease) both; }
.ref-gallery.is-cue .ref-tile-cue-ring { animation: refCueRing 1.5s var(--ease) both; }
.ref-gallery.is-cue .ref-tile:nth-child(1) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(1) .ref-tile-cue-ring { animation-delay: 0s; }
.ref-gallery.is-cue .ref-tile:nth-child(2) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(2) .ref-tile-cue-ring { animation-delay: .09s; }
.ref-gallery.is-cue .ref-tile:nth-child(3) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(3) .ref-tile-cue-ring { animation-delay: .18s; }
.ref-gallery.is-cue .ref-tile:nth-child(4) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(4) .ref-tile-cue-ring { animation-delay: .27s; }
.ref-gallery.is-cue .ref-tile:nth-child(5) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(5) .ref-tile-cue-ring { animation-delay: .36s; }
.ref-gallery.is-cue .ref-tile:nth-child(6) .ref-tile-cue, .ref-gallery.is-cue .ref-tile:nth-child(6) .ref-tile-cue-ring { animation-delay: .45s; }
@keyframes refCue { 0%{opacity:0;transform:scale(.5)} 16%{opacity:1;transform:scale(1.08)} 30%{transform:scale(.88)} 44%{transform:scale(1)} 78%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(.82)} }
@keyframes refCueRing { 0%{opacity:0;transform:scale(.7)} 22%{opacity:.85} 100%{opacity:0;transform:scale(1.55)} }

/* Lightbox */
.ref-lb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(12px,3vw,44px); background: rgba(6,16,10,.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .28s var(--ease); }
.ref-lb[hidden] { display: none; }
.ref-lb.is-open { opacity: 1; }
.ref-lb-backdrop { position: absolute; inset: 0; }
.ref-lb-stage { position: relative; z-index: 1; margin: 0; max-width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; }
.ref-lb-img { max-width: 100%; max-height: 80vh; width: auto; height: auto; display: block; border-radius: var(--r-card); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: #F5F3E7; transition: transform .3s var(--ease), opacity .22s var(--ease); cursor: zoom-in; transform-origin: center; }
.ref-lb-img[data-zoomed="true"] { transform: scale(1.6); cursor: zoom-out; }
.ref-lb.is-switching .ref-lb-img { opacity: 0; }
.ref-lb-cap { margin-top: 15px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 500; }
.ref-lb-counter { color: var(--brand-light); font-weight: 700; }
.ref-lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(255,255,255,.13); color: #fff; border-radius: 50%; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s var(--ease), transform .2s var(--ease); }
.ref-lb-btn:hover { background: var(--brand); transform: scale(1.06); }
.ref-lb-btn:active { transform: scale(.96); }
.ref-lb-btn svg { width: 22px; height: 22px; }
.ref-lb-close { top: 20px; right: 20px; width: 48px; height: 48px; }
.ref-lb-prev, .ref-lb-next { top: 50%; margin-top: -28px; width: 56px; height: 56px; }
.ref-lb-prev { left: 22px; } .ref-lb-next { right: 22px; }

@media (max-width: 900px) { .ref-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .ref-lb-btn svg { width: 17px; height: 17px; }
  .ref-lb-prev, .ref-lb-next { width: 36px; height: 36px; margin-top: -18px; }
  .ref-lb-prev { left: 7px; } .ref-lb-next { right: 7px; }
  .ref-lb-close { top: 9px; right: 9px; width: 34px; height: 34px; }
  .ref-lb-close svg { width: 15px; height: 15px; }
  .ref-lb-img[data-zoomed="true"] { transform: scale(1.35); }
}
@media (max-width: 460px) { .ref-gallery { gap: 10px; } .ref-tile-cap { font-size: 12px; left: 10px; right: 10px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .ref-tile-img, .ref-tile, .ref-lb, .ref-lb-img, .ref-lb-btn { transition: none; }
  .ref-gallery.is-cue .ref-tile-cue, .ref-gallery.is-cue .ref-tile-cue-ring { animation: none; opacity: 0; }
}

/* ---- Pack-kártya a referencia-sliderben (COLLAGE csempe: 1 nagy + 2 kicsi, +N) ---- */
.ref-pack { position: relative; width: clamp(280px, 82vw, 400px); aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 0; display: block; border-radius: var(--r-card); overflow: hidden; cursor: pointer; background: #F5F3E7; box-shadow: var(--sh-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ref-pack:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -18px rgba(10,31,21,.42); }
.ref-pack:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ref-pack-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #fff; }
.ref-pack-cell { position: relative; overflow: hidden; background: #F5F3E7; }
.ref-pack-cell--a { grid-column: 1; grid-row: 1 / 3; }
.ref-pack-cell--b { grid-column: 2; grid-row: 1; }
.ref-pack-cell--c { grid-column: 2; grid-row: 2; }
.ref-pack-collage--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ref-pack-collage--single .ref-pack-cell--a { grid-column: 1; grid-row: 1; }
.ref-pack-collage--duo { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.ref-pack-collage--duo .ref-pack-cell--a { grid-column: 1; grid-row: 1; }
.ref-pack-cell--b2 { grid-column: 2; grid-row: 1; }
.ref-pack-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.ref-pack:hover .ref-pack-cell--a img { transform: scale(1.05); }
.ref-pack-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,22,14,.6); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); color: #fff; font-family: var(--ff-display); font-weight: 600; font-size: clamp(20px, 3vw, 30px); z-index: 2; }
.ref-pack-count { position: absolute; left: 13px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(8,22,14,.58); color: #fff; font-size: 12.5px; font-weight: 600; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; }
.ref-pack-count svg { width: 15px; height: 15px; }

.ref-track.is-cue .ref-pack .ref-tile-cue { animation: refCue 1.5s var(--ease) both; }
.ref-track.is-cue .ref-pack .ref-tile-cue-ring { animation: refCueRing 1.5s var(--ease) both; }
.ref-track.is-cue li:nth-child(1) .ref-tile-cue, .ref-track.is-cue li:nth-child(1) .ref-tile-cue-ring { animation-delay: 0s; }
.ref-track.is-cue li:nth-child(2) .ref-tile-cue, .ref-track.is-cue li:nth-child(2) .ref-tile-cue-ring { animation-delay: .08s; }
.ref-track.is-cue li:nth-child(3) .ref-tile-cue, .ref-track.is-cue li:nth-child(3) .ref-tile-cue-ring { animation-delay: .16s; }
.ref-track.is-cue li:nth-child(4) .ref-tile-cue, .ref-track.is-cue li:nth-child(4) .ref-tile-cue-ring { animation-delay: .24s; }
.ref-track.is-cue li:nth-child(5) .ref-tile-cue, .ref-track.is-cue li:nth-child(5) .ref-tile-cue-ring { animation-delay: .32s; }
.ref-track.is-cue li:nth-child(6) .ref-tile-cue, .ref-track.is-cue li:nth-child(6) .ref-tile-cue-ring { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .ref-track.is-cue .ref-pack .ref-tile-cue, .ref-track.is-cue .ref-pack .ref-tile-cue-ring { animation: none; opacity: 0; } }

/* referencia pack-kártyák desktopon nagyobbak + kicsit magasabbak */
@media (min-width: 768px) {
  .ref-pack { width: clamp(420px, 32vw, 500px); aspect-ratio: 5 / 4; }
}
