/* =========================================================================
   FOSZ — Futárok Országos Szövetsége
   Kézzel írt stíluslap. Nincs build lépés.
   Paletta: ink (közel fekete) + hi-vis (láthatósági sárga) + papír.
   ========================================================================= */

:root {
  --ink:        #0E1114;
  --ink-2:      #171C22;
  --ink-3:      #232A32;
  --paper:      #FFFFFF;
  --sand:       #F5F5F1;
  --sand-2:     #EDEDE7;
  --muted:      #5C6570;
  --muted-2:    #8A929B;
  --line:       rgba(14,17,20,.12);
  --line-soft:  rgba(14,17,20,.07);
  --line-dark:  rgba(255,255,255,.14);

  --hv:         #D9F32B;   /* láthatósági sárga — mindig ink szöveggel */
  --hv-dim:     #C2DA1E;
  --hv-glow:    rgba(217,243,43,.30);
  --signal:     #FF4D19;   /* sürgős / figyelem */
  --ok:         #178B4E;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 1px 2px rgba(14,17,20,.05), 0 8px 24px -12px rgba(14,17,20,.18);
  --shadow-lg: 0 2px 4px rgba(14,17,20,.06), 0 28px 60px -28px rgba(14,17,20,.34);

  --wrap: 1180px;
  --nav-h: 72px;

  --f-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- alap ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.22; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--hv); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--hv);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }

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

/* ---------- hasznos apróságok ---------- */

.eyebrow {
  font-family: var(--f-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  background: var(--hv);
  border-radius: 2px;
  flex: none;
}
.eyebrow.on-dark { color: rgba(255,255,255,.6); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 62ch; }
.on-dark .lead, .lead.on-dark { color: rgba(255,255,255,.72); }

/* Kiemelő „filctoll” — tömör láthatósági blokk, mindig ink szöveggel. */
.mark {
  background: var(--hv);
  color: var(--ink);
  padding: 0 .14em .04em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Figyelmeztető sáv — láthatósági szalag mintázat */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--hv) 0 14px,
    var(--ink) 14px 28px
  );
}
.hazard-thin { height: 5px; }

/* ---------- gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: -.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-hv { background: var(--hv); color: var(--ink); }
.btn-hv:hover { background: #E4FF3D; box-shadow: 0 10px 30px -10px var(--hv-glow); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }

.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-line-light { border-color: var(--line-dark); color: #fff; background: transparent; }
.btn-line-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.03rem; }
.btn-block { width: 100%; }

.link-arrow {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--hv);
  padding-bottom: 2px;
  transition: gap .18s ease;
}
.link-arrow:hover { gap: 13px; }

/* ---------- fejléc ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: -.03em;
}
.logo-sub {
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--sand); }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* mobil menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[data-open="1"] { display: flex; }
.mm-top {
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line-soft);
}
.mm-close {
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}
.mm-body { padding: 26px 22px 40px; }
.mm-body a.mm-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.025em;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mm-body a.mm-link i { color: var(--muted-2); font-size: 1rem; width: 22px; }
.mm-actions { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- mobil alsó sáv (app-szerű) ---------- */

.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--ink);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--hv);
}
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 2px;
  color: rgba(255,255,255,.62);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 12px;
}
.tabbar a i { font-size: 1.12rem; }
.tabbar a.active { color: var(--hv); }

/* ---------- villanó üzenet ---------- */

.flash {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.flash-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  font-size: .95rem;
}
.flash i { color: var(--hv); }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  right: -180px; top: -280px;
  background: radial-gradient(circle, var(--hv-glow) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner { padding: clamp(58px, 9vw, 108px) 0 clamp(46px, 6vw, 76px); position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 26px; }
.hero .lead { color: rgba(255,255,255,.72); font-size: clamp(1.06rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(44px, 6vw, 72px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero-stat { background: var(--ink); padding: 22px 20px; }
.hero-stat b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--hv);
}
.hero-stat span { display: block; margin-top: 7px; font-size: .8rem; color: rgba(255,255,255,.6); }

/* ---------- szekciók ---------- */

section { position: relative; }
.sec { padding: clamp(58px, 8vw, 104px) 0; }
.sec-sand { background: var(--sand); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-ink h2, .sec-ink h3 { color: #fff; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: 6px; }
.sec-head .lead { margin-top: 6px; }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- kártya ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover, .card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(14,17,20,.2); }
.card-flat { box-shadow: none; }

/* ---------- munkakártya ---------- */

.job-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(14,17,20,.24); }
.job-card.is-featured { border-color: var(--ink); border-width: 1.5px; }
.job-card.is-featured::before {
  content: 'KIEMELT';
  position: absolute;
  top: -1px; right: 22px;
  background: var(--hv);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 5px 11px;
  border-radius: 0 0 8px 8px;
}
.job-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.job-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  background: var(--sand);
  display: grid; place-items: center;
  font-size: 1.05rem;
  color: var(--ink);
}
.job-card:hover .job-icon { background: var(--hv); }
.job-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.14rem; line-height: 1.25; letter-spacing: -.02em; }
.job-company { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }
.job-summary { font-size: .93rem; color: var(--muted); margin: 0 0 16px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--muted);
  white-space: nowrap;
}
.tag i { font-size: .72rem; opacity: .75; }
.tag-ink { background: var(--ink); color: #fff; }
.tag-hv { background: var(--hv); color: var(--ink); font-weight: 600; }
.tag-urgent { background: var(--signal); color: #fff; font-weight: 600; }
.tag-line { background: transparent; border: 1px solid var(--line); }

.job-pay {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.job-pay b { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -.02em; }
.job-pay .none { color: var(--muted-2); font-weight: 500; font-size: .92rem; font-family: var(--f-text); }
.job-pay span { font-size: .8rem; color: var(--muted-2); }

/* ---------- szűrő ---------- */

.filters {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 26px;
}
.filter-row { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 10px; }
.filter-row-2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

.field {
  width: 100%;
  font-family: var(--f-text);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(217,243,43,.35); }
.field::placeholder { color: var(--muted-2); }
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6570' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.field { min-height: 130px; resize: vertical; line-height: 1.6; }

.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: .9rem; }
.search-wrap .field { padding-left: 40px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-size: .74rem; opacity: .6; }

/* ---------- űrlap ---------- */

.form-grid { display: grid; gap: 16px; }
.form-2 { grid-template-columns: 1fr 1fr; }
label.lbl {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .84rem;
  margin-bottom: 7px;
  letter-spacing: -.01em;
}
.hint { font-size: .82rem; color: var(--muted-2); margin-top: 6px; }
.err { font-size: .84rem; color: var(--signal); margin-top: 6px; font-weight: 500; }
.field.has-err { border-color: var(--signal); }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; }

.alert {
  border-radius: var(--r);
  padding: 15px 18px;
  font-size: .93rem;
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 22px;
}
.alert i { margin-top: 3px; }
.alert-ok { background: rgba(23,139,78,.09); color: #0F5C33; }
.alert-ok i { color: var(--ok); }
.alert-err { background: rgba(255,77,25,.09); color: #A82C08; }
.alert-info { background: var(--sand); color: var(--muted); }

/* ---------- avatar ---------- */

.av {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .84rem;
  color: var(--ink);
  letter-spacing: -.02em;
  background: var(--sand-2);
}
.av-sm { width: 32px; height: 32px; font-size: .72rem; }
.av-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.av-h0  { background: #D9F32B; } .av-h1  { background: #BEE8F5; }
.av-h2  { background: #FFD9C2; } .av-h3  { background: #D6E5C8; }
.av-h4  { background: #E7D4F5; } .av-h5  { background: #FFE9A8; }
.av-h6  { background: #C9E8DC; } .av-h7  { background: #F5C9D5; }
.av-h8  { background: #CEDAF7; } .av-h9  { background: #EADFC8; }
.av-h10 { background: #C8F0E4; } .av-h11 { background: #F2DCC0; }
.av-staff { background: var(--ink); color: var(--hv); }

/* ---------- fórum ---------- */

.cat-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(14,17,20,.22); }
.cat-icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 14px;
  background: var(--ink);
  color: var(--hv);
  display: grid; place-items: center;
  font-size: 1.05rem;
}
.cat-card h3 { margin-bottom: 5px; font-size: 1.1rem; }
.cat-card p { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.cat-nums { display: flex; gap: 16px; font-size: .8rem; color: var(--muted-2); }

.thread-list { border-top: 1px solid var(--line-soft); }
.thread-row {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
}
.thread-row:hover { background: var(--sand); }
.thread-main { min-width: 0; flex: 1; }
.thread-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -.02em;
  line-height: 1.3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.thread-sub { font-size: .82rem; color: var(--muted-2); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px 14px; }
.thread-nums { display: flex; gap: 22px; flex: none; text-align: center; }
.thread-nums div b { display: block; font-family: var(--f-display); font-size: 1rem; line-height: 1; }
.thread-nums div span { font-size: .7rem; color: var(--muted-2); }

.pin { color: var(--ink); background: var(--hv); font-size: .6rem; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 5px; font-family: var(--f-display); }
.lock { color: var(--muted-2); font-size: .8rem; }

.post {
  display: flex; gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.post-body { min-width: 0; flex: 1; }
.post-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.post-author { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
.post-role { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; background: var(--ink); color: var(--hv); padding: 3px 8px; border-radius: 5px; }
.post-time { font-size: .8rem; color: var(--muted-2); }
.post-op { background: var(--sand); border-radius: var(--r-lg); padding: 26px; border-bottom: 0; }

.rich { font-size: 1.02rem; line-height: 1.72; }
.rich > *:first-child { margin-top: 0; }
.rich p { margin: 0 0 1.05em; }
.rich h3 { font-size: 1.3rem; margin: 1.9em 0 .55em; }
.rich h4 { margin: 1.6em 0 .4em; }
.rich ul, .rich ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.rich li { margin-bottom: .5em; }
.rich li::marker { color: var(--muted-2); }
.rich a { border-bottom: 2px solid var(--hv); font-weight: 500; }
.rich a:hover { background: var(--hv); }
.rich strong { font-weight: 650; }
.rich blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--hv); color: var(--muted); }
.rich .callout {
  background: var(--sand);
  border-radius: var(--r);
  padding: 18px 20px;
  font-size: .95rem;
  margin: 0 0 1.6em;
  border-left: 4px solid var(--hv);
}
.rich em { color: var(--muted); }

/* ---------- kalkulátor ---------- */

.calc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.calc-tab {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 9px;
}
.calc-tab:hover { border-color: var(--ink); }
.calc-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-tab.active i { color: var(--hv); }

.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* rádiógombok „chip” formában */
.rchips { display: flex; gap: 8px; flex-wrap: wrap; }
.rchip { position: relative; cursor: pointer; }
.rchip input { position: absolute; opacity: 0; width: 0; height: 0; }
.rchip span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .89rem; font-weight: 500;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  transition: all .15s ease;
}
.rchip:hover span { border-color: var(--ink); }
.rchip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rchip input:focus-visible + span { outline: 3px solid var(--hv); outline-offset: 2px; }

.calc-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }

.calc-inputs {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.calc-group + .calc-group { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.calc-group h4 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.inp-unit { position: relative; }
.inp-unit .field { padding-right: 54px; font-variant-numeric: tabular-nums; }
.inp-unit .u {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: .8rem; color: var(--muted-2); pointer-events: none; font-weight: 500;
}

.calc-out {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 92px;
  overflow: hidden;
}
.calc-out-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.calc-big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--hv);
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.calc-big-unit { font-size: .95rem; color: rgba(255,255,255,.6); }

.verdict {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px;
  margin-top: 20px;
}
.verdict-good { background: var(--hv); color: var(--ink); }
.verdict-mid  { background: #FFC53D; color: var(--ink); }
.verdict-bad  { background: var(--signal); color: #fff; }

.calc-rows { margin-top: 24px; border-top: 1px solid var(--line-dark); }
.calc-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .9rem;
}
.calc-row span { color: rgba(255,255,255,.6); }
.calc-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-row.neg b { color: #FF9E7A; }
.calc-row.sum { border-bottom: 0; padding-top: 15px; margin-top: 6px; border-top: 1px solid var(--line-dark); font-size: 1rem; }
.calc-row.sum span { color: #fff; font-weight: 600; }

.calc-note { font-size: .82rem; color: var(--muted); margin-top: 18px; }

/* Mobilon tapadó eredménysáv: gépelés közben is látszik a fő szám. */
.calc-sticky {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--hv);
  border-radius: 999px;
  padding: 11px 20px;
  align-items: baseline;
  gap: 9px;
  box-shadow: var(--shadow-lg);
}
.calc-sticky .cs-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.calc-sticky b {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -.03em;
  color: var(--hv);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.calc-sticky .cs-unit { font-size: .76rem; color: rgba(255,255,255,.55); }

.bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 18px; display: flex; }
.bar i { display: block; height: 100%; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.6); }
.bar-legend b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: rgba(255,255,255,.6); }
.bar-legend b::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: currentColor; }
.dot-1::before { background: var(--hv) !important; }
.dot-2::before { background: #FF9E7A !important; }
.dot-3::before { background: #7FA6FF !important; }

/* ---------- bérradar ---------- */

.radar-hero {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  position: relative;
}
.radar-hero::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; top: -200px;
  background: radial-gradient(circle, var(--hv-glow) 0%, transparent 68%);
  pointer-events: none;
}
.radar-hero > * { position: relative; z-index: 1; }
.radar-big {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--hv);
  font-variant-numeric: tabular-nums;
  margin: 12px 0 6px;
}
.radar-sub { font-size: .95rem; color: rgba(255,255,255,.6); }

/* eloszlás */
.hist { display: grid; gap: 7px; margin-top: 8px; }
.hist-row { display: grid; grid-template-columns: 116px 1fr 44px; gap: 12px; align-items: center; font-size: .84rem; }
.hist-label { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.hist-track { display: block; background: var(--sand-2); border-radius: 5px; height: 20px; overflow: hidden; }
.hist-fill { display: block; height: 100%; background: var(--hv); border-radius: 5px; }
.hist-n { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sec-ink .hist-track { background: rgba(255,255,255,.1); }
.sec-ink .hist-label, .sec-ink .hist-n { color: rgba(255,255,255,.6); }

/* bontás-táblázat */
.radar-list { border-top: 1px solid var(--line); }
.radar-row {
  display: grid;
  grid-template-columns: 1.4fr 74px 1.6fr 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.radar-name { font-family: var(--f-display); font-weight: 700; font-size: .98rem; letter-spacing: -.015em; }
.radar-name small { display: block; font-family: var(--f-text); font-weight: 400; font-size: .8rem; color: var(--muted-2); letter-spacing: 0; margin-top: 2px; }
.radar-n { font-size: .78rem; color: var(--muted-2); text-align: center; }
.radar-med { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; }
.radar-med span { display: block; font-family: var(--f-text); font-weight: 400; font-size: .74rem; color: var(--muted-2); }

.rng { position: relative; height: 10px; background: var(--sand-2); border-radius: 5px; }
.rng i { position: absolute; top: 0; height: 100%; background: var(--hv); border-radius: 5px; }
.rng b { position: absolute; top: -3px; width: 3px; height: 16px; background: var(--ink); border-radius: 2px; }
.rng-legend { font-size: .74rem; color: var(--muted-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

.radar-thin {
  grid-column: 2 / -1;
  font-size: .84rem;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 10px;
}
.radar-thin .dots { flex: 1; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--sand-2) 0 6px, transparent 6px 12px); }

/* ---------- lépések / értékek ---------- */

.steps { counter-reset: s; display: grid; gap: 2px; }
.step {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--muted-2);
  flex: none;
  width: 40px;
  padding-top: 4px;
  letter-spacing: .1em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

.value-item { padding: 26px 0; border-top: 1px solid var(--line-dark); }
.sec-ink .value-item p { color: rgba(255,255,255,.65); }
.value-item i { color: var(--hv); font-size: 1.2rem; margin-bottom: 14px; display: block; }

/* ---------- CTA sáv ---------- */

.cta-band {
  background: var(--hv);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 58px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; max-width: 20ch; }
.cta-band p { color: rgba(14,17,20,.7); margin: 0; max-width: 46ch; }

/* ---------- lábléc ---------- */

.footer { background: var(--ink); color: #fff; padding: clamp(52px, 6vw, 78px) 0 0; }
.footer a { color: rgba(255,255,255,.68); font-size: .93rem; }
.footer a:hover { color: var(--hv); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .logo-name { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,.45); }
.footer-about { font-size: .93rem; color: rgba(255,255,255,.6); max-width: 34ch; margin-top: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { font-size: .84rem; }

/* ---------- süti sáv ---------- */

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  max-width: 620px;
}
.cookie[hidden] { display: none; }
.cookie p { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0; flex: 1; min-width: 240px; }
.cookie a { text-decoration: underline; }

/* ---------- oldalfej (aloldalak) ---------- */

.page-head { background: var(--ink); color: #fff; padding: clamp(46px, 6vw, 80px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { color: #fff; margin-bottom: 16px; }
.page-head .lead { color: rgba(255,255,255,.7); }
.crumbs { font-size: .84rem; color: rgba(255,255,255,.5); margin-bottom: 20px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--hv); }
.crumbs i { font-size: .6rem; opacity: .5; }

/* ---------- lapozó ---------- */

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 42px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
}
.pager a:hover { border-color: var(--ink); }
.pager .cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { color: var(--muted-2); border-color: var(--line-soft); }

/* ---------- üres állapot ---------- */

.empty { text-align: center; padding: 64px 22px; border: 1.5px dashed var(--line); border-radius: var(--r-xl); }
.empty i { font-size: 2rem; color: var(--muted-2); margin-bottom: 18px; display: block; }
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }

/* ---------- görgetésre beúszás ---------- */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================================
   RESZPONZÍV
   ========================================================================= */

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .calc-split { grid-template-columns: 1fr; }
  .calc-out { position: static; }
}

@media (max-width: 900px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: 74px; }
  .tabbar { display: block; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .calc-fields { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .sec { padding: 54px 0; }
  .cta-band { padding: 30px 24px; }
  .thread-nums { display: none; }
  .radar-row { grid-template-columns: 1fr 82px; row-gap: 10px; }
  .radar-row .rng-wrap { grid-column: 1 / -1; }
  .radar-med { text-align: left; grid-row: 1; grid-column: 2; }
  .radar-n { display: none; }
  .hist-row { grid-template-columns: 96px 1fr 36px; gap: 9px; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .card, .job-card, .cat-card, .calc-inputs, .calc-out { padding: 20px; }
  .post-op { padding: 20px; }
  /* A süti-sáv a tapadó eredménysáv FÖLÉ kerül, hogy ne takarja el. */
  .cookie { left: 10px; right: 10px; bottom: 152px; padding: 17px 18px; }
  .calc-sticky { display: flex; }
  .step { gap: 14px; }
  .step-n { width: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .logo-sub { display: none; }
  .tabbar a { font-size: .58rem; }
}

/* nyomtatás */
@media print {
  .nav, .tabbar, .cookie, .footer, .hazard, .mobile-menu { display: none !important; }
  body { padding: 0; }
}
