:root {
  --orange: #F08A24;
  --orange-dark: #D9711A;
  --orange-soft: #FDF2E5;
  --navy: #16294B;
  --navy-light: #20396A;
  --ink: #232B39;
  --grey: #55565A;
  --grey-light: #747881;
  --line: #EAE6E1;
  --paper: #FFFFFF;
  --radius: 22px;
  --shadow: 0 20px 54px rgba(22, 41, 75, .12);
  --shadow-sm: 0 10px 26px rgba(22, 41, 75, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--grey);
  background: #FBFAF8;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .font-head {
  color: var(--navy);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.13;
  letter-spacing: -.02em;
}
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(240, 138, 36, .28); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 14px 30px rgba(240, 138, 36, .36); }
.btn-light { color: var(--navy); background: #fff; }
.btn-light:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.btn-outline { color: var(--navy); background: transparent; border-color: rgba(22, 41, 75, .22); }
.btn-outline:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.eyebrow {
  color: var(--orange);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 230, 225, .9);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
}
.nav {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
.brand { display: flex; align-items: center; justify-content: center; gap: .75rem; min-width: 0; flex-wrap: nowrap; }
.brand img { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 12px; object-fit: contain; }
.brand-copy { min-width: 0; white-space: nowrap; }
.brand-copy b { display: block; color: var(--navy); font-family: "Montserrat", sans-serif; font-size: .98rem; line-height: 1.15; }
.brand-copy span { display: block; margin-top: .13rem; color: var(--orange); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-actions { position: absolute; right: 0; display: flex; align-items: center; gap: .75rem; }
.nav-link { color: var(--navy); font-family: "Montserrat", sans-serif; font-size: .86rem; font-weight: 700; }
.nav-link:hover { color: var(--orange); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  color: #D8E0EC;
  background:
    radial-gradient(circle at 82% 10%, rgba(240, 138, 36, .28), transparent 31%),
    linear-gradient(135deg, #122442 0%, #16294B 58%, #20396A 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 460px; height: 460px; right: -230px; bottom: -300px; border: 76px solid rgba(255, 255, 255, .045); }
.hero::after { width: 180px; height: 180px; left: -90px; top: 42%; background: rgba(240, 138, 36, .08); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero .eyebrow { color: #FFAA52; }
.hero h1 { max-width: 780px; margin: .9rem 0 1.2rem; color: #fff; font-size: clamp(2.45rem, 5.5vw, 4.85rem); font-weight: 900; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { max-width: 650px; color: #BFC9D9; font-size: clamp(1rem, 1.8vw, 1.17rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-panel {
  position: relative;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 26px 65px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}
.hero-panel::before { content: ""; position: absolute; inset: -7px 18px auto; height: 7px; border-radius: 99px 99px 0 0; background: var(--orange); }
.jobs-count { display: flex; align-items: center; gap: 1.2rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .13); }
.jobs-count strong { color: var(--orange); font-family: "Montserrat", sans-serif; font-size: clamp(3.4rem, 7vw, 5.2rem); font-weight: 900; line-height: .9; }
.jobs-count span { color: #fff; font-family: "Montserrat", sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.hero-points { display: grid; gap: .8rem; margin-top: 1.25rem; }
.hero-point { display: flex; align-items: center; gap: .75rem; color: #E7EBF2; font-size: .92rem; font-weight: 600; }
.tick { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 7px; color: #37A430; background: #fff; box-shadow: 0 5px 13px rgba(0, 0, 0, .2); }
.tick svg {
width: 15px;
height: 15px;
color: #37A430;
}

/* Jobs */
.jobs { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-copy { max-width: 670px; }
.section-head h2 { margin: .55rem 0 .8rem; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 850; }
.section-head p:not(.eyebrow) { color: var(--grey-light); font-size: 1.02rem; }
.counter { flex: 0 0 auto; display: flex; align-items: center; gap: .7rem; padding: .85rem 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.counter strong { flex: 0 0 auto; color: var(--orange); font-family: "Montserrat", sans-serif; font-size: 2.4rem; font-weight: 900; line-height: .95; }
.counter span { display: block; color: var(--navy); font-size: .8rem; font-weight: 700; line-height: 1.3; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter {
  min-height: 42px;
  padding: .62rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.filter:hover, .filter.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.filter:focus-visible, .btn:focus-visible, .poster-button:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(240, 138, 36, .45); outline-offset: 3px; }
.job-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; align-items: start; }
.job-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, opacity .24s ease;
}
.job-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.job-card[hidden] { display: none; }
.poster-button { position: relative; width: 100%; height: 460px; display: block; overflow: hidden; border: 0; background: #E8E7E3; cursor: zoom-in; }
.poster-button::after { content: "Nagyítás"; position: absolute; right: .8rem; bottom: .8rem; padding: .42rem .72rem; border-radius: 999px; color: #fff; background: rgba(22, 41, 75, .88); font-family: "Montserrat", sans-serif; font-size: .68rem; font-weight: 700; opacity: 0; transform: translateY(5px); transition: .22s ease; }
.poster-button:hover::after, .poster-button:focus-visible::after { opacity: 1; transform: none; }
.poster-button img { width: 100%; height: 100%; object-fit: contain; background: linear-gradient(145deg, #F1EFEA, #E3E6EC); transition: transform .45s ease; }
.poster-button:hover img { transform: scale(1.018); }
.card-body { padding: 1.25rem 1.25rem 1.35rem; }
.card-body h3 { min-height: 2.55em; font-size: 1.16rem; font-weight: 800; }
.salary { margin-top: .5rem; color: var(--orange-dark); font-family: "Montserrat", sans-serif; font-size: .9rem; font-weight: 800; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .55rem; margin-top: 1.05rem; }
.card-actions .btn { min-height: 44px; padding: .7rem .9rem; font-size: .77rem; }
.btn-details { color: var(--navy); background: #fff; border-color: rgba(22, 41, 75, .28); }
.btn-details:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn-details[aria-disabled="true"] { cursor: default; }
.card-actions .btn-outline { width: 44px; padding-inline: 0; border-radius: 50%; }
.card-actions svg { width: 18px; height: 18px; }

/* Application */
.apply { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.apply-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  color: #D5DDEA;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.apply-box::after { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; bottom: -190px; border: 52px solid rgba(240, 138, 36, .2); border-radius: 50%; }
.apply-box > * { position: relative; z-index: 1; }
.apply-box h2 { margin: .55rem 0 .85rem; color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 850; }
.apply-box p:not(.eyebrow) { max-width: 620px; color: #B8C3D4; }
.apply-note { justify-self: end; max-width: 310px; padding: 1.2rem 1.35rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .07); font-family: "Montserrat", sans-serif; font-size: .92rem; font-weight: 700; line-height: 1.5; text-align: left; }
.apply-note span { display: block; margin-top: .3rem; color: #9FAEC3; font-family: "Open Sans", sans-serif; font-size: .78rem; font-weight: 600; }

/* Footer */
footer { padding: 2.2rem 0; color: #8F9BB0; background: #0F1D34; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: .8rem; }
.footer-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; }
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-links a:hover { color: var(--orange); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 1.2rem; background: rgba(8, 15, 28, .92); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-inner { position: relative; max-width: min(92vw, 920px); max-height: 92vh; }
.modal img { width: auto; max-width: 100%; max-height: 90vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal img.is-loading { filter: blur(7px); transform: scale(1.01); }
.modal-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  justify-items: center;
  gap: .85rem;
  border-radius: 14px;
  background: rgba(10, 18, 32, .55);
  pointer-events: none;
}
.modal-inner.is-loading .modal-loader { display: grid; }
.modal-inner.is-loading { min-width: 220px; min-height: 220px; }
.modal-loader-text {
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, .22);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spinner-turn .8s linear infinite;
}
@keyframes spinner-turn { to { transform: rotate(360deg); } }
.modal-close { position: absolute; top: -15px; right: -15px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: var(--navy); cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.modal-close:hover { background: var(--orange); }
.modal-close svg { width: 20px; height: 20px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .apply-box { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-button { height: 520px; }
  .apply-note { justify-self: start; }
}
@media (max-width: 680px) {
  .nav { justify-content: center; gap: .75rem; }
  .brand { gap: .55rem; }
  .brand-copy { display: block; text-align: center; }
  .brand-copy b { font-size: clamp(.68rem, 3.9vw, .9rem); }
  .brand-copy span { font-size: clamp(.45rem, 2.35vw, .58rem); letter-spacing: .06em; }
  .brand img { width: clamp(34px, 11vw, 44px); height: clamp(34px, 11vw, 44px); }
  .nav-link { display: none; }
  .nav-actions { position: static; margin-left: auto; }
  .nav-actions .btn { min-height: 42px; padding: .68rem 1rem; font-size: .76rem; }
  .hero { padding-top: 3.8rem; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .hero-cta .btn { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .counter { padding: .65rem .9rem; }
  .job-grid { grid-template-columns: 1fr; }
  .poster-button { height: min(128vw, 560px); }
  .card-body h3 { min-height: 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
  .filter { flex: 0 0 auto; }
  .apply-note { width: 100%; max-width: none; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .modal-close { top: -10px; right: -10px; }
}
@media (max-width: 380px) {
  .card-actions { gap: .4rem; }
  .card-actions .btn { padding-inline: .55rem; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .spinner { animation: spinner-pulse 1.4s ease-in-out infinite !important; }
  @keyframes spinner-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}
