/* RBS FLOW Bt. – weboldal stíluslap
   Ötlet: a főoldal egy kiürítési terv. Hat helyiség (szolgáltatás), egy folyosó, egy kijárat (ajánlatkérés). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f5f3ec;
  --paper-2: #ebe8dd;
  --paper-3: #e1ddcf;
  --ink: #16201b;
  --ink-2: #47524b;
  --line: #b7bcb1;
  --line-soft: #d6d6cb;
  --green: #00764a;
  --green-dark: #005b39;
  --green-tint: #dcebe2;
  --red: #c42b1c;
  --red-tint: #f6ddd7;
  --wall: 3px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-stretch: 78%; font-weight: 750; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); line-height: 1.1; }
::selection { background: var(--green); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand b { font-stretch: 72%; font-weight: 800; font-size: 26px; letter-spacing: .01em; line-height: 1; }
.brand span { color: var(--ink-2); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; position: relative; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--green); background: var(--green); color: #fff;
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(0, 91, 57, .55); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
.btn--small { min-height: 44px; padding: 9px 16px; font-size: 15px; }

.link {
  font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s var(--ease); padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; }
.prose a, .footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .footer a:hover { color: var(--green); }

/* ---------- Szekciók ---------- */
main > section { padding-block: clamp(72px, 9vw, 128px); }
main > section + section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 52rem; }
.eyebrow { color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* belépő animáció a nyitóképernyőn (egyszer, betöltéskor) */
[data-enter] > * { animation: enter .8s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Nyitókép (főoldal) ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 26px; justify-items: start; }
.hero-text .lead { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 2px; }
.facts b { font-stretch: 78%; font-weight: 750; font-size: 1.6rem; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--ink-2); }

/* Jelmagyarázat-tábla (a terv fejléce) */
.legend {
  border: var(--wall) solid var(--ink); background: var(--paper); position: relative;
  box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line);
}
.legend-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.legend-head .mono { font-size: 12px; }
.legend ol { list-style: none; margin: 0; padding: 0; }
.legend li + li { border-top: 1px solid var(--line-soft); }
.legend a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 11px 18px; text-decoration: none; transition: background-color .2s var(--ease); }
.legend a:hover { background: var(--paper-2); }
.legend a:hover .legend-go { transform: translateX(3px); color: var(--green); }
.legend .sym { width: 40px; height: 40px; }
.legend-name { font-weight: 600; line-height: 1.25; }
.legend-name small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-2); font-weight: 500; }
.legend-go { transition: transform .2s var(--ease), color .2s; color: var(--ink-2); }
.legend-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 18px; border-top: 2px solid var(--ink); font-size: 14px; }
.legend-foot span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.legend-arrow { width: 26px; height: 10px; color: var(--green); }
.legend-group { padding: 8px 18px 6px; background: var(--paper-2); color: var(--ink-2); font-size: 11.5px; }

/* ---------- Alaprajz ---------- */
.plan-sec { --grid: color-mix(in srgb, var(--line-soft) 55%, transparent); background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
  var(--paper); }

.plan { position: relative; border: calc(var(--wall) * 2) solid var(--ink); background: var(--paper); }
.wing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.wing-label {
  position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  background: var(--ink); color: var(--paper); padding: 5px 12px; white-space: nowrap;
}
.wing--a .wing-label { top: 0; }
.wing--b .wing-label { top: 100%; }

.room {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 400px; padding: 30px 28px 34px; text-decoration: none; color: var(--ink);
  background: var(--paper); transition: background-color .25s var(--ease);
}
.room + .room { border-left: var(--wall) solid var(--ink); }
.wing--a .room { border-bottom: var(--wall) solid var(--ink); }
.wing--b .room { border-top: var(--wall) solid var(--ink); }
.room:hover { background: var(--paper-2); }
.room-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.room-code { color: var(--ink); }
.room .sym { width: 64px; height: 64px; margin: 6px 0 4px; transition: transform .35s var(--ease); }
.room:hover .sym { transform: translateY(-3px); }
.room h3 { background: linear-gradient(var(--green), var(--green)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 4px; align-self: flex-start; }
.room:hover h3 { background-size: 100% 3px; }
.room p { margin: 0; color: var(--ink-2); }
.room ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15.5px; }
.room li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.room li::before { content: ""; width: 8px; height: 8px; border: 2px solid var(--ink); transform: translateY(-1px); }
.room-go { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); }
.room-go .arrow { transition: transform .2s var(--ease); }
.room:hover .room-go .arrow { transform: translateX(4px); }
.room:focus-visible { outline-offset: -8px; }

/* Ajtó: rés a falon + nyitásív, a folyosó felé */
.door { position: absolute; width: 58px; height: 58px; right: 32px; pointer-events: none; z-index: 2; color: var(--ink); }
.wing--a .door { bottom: calc(var(--wall) * -1); transform: scaleX(-1); }
.wing--b .door { top: calc(var(--wall) * -1); transform: scale(-1, -1); }
.door::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--wall); background: var(--paper); }
.room:hover .door::before { background: var(--paper-2); }
.door svg { position: absolute; inset: 0; overflow: visible; }
.door .leaf { transform-origin: 0 58px; transition: transform .45s var(--ease); }
.room:hover .door .leaf { transform: rotate(-28deg); }

/* Folyosó + menekülési útvonal */
.corridor { position: relative; height: 112px; display: flex; align-items: center; }
.corridor-label { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); color: var(--ink-2); font-size: 11.5px; }
.route { position: absolute; left: 40px; right: 40px; top: 50%; height: 4px; margin-top: -2px; background: var(--green); transform-origin: left center; }
.js .route { transform: scaleX(0); transition: transform 2s var(--ease) .1s; }
.js .plan.is-drawn .route { transform: none; }
.chevrons { position: absolute; left: 210px; right: 250px; top: 50%; transform: translateY(-50%); display: flex; justify-content: space-between; color: var(--green); pointer-events: none; }
.chevrons svg { width: 16px; height: 16px; background: var(--paper); }
.js .chevrons svg { opacity: 0; transition: opacity .3s var(--ease); }
.js .plan.is-drawn .chevrons svg { opacity: 1; }
.js .plan.is-drawn .chevrons svg:nth-child(2) { transition-delay: .3s; }
.js .plan.is-drawn .chevrons svg:nth-child(3) { transition-delay: .6s; }
.js .plan.is-drawn .chevrons svg:nth-child(4) { transition-delay: .9s; }
.js .plan.is-drawn .chevrons svg:nth-child(5) { transition-delay: 1.2s; }
.js .plan.is-drawn .chevrons svg:nth-child(6) { transition-delay: 1.5s; }
.here { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; z-index: 2; background: var(--paper); padding: 4px 10px 4px 4px; }
.here .mono { font-size: 11.5px; }

.exit {
  position: absolute; right: calc(var(--wall) * -2); top: 50%; transform: translateY(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px 14px 20px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--radius) 0 0 var(--radius);
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.exit:hover { background: var(--green-dark); padding-right: 24px; }
.exit .mono { font-size: 12px; opacity: .85; }
.exit-text { display: grid; line-height: 1.15; }
.exit-text strong { font-size: 17px; font-stretch: 85%; }
.exit svg { width: 30px; height: 30px; }

.plan-note { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Rólunk ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-side .big-number { margin: 0; max-width: none; font-stretch: 62%; font-weight: 800; font-size: clamp(9rem, 6rem + 12vw, 17rem); line-height: .8; letter-spacing: -0.03em; color: var(--ink); }
.big-number span { color: var(--red); }
.about-side { display: grid; gap: 22px; }
.about-side p { margin: 0; font-size: 1.15rem; max-width: 22em; }
.about-main { display: grid; gap: 28px; }
.about-main h2 { max-width: 15em; }
.degrees { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.degrees li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.degrees b { font-weight: 600; }
.degrees span { display: block; color: var(--ink-2); font-size: 15px; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.areas div { padding: 18px 20px; }
.areas div + div { border-left: 2px solid var(--ink); }
.areas .mono { color: var(--ink-2); display: block; margin-bottom: 6px; font-size: 11.5px; }
.areas p { margin: 0; font-weight: 600; line-height: 1.35; }

/* ---------- Referenciák ---------- */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); background: var(--paper); }
.ref { padding: 28px 26px 30px; display: grid; gap: 14px; align-content: start; }
.ref + .ref { border-left: 2px solid var(--ink); }
.ref .mono { color: var(--green-dark); }
.ref h3 { font-size: 1.5rem; }
.ref p { margin: 0; color: var(--ink-2); }
.ref-note { margin-top: 20px; color: var(--ink-2); font-size: 15px; max-width: 46em; }

/* ---------- Ajánlatkérés (Kijárat) ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.exit-sign { display: inline-flex; align-items: center; gap: 12px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.exit-sign svg { width: 26px; height: 26px; }
.contact-side { display: grid; gap: 22px; justify-items: start; }
.contact-side p { margin: 0; }
.mail { font-size: 1.25rem; font-weight: 600; }

.form { display: grid; gap: 20px; border: var(--wall) solid var(--ink); padding: clamp(22px, 3.5vw, 40px); background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: 15.5px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16.5px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink-2); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2316201b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 14.5px; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15.5px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-foot p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 30em; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--green-tint); color: var(--green-dark); }
.form-status.err { background: var(--red-tint); color: #8d1d12; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Aloldalak ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); }
.crumbs a { text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--green); }
.sub-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.sub-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sub-hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.4rem); }
.sheet {
  border: var(--wall) solid var(--ink); aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center;
  --grid: color-mix(in srgb, var(--line-soft) 70%, transparent);
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 20px 20px, var(--paper);
  box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line);
}
.sheet .sym { width: 52%; height: auto; }
.sheet-tag { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 2px solid var(--ink); background: var(--paper); }
.sheet-code { position: absolute; top: 16px; left: 16px; background: var(--ink); color: var(--paper); padding: 5px 10px; }
.sheet .door { right: 34px; bottom: auto; top: calc(var(--wall) * -1); transform: scale(-1, -1); }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.feature + .feature { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature-body { display: grid; gap: 16px; border-top: 2px solid var(--ink); padding-top: 18px; }
.feature-body p { margin: 0; font-size: 1.12rem; }
.feature-body .ref-line { font-size: 15.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.feature-body .ref-line b { color: var(--ink); }

.svc-group + .svc-group { margin-top: clamp(40px, 5vw, 60px); }
.svc-group h3 { margin-bottom: 18px; font-size: 1.35rem; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); }
.svc li:nth-child(odd) { padding-right: 28px; }
.svc li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc .mono { color: var(--ink-2); padding-top: 4px; }
.svc b { display: block; font-weight: 650; font-size: 1.08rem; line-height: 1.3; margin-bottom: 4px; }
.svc span { color: var(--ink-2); font-size: 15.5px; }

.neighbours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 2px solid var(--ink); }
.neighbours a { display: grid; gap: 10px; padding: 18px 16px 20px; text-decoration: none; transition: background-color .2s var(--ease); min-height: 150px; align-content: start; }
.neighbours a + a { border-left: 2px solid var(--ink); }
.neighbours a:hover { background: var(--paper-2); }
.neighbours .sym { width: 36px; height: 36px; }
.neighbours b { font-weight: 650; line-height: 1.25; }
.neighbours .mono { color: var(--ink-2); font-size: 11px; }

/* ---------- Jogi oldalak ---------- */
.legal { padding-block: clamp(48px, 6vw, 88px); }
.legal .wrap { max-width: calc(820px + 2 * var(--pad)); }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 15em) 1fr; margin: 0; border-top: 2px solid var(--ink); }
.legal dt, .legal dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal dt { font-weight: 600; padding-right: 18px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* ---------- Lábléc ---------- */
.footer { border-top: var(--wall) solid var(--ink); padding-block: 40px 44px; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer .brand b { font-size: 22px; }
.footer p { margin: 0; color: var(--ink-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.footer .made { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--ink-2); }

/* ---------- Szimbólumok ---------- */
.sym { color: var(--ink); }
.sym .r { color: var(--red); stroke: var(--red); }
.sym .g { color: var(--green); stroke: var(--green); }

/* ---------- Tördelés: tablet ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .room { min-height: 410px; padding: 26px 22px 30px; }
  .neighbours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .neighbours a:nth-child(4) { border-left: 0; }
  .neighbours a:nth-child(n+4) { border-top: 2px solid var(--ink); }
}
@media (max-width: 900px) {
  .hero .wrap, .sub-hero .wrap, .about .wrap, .contact .wrap, .feature { grid-template-columns: 1fr; }
  .hero, .sub-hero { min-height: 0; }
  .legend { max-width: 560px; }
  .sheet { max-width: 360px; aspect-ratio: 1 / 1; }
  .wing { grid-template-columns: 1fr; }
  .room + .room { border-left: 0; border-top: var(--wall) solid var(--ink); }
  .wing--a .room:last-child { border-bottom: var(--wall) solid var(--ink); }
  .wing--a .room { border-bottom: 0; }
  .wing--b .room:first-child { border-top: var(--wall) solid var(--ink); }
  .room { min-height: 0; padding: 30px 24px 34px; }
  .wing--a .room:not(:last-child) .door, .wing--b .room:not(:first-child) .door { display: none; }
  .refs { grid-template-columns: 1fr; }
  .ref + .ref { border-left: 0; border-top: 2px solid var(--ink); }
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(n) { padding: 18px 0 20px; border-left: 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > :first-child { grid-column: 1 / -1; }
}
/* ---------- Tördelés: telefon ---------- */
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .brand span { display: none; }
  .actions { width: 100%; }
  .actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .areas { grid-template-columns: 1fr; }
  .areas div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .corridor { height: auto; display: block; padding: 66px 16px 18px; }
  .here { top: 18px; left: 14px; transform: none; }
  .exit { position: relative; top: auto; right: auto; transform: none; width: 100%; border-radius: var(--radius); justify-content: center; }
  .exit:hover { padding-right: 18px; }
  .corridor-label { display: none; }
  .route { top: 36px; left: 150px; right: 20px; }
  .chevrons { left: 170px; right: 20px; top: 28px; transform: none; }
  .chevrons svg:nth-child(n+4) { display: none; }
  .neighbours { grid-template-columns: 1fr 1fr; }
  .neighbours a:nth-child(n) { border-left: 0; border-top: 0; }
  .neighbours a:nth-child(even) { border-left: 2px solid var(--ink); }
  .neighbours a:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .neighbours a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .legend a { grid-template-columns: 38px 1fr auto; padding: 11px 14px; }
  .legend .sym { width: 34px; height: 34px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .degrees li { grid-template-columns: 56px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .route { transform: none; }
  .js .chevrons svg { opacity: 1; }
}
