/* ==========================================================================
   Falkit Kft. – fő stíluslap (2026)
   Arculat: a logó falmetszete – tégla, sötétkék vízzár, víz. Éjkék alap, téglapiros cselekvés.
   ========================================================================== */

/* ---------- Betű: Space Grotesk (saját tárhelyről, latin + latin-ext a magyar ékezetekhez) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 300 700; font-style: normal; font-display: swap; 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: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 700; font-style: normal; font-display: swap; 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; }

/* ---------- Tokenek ---------- */
:root {
  --night:      #0b1433;   /* éjkék alap – sötét szakaszok */
  --abyss:      #070d24;   /* lábléc */
  --navy:       #1f2f6e;   /* a logó vízzár-sávja */
  --ink:        #16223d;
  --ink-soft:   #4a5670;
  --plaster:    #f1f2ee;   /* száraz mészvakolat */
  --paper:      #ffffff;
  --brick:      #d8362f;   /* a logó téglája */
  --brick-dark: #b02a24;
  --water:      #2f63b5;   /* a logó vízvonalai */
  --aqua:       #7fa6f2;   /* víz sötét háttéren */
  --line:       #dde1e7;
  --on-dark:    rgb(255 255 255 / 0.78);

  --font-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --fs-body: 1.0625rem;

  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 4.75rem;

  interpolate-size: allow-keywords;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65; font-optical-sizing: auto;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brick-dark); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 780; letter-spacing: -.01em; }
h3 { font-size: 1.3125rem; font-weight: 720; }
p { margin: 0 0 1em; }
strong, b { font-weight: 650; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.large { font-size: 1.3125rem; line-height: 1.55; }
.plain { list-style: none; margin: 0; padding: 0; }
.h-display { font-size: clamp(2rem, 1.25rem + 3vw, 3.6rem); font-weight: 850; letter-spacing: -.025em; line-height: 1.02; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 200; background: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: .5rem; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brick); margin-right: .6rem; vertical-align: .1em; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(216 54 47 / .55); } 70% { box-shadow: 0 0 0 .8rem rgb(216 54 47 / 0); } 100% { box-shadow: 0 0 0 0 rgb(216 54 47 / 0); } }

/* ---------- Gombok ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 720 1.0625rem/1.2 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .18); transform: translateY(101%); transition: transform .35s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn--brick { background: var(--brick); color: #fff; box-shadow: 0 10px 30px -10px rgb(216 54 47 / .7); }
.btn--brick:hover { color: #fff; }
.btn--glass { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .28); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { color: #fff; border-color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost::after { background: var(--navy); }
.btn--ghost:hover { color: #fff; }
.btn--lg { min-height: 3.6rem; padding-inline: 1.8rem; font-size: 1.125rem; }
.round-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font: 700 1.5rem/1 var(--font-head); cursor: pointer; transition: background .2s, color .2s; }
.round-btn:hover { background: var(--navy); color: #fff; }

/* ---------- Olvasási folyamatjelző ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brick), #ff7a59); transform-origin: left; transform: scaleX(0); }

/* ---------- Fejléc: lebegő üveg-sáv ---------- */
.hdr { position: fixed; top: .75rem; left: 0; right: 0; z-index: 100; padding-inline: var(--gutter); transition: transform .45s var(--ease); view-transition-name: hdr; }
.hdr.is-hidden { transform: translateY(-140%); }
.hdr__shell {
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; height: var(--hdr-h);
  display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem .5rem 1rem;
  border-radius: 999px; background: rgb(11 20 51 / .55); border: 1px solid rgb(255 255 255 / .12);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  transition: background .3s, box-shadow .3s;
}
.hdr.is-scrolled .hdr__shell { background: rgb(11 20 51 / .88); box-shadow: 0 18px 40px -20px rgb(0 0 0 / .6); }
.hdr__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; color: #fff; }
.hdr__brand:hover { color: #fff; }
.hdr__brand .logo-mark { width: 2.9rem; height: auto; flex: none; transition: transform .6s var(--ease); }
.hdr__brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.hdr__name { font: 860 1.45rem/1 var(--font-head);  letter-spacing: .01em; display: flex; flex-direction: column; }
.hdr__since { font-weight: 500; font-size: .75rem;  color: var(--on-dark); letter-spacing: .02em; margin-top: .2rem; }
.hdr__nav { display: none; }
.hdr__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.hdr__item { position: relative; }
.hdr__link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .62rem; border-radius: 999px; white-space: nowrap;
  color: #fff; text-decoration: none; font: 600 .95rem var(--font-head); background: none; border: 0; cursor: pointer; transition: background .2s;
}
.hdr__link:hover, .hdr__item--mega.is-open .hdr__trigger { background: rgb(255 255 255 / .1); color: #fff; }
.hdr__link[aria-current="page"], .hdr__link.is-current { background: rgb(255 255 255 / .16); }
.hdr__caret { width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.hdr__item--mega.is-open .hdr__caret { transform: rotate(225deg) translateY(-2px); }
.hdr :focus-visible { outline-color: #fff; }
.hdr__phone { display: none; align-items: center; gap: .5rem; padding: .6rem .9rem; color: #fff; text-decoration: none; font: 760 1.05rem var(--font-head); white-space: nowrap; }
.hdr__phone:hover { color: #fff; }
.hdr__pulse { width: .55rem; height: .55rem; border-radius: 50%; background: #3fd18a; animation: pulse-g 2.2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgb(63 209 138 / .55); } 70% { box-shadow: 0 0 0 .7rem rgb(63 209 138 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 209 138 / 0); } }
.hdr__cta { display: none; min-height: 2.9rem; flex: none; white-space: nowrap; padding-inline: 1.2rem; }
.hdr__burger { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .06); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.hdr__burger span { display: block; width: 1.3rem; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s 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); }

/* mega menü */
.mega {
  position: absolute; top: calc(100% + 1rem); left: 50%; width: min(40rem, 90vw);
  padding: .9rem; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 30px 70px -20px rgb(7 13 36 / .55);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px) scale(.98); transform-origin: top center;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.hdr__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .25s, transform .35s var(--ease); }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.mega__card { display: block; padding: .5rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); font: 700 1rem var(--font-head); transition: background .2s; }
.mega__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); margin-bottom: .55rem; transition: transform .45s var(--ease); }
.mega__card:hover { background: var(--plaster); color: var(--brick-dark); }
.mega__card:hover img { transform: scale(1.04); }
.mega__card[aria-current="page"] { background: var(--plaster); }
.mega :focus-visible { outline-color: var(--water); }

@media (min-width: 64rem) {
  .hdr__nav, .hdr__phone { display: flex; }
  .hdr__burger { display: none; }
}
@media (min-width: 64rem) { .hdr__cta { display: inline-flex; } }
@media (min-width: 64rem) and (max-width: 74.99rem) { .hdr__phone { display: none; } }
@media (min-width: 64rem) and (max-width: 82rem) { .hdr__link { padding-inline: .55rem; font-size: .92rem; } .hdr__since { display: none; } }

/* mobil menü */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--night); color: #fff; padding: calc(var(--hdr-h) + 2.5rem) var(--gutter) 6rem; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav.is-open { animation: mnav-in .5s var(--ease) both; }
@keyframes mnav-in { from { clip-path: circle(0 at calc(100% - 3rem) 3rem); } to { clip-path: circle(150% at calc(100% - 3rem) 3rem); } }
.mnav__cta { width: 100%; margin-bottom: 1.75rem; }
.hdr__cta[aria-current="page"] { box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.mnav__label { font: 600 .9rem var(--font-head); color: var(--aqua); margin: 0 0 .5rem; }
.mnav__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mnav__list li { opacity: 0; transform: translateY(16px); }
.mnav.is-open .mnav__list li { animation: rise .5s var(--ease) both; animation-delay: calc(.12s + var(--i) * .045s); }
.mnav__list a { display: block; padding: .35rem 0; color: #fff; text-decoration: none; font: 800 clamp(1.6rem, 6vw, 2.2rem)/1.15 var(--font-head); letter-spacing: -.015em; }
.mnav__list a[aria-current="page"] { color: var(--aqua); }
.mnav__list--more a { font-size: clamp(1.25rem, 4.5vw, 1.5rem); font-weight: 650; }
.mnav__contacts { display: grid; gap: .75rem; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 1.25rem; }
.mnav__contacts a { color: #fff; text-decoration: none; font: 750 1.2rem var(--font-head); display: flex; flex-direction: column; }
.mnav__contacts span { font-weight: 500; font-size: .85rem; color: var(--on-dark); }
.mnav :focus-visible { outline-color: #fff; }

/* ---------- Belépő animációk ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-big { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
.js [data-anim="fade"] { animation: fade-up .9s var(--ease) both; animation-delay: var(--d, 0s); }
.js [data-anim="rise"] { animation: rise-big 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* címsor szavanként, a betű szélességével együtt „kinyúlva” */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; transform: translateY(105%);  animation: word-in 1s var(--ease) forwards; animation-delay: calc(.12s + var(--w) * .06s); }
@keyframes word-in { to { transform: none;  } }

/* ---------- Sötét szakaszok közös háttere ---------- */
.hero, .phero, .diag, .cta { position: relative; background: var(--night); color: #fff; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(47 99 181 / .45), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(216 54 47 / .18), transparent 60%);
}
.hero__glow::after { /* halvány téglakötés-rajzolat */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: linear-gradient(rgb(255 255 255) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255) 1px, transparent 1px);
  background-size: 110px 40px, 110px 80px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero h1, .phero h1, .diag h2, .cta h2, .hero h2 { color: #fff; }
.hero :focus-visible, .phero :focus-visible, .diag :focus-visible, .cta :focus-visible { outline-color: #fff; }

/* ---------- Főoldali hero ---------- */
.hero { padding: calc(var(--hdr-h) + 3.5rem) 0 6.5rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__kicker { font: 600 1rem var(--font-head); color: var(--on-dark); margin-bottom: 1.25rem; }
.hero__title { font-size: clamp(1.9rem, 1.15rem + 1.85vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; max-width: 24ch; margin-bottom: .45em; }
.hero__services { font-size: 1.25rem; color: var(--on-dark); max-width: 36rem; margin-bottom: .75rem; }
.hero__motto { font: 700 1.125rem var(--font-head); color: var(--aqua); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__bar {
  margin-top: 3rem; display: grid; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(10px);
}
.hero__bar-title { font-size: 1.15rem; margin: 0; display: flex; flex-direction: column; gap: .2rem; }
.hero__bar-title small { font: 500 .9rem var(--font-head); color: var(--aqua); }
.hero__bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem 1.5rem; }
.hero__bar li { display: flex; flex-direction: column; line-height: 1.3; }
.hero__bar span { font-size: .9rem; color: var(--on-dark); }
.hero__bar a { color: #fff; text-decoration: none; font: 760 1.2rem var(--font-head); word-break: break-word; }
.hero__bar a:hover { color: var(--aqua); }
@media (min-width: 64rem) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .95fr); gap: 3.5rem; }
  .hero__bar { grid-template-columns: 15rem 1fr; align-items: center; }
}

/* ---------- Hero: szolgáltatás-sávok ---------- */
.strips__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; height: clamp(28rem, 62vh, 38rem); }
.strip { position: relative; flex: 1 1 0; min-height: 3.6rem; border-radius: var(--r-md); overflow: hidden; background: var(--navy);
  transition: flex-grow .55s var(--ease), box-shadow .4s; box-shadow: 0 18px 36px -26px rgb(0 0 0 / .8); }
.strip a { position: absolute; inset: 0; display: flex; align-items: center; gap: 1rem; padding: 0 1rem 0 1.4rem; color: #fff; text-decoration: none; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s var(--ease), filter .5s; filter: saturate(.9); }
.strip a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(7 13 36 / .92) 0%, rgb(7 13 36 / .7) 38%, rgb(7 13 36 / .15) 100%); transition: opacity .4s; }
.strip a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: 4px; background: var(--brick); transform: scaleY(0); transition: transform .45s var(--ease); }
.strip__text { position: relative; z-index: 3; display: flex; flex-direction: column; gap: .1rem; margin-right: auto; min-width: 0; }
.strip__title { font: 700 clamp(1.2rem, .95rem + .9vw, 1.6rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.strip__sub { font-size: .92rem; color: rgb(255 255 255 / .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip__go { position: relative; z-index: 3; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35);
  background: rgb(255 255 255 / .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8 4l4 4-4 4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
  backdrop-filter: blur(6px); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.strip:hover, .strip:focus-within { flex-grow: 2.4; box-shadow: 0 26px 50px -24px rgb(0 0 0 / .9); }
.strip:hover img, .strip:focus-within img { transform: scale(1.12); filter: saturate(1.05); }
.strip:hover a::after, .strip:focus-within a::after { transform: none; }
.strip:hover .strip__go, .strip:focus-within .strip__go { background-color: var(--brick); border-color: var(--brick); transform: translateX(3px); }
.strip a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: var(--r-md); }
/* belépés: a sávok jobbról, egymás után csúsznak be */
.js .strip { animation: strip-in .9s var(--ease) both; animation-delay: calc(.35s + var(--i) * .08s); }
@keyframes strip-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@media (max-width: 63.99rem) { .strips__list { height: auto; } .strip { flex: none; height: 4.6rem; } .strip:hover, .strip:focus-within { flex-grow: 0; } }

/* ---------- Futószalag ---------- */
.ribbon-wrap { overflow: hidden; position: relative; z-index: 2; margin-top: -3.5rem; padding: 1.75rem 0; background: linear-gradient(transparent 50%, var(--paper) 50%); }
.ribbon { background: var(--brick); color: #fff; overflow: hidden; transform: rotate(-1.6deg); margin: 0 -2rem; padding: 1rem 0; box-shadow: 0 20px 40px -24px rgb(216 54 47 / .9); }
.ribbon__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; white-space: nowrap; font: 750 1.15rem var(--font-head); padding-right: 2.25rem; }
.ribbon span::before { content: ""; width: .8rem; height: .45rem; background: #fff; border-radius: 1px; margin-right: 2.25rem; opacity: .85; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Szakaszok ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { font-size: 1.25rem; color: var(--ink-soft); }
.section__head--row { max-width: var(--wrap); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section__head--row h2 { margin: 0; }

/* rólunk + számlálók */
.about { background: var(--paper); padding-top: clamp(2.5rem, 4.5vw, 3.75rem); }
.about__grid { display: grid; gap: 3rem; }
.about__area { font-family: var(--font-head); color: var(--ink-soft); }
.about__side { display: grid; gap: 2rem; align-content: start; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat { display: flex; flex-direction: column-reverse; padding: 1.25rem 1.25rem 1rem; border-radius: var(--r-md); background: var(--plaster); }
.stat dd { margin: 0; font: 860 clamp(3rem, 2rem + 3.5vw, 4.6rem)/1 var(--font-head); color: var(--navy); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat dt { font: 600 1rem/1.3 var(--font-head); color: var(--ink-soft); margin-top: .35rem; }
.stat:nth-child(2) dd { color: var(--brick); }
.stat--link { position: relative; transition: background .25s; }
.stat--link a { color: inherit; text-decoration: none; }
.stat--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stat--link:hover { background: #e7e9e3; }
.stat--link:hover dt { color: var(--navy); }
.stat--link:has(a:focus-visible) { outline: 3px solid var(--water); outline-offset: 3px; }
.seal { margin: 0; display: flex; align-items: center; gap: 1.25rem; font: 700 1.15rem/1.3 var(--font-head); }
@keyframes spin { to { transform: rotate(360deg); } }

/* garancia pecsét – mindenhol ugyanaz */
.seal-badge { --size: 9.5rem; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--size); aspect-ratio: 1; }
.seal-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; overflow: visible; }
.seal-badge__ring text { font: 800 15px var(--font-head); letter-spacing: 2.6px; fill: var(--navy); }
.seal-badge img { position: relative; width: 64%; height: auto; }
.seal-badge--sm { --size: 6.5rem; }
.seal-badge--dark .seal-badge__ring text { fill: #fff; }
@media (min-width: 64rem) { .about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5rem; align-items: start; } }

/* szolgáltatás mozaik */
.services { background: var(--plaster); }
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; grid-auto-rows: 15rem; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--night); }
.tile a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform .9s var(--ease); }
.tile a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgb(7 13 36 / .92) 8%, rgb(7 13 36 / .35) 55%, rgb(7 13 36 / .05)); }
.tile__water {
  position: absolute; inset: 0; z-index: 2; transform: translateY(calc(100% + 18px)); transition: transform .8s var(--ease);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 22px, transparent 22px 32px) 0 2.4rem / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .22) 0 22px, transparent 22px 32px) 11px 3.4rem / 100% 2px no-repeat,
    linear-gradient(to top, rgb(31 47 110 / .95), rgb(47 99 181 / .78));
}
.tile__water::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 15' preserveAspectRatio='none'%3E%3Cpath d='M0 15V8Q15 0 30 8T60 8T90 8T120 8V15Z' fill='%232f63b5' fill-opacity='.78'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 15px;
  animation: wave-x 3s linear infinite;
}
@keyframes wave-x { to { background-position: 120px 0; } }
.tile__body { position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.tile__title { font: 820 1.6rem/1.05 var(--font-head); letter-spacing: -.015em; }
.tile__lead { font-size: 1rem; line-height: 1.4; color: rgb(255 255 255 / .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__more { display: inline-flex; align-items: center; gap: .5rem; font: 700 .95rem var(--font-head); margin-top: .35rem; }
.tile__more::after { content: ""; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8 4l4 4-4 4' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat; transition: transform .35s var(--ease); }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.1); }
.tile a:hover .tile__water, .tile a:focus-visible .tile__water { transform: translateY(42%); }
.tile a:hover .tile__more::after { transform: translateX(4px); }
.tile a:focus-visible { outline: 3px solid var(--aqua); outline-offset: -4px; border-radius: var(--r-lg); }
.tile--cta { background: var(--brick); }
.tile--cta a::before { display: none; }
.tile--cta .tile__body { inset: 0; justify-content: center; }
.tile--cta .tile__lead { -webkit-line-clamp: 3; }
.tile--cta .tile__more::after { background-color: var(--night); }
.tile--cta a:hover { background: var(--brick-dark); }
@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 16rem; }
  .tile--xl { grid-row: span 2; }
  .tile--wide, .tile--cta { grid-column: span 2; }
}
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15.5rem; }
  .tile--xl { grid-column: span 2; grid-row: span 2; }
  .tile--xl .tile__title { font-size: 2.6rem; }
  .tile--xl .tile__lead { font-size: 1.15rem; -webkit-line-clamp: 3; }
}

/* diagnosztika */
.diag { overflow: hidden; }
.diag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 30rem at 100% 0%, rgb(47 99 181 / .35), transparent 60%); }
.diag p { color: var(--on-dark); }
.diag__grid { display: grid; gap: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1.1rem; border-radius: 999px;
  font: 620 1rem var(--font-head); color: #fff; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .22); cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.chip::before { content: ""; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); transition: all .25s; }
.chip:hover { border-color: #fff; transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); }
.chip[aria-pressed="true"]::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23d8362f' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.diag__result { border-radius: var(--r-lg); background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); min-height: 20rem; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7); }
.diag__result p { color: var(--ink-soft); }
.diag__empty { min-height: 16rem; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--ink-soft); gap: .5rem; }
.diag__empty svg { width: 3.5rem; color: var(--line); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.diag__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.diag__item { padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--plaster); border-left: 5px solid var(--water); animation: rise .45s var(--ease) both; }
.diag__item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.diag__item p { margin: 0 0 .5rem; font-size: 1.02rem; color: var(--ink); }
.diag__item a { font: 700 .98rem var(--font-head); }
.diag__note { margin: 1.25rem 0 0; font-size: 1rem; }
.diag__result.has-results .diag__empty { display: none; }
@media (min-width: 64rem) { .diag__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }

/* különbség */
.diff { background: var(--plaster); }
.diff__title { max-width: 18ch; }
.diff__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.diff__tag { display: inline-block; font: 700 .9rem var(--font-head); padding: .3rem .8rem; border-radius: 999px; background: var(--line); color: var(--ink-soft); margin-bottom: 1rem; }
.diff__them { padding: 2rem; border-radius: var(--r-lg); border: 2px dashed #c4cad4; color: var(--ink-soft); align-self: start; }
.diff__us { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.diff__us::after { content: ""; position: absolute; right: -4rem; bottom: -4rem; width: 16rem; height: 16rem; border-radius: 50%; background: radial-gradient(circle, rgb(127 166 242 / .35), transparent 70%); pointer-events: none; }
.diff__us .diff__tag { background: var(--brick); color: #fff; }
.diff__quote { position: relative; margin: 1.5rem 0; padding: 0; font: italic 500 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--font-body); color: #fff; }
.diff__quote::before { content: ""; display: block; width: 2.6rem; height: 2rem; margin-bottom: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 40'%3E%3Cpath fill='%23d8362f' d='M0 40V22C0 9.5 6.4 2.2 19.2 0l2 5.6C14.4 7.6 11.2 11.6 10.8 18H21v22zm31 0V22C31 9.5 37.4 2.2 50.2 0l1.8 5.6C45.4 7.6 42.2 11.6 41.8 18H52v22z'/%3E%3C/svg%3E") left top / contain no-repeat; }
.diff__small { color: rgb(255 255 255 / .78); font-size: 1.02rem; margin: 0; }
.js .diff__them[data-reveal] { transform: translateX(-40px); }
.js .diff__us[data-reveal] { transform: translateX(40px); }
.js .diff [data-reveal].is-in { transform: none; }
@media (min-width: 56rem) { .diff__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; } }

/* folyamat idővonal */
.process { background: var(--paper); }
.timeline { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 2.5rem; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 2.25rem; top: 2.25rem; bottom: 2.25rem; width: 3px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--brick), var(--water)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.timeline.is-in::after { transform: none; }
.timeline__step { position: relative; padding-left: 6rem; }
.timeline__icon { position: absolute; left: 0; top: 0; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; box-shadow: 0 0 0 8px var(--paper); z-index: 1; transition: background .3s; }
.timeline__icon svg { width: 2.1rem; }
.timeline__step:hover .timeline__icon { background: var(--brick); }
.timeline h3 { font-size: 1.4rem; }
.timeline p { margin: 0; }
.process__note { max-width: 48rem; color: var(--ink-soft); margin: 0; padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--plaster); }
@media (min-width: 60rem) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
  .timeline::before, .timeline::after { left: 2.25rem; right: 2.25rem; top: 2.25rem; bottom: auto; width: auto; height: 3px; }
  .timeline::after { transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brick), var(--water)); }
  .timeline.is-in::after { transform: none; }
  .timeline__step { padding: 6.25rem 0 0; }
}

/* előtte–utána */
.ba-sec { background: var(--plaster); }
.ba-sec__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .ba-sec__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } }
.ba { --pos: 50%; position: relative; width: 100%; max-width: 600px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--line); user-select: none; touch-action: pan-y; box-shadow: 0 40px 80px -40px rgb(11 20 51 / .5); justify-self: end; }
.ba img, .ba__before img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3.4rem; height: 3.4rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.5rem no-repeat; box-shadow: 0 0 0 6px rgb(255 255 255 / .35), 0 8px 20px rgb(0 0 0 / .3); }
.ba__label { position: absolute; top: 1rem; z-index: 2; padding: .3rem .8rem; border-radius: 999px; background: rgb(11 20 51 / .8); color: #fff; font: 700 .9rem var(--font-head); pointer-events: none; }
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--water); outline-offset: 4px; }

/* tudja-e kártyasor */
.facts { background: var(--paper); overflow: hidden; }
.facts__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.facts__head h2 { margin: 0; }
.facts__nav { display: flex; gap: .5rem; }
.facts__track {
  list-style: none; margin: 0; display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .75rem var(--gutter) 1.5rem; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.facts__track::-webkit-scrollbar { display: none; }
.fact { position: relative; flex: none; width: min(82vw, 22rem); min-height: 18rem; scroll-snap-align: start; padding: 1.75rem 1.6rem 3.5rem; border-radius: var(--r-lg); background: var(--plaster); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .4s var(--ease); }
.fact:hover { transform: translateY(-6px) rotate(-.6deg); }
.fact:nth-child(3n + 2) { background: var(--navy); color: #fff; }
.fact:nth-child(3n + 3) { background: var(--brick); color: #fff; }
.fact p { margin: 0; font-size: 1.12rem; line-height: 1.5; position: relative; }
.fact__q { position: absolute; right: -.5rem; top: -2.5rem; font: 900 13rem/1 var(--font-head); opacity: .08; }
.fact__n { position: absolute; left: 1.6rem; bottom: 1.2rem; font: 700 .85rem var(--font-head); opacity: .6; }
.facts__progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.facts__progress span { display: block; height: 100%; width: 100%; background: var(--navy); transform-origin: left; transform: scaleX(.12); transition: transform .2s; }

/* technológiák + ajánlatok */
.tech { background: var(--plaster); }
.tech__grid { display: grid; gap: 3rem; }
.tech__offers { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--paper); }
.tech__offers h2 { font-size: 1.6rem; }
.ticks, .offers { list-style: none; margin: 0; padding: 0; }
.ticks li, .offers li, .prose ul > li { position: relative; padding-left: 1.6rem; margin-bottom: .45em; }
.ticks li::before, .offers li::before, .prose ul > li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .75rem; height: .42rem; border-radius: 1.5px; background: var(--brick); }
.ticks li { font-size: 1.15rem; padding-block: .5rem; border-bottom: 1px solid var(--line); margin: 0; }
.ticks li::before { top: 1.1em; }
.offers li { font-size: 1.02rem; }
@media (min-width: 36rem) { .offers { columns: 2; column-gap: 2rem; } .offers li { break-inside: avoid; } }
@media (min-width: 64rem) { .tech__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; } }

/* módszerek – fülek */
.methods { background: var(--paper); }
.tabs__list { position: relative; display: flex; gap: .25rem; padding: .35rem; border-radius: 999px; background: var(--plaster); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; margin-bottom: 2rem; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { position: relative; z-index: 1; flex: none; padding: .75rem 1.25rem; border: 0; border-radius: 999px; background: none; font: 680 1rem var(--font-head); color: var(--ink-soft); cursor: pointer; transition: color .3s; white-space: nowrap; }
.tabs__tab[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; z-index: 0; top: .35rem; bottom: .35rem; left: 0; width: 0; border-radius: 999px; background: var(--navy); transition: transform .45s var(--ease), width .45s var(--ease); }
.tabs__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.75rem; align-items: start; max-width: 52rem; animation: rise .5s var(--ease) both; }
.tabs__panel[hidden] { display: none; }
.tabs__img { border-radius: var(--r-md); overflow: hidden; box-shadow: 0 16px 30px -18px rgb(11 20 51 / .5); }
.tabs__img img { width: 7.5rem; height: 7.5rem; object-fit: cover; }
.tabs__panel h3 { font-size: 1.6rem; }
.tabs__panel p { margin: 0; font-size: 1.15rem; }

/* referencia képsáv */
.refs { background: var(--plaster); overflow: hidden; }
.rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; width: max-content; animation: marquee 60s linear infinite; }
.rail:hover .rail__track, .rail:focus-within .rail__track { animation-play-state: paused; }
.rail li { width: min(78vw, 27rem); flex: none; }
.rail figure { margin: 0; }
.rail img { width: 100%; aspect-ratio: 486 / 200; object-fit: cover; border-radius: var(--r-md); transition: transform .5s var(--ease); }
.rail a:hover img { transform: scale(1.03); }
.rail figcaption { font: 600 .95rem var(--font-head); color: var(--ink-soft); margin-top: .5rem; }

/* csapat */
.team { background: var(--paper); }
.team__grid { display: grid; gap: 2.5rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.person { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--plaster); transition: transform .35s var(--ease), box-shadow .35s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgb(11 20 51 / .45); }
.person__avatar { grid-row: span 3; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; font: 850 1.5rem var(--font-head); color: #fff; background: conic-gradient(from 210deg, var(--brick), var(--navy), var(--water), var(--brick)); }
.person__name { font: 800 1.35rem var(--font-head); }
.person__role { color: var(--ink-soft); font-size: 1rem; }
.person__tel { font: 760 1.15rem var(--font-head); text-decoration: none; }
@media (min-width: 64rem) { .team__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 5rem; align-items: center; } }

/* ---------- Záró CTA hullámokkal ---------- */
.cta { padding: clamp(4.5rem, 9vw, 7.5rem) 0 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 30rem at 15% 0%, rgb(216 54 47 / .22), transparent 60%), radial-gradient(50rem 30rem at 100% 40%, rgb(47 99 181 / .4), transparent 60%); }
.cta__inner { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.cta__text h2 { max-width: 16ch; }
.cta__text p { color: var(--on-dark); max-width: 36rem; font-size: 1.2rem; }
.cta__text .btn { margin-top: .75rem; overflow-wrap: anywhere; }
.cta__phones { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: center; }
.cta__phones a { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-radius: var(--r-md); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); color: #fff; text-decoration: none; font: 800 1.6rem var(--font-head); letter-spacing: -.01em; transition: background .25s, transform .25s var(--ease); }
.cta__phones a:hover { background: rgb(255 255 255 / .12); transform: translateX(6px); color: #fff; }
.cta__phones span { font: 500 .9rem var(--font-head); color: var(--aqua); }
.cta__waves { display: block; width: 100%; height: clamp(4rem, 9vw, 8rem); margin-top: 1rem; }
.wave { animation: wave-move 14s linear infinite; }
.wave--2 { animation-duration: 10s; }
.wave--1 { animation-duration: 7s; }
.cta .wave--3 path { fill: rgb(47 99 181 / .35); }
.cta .wave--2 path { fill: rgb(47 99 181 / .6); }
.cta .wave--1 path { fill: var(--abyss); }
@keyframes wave-move { to { transform: translateX(-1440px); } }
@media (min-width: 64rem) { .cta__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 5rem; align-items: center; } }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--abyss); color: rgb(255 255 255 / .78); font-size: 1rem; position: relative; overflow: hidden; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--aqua); }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 2.5rem 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .75rem; }
.site-footer li { margin-bottom: .35rem; }
.site-footer__partner { margin-top: 1rem; font-size: .92rem; }
.site-footer__mark { margin: 0; font: 900 clamp(5rem, 22vw, 20rem)/.8 var(--font-head);  letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .14); text-align: center; white-space: nowrap; user-select: none; transform: translateY(14%); }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.25rem; font-size: .92rem; }
.site-footer__bottom p { margin: 0; }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.2fr; } }

/* ---------- Aloldali hero ---------- */
.phero { padding: calc(var(--hdr-h) + 3.5rem) 0 0; overflow: hidden; }
.phero__grid { display: grid; gap: 2rem; align-items: center; padding-bottom: 2rem; }
.crumbs { font: 500 .95rem var(--font-head); color: var(--on-dark); margin-bottom: 1rem; }
.crumbs a { color: var(--on-dark); }
.crumbs a:hover { color: #fff; }
.phero__title { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 860; letter-spacing: -.03em; line-height: 1.02; margin-bottom: .4em; }
.phero__lead { font-size: 1.25rem; color: var(--on-dark); max-width: 40rem; margin: 0; }
.phero__photo { position: relative; justify-self: start; max-width: 486px; width: 100%; border-radius: var(--r-lg); overflow: hidden; rotate: 1.5deg; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .15); }
.phero__photo img { width: 100%; aspect-ratio: 486 / 200; object-fit: cover; scale: 1.14; will-change: transform; }
.phero__waves { display: block; width: 100%; height: clamp(2.5rem, 6vw, 5rem); }
.phero .wave--2 path { fill: rgb(47 99 181 / .55); }
.phero .wave--1 path { fill: var(--plaster); }
@media (min-width: 64rem) {
  .phero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
  .phero__photo { width: 486px; justify-self: end; }
}

/* ---------- Aloldal törzs ---------- */
.pbody { display: grid; gap: 3rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.pbody__side { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 64rem) {
  .pbody { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4.5rem; align-items: start; }
  .pbody--single { grid-template-columns: minmax(0, 1fr); }
  .pbody__side { position: sticky; top: calc(var(--hdr-h) + 2rem); }
}
.toc { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.toc[hidden] { display: none; }
.toc__title { font: 700 .95rem var(--font-head); color: var(--ink-soft); margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.toc a { display: block; padding: .3rem .6rem; border-radius: 8px; text-decoration: none; font: 600 .98rem/1.3 var(--font-head); color: var(--ink); border-left: 3px solid transparent; transition: background .2s, border-color .2s; }
.toc a:hover { background: var(--plaster); }
.toc a.is-active { border-left-color: var(--brick); background: var(--plaster); color: var(--navy); }
@media (max-width: 63.99rem) { .toc { display: none; } }

.side-card { padding: 1.5rem; border-radius: var(--r-lg); background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.side-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(20rem 14rem at 100% 0%, rgb(47 99 181 / .55), transparent 70%); }
.side-card h2 { color: #fff; font-size: 1.35rem; }
.side-card p { font-size: 1.02rem; color: var(--on-dark); }
.side-card .btn { width: 100%; }
.side-card__phones { list-style: none; margin: 1.25rem 0; padding: 0; }
.side-card__phones li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid rgb(255 255 255 / .14); font-size: 1rem; }
.side-card__phones a { font: 760 1.05rem var(--font-head); color: #fff; text-decoration: none; white-space: nowrap; }
.side-card p.side-card__guarantee { display: flex; align-items: center; gap: .9rem; margin: 0; font: 650 1rem/1.3 var(--font-head); color: #fff; }
.side-card__guarantee .seal-badge { margin: -.4rem 0; }
.side-card :focus-visible { outline-color: #fff; }
.dg-mini { display: grid; gap: .3rem; margin: 0 0 1.25rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); color: #fff; text-decoration: none; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.dg-mini:hover { background: rgb(255 255 255 / .12); border-color: var(--aqua); transform: translateY(-2px); }
.dg-mini:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dg-mini__tag { justify-self: start; padding: .2rem .6rem; border-radius: 999px; background: var(--brick); font: 700 .78rem var(--font-head); letter-spacing: .01em; }
.dg-mini__title { font: 700 1.08rem/1.25 var(--font-head); margin-top: .2rem; }
.dg-mini__text { font-size: .93rem; line-height: 1.45; color: var(--on-dark); }
.dg-mini__more { margin-top: .2rem; font: 700 .95rem var(--font-head); color: var(--aqua); }
.dg-mini:hover .dg-mini__more span { display: inline-block; transform: translateX(3px); transition: transform .2s; }

/* ---------- Szövegtörzs (régi tartalom) ---------- */
.prose { max-width: 46rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + .9vw, 2rem); margin-top: 2.2em; display: flex; gap: .75rem; align-items: baseline; }
.prose h2::before { content: ""; flex: none; width: .9rem; height: .5rem; background: var(--brick); border-radius: 2px; transform: translateY(-.2em); }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin: 0 0 1.25em; }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; position: relative; padding-left: 2rem; margin-bottom: .4em; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; font: 700 1em var(--font-head); color: var(--navy); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 1rem; margin: 2rem 0; }
.photos--single { grid-template-columns: minmax(0, 26rem); }
.photos figure { margin: 0; }
.photos figure a.zoom { border-radius: var(--r-md); overflow: hidden; box-shadow: 0 18px 34px -24px rgb(11 20 51 / .55); }
.photos figure img { width: 100%; transition: transform .7s var(--ease); }
.photos figure a.zoom:hover img { transform: scale(1.06); }
.photos figcaption { font: 600 .92rem/1.35 var(--font-head); color: var(--ink-soft); margin-top: .5rem; }
.photos figure.badge { width: auto; }
.photos figure.badge .seal-badge { --size: 8.5rem; }
.photos figure .seal-badge img, .seal-badge img { width: 64%; }
a.zoom { display: block; cursor: zoom-in; position: relative; }

/* referenciák */
.ref-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.ref-filter .chip { color: var(--ink); background: var(--paper); border-color: var(--line); }
.ref-filter .chip::before { display: none; }
.ref-filter .chip:hover { border-color: var(--navy); }
.ref-filter .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ref-sec[hidden] { display: none; }
.ref-sec.is-shown { animation: rise .45s var(--ease) both; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.75rem 1.5rem; margin: 1.5rem 0 2.25rem; }
.ref-card { display: flex; flex-direction: column; }
.ref-card .photos { margin: 0 0 .6rem; grid-template-columns: minmax(0, 1fr); }
.ref-card .photos figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.ref-card__text { margin: 0; font-size: 1.05rem; line-height: 1.45; }

/* ---------- Referenciák oldal ---------- */
.refx-stats { margin-top: clamp(-2.5rem, -3vw, -1.5rem); position: relative; z-index: 3; }
.refx-stats__grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.refx-stats__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 20px 40px -30px rgb(11 20 51 / .45); }
.refx-stats dd { margin: 0; font: 860 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--font-head); color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.refx-stats dt { font: 600 .95rem/1.3 var(--font-head); color: var(--ink-soft); margin-top: .35rem; }
.refx-stats__grid > div:nth-child(3) dd { color: var(--brick); }
.refx-stats__grid > .refx-stats__seal { flex-direction: row; align-items: center; gap: .75rem; }
.refx-stats__seal p { margin: 0; font: 650 .98rem/1.3 var(--font-head); }
.refx-stats__seal .seal-badge { --size: 5.5rem; }
@media (max-width: 59.99rem) { .refx-stats__grid > .refx-stats__seal { flex-direction: column; align-items: flex-start; } .refx-stats__seal .seal-badge { --size: 4.6rem; } .refx-stats__seal p { font-size: .92rem; } }
.refx-stats__grid > div { min-width: 0; }
@media (min-width: 60rem) { .refx-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.refx-filter { position: relative; z-index: 2; margin-top: 2rem; }
.refx-filter__inner { pointer-events: auto; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .4rem; border-radius: 999px; width: fit-content; max-width: 100%; background: var(--paper); box-shadow: 0 14px 34px -18px rgb(11 20 51 / .45); border: 1px solid var(--line); }
.refx-filter__inner::-webkit-scrollbar { display: none; }
.refx-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font: 650 .98rem var(--font-head); cursor: pointer; transition: background .2s, color .2s; }
.refx-chip span { font-size: .78rem; font-weight: 750; min-width: 1.6rem; padding: .1rem .4rem; border-radius: 999px; background: var(--plaster); color: var(--ink-soft); text-align: center; }
.refx-chip:hover { background: var(--plaster); }
.refx-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.refx-chip[aria-pressed="true"] span { background: rgb(255 255 255 / .2); color: #fff; }

.refx-feat { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.refx-feat__hint { margin: 0; font: 500 .95rem var(--font-head); color: var(--ink-soft); }
.refx-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.refx-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: 0 24px 50px -36px rgb(11 20 51 / .55); transition: transform .35s var(--ease), box-shadow .35s, opacity .3s; }
.refx-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgb(11 20 51 / .6); }
.refx-card[hidden] { display: none; }
.refx-card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.refx-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.refx-card:hover .refx-card__img img { transform: scale(1.06); }
.refx-card__award { position: absolute; left: 1rem; top: 1rem; padding: .35rem .8rem; border-radius: 999px; background: #c9a227; color: #1b1405; font: 800 .85rem var(--font-head); box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.refx-card__body { margin: 0; padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.refx-card__meta { margin: 0; display: flex; align-items: center; gap: .6rem; font: 600 .85rem var(--font-head); color: var(--ink-soft); }
.refx-card h3 { font-size: 1.2rem; margin: .15rem 0 0; }
.refx-card figcaption { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.refx-card__group { margin: auto 0 0; padding-top: .6rem; font: 600 .82rem var(--font-head); color: var(--ink-soft); }
.refx-tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font: 700 .78rem var(--font-head); color: #fff; background: var(--navy); }
.refx-tag--fal { background: var(--navy); }
.refx-tag--pince { background: var(--water); }
.refx-tag--teto { background: #4c5866; }
.refx-tag--ho { background: #b4622a; }
.refx-tag--felujitas { background: var(--brick); }
.refx-tag--uj { background: #1d6b47; }
@media (min-width: 60rem) {
  .refx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refx-card--wide { grid-column: span 2; }
  .refx-card--wide .refx-card__img { aspect-ratio: auto; height: 100%; min-height: 15rem; }
  .refx-card--wide { flex-direction: row; }
  .refx-card--wide .refx-card__img { flex: 1.6; }
  .refx-card--wide .refx-card__body { flex: 1; justify-content: center; }
  .refx-card--wide h3 { font-size: 1.6rem; }
}
.refx-cta { border-radius: var(--r-lg); background: var(--brick); overflow: hidden; min-height: 14rem; display: flex; }
.refx-cta a { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 1.75rem; color: #fff; text-decoration: none; transition: background .25s; }
.refx-cta a:hover { background: var(--brick-dark); color: #fff; }
.refx-cta a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.refx-cta__title { font: 820 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--font-head); letter-spacing: -.015em; }
.refx-cta__text { font-size: 1.05rem; line-height: 1.45; color: rgb(255 255 255 / .88); max-width: 34rem; }
.refx-cta .tile__more::after { background-color: var(--night); }
@media (min-width: 60rem) { .refx-cta { grid-column: span 2; } }
.refx-list--span { grid-column: 1 / -1; }
@media (min-width: 48rem) { .refx-list--span ul { columns: 2; column-gap: 2rem; } .refx-list--span li { break-inside: avoid; } }
@media (min-width: 64rem) { .refx-list--span ul { columns: 3; } }
.refx-empty { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--paper); color: var(--ink-soft); }

.refx-all { background: var(--paper); }
.refx-region + .refx-region { margin-top: 3rem; }
.refx-region__title { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1rem; }
.refx-region__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.refx-cols { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.refx-list { border-radius: var(--r-md); background: var(--plaster); padding: 1.1rem 1.25rem 1.25rem; transition: opacity .3s, filter .3s; }
.refx-list.is-dim { opacity: .35; filter: grayscale(1); }
.refx-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.refx-list__head h4 { margin: 0; font: 760 1.08rem/1.3 var(--font-head); }
.refx-list__n { flex: none; font: 800 .85rem var(--font-head); color: #fff; background: var(--navy); border-radius: 999px; padding: .15rem .55rem; }
.refx-list ul { list-style: none; margin: 0; padding: 0; }
.refx-list li { position: relative; padding: .4rem 0 .4rem 1.2rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.refx-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: .55rem; height: .32rem; border-radius: 1px; background: var(--brick); }
.refx-list__more { font-style: italic; color: var(--ink-soft); }
.refx-close { margin: 3rem 0 0; font-size: 1.15rem; }

/* kérdések és válaszok */
.faq-search { margin-bottom: 1.5rem; }
.faq-search label { display: block; font: 700 1rem var(--font-head); margin-bottom: .5rem; }
.faq-search input { width: 100%; min-height: 3.5rem; padding: .8rem 1.25rem .8rem 3.2rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' stroke='%234a5670' stroke-width='2.2' fill='none'/%3E%3Cpath d='M15.5 15.5L20 20' stroke='%234a5670' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 1.1rem center / 1.35rem no-repeat; font: 1.1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.faq-search input:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgb(47 99 181 / .18); }
.faq-search__count { font: 600 .95rem var(--font-head); color: var(--ink-soft); margin: .6rem 0 0 .5rem; min-height: 1.3em; }
.faq { display: grid; gap: .6rem; margin: 0 0 2.5rem; }
.faq details { border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--navy); box-shadow: 0 20px 40px -28px rgb(11 20 51 / .45); }
.faq details[hidden] { display: none; }
.faq summary { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 2rem; gap: .4rem; align-items: start; padding: 1.05rem 1.1rem; cursor: pointer; list-style: none; font: 680 1.1rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 2rem; height: 2rem; border-radius: 50%; background: var(--plaster) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%231f2f6e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / .9rem no-repeat; transition: transform .35s var(--ease), background-color .25s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--brick); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq-num { color: var(--brick); font-weight: 850; }
.faq-a { padding: 0 1.25rem 1.1rem 4.1rem; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq mark { background: rgb(216 54 47 / .16); color: inherit; border-radius: 3px; padding: 0 .1em; }
@media (max-width: 40rem) { .faq-a { padding-left: 1.1rem; } }

/* tapasztalatok – esetek */
.cases { display: grid; gap: 1.1rem; margin: 1.5rem 0 2.5rem; }
.case { position: relative; padding: 1.5rem 1.6rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.case:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgb(11 20 51 / .5); }
.case::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--brick), var(--water)); }
.case > p:first-child > strong:first-child { font: 780 1.15em var(--font-head); color: var(--navy); }
.case p:last-child { margin-bottom: 0; }


/* ---------- Diagnosztikai felmérés ---------- */
.dg-hero-actions { margin-top: 1.75rem; }
.dg-price { position: relative; width: 100%; max-width: 26rem; justify-self: end; padding: 1.75rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); overflow: hidden; }
.dg-price::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brick), var(--water)); }
.dg-price__label { margin: 0; font-weight: 600; color: var(--ink-soft); }
.dg-price__value { margin: .25rem 0 1rem; font: 700 clamp(2.6rem, 2rem + 2vw, 3.4rem)/1 var(--font-head); letter-spacing: -.03em; color: var(--navy); }
.dg-price__list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.dg-price__list li { position: relative; padding: .5rem 0 .5rem 1.9rem; border-top: 1px solid var(--line); font-weight: 600; font-size: 1rem; }
.dg-price__list li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #1d6b47 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .75rem no-repeat; }
.dg-price__btn { width: 100%; }
.dg-price :focus-visible { outline-color: var(--water); }
@media (max-width: 63.99rem) { .dg-price { justify-self: start; } }

.dg-steps { background: var(--paper); }
.dg-trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.dg-trio__item { padding: 1.75rem; border-radius: var(--r-lg); background: var(--plaster); }
.dg-trio__icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--night); color: #fff; margin-bottom: 1.1rem; }
.dg-trio__icon svg { width: 1.9rem; }
.dg-trio__item:nth-child(2) .dg-trio__icon { background: var(--water); }
.dg-trio__item:nth-child(3) .dg-trio__icon { background: var(--brick); }
.dg-trio h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.dg-trio p { margin: 0; }
@media (min-width: 56rem) { .dg-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dg-inc__grid { display: grid; gap: 2.5rem; }
.dg-inc__price { font: 600 1.15rem var(--font-head); }
.dg-inc__price strong { color: var(--brick); font-size: 1.5rem; }
.dg-inc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.dg-inc__list li { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--paper); border-left: 5px solid var(--navy); }
.dg-inc__list li:nth-child(3) { border-left-color: var(--brick); }
.dg-inc__list h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.dg-inc__list p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 64rem) { .dg-inc__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4.5rem; align-items: start; } }

.dg-why { background: var(--night); color: #fff; }
.dg-why h2 { color: #fff; }
.dg-why__grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dg-why__grid li { padding: 1.5rem; border-radius: var(--r-md); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.dg-why__grid h3 { color: #fff; font-size: 1.2rem; }
.dg-why__grid p { margin: 0; color: var(--on-dark); font-size: 1rem; }

.dg-cases { background: var(--paper); }
.dg-cases__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.dg-case { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--r-lg); background: var(--plaster); }
.dg-case p { margin: 0 0 1rem; font-size: 1rem; }
.dg-case__place { font: 700 1.1rem var(--font-head) !important; color: var(--navy); margin-bottom: .6rem !important; }
.dg-case__result { margin: auto 0 0 !important; padding: .9rem 1rem; border-radius: var(--r-sm); background: #e3f1ea; color: #134a31; font-weight: 600; }
.process__link { margin: 0 0 1.25rem; }

/* előtte–utána galéria és videók a referenciák között */
.refx-ba { background: var(--plaster); }
.refx-ba__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.75rem; }
@media (min-width: 56rem) { .refx-ba__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .refx-ba__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 52rem; } }
.refx-ba__item { display: grid; gap: 1rem; align-content: start; }
.refx-ba__item[hidden], .refx-video[hidden], .refx-ba[hidden], .refx-vid[hidden] { display: none; }
.refx-ba .ba { max-width: none; justify-self: stretch; }
.refx-ba__body h3, .refx-video__body h3 { font-size: 1.35rem; margin: .35rem 0 .3rem; }
.refx-ba__body p, .refx-video__body p { margin: 0; color: var(--ink-soft); }
.refx-ba__body .refx-card__meta, .refx-video__body .refx-card__meta { margin: 0; }
.refx-vid { background: var(--night); color: #fff; }
.refx-vid .section__head p, .refx-vid .refx-video__body p { color: var(--on-dark); }
.refx-vid .refx-card__meta { color: var(--aqua); }
.refx-vid__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.refx-video { display: grid; gap: .9rem; }
.refx-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.refx-video--portrait .refx-video__frame { aspect-ratio: 9 / 16; width: min(100%, calc(72vh * 9 / 16)); justify-self: center; }
.refx-video__frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* ---------- Űrlapok (üzenet, diagnosztikai kérdőív) ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform { display: grid; gap: 1.25rem; }
.cform__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .4rem; }
.cform__lead { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.1rem; max-width: 44rem; }
.ff-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 40rem) { .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ff-grid__full { grid-column: 1 / -1; } }
.ff { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.ff__label { font-weight: 650; font-size: .98rem; }
.ff__label small { font-weight: 450; color: var(--ink-soft); }
.ff__req { color: var(--brick); }
.ff__hint { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.ff input[type=text], .ff input[type=tel], .ff input[type=email], .ff select, .ff textarea {
  width: 100%; min-height: 3.2rem; padding: .75rem 1rem; border: 1.5px solid #cfd5df; border-radius: 14px; background: #fff;
  font: 450 1.02rem/1.45 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.ff select { padding-right: 2.6rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2f6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 1.1rem no-repeat; }
.ff textarea { resize: vertical; min-height: 7.5rem; }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgb(47 99 181 / .16); }
.ff :user-invalid { border-color: var(--brick); }
.ff__drop { position: relative; display: grid; gap: .25rem; place-items: center; text-align: center; padding: 1.25rem 1rem; border: 2px dashed #c3cbdb; border-radius: 16px; background: #f7f8fb; cursor: pointer; transition: border-color .2s, background .2s; }
.ff__drop:hover, .ff__drop.is-over, .ff__drop:focus-within { border-color: var(--water); background: #eef3fc; }
.ff__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ff__drop-txt { color: var(--ink-soft); }
.ff__drop-txt strong { color: var(--navy); }
.ff__files { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.ff__files:empty { display: none; }
.ff__thumb { width: 3.6rem; height: 3.6rem; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgb(0 0 0 / .4); }
.ff-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.ff-check input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; accent-color: var(--navy); }
.ff__err { margin: 0; padding: .85rem 1.1rem; border-radius: 12px; background: #fde8e6; color: #8a1d18; font-weight: 600; }
.ff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.ff__note { color: var(--ink-soft); font-size: .85rem; }
.cform button[aria-busy="true"] { opacity: .7; cursor: progress; }
.ff-done { padding: 2.5rem 1.5rem; text-align: center; border-radius: var(--r-lg); background: #eef7f2; animation: ffIn .5s var(--ease) both; }
.ff-done:focus { outline: none; }
.ff-done h3 { font-size: 1.6rem; margin: .8rem 0 .4rem; }
.ff-done p { margin: 0 auto; max-width: 30rem; color: var(--ink-soft); }
.ff-done__ico { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #1d6b47; color: #fff; font-size: 2rem; font-weight: 700; animation: ffPop .6s .15s var(--ease) both; }
.ff-done__ico.is-err { background: var(--brick); }
@keyframes ffIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes ffPop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } }

/* felugró üzenetküldő */
.cmodal { width: min(46rem, calc(100vw - 1.5rem)); max-height: calc(100svh - 1.5rem); padding: clamp(1.25rem, 4vw, 2.5rem); border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 50px 100px -30px rgb(0 0 0 / .6); overflow: auto; overscroll-behavior: contain; }
.cmodal[open] { animation: ffIn .35s var(--ease) both; }
.cmodal::backdrop { background: rgb(7 13 36 / .65); backdrop-filter: blur(4px); }
.cmodal__close { position: sticky; top: 0; float: right; width: 2.6rem; height: 2.6rem; margin: -.5rem -.5rem 0 0; border: 0; border-radius: 50%; background: var(--plaster); font-size: 1.1rem; cursor: pointer; z-index: 1; }
.cmodal__close:hover { background: #e3e6ea; }
.cmodal .cform__title { padding-right: 2.5rem; }

/* kapcsolat oldal */
.cpage__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .cpage__grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; } .cpage__side { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.cpage__side { padding: 1.75rem; border-radius: var(--r-lg); background: var(--night); color: #fff; }
.cpage__side h2 { font-size: 1.5rem; }
.cpage__side p { color: var(--on-dark); }
.cpage__phones { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .5rem; }
.cpage__phones a { display: flex; flex-direction: column; padding: .75rem 1rem; border-radius: 14px; background: rgb(255 255 255 / .08); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; transition: background .2s; }
.cpage__phones a:hover { background: rgb(255 255 255 / .16); }
.cpage__phones span { font-size: .8rem; font-weight: 500; color: var(--aqua); }
.cpage__addr { font-style: normal; color: var(--on-dark); margin-bottom: 1rem; }
.cpage__seal { display: flex; align-items: center; gap: .9rem; margin: 0; }

/* diagnosztikai kérdőív */
.dgf { background: var(--plaster); }
.dgf__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .dgf__grid { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3.5rem; } .dgf__side { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.dgf__form { gap: 1rem; }
.dgf__step { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 0; border-radius: var(--r-lg); background: var(--paper); display: grid; gap: 1rem; min-width: 0; box-shadow: 0 1px 0 var(--line); }
.dgf__step[hidden] { display: none; }
.dgf__step legend { float: left; width: 100%; display: flex; align-items: center; gap: .8rem; padding: 0; font: 700 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.2 var(--font-head); letter-spacing: -.015em; }
.dgf__step legend + * { clear: both; }
.dgf__n { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--night); color: #fff; font-size: 1.05rem; }
.dgf__areas { display: grid; gap: .65rem; }
@media (min-width: 40rem) { .dgf__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dgf__area { position: relative; display: flex; cursor: pointer; }
.dgf__area input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dgf__area > span { flex: 1; display: grid; gap: .15rem; padding: .95rem 1rem .95rem 3.2rem; border: 1.5px solid #cfd5df; border-radius: 16px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease); }
.dgf__area > span::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.4rem; height: 1.4rem; border-radius: 7px; border: 2px solid #b9c2d3; background: #fff center / 1rem no-repeat; transition: background-color .2s, border-color .2s; }
.dgf__area strong { font-size: 1.05rem; }
.dgf__area small { color: var(--ink-soft); font-size: .88rem; line-height: 1.35; }
.dgf__area:hover > span { border-color: var(--navy); transform: translateY(-1px); }
.dgf__area input:focus-visible + span { box-shadow: 0 0 0 4px rgb(47 99 181 / .2); border-color: var(--water); }
.dgf__area input:checked + span { border-color: var(--navy); background: #eef3fc; box-shadow: inset 0 0 0 1px var(--navy); }
.dgf__area input:checked + span::before { border-color: var(--navy); background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.dgf__group { display: grid; gap: .9rem; padding: 1.1rem 0 .2rem; border-top: 1px dashed var(--line); animation: ffIn .4s var(--ease) both; }
.dgf__group:first-of-type { border-top: 0; padding-top: 0; }
.dgf__group[hidden] { display: none; }
.dgf__gtitle { margin: 0; font-size: 1.05rem; color: var(--water); }
.dgf__card { position: relative; padding: 1.75rem; border-radius: var(--r-lg); background: var(--night); color: #fff; overflow: hidden; }
.dgf__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--brick), var(--water)); }
.dgf__card .dg-price__label { color: var(--aqua); }
.dgf__card .dg-price__value { color: #fff; }
.dgf__card h3 { font-size: 1.25rem; margin: 1rem 0 .3rem; }
.dgf__card p { color: var(--on-dark); margin: 0; }

/* eredményoldal (JS nélküli küldés) */
.form-result__box { max-width: 40rem; text-align: center; padding-top: calc(var(--hdr-h) + 2rem); }
.form-result__box p { color: var(--ink-soft); font-size: 1.15rem; }
.form-result__act { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Mobil gyors-kapcsolat sáv ---------- */
.actionbar { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .4rem; border-radius: 999px; background: rgb(11 20 51 / .88); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -10px rgb(0 0 0 / .5); transition: transform .4s var(--ease); }
.actionbar.is-hidden { transform: translateY(150%); }
.actionbar__btn { display: flex; align-items: center; justify-content: center; min-height: 3.1rem; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; text-decoration: none; font: 750 1.1rem var(--font-head); }
.actionbar__btn--call { background: var(--brick); }
.actionbar__btn:hover { color: #fff; }
.actionbar :focus-visible { outline-color: #fff; }
body { padding-bottom: 5rem; }
@media (min-width: 64rem) { .actionbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Képnagyító ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgb(7 13 36 / .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox[open] .lightbox__figure img { animation: zoom-in .4s var(--ease) both; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }
.lightbox__figure { margin: 0; display: grid; gap: .7rem; justify-items: center; padding: 4rem 4rem 1.5rem; }
.lightbox__figure img { max-width: min(92vw, 1000px); max-height: 76vh; width: auto; height: auto; border-radius: var(--r-md); background: var(--paper); }
.lightbox__figure figcaption { color: #fff; font: 600 1rem var(--font-head); text-align: center; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; }
.lightbox__close, .lightbox__nav { font: 700 1rem var(--font-head); color: #fff; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; min-height: 2.9rem; padding: .4rem 1.1rem; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; padding: 0; font-size: 1.6rem; }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
.lightbox__nav[hidden] { display: none; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- Kevesebb mozgás kérése esetén ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-w > span { transform: none;  }
  .rail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mnav__list li { opacity: 1; transform: none; }
}

@media print {
  .hdr, .mnav, .actionbar, .cta, .lightbox, .progress, .ribbon, .pbody__side { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero, .phero { background: #fff; color: #000; padding-top: 1rem; }
  .hero h1, .phero h1 { color: #000; }
}

/* e-mail-cím az elérhetőségek között */
.cta__phones a.is-mail, .cpage__phones a.is-mail { font-size: 1.2rem; overflow-wrap: anywhere; }
.side-card__phones a, .hero__bar a { overflow-wrap: anywhere; }
@media (min-width: 64rem) { .hero__bar ul { grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr)); gap: .75rem 1.25rem; } .hero__bar a { font-size: 1.1rem; } }
