:root {
  --navy: #0b1d33;
  --navy-2: #12304f;
  --ink: #0f1a26;
  --muted: #5d6b7b;
  --line: #dfe5ec;
  --bg: #f4f6f8;
  --card: #ffffff;
  --lime: #c8f13c;
  --lime-d: #a9d317;
  --blue: #2f6fd6;
  --radius: 14px;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* gombok */
.btn { font: 700 16px/1 var(--head); border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 6px 18px -6px rgba(168, 210, 23, .7); }
.btn-lime:hover { background: #d6fb55; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* fejléc */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 19px var(--head); letter-spacing: -.01em; }
.brand b { color: var(--lime); font-weight: 800; }
.brand small { color: #8aa0b8; font-weight: 500; font-size: 14px; }
.brand-mark { width: 26px; height: 34px; border: 3px solid var(--lime); border-radius: 3px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #c9d5e3; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: #fff; }

/* bevezető */
.intro { background: var(--navy); color: #fff; padding: 28px 24px 30px; text-align: center; }
.eyebrow { font: 700 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0 0 10px; }
.intro h1 { font-size: clamp(28px, 4.2vw, 48px); font-weight: 900; max-width: 920px; margin: 0 auto; }
.intro h1 span { color: var(--lime); }
.lead { color: #b8c7d8; max-width: 720px; margin: 14px auto 0; font-size: 17px; }

/* konfigurátor */
.configurator { scroll-margin-top: 58px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: calc(100vh - 58px); min-height: 620px; background: #dfe8ef; border-bottom: 1px solid var(--line); }
.stage { position: relative; min-width: 0; overflow: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.stage canvas:active { cursor: grabbing; }
.stage-tools { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; pointer-events: none; }
.seg { display: inline-flex; background: rgba(11, 29, 51, .82); backdrop-filter: blur(8px); border-radius: 999px; padding: 4px; pointer-events: auto; }
.seg button { border: 0; background: transparent; color: #d4deea; font: 600 13px var(--body); padding: 8px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: #fff; }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--lime); color: var(--navy); }
.stage-hint { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 12px; color: #33475c; background: rgba(255, 255, 255, .7); padding: 4px 10px; border-radius: 999px; }
.phase { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 9px 16px 9px 14px; border-radius: 999px; font: 600 14px var(--body); display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.phase .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: pulse 0.9s infinite alternate; }
@keyframes pulse { from { opacity: .3; transform: scale(.7); } to { opacity: 1; transform: scale(1.15); } }

.panel { background: var(--card); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.cfg { overflow-y: auto; padding: 8px 20px 20px; flex: 1; overscroll-behavior: contain; }
fieldset { border: 0; padding: 14px 0 6px; margin: 0; border-bottom: 1px solid #eef1f4; }
legend { font: 800 15px var(--head); padding: 0; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--lime); font-size: 12px; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 11px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.card:hover { border-color: #b7c4d2; }
.card[aria-checked="true"] { border-color: var(--navy); background: #f2f7e3; box-shadow: inset 0 0 0 1px var(--navy); }
.card b { display: block; font: 700 14px var(--head); }
.card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 3px; }
.card em { display: block; font-style: normal; font-weight: 600; font-size: 12px; color: var(--navy-2); margin-top: 6px; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--navy); }
.stepper button:hover:not([disabled]) { border-color: var(--navy); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { font: 900 26px var(--head); min-width: 26px; text-align: center; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: 500 12px var(--body); color: var(--muted); padding: 0; }
.sw i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); display: block; transition: box-shadow .15s; }
.sw[aria-checked="true"] i { box-shadow: 0 0 0 3px var(--navy); }
.sw[aria-checked="true"] { color: var(--ink); font-weight: 600; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills.col { flex-direction: column; }
.pill { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; cursor: pointer; font: 500 14px var(--body); color: var(--ink); }
.pill small { display: block; color: var(--muted); font-size: 12px; }
.pill span.p { font-weight: 600; font-size: 12px; color: var(--navy-2); white-space: nowrap; }
.pill[aria-checked="true"] { border-color: var(--navy); background: #f2f7e3; }

.checks { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.check .p { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--navy-2); white-space: nowrap; }
.check:has(input:checked) { border-color: var(--navy); background: #f2f7e3; }

.breakdown { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fafbfc; }
.breakdown summary { cursor: pointer; font: 700 14px var(--head); }
.breakdown table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.breakdown td { padding: 5px 0; border-bottom: 1px dashed #e3e8ee; vertical-align: top; }
.breakdown td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 10px; }
.breakdown tr.sum td { border: 0; font-weight: 700; padding-top: 8px; }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.pricebar { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 20px; background: var(--navy); color: #fff; }
.price { display: flex; flex-direction: column; min-width: 0; }
.price-label { font-size: 12px; color: #93a8bf; }
.price strong { font: 900 25px/1.1 var(--head); color: var(--lime); white-space: nowrap; }
.price-gross { font-size: 12px; color: #93a8bf; }
.pricebar .btn { padding: 14px 18px; flex-shrink: 0; }

/* tartalom */
.band { background: var(--navy); color: #fff; padding: 46px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feat .ic { color: var(--lime); font-size: 18px; }
.feat h3 { font-size: 21px; margin: 6px 0 8px; }
.feat p { color: #b8c7d8; margin: 0; }
section.wrap { padding-top: 64px; }
section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.sub { color: var(--muted); margin: 8px 0 22px; }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .15s, box-shadow .15s; }
.type:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(11, 29, 51, .5); }
.type svg { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.type b { font: 800 18px var(--head); display: block; }
.type p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.type em { font-style: normal; font-weight: 700; color: var(--navy-2); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--navy); font: 900 16px var(--head); margin-bottom: 10px; }
.steps b { display: block; font: 800 16px var(--head); }
.steps span { color: var(--muted); font-size: 14px; }
.faq { margin-top: 20px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: #3d4b5a; }
.cta { margin-top: 70px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 52px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot { background: #07131f; color: #8ea2b8; font-size: 14px; padding: 26px 0; }
.foot a { color: #c9d5e3; }
.foot p { margin: 4px 0; }
.nojs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff3c4; padding: 12px; text-align: center; margin: 0; }

/* ajánlatkérő ablak */
.dlg { border: 0; padding: 0; border-radius: 18px; width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(7, 19, 31, .62); backdrop-filter: blur(3px); }
.qf { position: relative; }
.x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); z-index: 2; }
.qf-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.qf-shot { background: var(--navy); color: #fff; padding: 26px; }
.qf-shot h2 { font-size: 24px; margin-bottom: 14px; }
.qf-shot figure { margin: 0; }
.qf-shot img { width: 100%; border-radius: 10px; display: block; background: #1b3350; aspect-ratio: 16 / 10; object-fit: cover; }
.qf-shot figcaption { font-size: 13px; color: #b8c7d8; margin-top: 8px; }
.qf-shot figcaption a { color: var(--lime); }
.qf-sum { font-size: 14px; color: #d5dfea; margin: 14px 0 6px; }
.qf-price { margin: 0; display: flex; align-items: baseline; gap: 10px; color: #93a8bf; font-size: 13px; }
.qf-price strong { color: var(--lime); font: 900 24px var(--head); }
.qf-fields, .qf-ok { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 11px; }
.qf-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #34465a; }
.qf input, .qf select, .qf textarea { font: 15px var(--body); padding: 10px 12px; border: 1.5px solid #cfd8e2; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.qf input:focus, .qf select:focus, .qf textarea:focus { outline: 2px solid var(--lime-d); border-color: var(--navy); }
.qf .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qf label.chk { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; }
.qf label.chk input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { background: #fde8e6; color: #9b1c12; border-radius: 9px; padding: 10px 12px; margin: 0; font-size: 14px; }
.qf-ok { align-items: flex-start; justify-content: center; }
.ok-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; font: 900 28px var(--head); }
.qf-ok h3 { font-size: 26px; }
.qf-ok p { margin: 0; }

/* mobil */
@media (max-width: 1100px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .top { padding: 10px 16px; gap: 12px; justify-content: space-between; }
  .intro { padding: 22px 16px; text-align: left; }
  .lead { font-size: 15px; }
  .configurator { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { height: 58vh; min-height: 340px; position: sticky; top: 54px; z-index: 5; }
  .panel { border-left: 0; }
  .cfg { overflow: visible; padding: 4px 16px 16px; }
  .pricebar { position: sticky; bottom: 0; z-index: 10; padding: 12px 16px; }
  .price strong { font-size: 21px; }
  .seg button { padding: 7px 10px; font-size: 12px; }
  .stage-tools { left: 10px; right: 10px; top: 10px; gap: 6px; }
  .stage-hint { display: none; }
  .grid3 { grid-template-columns: 1fr; gap: 20px; }
  .qf-grid { grid-template-columns: 1fr; }
  .qf-shot { padding: 20px 16px; }
  .qf-fields, .qf-ok { padding: 18px 16px; }
  .qf .two { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 560px) {
  .types, .steps { grid-template-columns: 1fr; }
  .stage { height: 46vh; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .top .btn-sm { padding: 9px 12px; font-size: 13px; }
  .pricebar .btn { padding: 12px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .phase .dot { animation: none; } }
