/* =========================================================
   Pszichovita — Dr. Bacsárdi Csilla klinikai szakpszichológus
   Design system: "csendes kert / erdei fény"
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --paper:      #F3EFE4;
  --paper-2:    #FBF9F3;
  --card:       #FFFFFF;
  --ink:        #2B302A;
  --ink-soft:   #5C6157;
  --ink-faint:  #696E65;   /* 4.55:1 on --paper, 5.19:1 on white */
  --pine:       #2E4636;
  --pine-2:     #3C5A45;
  --sage:       #7B9A6B;
  --sage-tint:  #E4ECD7;
  --sage-line:  #CBD8B8;
  --sage-deep:  #5E7A50;   /* sage at reading contrast — type only, 4.80:1 on white */
  --honey:      #B4842E;
  --honey-deep: #8C6420;
  --honey-soft: #EBDCB6;
  --honey-ink:  #7E5A1C;   /* wheat at reading contrast on --sage-tint, 5.13:1 */
  --stone:      #D9D1BF;
  --stone-deep: #B9AF99;
  /* the header's own translucent paper — derived from --paper, not a second colour */
  --paper-glass: rgba(243, 239, 228, .94);

  /* the two lit pebbles inside the dark brand mark (header, footer, modal) */
  --pebble-lit-1: #E9E3D3;
  --pebble-lit-2: #CDE0BB;
  /* Ripe Wheat one step brighter — the primary button's hover only */
  --honey-lift:  #C8973B;
  /* the only text colour that sits on a Ripe Wheat fill — 4.75:1 */
  --on-honey:    #2A2110;
  /* one dark for every scrim and overlay; was four near-identical literals */
  --scrim-rgb:   22, 34, 26;

  /* type — single family across the whole site */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  var(--serif);   /* one family everywhere — the alias is kept for readability */

  /* space + shape */
  --maxw: 1120px;
  --readw: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(46, 70, 54, .05);
  --shadow-md: 0 8px 24px rgba(46, 70, 54, .06);
  --shadow-lg: 0 16px 40px rgba(46, 70, 54, .09);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pine); text-decoration: none; }

/* headings default to serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 560;
  color: var(--pine);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; }

.bolder { font-weight: 700; color: var(--pine-2); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hide { display: none !important; }

/* eyebrow / kicker */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--honey);
  display: inline-block;
}

/* pebble mark (signature motif) */
.pebbles { display: inline-flex; align-items: flex-end; gap: 3px; }
.pebbles i {
  display: block; border-radius: 50% 50% 46% 54%;
  background: var(--sage);
}
.pebbles i:nth-child(1){ width:7px;  height:5px; background: var(--stone-deep); }
.pebbles i:nth-child(2){ width:10px; height:7px; background: var(--sage); }
.pebbles i:nth-child(3){ width:6px;  height:9px; background: var(--honey); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-glass);
  border-bottom: 1px solid var(--stone);
}
/* header spans a slightly wider column so all nav items fit on one row
   and the phone number lines up with "Kapcsolat" beneath it */
.site-header .wrap { max-width: 1220px; }

/* --- row 1: brand + actions --- */
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* the brand mark — one definition for every placement (header, footer) */
.mark {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sage), var(--pine));
  box-shadow: var(--shadow-sm);
}
.mark-sm { width: 38px; height: 38px; }
/* inside the dark mark the pebbles have to read light */
.mark .pebbles i:nth-child(1){ background: var(--pebble-lit-1); }
.mark .pebbles i:nth-child(2){ background: var(--pebble-lit-2); }
.mark .pebbles i:nth-child(3){ background: var(--honey-soft); }

.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
  color: var(--pine); letter-spacing: .01em;
}
.brand-sub {
  font-family: var(--sans); font-weight: 700; font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.site-header .brand-sub { white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .86rem;
  color: var(--pine); padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--sage-line); background: rgba(123,154,107,.08);
  transition: background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.phone-cta .ico { color: var(--honey-deep); }
.phone-cta:hover { background: var(--sage-tint); border-color: var(--sage); }

/* --- row 2: primary nav — spans the content column so the first item sits
   under the brand and the last (Kapcsolat) under the phone number --- */
.header-nav { border-top: 1px solid var(--stone); }
.header-nav .wrap { display: flex; }
.header-nav .nav { flex: 1 1 auto; }
.nav > ul {
  display: flex; flex-wrap: nowrap; justify-content: flex-start;
  gap: 2px; list-style: none; margin: 0 -16px; padding: 0;
}
.nav a, .nav .sub-toggle {
  display: inline-block; white-space: nowrap;
  font-family: var(--sans); font-weight: 600;
  font-size: .82rem; letter-spacing: .005em;
  line-height: inherit; /* buttons don't inherit it — without this they sit higher than the links */
  color: var(--ink-soft);
  padding: 13px 16px; border-radius: 8px 8px 0 0;
  position: relative; transition: color .2s var(--ease), background .2s var(--ease);
  cursor: pointer;
  background: none; border: 0;
}
.nav a::after, .nav .sub-toggle::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 2.5px; border-radius: 2px 2px 0 0; background: var(--honey);
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
}
.nav a:hover, .nav .sub-toggle:hover { color: var(--pine); background: rgba(123,154,107,.09); }
.nav a:hover::after, .nav .sub-toggle:hover::after { transform: scaleX(1); }
.nav a.active, .nav .sub-toggle.active { color: var(--pine); }
.nav a.active::after, .nav .sub-toggle.active::after { transform: scaleX(1); }

/* ---------- grouped dropdown ---------- */
.nav li.has-sub { position: relative; }
.nav .caret {
  display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: middle;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .6;
  transition: transform .2s var(--ease);
}
.nav li.has-sub:hover .caret,
.nav li.has-sub.open .caret { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 244px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper-2); border: 1px solid var(--stone);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav li.has-sub:hover > .subnav,
.nav li.has-sub:focus-within > .subnav,
.nav li.has-sub.open > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; white-space: nowrap;
  padding: 10px 14px; border-radius: var(--radius-sm);
}
.subnav a::after { display: none; }
.subnav a.active { background: var(--sage-tint); color: var(--pine); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--stone-deep);
  border-radius: 10px; padding: 9px 13px; cursor: pointer; color: var(--pine);
  font-family: var(--sans); font-weight: 700; font-size: .8rem; align-items: center; gap: 8px;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle .bars span { width: 18px; height: 2px; background: var(--pine); border-radius: 2px; }

/* ============================================================
   PANELS (logical sections toggled by nav)
   ============================================================ */
.stage { padding: 0 0 90px; }

.panel { animation: fade-up .55s var(--ease) both; }
.panel:not(.ajanlas) > .wrap { padding-top: 56px; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* generic section head */
.section-head { max-width: var(--readw); margin: 0 auto 34px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before,
.section-head .eyebrow::after { content:""; width:26px; height:1px; background: var(--honey); display:inline-block; }
.section-head h1,
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 560; }
.section-head p { color: var(--ink-soft); margin-top: .6rem; }

/* the paper card that holds section content */
.card {
  background: var(--card);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 56px);
  margin: 0 auto;
  max-width: var(--maxw);
}
.card + .card { margin-top: 22px; }

/* content typography inside cards — unified across every section */
.prose { text-align: justify; hyphens: auto; }
.prose h3 {
  font-size: 1.34rem; font-weight: 600; color: var(--pine);
  margin: 1.9em 0 .55em; line-height: 1.3; text-align: left; hyphens: none;
}
.prose h3:first-child { margin-top: 0; }
.prose h4, .prose .panel-label {
  font-size: 1.08rem; font-weight: 600; color: var(--pine-2);
  margin: 1.5em 0 .5em; text-align: left; hyphens: none;
}
.prose h3 .bolder, .prose h4 .bolder, .prose .panel-label .bolder { font-weight: inherit; color: inherit; }
.prose a { color: var(--honey-deep); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--honey-soft); transition: text-decoration-color .2s; word-break: break-word; }
.prose a:hover { text-decoration-color: var(--honey); }
.justify { text-align: justify; hyphens: auto; }

/* lists with custom leaf/pebble markers */
.prose ul { list-style: none; margin: .4em 0 1em; padding-left: 0; }
.prose li {
  position: relative; padding-left: 1.5em; margin: .38em 0;
}
.prose li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50% 50% 46% 54%;
  background: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint);
}
/* nested lists: lighter, dash marker */
.prose li ul { margin: .3em 0 .5em; }
.prose li li::before {
  width: 10px; height: 2px; border-radius: 2px; top: .8em;
  background: var(--honey); box-shadow: none;
}
.prose li li li::before { background: var(--stone-deep); }

/* ============================================================
   HERO (Ajánlás)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: min(62vh, 520px);
  display: flex; align-items: center;
  color: #fff;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url("../images/backgrounds/larch-conifer-cone-branch-tree-40896.jpeg");
  background-size: cover; background-position: center 40%;
  transform: scale(1.04);
}
.hero .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(var(--scrim-rgb), .86) 0%, rgba(var(--scrim-rgb), .55) 46%, rgba(var(--scrim-rgb), .12) 100%),
    linear-gradient(0deg, rgba(var(--scrim-rgb), .5), rgba(var(--scrim-rgb), 0) 45%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { max-width: 640px; }
.hero .eyebrow { color: var(--honey-soft); }
.hero .eyebrow::before { background: var(--honey-soft); }
.hero h1 {
  color: #fff; font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .45em;
}
/* the kicker lives inside the h1 so the heading carries the search phrase,
   while the line below it stays the thing you actually read */
.hero h1 .h1-eyebrow { display: flex; line-height: 1.4; }
.hero h1 .h1-line { display: block; }
.hero .lede {
  font-family: var(--sans); font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255,255,255,.9); font-weight: 400; max-width: 30em; margin: 0 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .9rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--honey); color: var(--on-honey); box-shadow: 0 10px 24px rgba(180,132,46,.34); }
.btn-primary:hover { transform: translateY(-2px); background: var(--honey-lift); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-solid { background: var(--pine); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--pine-2); transform: translateY(-2px); }

/* Ajánlás body: epigraph + intro */
.ajanlas-body { padding-top: 58px; padding-bottom: 0; }
.epigraph {
  max-width: 690px; margin: 0 auto 52px; text-align: center;
}
.epigraph::before {
  content: ""; display: block; width: 46px; height: 2px;
  background: var(--honey); margin: 0 auto 26px;
}
.epigraph-text {
  font-family: var(--serif); font-style: italic; font-weight: 360;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.74; color: var(--pine-2);
  margin: 0;
}
.epigraph-attr {
  display: block; margin-top: 20px;
  font-family: var(--sans); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; font-size: .72rem; color: var(--honey-deep);
}

.intro-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 22px;
}
.intro-card { text-align: justify; }
.intro-card h2 { font-size: 1.7rem; color: var(--pine); text-align: left; }
.intro-card .signoff { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--stone); }
.intro-card .signoff-line { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep);
  font-size: 1.24rem; margin: 0 0 .2rem; text-align: left; }
.intro-card .signoff .name { font-weight: 700; color: var(--pine-2); font-family: var(--sans); }

/* ============================================================
   AMIBEN SEGÍTHETEK — stone cards hub
   ============================================================ */
.stones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.stone-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--pine); box-shadow: var(--shadow-md); cursor: pointer;
  aspect-ratio: 3 / 4; border: 1px solid var(--stone);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.stone-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .4s;
}
.stone-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--scrim-rgb), .82) 8%, rgba(var(--scrim-rgb), .15) 55%, rgba(var(--scrim-rgb), .05) 100%);
}
.stone-card .stone-label {
  position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff;
}
.stone-card .stone-label .eyebrow { color: var(--honey-soft); margin-bottom: .5rem; }
.stone-card .stone-label .eyebrow::before { background: var(--honey-soft); }
.stone-card .stone-label h3 { color: #fff; font-size: 1.6rem; margin: 0; }
.stone-card .go {
  margin-top: .4rem; font-family: var(--sans); font-weight: 700; font-size: .85rem;
  color: #fff; display: inline-flex; align-items: center; gap: .4rem; opacity: .9;
}
.stone-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stone-card:hover img { transform: scale(1.06); }

/* ============================================================
   TWO-COLUMN content (lists + illustration)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.lists-2 { columns: 2; column-gap: 44px; }
.lists-2 > ul { break-inside: avoid; }

.split-media { position: sticky; top: 116px; }
.figure {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone);
  box-shadow: var(--shadow-md); background: var(--paper-2);
}
.figure img { width: 100%; display: block; }
/* one consistent image frame for every section */
.split-media .figure { aspect-ratio: 4 / 3; }
.split-media .figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split-back { margin-top: 2rem; }
.focus-more { margin-top: 1.6rem; }

/* stresszkezelés — rövid szöveg álló fotó mellett, vágás és sorkizárás nélkül */
.stresszkezeles .split { grid-template-columns: 1.2fr .8fr; align-items: center; }
.stresszkezeles .split-media { position: static; }
.stresszkezeles .split-media .figure { aspect-ratio: 3 / 4; }
.stresszkezeles .prose { text-align: left; hyphens: none; }
.stresszkezeles .prose p { margin: 0 0 1.15em; }
.stresszkezeles .prose p:last-child { margin-bottom: 0; }
.stresszkezeles .lead-out {
  font-style: italic; color: var(--pine-2);
  padding-top: 1.15em; border-top: 1px solid var(--stone);
}

/* images woven into long-form text — the paragraph wraps around them */
.focus-figure {
  float: right; width: 38%; max-width: 360px; margin: .3em 0 1.2rem 2.2rem;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone);
  box-shadow: var(--shadow-md); background: var(--paper-2); shape-outside: margin-box;
}
/* artwork that already carries its own white mat — no extra frame */
.focus-figure.plain, .focus-figure-col.plain { border: 0; box-shadow: none; background: none; }

/* strict two columns: image left, text right — text never runs under the image */
.focus-row { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 44px; align-items: start; }

.focus-figure-col {
  align-self: center; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--stone);
  box-shadow: var(--shadow-md); background: var(--paper-2);
}
.focus-figure-col img { width: 100%; display: block; }
.focus-figure img { width: 100%; display: block; }

/* about page — text wraps around the floated portrait */
.about-figure {
  float: right; width: 42%; max-width: 420px; margin: .3em 0 1.4rem 2.4rem;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone);
  box-shadow: var(--shadow-md); background: var(--paper-2); shape-outside: margin-box;
}
.about-figure img { width: 100%; display: block; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 44px; margin-top: 1.6em; clear: both; }
.pub a { font-size: .92rem; overflow-wrap: anywhere; }

/* ============================================================
   FÓKUSZTRÉNING — long-form
   ============================================================ */
.focus-block {
  display: flow-root; /* keeps the floated figure inside the block's rule */
  text-align: justify; padding-bottom: 1.6rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--stone);
}
.focus-block:last-of-type { border-bottom: 0; }
.pull {
  border-left: 3px solid var(--honey); background: var(--sage-tint);
  padding: 18px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 780px; margin: 0 auto;
}
/* closing statement — readable measure, centred */
.focus-closing { text-align: center; hyphens: none; }
.focus-closing > p { max-width: 720px; margin: 0 auto; }
.callout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1rem; align-items: start; }
.callout {
  background: var(--paper-2); border: 1px solid var(--stone); border-radius: var(--radius-sm);
  padding: 22px 26px;
}
.callout .panel-label { margin-top: 0; color: var(--honey-deep); letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .4em; list-style: none; padding: 0; }
.chips li { padding-left: 0; margin: 0; }
.chips li::before { display: none; }
.chips li span {
  display: inline-block; background: var(--sage-tint); color: var(--pine);
  border: 1px solid var(--sage-line); border-radius: 999px;
  padding: 7px 15px; font-family: var(--sans); font-weight: 700; font-size: .82rem;
}
.info-panel {
  background: var(--sage-tint); color: var(--ink);
  border: 1px solid var(--sage-line); border-left: 4px solid var(--honey);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: clamp(22px, 4vw, 34px); margin-top: 1.8rem;
}
/* on --sage-tint the standard wheat text tone drops to 4.36:1, so this ground gets its own */
.info-panel .panel-label { color: var(--honey-ink); margin-top: 0; }
.info-panel p { color: var(--ink); }
.info-panel a { color: var(--honey-deep); }
.info-panel li::before { background: var(--sage) !important; box-shadow: none !important; }
.info-panel .bolder { color: var(--pine-2); }

/* un-bold the flat symptom lists (categories with sub-lists stay emphasised) */
.serduloknek .bolder,
.gyerekeknek .bolder,
.iskolapszichologia .bolder,
.csoportos-treningek .bolder { font-weight: 400; color: var(--ink); }
.csoportos-treningek .fokusztrening-link { color: var(--honey-deep); }

/* ============================================================
   KAPCSOLAT — spacious contact layout
   ============================================================ */
.contact-cols { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.contact-lead { display: flex; flex-direction: column; justify-content: center; }

.c-phone {
  display: block; text-decoration: none;
  background: var(--sage-tint); border: 1px solid var(--sage-line);
  border-left: 4px solid var(--honey);
  /* left corners squared so the accent reads as an edge — same as .pull and .info-panel */
  border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin-bottom: 22px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.c-phone:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.c-phone-label {
  display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--honey-deep); font-weight: 700; margin-bottom: .35rem;
}
.c-phone-num {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--pine); line-height: 1.1; letter-spacing: .01em;
}
.c-phone-cta { display: inline-block; margin-top: .55rem; font-size: .92rem; font-weight: 700; color: var(--honey-deep); }

.c-list { list-style: none; padding: 0; margin: 0; }
.c-list li {
  display: flex; gap: 16px; align-items: center; padding: 16px 0;
  border-top: 1px solid var(--stone);
}
.c-list li:last-child { border-bottom: 1px solid var(--stone); }
.c-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-tint); color: var(--pine); display: grid; place-items: center; font-size: 1.2rem;
}
.c-body { display: flex; flex-direction: column; }
.c-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.c-v { font-size: 1.12rem; color: var(--pine-2); font-weight: 600; }

.contact-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone);
  aspect-ratio: 4 / 3;
}
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* a Kapcsolat panel két kártyacíme — egy szabály, egy méret */
.price-card .price-title,
.faq-card .faq-title { margin-top: 0; font-size: 1.5rem; }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 1rem; }
.price {
  background: var(--paper-2); border: 1px solid var(--stone); border-radius: var(--radius-sm);
  padding: 30px 32px;
}
.price .p-amount { font-family: var(--serif); font-size: 2.6rem; color: var(--pine); font-weight: 600; line-height: 1.05; white-space: nowrap; }
.price .p-label { font-size: 1.1rem; color: var(--ink-soft); margin-top: .5rem; }
.contact-note { margin-top: 20px; color: var(--ink-soft); font-size: 1rem; }
.contact-note b { color: var(--pine-2); }
.contact-highlight { margin-top: 22px; }

/* ============================================================
   KAPCSOLÓDÓ OLDALAK — belső linkelés minden oldal alján.
   Halványabb, mint a lapok fő tartalma: ez kijárat, nem tartalom.
   ============================================================ */
.related {
  border-top: 1px solid var(--stone);
  margin: 64px auto 0;
  padding-top: 34px;
  max-width: var(--maxw);
}
.related h2 {
  font-size: 1.34rem; font-weight: 600; color: var(--pine);
  margin: 0 0 1.1rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.related-card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.related-card:hover, .related-card:focus-visible {
  border-color: var(--sage); background: var(--sage-tint);
}
.related-card .rc-title {
  display: block; font-size: 1.08rem; font-weight: 600;
  color: var(--pine); line-height: 1.3; margin-bottom: .3em;
}
.related-card .rc-note { display: block; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related { margin-top: 48px; padding-top: 28px; }
}

/* ---------- Gyakori kérdések ----------
   Five identical recessed boxes read as a stack of containers rather than as
   one list. This is the .c-list idiom already used by the contact card above:
   hairline-separated rows, no boxes, questions scannable down one column. */
.faq-card { margin-top: 22px; }

.faq-list { margin: 1.2rem 0 0; }

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 0 44px;
  padding: 22px 0;
  border-top: 1px solid var(--stone);
}
.faq-item:first-child { border-top: 0; padding-top: .4rem; }
.faq-item:last-child { padding-bottom: 0; }

/* the question is a list term, so it takes the system's pebble marker */
.faq-item dt {
  position: relative; padding-left: 1.5em;
  font-family: var(--serif); font-size: 1.08rem; font-weight: 600;
  color: var(--pine); line-height: 1.4;
}
.faq-item dt::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50% 50% 46% 54%;
  background: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint);
}

/* the answers are the reason the visitor is here — full ink, not secondary */
.faq-item dd { margin: 0; color: var(--ink); }
.faq-item dd a {
  color: var(--honey-deep); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--honey-soft); transition: text-decoration-color .2s;
  white-space: nowrap;
}
.faq-item dd a:hover { text-decoration-color: var(--honey); }

@media (max-width: 860px) {
  /* stacked: the answer aligns under the question's text, so the pebble hangs */
  .faq-item { grid-template-columns: 1fr; gap: .5rem 0; }
  .faq-item dd { padding-left: 1.5em; }
}
@media (max-width: 640px) {
  .faq-item { padding: 18px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--pine); color: rgba(255,255,255,.85);
  padding: 46px 0 34px; margin-top: 20px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.7); }
.footer-meta { font-family: var(--sans); font-size: .88rem; color: rgba(255,255,255,.7); text-align: right; line-height: 1.7; }
.footer-meta a { color: var(--honey-soft); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(var(--scrim-rgb), .58); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative; background: var(--card);
  max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--stone); border-top: 4px solid var(--honey);
  /* the accent edge squares the corners it touches — same rule as .pull / .info-panel / .c-phone */
  border-radius: 0 0 var(--radius) var(--radius);
  animation: fade-up .4s var(--ease) both; text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-faint);
  width: 40px; height: 40px; border-radius: 50%; transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--sage-tint); color: var(--pine); }
.modal-body { padding: 42px 34px 34px; }
.modal-mark {
  width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--sage), var(--pine));
  box-shadow: var(--shadow-sm);
}
.modal-mark .pebbles i:nth-child(1){ background: var(--pebble-lit-1); }
.modal-mark .pebbles i:nth-child(2){ background: var(--pebble-lit-2); }
.modal-mark .pebbles i:nth-child(3){ background: var(--honey-soft); }
.modal-body .eyebrow { justify-content: center; margin-bottom: .7rem; }
.modal-body .eyebrow::before, .modal-body .eyebrow::after {
  content: ""; width: 22px; height: 1px; background: var(--honey); display: inline-block;
}
.modal-title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--pine); margin: 0 0 1.1rem; }
.modal-lead { font-weight: 700; color: var(--pine-2); margin: 0 0 .5rem; }
.modal-text { color: var(--ink); margin: 0 0 .5rem; }
.modal-sign {
  margin: 1.3rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--stone);
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage-deep); font-size: 1.15rem;
}
.modal-btn { margin-top: 1.6rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-media { position: static; }
  .split-media .figure { aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto; }
  .stresszkezeles .split { grid-template-columns: 1fr; }
  .stresszkezeles .split-media .figure { aspect-ratio: 3 / 4; max-width: 380px; }
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
  .contact-photo { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .credentials { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .about-figure { float: none; width: 100%; max-width: none; margin: 0 0 1.4rem; }
  .focus-figure {
    float: none; width: 100%; max-width: 420px; margin: 0 auto 1.4rem;
  }
  .focus-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .focus-figure-col { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 1160px) {
  /* grid rows animate without re-laying out 14 nav items every frame, and
     visibility keeps the closed menu out of the tab order — clipping alone
     left every link focusable inside a zero-height box */
  .header-nav {
    display: grid; grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .32s var(--ease), visibility .32s;
    background: var(--paper-2);
  }
  .header-nav.open { grid-template-rows: 1fr; visibility: visible; box-shadow: var(--shadow-md); }
  .header-nav .wrap { display: block; overflow: hidden; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .header-nav.open .wrap { max-height: 82vh; overflow-y: auto; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav a { font-size: 1rem; padding: 14px 16px; border-radius: 10px; text-align: left; }
  /* the marker turns vertical here, but still grows by transform — as on desktop */
  .nav a::after {
    left: 16px; right: auto; top: 50%; bottom: auto; width: 3px; height: 20px;
    margin-top: -10px; border-radius: 3px;
    transform: scaleY(0); transform-origin: center;
    transition: transform .2s var(--ease);
  }
  .nav a.active::after, .nav a:hover::after { transform: scaleY(1); }
  .nav a.active { background: var(--sage-tint); }
  .nav-toggle { display: inline-flex; min-height: 44px; }

  /* groups become labelled sections — always open, no hover needed */
  .nav li.has-sub { position: static; }
  .nav .sub-toggle {
    display: block; width: 100%; text-align: left; pointer-events: none;
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ink-faint); padding: 16px 16px 5px; border-radius: 0;
  }
  .nav .sub-toggle::after { display: none; }
  .nav .sub-toggle.active { color: var(--ink-faint); background: none; }
  .nav .caret { display: none; }
  .subnav {
    position: static; min-width: 0; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .subnav a { padding-left: 30px; white-space: normal; }
  .subnav a::after { display: block; left: 30px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .stones { grid-template-columns: 1fr; max-width: 420px; }
  .stone-card { aspect-ratio: 16 / 10; }
  .callout-grid, .price-cards { grid-template-columns: 1fr; }
  .lists-2 { columns: 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .phone-cta { display: none; }
  .wrap { padding: 0 18px; }
  .hero .wrap { padding-top: 52px; padding-bottom: 48px; }
  .panel:not(.ajanlas) > .wrap { padding-top: 42px; }
  .ajanlas-body { padding-top: 42px; }
  .section-head { margin-bottom: 26px; }
  .section-head h1,
  .section-head h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .epigraph { margin-bottom: 40px; }
  .brand-name { font-size: 1.32rem; }
  .brand .mark { width: 36px; height: 36px; }
  .c-ico { width: 38px; height: 38px; font-size: 1.05rem; }
  .price { padding: 22px 22px; }
}

@media (max-width: 480px) {
  .card { padding: 22px; }
  .hero { min-height: min(68vh, 460px); }
  .stone-card .stone-label { left: 16px; right: 16px; bottom: 16px; }
  .stone-card .stone-label h3 { font-size: 1.4rem; }
  .prose h3 { font-size: 1.2rem; }
  .price .p-amount { font-size: 2.1rem; }
  .c-phone-num { font-size: clamp(1.4rem, 6vw, 1.7rem); }
}

@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  body { font-size: 15px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .13em; }
  .nav-toggle { padding: 8px 10px; }
  .card { padding: 18px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}

/* ============================================================
   BROWSER SURFACES — the parts we did not draw still carry the design
   ============================================================ */
::selection { background: var(--sage-tint); color: var(--pine); }
.hero ::selection, .site-footer ::selection { background: var(--honey-soft); color: var(--pine); }

html { scrollbar-color: var(--stone-deep) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--stone-deep); border-radius: 999px;
  border: 3px solid var(--paper); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* authored icons, one stroke weight, optically centred on the text baseline */
.ico { display: block; flex: 0 0 auto; }
.phone-cta .ico { width: 17px; height: 17px; }
.c-ico .ico { width: 20px; height: 20px; }

/* skip link — the first tab stop on the page */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--card); color: var(--pine);
  font-family: var(--sans); font-weight: 700; font-size: .9rem;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 1px solid var(--stone); border-top: 0;
  box-shadow: var(--shadow-md);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }
/* programmatic focus (skip link target, and the heading showme() moves to on a
   panel change) must not paint a ring for mouse users, but a keyboard user
   arriving via the skip link has to see where they landed */
main:focus:not(:focus-visible),
.panel h1:focus:not(:focus-visible),
.panel h1:focus:not(:focus-visible),
.panel h2:focus:not(:focus-visible) { outline: none; }

/* the header blur is a per-frame resample behind a sticky bar; the ground is
   already .94 opaque, so phones get the paper without paying for it */
@media (min-width: 1161px) {
  .site-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

/* justification needs a wide measure; these columns are ~470px and river badly */
.lists-2 { text-align: left; hyphens: none; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .nav a:focus-visible, .stone-card:focus-visible {
  /* --honey is only 2.91:1 on --paper; --honey-deep clears the 3:1 non-text minimum everywhere */
  outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* kill travel, keep state feedback: colour and opacity still answer the visitor */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color, box-shadow, opacity, outline-color, text-decoration-color !important;
    transition-duration: .12s !important;
  }
  .panel { animation: none !important; opacity: 1; transform: none; }
  .hero .hero-bg { transform: none; }
  .btn:hover, .c-phone:hover, .stone-card:hover { transform: none; }
  .stone-card:hover img { transform: none; }
}
