/* Lépték – közös stíluslap
   Hang: Brygada 1918 (szöveg, címek). Műszer: Public Sans (gombok, űrlap, adatok, címkék).
   Paletta: fehér alap; burgundi, dió, homok, kő csak kiemelésként. */

@font-face {
  font-family: "Brygada 1918";
  src: url("../fonts/brygada-1918-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("../fonts/brygada-1918-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #241e1a;
  --wine: #6b1d2a;
  --wine-deep: #521421;
  --walnut: #7a5841;
  --sand: #eee5d6;
  --sand-soft: #f8f4ee;
  --stone: #6b655e;
  --rule: #ddd4c7;

  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: lining-nums;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.55rem, 6.2vw, 4.6rem); line-height: 1.03; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.8rem); line-height: 1.1; letter-spacing: -0.012em; }
h3 { font-size: 1.375rem; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; hyphens: manual; }
.nowrap { white-space: nowrap; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--walnut);
}
a:hover { color: var(--wine); text-decoration-color: var(--wine); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.95rem/1 var(--sans);
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Műszer-szöveg: minden, ami kattintható, mért vagy címke */
.sans {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}

.lead {
  font-size: clamp(1.2rem, 1.9vw, 1.375rem);
  line-height: 1.55;
  max-width: 37em;
}

.muted { color: var(--stone); }

/* Helyőrző: jól látható, cserélendő adat */
.ph {
  font-family: var(--sans);
  font-size: 0.86em;
  font-variant-numeric: lining-nums;
  background: var(--sand);
  color: var(--ink);
  padding: 0.05em 0.35em;
  border-bottom: 1px dashed var(--walnut);
  border-radius: 2px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Logó: méretarány-vonal + szóvédjegy                                 */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 12px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Fejléc – statikus, nem tapad                                        */

.site-header { padding-block: 1.5rem; }
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.nav__list a { text-decoration: none; color: var(--ink); }
.nav__list a:hover { color: var(--wine); text-decoration: underline; text-decoration-color: var(--wine); }

.menu { display: none; }

/* ------------------------------------------------------------------ */
/* Gombok                                                              */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--wine);
  border-radius: var(--radius);
  background: var(--wine);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }
.btn:disabled { background: var(--rule); border-color: var(--rule); color: var(--stone); cursor: not-allowed; }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--quiet:hover { background: var(--sand-soft); border-color: var(--walnut); color: var(--ink); }

.textlink {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ------------------------------------------------------------------ */
/* Szekciók                                                            */

.section { padding-block: var(--section); }
.section--band { background: var(--sand-soft); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head h2 + p { margin-top: 1.1rem; }

/* ------------------------------------------------------------------ */
/* Nyitó blokk                                                         */

.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: var(--section); }
.hero h1 { max-width: 15.5ch; }
.hero .lead { margin-top: 1.75rem; }
.hero .actions { margin-top: 2.25rem; }

/* A lépték: térképes méretarány-vonal, öt szakasz.
   Asztali nézetben vízszintes, telefonon függőleges. */

.scale { margin-top: clamp(3.5rem, 8vw, 5.5rem); }
.scale__q {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.scale__hint {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--stone);
  margin: 0 0 1.75rem;
}
.scale__bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.scale__item { position: relative; }
.scale__seg {
  position: relative;
  display: block;
  height: 100%;
  padding: 2.4rem 1.1rem 1.1rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 0 0 4px 4px;
  transition: background-color 0.15s ease;
}
/* a sáv: váltakozó telt és üres szakaszok, mint egy térkép méretarány-vonalán */
.scale__seg::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 1rem;
  height: 12px;
  background: var(--wine);
  border: 1.5px solid var(--wine);
  transition: background-color 0.15s ease;
}
.scale__item:nth-child(even) .scale__seg::before { background: var(--paper); }
/* főosztás a szakaszhatárokon */
.scale__tick {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.5px;
  height: 0.7rem;
  background: var(--wine);
}
.scale__tick--end { left: auto; right: 0; }
/* az első szakasz negyedekre osztva */
.scale__minor {
  position: absolute;
  left: 0; right: 0;
  top: 0.62rem;
  height: 0.38rem;
  background-image: linear-gradient(to right, var(--wine) 1.5px, transparent 1.5px);
  background-size: 25% 100%;
  background-repeat: repeat-x;
}
.scale__name {
  display: block;
  font: 600 1.05rem/1.3 var(--sans);
  margin-top: 0.85rem;
}
.scale__desc {
  display: block;
  margin-top: 0.35rem;
  font: 400 0.9rem/1.45 var(--sans);
  color: var(--stone);
}
.scale__seg:hover,
.scale__seg:focus-visible { background: var(--sand-soft); }
.scale__seg:hover::before,
.scale__seg:focus-visible::before { background: var(--wine-deep); border-color: var(--wine-deep); }
.scale__seg:hover .scale__name,
.scale__seg:focus-visible .scale__name {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

/* Egyetlen betöltési mozzanat: a sáv balról jobbra kirajzolódik */
@media (prefers-reduced-motion: no-preference) {
  .js .scale__bar { --draw: 0; }
  .js .scale__seg::before {
    clip-path: inset(0 100% 0 0);
    animation: draw 0.42s cubic-bezier(.3,.7,.2,1) forwards;
    animation-delay: calc(var(--i, 0) * 0.11s + 0.15s);
  }
  .js .scale__tick,
  .js .scale__minor {
    transform: scaleY(0);
    transform-origin: bottom;
    animation: tick 0.25s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.11s + 0.3s);
  }
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes tick { to { transform: scaleY(1); } }

/* ------------------------------------------------------------------ */
/* Helyzetkép: adatok sávdiagrammal                                    */

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.facts h2 { max-width: 19ch; margin-bottom: 1.4rem; }
.facts__text p { max-width: 34em; }

.bars { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; margin: 0; }
.bars__caption { font-size: 0.95rem; font-weight: 600; margin-bottom: 1.4rem; }
.bars__axis {
  position: relative;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0 1rem;
  padding-right: 3.75rem;
}
.bars__row { display: contents; }
.bars__label { font-size: 0.95rem; padding-block: 0.65rem; }
.bars__track { position: relative; padding-block: 0.65rem; }
.bars__fill {
  position: relative;
  display: block;
  height: 1.6rem;
  width: calc(var(--v) / 50 * 100%);
  background: var(--sand);
  border: 1px solid var(--walnut);
}
.bars__fill--hu { background: var(--wine); border-color: var(--wine); }
.bars__fill--approx { border-right: 2px dashed var(--paper); }
.bars__fill--approx::after {
  content: "";
  position: absolute;
  right: -10px; top: -1px; bottom: -1px;
  width: 10px;
  background: repeating-linear-gradient(to bottom, var(--wine) 0 3px, transparent 3px 6px);
}
.bars__value {
  position: absolute;
  left: calc(var(--v) / 50 * 100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.bars__fill--approx + .bars__value { left: calc(var(--v) / 50 * 100% + 1.4rem); }
.bars__scale {
  grid-column: 2;
  position: relative;
  height: 1.75rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--ink);
  font-size: 0.78rem;
  color: var(--stone);
}
.bars__scale span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding-top: 0.55rem;
}
.bars__scale span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0.4rem;
  background: var(--ink);
}
.bars__note { font-size: 0.85rem; color: var(--stone); margin-top: 1.1rem; max-width: 32em; }

.sources {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  counter-reset: src;
  font: 400 0.84rem/1.5 var(--sans);
  color: var(--stone);
}
.sources li { counter-increment: src; display: grid; grid-template-columns: 1.4rem 1fr; margin-bottom: 0.3rem; }
.sources li::before { content: counter(src); font-variant-numeric: lining-nums tabular-nums; }
.sources a { color: var(--stone); }
sup.ref { font-family: var(--sans); font-size: 0.62em; font-variant-numeric: lining-nums; line-height: 0; margin-left: 0.08em; }
sup.ref a { text-decoration: none; color: var(--walnut); }
sup.ref a:hover { color: var(--wine); }

/* ------------------------------------------------------------------ */
/* Elakadás vs. megközelítés táblázat                                  */

.contrast {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.contrast th {
  text-align: left;
  font: 600 0.9rem/1.3 var(--sans);
  color: var(--stone);
  padding: 0 1.5rem 0.9rem 0;
  border-bottom: 1px solid var(--ink);
}
.contrast td {
  vertical-align: top;
  padding: 1.35rem 1.5rem 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.contrast td:first-child { width: 36%; font-weight: 600; }
.contrast td:last-child { padding-right: 0; }

/* ------------------------------------------------------------------ */
/* Szolgáltatások                                                      */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  margin: 0;
}
.service {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--ink);
}
.service h3 { margin-bottom: 0.7rem; }
.service p { max-width: 30em; }
.service ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.98rem/1.5 var(--sans);
}
.service li { padding: 0.32rem 0 0.32rem 1.3rem; position: relative; }
.service li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 0.6rem; height: 1.5px;
  background: var(--walnut);
}
.service__meta {
  margin-top: 1.1rem;
  font: 500 0.88rem/1.4 var(--sans);
  color: var(--stone);
}
.service__meta strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* A bevezetés menete: hetekre osztott vonalzó, méretvonalakkal         */

.timeline { margin-top: 0.5rem; }
.ruler {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 4fr 4fr 3fr;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  margin-bottom: 2.75rem;
}
.ruler__span {
  position: relative;
  padding: 0 0 1.05rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}
/* méretvonal: |———| */
.ruler__span::before {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  bottom: 0.45rem;
  height: 1px;
  background: var(--walnut);
}
.ruler__span::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px;
  bottom: 0.1rem;
  height: 0.7rem;
  border-left: 1px solid var(--walnut);
  border-right: 1px solid var(--walnut);
}
.ruler__span--open::after { border-right: 0; }
.ruler__span--open::before {
  background: linear-gradient(to right, var(--walnut) 55%, transparent 55%) left / 8px 1px repeat-x;
}
.ruler__weeks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  border-top: 1.5px solid var(--ink);
  font-size: 0.75rem;
  color: var(--stone);
}
.ruler__weeks span {
  position: relative;
  padding-top: 0.6rem;
  padding-left: 0.3rem;
}
.ruler__weeks span::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 0.45rem;
  background: var(--ink);
}
.ruler__weeks span:nth-child(odd)::before { height: 0.7rem; }

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}
.phase { counter-increment: phase; }
.phase__n {
  display: block;
  font: 600 0.85rem/1 var(--sans);
  color: var(--wine);
  margin-bottom: 0.7rem;
}
.phase h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.phase__when { display: block; font: 500 0.88rem/1.4 var(--sans); color: var(--stone); margin-bottom: 0.75rem; }
.phase p { font-size: 1.02rem; line-height: 1.55; }

.principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.principle__line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Munkáink                                                            */

.cases { margin: 0; padding: 0; list-style: none; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 1rem clamp(2rem, 5vw, 4.5rem);
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
.case:last-child { border-bottom: 1px solid var(--rule); }
.case__who { font-family: var(--sans); }
.case__sector { display: block; font-weight: 600; font-size: 1.02rem; }
.case__area { display: block; color: var(--stone); font-size: 0.95rem; margin-top: 0.2rem; }
.case h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.case p { max-width: 36em; }
.case__stack { margin-top: 0.9rem; font: 400 0.9rem/1.5 var(--sans); color: var(--stone); }

/* ------------------------------------------------------------------ */
/* Kutatás – ajánlat                                                    */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.offer h2 { max-width: 16ch; margin-bottom: 1.4rem; }
.offer__panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--wine);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.offer__panel h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.offer__panel h3:not(:first-child) { margin-top: 1.75rem; }
.ticks { margin: 0; padding: 0; list-style: none; font: 400 1rem/1.5 var(--sans); }
.ticks li { position: relative; padding: 0.4rem 0 0.4rem 1.7rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.78rem;
  width: 0.75rem; height: 0.42rem;
  border-left: 2px solid var(--wine);
  border-bottom: 2px solid var(--wine);
  transform: rotate(-45deg);
}
.ticks--plain li::before {
  border: 0;
  width: 0.6rem; height: 1.5px;
  top: 1.05rem;
  transform: none;
  background: var(--walnut);
}
.offer__note { margin-top: 1.5rem; font-size: 1.02rem; }
.offer .actions { margin-top: 2rem; }
.small { font: 400 0.9rem/1.5 var(--sans); color: var(--stone); }

/* ------------------------------------------------------------------ */
/* Rólunk                                                              */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.about h2 { margin-bottom: 1.4rem; }
.about__text p { max-width: 34em; }
.ledger {
  margin: 0;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  border-top: 1px solid var(--ink);
}
.ledger div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
}
.ledger dt { color: var(--stone); }
.ledger dd { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------------ */
/* Gyakori kérdések                                                    */

.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.9rem;
  height: 1.5px;
  background: var(--wine);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--wine); }
.faq__body { padding: 0 3rem 1.5rem 0; max-width: 42em; }

/* ------------------------------------------------------------------ */
/* Záró felhívás                                                        */

.closing { border-top: 1px solid var(--ink); padding-top: clamp(2.5rem, 6vw, 4rem); }
.closing h2 { margin-bottom: 1.1rem; }
.closing p { max-width: 36em; }
.closing .actions { margin-top: 2rem; }

/* ------------------------------------------------------------------ */
/* Lábléc                                                              */

.site-footer {
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--rule);
  font: 400 0.92rem/1.6 var(--sans);
  color: var(--stone);
}
.site-footer__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer .brand { margin-bottom: 0.9rem; }
.site-footer p { margin: 0 0 0.3rem; hyphens: manual; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--ink); }
.site-footer .site-footer__legal { margin-top: 2.5rem; font-size: 0.82rem; }

/* ------------------------------------------------------------------ */
/* Felmérés oldal                                                      */

.site-header--min .site-header__row { justify-content: space-between; }

.funnel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  grid-template-areas:
    "intro quiz"
    "details quiz";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(2.5rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: var(--section);
  align-items: start;
}
.funnel__intro { grid-area: intro; }
.funnel__details { grid-area: details; }
.funnel__quiz { grid-area: quiz; position: relative; }
.funnel h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); max-width: 12ch; }
.funnel__intro .lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.funnel__details { margin-top: 2.5rem; }
.funnel__details h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.funnel__details h2:first-child { margin-top: 0; }
.funnel__details p { font-size: 1.05rem; }

.quiz {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  min-height: 34rem;
  display: flex;
  flex-direction: column;
}
.quiz__progress {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.quiz__ruler {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--steps, 11), 1fr);
  align-items: end;
  height: 0.9rem;
  border-bottom: 1.5px solid var(--rule);
}
.quiz__ruler i {
  display: block;
  height: 0.45rem;
  border-left: 1.5px solid var(--rule);
}
.quiz__ruler i.is-done { border-color: var(--wine); }
.quiz__ruler i.is-current { border-color: var(--wine); height: 0.9rem; }
.quiz__ruler-fill {
  position: absolute;
  left: 0;
  bottom: -1.5px;
  height: 1.5px;
  background: var(--wine);
  width: var(--done, 0%);
  transition: width 0.3s ease;
}
.quiz__count { font-size: 0.85rem; color: var(--stone); white-space: nowrap; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.step[hidden] { display: none; }
.step__title {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.2;
  text-wrap: balance;
  outline: none;
}
.step__title + * { clear: both; }
.step__help { font: 400 0.95rem/1.5 var(--sans); color: var(--stone); margin: 0.6rem 0 0; }
.options { display: grid; gap: 0.55rem; margin-top: 1.5rem; }
.options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.opt { position: relative; display: block; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.opt__box {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.opt__box::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border: 1.5px solid var(--stone);
  border-radius: 50%;
  background: var(--paper);
}
.opt input[type="checkbox"] + .opt__box::before { border-radius: 3px; }
.opt__label { display: block; font-size: 1rem; font-weight: 500; line-height: 1.35; }
.opt__desc { display: block; font-size: 0.88rem; color: var(--stone); line-height: 1.4; margin-top: 0.2rem; }
.opt__box:hover { border-color: var(--walnut); background: var(--sand-soft); }
.opt input:checked + .opt__box { border-color: var(--wine); background: var(--sand-soft); }
.opt input:checked + .opt__box::before {
  border-color: var(--wine);
  background: radial-gradient(circle, var(--wine) 0 42%, var(--paper) 46%);
}
.opt input[type="checkbox"]:checked + .opt__box::before {
  background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 85% no-repeat;
}
.opt input:focus-visible + .opt__box { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:disabled + .opt__box { opacity: 0.45; cursor: not-allowed; }

.opt-other { margin-top: 0.6rem; }

.field { display: block; margin-top: 1.1rem; font-family: var(--sans); }
.field__label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.field__label .muted { font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: 400 1.02rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--wine); border-width: 1.5px; }
.field__error { display: block; color: var(--wine); font: 500 0.88rem/1.4 var(--sans); margin-top: 0.35rem; }
.field__error:empty { display: none; }
.fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }

.check {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
  font: 400 0.92rem/1.5 var(--sans);
  cursor: pointer;
}
.check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--wine); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
}
.step__nav .btn--quiet[hidden] { display: none; }
.step__skip { font: 500 0.95rem/1 var(--sans); background: none; border: 0; color: var(--stone); text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; padding: 0.5rem; }
.step__skip:hover { color: var(--wine); }
.quiz__error { font: 500 0.92rem/1.4 var(--sans); color: var(--wine); margin-top: 1rem; }
.quiz__error:empty { display: none; }

/* Eredmény */
.result h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.2; }
.result__scale { margin: 1.75rem 0 1.5rem; }
.mini-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  font-family: var(--sans);
}
.mini-scale span {
  position: relative;
  height: 10px;
  border: 1.5px solid var(--wine);
  background: var(--paper);
}
.mini-scale span + span { border-left: 0; }
.mini-scale span.is-reached { background: var(--wine); }
.mini-scale span.is-here::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.85rem;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--ink);
  transform: translateX(-50%);
}
.mini-scale__labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font: 400 0.8rem/1.3 var(--sans);
  color: var(--stone);
  margin-top: 0.5rem;
}
.mini-scale__labels .is-here { color: var(--ink); font-weight: 600; }
.result__block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.result__block h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.result__block p { font-size: 1.05rem; }
.result__cta { margin-top: 1.75rem; }
.result__cta .btn { margin-top: 1rem; }

.funnel-faq { padding-bottom: var(--section); }
.funnel-faq h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.75rem; }

/* Adatkezelési oldal */
.legal { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4rem) var(--section); }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.45rem; margin: 2.5rem 0 0.75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }

/* ------------------------------------------------------------------ */
/* Töréspontok                                                         */

@media (max-width: 1000px) {
  .nav__list { display: none; }
  .menu { display: block; position: relative; font-family: var(--sans); }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font: 600 0.95rem/1 var(--sans);
    padding: 0.75rem 0.25rem;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { color: var(--wine); }
  .menu ul {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
    min-width: 15rem;
    margin: 0.4rem 0 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px -14px rgba(36, 30, 26, 0.35);
  }
  .menu a { display: block; padding: 0.65rem 1.1rem; text-decoration: none; color: var(--ink); }
  .menu a:hover { background: var(--sand-soft); color: var(--wine); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .ruler { display: none; }
  .phase { padding-top: 1rem; border-top: 1.5px solid var(--ink); }
}

@media (max-width: 900px) {
  .facts,
  .offer,
  .about,
  .principle { grid-template-columns: 1fr; }
  .funnel {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "quiz" "details";
  }
  .funnel__intro { margin-bottom: 2rem; }
  .funnel__details { margin-top: 3rem; }
  .site-footer__row { grid-template-columns: 1fr 1fr; }
  .site-footer__row > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .header-cta { display: none; }
  .services { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 0.6rem; }
  .contrast thead { display: none; }
  .contrast, .contrast tbody, .contrast tr, .contrast td { display: block; width: 100%; }
  .contrast tr { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
  .contrast td { border: 0; padding: 0; }
  .contrast td:first-child { width: 100%; margin-bottom: 0.5rem; }

  /* a lépték függőlegesen */
  .scale__bar { grid-template-columns: 1fr; }
  .scale__seg { padding: 0.9rem 0.75rem 1rem 3rem; border-radius: 0 4px 4px 0; }
  .scale__seg::before {
    top: 0; bottom: 0;
    left: 1.35rem; right: auto;
    width: 12px; height: auto;
  }
  .scale__tick { top: 0; left: 0.6rem; width: 0.7rem; height: 1.5px; }
  .scale__tick--end { top: auto; bottom: 0; right: auto; left: 0.6rem; }
  .scale__minor {
    top: 0; bottom: 0;
    left: 0.95rem; right: auto;
    width: 0.38rem; height: auto;
    background-image: linear-gradient(to bottom, var(--wine) 1.5px, transparent 1.5px);
    background-size: 100% 25%;
    background-repeat: repeat-y;
  }
  .scale__name { margin-top: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .js .scale__seg::before { clip-path: inset(0 0 100% 0); }
    .js .scale__tick, .js .scale__minor { transform: scaleX(0); transform-origin: right; animation-name: tickx; }
  }

  .bars__axis { grid-template-columns: 6.5rem 1fr; }
  .phases { grid-template-columns: 1fr; }
  .options--two, .fields-two { grid-template-columns: 1fr; }
  .quiz { min-height: 0; }
  .faq summary { font-size: 1.1rem; }
  .faq__body { padding-right: 0; }
}
@keyframes tickx { to { transform: scaleX(1); } }

@media (max-width: 480px) {
  .site-footer__row { grid-template-columns: 1fr; }
  .mini-scale__labels span:not(.is-here) { visibility: hidden; }
  .mini-scale__labels span.is-here { white-space: nowrap; }
  .ledger div { grid-template-columns: 6.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header nav, .menu, .actions, .skip { display: none !important; }
  body { font-size: 11pt; }
  .section { padding-block: 1.5rem; }
}
