/*
  GÉR Burkolatok — burkoló iparági demó.
  IRÁNY: a munka maga a látvány. Sötét, mozifilmszerű hero a burkolás
  folyamatáról (ragasztás → lerakás → kész fürdő), alatta folyamatsáv.
  Precíz szakmunka, nem lassú luxus: gérbe vágott sarkú betű, hideg
  kőszürke tónusok, egyetlen terrakotta kiemelés. (Az OROM-demó
  talpas/réz világától szándékosan eltér.)
  Minden mozgás egyetlen lassuló görbét használ (--ease), és csak
  transform/opacity animálódik.
*/

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/html-static/burkolo/assets/fonts/chakra-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/html-static/burkolo/assets/fonts/chakra-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/html-static/burkolo/assets/fonts/chakra-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/html-static/burkolo/assets/fonts/chakra-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/montserrat-v31-latin_latin-ext-500.woff2') format('woff2');
}

:root {
  --ink: #0E0F11;
  --paper: #F2F1EE;
  --stone: #9AA0A6;
  --white: #FFFFFF;
  --accent: #C9421C; /* fehér szöveggel is AA (4,5:1 felett) */
  --accent-on-dark: #E5582F;
  --accent-dark: #AE3814;
  --accent-glint: #FFE0D2;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --hdr-h: 88px;
  /* Chakra Petch: a betűk sarkai 45°-ban le vannak vágva — gérvágás. */
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; border-radius: 4px; }

/* ================= FEJLÉC ================= */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--hdr-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.hdr.is-scrolled {
  height: 72px;
  background: rgba(14, 15, 17, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand__mark { width: 26px; height: 26px; color: var(--white); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1.6;
}

/* Menü: sima szöveg, az aktív pontot rövid terrakotta vonal jelöli. */
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { transform: scaleX(0.4); }

.hdr__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px 0 17px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hdr__cta svg { width: 16px; height: 16px; }
.hdr__cta:hover { background: var(--accent-dark); }
.hdr__cta:active { transform: translateY(1px); }

.hdr__burger { display: none; }

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scale(var(--zoom, 1));
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero__video,
.hero__still,
.hero__still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__still { display: none; }

/* Sötétítés: balra a szöveg mögött erősebb, felül a fejléc, alul a
   folyamatsáv alatt. A videó közepe tiszta marad. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.86) 0%, rgba(10, 10, 11, 0.6) 34%, rgba(10, 10, 11, 0.12) 68%, rgba(10, 10, 11, 0.05) 100%),
    linear-gradient(to top, rgba(10, 10, 11, 0.9) 0%, rgba(10, 10, 11, 0) 34%),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0) 22%);
}

.hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(120px, 15vh, 160px) + 6vh);
  max-width: 900px;
  opacity: var(--fade, 1);
  transform: translateY(var(--lift, 0px));
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-on-dark);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
/* Soronkénti maszk: a belső span alulról csúszik elő. A padding a
   p/j alsó szárát és az ékezeteket védi a vágástól. */
.ln { display: block; overflow: hidden; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.ln > span { display: inline-block; }

/* Kiemelés + fénycsík: a szín maga egy széles színátmenet, amiben egy
   világos sáv ül; a háttér eltolása viszi végig a betűkön. Akkor fut le,
   amikor a videóban a lapot a helyére nyomják. */
.hl {
  font-style: normal;
  color: var(--accent-on-dark);
  background-image: linear-gradient(105deg, var(--accent-on-dark) 0 42%, var(--accent-glint) 50%, var(--accent-on-dark) 58% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hl.is-sweeping { animation: sweep 1.2s var(--ease-inout) both; }
@keyframes sweep {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.hero__intro {
  max-width: 34em;
  margin: 30px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
}

/* ---------- Folyamatsáv ---------- */

.steps {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step__btn {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.step__track {
  position: relative;
  display: block;
  height: 2px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.step__fill {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(var(--p));
  transform-origin: left;
}
.step.is-active .step__fill { background: var(--accent-on-dark); }
.step__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.5s var(--ease);
}
.step__head b { font-size: 12px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.58); transition: color 0.5s var(--ease); }
.step__note {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.5s var(--ease);
}
.step.is-active .step__head,
.step__btn:hover .step__head { color: var(--white); }
.step.is-active .step__head b { color: var(--accent-on-dark); }
.step.is-active .step__note { color: rgba(255, 255, 255, 0.7); }

/* ================= KÖZÖS ================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-on-dark);
}
.eyebrow--dark { color: #5B6066; }
.eyebrow--dark::before { background: var(--accent); }

/* ================= ELŐTTE / UTÁNA =================
   A szekció 260vh magas, a belseje ragad (sticky). A JS a görgetésből
   számolja: --t/--r/--b/--l a keret kivágása (px), --rad a sarka, --zoomb a
   kép nagyítása, --wipe a vágóvonal helye, --txt a szöveg, --cap a felirat.
   Kezdetben a keret egy 2:1 arányú lap — mint egy 120×60-as nagylap. */

.ba {
  position: relative;
  height: 260vh;
  background: var(--ink);
}
.ba__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ba__text {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  z-index: 2;
  width: min(34vw, 460px);
  transform: translateY(calc(-50% + var(--txt-lift, 0px)));
  opacity: var(--txt, 1);
}
.ba__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.ba__lead { margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

.ba__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  clip-path: inset(var(--t, 30%) var(--r, 6%) var(--b, 30%) var(--l, 50%) round var(--rad, 4px));
  background: #000;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoomb, 1.18));
  transform-origin: var(--zoom-x, 70%) 50%;
}
.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--wipe, 0%)) 0 0);
}

/* A vágóvonal: mint a csempevágó karcolása, a fogantyú a vágókorong. */
.ba__cut {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wipe, 0%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
  opacity: var(--cut, 0);
}
.ba__cut span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(14, 15, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ba__cut span::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--accent-on-dark);
}

.ba__tag {
  position: absolute;
  top: calc(var(--t, 30%) + 16px);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(14, 15, 17, 0.62);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ba__tag--before { left: calc(var(--l, 50%) + 16px); opacity: var(--tag-b, 1); }
.ba__tag--after { right: calc(var(--r, 6%) + 16px); opacity: var(--tag-a, 0); }

.ba__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 56px);
  z-index: 1;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  opacity: var(--cap, 0);
  transform: translateY(calc((1 - var(--cap, 0)) * 10px));
}
.ba__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0) 30%);
  opacity: var(--cap, 0);
  pointer-events: none;
}

/* ================= MUNKÁINK ================= */

.works {
  padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
/* Rögzített mód (a JS kapcsolja be asztalon): a szekció a sor úszási útjával
   magasabb (--travel), a belseje egy képernyőnyi, ragad (sticky), és amíg
   ragad, a sor végigúszik. A kártyák mérete (--card-w, --img-h) úgy van
   számolva, hogy 3 férjen ki, és a felirat is látsszon.
   Az overflow: clip nem töri el a sticky-t, a hidden igen. */
.works.is-pinned {
  height: calc(100vh + var(--travel, 0px));
  padding: 0;
  overflow: clip;
}
.works.is-pinned .works__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 24px;
}
.works.is-pinned .works__row { margin-top: clamp(24px, 4vh, 48px); }
.works.is-pinned .work { flex: 0 0 var(--card-w); }
.works.is-pinned .work img { aspect-ratio: auto; height: var(--img-h); }
.works__head { max-width: 820px; padding: 0 var(--gutter); }
.works__title,
.quote__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.works__lead { max-width: 34em; margin: 22px 0 0; font-size: 16.5px; line-height: 1.65; color: #50555B; }

/* Asztalon a sor a függőleges görgetéssel úszik balra (--shift); érintős
   eszközön sima vízszintes lapozás. */
.works__row {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  margin: clamp(48px, 7vh, 72px) 0 0;
  padding: 0 var(--gutter);
  list-style: none;
  transform: translateX(var(--shift, 0px));
  will-change: transform;
}
.work { flex: 0 0 clamp(250px, 25vw, 380px); margin: 0; }
.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #DAD8D3;
}
.work__meta { display: grid; gap: 4px; margin: 14px 0 0; }
.work__meta b { font-family: var(--font-display); font-size: 15px; }
.work__meta span { font-size: 13px; line-height: 1.45; color: #5B6066; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
button.btn { cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn--primary { border: 0; background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }

/* ================= AJÁNLATKÉRÉS =================
   Felmérőlap + kiosztási rajz. Nem űrlap-doboz: vékony vonalakkal tagolt
   műszaki lap, a választások szövegként, aláhúzással. */

[hidden] { display: none !important; }

.quote {
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(96px, 14vh, 150px);
  background: var(--ink);
}
.quote__head { max-width: 820px; }
.quote__lead { max-width: 36em; margin: 22px 0 0; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(48px, 7vh, 72px);
}

/* ---------- Kiosztási rajz ---------- */
.plan { position: sticky; top: 96px; }
.plan__sheet {
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    #131518;
}
.plan__svg { display: block; width: 100%; height: min(56vh, 520px); }
.plan__floor { fill: #8C8780; }
.plan__tile { fill: #D8D5CF; }
.plan__tile--cut { fill: #E8A385; }
.plan__wall { fill: none; stroke: var(--white); stroke-width: 3; vector-effect: non-scaling-stroke; }
.plan__dim { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan__label { fill: rgba(255, 255, 255, 0.75); font-family: var(--font-display); font-weight: 500; }

/* Lerakás: a lapok a közepéről kifelé „kerülnek a helyükre”. */
.plan__tiles.is-laying .plan__tile {
  transform-box: fill-box;
  transform-origin: center;
  animation: lay 0.5s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes lay {
  from { opacity: 0; transform: scale(1.18); }
  to { opacity: 1; transform: none; }
}

.plan__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 0;
}
.plan__stats div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.plan__stats dt,
.sheet legend,
.sheet__label,
.field span,
.quote__facts dt {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.plan__stats dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 700; white-space: nowrap; }
.plan__legend { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.plan__key { flex: none; width: 14px; height: 14px; background: #E8A385; }

/* ---------- Felmérőlap ---------- */
.sheet fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sheet .sheet__row { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sheet .sheet__row:first-child { padding-top: 0; }
.sheet legend { padding: 0; margin-bottom: 12px; }
.sheet__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sheet__label output { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--white); font-weight: 700; }
.sheet__hint { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

/* Választók: szöveg, a kiválasztott alatt terrakotta vonal. */
.seg { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.seg label,
.checks label { position: relative; cursor: pointer; }
.seg input,
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-block;
  padding: 4px 0 6px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.seg label:hover span { color: rgba(255, 255, 255, 0.8); }
.seg input:checked + span { color: var(--white); border-bottom-color: var(--accent-on-dark); }
.seg input:disabled + span { color: rgba(255, 255, 255, 0.2); text-decoration: line-through; cursor: not-allowed; }
.seg input:focus-visible + span,
.checks input:focus-visible + span { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }

/* Csúszka */
.range { width: 100%; margin: 0; accent-color: var(--accent-on-dark); cursor: pointer; }

/* Munkák: négyzet + szöveg, a pipa terrakotta. */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
.checks span::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.checks input:checked + span::before {
  border-color: var(--accent-on-dark);
  background:
    linear-gradient(45deg, transparent 44%, var(--white) 44% 56%, transparent 56%) 0 0 / 100% 100%,
    var(--accent-on-dark);
}

/* Elérhetőség */
.sheet__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 0 0; }
.field { display: grid; gap: 6px; }
.field input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 500 16px var(--font-body);
}
.field input:focus { outline: none; border-bottom-color: var(--accent-on-dark); }
/* Hozzájárulás az adatkezeléshez — ugyanaz a négyzet, mint a munkáknál. */
.consent { position: relative; display: block; margin: 22px 0 0; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* Nem flex: a szövegben link van, flexben szétesne külön oszlopokra. */
.consent span { position: relative; display: block; padding-left: 26px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); }
.consent span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.consent input:checked + span::before {
  border-color: var(--accent-on-dark);
  background:
    linear-gradient(45deg, transparent 44%, var(--white) 44% 56%, transparent 56%) 0 0 / 100% 100%,
    var(--accent-on-dark);
}
.consent input:focus-visible + span::before { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }
.consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.sheet__error { margin: 14px 0 0; font-size: 13.5px; color: #FFB199; }
.sheet__submit { margin-top: 26px; }
.sheet__fine { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.5); }
.sheet__fine a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- A levél előnézete ---------- */
.mail {
  max-width: 880px;
  margin: clamp(56px, 8vh, 88px) 0 0;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  animation: fadeUp 0.8s var(--ease) both;
  scroll-margin-top: 96px;
}
.mail:focus { outline: none; }
.mail__head { padding-bottom: 16px; border-bottom: 1px solid rgba(14, 15, 17, 0.12); }
.mail__from { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #5B6066; }
.mail__from b { color: var(--ink); }
.mail__tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mail__subject { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.mail__body { font-size: 15px; line-height: 1.6; }
.mail__body p { margin: 16px 0 0; }
.mail__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; }
.mail__table th {
  padding: 8px 6px;
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  color: #5B6066;
}
.mail__table td { padding: 10px 6px; border-bottom: 1px solid rgba(14, 15, 17, 0.1); vertical-align: top; }
.mail__table .n { text-align: right; white-space: nowrap; }
.mail__table tfoot td { padding-top: 14px; border-bottom: 0; border-top: 1.5px solid var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.mail__fine { font-size: 12.5px; color: #6B7076; }

/* ---------- Tények ---------- */
.quote__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(56px, 9vh, 88px) 0 0;
}
.quote__facts div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.quote__facts dd { margin: 8px 0 0; font-size: 15.5px; }
.quote__phone {
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  cursor: pointer;
}

.contact__note {
  max-width: 40em;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent-on-dark);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.contact__note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ================= WEBIPAROS ================= */

/* ================= GYIK ================= */
.faq { padding: clamp(96px, 14vh, 150px) var(--gutter); background: #E6E4DF; color: var(--ink); }
.faq__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 110px); max-width: 1240px; margin: 0 auto; align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.faq__ask { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.faq__ask:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid #c9c6bf; }
.faq__item summary { position: relative; display: block; padding: 22px 52px 22px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 18px; height: 2px; margin-top: -1px; background: var(--accent); transition: transform 0.3s ease; }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover { color: var(--accent-dark); }
.faq__item p { max-width: 38em; margin: -4px 0 0; padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: #3d4247; }
@media (max-width: 900px) {
  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

.wp {
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(48px, 7vh, 72px);
  background: var(--paper);
  color: var(--ink);
}
.wp__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: end;
}
.wp__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.wp__lead { max-width: 36em; margin: 22px 0 0; font-size: 16.5px; line-height: 1.65; color: #50555B; }
.wp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.wp__mail { font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(14, 15, 17, 0.3); }
.wp__mail:hover { text-decoration-color: var(--accent); }
.wp__facts { margin: 0; border-top: 1px solid rgba(14, 15, 17, 0.16); }
.wp__facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(14, 15, 17, 0.16);
}
.wp__facts dt { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #5B6066; }
.wp__facts dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; white-space: nowrap; }
.wp__fine { margin: clamp(48px, 7vh, 72px) 0 0; font-size: 12.5px; color: #5E6369; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter) 28px;
  background: var(--ink);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.foot a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--white); }
.foot__links { display: flex; gap: 18px; }

/* ================= BETÖLTÉSI KOREOGRÁFIA =================
   Csak .js mellett rejtünk el bármit, így JS nélkül minden látszik. */

.js .hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .hero__video.is-playing { opacity: 1; }
.js .hero__media { background: #000 url('/html-static/burkolo/assets/img/hero-poster-1920.webp') center / cover no-repeat; }
@media (max-width: 767px) {
  .js .hero__media { background-image: url('/html-static/burkolo/assets/img/hero-poster-mob.webp'); }
}

.js .ln > span {
  transform: translateY(115%);
  animation: lineUp 1.1s var(--ease) both;
  animation-delay: calc(var(--l) * 0.09s + 0.25s);
}
@keyframes lineUp { to { transform: none; } }

.js .hero__eyebrow,
.js .hero__intro,
.js .steps {
  opacity: 0;
  animation: fadeUp 1s var(--ease) both;
}
.js .hero__eyebrow { animation-delay: 0.1s; }
.js .hero__intro { animation-delay: 0.65s; }
.js .steps { animation-delay: 0.9s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ================= TABLET / MOBIL =================
   A mobilos (álló) videó később kerül be; addig a fekvő videó vágódik. */

@media (max-width: 1023px) {
  .hdr { grid-template-columns: 1fr auto auto; gap: 10px; }
  .hdr__cta { height: 42px; padding: 0 14px; }
  .hdr__burger {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }
  .hdr__burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease); }
  .hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--hdr-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 40px -24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-on-dark); }
  .hdr.menu-open { background: var(--ink); }
}

@media (max-width: 767px) {
  :root { --hdr-h: 68px; }
  .hdr.is-scrolled { height: 64px; }
  .brand__sub { display: none; }
  .hdr__cta { width: 42px; padding: 0; justify-content: center; }
  .hdr__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .hero__media::after {
    background:
      linear-gradient(to top, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.55) 45%, rgba(10, 10, 11, 0.1) 75%),
      linear-gradient(to bottom, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0) 22%);
  }
  .hero__content { bottom: 132px; }
  .hero__eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero__intro { margin-top: 20px; font-size: 15px; }
  .steps { bottom: 24px; gap: 12px; }
  .step__note { display: none; }
  .step__head { font-size: 13px; gap: 6px; }

  .ba { height: 230vh; }
  .ba__text { top: calc(var(--hdr-h) + 28px); right: var(--gutter); width: auto; transform: translateY(var(--txt-lift, 0px)); }
  .ba__title { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .ba__lead { margin-top: 14px; font-size: 14.5px; }
  .ba__caption { font-size: 12px; }

  .works__row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    transform: none;
  }
  .works__row::-webkit-scrollbar { display: none; }
  .work { flex-basis: 72vw; scroll-snap-align: start; }

  .quote__grid { grid-template-columns: 1fr; }
  /* Mobilon a rajz kicsiben a képernyő tetején marad, amíg alatta állítod
     a méreteket — így látszik, mit változtat a csúszka. */
  .plan { position: sticky; top: 64px; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px; background: var(--ink); box-shadow: 0 12px 16px -12px rgba(0, 0, 0, 0.7); }
  .plan__sheet { padding: 8px; }
  .plan__svg { height: 30vh; }
  .plan__stats { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
  .plan__stats div { padding-top: 6px; }
  .plan__stats dt { font-size: 12px; letter-spacing: 0.04em; }
  .plan__stats dd { margin-top: 2px; font-size: 14px; }
  .plan__legend { display: none; }
  .checks { grid-template-columns: 1fr; }
  .sheet__contact { grid-template-columns: 1fr; }
  .mail__table { font-size: 12.5px; }
  .mail__table th:nth-child(3), .mail__table td:nth-child(3) { display: none; }
  .quote__facts { grid-template-columns: 1fr; gap: 0; }
  .wp__inner { grid-template-columns: 1fr; gap: 40px; }
  .quote__facts div { padding: 14px 0; }
  .btn { width: 100%; justify-content: center; }
  .foot { flex-direction: column; gap: 4px; }
}

/* ================= CSÖKKENTETT MOZGÁS =================
   Nincs videó: a kész fürdő áll a háttérben, a folyamatsáv csak felsorolás. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { display: none; }
  .hero__still { display: block; }
  .js .hero__media { background: var(--ink); }
  .js .ln > span, .js .hero__eyebrow, .js .hero__intro, .js .steps {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hl.is-sweeping { animation: none; }
  .step__track { display: none; }
  .step__btn { cursor: default; }
  .step__head, .step__head b { color: var(--white); }
  .step__note { color: rgba(255, 255, 255, 0.6); }

  /* Előtte/utána: nincs ragadás és nyílás — álló, félbevágott összehasonlítás. */
  .ba { height: auto; padding: clamp(96px, 14vh, 160px) var(--gutter); }
  .ba__sticky { position: static; height: auto; overflow: visible; }
  .ba__text { position: static; width: auto; max-width: 640px; transform: none; opacity: 1; }
  .ba__frame {
    position: relative;
    inset: auto;
    margin-top: 48px;
    aspect-ratio: 2 / 1;
    clip-path: none;
    --wipe: 50%;
    --cut: 1;
    --t: 0px;
    --l: 0px;
    --r: 0px;
    --cap: 1;
  }
  .ba__img { transform: none; }
  .ba__tag--after { opacity: 1; }
  .works__row { transform: none; overflow-x: auto; }
}
