/* HUNA Hősei 2026
   Desktop: a Figma 1920×1080-as kerete arányosan skálázódik (--u = 1 Figma-pixel).
   Mobil (≤ 860px): önálló, egymás alá rendezett elrendezés. */

:root {
  --red: #ff0000;
  --black: #000;
  --white: #fff;
  --ink: #000;
  --placeholder: #6b7380;
  --u: min(100vw / 1920, 100vh / 1080);
  --sidebar: calc(var(--u) * 270);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.skip {
  position: fixed; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 6px; font-weight: 700;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.side :focus-visible { outline-color: #fff; }

/* ---------- Oldalsáv ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 50; /* a felirat (20) és a névlista (30) fölött, az e-mail ablak (60) alatt */
  width: var(--sidebar);
  background: var(--black); color: var(--white);
  padding: calc(var(--u) * 50) calc(var(--u) * 20);
  display: flex; flex-direction: column;
}
.side__logo { display: block; width: calc(var(--u) * 224); }
.side__logo img { width: 100%; height: auto; }
.side__toggle { display: none; }
.side__panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.menu { margin-top: calc(var(--u) * 146); }
.menu li {
  padding-bottom: calc(var(--u) * 24);
  margin-bottom: calc(var(--u) * 24);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}
.menu li:last-child { margin-bottom: 0; }
.menu a {
  display: block; text-decoration: none;
  color: var(--red); font-weight: 700;
  font-size: calc(var(--u) * 16); line-height: 1.6;
  transition: color .2s;
}
.menu a:hover, .menu a.is-active { color: var(--white); }

.side__notes { margin: calc(var(--u) * 40) 0 calc(var(--u) * 30); }
.side__note + .side__note { margin-top: calc(var(--u) * 16); }
.side__note { color: var(--white); font-weight: 700; font-size: calc(var(--u) * 15); line-height: 1.5; }
.side__date { color: var(--red); }
.contact { margin-top: auto; font-size: calc(var(--u) * 12); }
.contact__text { line-height: 1.6; }
.contact__person {
  margin-top: calc(var(--u) * 14); padding-top: calc(var(--u) * 14);
  border-top: 1px solid rgba(255, 255, 255, .55);
  line-height: 1.35;
}
.contact__person strong { font-weight: 700; }

/* ---------- Fő terület ---------- */
.main {
  position: relative;
  margin-left: var(--sidebar);
  height: 100vh; min-height: calc(var(--u) * 1080);
  overflow: hidden;
  background: #fff;
  outline: none;
}
.bg-stripes {
  /* mindig kitölti az ablak magasságát (keskenyebb/magasabb ablaknál sincs fehér sáv alul) */
  --s: max(var(--u), 100vh / 1076);
  position: absolute; top: 0; right: calc(var(--s) * -404);
  width: calc(var(--s) * 1609); height: max(100%, calc(var(--s) * 1076));
  background: url('../assets/stripes.webp') center / 100% 100% no-repeat;
  pointer-events: none;
}
.bg-stripes.slide-in { animation: stripesIn 1.2s cubic-bezier(.16, .84, .3, 1) both; }
@keyframes stripesIn { from { transform: translateX(42%); opacity: 0; } to { transform: none; opacity: 1; } }
#screens { position: relative; height: 100%; }
.screen { height: 100%; display: flex; align-items: center; justify-content: center; }

.slide { position: relative; flex: none; width: calc(var(--u) * 1650); height: calc(var(--u) * 1080); }

/* ---------- Hős oldalak ---------- */
.bg-map {
  position: absolute; left: calc(var(--u) * -4); top: calc(var(--u) * 240);
  width: calc(var(--u) * 1605); height: calc(var(--u) * 665);
  background: url('../assets/map.webp') center / 100% 100% no-repeat;
  opacity: .3; pointer-events: none;
  transform-origin: 50% 12%;
  animation: heartbeat 3.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%   { transform: scale(1);     opacity: .28; }
  12%  { transform: scale(1.03);  opacity: .40; }
  26%  { transform: scale(1);     opacity: .30; }
  40%  { transform: scale(1.018); opacity: .36; }
  56%  { transform: scale(1);     opacity: .28; }
  100% { transform: scale(1);     opacity: .28; }
}
.hero__fig {
  position: absolute; margin: 0;
  left: calc(var(--u) * var(--fx)); top: calc(var(--u) * var(--fy));
  width: calc(var(--u) * var(--fw)); height: calc(var(--u) * var(--fh));
}
.hero__fig { animation: figFromMenu 1.1s cubic-bezier(.16, .84, .3, 1) both; }
@keyframes figFromMenu { from { transform: translateX(-150%); } to { transform: none; } }

/* Karakter */
.fig { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 1024 / 1536; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.fig img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }

.hero__col {
  animation: fadeUp .7s .5s ease both;
  position: absolute; left: calc(var(--u) * 850); top: 0; bottom: 0;
  width: calc(var(--u) * 650);
  display: flex; flex-direction: column; justify-content: center;
}
.card {
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  color: var(--white);
  border-radius: calc(var(--u) * 24);
  padding: calc(var(--u) * 30);
}
.card__kicker { color: var(--red); font-weight: 700; font-size: calc(var(--u) * 20); line-height: 1.3; }
.card__title {
  margin-top: calc(var(--u) * 30);
  font-weight: 700; font-size: calc(var(--u) * 60); line-height: 1;
  letter-spacing: -.005em;
}
.card__text { margin-top: calc(var(--u) * 30); font-size: calc(var(--u) * 16); line-height: 1.6; }

.field { margin-top: calc(var(--u) * 30); }
.field label { display: block; font-weight: 600; font-size: calc(var(--u) * 13); line-height: calc(var(--u) * 18); }
.field input {
  display: block; width: 100%; margin-top: calc(var(--u) * 8);
  height: calc(var(--u) * 44); padding: 0 calc(var(--u) * 14);
  border: 2px solid transparent; border-radius: calc(var(--u) * 8);
  background: #fff; color: #000;
  font: 400 calc(var(--u) * 14) / 1.4 var(--font);
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus { outline: none; border-color: var(--red); }
.field input[aria-invalid='true'] { border-color: var(--red); }
.field__err { margin-top: calc(var(--u) * 8); color: #ff6b6b; font-weight: 600; font-size: calc(var(--u) * 13); }
.field__hint { margin-top: calc(var(--u) * 6); color: rgba(255, 255, 255, .78); font-size: calc(var(--u) * 13); line-height: 1.45; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  margin-top: calc(var(--u) * 30);
  height: calc(var(--u) * 48); padding: 0 calc(var(--u) * 28);
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: var(--white); text-decoration: none;
  font: 700 calc(var(--u) * 14) / 1.3 var(--font); letter-spacing: .02em; text-transform: uppercase;
  transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn:hover { background: #d90000; box-shadow: 0 6px 18px rgba(255, 0, 0, .35); }
.btn:active { transform: translateY(1px); }
.btn .chev { width: .6em; height: .9em; flex: none; }
.btn--lg { height: calc(var(--u) * 70); padding: 0 calc(var(--u) * 44); font-size: calc(var(--u) * 20); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Lapozó */
.pager { display: flex; justify-content: space-between; margin-top: calc(var(--u) * 24); min-height: calc(var(--u) * 56); }
.pager__a { display: block; text-decoration: none; color: #000; }
.pager__top { display: flex; align-items: center; gap: calc(var(--u) * 20); }
.pager__top b { color: var(--red); font-weight: 700; font-size: calc(var(--u) * 12); line-height: 1.3; }
.pager__a--next .pager__top { justify-content: flex-end; }
.pager .arrow { width: calc(var(--u) * 32); height: auto; transition: transform .2s; }
.pager__a--next:hover .arrow { transform: translateX(4px); }
.pager__a--prev:hover .arrow { transform: translateX(-4px); }
.pager__lbl { display: block; margin-top: calc(var(--u) * 24); font-size: calc(var(--u) * 12); line-height: 1.3; }
.pager__a--next .pager__lbl { text-align: right; }
.pager__a:hover .pager__lbl { text-decoration: underline; }

/* Főcím begépelése */
.tw__r { visibility: hidden; }
.tw__c { position: relative; display: inline-block; width: 0; height: 0; }
.is-typing .tw__c::after, .is-typed .tw__c::after {
  content: ''; position: absolute; left: .03em; bottom: -.12em;
  width: .06em; height: .86em; background: var(--white);
  animation: caret .8s steps(1) infinite;
}
.is-typed .tw__c::after { animation: caret .8s steps(1) 4, caretOff 0s 3.2s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes caretOff { to { opacity: 0; } }

/* ---------- Nyitó / köszönő oldal ---------- */
.bg-brush {
  position: absolute; left: calc(var(--u) * -13); top: 0;
  width: calc(var(--u) * 1665); height: calc(var(--u) * 774);
  background: url('../assets/brush.webp') center / 100% 100% no-repeat;
  opacity: .32; pointer-events: none;
  animation: heartbeatSoft 4.2s ease-in-out infinite;
}
@keyframes heartbeatSoft { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.018); } 28% { transform: scale(1); } 42% { transform: scale(1.01); } 56% { transform: scale(1); } }
.collage {
  position: absolute; left: calc(var(--u) * 145); top: calc(var(--u) * 31);
  width: calc(var(--u) * 1355); height: calc(var(--u) * 749);
}
.collage .c {
  position: absolute;
  left: calc(var(--cx) / 1355 * 100%); top: calc(var(--cy) / 749 * 100%);
  width: calc(var(--cw) / 1355 * 100%); height: calc(var(--ch) / 749 * 100%);
  animation: inLeft 1.1s var(--delay, 0s) cubic-bezier(.16, .84, .3, 1) both;
}
.collage .c--r { animation-name: inRight; }
.collage .c.is-hover { z-index: 10; }
.hero__fig.is-hover .fig,
.collage .c.is-hover .fig { transform: translateX(-50%) scale(1.06); }
@keyframes inLeft  { from { transform: translateX(-130%); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes inRight { from { transform: translateX(130%);  opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
.fade {
  /* a karakterek mögött, a csíkos háttér előtt; mindig az ablak széléig ér */
  --edge: min(calc(var(--u) * -3), calc((var(--u) * 1650 - (100vw - var(--sidebar))) / 2));
  position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--u) * 504);
  height: calc(var(--u) * 517);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 30%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.titleimg {
  position: absolute; left: calc(var(--u) * 253); top: calc(var(--u) * 439);
  width: calc(var(--u) * 1122); height: calc(var(--u) * 358); margin: 0;
  filter: drop-shadow(0 calc(var(--u) * 12) calc(var(--u) * 14) rgba(0, 0, 0, .3));
}
.titleimg { display: flex; align-items: center; justify-content: center; z-index: 20; pointer-events: none; animation: titleIn .9s 1.4s cubic-bezier(.16, .84, .3, 1) both; }
.titleimg__img { height: 100%; width: auto; max-width: 100%; transition: filter .3s; }
.titleimg.is-hover .titleimg__img { animation: titleMove 1.6s ease-in-out infinite; filter: drop-shadow(0 calc(var(--u) * 10) calc(var(--u) * 14) rgba(255, 0, 0, .35)); }
@keyframes titleIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes titleMove {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1.03); }
  25%      { transform: translateY(-.6%) rotate(-1.4deg) scale(1.05); }
  50%      { transform: translateY(0) rotate(0deg) scale(1.06); }
  75%      { transform: translateY(-.6%) rotate(1.4deg) scale(1.05); }
}

.intro__text, .thanks__text { animation: fadeUp .8s 1.8s ease both; }
.intro__art { position: absolute; inset: 0; scale: .86; transform-origin: 50% 0; translate: 0 calc(var(--u) * -14); }
.intro__art .fade { left: -100vw; right: -100vw; } /* a kicsinyítés mellett is az ablak széléig érjen */
.intro__text {
  position: absolute; left: 0; right: 0; top: calc(var(--u) * 676);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 calc(var(--u) * 30);
}
.intro__kicker { color: var(--red); font-weight: 700; font-size: calc(var(--u) * 20); line-height: 1.3; }
.intro__text p { max-width: calc(var(--u) * 1530); font-size: calc(var(--u) * 16); line-height: 1.6; }
.intro__kicker + p { margin-top: calc(var(--u) * 30); }
.intro__text p + p { margin-top: calc(var(--u) * 10); }
.intro__text .btn { margin-top: calc(var(--u) * 30); }

.screen--thanks .collage { top: calc(var(--u) * 43); }
.screen--thanks .titleimg { left: calc(var(--u) * 266); top: calc(var(--u) * 463); }
.screen--thanks .bg-brush { left: calc(var(--u) * -13); }
.thanks__text {
  position: absolute; left: 0; right: 0; top: calc(var(--u) * 853);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.thanks__text h1 { font-weight: 700; font-size: calc(var(--u) * 50); line-height: calc(var(--u) * 60); }
.thanks__text .btn { margin-top: calc(var(--u) * 30); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .intro__art { display: contents; }
  :root { --bar: 64px; }

  body.is-locked, html.menu-open body { overflow: hidden; }

  .side {
    inset: 0 0 auto 0; width: 100%; height: var(--bar);
    padding: 0 16px; flex-direction: column;
  }
  .side__bar { height: var(--bar); display: flex; align-items: center; justify-content: space-between; }
  .side__logo { width: auto; height: 46px; }
  .side__logo img { height: 100%; width: auto; }
  .side__toggle {
    display: inline-flex; align-items: center; gap: 12px;
    background: none; border: 0; color: #fff; cursor: pointer;
    font: 700 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
    padding: 12px 0 12px 12px;
  }
  .side__burger { position: relative; width: 26px; height: 18px; display: block; }
  .side__burger i { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
  .side__burger i:nth-child(1) { top: 0; }
  .side__burger i:nth-child(2) { top: 8px; }
  .side__burger i:nth-child(3) { top: 16px; }
  .side.is-open .side__burger i:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .side.is-open .side__burger i:nth-child(2) { opacity: 0; }
  .side.is-open .side__burger i:nth-child(3) { top: 8px; transform: rotate(-45deg); }

  .side__panel {
    position: fixed; left: 0; right: 0; top: var(--bar); bottom: 0;
    background: #000; padding: 8px 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto; display: none;
  }
  .side.is-open .side__panel { display: flex; }
  .menu { margin-top: 8px; }
  .menu li { padding-bottom: 16px; margin-bottom: 16px; }
  .menu a { font-size: 18px; }
  .side__notes { margin-top: 24px; }
  .side__note { font-size: 16px; }
  .side__note + .side__note { margin-top: 12px; }
  .contact { margin-top: 32px; font-size: 13px; }
  .contact__person { margin-top: 14px; padding-top: 14px; }

  .main { margin-left: 0; padding-top: var(--bar); height: auto; min-height: 100svh; overflow: hidden; }
  .bg-stripes { top: var(--bar); right: -38%; width: 120%; height: 100%; background-size: cover; background-position: right top; opacity: .9;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
            mask-image: linear-gradient(to right, transparent 0, #000 40%); }
  #screens { height: auto; }
  .screen { display: block; height: auto; min-height: calc(100svh - var(--bar)); }
  .slide { width: 100%; height: auto; display: flex; flex-direction: column; min-height: calc(100svh - var(--bar)); }

  /* hős oldal */
  .bg-map { left: -20%; right: -20%; top: 6%; width: auto; height: 46svh; background-size: contain; background-position: center; opacity: .4; }
  .hero__fig {
    position: relative; left: auto; top: auto; width: 100%; height: clamp(320px, 56svh, 520px);
    padding: 18px 16px 0;
  }
  .hero__col { position: relative; left: auto; top: auto; bottom: auto; width: 100%; padding: 0 16px; display: block; margin-top: -26px; }
  .card { padding: 22px 20px 24px; border-radius: 20px; }
  .card__kicker { font-size: 15px; }
  .card__title { margin-top: 10px; font-size: clamp(30px, 9vw, 42px); line-height: 1.05; }
  .card__text { margin-top: 16px; font-size: 14.5px; line-height: 1.6; }
  .field { margin-top: 22px; }
  .field label { font-size: 13px; line-height: 1.35; }
  .field input { height: 48px; font-size: 16px; padding: 0 14px; border-radius: 10px; margin-top: 8px; }
  .field__err { font-size: 13px; }
  .field__hint { margin-top: 6px; font-size: 13px; }
  .btn { margin-top: 20px; height: 50px; padding: 0 30px; font-size: 14px; }
  .card .btn { width: 100%; }
  .btn--lg { height: 56px; font-size: 16px; padding: 0 40px; }

  .pager { margin-top: 20px; padding: 0 4px 36px; min-height: 0; }
  .pager__top { gap: 14px; }
  .pager__top b { font-size: 13px; }
  .pager .arrow { width: 30px; }
  .pager__lbl { margin-top: 6px; font-size: 13px; }

  /* nyitó + köszönő */
  .bg-brush { left: -30%; right: -30%; top: 3%; width: auto; height: 40svh; background-size: contain; background-position: center; opacity: .32; }
  .collage {
    position: relative; left: auto; top: auto; width: calc(100% - 8px); height: auto;
    aspect-ratio: 1355 / 749; margin: 14px 4px 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 68%, transparent 98%);
  }
  .screen--thanks .collage { top: auto; }
  .fade { display: none; }
  .collage .c { animation-duration: .9s; }
  .titleimg, .screen--thanks .titleimg {
    position: relative; left: auto; top: auto;
    width: min(86%, 440px); height: auto; aspect-ratio: 1945 / 809;
    margin: calc(-1 * clamp(40px, 15vw, 120px)) auto 0;
  }
  .intro__text, .thanks__text {
    position: relative; left: auto; right: auto; top: auto;
    padding: 18px 22px 44px;
  }
  .intro__kicker { font-size: 18px; }
  .intro__kicker + p { margin-top: 14px; }
  .intro__text p { font-size: 14.5px; line-height: 1.6; max-width: 560px; }
  .intro__text p + p { margin-top: 10px; }
  .intro__text .btn { margin-top: 26px; }
  .thanks__text { padding-top: 26px; }
  .thanks__text h1 { font-size: clamp(26px, 8vw, 38px); line-height: 1.15; }
  .thanks__text .btn { margin-top: 24px; font-size: 14px; }
}

/* kisebb desktop magasság: ne legyen olvashatatlanul apró */
@media (min-width: 861px) and (max-height: 640px) {
  .main { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tw__r { visibility: visible; }
}

.btn[disabled] { opacity: .65; cursor: progress; }

/* Névkiegészítés */
.field { position: relative; }
.ac {
  position: absolute; left: 0; right: 0; z-index: 30;
  margin-top: 4px; padding: 6px 0;
  background: #fff; color: #111; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  max-height: 280px; overflow-y: auto;
}
.ac li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.ac li.is-active, .ac li:hover { background: #ffe5e5; }
.ac__name { font-weight: 600; }
.ac__dep { color: var(--placeholder); font-size: 12px; white-space: nowrap; }
.card__text + .card__text { margin-top: calc(var(--u) * 12); }
@media (max-width: 860px) { .card__text + .card__text { margin-top: 10px; } }

/* ---------- E-mail ablak ---------- */
html.gate-open { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.gate__box {
  position: relative; width: min(520px, 100%);
  background: #fff; color: #000; border-radius: 20px;
  padding: 32px 30px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s ease, transform .3s ease;
}
.gate.is-on .gate__backdrop { opacity: 1; }
.gate.is-on .gate__box { opacity: 1; transform: none; }
.gate__x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #555; border-radius: 50%; }
.gate__x:hover { background: #f1f1f1; }
.gate__title { font-weight: 700; font-size: 24px; line-height: 1.2; padding-right: 30px; }
.gate__text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: #444; }
.gate__label { display: block; margin-top: 20px; font-weight: 600; font-size: 13px; }
.gate__input {
  display: block; width: 100%; margin-top: 8px; height: 48px; padding: 0 14px;
  border: 2px solid #d9d9d9; border-radius: 10px; font: 400 16px/1.3 var(--font); color: #000;
}
.gate__input:focus { outline: none; border-color: var(--red); }
.gate__input[aria-invalid='true'] { border-color: var(--red); }
.gate__err { margin-top: 8px; color: #d40000; font-weight: 600; font-size: 13px; }
.gate .btn.gate__btn { margin-top: 20px; height: 50px; padding: 0 30px; font-size: 14px; width: 100%; }
@media (prefers-reduced-motion: reduce) { .gate__backdrop, .gate__box { transition: none; } }

/* Véglegesítés gomb (utolsó kategória) + mentés visszajelzés */
.btn.btn--finish {
  margin-top: 0; align-self: center;
  height: calc(var(--u) * 54); padding: 0 calc(var(--u) * 34);
  background: #000; color: var(--red); font-size: calc(var(--u) * 16);
}
.btn.btn--finish:hover { background: #1a1a1a; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.field__err.is-ok { color: #7be08f; }
@media (max-width: 860px) {
  .btn.btn--finish { height: 50px; padding: 0 22px; font-size: 14px; }
}

/* ---------- „A szavazás menete” gomb + ablak ---------- */
.intro__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: calc(var(--u) * 20); margin-top: calc(var(--u) * 30); }
.intro__text .intro__btns .btn { margin-top: 0; }
.btn--ghost { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn--ghost:hover { background: #fff1f1; box-shadow: inset 0 0 0 2px var(--red), 0 6px 18px rgba(255, 0, 0, .18); }
.info__box { width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.info__box:focus { outline: none; }
.info__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.info__item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.info__num { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; }
.info__q { font-weight: 700; font-size: 16px; line-height: 1.35; padding-top: 6px; }
.info__a { margin-top: 4px; font-size: 14px; line-height: 1.55; color: #444; }
.info__a + .info__a { margin-top: 8px; }
@media (max-width: 860px) {
  .intro__btns { margin-top: 26px; gap: 12px; flex-direction: column; }
  .intro__btns .btn { width: min(320px, 100%); }
  .info__box { padding: 28px 20px 22px; }
}

/* Szerkeszthető szövegek jelölése: **félkövér**, [link](https://…) */
.intro__text p strong, .card__text strong, .gate__text strong, .info__a strong, .contact__text strong { font-weight: 700; }
.intro__text p a, .card__text a, .gate__text a, .info__a a, .contact__text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.intro__text p a:hover, .card__text a:hover, .gate__text a:hover, .info__a a:hover, .contact__text a:hover { text-decoration-thickness: 2px; }
