/* ===== 3D Cube – stílus ===== */
:root {
  /* B paletta: Lions-kék + arany */
  --navy: #002F4B;
  --navy-2: #0a4166;
  --blue: #0076B6;
  --accent: #FFC62F;        /* arany: gombok, kiemelések */
  --accent-hover: #f2b400;
  --accent-ink: #002F4B;    /* szöveg az arany gombokon */
  --accent-dark: #0076B6;   /* kék: linkek, címkék, ikonok szövege */
  --accent-soft: #e3f1fa;   /* halványkék háttér */
  --gold-soft: #fff7dd;
  --text: #1c2533;
  --muted: #5d6878;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 47, 75, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px;
}

/* ----- Gombok ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-messenger { background: #0866ff; color: #fff; }
.btn-messenger:hover { background: #0652cc; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ----- Fejléc ----- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.logo svg { width: 34px; height: 34px; }
.logo .cube-ic { width: 32px; height: auto; display: block; }
.mini-box .cube-ic { width: 56px; height: auto; display: block; margin: 0 auto 6px; }
.bot header .av .cube-ic { width: 26px; height: auto; display: block; }
.logo span b { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #c9d3e1; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 9px 18px; font-size: .95rem; color: var(--accent-ink); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ----- Hero ----- */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(0,118,182,.6), transparent 50%), var(--navy);
  color: #fff; padding: 72px 0 84px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: #c9d3e1; max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: #dfe6f0; font-weight: 600; font-size: .95rem; }
.badges li { display: block; }
.badges li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }
.hero-art { position: relative; }
.hero-card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-card .steps-mini { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mini-box {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; text-align: center;
  font-size: .85rem; color: #c9d3e1; padding: 10px;
}
.mini-box.photo { background: repeating-linear-gradient(45deg, #0d4a72, #0d4a72 10px, #0a4166 10px, #0a4166 20px); }
.mini-box.print { background: linear-gradient(160deg, #135a87, #08324f); }
.mini-box svg { display: block; width: 56px; height: 56px; margin: 0 auto 6px; }
.arrow { color: var(--accent); font-size: 1.6rem; font-weight: 900; }
.hero-card p { margin: 16px 0 0; color: #c9d3e1; font-size: .95rem; text-align: center; }

/* ----- Kártyák ----- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px;
}
.icon svg { width: 26px; height: 26px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}

/* ----- Szkennelés ----- */
.scan { background: linear-gradient(135deg, var(--navy) 0%, #00507f 100%); color: #fff; }
.scan .eyebrow { color: var(--accent); }
.scan-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.scan-lead { color: #c9d3e1; font-size: 1.05rem; }
.scan-list { list-style: none; padding: 0; margin: 0 0 26px; }
.scan-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: #dfe6f0; }
.scan-list li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); }
.scan-list b { color: #fff; }
.scan-steps { color: var(--text); }
.scan-steps ol { padding-left: 20px; margin: 0 0 14px; }
.scan-steps li { margin-bottom: 10px; color: var(--muted); }
.scan-steps li b { color: var(--text); }

/* ----- Árak ----- */
.price-card { text-align: left; position: relative; }
.price-card .price { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin: 6px 0 10px; white-space: nowrap; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card.highlight { border: 2px solid var(--accent); }
.price-card ul { padding-left: 18px; color: var(--muted); margin: 12px 0 0; }
.note {
  margin-top: 24px; padding: 16px 20px; background: var(--gold-soft); border-radius: var(--radius);
  border-left: 4px solid var(--accent); color: var(--text);
}

/* ----- Anyagok ----- */
.mat-tag { display: inline-block; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.mat-for { display: inline-block; margin: 6px 0 10px; font-size: .8rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.meter { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.meter i { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--accent); border-radius: 3px; }
.meter span { width: 80px; }

/* ----- Galéria ----- */
.ba { padding: 0; overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-img { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-img .lbl {
  position: absolute; top: 10px; left: 10px; background: rgba(0,47,75,.85); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; z-index: 1;
}
.ba-img.after .lbl { background: var(--accent); color: var(--accent-ink); }
.ba-img .ph {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  color: var(--muted); font-size: .85rem; padding: 14px;
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e6eaf0 12px, #e6eaf0 24px);
}
.ba-img.missing img { display: none; }
.ba-img.missing .ph { display: grid; }
.ba figcaption { padding: 14px 18px; font-weight: 600; }
.ba figcaption small { display: block; font-weight: 400; color: var(--muted); }

/* ----- 3D-nézegető ----- */
.models-head { margin: 56px 0 24px; }
.models-head h3 { font-size: 1.4rem; }
.model { padding: 0; overflow: hidden; }
.mv-wrap { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 40%, #ffffff, #e9edf3); }
.mv-wrap model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.mv-wrap .ph {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center; color: var(--muted);
  font-size: .9rem; padding: 14px;
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e6eaf0 12px, #e6eaf0 24px);
}
.mv-wrap.missing model-viewer { display: none; }
.mv-wrap.missing .ph { display: grid; }
.model figcaption { padding: 14px 18px; font-weight: 600; }
.model figcaption small { display: block; font-weight: 400; color: var(--muted); }

/* ----- Ajánlatkérés ----- */
.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.tips { list-style: none; padding: 0; margin: 0 0 24px; }
.tips li { display: flex; gap: 12px; margin-bottom: 14px; }
.tips li b { display: block; }
.tips li span { color: var(--muted); font-size: .95rem; }
.tips .ti { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.1rem; }
.alt-channel { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; }
.alt-channel p { color: #c9d3e1; margin: 0 0 14px; }
.alt-channel .row { display: flex; flex-wrap: wrap; gap: 10px; }
.alt-channel .btn-ghost { padding: 11px 18px; }

form.card { padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--accent-soft); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.drop {
  border: 2px dashed #c4ccd8; border-radius: 12px; padding: 22px; text-align: center;
  background: var(--bg-alt); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--blue); background: var(--accent-soft); }
.drop b { color: var(--accent-dark); }
.drop svg { width: 36px; height: 36px; color: var(--blue); margin: 0 auto 6px; }
/* mobil: kamera- és galériagomb a húzd-ide mező helyett */
.photo-btns { display: none; flex-direction: column; gap: 10px; }
.photo-btns .btn { width: 100%; padding: 15px 18px; font-size: 1.05rem; }
.photo-btns .btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.photo-btns .hint { text-align: center; }
@media (pointer: coarse) {
  .photo-btns { display: flex; }
  .drop { display: none; }
}
.file-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: rgba(0,47,75,.8); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.thumb .size { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,47,75,.7); color: #fff; font-size: .7rem; padding: 2px 6px; }
.form-msg { margin: 10px 0 0; font-size: .9rem; }
.form-msg.err { color: #c0392b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; }
.hidden { display: none !important; }

/* ----- Szállítás ----- */
.ship .card { display: flex; gap: 16px; align-items: flex-start; }
.ship .icon { margin: 0; flex: none; }

/* ----- GYIK ----- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ----- Lábléc ----- */
footer { background: var(--navy); color: #c9d3e1; padding: 48px 0 28px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
footer h4 { color: #fff; margin: 0 0 12px; }
footer a { color: #c9d3e1; text-decoration: none; }
footer .copy a { text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .85rem; }

/* ----- Chatbot ----- */
.bot-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: grid; place-items: center;
}
.bot-btn svg { width: 30px; height: 30px; }
.bot-btn .dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.bot {
  position: fixed; right: 20px; bottom: 94px; z-index: 91; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden;
}
.bot header { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.bot header .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-2); display: grid; place-items: center; }
.bot header .av svg { width: 22px; height: 22px; }
.bot header b { display: block; }
.bot header small { color: #9fb0c6; }
.bot header button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.bot-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.msg.b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.u { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--accent-soft); }
.bot form { display: flex; border-top: 1px solid var(--line); }
.bot form input { flex: 1; border: 0; padding: 14px; font: inherit; outline: none; }
.bot form button { border: 0; background: none; color: var(--accent-dark); font-weight: 700; padding: 0 16px; cursor: pointer; }

/* ----- Jogi oldalak ----- */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #333d4b; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); width: 38%; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal .todo { background: #fff6d6; border: 1px dashed #e0b400; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media print { .topbar, footer, .bot-btn, .bot { display: none !important; } }

/* ----- Reszponzív ----- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero .wrap, .quote, .scan-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .topbar .nav:not([style]) {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px;
  }
  .topbar .nav.open { display: flex; }
  .topbar .nav a { padding: 10px 0; }
  .menu-toggle { display: block; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .menu-toggle { display: block; }
  section { padding: 56px 0; }
  .grid-4, .grid-5, .grid-3, .grid-2, .row-2 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bot { right: 16px; bottom: 90px; }
  .bot-btn { right: 16px; bottom: 16px; }
}
