/* ==========================================================================
   Gyalogolj.hu — alapkészlet
   Kreatívoldal · 2026.08
   Márkaszínek a logóból: lime #BDD542, charcoal #2B2E34
   ========================================================================== */

/* --------------------------------------------------------- betűk (helyben) */
/* A betűk helyben vannak, két részhalmazban: a `latin` az alap, a `latin-ext`
   hozza a magyar kettős ékezetet (ő, ű). MINDKETTŐ kell – korábban csak a
   latin-ext volt fönt, ezért az ő/ű volt az EGYETLEN betű a valódi fontból,
   a többi tartalék betűvel rajzolódott, és emiatt ütött el. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2-variations');
  font-weight: 400 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;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 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: 'Fraunces';
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  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;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  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: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 800;
  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.woff2') format('woff2-variations');
  font-weight: 400 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;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 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;
}

:root {
  /* --- márka --- */
  --lime:      #BDD542;
  --lime-dk:   #A2BB2A;
  --lime-lt:   #D3E479;
  --lime-pale: #F0F5DC;
  --ink:       #171A16;
  --ink-2:     #2B2E34;
  --moss:      #2B4230;
  --moss-lt:   #3D5B44;
  --clay:      #C4623A;
  --bone:      #F8F7F2;
  --sand:      #ECE8DC;
  --line:      #DCD8CA;
  --text:      #23261F;
  --muted:     #6A6E63;
  --white:     #FFFFFF;

  --shadow-s:  0 2px 10px rgba(23,26,22,.06);
  --shadow-m:  0 14px 40px -18px rgba(23,26,22,.35);
  --shadow-l:  0 40px 90px -40px rgba(23,26,22,.55);

  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  --r:         4px;
  --r-lg:      22px;
  --arch:      180px 180px 8px 8px;

  --pad:       clamp(24px, 5vw, 64px);
  --wrap:      1220px;
  --fejlec:    112px;   /* a nagyobb logó miatt magasabb sáv */
}

/* --------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  /* clip, nem hidden: a hidden a másik tengelyt auto-ra kényszeríti, és attól
     nem működik a sticky tartalomjegyzék. A clip csak levág, scrollport nélkül. */
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.018em;
  font-variation-settings: 'SOFT' 12, 'WONK' 1, 'opsz' 120;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--lime-dk);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ugrás a tartalomra */
.gy-ugras {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: 14px 22px; border-radius: 0 0 10px 0; font-weight: 700;
}
.gy-ugras:focus { left: 0; }

/* képernyőolvasónak */
.screen-reader-text, .gy-rejtett-cimke {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.gy-csali { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------- elrendezés */
.wrap { width: min(100% - 2*var(--pad), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2*var(--pad), 1480px); margin-inline: auto; }
.wrap-keskeny { width: min(100% - 2*var(--pad), 820px); margin-inline: auto; }
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(52px, 7vw, 96px) 0; }
.sec-homok { background: var(--sand); }

.dark { background: var(--ink); color: #E9EBE4; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--bone); }
.dark .muted { color: #A2A79A; }
.moss { background: var(--moss); color: #E7EDE4; }
.moss h2, .moss h3 { color: #fff; }

.muted { color: var(--muted); }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.62; color: #3C4137; }
.dark .lead { color: #C9CEC1; }

.szekcio-fej { max-width: 64ch; margin-bottom: clamp(40px, 5vw, 56px); }
.szekcio-fej-sor {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; max-width: none;
}
.szekcio-fej-jobb { max-width: 36ch; font-size: 16.5px; }
.kozep-gomb { margin-top: clamp(40px, 5vw, 60px); text-align: center; }

/* --------------------------------------------------------- turistajelzés motívum */
/* Felsorolás-jel. Korábban turistajelzés-motívum volt (fehér téglalap lime
   csíkkal), de az ügyfélnek nem mondott semmit, csak fura téglalapnak látszott
   a szavak előtt. Most egy visszafogott lime pont. */
.blaze {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 22px;
}
.dark .eyebrow, .moss .eyebrow, .eyebrow-lime { color: var(--lime); }

.trail {
  height: 2px; width: 100%;
  background-image: radial-gradient(circle, var(--lime) 1.6px, transparent 1.7px);
  background-size: 14px 2px;
  opacity: .55;
}

/* --------------------------------------------------------- tipográfiai skála */
.h-xxl { font-size: clamp(44px, 8.2vw, 118px); }
.h-xl  { font-size: clamp(36px, 5.4vw, 76px); }
.h-l   { font-size: clamp(29px, 3.6vw, 50px); }
.h-m   { font-size: clamp(23px, 2.4vw, 32px); }
.h-s   { font-size: clamp(20px, 1.8vw, 24px); }

.serif-i { font-style: italic; font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 144; color: var(--lime); }

.nowrap { white-space: nowrap; }
.mark { position: relative; display: inline-block; z-index: 0; padding: 0 .12em; }
.mark::before {
  content: ''; position: absolute; z-index: -1;
  left: 0; right: 0; bottom: .1em; height: .42em;
  background: var(--lime);
  border-radius: 2px 10px 3px 8px;
}

/* --------------------------------------------------------- gombok */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  font-weight: 700; font-size: 17px; letter-spacing: -.005em;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-lt); transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(189,213,66,.85); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--moss); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { transform: translateY(-3px); }
.btn-vilagos { color: #fff; }
.btn-vilagos:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 12px 22px; font-size: 15.5px; }

/* --------------------------------------------------------- navigáció */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background .4s var(--ease), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--fejlec);
  transition: height .35s var(--ease);
}
.nav.stuck, .nav-belso {
  background: rgba(248,247,242,.94);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
  box-shadow: 0 1px 24px rgba(23,26,22,.07);
}
.nav.stuck .nav-in { height: 86px; }
/* A logo a fejlec fo eleme: a korabbi 42 pixel elveszett a savban. */
.nav-logo { flex: 0 0 auto; }
/* A `max-width: 100%` (globális reset) a szűk fejlécben összenyomta a logó
   SZÉLESSÉGÉT, miközben a magasság fix maradt – ettől nyúlt el a felirat.
   Itt kikapcsoljuk, és megtiltjuk a zsugorodást. */
.nav-logo img {
  height: 72px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  transition: opacity .3s, height .35s var(--ease);
}
.nav.stuck .nav-logo img, .nav-belso .nav-logo img { height: 56px; }
.nav-logo .lg-dark { display: none; }
.nav.stuck .lg-light, .nav-belso .lg-light { display: none; }
.nav.stuck .lg-dark, .nav-belso .lg-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a {
  font-size: 16px; font-weight: 600; color: var(--bone);
  position: relative; padding: 6px 7px; white-space: nowrap;
  border-radius: 5px;
  transition: color .25s;
}
.nav.stuck .nav-links a, .nav-belso .nav-links a { color: var(--text); }

/* Hover: vastag, lekerekített lime talp nő ki középről, és a felirat egy
   hajszálnyit megemelkedik. A korábbi 2 pixeles vonal alig látszott, a
   szöveg mögé húzott lime sáv viszont átvágta a betűket. */
.nav-links > li > a {
  transition: color .25s var(--ease), transform .28s var(--ease-out);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -2px;
  height: 5px;
  border-radius: 999px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .34s var(--ease-out);
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible { transform: translateY(-2px); }

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_parent > a::after,
.nav-links .current-menu-ancestor > a::after { transform: scaleX(1); }

/* Az almenü-tételek nem kapnak talpat. */
.nav-links .sub-menu a::after { content: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-links > li > a:hover { transform: none; }
}

/* almenü */
.nav-links .sub-menu {
  position: absolute; top: 100%; left: -16px; min-width: 240px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; list-style: none; display: grid; gap: 2px;
  box-shadow: var(--shadow-m);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-links > li { position: relative; }
.nav-links > li:hover > .sub-menu,
.nav-links > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-links .sub-menu a { color: var(--text) !important; display: block; padding: 10px 14px; border-radius: 9px; font-size: 15.5px; }
.nav-links .sub-menu a:hover { background: var(--lime-pale); }
.nav-links .sub-menu a::after { display: none; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-tel { font-weight: 700; font-size: 16px; color: var(--bone); white-space: nowrap; }
.nav.stuck .nav-tel, .nav-belso .nav-tel { color: var(--moss); }
.burger { display: none; width: 46px; height: 46px; border: none; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--bone); transition: .3s var(--ease); }
.nav.stuck .burger span, .nav-belso .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.nav.open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Köztes szélesség: a nagyobb logó mellett 1360 pixel alatt már nem fér ki
   minden. Előbb a telefonszám megy (a lábléc és a Kapcsolat oldal is viszi),
   utána szűkül a logó. Így a menü nem törik ketté. */
@media (max-width: 1360px) {
  .nav-logo img { height: 60px; }
  .nav.stuck .nav-logo img, .nav-belso .nav-logo img { height: 50px; }
  .nav-links { gap: 16px; }
  .nav-tel { display: none; }
  :root { --fejlec: 96px; }
}

/* belső oldalakon a tartalom ne bújjon a fejléc alá */
body:not(.gy-fooldal) #tartalom { padding-top: var(--fejlec); }

/* --------------------------------------------------------- kártyák */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); border-color: var(--lime); }
.card-media { overflow: hidden; position: relative; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.07); }

.arch { border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- űrlapok */
.gy-urlap { display: grid; gap: 18px; max-width: 640px; }
.gy-urlap-sor { display: grid; gap: 7px; }
.gy-urlap label { font-weight: 600; font-size: 16px; }
.gy-urlap input[type="text"],
.gy-urlap input[type="email"],
.gy-urlap input[type="tel"],
.gy-urlap textarea {
  width: 100%; padding: 15px 18px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--white); transition: border-color .25s, box-shadow .25s;
}
.gy-urlap input:focus, .gy-urlap textarea:focus {
  border-color: var(--lime-dk); box-shadow: 0 0 0 4px rgba(189,213,66,.22); outline: none;
}
.gy-urlap-gdpr label { font-weight: 400; font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start; }
.gy-urlap-gdpr input { margin-top: 6px; flex: none; }
.gy-urlap-gdpr a { text-decoration: underline; }
.gy-urlap button { justify-content: center; }
.gy-urlap-ok, .gy-urlap-hiba {
  padding: 16px 20px; border-radius: 12px; font-weight: 600;
  border-left: 5px solid var(--lime); background: var(--lime-pale);
}
.gy-urlap-hiba { border-left-color: var(--clay); background: #F8E9E2; }

/* hírlevél doboz */
.news {
  background: var(--moss); border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 76px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px);
  align-items: center; position: relative; overflow: hidden;
}
.news::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(189,213,66,.22), transparent 68%);
}
.news h2 { color: #fff; }
.news p { color: #C4D0BF; margin-top: 14px; }
.news .eyebrow { color: var(--lime); }
.nform { display: grid; gap: 14px; position: relative; }
.nform input[type="text"], .nform input[type="email"] {
  padding: 17px 20px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07); color: #fff; width: 100%; min-width: 0;
}
.nform input::placeholder { color: rgba(255,255,255,.5); }
.nform-gdpr { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #B7C4B2; }
.nform-gdpr input { margin-top: 6px; flex: none; }
.nform-gdpr a { text-decoration: underline; }
.nform-gomb { justify-content: center; }

/* --------------------------------------------------------- scroll reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; }
.rv-d3 { transition-delay: .27s; } .rv-d4 { transition-delay: .36s; }
.rv-d5 { transition-delay: .45s; } .rv-d6 { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- lábléc */
.foot { background: var(--ink); color: #A8AD9F; padding: clamp(64px,8vw,104px) 0 36px; }
.foot h4 { font-family: 'Space Grotesk', monospace; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: 20px; font-weight: 600; }
.foot a:hover { color: var(--lime); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.foot ul { list-style: none; display: grid; gap: 11px; }
.foot-logo { height: 56px; width: auto; margin-bottom: 22px; }
.foot-bemutat { max-width: 34ch; font-size: 16.5px; }
.foot-social { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.foot-bot {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid #2E3229;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14.5px;
  align-items: center;
}
.foot-jogi { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }

/* --------------------------------------------------------- WordPress alapok */
.alignwide { width: min(100vw - 2*var(--pad), 1180px); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 28px 20px 0; }
.alignright { float: right; margin: 0 0 20px 28px; }
.wp-caption-text, figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* --------------------------------------------------------- reszponzív */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 17.5px; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: var(--fejlec) 0 auto 0;
    /* box-sizing + width:auto: a fixed elem a left:0/right:0 közt maradjon,
       ne feszítse ki a tartalma. */
    /* min-width:0 KRITIKUS: flex konténer alapból min-width:auto, ami a
       tartalom min-content szélességét veszi és felülírja a right:0-t – ettől
       lógott ki a menü 617 pixelre. A width:100% a fixed elemet a left:0/right:0
       közé szorítja. */
    width: 100%; min-width: 0; box-sizing: border-box;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    padding: 0 var(--pad);
    max-height: 0; overflow: hidden;
    border-top: 0 solid #2E3229;
    transition: max-height .45s var(--ease), padding .45s var(--ease), border-width .45s;
  }
  /* A menüpontok mobilon TÖRHETNEK: a hosszú almenü-feliratok (pl.
     „Csapatépítő, céges rendezvények") nowrap-pal kifeszítenék az oszlopot,
     és vízszintes túlcsordulást okoznának. */
  .nav-links > li { min-width: 0; max-width: 100%; }
  .nav-links a { white-space: normal; word-break: break-word; }
  .nav.open .nav-links {
    max-height: 78vh; overflow-y: auto;
    padding: 12px var(--pad) 30px; border-top-width: 1px;
  }
  .nav-links a { color: var(--bone) !important; padding: 15px 0; border-bottom: 1px solid #2A2E26; font-size: 18px; }
  .nav-links a::after { display: none; }
  .nav-links .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: none; box-shadow: none; padding: 0 0 8px 16px;
    /* A nem-mobil szabály 240px min-width-et ad az almenünek – mobilon ez
       kifeszíti a fixed menüt a viewporton túlra. */
    min-width: 0; left: auto; width: auto;
  }
  .nav-links .sub-menu a { color: #C6CBBC !important; border-bottom: none; padding: 9px 0; font-size: 16px; }
  .nav-tel { display: none; }
}
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-bot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 620px) {
  :root { --arch: 130px 130px 6px 6px; }
}


/* --------------------------------------------------- vissza a tetejére
   Csak akkor jelenik meg, ha a látogató tényleg legörgetett – a JS teszi rá
   a `lathato` osztályt (assets/js/app.js). */
.gy-fel {
  position: fixed;
  right: clamp(16px, 2.5vw, 34px);
  bottom: clamp(16px, 2.5vw, 34px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(23,26,22,.55);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
}

.gy-fel[hidden] { display: none; }

.gy-fel.lathato { opacity: 1; transform: none; }

.gy-fel:hover { background: var(--lime-lt); transform: translateY(-3px); }

.gy-fel:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .gy-fel { transition: opacity .2s; }
  .gy-fel:hover { transform: none; }
}
