/* ============================================================================
   RR AESTHETIC CLINIC — DESIGN LAB
   Homepage replica. Local only, never deploys. Consumes the locked token set
   from ../design/rr-brand-tokens.css and adds nothing to it: if a value is not
   a token, it is a layout number (a column split, an aspect ratio), never a
   colour and never a typeface.

   Section order matches the client's mockup exactly:
   header · hero · stat band · rólunk · kezeléseink · eredmények · vélemények ·
   footer + map.
   ============================================================================ */

/* --------------------------------------------------------------- primitives */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sprite [id],
svg use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#i-facebook,
#i-facebook path {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--color-primary-deep);
  color: var(--color-primary-contrast);
  font: var(--weight-label) var(--font-size-xs) / 1 var(--font-ui);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus {
  top: var(--space-2);
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Scroll rails and full-bleed art are the two things that reliably widen the
   document on a phone; this keeps the page honest at 390px. */
html,
body {
  overflow-x: clip;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

/* The micro-caps label layer. This is where the brand book's tracking-300
   instruction lives — eyebrows, stat labels, nav, buttons, footer heads all
   descend from here. */
.eyebrow {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.eyebrow--accent {
  color: var(--color-accent-deep);
}
.eyebrow--section {
  color: var(--color-primary-deepest);
  text-align: center;
}

/* Hairline rules. One device, three placements — the mockup mixes a rule under
   the treatments eyebrow with em-dash flanks around the results eyebrow; that
   inconsistency is resolved here in favour of the rule. */
.rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin-block: var(--space-2);
  background: var(--color-accent);
}
.rule--center {
  margin-inline: auto;
  margin-block: 0.875rem 0;
}

/* display/border reset: the token file's element-level header rule would
   otherwise turn any section head into a flex bar with a bottom hairline. */
.section__head {
  display: block;
  margin-bottom: var(--space-4);
  padding: 0;
  border: 0;
  text-align: center;
}
.section__head--split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: var(--space-3);
}
.section__head--split .section__head-center {
  grid-column: 2;
}
.section__head--split .textlink {
  grid-column: 3;
  justify-self: end;
}
.section__foot {
  margin-top: var(--space-4);
  text-align: center;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem; /* 48px — the mockup's buttons are ~34px; raised to the
                       WCAG 2.5.8 target size. Deliberate upgrade. */
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn--sm {
  min-height: 2.5rem;
  padding: 0 var(--space-2);
}
.btn--solid {
  background: var(--color-primary-deep);
  color: var(--color-primary-contrast);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--color-primary-deepest);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary-deepest);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
}
.textlink svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-accent-deep);
  transition: transform var(--dur) var(--ease);
}
.textlink:hover svg {
  transform: translateX(0.25rem);
}

/* -------------------------------------------------------------------- logo */

/* The client supplied a flat JPG only. assets/img/*-mask.png are alpha masters
   recovered from it, so the mark can be filled with the exact brand hex rather
   than the JPG's slightly-off sage. A vector master is a kickoff ask. */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  text-decoration: none;
}
.logo__mark {
  display: block;
  width: 3.25rem;
  aspect-ratio: 369 / 336;
  background-color: var(--color-primary);
  -webkit-mask: url('img/logo-monogram-mask.png') left center / contain no-repeat;
  mask: url('img/logo-monogram-mask.png') left center / contain no-repeat;
}
.logo__mark--lg {
  width: 4.5rem;
}
.logo__word {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
}

/* ------------------------------------------------------------------ header */

/* display:block overrides the token file's element-level header rule. Left as
   flex, the header became a flex container whose single child could not shrink
   below its min-content and pushed the document 3px wider than the phone. */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: block;
  padding: var(--space-2) 0;
  border: 0;
}
/* A linen wash under the header. The nav overlaps the hero photograph on the
   right; without this the type is at the mercy of whatever image is loaded. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(253, 245, 235, 0.92) 0%,
    rgba(253, 245, 235, 0.72) 55%,
    rgba(253, 245, 235, 0) 100%
  );
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding-block: 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--font-size-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--font-size-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--color-text);
}
.lang__caret {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 1.375rem;
  height: 1px;
  margin-inline: auto;
  background: var(--color-text);
}

/* -------------------------------------------------------------------- hero */

/* The mockup splits the hero 50/50. Measured, its label layer is sub-10px —
   the only reason the booking button and the film link share a line there. At a
   legible 12px the pair needs 442px, so the copy column takes 55% and the
   portrait keeps its mockup width (41% of 55% = 325px, the mockup's 323px).
   The interior photograph is the only thing that gives ground. */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: clamp(34rem, 41vw, 41rem);
  background: var(--color-bg);
}
.hero__copy {
  position: relative;
  display: flex;
  /* Bottom-anchored, not centred: in the mockup the CTA row sits close to the
     stat band and the empty cream is above the eyebrow, not below the buttons. */
  align-items: flex-end;
  /* Header clearance lives on the container, not on the text block: as padding
     on the child it inflates the block's height and drags the whole column up. */
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}
.hero__portrait {
  position: absolute;
  /* The cream above the head, as in the mockup — and enough of it that the hair
     starts below the logo lockup instead of behind the wordmark. */
  inset: 4.25rem auto 0 0;
  width: 41%;
  margin: 0;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 24%;
  /* The mockup dissolves the portrait into the cream field on its right rather
     than cutting it with an edge. The bottom stays hard: it meets the stat band. */
  -webkit-mask: linear-gradient(to right, #000 56%, transparent 97%);
  mask: linear-gradient(to right, #000 56%, transparent 97%);
}
/* Explicit width, not content-sized: as a bare flex item the block sized itself
   to whatever the CTA row had already wrapped to, so the row could never
   un-wrap. Pinning the column breaks that circularity. */
.hero__text {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(30rem, 100%);
  margin-left: 37%;
  padding-right: var(--space-3);
}
/* Capped below the global h1 so "TUDOMÁNYA" cannot cross into the photograph;
   the hero is the one place where the column, not the scale, has the last word. */
.hero h1 {
  margin-block: 0.5rem 0;
  font-size: clamp(2.25rem, 3.9vw, 3.4375rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero .rule {
  margin-block: 1.375rem;
}
.lead {
  margin: 0;
  max-width: 22rem;
  font-size: var(--font-size-lead);
  line-height: 1.65;
  color: var(--color-text-muted);
}
/* One row, as in the mockup: the booking button and the film link are a pair,
   and stacking them turns a single decision into two. */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-3);
}
.hero__cta .btn {
  padding-inline: 1.25rem; /* the pair has to clear the column in one line */
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.play__disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease);
}
.play__disc svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: var(--color-accent-deep);
  transition: fill var(--dur) var(--ease);
}
.play:hover .play__disc {
  background: var(--color-accent);
}
.play:hover .play__disc svg {
  fill: var(--color-bg);
}
.play__label {
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-text);
}

.hero__scene {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* --------------------------------------------------------------- stat band */

.stats {
  background: var(--color-primary-deep);
  color: var(--color-primary-contrast);
  padding-block: var(--space-3);
}
.stats__list {
  display: grid;
  /* minmax(0,1fr), not 1fr: a plain 1fr track takes the item's min-content as
     its floor, and the longest label pushed the band past the viewport. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  list-style: none;
  padding-block: 0;
  margin-block: 0;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-inline: clamp(0.5rem, 1.1vw, 1.125rem);
}
.stat + .stat {
  border-left: 1px solid rgba(253, 245, 235, 0.26);
}
.stat__icon {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
  margin-top: 0.35rem;
  color: rgba(253, 245, 235, 0.9);
}
.stat__figure {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-display);
}
.stat__figure--word {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.28rem;
}
.stat__label {
  margin: 0.6rem 0 0;
  font-family: var(--font-ui);
  font-size: var(--font-size-2xs);
  font-weight: var(--weight-label);
  line-height: 1.75;
  letter-spacing: 0.155em; /* the widest label ("személyre szabott") sets this */
  text-transform: uppercase;
  color: rgba(253, 245, 235, 0.94);
}

/* ------------------------------------------------------------------ rólunk */

.about {
  display: grid;
  grid-template-columns: 43fr 57fr;
  background: var(--color-surface);
}
.about__copy {
  display: flex;
  align-items: center;
  padding: var(--section-pad) var(--space-4) var(--section-pad)
    max(var(--gutter), calc((100vw - var(--content-max)) / 2));
}
.about__text {
  width: min(26rem, 100%);
}
.about h2 {
  margin-block: 0.75rem 0;
}
.about__body {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
}
.about__signature {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--color-accent-deep);
}
.about__role {
  margin: 0.5rem 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--color-text);
}
.about__portrait {
  position: relative;
  margin: 0;
  min-height: 24rem;
  overflow: hidden;
}
.about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 34%;
}

/* ------------------------------------------------------------- kezeléseink */

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  display: block;
  aspect-ratio: 160 / 183;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover img,
.card:focus-visible img {
  transform: scale(1.045);
}
/* Deeper than the mockup's overlay on purpose: at the mockup's opacity the
   description text on the pale laser card sits under 3:1. */
.card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 20, 17, 0.9) 0%,
    rgba(24, 20, 17, 0.72) 34%,
    rgba(24, 20, 17, 0.28) 62%,
    rgba(24, 20, 17, 0.12) 100%
  );
}
.card__body {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: var(--space-2) 1.125rem 1.125rem;
  color: var(--color-on-image);
}
.card__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.875rem;
  color: var(--color-on-image);
}
.card__title {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.35;
}
.card__desc {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(253, 245, 235, 0.86);
}
.card__arrow {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.875rem;
  color: var(--color-on-image);
  transition: transform var(--dur) var(--ease);
}
.card:hover .card__arrow,
.card:focus-visible .card__arrow {
  transform: translateX(0.3rem);
}

/* --------------------------------------------------------------- eredmények */

.results__viewport {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
}
.results__nav {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-text);
  transition: color var(--dur) var(--ease);
}
.results__nav:hover {
  color: var(--color-primary-deepest);
}
.results__nav svg {
  width: 1.5rem;
  height: 1.5rem;
}
.results__track {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.results__track::-webkit-scrollbar {
  display: none;
}

/* A real comparison slider, not the mockup's decorative knob: draggable,
   keyboard-operable, and announced. */
.ba {
  position: relative;
  flex: none;
  height: clamp(12.5rem, 21vw, 18.75rem);
  aspect-ratio: var(--ratio) / 1;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: center;
  --pos: 50%;
}
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(253, 245, 235, 0.95);
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  grid-auto-flow: column;
  place-items: center;
  gap: 1px;
  width: 2.125rem;
  height: 2.125rem;
  margin: -1.0625rem 0 0 -1.0625rem;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 1px 6px rgba(43, 43, 43, 0.22);
}
.ba__knob svg {
  width: 0.75rem;
  height: 0.75rem;
}
/* The range input is the actual control: full-bleed, invisible, on top. */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}
.ba__range:focus-visible {
  opacity: 1;
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

/* --------------------------------------------------------------- vélemények */

.quotes {
  overflow: hidden;
  /* The closing section gets its own headroom so the signature mark has a
     place to stand instead of crossing the heading. */
  padding-top: calc(var(--section-pad) + 6.5rem);
}
/* SIGNATURE ELEMENT — vaknyomás. The brand book lists blind emboss as one of
   four sanctioned logo applications; on screen that is a form with almost no
   colour of its own, revealed by a shadowed edge above and a lit edge below.
   Used once on the page, and never over a photograph. */
.emboss {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  z-index: 0;
  width: 11rem;
  aspect-ratio: 366 / 336;
  transform: translateX(-50%);
  /* A whisper below the page tone — enough to give the form a body, far too
     little to read as a printed mark. */
  background-color: #fbf2e6;
  -webkit-mask: url('img/logo-monogram-mask.png') center / contain no-repeat;
  mask: url('img/logo-monogram-mask.png') center / contain no-repeat;
  filter: drop-shadow(-1.5px -1.5px 1.5px rgba(43, 43, 43, 0.22))
    drop-shadow(1.5px 2px 1.5px rgba(255, 255, 255, 1));
}
.quotes .wrap {
  position: relative;
  z-index: 1;
}
.quotes__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.quote {
  padding: 1.75rem;
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius);
}
.quote__glyph {
  display: block;
  height: 1.25rem;
  font-family: var(--font-display);
  font-size: 4.25rem;
  font-weight: 600;
  line-height: 0.34;
  color: var(--color-accent);
}
.quote blockquote {
  margin: var(--space-2) 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.85;
  color: var(--color-text-muted);
}
.quote__by {
  margin: var(--space-3) 0 0;
  font-family: var(--font-ui);
  font-size: var(--font-size-2xs);
  font-weight: var(--weight-label);
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--color-text);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  margin-top: var(--space-3);
}
.dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dot.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  background: var(--color-surface-deep);
  border: 0;
  padding: 0;
  color: var(--color-text);
  font-size: var(--font-size-base);
  overflow: hidden;
}
.site-footer__still {
  position: absolute;
  right: 0;
  bottom: 3.25rem;
  width: clamp(7rem, 12vw, 11.5rem);
  margin: 0;
  z-index: 0;
}
.site-footer__still img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask: linear-gradient(to left, #000 62%, transparent 100%),
    linear-gradient(to top, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to left, #000 62%, transparent 100%),
    linear-gradient(to top, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.8fr 1.35fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.fcol + .fcol {
  padding-left: var(--space-4);
  border-left: 1px solid rgba(43, 43, 43, 0.1);
}
.fcol__head {
  margin: 0 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-label);
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
}
.logo__word--footer {
  margin: 0.625rem 0 0;
  font-size: 0.6875rem;
}
.footer-tagline {
  margin: 0.875rem 0 0;
  font-family: var(--font-ui);
  font-size: var(--font-size-2xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}
.socials {
  display: flex;
  gap: 0.625rem;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent-deep);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.socials a:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}
.socials svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

.contact,
.quick {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-sm);
}
.contact li {
  display: grid;
  grid-template-columns: 1.375rem 1fr;
  gap: 0.875rem;
  align-items: start;
  color: var(--color-text-muted);
}
.contact li + li {
  margin-top: var(--space-2);
}
.contact svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.28rem;
  color: var(--color-primary);
}
.quick li + li {
  margin-top: 0.75rem;
}
.quick a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.quick a:hover {
  color: var(--color-primary-deepest);
}

.mapcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: var(--hairline);
  aspect-ratio: 300 / 132;
  background: var(--color-surface);
}
.mapcard__plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mapcard__pin {
  position: absolute;
  left: 7%;
  top: 18%;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--color-accent-deep);
}
.mapcard__pin svg {
  width: 100%;
  height: 100%;
}
.mapcard__label {
  position: absolute;
  left: 17%;
  top: 17%;
}
.mapcard__name,
.mapcard__addr {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--color-text);
}
.mapcard__name {
  font-weight: var(--weight-strong);
}
.mapcard__addr {
  color: var(--color-text-muted);
}
.mapcard__cta {
  position: absolute;
  left: 17%;
  bottom: 13%;
}

.site-footer__base {
  position: relative;
  z-index: 1;
  background: var(--color-surface-deepest);
  border-top: 1px solid rgba(43, 43, 43, 0.08);
}
.site-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}
.site-footer__base p {
  margin: 0;
  font-size: var(--font-size-2xs);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legal a {
  font-size: var(--font-size-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
}
.legal a:hover {
  color: var(--color-primary-deepest);
}
.legal span {
  color: var(--color-border-strong);
}

/* ---------------------------------------------------------------- lab note */

.lab-note {
  background: var(--color-primary-deepest);
  color: var(--color-primary-contrast);
}
.lab-note p {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-2) var(--gutter);
  font-size: var(--font-size-2xs);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ motion */

.reveal {
  animation: rise 620ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
  .nav ul {
    gap: 0.9rem;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-4);
  }
  .fcol + .fcol {
    padding-left: 0;
    border-left: 0;
  }
  .fcol:nth-child(even) {
    padding-left: var(--space-4);
    border-left: 1px solid rgba(43, 43, 43, 0.1);
  }
}

@media (max-width: 900px) {
  .nav,
  .lang {
    display: none;
  }
  .burger {
    display: flex;
  }

  /* The header is the tightest row on the page: the wordmark's 0.3em tracking
     and the booking label's nowrap together overran 390px in round 1. */
  .site-header__inner {
    gap: var(--space-2);
  }
  .logo__mark {
    width: 2.5rem;
  }
  .logo__word {
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
  }
  .site-header__actions {
    gap: 0.25rem;
  }
  .site-header__actions .btn {
    padding-inline: 0.875rem;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* Art direction, not a fallback: on a phone the portrait is the hook and the
     interior shot is the one that survives being 390px wide the worst, so the
     order flips and the interior is dropped. */
  .hero__scene {
    display: none;
  }
  .hero__copy {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__portrait {
    position: relative;
    inset: auto;
    width: 100%;
    height: 46vh;
    min-height: 17rem;
    padding-top: 0;
  }
  .hero__portrait img {
    object-position: 58% 18%;
    -webkit-mask: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .hero__copy {
    padding: 0;
  }
  .hero__text {
    width: 100%;
    margin-left: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .lead {
    max-width: none;
  }

  .stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-3);
  }
  .stat {
    padding-inline: 0 var(--space-2);
  }
  .stat + .stat {
    border-left: 0;
  }
  .stat:nth-child(even) {
    padding-left: var(--space-2);
    border-left: 1px solid rgba(253, 245, 235, 0.26);
  }
  .stat:nth-child(5) {
    grid-column: 1 / -1;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(253, 245, 235, 0.26);
  }
  /* "NEMZETKÖZI" set as a figure is the one label too wide for a half-column. */
  .stat__figure--word {
    font-size: 0.9375rem;
    letter-spacing: 0.03em;
  }
  .stat__label {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .stat__icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  .emboss {
    width: 8rem;
  }
  .logo__word {
    white-space: nowrap;
  }

  .about {
    grid-template-columns: 1fr;
  }
  /* height, not aspect-ratio + min-height: that pair resolves width from
     height and pushed the figure 44px past the viewport in round 1. */
  .about__portrait {
    order: -1;
    width: 100%;
    height: 62vw;
    min-height: 0;
    max-height: 20rem;
  }
  .about__copy {
    padding: var(--section-pad) var(--gutter);
  }
  .about__text {
    width: 100%;
  }

  /* Cards, results and quotes all become one scroll-snap rail. Peeking the next
     card is the affordance — no arrows needed at this width. */
  .cards,
  .quotes__track {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* without scroll-padding the snap aligns the first item to the scrollport
       edge and eats the gutter, so the rail starts flush and the button below
       it does not. */
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .cards::-webkit-scrollbar,
  .quotes__track::-webkit-scrollbar {
    display: none;
  }
  .cards > li,
  .quotes__track > li {
    flex: none;
    width: min(72vw, 17rem);
    scroll-snap-align: start;
  }

  .section__head--split {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-2);
  }
  .section__head--split .section__head-center,
  .section__head--split .textlink {
    grid-column: 1;
    justify-self: center;
  }
  .results__nav {
    display: none;
  }
  .results__viewport {
    grid-template-columns: 1fr;
  }
  .results__track {
    justify-content: flex-start;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .emboss {
    width: 13rem;
    top: calc(var(--section-pad) - 2.5rem);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .fcol:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .fcol + .fcol {
    padding-top: var(--space-3);
    border-top: 1px solid rgba(43, 43, 43, 0.1);
  }
  .site-footer__still {
    width: 7.5rem;
    bottom: 4.5rem;
    opacity: 0.85;
  }
  .mapcard {
    aspect-ratio: 242 / 110;
  }
  .site-footer__base-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
