/* Magyarország Kormánya, közösségi média arculat 2027: görgethető bemutató.
   Háttér: a Csíkos 3 (kormany-arculat/eszkoz/kormanyszin.py). Betű: Outfit HU. Minden kép a meglévő mintákból (arculat/, fb/).
   A jelenetek ragadós színpadok: a görgetés (--p, 0..1, oldal.js) mozgatja őket. */

:root {
  --kormany: #0B2D5B;
  --mely: #071D3D;
  --papir: #FFFFFF;
  --hideg: #F2F5FA;
  --tinta: #0E2140;
  --tinta2: #4B5A75;
  --piros: #CE2939; --zold: #2FA866;
  --sz: var(--kormany);
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--mely); color: #fff; font-family: Outfit, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Csíkos 3 */
.csikos { background-color: var(--sz); position: relative; isolation: isolate; transition: background-color .9s ease;
  background-image: linear-gradient(0deg, rgba(74,26,112,.5), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)); }
.csikos::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0) 0 30%, rgba(255,255,255,.06) 30% 44%, rgba(255,255,255,0) 44%),
    linear-gradient(115deg, rgba(255,255,255,0) 0 47%, rgba(255,255,255,.075) 47% 61%, rgba(255,255,255,0) 61%),
    linear-gradient(115deg, rgba(255,255,255,0) 0 64%, rgba(255,255,255,.05) 64% 78%, rgba(255,255,255,0) 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent); mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent); }

/* a nagy állítások: verzál, mint a posztcímek */
.ora, .allitas h2, .szin-cim, .anyagok-fej h2, .elo-fej h2, .kie h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
.allitas p, .anyagok-fej p, .elo-fej p { margin-top: 20px; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; max-width: 30em; }

/* ---------- fejléc ---------- */
.fejlec { position: fixed; inset: 0 0 auto; z-index: 20; height: 84px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(7,29,61,.72), rgba(7,29,61,.35));
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); }
.fejlec-logo img { height: 52px; width: auto; }
/* ---------- oldalnavigáció ---------- */
.oldalnav { position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 19; display: grid; gap: 4px; }
.oldalnav a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 26px; text-decoration: none; color: #fff; }
.oldalnav a::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); transition: transform .3s ease, background-color .3s ease; }
.oldalnav a span { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(7,29,61,.72); opacity: 0; transform: translateX(6px);
  transition: opacity .25s ease, transform .25s ease; white-space: nowrap; }
.oldalnav a:hover span, .oldalnav a:focus-visible span { opacity: 1; transform: none; }
.oldalnav a.aktiv::after { background: #fff; transform: scale(1.5); }
.oldalnav.vilagoson a::after { background: rgba(14,33,64,.35); }
.oldalnav.vilagoson a.aktiv::after { background: var(--tinta); }

/* ---------- belépő mozgás ---------- */
.beuszo .szo { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 70ms); }
.beuszo.lat .szo { opacity: 1; transform: none; }
.beerkezo { opacity: 0; transform: translateY(36px) scale(.97); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 45ms); }
.lat > .beerkezo { opacity: 1; transform: none; }

/* ---------- jelenetek ---------- */
.jelenet { height: var(--h, 300vh); position: relative; }
.szinpad { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.vilagos { color: var(--tinta); }
.vilagos .szinpad, section.vilagos { background: var(--hideg) url(arculat/p2/vilagos-hatter.webp) center / cover no-repeat; }   /* a világos posztok háttere */
.vilagos .allitas p { color: var(--tinta2); }
.allitas p { color: rgba(255,255,255,.78); }

/* 1. nyitás: élő logó a csíkos háttéren */
.nyitas-logo { width: min(40vw, 74svh, 660px); will-change: transform, opacity, filter; }
.nyitas-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 820px) and (orientation: portrait) { .nyitas-logo { width: 80vw; } }
.gorgess { position: absolute; left: 50%; bottom: 30px; width: 14px; height: 14px; margin-left: -7px; border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7); transform: rotate(45deg); animation: lefele 1.8s ease-in-out infinite; }
@keyframes lefele { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(8px) rotate(45deg); opacity: 1; } }

/* 2. egy kormány, egy hang, tizenhét szín */
.j-nyitas .szinpad { display: grid; place-items: center; }
.ora { position: relative; z-index: 1; font-size: clamp(40px, min(8.6vw, 15vh), 170px); text-align: center; padding: 0 var(--gutter); }
.ora { line-height: 1.12; }
.ora .sor { display: block; opacity: 0; transform: translateY(.3em); }
.min-ora { padding: 0; text-align: left; margin-bottom: clamp(56px, 10vh, 120px); }
.min-ora .sor { transition: opacity .8s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.min-ora .sor:nth-child(2) { transition-delay: .25s; }
.min-ora .sor:nth-child(3) { transition-delay: .5s; }
.min-ora.lat .sor { opacity: 1; transform: none; }

/* 4. három vonás */
.j-vonas .szinpad { display: grid; align-content: end; padding: 0 var(--gutter) clamp(48px, 10vh, 110px); }
.ures-csik::before { opacity: var(--csik, 0); }   /* a fénysávok a vonásokból jönnek elő */
.vonasok { position: absolute; inset: 0; }
.vonasok i { position: absolute; top: 50%; left: 50%; width: 19vw; height: 3.4vw; margin: -1.7vw 0 0 -9.5vw; transform-origin: 50% 50%; }
.vonasok i:nth-child(1) { background: var(--piros); }
.vonasok i:nth-child(2) { background: #FFFFFF; }
.vonasok i:nth-child(3) { background: var(--zold); }
.vonas-logo { position: absolute; left: 50%; top: 40%; width: min(52vw, 560px); transform: translate(-50%, -50%); opacity: 0; }
.j-vonas .allitas { position: relative; z-index: 1; opacity: 0; }

/* 6. hírfolyam: élő posztfal, lassan úszó oszlopok */
.fal-szinpad { background: var(--mely); }
.fal { position: absolute; inset: 36svh var(--gutter) 0; display: grid; grid-template-columns: repeat(var(--fal-n, 5), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px);
  transform: translateY(calc(var(--fal-y, 0) * -1vh)); }
.fal-oszlop { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 22px); animation: fut 80s linear infinite; }
.fal-oszlop:nth-child(even) { margin-top: -12vh; animation-duration: 95s; }
.fal-oszlop img { width: 100%; border-radius: 8px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }
@keyframes fut { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.fal-szinpad::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--mely) 0, var(--mely) 36%, rgba(7,29,61,0) 50%), linear-gradient(0deg, rgba(7,29,61,.7), transparent 18%); }
.fal-cim { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); top: calc(84px + 3vh); display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw; }
.fal-cim p { margin: 0 0 .4em; }
.allitas.kozep { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter); }
.allitas.kozep p { margin-left: auto; margin-right: auto; }

/* 7b. két program */
.programok { padding: clamp(96px, 16vh, 170px) var(--gutter); }
.programok h2 { font-size: clamp(38px, 5.6vw, 96px); }
.program-sor { margin: clamp(40px, 7vh, 72px) auto 0; max-width: min(1000px, 112svh); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 72px); }
.program-sor figure { margin: 0; }
.program-sor video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.6); }
.program-nev { margin-bottom: 14px; text-align: center; font-size: clamp(13px, 1.1vw, 17px); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.program-nev b { font-weight: 800; color: #fff; margin-right: .5em; }

/* ---------- arculati tervező: sejtelmes galéria, alatta a funkciók élő posztokkal ---------- */
.tervezo { background: linear-gradient(180deg, #06142F 0, #0B2D5B 34%, #1B2560 78%, #231D53 100%); color: #fff; padding-bottom: clamp(90px, 14vh, 160px); }
.tv-hero { position: relative; min-height: 112svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.tv-galeria { position: absolute; inset: -30% -20%; z-index: -2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  transform: rotate(-12deg); opacity: .5; filter: saturate(.7); }
.tv-oszlop { display: flex; flex-direction: column; gap: 28px; animation: fut 90s linear infinite; }
.tv-oszlop:nth-child(even) { animation-direction: reverse; animation-duration: 110s; }
.tv-oszlop img { width: 100%; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.tv-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 52% at 50% 50%, rgba(6,20,47,.92), rgba(6,20,47,.55) 60%, rgba(6,20,47,.2) 100%),
    linear-gradient(180deg, #06142F 0, transparent 22%, transparent 70%, #0B2D5B 100%); }
.tv-hero-szoveg { position: relative; text-align: center; padding: 0 var(--gutter); }
.tervezo-otlet { display: inline-block; margin-bottom: 26px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tv-hero h2 { font-size: clamp(56px, 10vw, 168px); line-height: .96; letter-spacing: -.04em; text-shadow: 0 10px 60px rgba(0,0,0,.5); }
.tervezo-al { margin: 28px auto 0; max-width: 30em; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: rgba(255,255,255,.82); }

/* akár 10×: a szám maga a grafika, a csíkos fény a betűkben */
.tv-allitas { margin: clamp(40px, 8vh, 100px) auto clamp(60px, 10vh, 120px); padding: 0 var(--gutter); display: grid; justify-items: center; text-align: center;
  opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.tv-allitas.lat { opacity: 1; transform: none; }
.tv-akar { font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; color: rgba(255,255,255,.75); }
.tv-tiz { font-size: clamp(170px, 30vw, 460px); font-weight: 800; line-height: .82; letter-spacing: -.06em; margin: 0 0 .06em -.04em;
  background: linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.9) 30% 44%, transparent 44%) , linear-gradient(115deg, transparent 0 52%, rgba(255,255,255,.75) 52% 64%, transparent 64%),
    linear-gradient(180deg, #FFFFFF 0%, #C9D6F2 48%, #9C86E8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.tv-gyorsabb { font-size: clamp(20px, 2vw, 30px); font-weight: 500; }

.tv-sor { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gutter); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center; }
.tv-jovahagyas { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
.tv-jovahagyas .tv-szoveg { order: 2; }
.tv-szoveg h3 { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.02; letter-spacing: -.025em; }
.tv-szoveg p { margin-top: 18px; max-width: 24em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: rgba(255,255,255,.76); }
.posztvilag { --pf: Outfit; --cs: 800; font-family: Outfit, system-ui, sans-serif; }
.poszt-hely .pf { margin: 0; }
.poszt-hely .ph { border-radius: 8px !important; box-shadow: 0 40px 80px -36px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06); }

/* színpad: minden sor saját alányomással, a poszt-alányomatok mintájára (fotó vagy vonalrajz a téma színébe olvasztva) */
.tv-szinpad { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; isolation: isolate; background: #0B2D5B;
  box-shadow: 0 60px 120px -60px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
.tv-szinpad::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.06) 30% 44%, transparent 44%), linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.075) 47% 61%, transparent 61%),
    linear-gradient(115deg, transparent 0 64%, rgba(255,255,255,.05) 64% 78%, transparent 78%), linear-gradient(0deg, rgba(74,26,112,.55), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.5)); mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.5)); }
.tv-alany { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.tv-sor.lat .tv-alany { transform: none; }
.tv-tervezes .tv-szinpad { background: #F3F6FB url(arculat/p2/vilagos-hatter.webp) center/cover no-repeat; }
.tv-tervezes .tv-szinpad::before { display: none; }
.tv-tervezes .tv-alany { object-fit: contain; object-position: 50% 96%; opacity: .16; mix-blend-mode: multiply; }
.tv-jovahagyas .tv-szinpad { background: #20194D; }
.tv-jovahagyas .tv-alany { opacity: .5; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.tv-megjelenes .tv-szinpad { background: #0B6B57; }
.tv-megjelenes .tv-alany { opacity: .32; filter: grayscale(1); mix-blend-mode: luminosity; }

/* legyező: ugyanaz a hír öt elrendezésben; a minisztérium váltakozik, egyszerre mindig csak egy szín */
.tv-min-cimke { position: absolute; left: 5%; top: 6%; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #0E2140; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px -14px rgba(14,33,64,.5); }
.tv-min-cimke i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #0B2D5B); transition: background .6s ease; }
.tv-legyezo .ph { transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.tv-legyezo.valt .ph { opacity: 0; transform: translateY(14px) scale(.97); }
.tv-legyezo .poszt-hely:nth-child(2) .ph, .tv-legyezo .poszt-hely:nth-child(3) .ph { transition-delay: .06s; }
.tv-legyezo .kozep .ph { transition-delay: .1s; }
.tv-legyezo { position: absolute; inset: 0; }
.tv-legyezo .poszt-hely { position: absolute; left: 50%; top: 47%; width: 26%; transform: translate(-50%, -50%); transition: transform 1.3s cubic-bezier(.2,.7,.2,1); }
.tv-legyezo .kozep { width: 34%; z-index: 2; }
.tv-sor.lat .tv-legyezo .poszt-hely:nth-child(1) { transform: translate(-138%, -44%) rotate(-11deg); }
.tv-sor.lat .tv-legyezo .poszt-hely:nth-child(2) { transform: translate(-96%, -52%) rotate(-5deg); }
.tv-sor.lat .tv-legyezo .poszt-hely:nth-child(3) { transform: translate(-4%, -52%) rotate(5deg); }
.tv-sor.lat .tv-legyezo .poszt-hely:nth-child(4) { transform: translate(38%, -44%) rotate(11deg); }

/* jóváhagyás: a hét posztjai naptárban, rajta az állapot lépésenként */
.tv-naptar { position: absolute; left: 6%; right: 6%; top: 9%; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.94); color: #0E2140;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8); }
.tv-naptar-fej { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 15px; }
.tv-naptar-fej span { font-size: 13px; color: #6A7891; }
.tv-napok { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tv-napok > div { display: grid; align-content: start; gap: 8px; padding-top: 8px; border-top: 1px solid #E3E8F0; }
.tv-napok .nap { font-size: 12px; font-weight: 600; color: #6A7891; }
.tv-napok .poszt-hely .ph { border-radius: 4px !important; box-shadow: 0 6px 14px -8px rgba(14,33,64,.5); }
.tv-allapot { position: absolute; right: 5%; bottom: 6%; z-index: 2; list-style: none; margin: 0; padding: 20px 22px; border-radius: 16px; min-width: 250px;
  background: rgba(16,22,58,.72); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 13px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.tv-allapot li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.4); transition: color .4s ease; }
.tv-allapot li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); transition: background .4s ease, border-color .4s ease, box-shadow .4s; }
.tv-allapot li span { margin-left: auto; font-weight: 500; font-size: 14px; opacity: .8; }
.tv-allapot li.be { color: #fff; }
.tv-allapot li.be::before { background: #fff; border-color: #fff; }
.tv-allapot li.be:last-child::before { background: #3DDC97; border-color: #3DDC97; box-shadow: 0 0 0 5px rgba(61,220,151,.18); }
.tv-napok .poszt-hely { position: relative; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.tv-napok .poszt-hely .ph { transition: box-shadow .45s; }
.tv-napok .poszt-hely.aktiv { transform: scale(1.08); z-index: 1; }
.tv-napok .poszt-hely.aktiv .ph { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3D6BE0, 0 16px 30px -10px rgba(14,33,64,.6); }
.tv-napok .poszt-hely.kesz::after { content: '✓'; position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #22B573; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }

/* megjelenés: borító profilképpel, előtte ugyanaz a terv három formátumban */
.tv-formak { position: absolute; inset: 7% 6% 6%; display: grid; grid-template-rows: auto 1fr; }
.tv-borito { position: relative; }
.tv-borito > img:first-child { display: block; width: 100%; border-radius: 12px; box-shadow: 0 40px 80px -36px rgba(0,0,0,.7); }
.tv-profil { position: absolute; z-index: 3; left: 5%; bottom: -16%; width: 17%; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.tv-forma-sor { display: flex; justify-content: flex-end; align-items: flex-end; gap: 4%; margin-top: -8%; padding: 0 2% 0 26%; position: relative; z-index: 1; }
.tv-forma-sor figure { margin: 0; text-align: center; transform: translateY(40px); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .9s ease; }
.tv-forma-sor figure:nth-child(2) { transition-delay: .12s; } .tv-forma-sor figure:nth-child(3) { transition-delay: .24s; }
.tv-sor.lat .tv-forma-sor figure { transform: none; opacity: 1; }
.tv-forma-sor figcaption { margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.tv-forma-sor .ph > div:first-child { transition: opacity .35s ease, filter .35s ease; }
.tv-forma-sor.valt .ph > div:first-child { opacity: 0; filter: blur(6px); }
.tv-forma-sor .f45 { width: clamp(110px, 12vw, 190px); }
.tv-forma-sor .f11 { width: clamp(110px, 12vw, 190px); }
.tv-forma-sor .f916 { width: clamp(92px, 10vw, 156px); }
.f11 .ph { aspect-ratio: 1 / 1 !important; }
.f916 .ph { aspect-ratio: 9 / 16 !important; }
.f916 .ph > div:first-child { top: 46cqw !important; }

/* ---------- minták ---------- */
.anyagok { background: var(--mely); padding: clamp(96px, 16vh, 170px) 0 clamp(64px, 10vh, 120px); }
.anyagok-fej { padding: 0 var(--gutter); max-width: 1000px; }
.anyagok-fej h2, .elo-fej h2 { font-size: clamp(38px, 5.6vw, 96px); }
.anyagok-fej p { color: rgba(255,255,255,.72); }

/* ---------- élőben: vezérlők a mintaoldal fölött ---------- */
.elo { padding: clamp(96px, 16vh, 170px) var(--gutter); }
.elo-fej { max-width: 1000px; margin: 0 auto; text-align: center; }
.elo-fej p { color: var(--tinta2); margin-left: auto; margin-right: auto; }
.elo-vezerlo { margin: clamp(28px, 5vh, 44px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tema-valaszto { position: relative; }
.tema-gomb { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 12px; border-radius: 999px; border: 0;
  background: #fff; color: var(--tinta); font-size: 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(14,33,64,.1), 0 0 0 1px rgba(14,33,64,.08); }
.tema-gomb svg { width: 13px; height: 9px; }
.tema-pont { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.tema-lista { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none; width: 260px; max-height: 60vh; overflow: auto;
  border-radius: 14px; background: #fff; color: var(--tinta); box-shadow: 0 30px 60px -20px rgba(7,29,61,.45), 0 0 0 1px rgba(14,33,64,.08); text-align: left; }
.tema-lista li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 15px; cursor: pointer; }
.tema-lista li:hover, .tema-lista li[aria-selected="true"] { background: var(--hideg); }
.tema-lista .tema-pont { width: 14px; height: 14px; }
.szegmens { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(14,33,64,.1), 0 0 0 1px rgba(14,33,64,.08); }
.szegmens button { border: 0; background: none; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--tinta2); }
.szegmens button[aria-pressed="true"] { background: var(--kormany); color: #fff; }
.szegmens button[hidden] { display: none; }
.bongeszo { max-width: 1400px; margin: 24px auto 0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 50px 100px -40px rgba(7,29,61,.45), 0 0 0 1px rgba(14,33,64,.08); }
.bongeszo-sav { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #EEF1F6; border-bottom: 1px solid rgba(14,33,64,.06); }
.bongeszo-sav i { width: 12px; height: 12px; border-radius: 50%; background: #CDD4DE; }
.bongeszo iframe { display: block; width: 100%; height: min(86vh, 920px); border: 0; }
/* telefonos nézetben a mockup maga rajzolja a telefont: nincs böngészőkeret */
.bongeszo.telefonos { background: none; box-shadow: none; border-radius: 0; }
.bongeszo.telefonos .bongeszo-sav { display: none; }

/* ---------- zárás ---------- */
/* a háttér a fölötte lévő csíkos jelenet aljának színéből indul (a lilás átmenet vége), így nincs varrat */
.zaras { background: linear-gradient(180deg, #231D53, #0B2D5B 85%); min-height: 90svh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 96px var(--gutter); }
.zaras img { width: min(56vw, 320px); }
.zaras p { font-weight: 300; font-size: clamp(22px, 2vw, 30px); color: rgba(255,255,255,.86); }

/* ---------- nagyító ---------- */
.nagyito { border: 0; padding: 0; background: none; max-width: 92vw; max-height: 92vh; overflow: visible; }
.nagyito::backdrop { background: rgba(4,14,30,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nagyito-tartalom img, .nagyito-tartalom video { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 8px; }
.nagyito-zar { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; }

/* ---------- gombok ---------- */
.gomb { margin-top: 24px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1);
  font-size: 16px; font-weight: 600; transition: background-color .25s ease; }
.gomb:hover { background: rgba(255,255,255,.2); }
.fejlec-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.fejlec-menu a { text-decoration: none; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.8); }
.fejlec-menu a:hover, .fejlec-menu a.aktiv { color: #fff; }
.fejlec-gomb { height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); font-size: 17px; font-weight: 600; }
.fejlec-gomb:hover { background: rgba(255,255,255,.2); }

/* ---------- alapgondolat ---------- */
.alap { padding: clamp(110px, 18vh, 190px) var(--gutter); }
.alap h2 { font-size: clamp(38px, 5.6vw, 96px); }
.harom { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.harom p { font-weight: 700; font-size: clamp(24px, 2.4vw, 40px); line-height: 1.12; letter-spacing: -.01em; color: var(--tinta);
  padding-top: 22px; border-top: 3px solid var(--tinta); }

/* ---------- trikolor: két szöveg egymás után ---------- */
.j-vonas h2, .j-fal h2 { font-size: clamp(38px, 5.6vw, 96px); }
.j-vonas .szinpad { display: block; padding: 0; }
.j-vonas .allitas { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 10vh, 110px); opacity: 0; }

/* ---------- színvilág: a sötétkékre alulról lila ---------- */
.szin-szinpad { background: var(--kormany); display: grid; align-content: end; padding: 0 var(--gutter) clamp(48px, 10vh, 110px); }
.lila { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(74,26,112,.95) 0, rgba(74,26,112,.55) 35%, transparent 75%); opacity: 0; }
.j-szin .allitas { position: relative; }
.j-szin h2 { font-size: clamp(38px, 5.6vw, 96px); }
.kiemelt { font-weight: 700; color: #fff !important; }

/* ---------- sötét és világos ---------- */
.sv { padding: clamp(110px, 18vh, 190px) var(--gutter); }
.sv h2 { font-size: clamp(38px, 5.6vw, 96px); }
.sv-sor { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.sv-par { position: relative; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: none;
  box-shadow: 0 30px 60px -30px rgba(7,29,61,.45); }
.sv-par img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.sv-par .sv-vil { opacity: 0; }
.sv-par.vil .sv-vil { opacity: 1; }

/* ---------- minisztériumi arculatok ---------- */
.min { background: var(--mely); padding: clamp(110px, 18vh, 190px) var(--gutter); }
.min h2 { font-size: clamp(38px, 5.6vw, 96px); }
.min .logo-racs { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.lk { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 8px; overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.lk.szeles { grid-column: span 2; aspect-ratio: auto; }
.lk img { position: absolute; width: 74%; height: 62%; object-fit: contain; transition: opacity .35s ease; }
.lk .sotet { opacity: 0; }
.lk::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--vsz); opacity: 0; transition: opacity .35s ease; }
.lk:hover .feher, .lk:focus-visible .feher { opacity: 0; }
.lk:hover .sotet, .lk:focus-visible .sotet, .lk:hover::after, .lk:focus-visible::after { opacity: 1; }
.lk[aria-selected="true"] { box-shadow: 0 0 0 3px #fff; }
.min-reszlet { margin-top: clamp(16px, 2vw, 24px); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(20px, 3vw, 48px); padding: clamp(24px, 3.4vw, 52px); align-items: center; }
.min-reszlet.uj .min-szoveg, .min-reszlet.uj .min-poszt { animation: be .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes be { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.min-logo { width: min(100%, 320px); }
.min-szin { margin-top: 28px; font-weight: 800; font-size: clamp(24px, 2.2vw, 36px); line-height: 1; }
.min-indok { margin-top: 12px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: rgba(255,255,255,.82); max-width: 28em; }
.min-posztok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .62fr); gap: clamp(8px, 1vw, 14px); align-items: end; }
.min-poszt { border: 0; padding: 0; background: none; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }
.min-poszt img, .min-poszt video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.min-poszt.allo img, .min-poszt.allo video { aspect-ratio: 9 / 16; }

/* ---------- minták: típusonként belépő a Mintatárba ---------- */
.tipus-racs { margin-top: clamp(36px, 6vh, 64px); padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.tipus { position: relative; border: 0; padding: 0; text-align: left; background: none; cursor: pointer; }
.tipus-kep { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #0D2A52; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tipus-kep img, .tipus-kep video { width: 100%; height: 100%; object-fit: cover; }
.tipus:hover .tipus-kep { transform: scale(1.03); }
.tipus.szeles .tipus-kep { display: grid; place-items: center; }
.tipus.logo-belepo .tipus-kep { display: grid; place-items: center; background: var(--kormany); }
.tipus.logo-belepo .tipus-kep img { width: 70%; height: auto; object-fit: contain; }
.tipus.szeles .tipus-kep img { height: auto; object-fit: contain; }
.tipus-nev { display: block; margin-top: 12px; font-weight: 700; font-size: 18px; }
.tipus-szam { display: block; margin-top: 2px; font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Mintatár ---------- */
html.tar-nyitva { overflow: hidden; }
.mintatar { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: var(--mely); color: #fff; overflow: auto; }
.mintatar::backdrop { background: rgba(4,14,30,.6); }
.mintatar[open] { animation: tar-be .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes tar-be { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.tar-fej { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 20px; padding: 24px var(--gutter) 12px; background: var(--mely); }
.tar-fej h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; }
.tar-szam { color: rgba(255,255,255,.6); font-size: 16px; }
.tar-zar { margin-left: auto; align-self: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); font-size: 28px; line-height: 1; }
.tar-szurok { position: sticky; top: 84px; z-index: 2; display: grid; gap: 8px; padding: 6px var(--gutter) 18px; background: linear-gradient(var(--mely) 80%, transparent); }
.tar-szuro { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: none; font-size: 14px; }
.chip:hover { background: rgba(255,255,255,.08); }
.chip[aria-pressed="true"] { background: #fff; color: var(--tinta); border-color: #fff; }
.chip .tema-pont { width: 12px; height: 12px; border-radius: 50%; }
.tar-racs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; align-items: start; padding: 0 var(--gutter) 64px; }
.tar-elem.borito { grid-column: span 2; }
.tar-elem.kiemelt-borito { grid-column: 1 / -1; max-width: 900px; }
.tar-elem { display: block; width: 100%; margin: 0; border: 0; padding: 0; background: none; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.tar-elem img, .tar-elem video { width: 100%; display: block; }
.tar-fulek .chip { height: 42px; padding: 0 20px; font-size: 16px; font-weight: 600; }
.tar-szuro[hidden], .chip[hidden] { display: none; }
.tar-racs.logok { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tar-elem.logo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sz); transition: background-color .35s ease; }
.tar-elem.logo:hover, .tar-elem.logo:focus-visible { background: var(--vsz); }
.tar-elem.logo.kiemelt { grid-column: span 2; aspect-ratio: auto; align-self: stretch; }
.tar-elem.logo.kiemelt img { width: 48%; }
.tar-elem.logo img { position: absolute; width: 72%; height: 64%; object-fit: contain; transition: opacity .35s ease; }
.tar-elem.logo .sotet { opacity: 0; }
.tar-elem.logo:hover .sotet, .tar-elem.logo:focus-visible .sotet { opacity: 1; }
.tar-elem.logo:hover img:not(.sotet), .tar-elem.logo:focus-visible img:not(.sotet) { opacity: 0; }
.tar-racs.anim { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.anim-elem { margin: 0; cursor: zoom-in; }
.anim-elem.szeles { grid-column: span 3; }
.anim-elem video { width: 100%; display: block; border-radius: 6px; background: #0D2A52; aspect-ratio: 9 / 16; object-fit: cover; }
.anim-elem.szeles video { aspect-ratio: 16 / 9; }
.anim-elem.nagy { grid-column: span 2; }
.tar-megj { grid-column: 1 / -1; margin: 0; font-size: 15px; color: rgba(255,255,255,.6); }
.anim-elem figcaption { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.75); }
.tar-csoport { grid-column: 1 / -1; margin: 18px 0 2px; font-size: 20px; font-weight: 700; }

/* ---------- telefon ---------- */
@media (max-width: 820px) {
  .fejlec { height: 68px; }
  .tv-sor { grid-template-columns: minmax(0, 1fr); }
  .tv-jovahagyas { grid-template-columns: minmax(0, 1fr); }
  .tv-jovahagyas .tv-szoveg { order: 0; }
  .tv-galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -20% -60%; }
  .tv-szinpad { aspect-ratio: 4 / 5; border-radius: 22px; }
  .tv-legyezo .poszt-hely { width: 40%; } .tv-legyezo .kozep { width: 48%; top: 42%; }
  .tv-sor.lat .tv-legyezo .poszt-hely:nth-child(1) { transform: translate(-112%, -64%) rotate(-12deg); }
  .tv-sor.lat .tv-legyezo .poszt-hely:nth-child(2) { transform: translate(-80%, -70%) rotate(-6deg); }
  .tv-sor.lat .tv-legyezo .poszt-hely:nth-child(3) { transform: translate(-20%, -70%) rotate(6deg); }
  .tv-sor.lat .tv-legyezo .poszt-hely:nth-child(4) { transform: translate(12%, -64%) rotate(12deg); }
  .tv-naptar { padding: 12px; left: 5%; right: 5%; top: 6%; }
  .tv-napok { gap: 5px; } .tv-napok .nap { font-size: 10px; }
  .tv-allapot { min-width: 0; right: 5%; bottom: 5%; padding: 14px 16px; gap: 10px; }
  .tv-allapot li { font-size: 13px; } .tv-allapot li span { display: none; }
  .tv-forma-sor .f45, .tv-forma-sor .f11 { width: 25vw; } .tv-forma-sor .f916 { width: 20vw; }
  .tv-forma-sor { margin-top: 18%; justify-content: center; gap: 3%; padding: 0; }
  .fejlec-logo img { height: 38px; }
  .tema-gomb { height: 44px; font-size: 15px; padding: 0 14px 0 10px; }
  .oldalnav { display: none; }
  .vonasok i { width: 26vw; height: 5vw; margin: -2.5vw 0 0 -13vw; }
  .min .logo-racs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
  .min .lk, .min .lk.szeles { flex: none; width: 44vw; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .harom { grid-template-columns: 1fr; }
  .sv-sor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .min-reszlet { grid-template-columns: 1fr; }
  .min-posztok { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tipus-racs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fejlec-gomb { height: 40px; padding: 0 16px; font-size: 15px; }
  .fejlec-menu a { display: none; }
  .tar-szurok { top: 76px; }
  .fal { --fal-n: 3; }
  .program-sor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fal-oszlop { animation: none; }
  * { transition: none !important; }
}
