/* Magdus Masszázs – stíluslap (mobil-első) */

/* ---------- Betűk (saját tárhely, magyar ékezetekre szűkítve) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-lat.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2190-2193;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-hu.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0150-0151, U+0170-0171;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-lat.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2190-2193;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-hu.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0150-0151, U+0170-0171;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans-lat.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2032-2033, U+2039-203A, U+20AC, U+2190-2193;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/sourcesans-hu.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0150-0151, U+0170-0171;
}

/* ---------- Tokenek ---------- */
:root {
  --cream: #f7f1e8;
  --paper: #fcf9f4;
  --beige: #eadfcd;
  --beige-2: #dccbb0;
  --green: #1e4639;
  --green-dark: #143128;
  --green-mid: #2f5d4e;
  --gold: #b8913f;
  --gold-light: #d9bd7e;
  --gold-text: #7a5c22;
  --ink: #22302a;
  --muted: #4c5953;
  --line: #d6c4a6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgb(30 70 57 / 0.06), 0 12px 32px -12px rgb(30 70 57 / 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  --header-h: 64px;
  --base: 0s; /* a nyitóanimáció hossza, ennyivel késik a hero */
  /* Közös ritmus: nyugodt légzés (kb. 4 mp be, 6 mp ki). Minden lassú mozgás ezt követi. */
  --breath: 10s;
  --ease-breath: cubic-bezier(0.45, 0, 0.25, 1);
  --grain: url("/assets/img/grain.webp");

  color-scheme: light;
}
html.has-intro { --base: 1.65s; }

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grain), var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 450; line-height: 1.15; color: var(--green); margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; color: var(--gold-text); }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--green); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 0.9em; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Gombok, linkek ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--green); color: var(--cream); text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow); transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn strong { font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.btn--big { min-height: 60px; padding: 16px 28px; font-size: 1.12rem; }
.btn--big .icon { color: var(--gold-light); }
.btn--small { min-height: 48px; padding: 10px 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 1px solid transparent;
}
.link-arrow::after { content: "→"; color: var(--gold-text); transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Fejléc ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 241 232 / 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgb(30 70 57 / 0.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
/* Logó: arany M, zöld „agdus”, az M lábából induló arany ív (brand/ mappa, ne rajzold újra). */
.brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; text-decoration: none; min-height: 44px; }
.brand__logo { display: block; height: 34px; width: auto; }
.brand__tag { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); line-height: 1; padding-left: 1px; }
.nav { display: none; }
.header__call { padding: 0; width: 48px; }
.header__call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Nyitóanimáció ---------- */
/* Intro – „a logó születése” (kb. 2,5 mp): az arany M kilendülő lába megrajzolja az ívet, a betűk rászállnak,
   mögötte meleg fény „lélegzik”, végül a kész logó a fejléc logójának helyére úszik (main.js méri ki). */
.intro { display: none; }
html.has-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: var(--grain), var(--cream); cursor: pointer;
  animation: intro-out 0.95s var(--ease-breath) 1.55s forwards;
}
.intro__glow {
  position: absolute; left: 50%; top: 50%; width: min(130vw, 900px); aspect-ratio: 1.5; margin: calc(min(130vw, 900px) / -3) 0 0 calc(min(130vw, 900px) / -2);
  border-radius: 50%; background: radial-gradient(closest-side, rgb(236 208 142 / 0.65), rgb(236 208 142 / 0)); pointer-events: none;
  opacity: 0; animation: intro-glow 2.55s var(--ease-breath) forwards;
}
.intro__logo { position: relative; width: min(78vw, 520px); aspect-ratio: 332.3 / 104.2; transform-origin: center; will-change: transform, opacity; animation: intro-fly 0.95s cubic-bezier(0.35, 0, 0.2, 1) 1.55s forwards; }
.intro__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Egyetlen folyamatos mozdulat: az M és belőle kilendülő arany ív egy ecsetvonásként, balról jobbra rajzolódik ki,
   a betűk pedig a vonás közben szállnak le – sehol nincs megállás. A feltárás: a külső doboz balról becsúszik, a belső
   ugyanannyit vissza, így a rajz helyben marad, és csak a látható sáv nő. A doboz jobb széle puhán elhalványul, mint egy ecsetvég.
   A doboz az M bal szélétől az ív vége utánig ér (x: −2–320), hogy a puha szél ne halványítsa az ív hegyét. */
.intro__wipe {
  position: absolute; top: -4%; bottom: -4%; left: 0; width: 97%; overflow: hidden; transform: translateX(-100%); will-change: transform;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent);
  animation: wipe 1.45s cubic-bezier(0.4, 0.1, 0.3, 1) 0.1s forwards;
}
.intro__wipe-in { position: absolute; top: 3.7%; bottom: 3.7%; left: 0; width: 103.09%; transform: translateX(100%); will-change: transform; animation: wipe 1.45s cubic-bezier(0.4, 0.1, 0.3, 1) 0.1s forwards; }
.intro__l { opacity: 0; transform: translateY(-10px); will-change: transform, opacity; animation: intro-land 0.6s cubic-bezier(0.3, 0.5, 0.3, 1) forwards; }
.intro__l1 { animation-delay: 0.7s; }
.intro__l2 { animation-delay: 0.84s; }
.intro__l3 { animation-delay: 0.98s; }
.intro__l4 { animation-delay: 1.12s; }
.intro__l5 { animation-delay: 1.26s; }
/* a fejléc logója akkor jelenik meg, amikor a repülő logó odaér */
html.has-intro .brand__logo { animation: brand-show 0.01s linear 2.5s both; }
html.has-intro .brand__tag { animation: brand-tag 0.5s ease 2.3s both; }
html.intro-skip .intro { display: none; }
html.intro-skip .brand__logo, html.intro-skip .brand__tag { animation: none; }
@keyframes intro-out { to { background-color: rgb(247 241 232 / 0); background-image: none; visibility: hidden; } }
@keyframes intro-glow { 0% { opacity: 0; transform: scale(0.7); } 65% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.18); } }
@keyframes intro-fly { to { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 0.92)); opacity: var(--fo, 0); } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-land { to { opacity: 1; transform: none; } }
@keyframes brand-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes brand-tag { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wipe { to { transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -30% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(217 189 126 / 0.28), transparent 65%); pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 36px; }
.hero h1 em { display: inline; font-weight: 560; }
.hero__text { position: relative; }
.hero__text::before {
  content: ""; position: absolute; z-index: -1; left: -18%; top: -10%; width: min(120vw, 780px); aspect-ratio: 1.35;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(236 208 142 / 0.5), rgb(236 208 142 / 0)); pointer-events: none;
}
html.motion .hero__text::before { animation: breathe var(--breath) var(--ease-breath) infinite; }
html.motion .hero h1 em { animation: em-in 2.4s var(--ease-breath) calc(var(--base) + 0.8s) both; }
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  40% { transform: scale(1.06); opacity: 1; }
}
@keyframes em-in { from { font-weight: 300; } to { font-weight: 560; } }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 16px; }
.hero__actions .btn { width: 100%; }
.hero__note { font-size: 0.95rem; color: var(--muted); max-width: 30em; }
.hero__line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; }
.hero__line path { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.8; }


html.motion [data-hero] { animation: rise 0.9s var(--ease) both; }
html.motion .hero__text > :nth-child(1) { animation-delay: calc(var(--base) + 0.05s); }
html.motion .hero__text > :nth-child(2) { animation-delay: calc(var(--base) + 0.15s); }
html.motion .hero__text > :nth-child(3) { animation-delay: calc(var(--base) + 0.28s); }
html.motion .hero__text > :nth-child(4) { animation-delay: calc(var(--base) + 0.4s); }
html.motion .hero__text > :nth-child(5) { animation-delay: calc(var(--base) + 0.5s); }
html.motion .hero__line path { stroke-dashoffset: 1; animation: draw 2.6s var(--ease) calc(var(--base) + 0.3s) forwards; }

/* ---------- Szakaszok ---------- */
.section { padding: 72px 0; scroll-margin-top: var(--header-h); }
.section__head { max-width: 40em; margin-bottom: 36px; }
.section__lead { font-size: 1.12rem; color: var(--muted); }
.note { margin: 28px 0 0; padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--muted); max-width: 46em; }

/* Szakaszcímek: az arany vonalka kihúzódik, a cím alulról, maszk mögül emelkedik be, utána a bevezető. */
html.motion .section__head[data-animate] .eyebrow { opacity: 0; transition: opacity 0.8s ease 0.15s; }
html.motion .section__head[data-animate] .eyebrow::before { width: 0; transition: width 1.2s var(--ease-breath); }
html.motion .section__head[data-animate] h2 {
  clip-path: inset(100% -0.3em -0.3em -0.3em); transform: translateY(0.45em);
  transition: clip-path 1.1s var(--ease-breath) 0.2s, transform 1.1s var(--ease-breath) 0.2s;
}
html.motion .section__head[data-animate] .section__lead { opacity: 0; transform: translateY(14px); transition: opacity 1s ease 0.55s, transform 1s var(--ease) 0.55s; }
html.motion .section__head.is-in .eyebrow { opacity: 1; }
html.motion .section__head.is-in .eyebrow::before { width: 28px; }
html.motion .section__head.is-in h2 { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); transform: none; }
html.motion .section__head.is-in .section__lead { opacity: 1; transform: none; }

html.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Testtérkép ---------- */
.section--map { background: var(--grain), linear-gradient(var(--cream), var(--paper) 30%, var(--paper) 70%, var(--cream)); }
.bodymap__figure, .bodymap__tabs { display: none; }
.bodymap__panels { display: grid; gap: 16px; }

html.js .bodymap {
  display: grid; gap: 20px 18px; align-items: center;
  grid-template-columns: minmax(104px, 36%) 1fr;
  grid-template-areas: "fig tabs" "panel panel";
}
html.js .bodymap__figure { display: block; grid-area: fig; }
html.js .bodymap__tabs:not([hidden]) { display: flex; flex-direction: column; gap: 10px; grid-area: tabs; }
html.js .bodymap__panels { grid-area: panel; }

.bodymap__figure svg { width: 100%; max-height: 360px; margin-inline: auto; overflow: visible; }
.bodymap__body > * { fill: var(--beige); stroke: var(--gold); stroke-width: 1.1; }
.bodymap__spine path { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.7; }
/* Kijelöléskor a testtáj közepéből meleg fény terjed szét, mint egy kéz melege, és a légzés ritmusában él. */
.bodymap__zone { cursor: pointer; }
.zone__fill { fill: var(--gold); opacity: 0; transition: opacity 0.8s var(--ease-breath); }
.zone__heat { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 1.6s var(--ease-breath), opacity 0.9s ease; }
.bodymap__zone:hover .zone__fill { opacity: 0.2; }
.bodymap__zone.is-active .zone__fill { opacity: 0.32; }
.bodymap__zone.is-active .zone__heat { opacity: 1; transform: scale(1); }
.bodymap__zone.is-hint .zone__fill { opacity: 0.28; }
.bodymap__zone.is-hint .zone__heat { opacity: 0.85; transform: scale(0.85); }
html.motion .bodymap__zone.is-active .zone__heat { animation: warmth var(--breath) var(--ease-breath) 1.6s infinite; }
@keyframes warmth {
  0%, 100% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.08); opacity: 0.78; }
}

.chip {
  appearance: none; font: inherit; font-weight: 600; text-align: left;
  min-height: 48px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid #a3843f; background: var(--cream); color: var(--green); cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold); flex: none; transition: background-color 0.25s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-selected="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.chip[aria-selected="true"]::before { background: var(--gold-light); border-color: var(--gold-light); }

.treat { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
html.js .treat { background: var(--cream); }
.treat h3 { margin-bottom: 0.4em; }
.treat > :last-child { margin-bottom: 0; }
.treat__often { font-size: 0.98rem; color: var(--muted); }
.treat__often span { display: block; font-weight: 700; color: var(--gold-text); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
html.motion .treat:not([hidden]) { animation: rise 0.5s var(--ease); }
.treat[hidden] { display: none; }

/* ---------- Menete (mélyzöld) ---------- */
.section--steps { background: var(--grain), var(--green); color: #e4ddd0; }
.section--steps h2, .section--steps h3 { color: var(--cream); }
.section--steps .eyebrow { color: var(--gold-light); }
.section--steps .eyebrow::before { background: var(--gold-light); }
.section--steps .section__lead { color: #e4ddd0; }
.steps { counter-reset: step; display: grid; gap: 4px; }
.step { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light);
  border: 1px solid var(--gold-light); background: var(--green); transition: background-color 0.9s var(--ease-breath), color 0.9s var(--ease-breath);
}
/* Görgetés közben a vonal lefelé kirajzolódik, és ahová ér, ott a számkör aranyra telik. */
.step::after {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: 4px; width: 1px;
  background: linear-gradient(var(--gold-light), var(--gold-light)) top / 100% var(--fill, 100%) no-repeat, rgb(247 241 232 / 0.2);
}
.step.is-reached::before { background: var(--gold-light); color: var(--green); }
html.motion .step::after { --fill: 0%; transition: background-size 1.6s var(--ease-breath) 0.3s; }
html.motion .step.is-reached::after { --fill: 100%; }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; margin-bottom: 0.25em; }
.step p { color: #e4ddd0; margin: 0; }
html.motion .step:nth-child(2) { transition-delay: 0.08s; }
html.motion .step:nth-child(3) { transition-delay: 0.16s; }
html.motion .step:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Idézetsáv ---------- */
.quote-band { padding: 88px 0; text-align: center; overflow: hidden; }
.quote { margin: 0 auto; max-width: 820px; }
.quote__text { margin: 0; }
.quote__text p {
  margin: 0 auto; max-width: 14em; font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance;
}
/* Rendes magyar idézőjel a mondat két végén, arany színnel. */
.quote__text p::before, .quote__text p::after { color: var(--gold); }
.quote__text p::before { content: "„"; content: "„" / ""; }
.quote__text p::after { content: "”"; content: "”" / ""; }
.quote__text em { font-weight: 500; }
.quote__by {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text);
}
.quote__by::before, .quote__by::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
/* „Élesre állítás”: a mondat elmosódottan, kissé nagyobban érkezik, és lassan kitisztul. */
html.motion .quote-band[data-animate] .quote__text p { opacity: 0; filter: blur(10px); transform: scale(1.06); transition: opacity 1.6s ease, filter 2s var(--ease-breath), transform 2.4s var(--ease-breath); }
html.motion .quote-band[data-animate] .quote__text p::before, html.motion .quote-band[data-animate] .quote__text p::after { opacity: 0; transition: opacity 1.2s ease 0.6s; }
html.motion .quote-band[data-animate] .quote__by { opacity: 0; transition: opacity 1.2s ease 1.2s; }
html.motion .quote-band.is-in .quote__text p { opacity: 1; filter: none; transform: none; }
html.motion .quote-band.is-in .quote__text p::before, html.motion .quote-band.is-in .quote__text p::after { opacity: 1; }
html.motion .quote-band.is-in .quote__by { opacity: 1; }

/* ---------- Módszerek ---------- */
.section--methods { background: var(--grain), var(--beige); }
.section--methods .eyebrow, .section--methods em { color: #6b4f1b; }
.methods { display: grid; gap: 16px; }
.method { background: var(--paper); border-radius: var(--radius); padding: 24px 22px; border-top: 3px solid var(--gold); }
.method p { margin: 0; color: var(--muted); }
.quals { margin-top: 40px; background: var(--paper); border-radius: var(--radius); padding: 26px 22px; }
.quals__title { font-size: 1.25rem; margin-bottom: 8px; }
.quals__main { margin: 0 0 18px; font-weight: 600; color: var(--green); }
.quals__sub { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.quals__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
.quals__list li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.quals__list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- GYIK ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 4px; font-family: var(--serif); font-size: 1.15rem; color: var(--green);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold);
  background:
    linear-gradient(var(--gold-text), var(--gold-text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold-text), var(--gold-text)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 4px 18px; margin: 0; max-width: 40em; }
html.motion .faq details[open] p { animation: rise 0.6s var(--ease); }
/* Lágy nyitás-zárás ott, ahol a böngésző már tudja (a többiben azonnal nyílik). */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  html.motion { interpolate-size: allow-keywords; }
  html.motion .faq details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size 0.6s var(--ease-breath), content-visibility 0.6s allow-discrete;
  }
  html.motion .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Hívás ---------- */
.section--call { padding: 0 0 72px; }
.call {
  background: var(--grain), var(--green); color: var(--cream); border-radius: var(--radius-lg); padding: 48px 22px;
  text-align: center; position: relative; overflow: hidden; isolation: isolate;
}
.call::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgb(217 189 126 / 0.35); box-shadow: 0 0 0 40px rgb(217 189 126 / 0.05), 0 0 0 90px rgb(217 189 126 / 0.04);
}
.call > * { position: relative; }
.call__mark { width: 52px; height: 52px; color: var(--gold-light); margin: 0 auto 18px; }
.call h2 { color: var(--cream); }
.call p { color: #e4ddd0; }
.call__number {
  display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); color: var(--cream);
  text-decoration: none; border-bottom: 1px solid var(--gold-light); line-height: 1.2; padding: 6px 4px; margin: 6px 0 14px; white-space: nowrap;
}
.call__number:hover { border-bottom-width: 3px; }
/* Halk „csörgés”: a számtól lassan kifelé hullámzó gyűrűk, a légzés ritmusában. */
.call__waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.call__waves i { position: absolute; inset: -12% -8%; border: 1px solid rgb(217 189 126 / 0.55); border-radius: 999px; opacity: 0; }
html.motion .call.is-in .call__waves i { animation: wave var(--breath) var(--ease-breath) infinite; }
html.motion .call.is-in .call__waves i:nth-child(2) { animation-delay: calc(var(--breath) / 3); }
html.motion .call.is-in .call__waves i:nth-child(3) { animation-delay: calc(var(--breath) / 3 * 2); }
@keyframes wave {
  0% { transform: scale(0.92); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: scale(1.5, 2.4); opacity: 0; }
}
.call__meta { font-size: 0.95rem; margin: 0; }
.call :focus-visible { outline-color: var(--gold-light); }

/* ---------- Lábléc ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.92rem; color: var(--muted); }
.footer p { margin: 0 0 4px; }

/* ---------- Képernyőméretek ---------- */
@media (min-width: 600px) {
  .hero__actions .btn { width: auto; }
  .header__call { width: auto; padding: 10px 18px; }
  .header__call-text { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .methods { grid-template-columns: repeat(2, 1fr); }
  .quals { padding: 32px 36px; }
  .quals__list { grid-template-columns: repeat(2, 1fr); }
  .call { padding: 64px 40px; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  html.js .bodymap { grid-template-columns: 220px 220px 1fr; grid-template-areas: "fig tabs panel"; gap: 32px; }
  .bodymap__panels { min-height: 300px; align-content: center; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .brand__logo { height: 40px; }
  .brand__tag { font-size: 0.68rem; }
  body { font-size: 1.125rem; }
  .nav { display: block; }
  .nav ul { display: flex; gap: 6px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--ink); border-radius: 999px; }
  .nav a:hover { color: var(--green); background: var(--beige); }
  .hero { padding: 56px 0 120px; }
  .hero__text { max-width: 780px; }
  .hero__line { height: 160px; }
  .section { padding: 112px 0; }
  .section--call { padding: 0 0 112px; }
  html.js .bodymap { grid-template-columns: 260px 230px 1fr; gap: 48px; }
  .steps-layout__text { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .steps-layout__text .section__head { margin-bottom: 0; }
  .methods { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { display: flex; justify-content: space-between; gap: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (forced-colors: active) {
  .chip[aria-selected="true"] { outline: 2px solid CanvasText; }
  .bodymap__zone.is-active .zone__fill { fill: Highlight; opacity: 0.6; }
  .zone__heat { display: none; }
}

@media print {
  .header, .intro, .hero__line { display: none !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }
.notfound__logo { width: 200px; height: auto; margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
