/* =========================================================
   KárpitMűhely – demóoldal (Kódműves referencia)
   Lenvászon alap, dió és rozsda, varrásszerű szaggatott vonalak.
   ========================================================= */
@font-face { font-family: "Young Serif"; src: url("fonts/young-serif.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/karla.woff") format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #F3ECE1;
  --paper: #FBF7F0;
  --sand: #E7DCCB;
  --ink: #2B211A;
  --ink-2: #574A3F;
  --muted: #6E6052;
  --line: #DDD1BF;
  --seam: #CDBFA9;
  --accent: #9C4A24;
  --accent-d: #7E3A1B;
  --gold: #D8B48A;
  --green: #2F5D50;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pop: cubic-bezier(.3, 1.4, .5, 1);
  --f: #2F5D50;
  --fp: #2F5D50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.intro { margin: 14px 0 0; max-width: 36em; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--pop), box-shadow .25s; }
.btn svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* fejléc */
.top { position: sticky; top: 0; z-index: 50; background: rgba(243, 236, 225, .93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px dashed var(--seam); }
.top .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px rgba(255, 255, 255, .5); transition: transform .5s var(--pop); }
.mark svg { width: 22px; height: 22px; }
.brand:hover .mark { transform: rotate(-20deg); }
.name { display: flex; flex-direction: column; font: 400 27px/1 var(--serif); }
.name small { margin-top: 4px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { position: relative; text-decoration: none; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 2px dashed var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.menu-btn { display: none; min-height: 46px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }

/* ================= HERO ================= */
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 6vw, 90px); }
.hero h1 { font-size: clamp(54px, 7vw, 104px); line-height: .98; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); text-decoration: underline dashed 3px; text-underline-offset: 12px; }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.ln + .ln > span { transition-delay: .12s; }
.ready .ln > span { transform: none; }
.lead { margin: 28px 0 0; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.perks { margin: 34px 0 0; padding-top: 20px; border-top: 2px dashed var(--seam); font-size: 15px; color: var(--ink-2); max-width: 32em; }
.fade { opacity: 0; transform: translateY(14px); transition: opacity .8s ease .4s, transform .9s var(--ease) .4s; }
.ready .fade { opacity: 1; transform: none; }

.stage { position: relative; border-radius: 28px; background: var(--sand); padding: 22px; }
.stage::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 2px dashed rgba(110, 96, 82, .28); pointer-events: none; }
.views { position: relative; z-index: 4; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); }
.views button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chair-box { position: relative; height: clamp(300px, 30vw, 390px); margin-top: 6px; }
.chair-box i, .chair-box b { position: absolute; display: block; }
.shadow { left: 14%; right: 14%; bottom: 4%; height: 22px; border-radius: 50%; background: rgba(43, 33, 26, .2); filter: blur(4px); }
.leg { bottom: 7%; width: 18px; height: 34px; background: #5A3A22; clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); }
.leg.l { left: 20%; } .leg.r { right: 20%; }
.chair { position: absolute; inset: 0; }
.c-prev i { background: var(--fp); }
.c-next i { background: var(--f); }
.c-next { clip-path: inset(0); }
.c-next.wipe { animation: wipe 1s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.back { left: 22%; top: 4%; width: 56%; height: 54%; border-radius: 48% 48% 16% 16% / 34% 34% 12% 12%; box-shadow: inset -14px -10px 30px rgba(0, 0, 0, .18); }
.back .seam { inset: 9% 10%; border-radius: inherit; border: 2px dashed rgba(255, 255, 255, .45); }
.base { left: 12%; top: 64%; width: 76%; height: 16%; border-radius: 12px; box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .2); }
.seat { left: 19%; top: 50%; width: 62%; height: 18%; border-radius: 20px; box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .18), 0 4px 0 rgba(0, 0, 0, .08); }
.seat .seam { left: 5%; right: 5%; top: 18%; border-top: 2px dashed rgba(255, 255, 255, .45); }
.arm { top: 34%; width: 19%; height: 44%; border-radius: 44px 44px 14px 14px; }
.arm.l { left: 6%; box-shadow: inset -8px -6px 18px rgba(0, 0, 0, .2); }
.arm.r { right: 6%; box-shadow: inset 8px -6px 18px rgba(0, 0, 0, .2); }
.tear { left: 54%; top: 20%; width: 64px; height: 44px; border-radius: 40% 60% 55% 45%; background: radial-gradient(circle at 40% 50%, #FFFDF6 0 30%, #E9DCC0 60%, #6B5236 64%); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--pop); }
.stage.before .tear { opacity: 1; transform: none; }
.stage.before .seam { border-color: rgba(90, 70, 40, .25) !important; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thread path { fill: none; stroke: #FFF7E6; stroke-width: .7; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; stroke-width: 2.5; opacity: 0; }
.thread.sew path { animation: sew 1.1s var(--ease) both; }
@keyframes sew { 0% { opacity: 1; stroke-dashoffset: 120; } 80% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: 0; } }
.sheen { inset: 0; background: radial-gradient(240px 200px at var(--mx, 60%) var(--my, 30%), rgba(255, 255, 255, .2), transparent 70%); mix-blend-mode: soft-light; pointer-events: none; -webkit-mask: linear-gradient(#000, #000); }
.stage.before .sheen { display: none; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; position: relative; }
.stage-foot span { font: 400 20px/1.2 var(--serif); }
.stage-foot small { font-size: 13px; font-weight: 600; color: var(--muted); }
.book { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.book button { width: 64px; height: 84px; border-radius: 10px 10px 4px 4px; cursor: pointer; background: var(--c); border: 3px solid var(--paper); box-shadow: 0 6px 14px rgba(43, 33, 26, .15); transition: transform .3s var(--pop), border-color .2s; position: relative; }
.book button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; border-top: 2px dashed rgba(255, 255, 255, .55); }
.book button:hover { transform: translateY(-4px) rotate(-2deg); }
.book button[aria-checked="true"] { border-color: var(--ink); transform: translateY(-10px); }

/* ================= SZEKCIÓK ================= */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.paper { background: var(--paper); }
.stitched { border-block: 2px dashed var(--seam); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 28px; }

/* rétegek */
.layers { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--gap); transition: gap .25s; perspective: 900px; }
.stack button { display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; border-radius: 12px; cursor: pointer; border: 3px solid transparent; background: var(--c); box-shadow: 0 4px 10px rgba(43, 33, 26, .12); transition: transform .35s var(--pop), border-color .2s, opacity .5s, height .3s; }
.stack button span { padding: 4px 10px; border-radius: 999px; background: rgba(251, 247, 240, .92); font-size: 13px; font-weight: 700; color: var(--ink); }
.stack button:hover { transform: translateX(6px); }
.stack button[aria-checked="true"] { border-color: var(--ink); transform: translateX(12px); }
.stack-wrap:not(.in) .stack button { opacity: 0; transform: translateY(-30px); }
.stack-wrap.in .stack button { transition-delay: calc(var(--i) * .08s), 0s, calc(var(--i) * .08s), 0s; }
.explode { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.explode label { font-weight: 700; white-space: nowrap; }
.explode input { flex: 1; min-height: 44px; accent-color: var(--accent); }
.layer-info { padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: var(--bg); border: 2px dashed var(--seam); }
.badge { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.new { background: var(--accent); color: #fff; }
.badge.maybe { background: var(--sand); color: var(--ink); }
.badge.save { background: var(--green); color: #fff; }
.layer-info h3 { margin: 12px 0 10px; font-size: 34px; line-height: 1.05; }
.layer-info > p:not(.badge):not(.sign) { margin: 0 0 16px; color: var(--ink-2); }
.sign { margin: 0; padding-top: 14px; border-top: 2px dashed var(--seam); font-size: 15px; color: var(--ink-2); }
.sign b { color: var(--ink); }
.layer-info.swap > * { animation: swapin .4s var(--ease) both; }
@keyframes swapin { from { opacity: 0; transform: translateY(8px); } }

/* anyagkönyv */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; border: 2px solid var(--ink); background: transparent; transition: background-color .2s, color .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter-note { margin: 0 0 18px; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fab { border-radius: 22px; overflow: hidden; background: var(--paper); border: 2px dashed var(--seam); transition: opacity .35s, transform .35s var(--ease), border-color .2s; display: flex; flex-direction: column; }
.fab.dim { opacity: .3; transform: scale(.97); }
.fab.on { border: 2px solid var(--ink); }
.fab .sw { height: 160px; background: var(--c); border-bottom: 2px dashed rgba(255, 255, 255, .55); transform-style: preserve-3d; transition: transform .25s ease; position: relative; }
.fab .sw::after { content: ""; position: absolute; inset: 0; background: radial-gradient(180px 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .25), transparent 70%); opacity: 0; transition: opacity .3s; }
.fab:hover .sw::after { opacity: 1; }
.fab-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fab-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fab-t h3 { font-size: 22px; }
.fab-t span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fab-b p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--seam); font-size: 12px; font-weight: 600; }
.fab-b .btn { margin-top: auto; min-height: 44px; border-color: var(--ink); background: transparent; align-self: stretch; }
.fab-b .btn:hover { background: var(--ink); color: var(--bg); }
.fab-b .gap { flex: 1; }
.fab.on .btn { background: var(--ink); color: var(--bg); }

/* kalkulátor */
.dark { background: var(--ink); color: var(--bg); }
.dark .kicker { color: var(--gold); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc h2 { font-size: clamp(40px, 4.8vw, 62px); margin-bottom: 28px; }
.pills { border: 0; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { padding: 0; margin-bottom: 10px; font-weight: 700; width: 100%; }
.pills label { position: relative; }
.pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--bg); font-weight: 700; font-size: 14px; transition: background-color .2s, color .2s; }
.pills input:checked + span { background: var(--bg); color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px dashed #5A4A3C; margin-bottom: 14px; font-weight: 700; }
.stp { display: flex; align-items: center; gap: 6px; }
.stp button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--bg); background: transparent; color: var(--bg); font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.stp button:hover { background: var(--bg); color: var(--ink); }
.stp button:disabled { opacity: .3; cursor: not-allowed; background: transparent; color: var(--bg); }
.stp output { min-width: 60px; text-align: center; font: 400 24px/1 var(--serif); }
.chk-row { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed #5A4A3C; font-weight: 700; cursor: pointer; }
.chk-row input { width: 22px; height: 22px; margin: 0; accent-color: var(--gold); }
.calc-out { padding: 28px; border-radius: 24px; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; gap: 14px; position: relative; }
.calc-out::before { content: ""; position: absolute; inset: 8px; border-radius: 18px; border: 2px dashed var(--seam); pointer-events: none; }
.calc-out .lbl { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.range { margin: 0; font: 400 clamp(36px, 4.2vw, 54px)/1 var(--serif); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 2px dashed var(--seam); }
.meta small { display: block; font-size: 13px; color: var(--muted); }
.meta b { font-size: 18px; }
.calc-out .note { margin: 0; font-size: 14px; color: var(--ink-2); }
.calc-out .btn { align-self: flex-start; position: relative; }
.bump { animation: bump .4s var(--pop); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--accent); } }

/* műhely útja */
#menete h2 { margin-bottom: 48px; }
.path { position: relative; }
.path-line { position: absolute; left: 0; right: 0; top: -2px; width: 100%; height: 44px; overflow: visible; }
.path-line path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 8 8; vector-effect: non-scaling-stroke; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps li { padding: 24px 20px; border-radius: 22px; background: var(--paper); border: 2px dashed var(--seam); display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--pop), border-color .3s; }
.steps li:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent); }
.steps .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 400 18px/1 var(--serif); box-shadow: 0 0 0 5px var(--bg); }
.steps h3 { margin-top: 4px; font-size: 22px; line-height: 1.1; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.steps small { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ajánlatkérés */
.accent { background: var(--accent); color: #fff; }
.req-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.req-copy h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: .98; margin-bottom: 18px; }
.req-copy > p { margin: 0 0 24px; max-width: 26em; }
.chosen { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.chosen small { display: block; font-size: 13px; opacity: .85; }
.chosen b { display: block; }
.sw { display: block; width: 54px; height: 54px; flex: none; border-radius: 12px; border: 3px solid #fff; background: var(--f); }
.sw.big { width: 100%; height: 90px; border-radius: 18px; border: 0; }
.contact { margin: 24px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }
.contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-underline-offset: 4px; }
.contact svg { width: 18px; height: 18px; }
.req { position: relative; border-radius: 28px; background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; overflow: hidden; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.f label, .lbl-t { font-weight: 600; font-size: 15px; }
.f label i, .chk i { color: var(--accent); font-style: normal; }
.f input, .f select, .f textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.f textarea { padding: 14px 16px; resize: vertical; min-height: 100px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(156, 74, 36, .14); }
.f.bad input { border-color: #A3261A; background: #FFF5F3; }
.err { display: none; color: #A3261A; font-size: 13px; font-weight: 600; }
.f.bad .err, .err.show { display: block; }
#f-photos { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 12px 16px; border: 2px dashed var(--seam); border-radius: 14px; background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.drop b, .drop small { display: block; }
.drop small { font-size: 13px; color: var(--muted); }
.drop:hover, .drop.over { background: #FBF0E8; border-color: var(--accent); }
.f:has(#f-photos:focus-visible) .drop { outline: 3px solid var(--accent); outline-offset: 3px; }
.thumbs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: visible; border: 2px solid var(--ink); background: var(--sand); animation: swapin .3s var(--pop) both; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.done { position: absolute; inset: 0; z-index: 5; background: var(--paper); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; overflow: auto; clip-path: circle(0 at 50% 100%); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.done.show { clip-path: circle(150% at 50% 100%); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.done h3 { font-size: 40px; line-height: 1; margin-top: 6px; }
.done dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-size: 15px; }
.done dt { font-weight: 700; }
.done dd { margin: 0; overflow-wrap: anywhere; }
.done .demo { margin: 0; color: var(--ink-2); font-size: 15px; }
.done .btn { align-self: flex-start; margin-top: auto; }

/* lábléc, mobil, jelvény */
.foot { background: var(--ink); color: var(--bg); padding: 56px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.fbrand { margin: 0; font: 400 32px/1 var(--serif); }
.fmeta { margin: 8px 0 0; font-size: 14px; color: var(--seam); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 15px; }
.foot nav a { color: var(--bg); text-underline-offset: 4px; text-decoration-style: dashed; }
.foot nav a:hover { color: var(--gold); }
.callbar { display: none; }
.km-badge { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(251, 247, 240, .97); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); border: 2px dashed var(--seam); transform: translateY(calc(100% + 120px)); transition: transform .6s var(--ease); }
.past-hero .km-badge { transform: none; }
.km-badge img { width: 30px; height: 30px; border-radius: 8px; }
.km-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d2 { transition-delay: .1s; } .rv.d3 { transition-delay: .2s; }
.no-js .rv, .no-js .fade { opacity: 1; transform: none; }
.no-js .ln > span { transform: none; }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; left: 0; right: 0; top: var(--top-h, 84px); z-index: 45; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px dashed var(--seam); padding: 8px var(--pad) 22px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px dashed var(--seam); font-size: 20px; font-weight: 700; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; min-height: 54px; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .hero-in, .layers, .calc, .req-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 620px; }
  .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-line { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 58px; }
  .top .wrap { min-height: 70px; }
  .name { font-size: 23px; }
  .name small { font-size: 10px; }
  .hero h1 { font-size: clamp(46px, 13.5vw, 70px); }
  .cta .btn { flex: 1 1 100%; }
  .stage { padding: 16px; }
  .book { gap: 8px; }
  .book button { width: calc((100% - 40px) / 6); height: 70px; }
  .lib, .steps { grid-template-columns: minmax(0, 1fr); }
  .req { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .callbar a { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; }
  .callbar a:first-child { background: var(--ink); color: var(--bg); }
  .callbar a:last-child { background: var(--accent); color: #fff; }
  .callbar svg { width: 20px; height: 20px; }
  .km-badge { left: 10px; bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv, .fade { opacity: 1; transform: none; }
  .stack-wrap:not(.in) .stack button { opacity: 1; transform: none; }
}
