/* =========================================================
   Precíz Kőműves – demóoldal (Kódműves referencia)
   Betonszürke alap, tégla, vastag kondenzált címek.
   ========================================================= */
@font-face { font-family: "Big Shoulders"; src: url("fonts/big-shoulders.woff") format("woff"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ECE9E3;
  --paper: #F7F5F1;
  --sand: #DCD7CE;
  --ink: #1F1D1B;
  --ink-2: #3D3934;
  --muted: #5B5650;
  --line: #D4CFC6;
  --mortar: #CFC8BC;
  --brick: #B4532A;
  --brick-d: #8E3E1C;
  --level: #E9B949;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --drop: cubic-bezier(.3, 1.4, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
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(--brick); 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(--display); font-weight: 900; text-transform: uppercase; margin: 0; line-height: .92; letter-spacing: .005em; }
h2 { font-size: clamp(44px, 5vw, 72px); }
.kicker { margin: 0 0 14px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.intro { margin: 16px 0 0; max-width: 36em; color: var(--ink-2); }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s var(--ease); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-brick { background: var(--brick); color: #fff; }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--brick); }
.btn-brick:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }

/* mérőszalag – görgetésjelző */
.tape { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 80; background: transparent; pointer-events: none; }
.tape i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--level) repeating-linear-gradient(90deg, rgba(31, 29, 27, .7) 0 1px, transparent 1px 10px); border-right: 2px solid var(--ink); }
.tape b { position: absolute; top: 8px; left: 0; padding: 2px 7px; background: var(--ink); color: var(--level); font: 600 11px/1.3 var(--mono); transform: translateX(-50%); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.scrolled .tape b { opacity: 1; }

/* felső sáv + fejléc */
.alert { background: var(--ink); color: var(--bg); font: 400 13px/1.4 var(--mono); }
.alert .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.alert a { color: var(--level); font-weight: 600; text-decoration: none; }
.top { position: sticky; top: 0; z-index: 50; background: rgba(236, 233, 227, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.top .wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { display: grid; grid-template-columns: 14px 14px; grid-template-rows: 9px 9px 9px; gap: 3px; }
.mark i:nth-child(1) { grid-column: span 2; background: var(--brick); }
.mark i:nth-child(2) { background: var(--brick); }
.mark i:nth-child(3) { background: var(--ink); }
.mark i:nth-child(4) { grid-column: span 2; background: var(--ink); }
.brand:hover .mark i:nth-child(1) { animation: nudge .5s var(--drop); }
@keyframes nudge { 40% { transform: translateY(-5px); } }
.name { display: flex; flex-direction: column; font: 900 27px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.name small { margin-top: 4px; font: 400 11px/1 var(--mono); text-transform: none; letter-spacing: 0; 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; height: 3px; background: var(--brick); 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); background: transparent; font-weight: 700; cursor: pointer; }

/* ================= HERO ================= */
.hero { border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(31, 29, 27, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 29, 27, .06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 84px); }
.hero h1 { font-size: clamp(64px, 8.6vw, 132px); line-height: .86; }
.ln { display: block; overflow: hidden; padding-top: .06em; margin-top: -.06em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.ln:nth-child(2) > span { transition-delay: .08s; } .ln:nth-child(3) > span { transition-delay: .16s; } .ln:nth-child(4) > span { transition-delay: .24s; }
.ready .ln > span { transform: none; }
.br { color: var(--brick); }
.lead { margin: 30px 0 0; max-width: 31em; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.promise { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.promise li::before { content: ""; display: inline-block; width: 10px; height: 7px; margin-right: 8px; background: var(--brick); vertical-align: 1px; }
.fade { opacity: 0; transform: translateY(16px); transition: opacity .8s ease .45s, transform .9s var(--ease) .45s; }
.ready .fade { opacity: 1; transform: none; }

.hero-art { position: relative; }
.wall { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--mortar); box-shadow: 14px 14px 0 rgba(31, 29, 27, .14); }
.row { display: flex; gap: 6px; }
.bk { flex: var(--w) 1 0; height: clamp(34px, 3.6vw, 48px); min-width: 0; padding: 0; border: 0; border-radius: 1px; background: var(--brick); filter: brightness(var(--s)); position: relative; opacity: 0; transform: translateY(-140px); transition: opacity .3s ease var(--d), transform .65s var(--drop) var(--d); }
.bk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 40%, rgba(0, 0, 0, .12)); }
.ready .bk { opacity: 1; transform: none; }
.no-js .bk { opacity: 1; transform: none; }
.bk.gap { background: transparent; filter: none; outline: 2px dashed rgba(31, 29, 27, .45); outline-offset: -2px; cursor: pointer; transition: background-color .2s, opacity .3s ease var(--d), transform .65s var(--drop) var(--d); }
.bk.gap::after { content: "+"; display: grid; place-items: center; background: none; font: 600 20px/1 var(--mono); color: rgba(31, 29, 27, .55); }
.bk.gap:hover, .bk.gap:focus-visible { background: rgba(180, 83, 42, .18); }
.bk.gap.placed { background: var(--brick); filter: brightness(var(--s)); outline: 0; cursor: default; animation: place .55s var(--drop); }
.bk.gap.placed::after { content: ""; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 40%, rgba(0, 0, 0, .12)); }
@keyframes place { 0% { transform: translateY(-90px) rotate(-6deg); } 70% { transform: translateY(4px); } 100% { transform: none; } }
.wall.done { animation: thud .4s ease .3s; }
@keyframes thud { 50% { transform: translateY(3px); } }
.plumb { position: absolute; top: -48px; right: 17%; width: 2px; height: calc(100% + 12px); background: var(--ink); transform-origin: top center; animation: sway 4.5s ease-in-out infinite; }
.plumb i { position: absolute; left: 50%; bottom: -30px; width: 24px; height: 30px; margin-left: -12px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes sway { 0%, 100% { transform: rotate(.8deg); } 50% { transform: rotate(-.8deg); } }
.wall-hint { margin: 46px 0 0; font: 400 13px/1.4 var(--mono); color: var(--muted); min-height: 1.4em; }
.wall-hint b { color: var(--brick-d); }
.level { position: relative; margin: 14px 6% 0 0; height: 48px; background: var(--level); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 6px 6px 0 rgba(31, 29, 27, .14); }
.level::before, .level::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--ink); opacity: .25; }
.level::before { left: 14px; } .level::after { left: 34px; }
.vial { position: relative; display: block; width: 126px; height: 24px; border-radius: 12px; background: #DDEFC8; border: 2px solid var(--ink); overflow: hidden; }
.vial::before, .vial::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.vial::before { left: 40px; } .vial::after { right: 40px; }
.bubble { position: absolute; left: 50%; top: 50%; width: 32px; height: 13px; margin: -6.5px 0 0 -16px; border-radius: 8px; background: #fff; border: 1px solid #8A9A72; transform: translateX(var(--bx, 0px)); transition: transform .5s var(--drop); }
.level b { position: absolute; right: 12px; font: 600 12px/1 var(--mono); }
.level.ok b { color: #1F5A2A; }

/* ================= SZOLGÁLTATÁSOK ================= */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; margin-bottom: 40px; }
.sec-head p { margin: 0; max-width: 28em; color: var(--ink-2); }
.bond { display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--ink); }
.course { display: flex; gap: 8px; }
.svc { flex: 2 1 0; min-width: 0; background: var(--paper); padding: 28px; min-height: 220px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: background-color .3s; }
.svc::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--brick); transition: height .45s var(--ease); z-index: 0; }
.svc > * { position: relative; z-index: 1; transition: color .3s; }
.svc:hover::before { height: 6px; }
.svc .no { font: 600 12px/1 var(--mono); color: var(--brick-d); }
.svc h3 { font-size: 32px; font-weight: 800; line-height: 1; }
.svc p { margin: 0; color: var(--ink-2); font-size: 16px; }
.svc .when { margin-top: auto; padding-top: 12px; border-top: 1px dashed #B9B2A6; font-size: 14px; color: var(--muted); }
.svc .when b { color: var(--ink); }
.half { flex: 1 1 0; background: var(--brick); min-width: 0; }

/* ================= KALKULÁTOR ================= */
.dark { background: var(--ink); color: var(--bg); }
.dark .kicker { color: #B9B2A6; }
.dark .intro { color: var(--mortar); }
.calc { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.types { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.types legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.types label { position: relative; cursor: pointer; }
.types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.types span { display: block; min-width: 120px; min-height: 58px; padding: 8px 18px; border: 2px solid var(--bg); transition: background-color .2s, border-color .2s, color .2s; }
.types b { display: block; }
.types small { display: block; font: 400 12px/1.3 var(--mono); opacity: .8; }
.types input:checked + span { background: var(--brick); border-color: var(--brick); color: #fff; }
.types input:focus-visible + span { outline: 3px solid var(--level); outline-offset: 3px; }
.types label:hover span { border-color: var(--level); }
.dim { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #3A3631; }
.dl b { display: block; }
.dl small { display: block; font: 400 12px/1.3 var(--mono); color: #B9B2A6; }
.stp { display: flex; align-items: center; gap: 6px; flex: none; }
.stp button { width: 46px; height: 46px; border: 2px solid var(--bg); background: transparent; color: var(--bg); font-size: 22px; font-weight: 700; 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: 86px; text-align: center; font: 600 20px/1 var(--mono); }
.calc-out { background: var(--bg); color: var(--ink); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; }
.stage { position: relative; height: 260px; border-bottom: 3px solid var(--ink); background-image: linear-gradient(#DAD5CC 1px, transparent 1px), linear-gradient(90deg, #DAD5CC 1px, transparent 1px); background-size: 20px 20px; margin-bottom: 34px; }
.cwall { position: absolute; left: 0; bottom: 0; width: 33%; height: 67%; transition: width .5s var(--ease), height .5s var(--ease); }
.crows { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; gap: 2px; padding: 2px; background: var(--mortar); overflow: hidden; }
.crow { display: flex; gap: 2px; flex: 1 1 0; min-height: 0; }
.crow i { flex: var(--w) 1 0; min-width: 0; background: var(--brick); filter: brightness(var(--s)); animation: lay .4s var(--ease) both; animation-delay: var(--d); }
@keyframes lay { from { opacity: 0; transform: translateY(-8px); } }
.op { position: absolute; background: var(--bg); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font: 400 11px/1 var(--mono); color: var(--muted); overflow: hidden; transition: left .5s var(--ease), width .5s var(--ease), height .5s var(--ease), bottom .5s var(--ease); }
.op.door { border-bottom: 0; }
.scale { position: absolute; left: 0; bottom: -28px; font: 400 12px/1 var(--mono); color: var(--muted); }
.cwall .dimx { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font: 600 12px/1 var(--mono); }
.cwall .dimx::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); z-index: -1; }
.cwall .dimx span { background: var(--bg); padding: 0 6px; }
.warn { margin: 0 0 14px; padding: 10px 14px; background: #FFF3D6; border: 1px solid #C99A2E; font-size: 14px; }
.res { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.res div { background: var(--paper); padding: 14px 16px; }
.res dt { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.res dd { margin: 2px 0 0; font: 800 34px/1.05 var(--display); }
.res dd.bump, .price b.bump { animation: bump .35s var(--drop); }
@keyframes bump { 40% { transform: translateY(-4px); color: var(--brick-d); } }
.price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: var(--brick); color: #fff; }
.price small { display: block; font: 400 12px/1.3 var(--mono); }
.price b { display: block; font: 900 44px/1 var(--display); }
.price .btn:hover { box-shadow: 5px 5px 0 var(--level); }

/* ================= RÉTEGEK ================= */
.layers { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.section-cut { border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; position: sticky; top: 110px; }
.band { position: relative; display: flex; align-items: center; padding: 0 16px; border-top: 2px solid var(--ink); opacity: .35; transition: opacity .4s, box-shadow .4s; overflow: hidden; cursor: pointer; }
.band:first-child { border-top: 0; }
.band span { position: relative; z-index: 1; font: 600 12px/1 var(--mono); }
.band.on { opacity: 1; box-shadow: inset 8px 0 0 var(--ink); }
.b5 { height: 34px; background: #fff; }
.b4 { height: 44px; background: #D9D3C8; }
.b3 { height: 170px; background: var(--brick); color: #fff; align-items: flex-start; padding-top: 14px; }
.b2 { height: 64px; background: #8F8A82; color: #fff; }
.b1 { height: 48px; background: var(--paper); }
.cbricks { position: absolute; inset: 40px 0 0; background: url("img/tegla-minta.svg") 0 0 / 70px 52px repeat; opacity: .9; }
.string { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 2px dashed var(--brick); }
.b4.on, .b5.on { background-image: repeating-linear-gradient(115deg, rgba(31, 29, 27, .05) 0 6px, transparent 6px 14px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button { min-height: 46px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs button:hover:not([aria-selected="true"]) { background: var(--sand); }
.panel { background: var(--paper); border: 2px solid var(--ink); padding: clamp(22px, 3vw, 34px); position: relative; }
.panel .meta { margin: 0; font: 600 13px/1.4 var(--mono); color: var(--brick-d); }
.panel h3 { margin: 8px 0 12px; font-size: 42px; font-weight: 800; line-height: 1; }
.panel p { margin: 0 0 20px; color: var(--ink-2); }
.panel .gets-h { margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.gets li { display: flex; gap: 10px; align-items: baseline; }
.gets li::before { content: ""; flex: none; width: 14px; height: 9px; background: var(--brick); }
.panel.swap > * { animation: swapin .45s var(--ease) both; }
@keyframes swapin { from { opacity: 0; transform: translateY(10px); } }
.pnav { display: flex; gap: 8px; margin-top: 24px; }
.pnav button { width: 48px; height: 48px; border: 2px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center; }
.pnav button svg { width: 20px; height: 20px; }
.pnav #s-prev svg { transform: scaleX(-1); }
.pnav button:hover { background: var(--ink); color: var(--bg); }

/* ================= ELŐTTE / UTÁNA ================= */
.sand { background: var(--sand); border-block: 2px solid var(--ink); }
.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.cases button { min-height: 46px; padding: 0 16px; border: 2px solid var(--ink); background: transparent; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.cases button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ba { position: relative; aspect-ratio: 12 / 7; max-height: 620px; width: 100%; overflow: hidden; border: 2px solid var(--ink); background: var(--paper); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba .before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px; margin-left: -1.5px; background: #fff; }
.ba .tag { position: absolute; top: 16px; padding: 6px 12px; font: 600 12px/1 var(--mono); z-index: 2; pointer-events: none; }
.t-before { left: 16px; background: var(--brick); color: #fff; }
.t-after { right: 16px; background: var(--ink); color: var(--bg); }
.handle { position: absolute; top: 50%; left: var(--split); z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.handle svg { width: 24px; height: 24px; }
.ba:hover .handle { transform: scale(1.08); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba input[type="range"]:focus-visible ~ .handle, .ba:focus-within .handle { outline: 3px solid var(--level); outline-offset: 3px; }
.ba.swap img { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; } }
.ba-cap { margin: 18px 0 0; max-width: 46em; color: var(--ink-2); }
.ba-cap small { font: 400 12px/1 var(--mono); color: var(--muted); }

/* ================= NAPLÓ ================= */
.diary { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; border-top: 6px solid var(--line); }
.diary::before { content: ""; position: absolute; left: 0; top: -6px; height: 6px; width: calc(var(--fill) * 100%); background: var(--ink); transition: width .2s linear; }
.diary li { padding: 26px 20px 0 0; position: relative; }
.diary li::before { content: ""; position: absolute; top: -20px; left: 0; width: 22px; height: 22px; background: var(--bg); border: 3px solid var(--ink); transition: background-color .3s; }
.diary li.hit::before { background: var(--brick); }
.diary .day { display: block; margin: 8px 0 4px; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.diary h3 { font-size: 27px; font-weight: 800; line-height: 1.05; margin-bottom: 8px; }
.diary p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ================= GYIK ================= */
.paper { background: var(--paper); border-top: 2px solid var(--ink); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 700; font-size: 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--mono); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brick-d); }
.faq p { margin: 0 0 20px; max-width: 40em; color: var(--ink-2); }

/* ================= AJÁNLATKÉRÉS ================= */
.brick { background: var(--brick); color: #fff; position: relative; overflow: hidden; }
.brick::before { content: ""; position: absolute; inset: 0; background: url("img/tegla-minta.svg") 0 0 / 120px 88px repeat; pointer-events: none; }
.req-wrap { position: relative; 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(48px, 5.6vw, 84px); line-height: .9; margin-bottom: 18px; }
.req-copy > p { margin: 0 0 28px; max-width: 26em; }
.req-copy ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.req-copy li { display: flex; gap: 14px; }
.req-copy li span { font: 600 15px/1.6 var(--mono); }
.contact { margin: 32px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px 24px; font: 600 15px/1.4 var(--mono); }
.contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.contact svg { width: 18px; height: 18px; }
.req { position: relative; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; box-shadow: 14px 14px 0 rgba(31, 29, 27, .35); }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.f label, .f .lbl { font-weight: 600; font-size: 15px; }
.f label i, .chk i { color: var(--brick-d); font-style: normal; }
.f input, .f select, .f textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; font-size: 16px; transition: box-shadow .2s; }
.f textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; box-shadow: 4px 4px 0 var(--brick); }
.f.bad input, .f.bad textarea { 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(--ink); background: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop svg { width: 28px; height: 28px; flex: none; color: var(--brick-d); }
.drop b { display: block; }
.drop small { display: block; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.drop:hover, .drop.over { background: #FBEDE6; border-color: var(--brick); }
#f-photos:focus-visible + .thumbs, .f:has(#f-photos:focus-visible) .drop { outline: 3px solid var(--brick); 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: 2px solid var(--ink); background: var(--sand); animation: lay .35s var(--drop) both; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.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: 1px 0 0; flex: none; accent-color: var(--brick); }
.req .btn-lg { justify-self: stretch; }
.req .btn-ink:hover { box-shadow: 5px 5px 0 var(--brick); }
.ticket { position: absolute; inset: -2px; z-index: 5; background: var(--level); color: var(--ink); border: 2px solid var(--ink); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(20px) rotate(-1deg); transition: opacity .35s, transform .5s var(--drop), visibility .35s; overflow: auto; background-image: repeating-linear-gradient(-45deg, rgba(31, 29, 27, .06) 0 10px, transparent 10px 20px); }
.ticket.show { opacity: 1; visibility: visible; transform: none; }
.t-no { font: 600 13px/1 var(--mono); }
.ticket h3 { font-size: clamp(44px, 5vw, 60px); line-height: .92; }
.ticket dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; font-size: 15px; border-top: 2px solid var(--ink); padding-top: 12px; }
.ticket dt { font: 600 12px/1.6 var(--mono); }
.ticket dd { margin: 0; overflow-wrap: anywhere; }
.ticket .demo { margin: 4px 0 0; font: 400 13px/1.4 var(--mono); }
.ticket .btn { align-self: flex-start; margin-top: auto; }

/* lábléc, mobil sáv, 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: 900 34px/1 var(--display); text-transform: uppercase; }
.fmeta { margin: 8px 0 0; font: 400 13px/1.4 var(--mono); color: #B9B2A6; }
.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; }
.foot nav a:hover { color: var(--level); }
.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(247, 245, 241, .97); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); border: 2px solid var(--ink); 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); }

/* előtűnés */
.rv { opacity: 0; transform: translateY(32px); 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; }

/* reszponzív */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; left: 0; right: 0; top: var(--top-h, 120px); z-index: 45; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px solid var(--ink); 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 solid var(--line); 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 { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 620px; }
  .calc, .layers, .req-wrap, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .section-cut { position: relative; top: 0; max-width: 520px; }
  .course { flex-wrap: wrap; }
  .svc { flex: 1 1 300px; }
  .half { flex: 1 1 100%; height: 14px; }
  .diary { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; border-top: 0; }
  .diary::before { display: none; }
  .diary li { border-top: 6px solid var(--line); }
  .diary li::before { top: -14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .alert span { display: none; }
  .alert .wrap { justify-content: center; }
  .top .wrap { min-height: 68px; }
  .name { font-size: 23px; }
  .hero h1 { font-size: clamp(58px, 17vw, 86px); }
  .cta .btn { flex: 1 1 100%; }
  .bk { height: 30px; }
  .wall, .row { gap: 4px; }
  .wall { padding: 4px; }
  .sec-head { margin-bottom: 28px; }
  .svc { padding: 22px; min-height: 0; }
  .stage { height: 200px; }
  .stp output { min-width: 66px; font-size: 18px; }
  .res dd { font-size: 28px; }
  .price b { font-size: 38px; }
  .price .btn { flex: 1 1 100%; }
  .diary { grid-template-columns: minmax(0, 1fr); }
  .req { grid-template-columns: minmax(0, 1fr); padding: 20px; box-shadow: 8px 8px 0 rgba(31, 29, 27, .35); }
  .ba { aspect-ratio: 4 / 3.4; }
  .ba img { object-position: 46% 50%; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; border-top: 2px solid var(--ink); }
  .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(--level); }
  .callbar a:last-child { background: var(--brick); color: #fff; }
  .callbar svg { width: 20px; height: 20px; }
  body { padding-bottom: 58px; }
  .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; }
  .bk { opacity: 1; transform: none; }
}
