/* ZSINÓRPAD Kőműves — Webiparos bemutató oldal */

/* Címbetű: Big Shoulders Stencil Display — sablonbetű, mint a raklapra, zsákra festett felirat */
@font-face { font-family: 'Big Shoulders Stencil Display'; font-weight: 800; font-display: swap; src: url('/html-static/komuves/assets/fonts/stencil-800-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: 'Big Shoulders Stencil Display'; font-weight: 800; font-display: swap; src: url('/html-static/komuves/assets/fonts/stencil-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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-weight: 500; font-display: swap; src: url('/fonts/montserrat-v31-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-v31-latin_latin-ext-600.woff2') format('woff2'); }

:root {
  --bg: #F4F3F0;        /* habarcs-fehér */
  --ink: #17181A;
  --muted: #6B6A66;
  --brick: #B4432A;     /* téglavörös */
  --line: #FF2E7E;      /* a kőműveszsinór neon színe */
  --display: 'Big Shoulders Stencil Display', 'Montserrat', sans-serif;
  --pad: clamp(20px, 3.4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.6 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ============ FEJLÉC ============ */
.hdr {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px var(--pad);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--ink); }
.brand__name { font: 800 23px/1 var(--display); letter-spacing: 0.03em; }
.brand__sub { font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid #d5d3cd; }

.nav { display: flex; gap: 4px; margin: 0 auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); }
.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { background: var(--ink); color: #fff; }

.hdr__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--brick);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.hdr__cta:hover { background: #983621; transform: translateY(-1px); }
.hdr__cta svg { width: 16px; height: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
}

/* A falazóelemek „színpada”: az elemek a közös forrásképből kivágva
   (scripts/build-komuves-blocks.mjs), egymás mellett, laposabb átlóban, mint
   a képen. A méret a képernyőhöz igazodik: a szélesség legfeljebb 88%, és annyi, hogy a
   bal oldali tégla alja (a doboz 69%-a) még a cím teteje fölött maradjon
   (cím teteje ≈ 100svh − 118px − 13,7vw; a doboz teteje 110px), a jobb oldali zsalukő alja
   (a doboz alja) pedig a jobb alsó bemutatkozó szöveg fölött (≈ 100svh − 227px). */
.blocks {
  position: absolute;
  left: 0;
  right: 0;
  top: 110px;
  margin: 0 auto; /* vízszintesen középen */
  width: min(88%, (100svh - 248px - 13.7vw) * 3.66, (100svh - 337px) * 2.526);
  aspect-ratio: 2.526;
  perspective: 1400px;
}
.blk { position: absolute; will-change: transform; }
.blk--tegla { left: 0; top: 0; width: 31.71%; }
.blk--porobeton { left: 34.26%; top: 15.46%; width: 29.82%; }
.blk--zsaluko { left: 68.52%; top: 28.24%; width: 31.48%; }
.blk__body { position: relative; will-change: transform, opacity; transform-style: preserve-3d; }
.blk__body img { width: 100%; }
/* Lebegés-árnyék: a test alatt, a földön — minél magasabbra száll az elem, annál halványabb. */
.blk__shadow {
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: -10%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 32, 24, 0.28), rgba(40, 32, 24, 0));
  filter: blur(6px);
  will-change: transform, opacity;
}

/* jobb lent, a cím magasságában: így az elemek fölött sosem ütközik */
.hero__intro {
  position: absolute;
  bottom: 132px;
  right: var(--pad);
  z-index: 2;
  max-width: 330px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Google-értékelés: jobb fent, a Kapcsolat gomb alatt; vékony, lekerekített keret, háttér nélkül */
.hero__rating {
  position: absolute;
  top: 100px;
  right: var(--pad);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 14px;
  border: 1px solid #d5d3cd;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.hero__rating:hover { border-color: var(--muted); }
.hero__g { width: 22px; height: 22px; flex: none; }
.hero__score { font: 800 30px/1 var(--display); }
.hero__rmeta { display: flex; flex-direction: column; gap: 3px; font-size: 12px; line-height: 1.2; color: var(--muted); }
.hero__rmeta .stars { font-size: 13px; letter-spacing: 0.1em; }

.hero__title {
  position: absolute;
  left: var(--pad);
  bottom: 118px;
  z-index: 3;
  margin: 0;
  font: 800 clamp(52px, 6.7vw, 108px)/1.02 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero__l { display: block; }
.hero__l--hl { color: var(--brick); }

/* A kitűzés zsinórja a cím alatt, a hero teljes szélességében, a két végén zsinórpad */
.zsinor { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.zsinor__line { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
/* a zsinórpad fából van: sötétebb karók, világosabb deszka, acélszög */
.zsinor__pad rect { fill: #9A7348; }
.zsinor__pad rect:nth-child(3) { fill: #C39B66; }
.zsinor__pad .zsinor__nail { fill: #55575B; }

.hero__down {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s;
}
.hero__down:hover { transform: translateY(3px); }
.hero__down svg { width: 20px; height: 20px; }

/* A falazóelemek és a zsinór a szkriptig rejtve: különben a képek kirajzolódnának, a szkript indulásakor
   eltűnnének, és csak utána úsznának be (villanás hideg betöltésnél). */
.js .blk__body, .js .blk__shadow { opacity: 0; }
.js .hero:not(.is-in) .zsinor { opacity: 0; }
/* Betöltéskor a szöveg finoman beúszik. CSS-animáció, nem vár a scriptre, így lassú gépen is hamar látszik. */
@keyframes zs-fade { to { opacity: 1; transform: none; } }
.js [data-fade] { opacity: 0; transform: translateY(14px); animation: zs-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero__l--hl[data-fade] { animation-delay: 0.12s; }
.hero__intro[data-fade] { animation-delay: 0.2s; }
.hero__rating[data-fade] { animation-delay: 0.3s; }

/* ============ MIT VÁLLALUNK ============ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--line); }

.works {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  background: #1A1B1D;
  color: #F4F3F0;
}
.works .eyebrow { color: #B9B7B1; }
.works__title { margin: 0; font: 800 clamp(44px, 4.6vw, 76px)/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.works__sub { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: #B9B7B1; }

/* A fal: 6 fél téglányi oszlop, 3 sor. Balra zárt, jobbra soronként fél téglával
   rövidebb (lépcsős falvég); a cím a lépcső fölötti üres helyen. A rés a fuga. */
.wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 1340px;
  margin: 0 auto;
}
.works__head { grid-column: 5 / 7; grid-row: 1; align-self: center; padding-left: clamp(8px, 2vw, 32px); }
.b-falazas  { grid-column: 1 / 3; grid-row: 1; }
.b-koszoru  { grid-column: 3 / 5; grid-row: 1; }
.b-ask      { grid-column: 1 / 2; grid-row: 2; }
.b-alapozas { grid-column: 2 / 4; grid-row: 2; }
.b-viz      { grid-column: 4 / 6; grid-row: 2; }
.b-kerites  { grid-column: 1 / 3; grid-row: 3; }
.b-vakolas  { grid-column: 3 / 5; grid-row: 3; }
.b-javitas  { grid-column: 5 / 7; grid-row: 3; }

.brick { position: relative; overflow: hidden; background: #222326; aspect-ratio: 16 / 10; }
/* Habarcsfuga (asztali gépen, ahol a téglák kötésben állnak): minden tégla körül egy
   4 px-es cementszürke szegély, így a 8 px-es résben a két szomszéd szegélye adja a fugát,
   a lépcsős falvég üres része viszont háttérszínű marad. Beeséskor a tégla a saját
   habarcsával érkezik. */
@media (min-width: 1101px) {
  .wall .brick { box-shadow: 0 0 0 4px #7A766F; }
}
.brick--half { aspect-ratio: auto; }

.brick__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
/* hol és mikor készült — a referencia hitelességéhez */
.brick__place {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 15, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4F3F0;
}

.brick__body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(14, 15, 16, 0.92) 0%, rgba(14, 15, 16, 0.6) 60%, rgba(14, 15, 16, 0));
}
.brick__name { margin: 0; font: 800 clamp(24px, 2.1vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.brick__short { margin: 6px 0 0; font-size: 14px; color: #D6D4CE; }
/* A mester megjegyzése egérre nyílik (érintőképernyőn mindig látszik); az „Erre kérek árat” mindig látszik */
.brick__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.brick__more > * { min-height: 0; overflow: hidden; }
.brick__note { margin: 0; padding-top: 12px; font-size: 14px; line-height: 1.5; color: #F4F3F0; }
.brick__note span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--line); }
.brick__cta { display: inline-block; padding-top: 10px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.brick__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.brick:hover .brick__img { transform: scale(1.04); }
.brick:hover .brick__more, .brick:focus-within .brick__more { grid-template-rows: 1fr; }
@media (hover: none) { .brick__more { grid-template-rows: 1fr; } }
/* Kisebb asztali képernyőn a tégla alacsony: egérre a hely-címke elhalványul, és a rövid leírás
   átadja a helyét a mester megjegyzésének, így a szöveg nem fut ki a tégla tetején. */
@media (hover: hover) and (min-width: 1101px) {
  .brick__place { transition: opacity 0.25s ease; }
  .brick__short { max-height: 3em; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease; }
  .brick:hover .brick__place, .brick:focus-within .brick__place { opacity: 0; }
  .brick:hover .brick__short, .brick:focus-within .brick__short { max-height: 0; margin-top: 0; opacity: 0; }
  .brick:hover .brick__note, .brick:focus-within .brick__note { padding-top: 8px; }
}
/* alacsony asztali képernyőn (laptop) a kétsoros leírás és a hely-címke ne érjen össze */
@media (min-width: 1101px) and (max-height: 720px) {
  .brick__place { top: 10px; left: 10px; padding: 4px 9px; font-size: 11px; }
  .brick__body { padding: 14px 18px 12px; }
  .brick__cta { padding-top: 6px; }
}

/* „Írd meg” fél tégla */
.brick--ask { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px 20px; }
.brick--ask { background: var(--brick); color: #fff; text-decoration: none; transition: background-color 0.2s; }
.brick--ask:hover { background: #983621; }
.brick--ask span { font-size: 15px; line-height: 1.35; }
.brick--ask b { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }

/* Beúszás (tableten, mobilon): a téglák egyenként ülnek a helyükre, ahogy a képbe érnek */
.js .wall .brick { opacity: 0; transform: translateY(-28px); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15); }
.js .wall .brick.is-in { opacity: 1; transform: none; }

/* Építés görgetésre (asztali gépen, a JS kapcsolja be): a hero ragad, a szekció ráhúzódik,
   a belseje (a fal) a képernyőhöz tapad, amíg a téglák a görgetéssel beesnek. A fal mögött
   a sötét háttér fokozatosan erősödik. A téglák helyzetét a JS állítja. */
.works__pin { position: relative; }
.works__dark { display: none; }
.build--on .hero { position: sticky; top: 0; }
.build--on .works { position: relative; z-index: 2; height: 250svh; margin-top: -100svh; padding: 0; background: transparent; }
/* épülés közben a fal rétege a hero fölött van: a kattintás és az egér menjen át a heróra
   (a kész falat a JS már a sima nézetben adja át, ott minden kattintható) */
.build--on .works { pointer-events: none; }
.build--on .works__head { opacity: 0; }
.build--on .works__pin { position: sticky; top: 0; display: flex; align-items: center; height: 100svh; padding: 0 var(--pad); overflow: hidden; }
.build--on .works__dark { display: block; position: absolute; inset: 0; background: #1A1B1D; opacity: 0; }
/* a fal a képernyőbe férjen: 3 sor 16:10-es tégla ≈ a szélesség 0,63-a */
.build--on .wall { position: relative; width: min(100%, 1340px, (100svh - 110px) * 1.6); container-type: inline-size; }
.build--on .works__title { font-size: clamp(30px, 5.4cqw, 76px); }
.build--on .works__sub { font-size: clamp(13px, 1.35cqw, 19px); }
.build--on .works .eyebrow { margin-bottom: 1.2cqw; }
/* A kész fal (sima nézet) ugyanakkora maradjon, mint épülés közben, különben az átváltáskor
   a fal és a cím hirtelen megnő (900 px magas képernyőn jól látható ugrás). */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .wall { width: min(100%, 1340px, (100svh - 110px) * 1.6); container-type: inline-size; }
  .works__title { font-size: clamp(30px, 5.4cqw, 76px); }
  .works__sub { font-size: clamp(13px, 1.35cqw, 19px); }
  .works .eyebrow { margin-bottom: 1.2cqw; }
}
.build--on .wall .brick { transition: none; will-change: transform; }
/* kész fal asztalon (.build--done): a szakasz egy képernyő, a fal pont akkora és ott áll, mint az
   épülés végén, így az átváltáskor semmi nem mozdul; a tégla-arcok már nem kellenek */
.build--done .works { padding: 0; }
.build--done .works__pin { display: flex; align-items: center; height: 100svh; padding: 0 var(--pad); overflow: hidden; }
.build--done .wall { position: relative; width: min(100%, 1340px, (100svh - 110px) * 1.6); container-type: inline-size; }
.build--done .works__title { font-size: clamp(30px, 5.4cqw, 76px); }
.build--done .works__sub { font-size: clamp(13px, 1.35cqw, 19px); }
.build--done .works .eyebrow { margin-bottom: 1.2cqw; }
.build--done .brick__face { display: none; }
/* Esés közben tégla: a hero Porotherm-téglájának bordázott oldala, leérkezés után alulról
   felfelé lekopik (a JS a clip-path-t állítja), és előtűnik a fotó. Páros téglán tükrözve,
   hogy ne legyen hét egyforma. */
.brick__face { display: none; }
.build--on .brick__face {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url('/html-static/komuves/assets/img/tegla-lap-640.webp') center / cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 -24px 36px -12px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.build--on .wall > .brick:nth-of-type(even) .brick__face { transform: scaleX(-1); }
@media (min-resolution: 1.5dppx) { .build--on .brick__face { background-image: url('/html-static/komuves/assets/img/tegla-lap-1000.webp'); } }
@media (prefers-reduced-motion: reduce) { .js .wall .brick { opacity: 1; transform: none; transition: none; } }

/* ============ EGYENES BESZÉD ============ */

.promise { padding: clamp(90px, 11vw, 150px) var(--pad); background: #EAE7E1; color: var(--ink); }
.promise__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 110px); max-width: 1240px; margin: 0 auto; }
.promise .eyebrow { color: #5c5b57; }
.promise__title { margin: 0; font: 800 clamp(52px, 6.4vw, 104px)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.promise__sub { max-width: 30em; margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: #45443f; }
/* A vállalások: nagy sablonbetűvel; amikor a telefonon megjön a bizonyító üzenet, a sor
   téglavörösre vált, és piros ceruzás pipát kap. A végére mind az öt ki van pipálva. */
.pledges { margin: 30px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.pledge { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #d3cfc6; }
.pledge__text { font: 800 clamp(26px, 2.5vw, 40px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: #6b675f; transition: color 0.45s ease; }
.pledge__tick { flex: none; width: 34px; height: 34px; overflow: visible; }
.pledge__tick path { fill: none; stroke: #c23b2c; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.5s ease 0.15s, opacity 0.05s 0.15s; }
.pledge.is-done .pledge__text { color: var(--ink); }
.pledge.is-done .pledge__tick path { stroke-dashoffset: 0; opacity: 0.95; }
/* az épp bizonyított vállalás egy pillanatra téglavörös */
.pledge.is-now .pledge__text { color: var(--brick); }
/* animáció nélkül (vagy amíg a JS nem fut) minden vállalás teljes színű, pipával */
html:not(.js) .pledge .pledge__text { color: var(--ink); }
html:not(.js) .pledge__tick path { stroke-dashoffset: 0; opacity: 0.95; }
.promise__cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--brick);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.promise__cta:hover { background: #983621; }

/* ---------- A: telefon, csevegés ---------- */
.phone {
  justify-self: center;
  width: min(370px, 100%);
  height: min(740px, 82svh);
  min-height: 600px;
  padding: 10px;
  border-radius: 48px;
  background: #18191b;
  box-shadow: 0 40px 80px -30px rgba(30, 24, 16, 0.45), inset 0 0 0 2px #2c2d30;
}
.phone__screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: #ECE6DC; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 34px 18px 12px; background: #fff; border-bottom: 1px solid #e3ddd2; }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #F4F3F0; color: #17181A; }
.chat__avatar svg { width: 24px; height: 24px; }
.chat__who { display: flex; flex-direction: column; line-height: 1.25; }
.chat__who b { font-size: 15px; }
.chat__who small { font-size: 12px; color: var(--muted); }
/* az üzenetek alulról töltődnek, a régiek felfelé kicsúsznak, mint egy csevegésben */
.chat__body { position: relative; flex: 1; overflow: hidden; }
.chat__list { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 12px 12px; list-style: none; }
.chat__day { align-self: center; margin: 6px 0 2px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #6b6963; }
.msg { position: relative; max-width: 80%; padding: 8px 12px 18px; border-radius: 16px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: 12px; color: #8a877f; }
.msg--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #F6DDD3; border-bottom-right-radius: 4px; }
.msg--photo { padding-top: 4px; }
.msg--photo img { display: block; width: 100%; height: auto; margin: 0 -8px 8px; width: calc(100% + 16px); border-radius: 12px; }
.msg b { white-space: nowrap; } /* az ár ne törjön ketté */
/* csatolt PDF az üzenetben */
.msg--file { padding-top: 6px; }
.file { display: flex; align-items: center; gap: 10px; margin: 0 -6px 8px; padding: 8px 10px; border-radius: 10px; background: #F2EFEA; }
.file__icon { display: grid; place-items: center; width: 34px; height: 42px; border-radius: 4px; background: #c23b2c; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.file__name { display: flex; flex-direction: column; line-height: 1.3; }
.file__name b { font-size: 13px; }
.file__name small { font-size: 12px; color: #8a877f; }
.chat__typing { align-self: flex-start; display: none; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 4px; background: #fff; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #a7a39a; animation: typing 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__input { margin: 8px 10px 14px; padding: 11px 16px; border-radius: 999px; background: #fff; font-size: 14px; color: #6f6c66; }
/* érkezés: a JS adja a .is-on-t; addig az üzenet nem foglal helyet */
.js .chat--live [data-msg] { display: none; }
.js .chat--live [data-msg].is-on { display: block; animation: msg-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); }
.js .chat--live .chat__day.is-on { display: block; }
.js .chat--live .chat__typing.is-on { display: flex; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- keskeny képernyő ---------- */
@media (max-width: 960px) {
  .promise__inner { grid-template-columns: 1fr; }
  /* egymás alatt a telefon a vállalások alá kerülne, a pipák a képen kívül futnának le: nincs telefon */
  .phone { display: none; }
}
/* ============ AJÁNLATKÉRÉS ============ */
/* a JS a hidden attribútummal rejt; a display-szabályok ne írják felül */
.quote [hidden] { display: none !important; }
.quote { padding: clamp(90px, 11vw, 150px) var(--pad); background: var(--bg); }
.quote__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 110px); align-items: start; max-width: 1240px; margin: 0 auto; }
.quote .eyebrow { color: var(--muted); }
.quote__title { margin: 0; font: 800 clamp(46px, 5vw, 82px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.quote__title .quote__hl { color: var(--brick); }
.quote__points { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #d3cfc6; }
.quote__points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d3cfc6; font-weight: 600; }
.quote__points li::before { content: '✓'; color: var(--brick); font-weight: 700; }
.quote__call { margin: 28px 0 0; color: var(--muted); }
.quote__phone { padding: 0; border: 0; background: none; font: 800 26px/1 var(--display); letter-spacing: 0.04em; color: var(--ink); cursor: pointer; }
.quote__demo { margin: 8px 0 0; font-size: 13px; color: var(--brick); }
.quote__rating { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.quote__rating .stars { margin-right: 6px; }

.qcard { position: relative; min-height: 520px; padding: clamp(24px, 3vw, 40px); background: #fff; box-shadow: 0 40px 80px -40px rgba(40, 32, 24, 0.35), 0 0 0 1px #e6e2da; }
.qform__top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.qform__count { font: 800 18px/1 var(--display); letter-spacing: 0.06em; }
.qform__bar { flex: 1; height: 4px; background: #ece8e0; }
.qform__bar span { display: block; width: 25%; height: 100%; background: var(--brick); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.qstep { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.qstep.is-on { display: block; animation: qin 0.35s ease; }
@keyframes qin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.qstep legend { margin-bottom: 20px; padding: 0; font: 800 clamp(26px, 2.4vw, 36px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }

.qjobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qjob { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; background: #2a2b2e; }
.qjob input { position: absolute; opacity: 0; pointer-events: none; }
.qjob img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.4s ease, opacity 0.2s; }
.qjob span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(to top, rgba(14, 15, 16, 0.85), rgba(14, 15, 16, 0)); color: #fff; font: 800 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.qjob:hover img { transform: scale(1.05); opacity: 1; }
.qjob--other { display: grid; place-items: center; background: #F4F3F0; box-shadow: inset 0 0 0 1px #d3cfc6; }
.qjob--other span { position: static; padding: 0; background: none; color: var(--ink); }
.qjob:has(input:checked) { box-shadow: 0 0 0 3px var(--brick); }
.qjob:has(input:checked) img { opacity: 1; }
.qjob:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brick); color: #fff; font-weight: 700; }
.qjob:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.qfield { display: block; margin-bottom: 18px; }
.qfield > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #45443f; }
.qfield input, .qfield textarea { width: 100%; padding: 13px 14px; border: 1px solid #d3cfc6; background: #FBFAF8; font: 500 15px/1.4 'Montserrat', sans-serif; color: var(--ink); resize: vertical; }
.qfield input:focus, .qfield textarea:focus { outline: none; border-color: var(--brick); background: #fff; }
.qpills { display: flex; flex-wrap: wrap; gap: 8px; }
.qpills label { cursor: pointer; }
.qpills input { position: absolute; opacity: 0; }
.qpills span { display: inline-block; padding: 10px 16px; border: 1px solid #d3cfc6; border-radius: 999px; font-size: 14px; font-weight: 600; }
.qpills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.qpills input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }

.qdrop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed #cfcbc2; background: #FBFAF8; text-align: center; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.qdrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qdrop b { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--brick); }
.qdrop span { font-size: 13px; color: var(--muted); }
.qdrop.is-over { border-color: var(--brick); background: #fff; }
.qthumbs { display: flex; gap: 10px; margin-top: 14px; }
.qthumbs img { width: 96px; height: 72px; object-fit: cover; box-shadow: 0 0 0 3px #7A766F; }
.qhint { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.qconsent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #45443f; cursor: pointer; }
.qconsent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brick); }
.qconsent a { color: var(--brick); }
.qerr { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--brick); }

.qform__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.qbtn { margin-left: auto; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--brick); color: #fff; font: 600 15px/1 'Montserrat', sans-serif; cursor: pointer; transition: background-color 0.2s; }
.qbtn:hover { background: #983621; }
.qbtn--ghost { margin-left: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #d3cfc6; }
.qbtn--ghost:hover { background: #F4F3F0; }
.qbtn[disabled] { opacity: 0.6; cursor: progress; }

/* visszaigazolás */
.qdone:focus { outline: none; }
.qdone { display: flex; flex-direction: column; justify-content: center; min-height: 480px; animation: qin 0.4s ease; }
.qdone__demo { margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.qdone--b { align-items: center; text-align: center; }
.mixer { width: min(240px, 60%); transform-origin: 50% 90%; }
.mixer img { display: block; width: 100%; height: auto; }
.mixer.is-on { animation: mix-shake 0.11s linear infinite; }
@keyframes mix-shake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(1.5px, -1px) rotate(0.6deg); } 50% { transform: translate(0, 1px) rotate(0); } 75% { transform: translate(-1.5px, -1px) rotate(-0.6deg); } }
.qdone__title { margin: 18px 0 0; font: 800 32px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.qdone__text { margin: 10px 0 0; font-size: 17px; font-weight: 600; }

@media (max-width: 960px) {
  .quote__inner { grid-template-columns: 1fr; }
  .qjobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qcard { min-height: 0; }
}

/* ============ VÉLEMÉNYEK ============ */
.reviews { padding: clamp(90px, 11vw, 150px) var(--pad); background: #1A1B1D; color: #F4F3F0; }
.reviews__inner { max-width: 1240px; margin: 0 auto; }
.reviews .eyebrow { color: #B9B7B1; }
/* a cím a térkép fölött (asztalon rajta, a bal felső sarkában), az értékelés a jobb oszlop tetején */
.reviews__head { padding-bottom: clamp(20px, 2.6vw, 36px); }
.reviews__title { margin: 0; font: 800 clamp(44px, 5.2vw, 84px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.rating { display: flex; align-items: center; gap: 16px; }
.rating__num { font: 800 clamp(64px, 6.4vw, 104px)/0.9 var(--display); color: #F4F3F0; }
.rating__meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #B9B7B1; }
.stars { color: #E0A33A; letter-spacing: 0.12em; font-size: 15px; white-space: nowrap; }
.rating .stars { font-size: 22px; }
.reviews__note { margin: 18px 0 0; font-size: 12px; color: #8a877f; }


/* ---------- HOL DOLGOZUNK: térkép ---------- */
.vb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.vb__panel .rating { margin-bottom: clamp(18px, 2.2vw, 30px); }
.vb__map { position: relative; }
.map { display: block; width: 100%; height: auto; max-height: 78svh; margin: 0 auto; overflow: hidden; }
.map__city { fill: #232528; stroke: #44464b; stroke-width: 1.5; stroke-dasharray: 5 4; }
.map__city-label { fill: #5d5f63; font: 800 15px/1 var(--display); letter-spacing: 0.2em; text-anchor: middle; }
.map__river { fill: none; stroke: #2f4350; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.map__river--branch { stroke-width: 3.5; }
.map__credit { margin: 8px 0 0; font-size: 12px; color: #9a9ca0; }
.map__credit a { color: inherit; }
.map__minor circle { fill: #4a4c50; }
.map__minor text { fill: #6d6f73; font: 500 11px/1 'Montserrat', sans-serif; }
/* tégla alakú tűk, mellettük a település sötét címkében; a kiválasztott tű megemelkedik, lüktet,
   a címkéje téglavörös */
.pin { cursor: pointer; outline: none; }
.pin__pulse { fill: none; stroke: var(--brick); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin__brick { fill: var(--brick); stroke: #F4F3F0; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.3s ease; }
.pin__chip { fill: rgba(16, 17, 19, 0.85); stroke: #3a3c40; stroke-width: 1; transition: fill 0.25s ease, stroke 0.25s ease; }
.pin__label { fill: #F4F3F0; font: 700 12px/1 'Montserrat', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.pin.is-active .pin__brick, .pin:hover .pin__brick, .pin:focus-visible .pin__brick { transform: translateY(-3px) scale(1.3); filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.6)); }
.pin.is-active .pin__chip { fill: var(--brick); stroke: var(--brick); }
.pin:hover .pin__chip, .pin:focus-visible .pin__chip { stroke: #F4F3F0; }
.pin.is-active .pin__pulse { animation: pin-pulse 1.8s ease-out infinite; }
@keyframes pin-pulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }

.vb__panel { min-height: 100%; }
.vb__photo { overflow: hidden; box-shadow: 0 0 0 5px #7A766F; aspect-ratio: 16 / 10; }
.vb__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.vb__place { margin: 22px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--line); }
.vb__quote { margin: 12px 0 0; font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; min-height: 3.9em; }
.vb__who { margin: 14px 0 0; font-size: 15px; }
.vb__who .stars { margin-left: 8px; }
.vb__nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13px; color: #B9B7B1; }
.vb__btn { width: 44px; height: 44px; border: 1px solid #44464a; border-radius: 50%; background: transparent; color: #F4F3F0; font-size: 18px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.vb__btn:hover { background: var(--brick); border-color: var(--brick); }
.vb__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vb__panel.is-swap .vb__photo img, .vb__panel.is-swap .vb__quote { opacity: 0; }
.vb__quote { transition: opacity 0.3s ease; }

@media (max-width: 960px) {
  .reviews__head { flex-direction: column; align-items: flex-start; }
  .vb { grid-template-columns: 1fr; }
  .map { max-height: none; }
}

/* ============ GYIK ============ */
.faq { padding: clamp(90px, 11vw, 150px) var(--pad); background: #EAE7E1; }
.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 .eyebrow { color: #5c5b57; }
.faq__title { margin: 0; font: 800 clamp(46px, 5vw, 82px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.faq__ask { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--brick); 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 #d3cfc6; }
.faq__item summary { position: relative; display: block; padding: 24px 56px 24px 0; font: 800 clamp(22px, 1.9vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
/* plusz jel, nyitva mínusz: a függőleges szára elfordul */
.faq__item summary::before, .faq__item summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 20px; height: 2.5px; margin-top: -1px; background: var(--brick); 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(--brick); }
/* sorszám, a sor alján balról kihúzódó vonal, nyitáskor a plusz mínusszá fordul */
.faq__item { position: relative; }
.faq__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.faq__item:hover::after, .faq__item[open]::after { transform: scaleX(1); }
.faq__num { display: inline-block; min-width: 2.4em; font-size: 0.6em; vertical-align: 0.32em; color: #a39e94; transition: color 0.3s; }
.faq__item summary { transition: color 0.3s, padding-left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq__item summary:hover { padding-left: 10px; }
.faq__item:hover .faq__num, .faq__item[open] .faq__num { color: var(--brick); }
.faq__item summary::before, .faq__item summary::after { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq__item[open] summary::before { transform: rotate(180deg); }
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p { max-width: 36em; margin: -6px 0 0; padding: 0 0 24px 2.4em; font-size: 16px; line-height: 1.6; color: #45443f; }

/* ============ LÁBLÉC ============ */
.foot { padding: clamp(64px, 7vw, 96px) var(--pad) 28px; background: var(--bg); color: var(--ink); }
.foot__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; max-width: 1240px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #d3cfc6; }
.foot__brand p { max-width: 24em; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.foot__nav { display: flex; flex-direction: column; gap: 10px; }
.foot__nav a, .foot__links a { font-size: 14px; font-weight: 600; text-decoration: none; }
.foot__nav a:hover, .foot__links a:hover { color: var(--brick); }
.foot__contact p { margin: 0 0 12px; font: 800 22px/1.1 var(--display); letter-spacing: 0.03em; }
.foot__contact span { display: block; margin-bottom: 4px; font: 600 12px/1 'Montserrat', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot__contact .foot__demo { font: 500 12px/1.4 'Montserrat', sans-serif; letter-spacing: 0; color: var(--muted); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: 1240px; margin: 22px auto 0; font-size: 12px; color: var(--muted); }
.foot__links { display: flex; gap: 20px; }

/* ============ WEBIPAROS ============ */
.wp { padding: clamp(80px, 9vw, 120px) var(--pad) 40px; background: #0F172A; color: #F4F3F0; }
.wp__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: end; max-width: 1240px; margin: 0 auto; }
.wp .eyebrow { color: #94a3b8; }
.wp .eyebrow::before { background: #C2410C; }
.wp__title { margin: 0; font: 700 clamp(38px, 4.2vw, 64px)/1.05 'Montserrat', sans-serif; letter-spacing: -0.02em; }
.wp__lead { max-width: 38em; margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: #cbd5e1; }
.wp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.wp__btn { display: inline-block; padding: 15px 26px; border-radius: 10px; background: #C2410C; color: #fff; font-weight: 600; text-decoration: none; transition: background-color 0.2s; }
.wp__btn:hover { background: #9a3412; }
.wp__mail { font-size: 14px; color: #cbd5e1; }
.wp__facts { margin: 0; border-top: 1px solid #334155; }
.wp__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid #334155; }
.wp__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; }
.wp__facts dd { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; }
.wp__fine { max-width: 1240px; margin: clamp(48px, 6vw, 72px) auto 0; font-size: 12px; color: #94a3b8; }
.wp__fine a { color: #94a3b8; }

@media (max-width: 960px) {
  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .foot__inner { grid-template-columns: 1fr; }
  .wp__inner { grid-template-columns: 1fr; }
}


/* ============ MOBIL ============ */
@media (max-width: 1100px) {
  /* tableten nincs lépcső: a cím felül, alatta két oszlopban, alulról felfelé sorrendben */
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall > * { grid-column: auto; grid-row: auto; }
  .works__head { grid-column: 1 / -1; padding: 0 0 24px; }
  .b-falazas { order: 1; } .b-koszoru { order: 2; } .b-alapozas { order: 3; } .b-viz { order: 4; }
  .b-kerites { order: 5; } .b-vakolas { order: 6; } .b-javitas { order: 7; } .b-ask { order: 8; }
}
@media (max-width: 1100px) {
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hdr__cta { margin-left: auto; }
}
@media (max-width: 820px) {
  .hdr { padding-top: 18px; }
  .brand__sub { display: none; }
  .hdr__cta { padding: 9px 14px; font-size: 13px; }
  .hero { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; justify-content: center; padding: 84px var(--pad) 96px; }
  /* mobilon a képernyő széléig ér, hogy az elemek minél nagyobbak legyenek */
  .blocks { position: relative; left: auto; top: auto; width: calc(100% + 2 * var(--pad)); margin: 0 0 34px calc(-1 * var(--pad)); }
  .hero__title { position: relative; left: auto; bottom: auto; font-size: clamp(40px, 12.4vw, 72px); }
  .hero__intro { position: relative; bottom: auto; right: auto; order: 2; max-width: none; margin-top: 60px; }
  .hero__rating { position: relative; top: auto; right: auto; order: 3; align-self: flex-start; margin-top: 22px; }
  .hero__down { bottom: 22px; width: 46px; height: 46px; margin-left: -23px; }
  /* mobilon két oszlopban csempék: fotó, alatta a név és egy rövid sor. Az egész csempe
     az ajánlatkérőhöz visz (a munka előre kiválasztva); a hely és a mester megjegyzése kimarad. */
  .wall { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .works__head { padding-bottom: 18px; }
  .brick { display: flex; flex-direction: column; aspect-ratio: auto; }
  .brick__img { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .brick__place, .brick__more { display: none; }
  .brick__body { position: static; flex: 1; display: flex; flex-direction: column; padding: 12px 12px 14px; background: #1F2023; }
  .brick__name { font-size: 21px; }
  .brick__short { margin-top: 5px; font-size: 12px; line-height: 1.4; }
  .brick__cta { margin-top: auto; padding-top: 10px; font-size: 12px; }
  .brick__cta::after { content: ''; position: absolute; inset: 0; }
  .brick--ask { justify-content: center; padding: 16px 14px; }
  .brick--ask span { font-size: 13px; }
  .brick--ask b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-fade] { opacity: 1; transform: none; animation: none; }
}

/* ============ Asztali: minden szakasz férjen el egy képernyőn ============
   Az Egyenes beszéd, a Vélemények és az ajánlatkérő eredetileg magasabb volt egy 900 px-es
   képernyőnél, így sosem látszott egészben. A térközök és a betűméretek a képernyő
   magasságához igazodnak; a tartalom ugyanaz. */
@media (min-width: 1101px) {
  .promise, .reviews, .quote { padding-top: clamp(56px, 7svh, 150px); padding-bottom: clamp(56px, 7svh, 150px); }
  .promise { padding-top: calc(clamp(24px, 4svh, 120px) + var(--ch, 0px)); }
  /* pontosan egy képernyőnyi szakaszok, a tartalom függőlegesen középen: így sosem lóg be a következő */
  .promise, .reviews, .quote, .faq { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .promise > *, .reviews > *, .quote > *, .faq > * { width: 100%; }

  /* Egyenes beszéd */
  /* a falsor alatt is férjen el egy képernyőn (alacsonyabb böngészőablakban is, a gombbal együtt) */
  .promise { padding-bottom: clamp(24px, 4svh, 100px); }
  .promise__title { font-size: clamp(36px, min(6.4vw, 7.4svh), 104px); }
  .promise__sub { margin-top: min(18px, 1.6svh); font-size: clamp(14px, min(1.3vw, 2.1svh), 19px); }
  .pledges { margin-top: min(24px, 2.2svh); }
  .pledge { padding: clamp(5px, 1svh, 10px) 0; }
  .pledge__text { font-size: clamp(18px, min(2.5vw, 2.9svh), 40px); }
  .promise__cta { margin-top: min(24px, 2.4svh); }
  .phone { height: min(740px, calc(100svh - var(--ch, 0px) - 15svh)); min-height: 0; }

  /* Vélemények: a térkép kitölti a bal felet, teljes magasságban; a cím a térkép bal felső sarkában
     (mögötte a térkép elhalványul), a hivatkozás az alsó sarkában; jobbra a kiválasztott munka */
  .reviews { padding: 0; }
  .reviews > .reviews__inner { max-width: none; height: 100%; }
  .reviews .vb { height: 100%; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: center; }
  .reviews .vb__map { align-self: stretch; height: 100%; overflow: hidden; }
  .reviews .vb__map::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 58% 38% at 0 0, #1A1B1D 45%, rgba(26, 27, 29, 0)); }
  .reviews .map { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
  .reviews__head { position: absolute; z-index: 2; top: 0; left: 0; padding: clamp(40px, 8svh, 96px) 0 0 var(--pad); pointer-events: none; }
  .reviews__title { font-size: clamp(44px, min(4.8vw, 8.5svh), 100px); }
  .map__credit { position: absolute; z-index: 2; right: clamp(16px, 2vw, 32px); bottom: 14px; margin: 0; font-size: 11px; color: #707276; }
  .reviews .vb__panel { min-height: 0; padding: 0 var(--pad) 0 clamp(32px, 4vw, 80px); }
  .rating__num { font-size: clamp(56px, min(6.4vw, 9svh), 104px); }
  .vb__photo { aspect-ratio: 2 / 1; }
  .vb__place { margin-top: 16px; }
  /* mindig 3 sornyi hely, hogy a vélemények váltásakor ne ugráljon az oldal */
  .vb__quote { font-size: clamp(20px, min(2.1vw, 3svh), 32px); min-height: 3.9em; }
  .vb__nav { margin-top: 16px; }
  .reviews__note { margin-top: 18px; font-size: 11px; }
}

/* ============ SZAKASZOK MOZGÁSA (a fal után) ============
   Mind egyszer fut le, a JS teszi rá az .is-in-t; csökkentett mozgásnál minden áll. */

/* Falsor a fal után: a világos szakasz felső élén két sor tégla futókötésben. Görgetésre
   alulról felfelé, balról jobbra rakódik fel (közben lépcsős falvég), a végén kész a sor.
   A JS rakja ki és állítja a téglák helyét (--y: 0 = a helyén, 1 = lent, a szakaszba bújva;
   --d: mennyit kell lesüllyednie, hogy eltűnjön). */
.course { position: absolute; left: 0; right: 0; top: 0; height: var(--ch, 0px); overflow: hidden; background: #1A1B1D; pointer-events: none; }
.promise { position: relative; }
@media (max-width: 1100px) { .promise { padding-top: calc(clamp(90px, 11vw, 150px) + var(--ch, 0px)); } }
.course span { position: absolute; background: #EAE7E1; border-radius: 1px; transform: translateY(calc(var(--y, 1) * var(--d, 100px))); will-change: transform; }

/* Szétváló cím: „Egyenes” balról, „beszéd.” jobbról csúszik be */
.split { display: inline-block; }
.js [data-split] .split { opacity: 0; transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js [data-split] .split--l { transform: translateX(-0.6em); }
.js [data-split] .split--r { transform: translateX(1.4em); transition-delay: 0.08s; }
.js [data-split].is-in .split { opacity: 1; transform: none; }

/* A vállalások jobbról, egymás után úsznak be (a pipát továbbra is a telefon üzenetei húzzák) */
.js [data-slide-list] > * { opacity: 0; transform: translateX(48px); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-slide-list].is-in > * { opacity: 1; transform: none; }
/* a telefon jobbról csúszik be, mint egy fiók */
.js [data-drawer] { opacity: 0; transform: translateX(90px) rotate(2deg); transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js [data-drawer].is-in { opacity: 1; transform: none; }

/* Soronként kibújó címek: minden sor a maszkja mögül, alulról jön elő */
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln > span { display: block; }
.js [data-lines] .ln > span { transform: translateY(105%); transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1); }
.js [data-lines] .ln:nth-child(2) > span { transition-delay: 0.08s; }
.js [data-lines] .ln:nth-child(3) > span { transition-delay: 0.16s; }
.js [data-lines].is-in .ln > span { transform: none; }

/* általános beúszás (felirat, alcím, gombok): alulról, kis késéssel */
.js [data-up] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-up].is-in { opacity: 1; transform: none; }
/* képek: alulról húzódnak fel */
.js [data-wipe] { clip-path: inset(100% 0 0 0); transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.js [data-wipe].is-in { clip-path: inset(0); }

/* Térkép: a Budapest-határ és a Duna kirajzolódik, a település-pontok előtűnnek, a tűk egyenként
   leesnek a helyükre (a JS állítja a vonalak hosszát) */
.js .map.is-drawing .map__city { fill-opacity: 0; transition: fill-opacity 0.8s ease 0.9s; }
.js .map.is-drawing .map__city, .js .map.is-drawing .map__river { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js .map.is-drawing.is-in .map__city, .js .map.is-drawing.is-in .map__river { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.45, 0, 0.2, 1), fill-opacity 0.8s ease 0.9s; }
.js .map.is-drawing.is-in .map__city { fill-opacity: 1; }
.js .map.is-drawing .map__minor, .js .map.is-drawing .map__city-label { opacity: 0; transition: opacity 0.6s ease 1s; }
.js .map.is-drawing.is-in .map__minor, .js .map.is-drawing.is-in .map__city-label { opacity: 1; }
.js .map.is-drawing .pin { opacity: 0; transform: translateY(-46px); transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(1.1s + var(--i, 0) * 0.12s); }
.js .map.is-drawing.is-in .pin { opacity: 1; transform: none; }

/* Óriási ZSINÓRPAD a lábléc alján: a betűk görgetésre, egyenként alulról rakódnak le
   (--y: 1 = lent, 0 = a helyén), alatta a zsinór balról kihúzódik (--z: 0…1) */
.giant { position: relative; max-width: 1240px; margin: clamp(40px, 6vw, 80px) auto 0; padding-top: 0.12em; overflow: hidden; font: 800 var(--gs, 17vw)/0.84 var(--display); letter-spacing: 0.01em; white-space: nowrap; color: var(--ink); user-select: none; }
.giant span { display: inline-block; transform: translateY(calc(var(--y, 0) * 110%)); will-change: transform; }
.giant__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); transform: scaleX(var(--z, 1)); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] .split, .js [data-slide-list] > *, .js [data-drawer], .js [data-lines] .ln > span, .js [data-up], .js [data-wipe] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .course { display: none; }
}

/* Egyenes beszéd → Vélemények oldalra (asztalon, a JS kapcsolja be: .is-h). A lap a képernyőhöz tapad;
   egy kicsit lejjebb görgetve a JS átviszi (--hx: 0…1): az Egyenes beszéd balra kimegy, a Vélemények
   jobbról bejön. A rétegek eltérő sebességgel mozognak: a régi gyorsabban távozik, az új lemaradva érkezik. */
.hpair.is-h { height: calc(100vh * 1.35); }
.hpair.is-h .hpair__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hpair.is-h .hpair__track { display: flex; width: 200%; height: 100%; transform: translateX(calc(var(--hx, 0) * -50%)); }
.hpair.is-h .promise, .hpair.is-h .reviews { flex: none; width: 50%; height: 100%; min-height: 0; overflow: hidden; }
.hpair.is-h .promise__copy { translate: calc(var(--hx, 0) * -14vw) 0; }
.hpair.is-h .phone { translate: calc(var(--hx, 0) * -30vw) 0; }
.hpair.is-h .reviews__head { translate: calc((1 - var(--hx, 0)) * 26vw) 0; }
.hpair.is-h .map { translate: calc((1 - var(--hx, 0)) * 10vw) 0; }
.hpair.is-h .vb__panel { translate: calc((1 - var(--hx, 0)) * 40vw) 0; }
/* keskenyebb képernyőn nincs oldalra váltás: a Vélemények rétegei jobbról úsznak be (data-right) */
.js [data-right] { opacity: 0; transform: translateX(110px); transition: opacity 0.7s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.js [data-right].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-right] { opacity: 1; transform: none; transition: none; } }

/* telefonon a demó-telefon és a lábléc linkjei kényelmesen koppinthatók */
@media (max-width: 820px) {
  .quote__phone { padding: 9px 0; margin: -9px 0; }
  .foot__nav { gap: 0; }
  .foot__nav a, .foot__links a, .wp__mail { display: inline-block; padding: 11px 0; }
}
