/*
Theme Name: Napi Filozófia 2
Description: Könnyű, tipográfiai téma a napifilozofia.hu-hoz (krém papír, tintafekete, bézs; Libre Caslon, Montserrat, Caveat). A működést a mu-plugins/napifilozofia-mag.php adja.
Author: BonsAI HorizON Kft.
Version: 2.0.0
Requires PHP: 8.1
Text Domain: napifilozofia2
*/

:root {
  --papir: #f6f1e7;
  --papir-vilagos: #fbf8f2;
  --papir-sotet: #efe6d6;
  --tinta: #1a1714;
  --tinta-puha: #3a332c;
  --szurke: #5d554c;
  --bezs: #d9bc9a;
  --bezs-halvany: #e6d9c6;
  --barna: #8c6c48;
  --serif-d: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kezi: "Caveat", "Segoe Script", cursive;
  --keret: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--papir);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0 0.18 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--tinta);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--bezs); text-underline-offset: 3px; }
a:hover { color: var(--barna); }
:focus-visible { outline: 2px solid var(--barna); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif-d); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
.rejtett, .ugras:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ugras:focus { position: fixed; top: 10px; left: 10px; z-index: 50; background: var(--tinta); color: var(--papir); padding: 8px 14px; }
.keret { width: 100%; max-width: var(--keret); margin: 0 auto; padding: 0 24px; }
.keret-szuk { max-width: 760px; }
.kozep { text-align: center; }
.kicsi { font-size: 13px; color: var(--szurke); line-height: 1.6; }
.kezirat { font-family: var(--kezi); font-weight: 500; }

/* Gombok */
.gomb {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 1px solid var(--tinta); border-radius: 999px;
  background: var(--tinta); color: var(--papir);
  font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.gomb:hover { background: var(--tinta-puha); border-color: var(--tinta-puha); color: var(--papir); }
.gomb:active { transform: translateY(1px); }
.gomb-vonal { background: transparent; color: var(--tinta); }
.gomb-vonal:hover { background: var(--tinta); color: var(--papir); }
.gomb-kicsi { padding: 10px 16px; font-size: 11px; letter-spacing: .12em; }
.gomb-nagy { padding: 16px 30px; background: var(--bezs); border-color: var(--bezs); color: var(--tinta); }
.gomb-nagy:hover { background: var(--papir); border-color: var(--papir); color: var(--tinta); }
.gomb[disabled] { opacity: .55; cursor: wait; }
.link-gomb { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(217, 188, 154, .5); text-underline-offset: 3px; }

/* Fejléc */
.fejlec { border-bottom: 1px solid var(--bezs-halvany); }
.fejlec-belso { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-nev { font-family: var(--serif-d); font-size: 28px; letter-spacing: .01em; }
.logo-alcim { font-family: var(--kezi); font-size: 19px; color: var(--barna); margin: 4px 0 0 34px; transform: rotate(-2deg); }
.menu { display: flex; gap: 30px; }
.menu a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--bezs); color: var(--tinta); }

/* Nyitó + napi lap */
.nyito { padding: 64px 0 88px; text-align: center; }
.nyito-felirat { font-size: 28px; color: var(--barna); margin: 0 0 6px; transform: rotate(-2deg); }
.nyito-cim { font-size: clamp(40px, 7.4vw, 78px); line-height: 1.03; margin: 0 0 22px; }
.nyito-lead { max-width: 560px; margin: 0 auto 44px; color: var(--szurke); font-size: 17px; }

.napilap { max-width: 600px; margin: 0 auto; perspective: 1800px; }
.lap { display: grid; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.22, .8, .25, 1); text-align: center; }
.lap > * { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.napilap[data-allapot="elol"] .lap { transform: rotateY(180deg); }
.napilap.azonnal .lap { transition: none; }
.lap-hat, .lap-elo { position: relative; min-height: 400px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 44px; }
.lap-hat::before, .lap-elo::before, .lap-hat::after, .lap-elo::after { content: ""; position: absolute; pointer-events: none; border-radius: 3px; }
.lap-hat { background: var(--tinta); color: var(--papir); box-shadow: 0 30px 60px -30px rgba(26, 23, 20, .55); }
.lap-hat::before { inset: 14px; border: 1px solid var(--bezs); }
.lap-hat::after { inset: 20px; border: 1px solid rgba(217, 188, 154, .35); }
.lap-hat-disz { margin-bottom: 18px; }
.monogram { font-family: var(--serif-d); font-size: 84px; line-height: 1; color: var(--bezs); letter-spacing: -.04em; }
.monogram span { font-size: .62em; vertical-align: .55em; margin-left: .04em; }
.lap-hat-szoveg { color: #d8cfc2; margin: 0 0 26px; font-size: 15px; }
.lap-hat .kicsi, .lap-hat .kicsi a { color: #c9bfb2; }
.lap-elo { background: var(--papir-vilagos); border: 1px solid var(--bezs-halvany); box-shadow: 0 30px 60px -34px rgba(90, 68, 44, .45); transform: rotateY(180deg); }
.lap-elo::before { inset: 12px; border: 1px solid var(--bezs-halvany); }
.lap-allo .lap-elo { transform: none; }
.lap-cimke { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--barna); margin: 0 0 14px; }
.idezet { margin: 0; position: relative; }
.idezet::before { content: "“"; display: block; font-family: var(--serif-d); font-size: 96px; line-height: .6; height: 38px; color: var(--bezs); }
.idezet-szoveg { font-family: var(--serif-d); font-size: 30px; line-height: 1.32; margin: 0 0 18px; text-wrap: pretty; }
.h-kozepes .idezet-szoveg { font-size: 25px; }
.h-hosszu .idezet-szoveg { font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.h-nagyon .idezet-szoveg { font-family: var(--serif); font-size: 16.5px; line-height: 1.65; text-align: left; }
.szerzo { font-family: var(--kezi); font-size: 31px; color: var(--barna); text-decoration: none; line-height: 1.1; }
.szerzo::before { content: "— "; }
.szerzo:hover { color: var(--tinta); }
.napilap-utana { margin-top: 30px; }
.napilap-utana[hidden] { display: none; }
.napilap-tanacs { font-family: var(--serif); font-style: italic; color: var(--szurke); }
.megosztas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }
.visszaszamlalo { font-size: 13px; letter-spacing: .06em; color: var(--szurke); margin-top: 18px; }
.visszaszamlalo span { font-variant-numeric: tabular-nums; color: var(--tinta); font-weight: 600; }

/* Szakaszok */
.szakasz { padding: 96px 0; }
.szakasz-felirat { font-size: 27px; color: var(--barna); text-align: center; margin: 0 0 4px; transform: rotate(-1.5deg); }
.szakasz-felirat a { text-decoration: none; }
.szakasz-cim { font-size: clamp(32px, 4.6vw, 50px); text-align: center; margin-bottom: 26px; }
.szakasz-cim.nagy { font-size: clamp(36px, 5.6vw, 62px); }
.szakasz-lead { max-width: 640px; margin: 0 auto 40px; text-align: center; color: var(--szurke); font-size: 17px; }

.lepesek { background: var(--papir-sotet); }
.lepes-lista { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.lepes-szam { display: block; font-family: var(--serif-d); font-size: 46px; color: var(--barna); line-height: 1; margin-bottom: 14px; }
.lepes-lista h3 { font-size: 27px; margin-bottom: 10px; }
.lepes-lista p { color: var(--szurke); max-width: 300px; margin: 0 auto; }

.miert { background: var(--tinta); color: #e6ddd0; }
.miert .szakasz-cim { color: var(--papir); }
.miert .szakasz-felirat { color: var(--bezs); }
.miert p { font-size: 17px; }
.miert .szakasz-felirat { font-size: 27px; }
.miert .kiemelt-mondat { font-family: var(--kezi); font-size: 34px; color: var(--bezs); text-align: center; margin: 36px 0 0; line-height: 1.2; }

.szerzo-racs { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 32px; }
.szerzo-racs a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 2px; border-top: 1px solid var(--bezs); text-decoration: none; }
.szerzo-nev { font-family: var(--serif-d); font-size: 25px; line-height: 1.2; }
.szerzo-db { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--szurke); white-space: nowrap; }
.szerzo-racs a:hover .szerzo-nev { color: var(--barna); }

.bekuldes { background: var(--papir-sotet); }
.bekuldes > .keret > p { text-align: center; }
.urlap { margin-top: 36px; }
.mezo { display: block; margin-bottom: 18px; }
.mezo > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.mezo em { font-style: normal; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--szurke); }
.mezo input, .mezo textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d3c3ad; border-radius: 4px; background: var(--papir-vilagos);
  font: 400 16px/1.5 var(--sans); color: var(--tinta);
}
.mezo textarea { font-family: var(--serif); font-size: 17px; resize: vertical; min-height: 120px; }
.mezo input:focus, .mezo textarea:focus { outline: none; border-color: var(--barna); box-shadow: 0 0 0 3px rgba(140, 108, 72, .15); }
.mezo-sor { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.csapda { position: absolute !important; left: -9999px; }
.urlap .gomb { margin-top: 6px; }
.urlap-uzenet { margin-top: 16px; font-weight: 500; }
.urlap-uzenet.hiba { color: #9b2c1f; }
.koszonjuk { text-align: center; padding: 36px 24px; border: 1px solid var(--bezs); border-radius: 6px; background: var(--papir-vilagos); }
.koszonjuk p:first-child { font-family: var(--serif-d); font-size: 28px; margin-bottom: 8px; }

/* Gondolattár */
.tar-fej { padding: 64px 0 8px; text-align: center; }
.kereso { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 30px; }
.kereso input { flex: 1; min-width: 0; padding: 13px 18px; border: 1px solid #d3c3ad; border-radius: 999px; background: var(--papir-vilagos); font: 400 16px var(--sans); color: var(--tinta); }
.kereso input:focus { outline: none; border-color: var(--barna); }
.szerzo-cimkek { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.szerzo-cimkek a { display: inline-block; padding: 7px 14px; border: 1px solid #d3c3ad; border-radius: 999px; font-size: 13px; text-decoration: none; background: var(--papir-vilagos); }
.szerzo-cimkek a span { color: var(--szurke); font-size: 11px; margin-left: 2px; }
.szerzo-cimkek a:hover { border-color: var(--tinta); color: var(--tinta); }
.szerzo-cimkek a[aria-current] { background: var(--tinta); border-color: var(--tinta); color: var(--papir); }
.szerzo-cimkek a[aria-current] span { color: var(--bezs); }
.tar { padding-top: 48px; }
.talalatok { text-align: center; color: var(--szurke); margin-bottom: 30px; }

.kartya-racs { columns: 3 300px; column-gap: 24px; }
.kartya { break-inside: avoid; margin: 0 0 24px; padding: 30px 28px 24px; background: var(--papir-vilagos); border: 1px solid var(--bezs-halvany); border-radius: 6px; transition: box-shadow .25s, transform .25s; }
.kartya:hover { box-shadow: 0 18px 40px -26px rgba(90, 68, 44, .5); transform: translateY(-2px); }
.kartya-link { display: block; text-decoration: none; color: inherit; }
.kartya-link:hover { color: inherit; }
.kartya blockquote { margin: 0 0 14px; }
.kartya blockquote::before { content: "“"; display: block; font-family: var(--serif-d); font-size: 60px; line-height: .55; height: 24px; color: var(--bezs); }
.kartya p { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 0; }
.kartya.h-rovid p { font-family: var(--serif-d); font-size: 23px; line-height: 1.35; }
.kartya .szerzo { font-size: 25px; }

.lapozo ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 40px 0 0; }
.lapozo a, .lapozo span { display: inline-block; min-width: 42px; padding: 9px 14px; border: 1px solid #d3c3ad; border-radius: 999px; text-align: center; font-size: 14px; text-decoration: none; background: var(--papir-vilagos); }
.lapozo .current { background: var(--tinta); border-color: var(--tinta); color: var(--papir); }
.lapozo .dots { border: 0; background: none; }

/* Egy idézet oldala */
.egy-idezet { padding: 48px 0 72px; }
.morzsa { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--szurke); margin-bottom: 28px; }
.morzsa a { text-decoration: none; }
.morzsa span { margin: 0 8px; color: var(--bezs); }
.egy-idezet .lap { margin-bottom: 14px; }
.kovetkezo { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.tobbi { background: var(--papir-sotet); }

/* Sima oldalak (adatkezelés stb.) */
.oldal .szakasz-cim { margin-bottom: 36px; }
.szoveg h2 { font-size: 28px; margin: 44px 0 12px; }
.szoveg h3 { font-size: 21px; margin: 28px 0 8px; }
.szoveg ul { padding-left: 20px; }
.szoveg li { margin-bottom: 6px; }

/* Lábléc */
.lablec { background: var(--tinta); color: #cfc5b8; font-size: 14px; }
.lablec-belso { display: flex; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; flex-wrap: wrap; }
.lablec-logo { font-family: var(--serif-d); font-size: 30px; color: var(--papir); margin: 0 0 4px; }
.lablec-mondat { font-size: 25px; color: var(--bezs); margin: 0; }
.lablec-linkek { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.lablec-linkek a, .lablec-linkek .link-gomb { text-decoration: none; text-align: left; }
.lablec-linkek a:hover, .lablec-linkek .link-gomb:hover { color: var(--papir); }
.lablec-also { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(217, 188, 154, .25); font-size: 12.5px; color: #a89d90; }
.lablec-also a { color: inherit; }

/* Értesítés */
.ertesites { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--tinta); color: var(--papir); padding: 12px 22px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }

/* ------------------------------------------------------------------ */
/* Japán motívumok */
:root { --shu: #b23a2a; --kanji: "Yuji Syuku", "Shippori Mincho", "Yu Mincho", serif; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kanji { font-family: var(--kanji); font-weight: 400; line-height: 1; }
.kanji-jelentes { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--szurke); }

/* Logó pecséttel */
.logo { flex-direction: row; align-items: center; gap: 12px; }
.logo-szoveg { display: inline-flex; flex-direction: column; }
.logo-pecset { width: 38px; height: 38px; flex: none; transform: rotate(-4deg); }

/* Nyitó: ág, szirmok, függőleges felirat, ensō */
.nyito { position: relative; overflow: hidden; }
.nyito-belso { position: relative; z-index: 1; }
.nyito-ag { position: absolute; top: -34px; right: -56px; width: min(420px, 36vw); height: auto; aspect-ratio: 420 / 260; z-index: 0; pointer-events: none; }
.nyito-kanji { position: absolute; left: 24px; top: 4px; margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.nyito-kanji .kanji { writing-mode: vertical-rl; font-size: 54px; letter-spacing: .12em; color: var(--tinta); }
.nyito-kanji .kanji-jelentes { writing-mode: vertical-rl; margin-top: 6px; }
.napilap { position: relative; }
.napilap-enso { position: absolute; width: 132%; height: auto; aspect-ratio: 1; left: -16%; top: 50%; transform: translateY(-50%) rotate(-8deg); color: var(--bezs); opacity: .38; pointer-events: none; z-index: 0; }
.napilap .lap, .napilap-utana { position: relative; z-index: 1; }

.szirmok { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.szirmok span { position: absolute; top: -30px; width: 16px; height: 16px; animation: szirom-hull 14s linear infinite; opacity: 0; }
.szirmok svg { width: 100%; height: 100%; animation: szirom-ring 3.2s ease-in-out infinite alternate; }
.szirmok span:nth-child(1) { left: 62%; animation-delay: 0s; }
.szirmok span:nth-child(2) { left: 74%; animation-delay: 2.5s; animation-duration: 16s; width: 12px; height: 12px; }
.szirmok span:nth-child(3) { left: 84%; animation-delay: 5s; }
.szirmok span:nth-child(4) { left: 55%; animation-delay: 7.5s; animation-duration: 18s; width: 13px; height: 13px; }
.szirmok span:nth-child(5) { left: 92%; animation-delay: 9s; width: 11px; height: 11px; }
.szirmok span:nth-child(6) { left: 68%; animation-delay: 11s; animation-duration: 17s; }
.szirmok span:nth-child(7) { left: 79%; animation-delay: 4s; animation-duration: 20s; width: 10px; height: 10px; }
.szirmok span:nth-child(8) { left: 47%; animation-delay: 13s; animation-duration: 19s; width: 12px; height: 12px; }
.szirmok span:nth-child(9) { left: 88%; animation-delay: 15.5s; }
@keyframes szirom-hull {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: .9; }
  85% { opacity: .8; }
  100% { transform: translate(-260px, 760px) rotate(320deg); opacity: 0; }
}
@keyframes szirom-ring { from { transform: rotateX(0) rotate(-10deg); } to { transform: rotateX(70deg) rotate(25deg); } }

/* Kártya hátlapja: ensō + 日 */
.lap-hat-disz { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 14px; }
.hat-enso { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--bezs); }
.hat-kanji { position: relative; font-size: 64px; color: var(--papir); }
.lap-hat { background-image: var(--seigaiha-sotet); background-size: 40px 20px; background-color: var(--tinta); }
.lap-hat::before { background: radial-gradient(closest-side, var(--tinta) 55%, rgba(26, 23, 20, .82) 100%); z-index: 0; }
.lap-hat > * { position: relative; z-index: 1; }

/* Pecsét az idézetlapon */
.lap-pecset { position: absolute; right: 26px; bottom: 24px; width: 40px; height: 40px; transform: rotate(6deg); opacity: .92; }
.lap-allo { position: relative; }
.lap-allo .napilap-enso { width: 118%; left: -9%; opacity: .3; }
.lap-allo .lap-elo { z-index: 1; }

/* Lépések: ecsetszámok */
.lepes-szam.kanji { font-size: 58px; color: var(--tinta); margin-bottom: 18px; position: relative; display: inline-block; }
.lepes-szam.kanji::after { content: ""; position: absolute; right: -12px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--shu); }

/* Sötét szakasz: Fuji */
.miert { padding-bottom: 0; }
.fuji-keret { max-width: 900px; margin-top: 40px; }
.fuji { display: block; width: 100%; height: auto; aspect-ratio: 640 / 280; --fuji-hegy: #2c2621; --fuji-ho: #efe6d6; --fuji-vonal: rgba(217, 188, 154, .5); --fuji-kod: rgba(217, 188, 154, .1); }
.hullamsav { height: 64px; background-image: var(--seigaiha-sotet); background-size: 40px 20px; margin-top: -2px; }

/* Seigaiha-sávok */
.lepesek { background-image: linear-gradient(var(--papir-sotet), var(--papir-sotet)), var(--seigaiha-papir); background-size: 100% calc(100% - 46px), 40px 20px; background-repeat: no-repeat, repeat-x; background-position: top, bottom; }
.szerzok { position: relative; }
.bekuldes { position: relative; overflow: hidden; background-image: linear-gradient(var(--papir-sotet), var(--papir-sotet)), var(--seigaiha-papir); background-size: 100% calc(100% - 46px), 40px 20px; background-repeat: no-repeat, repeat-x; background-position: bottom, top; }
.bekuldes > .keret { position: relative; z-index: 1; }
.bekuldes-ag { position: absolute; left: -70px; top: 60px; width: 300px; height: auto; aspect-ratio: 420 / 260; transform: scaleX(-1) rotate(-8deg); opacity: .9; pointer-events: none; }
.lablec-hullam { height: 40px; background-image: var(--seigaiha-sotet); background-size: 40px 20px; }
.lablec-kanji { margin: 0; text-align: center; }
.lablec-kanji .kanji { display: block; font-size: 44px; color: var(--bezs); letter-spacing: .1em; margin-bottom: 8px; }
.lablec-kanji .kanji-jelentes { color: #a89d90; }

/* Gondolattár fej */
.tar-fej { position: relative; overflow: hidden; }
.tar-fej > .keret { position: relative; z-index: 1; }
.tar-ag { position: absolute; right: -60px; top: -20px; width: 340px; height: auto; aspect-ratio: 420 / 260; opacity: .85; pointer-events: none; }
.tar-kanji { margin: 0 0 10px; }
.tar-kanji .kanji { display: block; font-size: 40px; letter-spacing: .1em; margin-bottom: 6px; }

@media (max-width: 1100px) {
  .nyito-kanji { position: static; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
  .nyito-kanji .kanji, .nyito-kanji .kanji-jelentes { writing-mode: horizontal-tb; }
  .nyito-kanji .kanji { font-size: 34px; }
  .bekuldes-ag { width: 200px; left: -80px; top: 24px; opacity: .6; }
}

/* Mobil */
@media (max-width: 760px) {
  .fejlec-belso { flex-direction: column; justify-content: center; gap: 10px; padding-top: 16px; padding-bottom: 12px; }
  .logo { align-items: center; }
  .logo-alcim { margin-left: 0; }
  .menu { gap: 20px; }
  .menu a { font-size: 11px; letter-spacing: .12em; }
  .nyito { padding: 40px 0 64px; }
  .nyito-lead { font-size: 16px; margin-bottom: 32px; }
  .lap-hat, .lap-elo { min-height: 360px; padding: 46px 28px; }
  .monogram { font-size: 70px; }
  .idezet-szoveg { font-size: 25px; }
  .h-kozepes .idezet-szoveg { font-size: 21px; }
  .h-hosszu .idezet-szoveg { font-size: 17.5px; }
  .h-nagyon .idezet-szoveg { font-size: 15.5px; }
  .szerzo { font-size: 28px; }
  .szakasz { padding: 68px 0; }
  .lepes-lista { grid-template-columns: 1fr; gap: 34px; margin-top: 32px; }
  .mezo-sor { grid-template-columns: 1fr; }
  .kereso { flex-direction: column; }
  .lablec-linkek { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .nyito-ag { width: 230px; right: -70px; top: -24px; opacity: .75; }
  .bekuldes-ag { display: none; }
  .tar-ag { width: 210px; right: -80px; opacity: .55; }
  .logo-pecset { width: 30px; height: 30px; }
  .napilap-enso { width: 118%; left: -9%; }
  .lap-hat-disz { width: 124px; height: 124px; }
  .hat-kanji { font-size: 52px; }
  .lap-pecset { width: 32px; height: 32px; right: 18px; bottom: 16px; }
}
@media (max-width: 380px) {
  .keret { padding: 0 16px; }
  .menu { gap: 14px; }
  .lap-hat, .lap-elo { padding: 44px 22px; }
  .gomb-nagy { padding: 15px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lap, .kartya { transition: none; }
  .szirmok { display: none; }
}
