/* Prémium Szakértők */
:root {
  --bg: #f4efe7;
  --bg2: #ece5d9;
  --paper: #fbf8f3;
  --ink: #1c1a16;
  --ink2: #47423a;
  --muted: #857d70;
  --line: rgba(28, 26, 22, .14);
  --line2: rgba(28, 26, 22, .08);
  --brass: #946f40;
  --brass2: #c4a172;
  --night: #15130f;
  --night2: #1f1c17;
  --night-ink: #eee7db;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --nav-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html.sheet-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* finom papírszemcse */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--brass2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0;
  font: 600 11px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--plain::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }

/* ---------- megjelenés (scroll reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal--fade { transform: none; }

/* ---------- navigáció ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background-color .8s var(--ease), box-shadow .8s var(--ease), height .6s var(--ease), transform .8s var(--ease);
}
.nav.scrolled {
  background: rgba(244, 239, 231, .82);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  backdrop-filter: saturate(1.2) blur(16px);
  box-shadow: 0 1px 0 var(--line2);
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  font: italic 400 21px/1 var(--serif);
  color: var(--brass);
  padding-bottom: 2px;
  transition: transform 1.2s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-12deg); }
.brand__name { font: 500 21px/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.brand__name small { font: 600 9.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 5px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  position: relative;
  font: 500 13px/1 var(--sans);
  letter-spacing: .06em;
  color: var(--ink2);
  padding: 8px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta { border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s; }
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .brand__name small { display: none; }
  .brand__name { font-size: 19px; }
  .brand { gap: 11px; }
  .brand__mark { width: 34px; height: 34px; font-size: 19px; }
  .nav__links .nav__cta { padding: 10px 15px; font-size: 12.5px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform-origin: 70% 60%;
  opacity: 0;
  animation: heroIn 2.4s var(--ease) .1s forwards, heroZoom 38s cubic-bezier(.25, .1, .25, 1) .1s forwards;
}
@keyframes heroIn { to { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 239, 231, .94) 0%, rgba(244, 239, 231, .80) 30%, rgba(244, 239, 231, .25) 56%, rgba(244, 239, 231, 0) 70%),
    linear-gradient(0deg, rgba(244, 239, 231, .9) 0%, rgba(244, 239, 231, 0) 22%),
    linear-gradient(180deg, rgba(244, 239, 231, .55) 0, rgba(244, 239, 231, 0) 150px);
}
.hero__inner { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; }
.hero__title {
  margin: 30px 0 30px;
  font-size: clamp(3.1rem, 7.4vw, 7.6rem);
  line-height: .94;
  font-weight: 300;
  letter-spacing: -.025em;
}
.hero__title em { font-weight: 300; color: var(--ink2); }
.hero__title strong { font-weight: 400; color: var(--brass); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; transform: translate3d(0, 108%, 0); animation: lineUp 1.6s var(--ease) forwards; animation-delay: calc(.35s + var(--i, 0) * .14s); }
@keyframes lineUp { to { transform: none; } }
.hero__claim { margin: -8px 0 34px; font: 400 clamp(1.6rem, 2.7vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.01em; }
.hero__claim b { font-weight: 500; color: var(--brass); font-variant-numeric: lining-nums; }
.hero__lead { max-width: 30em; margin: 0 0 40px; color: var(--ink2); font-size: clamp(15px, 1.25vw, 17px); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: scrollCue 2.8s var(--ease-io) infinite; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero__media img { object-position: 50% 50%; }
  .hero__veil {
    background: linear-gradient(180deg, rgba(244, 239, 231, .95) 0%, rgba(244, 239, 231, .86) 46%, rgba(244, 239, 231, .35) 74%, rgba(244, 239, 231, .55) 100%);
  }
  .hero__inner { padding-top: calc(var(--nav-h) + 28px); }
  .hero__scroll { display: none; }
}

/* ---------- kereső ---------- */
.search { position: relative; max-width: 640px; z-index: 5; }
.search__box {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid rgba(28, 26, 22, .10);
  border-radius: 999px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 15, .35), 0 2px 6px rgba(40, 30, 15, .05);
  padding: 8px 8px 8px 26px;
  transition: box-shadow .8s var(--ease), border-color .6s var(--ease), transform .8s var(--ease);
}
.search__box:focus-within { border-color: rgba(148, 111, 64, .45); box-shadow: 0 40px 80px -36px rgba(40, 30, 15, .45), 0 0 0 6px rgba(196, 161, 114, .14); }
.search__icon { flex: none; width: 20px; height: 20px; color: var(--muted); margin-right: 14px; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 400 clamp(17px, 1.5vw, 19px)/1.2 var(--sans);
  color: var(--ink);
  padding: 14px 0;
}
.search input::placeholder { color: #a39b8d; }
.search input::-webkit-search-cancel-button { display: none; }
.search__geo {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--sans); letter-spacing: .02em;
  color: var(--ink2);
  padding: 12px 16px;
  border-radius: 999px;
  transition: background-color .5s var(--ease), color .5s;
}
.search__geo svg { width: 17px; height: 17px; }
.search__geo:hover { background: var(--bg2); color: var(--ink); }
.search__geo.busy svg { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search__go {
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  transition: transform .8s var(--ease), background-color .5s;
}
.search__go svg { width: 20px; height: 20px; transition: transform .8s var(--ease); }
.search__go:hover { background: var(--brass); }
.search__go:hover svg { transform: translateX(3px); }
@media (max-width: 520px) {
  .search__box { padding-left: 20px; }
  .search__geo span { display: none; }
  .search__geo { padding: 12px; }
  .search__icon { display: none; }
}

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  margin: 0; padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line2);
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(40, 30, 15, .35);
  opacity: 0; transform: translateY(-8px) scale(.99); transform-origin: top center;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  max-height: min(60vh, 440px); overflow-y: auto;
}
.suggest.open { opacity: 1; transform: none; pointer-events: auto; }
.suggest li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .3s;
}
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--bg); }
.suggest .s-name { font: 400 22px/1.15 var(--serif); }
.suggest .s-name mark { background: none; color: var(--ink); font-weight: 600; }
.suggest .s-sub { font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.suggest .s-count { margin-left: auto; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.suggest .s-geo { font: 500 14px/1.2 var(--sans); color: var(--ink2); }
.suggest .s-geo svg { width: 16px; height: 16px; color: var(--brass); }
.suggest .s-head { cursor: default; padding: 12px 16px 6px; font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.suggest .s-head:hover { background: none; }
.suggest .s-empty { cursor: default; color: var(--muted); font-size: 14px; }
.suggest .s-empty:hover { background: none; }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.quick__label { margin-right: 8px; }
.quick button {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  color: var(--ink2);
  background: rgba(251, 248, 243, .5);
  transition: background-color .5s var(--ease), color .5s, border-color .5s;
}
.quick button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- találatok ---------- */
.results { padding: clamp(80px, 10vw, 140px) 0 clamp(96px, 12vw, 170px); background: var(--paper); position: relative; }
.results::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line2); }
.results__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.results__title {
  font-size: clamp(3.4rem, 9vw, 8.8rem);
  line-height: .9;
  letter-spacing: -.03em;
}
.results__title .line > span { animation: none; transform: translate3d(0, 108%, 0); transition: transform 1.5s var(--ease); }
.results__title.in .line > span { transform: none; }
.results__sub { margin: 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink2); max-width: 40em; }
.results__sub b { font-weight: 600; color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) clamp(20px, 2.6vw, 40px);
}
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: block; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg2);
  border-radius: 3px;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 2.2s var(--ease), opacity 1.2s var(--ease), filter 1.2s var(--ease);
  opacity: 0;
}
.card__media img.loaded { opacity: 1; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0) 60%, rgba(20, 18, 15, .28) 100%);
  opacity: 0; transition: opacity 1s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }
.badge {
  position: absolute; left: 16px; top: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(251, 248, 243, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 10px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.badge--local::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 1px; }
.card__go {
  position: absolute; right: 16px; bottom: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  transform: translateY(10px) scale(.9); opacity: 0;
  transition: transform .9s var(--ease), opacity .6s var(--ease);
  z-index: 1;
}
.card__go svg { width: 18px; height: 18px; }
.card:hover .card__go { transform: none; opacity: 1; }
.card__body { padding-top: 22px; }
.card__loc { margin: 0 0 10px; font: 600 10.5px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.card__name { font-size: clamp(1.8rem, 2.4vw, 2.35rem); line-height: 1.05; font-weight: 400; }
.card__name span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 1s var(--ease); }
.card:hover .card__name span { background-size: 100% 1px; }
.card__meta { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.grid .card { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.grid .card.in { opacity: 1; transform: none; }
.grid.leaving .card { opacity: 0; transform: translate3d(0, -12px, 0); transition-duration: .45s; transition-delay: 0s; }

.more-wrap { display: flex; justify-content: center; margin-top: clamp(56px, 6vw, 84px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font: 500 14px/1 var(--sans);
  letter-spacing: .04em;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease), transform .8s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--brass); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: var(--brass2); }

/* Budapest kerületválasztó */
.districts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  margin-bottom: clamp(64px, 7vw, 96px);
}
@media (max-width: 1100px) { .districts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) { .districts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .district b { font-size: 1.9rem; } .district small { display: none; } .district { padding: 16px 12px 14px; } }
@media (max-width: 420px) { .districts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.district--all b { font-style: italic; font-size: 1.45rem !important; line-height: 1.08; }
.district {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 18px 18px;
  background: var(--paper);
  text-align: left;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.district b { font: 300 2.4rem/1 var(--serif); }
.district small { font-size: 11.5px; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.district i { margin-top: auto; padding-top: 6px; font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.district.empty b { color: #b3ab9e; }
.district:hover { background: var(--ink); color: var(--paper); }
.district:hover small { color: #b3ab9e; }
.district:hover i { color: var(--brass2); }
.results__subhead { margin: 0 0 36px; font: 300 clamp(2rem, 3.4vw, 3rem)/1 var(--serif); }

/* ---------- arcok ---------- */
.faces { padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 10vw, 150px); overflow: hidden; }
.faces__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.faces__head h2, .section-title { font-size: clamp(2.8rem, 6.2vw, 6rem); line-height: .96; letter-spacing: -.025em; margin-top: 24px; }
.section-title em, .faces__head h2 em { color: var(--ink2); }
.faces__lead { margin: 0; color: var(--ink2); max-width: 26em; font-size: clamp(15px, 1.25vw, 17px); }
@media (max-width: 860px) { .faces__head { grid-template-columns: 1fr; } }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: clamp(14px, 1.6vw, 22px); }
.marquee__track { display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; animation: marquee var(--dur, 140s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.tile { margin: 0; position: relative; width: clamp(150px, 15vw, 224px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--bg2); flex: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(1.02); opacity: 0; transform: scale(1.001); transition: filter 1.4s var(--ease), transform 2s var(--ease), opacity 1.4s var(--ease); }
.tile img.loaded { opacity: .92; }
.tile:hover img { filter: none; transform: scale(1.06); opacity: 1; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 14px 13px;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 15, .72));
  color: var(--night-ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.tile:hover figcaption { opacity: 1; transform: none; }
.tile figcaption b { display: block; font: 400 19px/1.1 var(--serif); }
.tile figcaption span { font: 600 9px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 0 0; }
.stat + .stat { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.stat b { display: block; font: 300 clamp(3.4rem, 7.4vw, 7rem)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; margin-top: 14px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 26px 0; }
}

/* ---------- térkép ---------- */
.mapsec { padding: clamp(100px, 12vw, 180px) 0; background: var(--bg2); position: relative; }
.mapsec__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 100px); align-items: center; }
.mapsec p.lead { color: var(--ink2); max-width: 22em; margin: 28px 0 0; }
@media (max-width: 960px) { .mapsec__grid { grid-template-columns: 1fr; } }
.map { position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .country { fill: rgba(251, 248, 243, .55); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map .lake { fill: rgba(148, 111, 64, .22); }
.map .river { fill: none; stroke: rgba(148, 111, 64, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map .draw { transition: stroke-dashoffset 3.4s var(--ease-io); }
.map .fadein { opacity: 0; transition: opacity 2s var(--ease) 1.6s; }
.map.in .fadein { opacity: 1; }
.map .dot { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .9s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.map.in .dot { opacity: 1; transform: none; }
.map .dot circle.core { fill: var(--brass); }
.map .dot circle.halo { fill: var(--brass); opacity: .16; transition: opacity .6s, r .6s var(--ease); }
.map .dot:hover circle.halo, .map .dot:focus-visible circle.halo { opacity: .32; }
.map .dot:focus-visible { outline: none; }
.map .dot--bp circle.core { fill: var(--ink); }
.map .dot--bp circle.ring { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; animation: ring 3.6s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.map .bp-label { font: 400 30px/1 var(--serif); fill: var(--ink); paint-order: stroke; stroke: #f1ebe1; stroke-width: 7px; stroke-linejoin: round; }
.map .bp-count { font: 600 12px/1 var(--sans); letter-spacing: .2em; fill: var(--brass); paint-order: stroke; stroke: #f1ebe1; stroke-width: 6px; stroke-linejoin: round; }
.map .bp-lead { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.maptip {
  position: absolute; z-index: 3; pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px));
  background: var(--ink); color: var(--paper);
  padding: 10px 14px 11px; border-radius: 10px;
  font-size: 13px; white-space: nowrap;
  opacity: 0; transition: opacity .35s var(--ease);
}
.maptip.show { opacity: 1; }
.maptip b { display: block; font: 400 20px/1.1 var(--serif); }
.maptip span { color: var(--brass2); font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- elvek ---------- */
.pillars { padding: clamp(110px, 13vw, 190px) 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); }
.pillar { border-top: 1px solid var(--ink); padding-top: 28px; }
.pillar i { display: block; font: italic 300 2.6rem/1 var(--serif); color: var(--brass); margin-bottom: 40px; }
.pillar h3 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.04; font-weight: 400; }
.pillar p { margin: 16px 0 0; color: var(--ink2); max-width: 22em; }
@media (max-width: 860px) { .pillars__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- csatlakozás ---------- */
.join { background: var(--night); color: var(--night-ink); padding: clamp(110px, 14vw, 200px) 0; position: relative; overflow: hidden; }
.join .eyebrow { color: var(--brass2); }
.join h2 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: .96; letter-spacing: -.025em; margin: 28px 0 0; max-width: 11.5em; }
.join h2 em { color: var(--brass2); }
.join p { color: #b8b0a2; max-width: 30em; margin: 32px 0 44px; }
.join__ring { position: absolute; right: -12vw; top: 50%; width: min(70vw, 900px); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(196, 161, 114, .18); border-radius: 50%; pointer-events: none; }
.join__ring::before, .join__ring::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(196, 161, 114, .12); border-radius: 50%; }
.join__ring::after { inset: 26%; border-color: rgba(196, 161, 114, .08); }
.join.in .join__ring { animation: slowSpin 120s linear infinite; }
@keyframes slowSpin { to { transform: translateY(-50%) rotate(360deg); } }
/* jelentkezési űrlap */
.apply { position: relative; max-width: 760px; }
.apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.field { display: block; }
.field span { display: block; margin-bottom: 10px; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass2); }
.field input {
  width: 100%; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(238, 231, 219, .28); border-radius: 0;
  color: var(--night-ink); font: 400 17px/1.4 var(--sans);
  outline: none; transition: border-color .4s var(--ease);
}
.field input::placeholder { color: rgba(238, 231, 219, .3); }
.field input:focus { border-bottom-color: var(--brass2); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--night-ink); -webkit-box-shadow: 0 0 0 40px var(--night) inset; caret-color: var(--night-ink); }
.field.err span { color: #e3906f; }
.field.err input { border-bottom-color: #e3906f; }
.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 44px; }
.join .apply__note { margin: 0; max-width: 24em; font-size: 13px; line-height: 1.5; color: #8f887c; }
.apply__note a { color: #b8b0a2; text-decoration: underline; text-underline-offset: 3px; }
.apply__note a:hover { color: var(--night-ink); }
.join .apply__msg { margin: 22px 0 0; font-size: 15px; color: #e3906f; }
.join .apply__msg:empty { display: none; }
.apply.busy .btn { opacity: .6; pointer-events: none; }
.apply.done .apply__grid, .apply.done .apply__foot { display: none; }
.join .apply.done .apply__msg { margin: 0; max-width: 22em; font: 300 clamp(1.6rem, 2.6vw, 2.3rem)/1.25 var(--serif); color: var(--night-ink); }
@media (max-width: 640px) { .apply__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- lábléc ---------- */
.foot { background: var(--night2); color: #9d9587; padding: 72px 0 40px; font-size: 13.5px; }
.foot .brand__name { color: var(--night-ink); }
.foot .brand__mark { border-color: var(--brass2); color: var(--brass2); }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(238, 231, 219, .1); }
.foot__note { max-width: 34em; margin: 0; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; }
.foot a:not(.brand) { color: var(--night-ink); border-bottom: 1px solid rgba(238, 231, 219, .2); transition: border-color .5s; }
.foot a:hover { border-color: var(--brass2); }
.index { margin-top: 40px; }
.index summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--night-ink); }
.index summary::-webkit-details-marker { display: none; }
.index summary::after { content: "+"; font: 300 22px/1 var(--serif); color: var(--brass2); transition: transform .6s var(--ease); }
.index[open] summary::after { transform: rotate(45deg); }
.index__list { columns: 4 220px; column-gap: 40px; margin: 28px 0 0; padding: 0; list-style: none; }
.index__list li { break-inside: avoid; padding: 5px 0; line-height: 1.45; }
.index__list li span { display: block; font: 600 9px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #7d766a; }
.index__list a { border: 0; color: #d6cfc2; }
.index__list a:hover { color: var(--brass2); }

/* ---------- szakértő lap ---------- */
.sheet { position: fixed; inset: 0; z-index: 200; display: grid; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(21, 19, 15, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__panel {
  position: relative;
  margin: clamp(0px, 2.2vw, 28px);
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}
.sheet__media { position: relative; overflow: hidden; background: var(--bg2); }
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: sheetZoom 26s cubic-bezier(.25, .1, .25, 1) forwards; }
@keyframes sheetZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.sheet__body { overflow-y: auto; padding: clamp(40px, 6vw, 96px) clamp(28px, 5.4vw, 88px) clamp(36px, 5vw, 64px); display: flex; flex-direction: column; }
.sheet__name { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .95; letter-spacing: -.025em; margin: 26px 0 0; }
.sheet__motto { margin: 22px 0 0; font: italic 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.3 var(--serif); color: var(--ink2); max-width: 26em; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: clamp(36px, 4vw, 52px) 0 0; border-top: 1px solid var(--line); }
.facts div { flex: 1 1 0; min-width: 110px; padding: 22px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dd { margin: 0; font: 300 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--serif); font-variant-numeric: lining-nums; }
.facts dt { margin-top: 10px; font: 600 9.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quote { margin: clamp(36px, 4vw, 52px) 0 0; position: relative; padding-left: 34px; }
.quote::before { content: "\201E"; position: absolute; left: -2px; top: -18px; font: 400 64px/1 var(--serif); color: var(--brass2); }
.quote p { margin: 0; font: 400 clamp(1.15rem, 1.5vw, 1.32rem)/1.45 var(--serif); color: var(--ink); }
.quote cite { display: block; margin-top: 14px; font: 600 9.5px/1.4 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.areas { margin-top: clamp(30px, 3.4vw, 44px); font-size: 14px; color: var(--ink2); }
.areas b { display: block; font: 600 9.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sheet__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: clamp(40px, 4.6vw, 64px); }
.sheet__host { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); }
.sheet__close {
  position: absolute; right: 18px; top: 18px; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 248, 243, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line2);
  transition: transform .8s var(--ease), background-color .5s;
}
.sheet__close svg { width: 18px; height: 18px; }
.sheet__close:hover { transform: rotate(90deg); background: var(--paper); }
.sheet__body > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(.18s + var(--i, 0) * .07s); }
.sheet.ready .sheet__body > * { opacity: 1; transform: none; }
.sheet.anim .sheet__backdrop { animation: fadeIn .8s var(--ease) both; }
.sheet.anim .sheet__panel { animation: panelIn 1.1s var(--ease) both; }
.sheet.closing .sheet__backdrop { animation: fadeOut .5s var(--ease) both; }
.sheet.closing .sheet__panel { animation: panelOut .55s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes panelOut { to { opacity: 0; transform: translateY(14px) scale(.99); } }
@media (max-width: 860px) {
  .sheet__panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; margin: 0; border-radius: 0; overflow-y: auto; display: block; }
  .sheet__media { height: min(52svh, 500px); }
  .sheet__body { overflow: visible; padding-top: 36px; }
  .sheet__cta { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(251, 248, 243, 0), var(--paper) 28%); padding-bottom: 18px; margin-top: 36px; }
  .sheet__cta .btn { flex: 1; }
}

/* nézetátmenet (View Transitions) */
::view-transition-group(portrait) { animation-duration: .9s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(portrait), ::view-transition-new(portrait) { height: 100%; object-fit: cover; overflow: hidden; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; }
  .marquee { overflow-x: auto; }
}
