/* =========================================================
   EcoCost – Precision Energy design system
   ========================================================= */
:root {
  --bg: #f8f9ff;
  --surface: #ffffff;
  --sc-low: #eff4ff;
  --sc: #e5eeff;
  --sc-high: #dce9ff;
  --sc-highest: #d3e4fe;
  --on: #0b1c30;
  --on-var: #3d4a42;
  --muted: #565e74;
  --faint: #bccac0;
  --line: #e2e8f0;
  --primary: #006948;
  --primary-2: #00855d;
  --primary-hover: #047857;
  --primary-fixed: #85f8c4;
  --mint: #68dba9;
  --on-primary-fixed: #002114;
  --secondary: #565e74;
  --secondary-cont: #dae2fd;
  --on-secondary-cont: #3f465c;
  --tertiary: #8d4b00;
  --tertiary-2: #b15f00;
  --tertiary-fixed: #ffdcc3;
  --amber: #ffb77d;
  --error: #ba1a1a;
  --dark: #213145;
  --dark-2: #2c3e52;
  --on-dark: #eaf1ff;
  --dim: #b9c7dc;

  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm: .5rem;
  --r: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;

  --sh-1: 0 1px 3px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .03);
  --sh-2: 0 8px 24px -4px rgba(5, 150, 105, .12), 0 2px 6px -1px rgba(15, 23, 42, .04);
  --sh-3: 0 20px 40px -12px rgba(15, 23, 42, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--on);
  font: 400 15px/22px var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; letter-spacing: -.015em; }
h1 { font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 22px; line-height: 30px; font-weight: 600; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.h-lg { font-size: 28px; line-height: 36px; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; vertical-align: middle; }
.ic--xs { width: 14px; height: 14px; }
.ic--sm { width: 16px; height: 16px; }
.ic--md { width: 22px; height: 22px; }
.ic--lg { width: 26px; height: 26px; }

/* ---------- text helpers ---------- */
.caps { font: 700 11px/14px var(--f-head); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; }
.t-primary { color: var(--primary); }
.t-secondary { color: var(--secondary); }
.t-tertiary { color: var(--tertiary); }
.t-muted { color: var(--muted); }
.t-faint { color: var(--faint); }
.t-mint { color: var(--primary-fixed); }
.t-amber { color: var(--tertiary-fixed); }
.t-dim { color: var(--dim); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--primary); }
.dot--primary { background: var(--primary); }
.dot--tertiary { background: var(--tertiary-2); }
.dot--mint { background: var(--primary-fixed); }
.dot--amber { background: var(--tertiary-fixed); }
.dot--slate { background: var(--sc-high); }
.dot--red { background: #ff6b5f; }
.dot--pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(248, 249, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
}
.topbar__in { height: 80px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--f-head); letter-spacing: -.02em; }
.brand--sm { font: 500 13px/18px var(--f-head); letter-spacing: .02em; gap: 8px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font: 600 14px/20px var(--f-head); letter-spacing: .02em; color: var(--on-var); transition: background .2s, color .2s; }
.nav a:hover { background: var(--sc-high); color: var(--on); }
.topbar__tools { display: flex; align-items: center; gap: 10px; }

/* ---------- segmented ---------- */
.seg { display: inline-flex; flex: none; flex-wrap: nowrap; padding: 4px; background: var(--sc); border-radius: var(--r); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: var(--r-sm); font: 600 12px/16px var(--f-head); letter-spacing: .04em; color: var(--on-var); transition: all .2s; }
.seg button:hover { color: var(--on); }
.seg button.is-active { background: var(--surface); color: var(--on); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--r);
  padding: 10px 18px; font: 600 14px/20px var(--f-head); letter-spacing: .02em; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--ghost { background: var(--sc-low); }
.btn--ghost:hover { background: var(--sc-high); }
.btn--soft { background: var(--sc-low); box-shadow: var(--sh-1); }
.btn--soft:hover { background: var(--sc); }
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: #0b1c30; transform: translateY(-2px); }
.btn--sm { padding: 8px 14px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { border: 0; background: transparent; padding: 10px; border-radius: var(--r); color: var(--on-var); display: inline-flex; }
.icon-btn:hover { background: var(--sc); color: var(--on); }

/* ---------- page ---------- */
main { padding-top: 80px; }
.page { position: relative; padding-top: 32px; padding-bottom: 48px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; z-index: -1; }
.glow--a { top: -128px; left: 33%; width: 500px; height: 500px; background: rgba(0, 105, 72, .05); }
.glow--b { top: 384px; right: 40px; width: 420px; height: 420px; background: rgba(220, 233, 255, .4); }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.hero__text { max-width: 760px; display: grid; gap: 12px; }
.chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--secondary-cont); color: #5c647a; font: 700 11px/14px var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: 18px; line-height: 28px; color: var(--on-var); }

.hud { background: var(--sc-low); border-radius: var(--r-xl); padding: 10px; box-shadow: var(--sh-1); display: grid; gap: 8px; min-width: 0; }
.hud__row { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.hud__label { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/16px var(--f-head); color: var(--muted); letter-spacing: .04em; }
.hud__spacer { margin-right: auto; }
.hud__mode { flex-wrap: wrap; }
.hud__flag { display: block; font: 700 9.5px/12px var(--f-head); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--primary); margin-top: 2px; }
.hud__flag--market { color: var(--tertiary); }
.seg--lang { align-items: center; }
.seg__ic { color: var(--muted); margin: 0 2px 0 4px; }
.hud__cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hud__cell { background: var(--surface); border-radius: var(--r); padding: 8px 12px; display: grid; gap: 2px; min-width: 0; }
.hud__cell .caps { color: var(--muted); font-size: 10px; }
.hud__cell b { font: 600 17px/22px var(--f-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud__cell b small { font: 500 11px/1 var(--f-head); color: var(--muted); margin-left: 2px; }
.hud__src { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); padding: 0 6px 2px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.layout__main { display: grid; gap: 32px; }
.layout__side { display: grid; gap: 24px; position: sticky; top: 112px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-1); display: grid; gap: 24px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card__title { display: flex; align-items: center; gap: 12px; }
.card__title > div:last-child { display: grid; gap: 2px; }
.tag { padding: 4px 10px; border-radius: var(--r-sm); background: var(--sc); color: var(--on-var); font: 600 12px/16px var(--f-head); letter-spacing: .04em; white-space: nowrap; }
.iconwell { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; flex: none; }
.iconwell--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.iconwell--primary { background: var(--primary-fixed); color: var(--on-primary-fixed); }
.iconwell--secondary { background: var(--secondary-cont); color: var(--on-secondary-cont); }
.iconwell--tertiary { background: var(--tertiary-fixed); color: #2f1500; }
.iconwell--glass { background: rgba(234, 241, 255, .1); }

.field { display: grid; gap: 8px; }
.field__label { font: 600 14px/20px var(--f-head); letter-spacing: .02em; }
.field__label.caps { font-size: 12px; letter-spacing: .04em; }

/* tiles */
.tiles { display: grid; gap: 10px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  border: 2px solid transparent; background: var(--sc-low); color: var(--on-var); border-radius: var(--r);
  padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  font: 600 12px/15px var(--f-head); letter-spacing: .03em; transition: all .2s; min-height: 92px;
}
.tile small { font: 700 10.5px/14px var(--f-head); letter-spacing: .06em; color: var(--muted); }
.tile:hover { background: var(--sc); color: var(--on); }
.tile.is-active { background: var(--primary-2); color: #f5fff7; box-shadow: var(--sh-2); }
.tile.is-active .ic, .tile.is-active small { color: #d9ffee; }
.ptile { border: 2px solid transparent; background: var(--surface); border-radius: var(--r); padding: 10px 12px; text-align: left; display: grid; gap: 2px; transition: all .2s; outline: 1px solid var(--line); outline-offset: -1px; }
.ptile:hover { background: var(--sc-low); }
.ptile.is-active { background: var(--sc-low); outline: 0; border-color: var(--primary); }
.ptile__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font: 700 14px/20px var(--f-head); letter-spacing: .01em; }
.ptile small { font-size: 12.5px; line-height: 17px; color: var(--on-var); }

/* car tabs (több autó) */
.cartabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cartab { display: inline-flex; align-items: stretch; border-radius: var(--r); background: var(--sc-low); outline: 1px solid var(--line); outline-offset: -1px; transition: background .2s; }
.cartab:hover { background: var(--sc); }
.cartab.is-active { background: #f0fdf4; outline: 2px solid var(--primary); outline-offset: -2px; }
.cartab__main { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; text-align: left; color: var(--on-var); }
.cartab.is-active .cartab__main { color: var(--primary); }
.cartab__main span { display: grid; }
.cartab__main b { font: 700 13px/16px var(--f-head); letter-spacing: .02em; color: var(--on); }
.cartab__main small { font: 600 11px/14px var(--f-head); letter-spacing: .03em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cartab__type { font-style: normal; }
.cartab__del { border: 0; background: transparent; padding: 0 10px 0 2px; color: var(--muted); display: inline-flex; align-items: center; }
.cartab__del:hover { color: var(--error); }
.cartab-add { border: 1px dashed var(--faint); background: transparent; border-radius: var(--r); padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/16px var(--f-head); color: var(--primary); transition: all .2s; }
.cartab-add:hover { border-color: var(--primary); background: #f0fdf4; }

/* sliders */
.slider { display: grid; gap: 10px; }
.slider__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slider__head label, .well__title { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--f-head); letter-spacing: .02em; }
.slider__marks { display: flex; justify-content: space-between; gap: 8px; font: 700 10.5px/14px var(--f-head); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.slider__marks span:nth-child(2) { text-align: center; }
.slider__marks span:last-child { text-align: right; }
.numbox { display: inline-flex; align-items: baseline; gap: 6px; background: var(--sc-low); padding: 4px 12px; border-radius: var(--r-sm); border: 1px solid transparent; transition: border .2s, box-shadow .2s; }
.numbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.numbox input { width: 70px; border: 0; background: transparent; text-align: right; font: 600 18px/24px var(--f-head); color: var(--primary); font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.numbox input:focus { outline: none; }
.numbox input::-webkit-outer-spin-button, .numbox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numbox span { font: 600 12px/16px var(--f-head); letter-spacing: .04em; color: var(--secondary); white-space: nowrap; }
.slider[data-key="heat"] .numbox input { color: var(--tertiary); }
.slider[data-key="cons"] .numbox input { color: var(--on); }

.range {
  --fill: 50%; --c: var(--primary); --track: var(--line);
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; margin: 8px 0;
  background: linear-gradient(to right, var(--c) var(--fill), var(--track) var(--fill)); cursor: pointer;
}
.range--tertiary { --c: var(--tertiary-2); }
.range--secondary { --c: var(--secondary); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--c); box-shadow: 0 1px 4px rgba(15, 23, 42, .2); transition: box-shadow .2s; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--c); box-shadow: 0 1px 4px rgba(15, 23, 42, .2); }
.range:focus { outline: none; }
.range:focus-visible::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(5, 150, 105, .18); }
.range--dark { --track: rgba(234, 241, 255, .18); --c: var(--primary-fixed); height: 5px; }
.range--amber { --c: var(--tertiary-fixed); }
.range--light { --c: var(--on-dark); }
.range--dark::-webkit-slider-thumb { width: 18px; height: 18px; border-color: var(--c); }

.well { background: var(--sc-low); padding: 16px; border-radius: var(--r); }
.well .range { --track: var(--sc-high); }
.pill { padding: 2px 8px; border-radius: var(--r-sm); font: 700 11px/14px var(--f-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill--primary { background: var(--primary-fixed); color: var(--primary); }

.tariffs { background: var(--sc-low); border-radius: var(--r); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--on-var); }
.tariffs__inputs { display: flex; flex-wrap: wrap; gap: 16px; }
.tariffs label { display: inline-flex; align-items: center; gap: 6px; }
.tariffs input { width: 74px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: 600 12.5px/16px var(--f-head); }
.tariffs input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.tariffs small { font: 600 11px/1 var(--f-head); color: var(--muted); }
.tariffs__note { flex-basis: 100%; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- summary ---------- */
.card--summary { border-radius: 28px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .05); }
.card--summary .card__head > div:first-child { display: grid; gap: 2px; }
.total { background: var(--sc-low); border-radius: var(--r-xl); padding: 24px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.total__val { display: flex; align-items: baseline; gap: 8px; }
.total__val .num { font: 700 48px/56px var(--f-head); letter-spacing: -.03em; color: var(--primary); }
.total__per { font: 600 18px/24px var(--f-head); color: var(--on-var); }
.total__year { font-size: 13px; color: var(--secondary); }
.total__year b { color: var(--on); font-weight: 600; }
.split { display: grid; gap: 8px; }
.split__legend { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 600 12px/16px var(--f-head); letter-spacing: .03em; }
.split__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.split__legend .dot { width: 12px; height: 12px; }
.bar { height: 14px; background: var(--sc); border-radius: 99px; overflow: hidden; display: flex; }
.bar span { height: 100%; transition: width .35s ease; }
.bar__home { background: var(--primary); }
.bar__mob { background: var(--tertiary-2); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { background: var(--sc-low); border-radius: var(--r); padding: 14px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.mini > div:last-child { display: grid; min-width: 0; }
.mini .caps { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini b { font: 600 18px/24px var(--f-head); }
.mini b small { font: 400 13px/18px var(--f-body); color: var(--secondary); }
.daily { background: var(--sc-low); border-radius: var(--r-xl); padding: 16px; display: flex; align-items: center; gap: 14px; }
.daily > div { display: grid; gap: 2px; margin-right: auto; }
.daily p { font-size: 13px; line-height: 18px; }
.daily b { font: 600 14px/20px var(--f-head); }
.donut { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 5; transition: stroke-dasharray .35s, stroke-dashoffset .35s; }
.donut__bg { stroke: var(--sc); }
.donut__home { stroke: var(--primary); }
.donut__mob { stroke: var(--tertiary-2); }

/* ---------- stress (dark) ---------- */
.card--dark {
  background: linear-gradient(140deg, var(--dark) 0%, var(--dark) 55%, #34495e 100%);
  color: var(--on-dark); border-radius: 28px; box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.card--dark::after { content: ""; position: absolute; right: -32px; bottom: -32px; width: 176px; height: 176px; border-radius: 50%; background: rgba(0, 105, 72, .25); filter: blur(32px); pointer-events: none; }
.card--dark > * { position: relative; z-index: 1; }
.card--dark .card__head > div { display: grid; gap: 6px; justify-items: start; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; background: var(--primary); color: #fff; font: 700 11px/16px var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.card--dark h3 { font-size: 22px; line-height: 30px; }
.card--dark > p { font-size: 13px; line-height: 19px; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset { border: 1px solid transparent; background: rgba(234, 241, 255, .06); color: var(--on-dark); border-radius: var(--r); padding: 10px 12px; text-align: left; display: grid; gap: 2px; transition: background .2s, border-color .2s; }
.preset:hover { background: rgba(234, 241, 255, .14); }
.preset.is-active { background: rgba(234, 241, 255, .16); border-color: rgba(133, 248, 196, .45); }
.preset b { display: flex; align-items: center; gap: 6px; font: 700 12.5px/16px var(--f-head); letter-spacing: .03em; }
.preset small { font: 700 10.5px/14px var(--f-head); letter-spacing: .06em; color: #93a3ba; text-transform: uppercase; }
.stress-sliders { background: rgba(0, 0, 0, .2); border-radius: var(--r-xl); padding: 16px; display: grid; gap: 12px; }
.ss { display: grid; gap: 2px; }
.ss__head { display: flex; justify-content: space-between; gap: 8px; font: 600 12px/16px var(--f-head); letter-spacing: .03em; color: var(--sc-high); }
.ss__head b { font-variant-numeric: tabular-nums; text-align: right; }
.outcome { background: rgba(255, 255, 255, .08); border-radius: var(--r-xl); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; backdrop-filter: blur(12px); }
.outcome > div:first-child { display: grid; gap: 2px; }
.outcome__val { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.outcome__val .num { font: 700 28px/36px var(--f-head); color: var(--primary-fixed); }
.outcome__val small { color: var(--sc-high); font-size: 13px; }
.delta { padding: 2px 8px; border-radius: 6px; font: 700 11px/14px var(--f-head); letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 105, 72, .35); color: var(--primary-fixed); }
.delta.is-up { background: rgba(186, 26, 26, .35); color: #ffdad6; }

/* ---------- tips ---------- */
.tips, .partners { margin-top: 56px; display: grid; gap: 24px; }
.faq { margin-top: 56px; }
.faq__block { display: grid; gap: 24px; }
.faq__block[hidden] { display: none; }
.faq__list { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 0 20px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font: 600 16px/24px var(--f-head); letter-spacing: -.005em; color: var(--on); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font: 500 24px/28px var(--f-head); color: var(--primary); transition: transform .2s; }
.faq__item[open] summary::after { content: '\2212'; }
.faq__item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }
.faq__item p { margin: 0; padding: 0 0 18px; color: var(--on-var); max-width: 80ch; }
.tips__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tips__head > div:first-child { display: grid; gap: 4px; }
.tips__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tips__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tip { background: var(--surface); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 16px; transition: box-shadow .2s, transform .2s; }
.tip:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.tip__body { display: grid; gap: 6px; }
.tip h4 { font-size: 18px; line-height: 24px; }
.tip p { color: var(--on-var); }
.tip__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--sc-low); padding: 12px 16px; border-radius: var(--r); }
.tip__foot span { font: 600 12px/16px var(--f-head); letter-spacing: .04em; color: var(--secondary); }
.tip__foot b { font: 700 18px/24px var(--f-head); color: var(--primary); white-space: nowrap; }
.tip__partner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--faint); border-radius: var(--r); text-decoration: none; font-size: 13px; line-height: 17px; transition: border-color .2s, background .2s; }
.tip__partner:hover { border-color: var(--primary); background: #f0fdf4; }
.tip__partner .caps { color: var(--muted); font-size: 9.5px; }
.tip__partner > div { display: grid; gap: 1px; margin-right: auto; }
.tip__partner img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.tip__pwrap { display: grid; gap: 8px; }
.tip__lead { border: 0; background: var(--primary); color: #fff; border-radius: var(--r); padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 13px/18px var(--f-head); letter-spacing: .02em; transition: background .2s; }
.tip__lead:hover { background: var(--primary-hover); }
.partner__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.partner__cta { text-decoration: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input textarea { padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font: 400 15px var(--f-body); resize: vertical; }
.input textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
#lead-dialog { width: min(560px, calc(100vw - 32px)); }
.tips__more { justify-self: center; }
.tip--empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* ---------- partners ---------- */
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.partner { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); display: grid; gap: 8px; align-content: start; text-decoration: none; transition: box-shadow .2s, transform .2s; position: relative; }
.partner:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.partner__top { display: flex; align-items: center; gap: 10px; }
.partner__top img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.partner h4 { font-size: 16px; line-height: 22px; }
.partner p { font-size: 13.5px; line-height: 19px; color: var(--on-var); }
.partner__cta { font: 600 13px/18px var(--f-head); color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.partner__ad { position: absolute; top: 12px; right: 12px; font: 700 9.5px/12px var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sc-low); padding: 2px 6px; border-radius: 4px; }
.advertise { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-xl); background: linear-gradient(120deg, #f0fdf4, var(--sc-low)); outline: 1px solid #cfeedd; outline-offset: -1px; }
.advertise__icon { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.advertise__text { display: grid; gap: 4px; margin-right: auto; }
.advertise__text h4 { font-size: 18px; line-height: 24px; }
.advertise__text p { color: var(--on-var); max-width: 760px; }

/* ---------- footer ---------- */
.footer { background: var(--sc-low); margin-top: 64px; padding: 28px 0 24px; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px/16px var(--f-head); letter-spacing: .03em; color: var(--on); }
.footer__src { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.footer__legal { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; font: 600 12px/16px var(--f-head); letter-spacing: .03em; }
.footer__legal a { color: var(--primary); text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }
.footer__legal span { color: var(--faint); }
.legal-link { font-size: 12.5px; color: var(--primary); justify-self: start; }
.footer__disc { margin-top: 14px; font-size: 12px; line-height: 17px; color: var(--muted); }

/* ---------- dock (mobile) ---------- */
.dock { display: none; }

/* ---------- modal & toast ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-xl); box-shadow: var(--sh-3); width: min(460px, calc(100vw - 32px)); background: rgba(255, 255, 255, .96); }
.modal::backdrop { background: rgba(11, 28, 48, .45); backdrop-filter: blur(4px); }
.modal__box { padding: 24px; display: grid; gap: 14px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; }
.input { display: grid; gap: 6px; font: 600 13px/18px var(--f-head); }
.input input { height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font: 400 15px var(--f-body); }
.input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--on-var); }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal__msg { font-size: 13px; min-height: 18px; }
.modal__msg.is-err { color: var(--error); }
.modal__msg.is-ok { color: var(--primary); }
.modal__box[hidden], .modal form[hidden], .tips__head[hidden], .partners__grid[hidden] { display: none; }
.lead-done { text-align: center; justify-items: center; padding: 32px 24px; }
.lead-done h3 { margin: 0; font-size: 22px; }
.lead-done p { margin: 0; }
.lead-done__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.lead-done__ic .ic { width: 34px; height: 34px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dark); color: var(--on-dark); padding: 10px 18px; border-radius: var(--r); font: 600 13px/18px var(--f-head); opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; box-shadow: var(--sh-3); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.report { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1279px) {
  .wrap { padding: 0 32px; }
  .nav { display: none; }
  .topbar__tools { margin-left: auto; }
  .hero { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .layout__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .tips__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  body { padding-bottom: 76px; }
  .topbar__in { height: 64px; gap: 10px; }
  main { padding-top: 64px; }
  html { scroll-padding-top: 76px; }
  .hide-sm { display: none !important; }
  .brand { font-size: 19px; }
  /* mobil fejléc: ikon-gombok, minden kifér */
  .topbar__tools { gap: 6px; }
  .btn--tb { padding: 9px; }
  .btn--tb .btn__label { display: none; }
  .seg--sm button { padding: 4px 8px; }
  h1 { font-size: 26px; line-height: 34px; }
  .lead { font-size: 15.5px; line-height: 23px; }
  .page { padding-top: 20px; }
  .hud__cells { grid-template-columns: 1fr 1fr; }
  .card { padding: 20px 16px; gap: 20px; border-radius: var(--r-lg); }
  .card__head { flex-wrap: wrap; }
  .tag { display: none; }
  .tiles--4 { grid-template-columns: 1fr 1fr; }
  .tiles--3 { grid-template-columns: 1fr; }
  .cartabs { display: grid; grid-template-columns: 1fr 1fr; }
  .cartab__main { flex: 1; padding: 8px 10px; min-width: 0; }
  .cartab__main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cartab__type { display: none; }
  .cartab-add { justify-content: center; }
  .slider__head { flex-wrap: wrap; }
  .slider__marks { font-size: 9.5px; letter-spacing: .03em; }
  .layout, .layout__main { gap: 20px; }
  .layout__side { grid-template-columns: 1fr; gap: 20px; }
  .total__val .num { font-size: 40px; line-height: 48px; }
  .bento { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tips__grid { grid-template-columns: 1fr; }
  .tips, .partners { margin-top: 40px; }
  .h-lg { font-size: 22px; line-height: 30px; }
  .advertise { flex-direction: column; align-items: flex-start; }
  .footer__src { margin-left: 0; }
  .dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #cbd5e1;
  }
  .dock > div { display: grid; }
  .dock b { font: 700 22px/28px var(--f-head); color: var(--primary); }
  .toast { bottom: 90px; }
}
@media (max-width: 480px) {
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .presets { grid-template-columns: 1fr; }
}

/* =========================================================
   Print – PDF report
   ========================================================= */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; padding: 0; font-size: 11pt; line-height: 1.45; }
  body > *:not(.report) { display: none !important; }
  .report { display: block !important; color: #0b1c30; }
  .rp-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 14px; }
  .rp-head h1 { font-size: 20pt; line-height: 1.2; }
  .rp-head img { width: 28px; height: 28px; vertical-align: middle; margin-right: 6px; }
  .rp-meta { font-size: 9pt; color: #565e74; text-align: right; }
  .rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
  .rp-kpi { border: 1px solid #dce9ff; border-radius: 8px; padding: 8px 10px; }
  .rp-kpi span { display: block; font: 700 7.5pt var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: #565e74; }
  .rp-kpi b { font: 700 15pt var(--f-head); color: var(--primary); }
  .report h2 { font-size: 12.5pt; margin: 14px 0 6px; color: var(--primary); }
  .report table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .report td, .report th { padding: 4px 6px; border-bottom: 1px solid #e5eeff; text-align: left; }
  .report td:last-child, .report th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
  .report th { font: 700 8pt var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: #565e74; }
  .rp-tip { break-inside: avoid; border-left: 3px solid var(--primary); padding: 4px 10px; margin: 6px 0; }
  .rp-tip b { font-family: var(--f-head); }
  .rp-foot { margin-top: 18px; font-size: 8.5pt; color: #565e74; border-top: 1px solid #dce9ff; padding-top: 6px; }
}

@media (max-width: 340px) {
  .hide-xxs { display: none !important; }
  .seg__ic { display: none; }
}
