/* ==========================================================================
   GreenMig-LNG Kft. – „Metszet”
   White drafting sheet · gray hairlines and hatch · cyan field · one green line
   ========================================================================== */

:root {
  /* brand (from the logo) */
  --cyan: #02acf1;
  --green: #37c514;
  --gray: #666666;

  /* derived roles */
  --paper: #ffffff;
  --paper-tint: #f3f8fb;
  --ink-strong: #1d2a33;
  --ink: #3f4a52;
  --ink-soft: var(--gray);
  --rule: #d3dbe2;
  --rule-strong: #b9c4cd;
  --green-deep: #1f7a0a;
  --cyan-ink: #0b2a3a;      /* text on the cyan field */
  --cyan-ink-soft: #103a54; /* secondary text on the cyan field, tinted from the hue */
  --graphite: #2c3136;      /* the footer's dark grey; derived from brand gray, cooled toward the ink */
  --graphite-rule: rgba(255, 255, 255, .14);
  --on-graphite: #eef1f4;
  --on-graphite-soft: #aab4bd;

  /* drawing (svg) */
  --line: var(--cyan-ink);
  --brick: rgba(255, 255, 255, 0.28);
  --heat: #ffffff;

  /* type */
  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  /* rhythm */
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 12px;
  --head-h: 84px;
  --top-h: 38px;  /* the header's contact + secondary-menu line; scrolls away, the main row stays */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .18);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  line-height: 1.05;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink-strong); }
sup { font-size: .55em; line-height: 0; }
address { font-style: normal; }

::selection { background: var(--cyan); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-tint); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border: 3px solid var(--paper-tint); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }
html { scrollbar-color: var(--rule-strong) var(--paper-tint); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 1em; height: 1em; }
.ic--lg { width: 2rem; height: 2rem; stroke-width: 1.5; }
.ic use[href="#i-facebook"], .ic use[href="#i-tiktok"], .ic use[href="#i-youtube"], .ic use[href="#i-linkedin"] { fill: currentColor; stroke: none; }
.social .ic { fill: currentColor; stroke: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink-strong); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100;
}
.skip:focus { top: .5rem; }
.skip:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 1rem/1 var(--font-display);
  letter-spacing: .01em;
  padding: .85em 1.25em;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 14px -8px rgba(29, 42, 51, .35); }
.btn--green:hover { background: #46d622; color: #fff; }
.btn--ink { background: var(--cyan-ink); color: #fff; }
.btn--ink:hover { background: #163b50; color: #fff; }
.btn--outline { border-color: var(--rule-strong); color: var(--ink-strong); background: transparent; }
.btn--outline:hover { border-color: var(--ink-strong); }
.btn--lg { font-size: 1.125rem; padding: 1em 1.4em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font: 600 1rem/1 var(--font-display);
  color: var(--ink-strong); text-decoration: none;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: .25em;
}
.link-arrow .ic { transition: transform .25s var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  /* negative top: the contact line scrolls out, the main row stays stuck */
  position: sticky; top: calc(-1 * var(--top-h)); z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

/* the contact + secondary-menu line */
.topbar { background: var(--paper-tint); border-bottom: 1px solid var(--rule); }
.topbar__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3);
  min-height: var(--top-h);
  font: 500 .88rem/1 var(--font-body);
}
.topbar__contact { display: flex; align-items: center; gap: var(--space-3); }
.topbar__contact a {
  display: inline-flex; align-items: center; gap: .45em; min-height: var(--top-h);
  color: var(--ink-strong); text-decoration: none;
}
.topbar__contact .ic { width: 1.1em; height: 1.1em; color: var(--cyan-ink-soft); }
.topbar__contact a:hover { color: var(--green-deep); }
.topbar__nav ul { display: flex; align-items: center; gap: .15rem; }
.topbar__nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--top-h);
  padding: 0 .6rem; color: var(--ink); text-decoration: none;
}
.topbar__nav a::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .45rem;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--ink-strong); }
.topbar__nav a:hover::after, .topbar__nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-head__row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--head-h); }
/* the PNG has an opaque white field: multiply hides it over the translucent header;
   3:1 artwork, so it needs real height to keep the small "GreenMig-LNG Kft." line legible */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 64px; width: auto; display: block; mix-blend-mode: multiply; }

.nav { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__list--extra { display: none; }
.nav__list > li { position: relative; }
.nav__list a {
  display: inline-flex; align-items: center; gap: .3em;
  font: 500 .95rem/1 var(--font-body);
  color: var(--ink-strong); text-decoration: none;
  padding: .7rem .7rem; border-radius: 6px;
  position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: .4em;
  margin-left: auto; background: none; border: 1.5px solid var(--rule-strong); border-radius: 8px;
  min-height: 2.75rem; padding: .5rem .85rem; font: 600 .9rem/1 var(--font-display); color: var(--ink-strong); cursor: pointer;
}
.nav-toggle .ic { width: 1.4em; height: 1.4em; }
/* drawer-only parts; the drawer itself is declared under 960px */
.nav__head, .nav__mail, .nav-scrim { display: none; }

/* --------------------------------------------------------------------------
   Hero – gallery
   Full-bleed photos with a dark field on the left for the customer's text.
   Slides stack in one grid cell, so the hero is as tall as its tallest slide.
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: clip; background: var(--cyan-ink); color: #fff; }
.hero__track { display: grid; min-height: clamp(520px, 78vh, 760px); }
.hero__slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease-out), visibility 0s .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-out), visibility 0s; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 7s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide::before {
  /* the dark field: where the customer's text sits */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 42, 58, .86) 0%, rgba(11, 42, 58, .72) 36%, rgba(11, 42, 58, .28) 62%, rgba(11, 42, 58, .04) 82%),
    linear-gradient(180deg, rgba(11, 42, 58, 0) 55%, rgba(11, 42, 58, .55) 100%);
}
.hero__copy { position: relative; z-index: 2; padding: var(--space-6) 0 calc(var(--space-6) + 3.5rem); }
.hero__copy > * { max-width: 40rem; } /* the copy keeps to the left edge of the wrap */
.hero__copy h1, .hero__copy h2 { color: #fff; }
.hero__copy h2 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 700; }
.hero__lead { font-size: 1.2rem; line-height: 1.5; margin-top: var(--space-3); color: rgba(255, 255, 255, .88); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }

/* controls: bottom-left of the sheet, over the dark field */
.hero__ctrls {
  position: absolute; left: 0; right: 0; bottom: var(--space-4); z-index: 2;
  display: flex; align-items: center; gap: var(--space-2);
}
.hero__btn {
  display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  background: rgba(11, 42, 58, .35); border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 8px; color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.hero__btn[data-dir="-1"] .ic { transform: scaleX(-1); }
.hero__btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.hero__dots { display: flex; gap: .5rem; padding-inline: .25rem; }
.hero__dots button {
  display: block; width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero__dots button::before {
  /* the tick of a dimension line; the active one is the coating line */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
  background: rgba(255, 255, 255, .5); transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.hero__dots button:hover::before { background: #fff; }
.hero__dots button[aria-current="true"]::before { background: var(--green); transform: scaleY(1.34); }
.hero__count { margin-left: .5rem; font: 600 .85rem/1 var(--font-display); letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.hero__count b { color: #fff; }
.hero .btn--green:focus-visible, .hero__btn:focus-visible, .hero__dots button:focus-visible, .link-arrow--light:focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--space-6) 0; border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-tint); }
.section--cyan { background: var(--cyan); color: #fff; border-top: 0; }
.section--cyan h2, .section--cyan h3 { color: #fff; }
.section--cyan a:not(.btn) { color: #fff; }
.section--cyan :focus-visible { outline-color: #fff; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
.section__head h2 { flex: 1 1 auto; }
.section__sub { font-size: 1.15rem; color: var(--ink-soft); flex: 0 1 30rem; }
.section__more { display: flex; justify-content: center; margin-top: var(--space-5); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.tile {
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--space-2);
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative;
}
.tile::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 3px; background: var(--green);
  transform: scaleX(.12); transform-origin: left; transition: transform .4s var(--ease-out);
}
.tile:hover::before { transform: scaleX(1); }
.tile .slot, .tile .photo { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.tile:hover .slot, .tile:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo--tile { aspect-ratio: 16 / 10; border: 1px solid var(--rule); background: var(--paper); }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { color: var(--ink); flex: 1; }
.tile__more { display: inline-flex; align-items: center; gap: .35em; font: 600 .9rem/1 var(--font-display); color: var(--green-deep); }
.tile__more .ic { transition: transform .25s var(--ease-out); }
.tile:hover .tile__more .ic { transform: translateX(4px); }

/* statement + the section drawing (signature) */
.statement { overflow: clip; }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-5); align-items: center; }
.statement__copy { display: grid; gap: var(--space-3); justify-items: start; }
.statement__text { max-width: 24ch; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 600; }
.statement__lead { color: rgba(255, 255, 255, .88); max-width: 44ch; font-size: 1.05rem; }
.statement__copy .btn { margin-top: var(--space-1); }

.sheet {
  width: 100%; max-width: 720px; justify-self: end;
  margin: 0; color: #fff;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.sheet__title {
  display: flex; justify-content: space-between; gap: 1rem;
  font: 600 .85rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: .6rem;
}
.metszet { width: 100%; height: auto; overflow: visible; }
.sheet__key { display: none; font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.sheet__key span { font: 600 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-right: .35em; }
.metszet .layer, .metszet .callout, .metszet .heat, .metszet .dim {
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out);
  will-change: transform;
}
.metszet .callout, .metszet .dim { opacity: 0; }
.metszet.is-exploded .callout, .metszet.is-exploded .dim { opacity: 1; }
.metszet .coat {
  fill: var(--green);
  stroke: #fff; stroke-width: 1; paint-order: stroke;
  filter: drop-shadow(0 0 6px rgba(55, 197, 20, .75));
}
.metszet .leader { fill: none; stroke: var(--line); stroke-width: 1.2; }
.metszet .tag { fill: #fff; stroke: var(--line); stroke-width: 1; }
.metszet .tag__text, .metszet .dim__text, .metszet .lbl text {
  font: 600 12.5px/1 var(--font-display); fill: var(--line); text-anchor: middle; letter-spacing: .02em;
}
.metszet .lbl--zone text { font-size: 13px; letter-spacing: .18em; fill: #fff; }
.metszet .dim__text { font-size: 11px; fill: #fff; }
.metszet .heat { opacity: .95; }

/* application columns */
.apply { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.apply__col { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--rule-strong); }
.apply__col p { flex: 1; }

/* ghost slots: the customer's missing asset, named and numbered */
.slot {
  position: relative; margin: 0;
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end; padding: .75rem;
  overflow: hidden;
  background: var(--paper);
}
.slot--square { aspect-ratio: 1; }
.slot::before, .slot::after {
  /* the crossed empty frame of a drawing sheet */
  content: ""; position: absolute; left: 50%; top: 50%; width: 141%; height: 1px;
  background: var(--rule); transform-origin: center;
}
.slot::before { transform: translate(-50%, -50%) rotate(36.87deg); }
.slot::after { transform: translate(-50%, -50%) rotate(-36.87deg); }
.slot--square::before { transform: translate(-50%, -50%) rotate(45deg); }
.slot--square::after { transform: translate(-50%, -50%) rotate(-45deg); }
.slot--wide { aspect-ratio: 16 / 10; }
.slot--wide::before, .slot--wide::after { width: 118%; }
.slot--wide::before { transform: translate(-50%, -50%) rotate(32deg); }
.slot--wide::after { transform: translate(-50%, -50%) rotate(-32deg); }
.slot::before, .slot::after { z-index: 0; }
.slot__what {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .82rem/1.2 var(--font-display); letter-spacing: .02em;
  color: var(--ink-soft); background: var(--paper); padding: .35rem .5rem; border-radius: 4px; border: 1px solid var(--rule);
}
.slot__id {
  position: absolute; z-index: 1; top: .6rem; left: .6rem;
  font: 600 .72rem/1 var(--font-display); letter-spacing: .08em;
  color: var(--cyan-ink-soft); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: .3rem .4rem;
}

/* photos: the filled slot – same frame, same ratios, no dashed outline */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  background: var(--paper-tint);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--product { aspect-ratio: 1; border: 1px solid var(--rule); background: var(--paper); }
.photo--product img { object-fit: contain; padding: 8%; }

/* references */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
.ref__link { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; height: 100%; }
.ref__link .slot, .ref__link .photo { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); margin-bottom: .5rem; }
.ref__link:hover .slot, .ref__link:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__cat { font: 500 .92rem/1.3 var(--font-body); color: var(--cyan-ink-soft); }
.ref__title { font-size: 1.35rem; }
.ref__link p { color: var(--ink); font-size: .98rem; }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.product a { display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none; }
.product .slot, .product .photo { margin-bottom: .5rem; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.product a:hover .slot, .product a:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow); }
.product h2, .product h3 { font-size: 1.2rem; }
.product__price { font: 600 1.05rem/1.2 var(--font-display); color: var(--ink-strong); display: flex; align-items: baseline; gap: .4rem; margin-top: -.15rem; }
.product__price-note { font: 500 .78rem/1 var(--font-body); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

/* contact strip */
.contact { padding: var(--space-4) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-3); }
.contact__item:last-child strong { white-space: nowrap; }
.contact__item { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0 var(--space-2) var(--space-3); border-left: 1px solid rgba(255, 255, 255, .4); }
.contact__item:first-child { border-left: 0; padding-left: 0; }
.contact__label { display: block; font: 600 .8rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: .35rem; }
.contact__item strong { font: 600 1.3rem/1.2 var(--font-display); color: #fff; }
.contact__item strong a { text-decoration: none; }
.contact__item strong a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer – the drawing's title block, on the dark grey sheet
   -------------------------------------------------------------------------- */
.site-foot { background: var(--graphite); color: var(--on-graphite); padding-top: var(--space-5); }
.foot__block {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr;
  border: 1px solid var(--graphite-rule); border-radius: var(--radius); overflow: hidden;
}
.foot__cell { padding: var(--space-4); border-left: 1px solid var(--graphite-rule); display: flex; flex-direction: column; gap: var(--space-2); }
.foot__cell:first-child { border-left: 0; }
.foot__cell h2 { color: #fff; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; padding-bottom: .5rem; border-bottom: 2px solid var(--green); align-self: start; }
.foot__cell p { color: var(--on-graphite-soft); }
.social { display: flex; gap: .6rem; margin-top: auto; }
.social a {
  display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 8px; color: #fff;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.social a:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.foot__links { display: grid; gap: .35rem; }
.foot__links a { color: var(--on-graphite); text-decoration: none; }
.foot__links a:hover { color: var(--green); }
.foot__addr { display: grid; gap: .6rem; }
.foot__addr p { display: flex; align-items: flex-start; gap: .6rem; color: var(--on-graphite); }
.foot__addr .ic { margin-top: .15em; color: var(--on-graphite-soft); }
.foot__addr a { color: var(--on-graphite); text-decoration: none; }
.foot__addr a:hover { color: var(--green); }
.foot__maker { font-size: .92rem; margin-top: auto; }
.foot__maker a { color: var(--on-graphite); }
.foot__maker a:hover { color: var(--green); }
.foot__strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: var(--space-3);
  font: 500 .85rem/1.3 var(--font-display); letter-spacing: .04em; color: var(--on-graphite-soft);
}
.site-foot :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   Reveal (one entrance grammar, sections only)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tiles, .products { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: repeat(2, 1fr); }
  .foot__block { grid-template-columns: 1fr 1fr; }
  .foot__cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule-strong); }
}

@media (max-width: 960px) {
  .hero__track { min-height: clamp(480px, 70vh, 640px); }
  .hero__slide::before {
    background:
      linear-gradient(180deg, rgba(11, 42, 58, .5) 0%, rgba(11, 42, 58, .78) 100%),
      linear-gradient(90deg, rgba(11, 42, 58, .5) 0%, rgba(11, 42, 58, 0) 70%);
  }
  .statement__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .sheet { max-width: none; justify-self: stretch; }
  .topbar__nav { display: none; }
  .apply, .contact__grid { grid-template-columns: 1fr; }
  .contact__item { border-left: 0; padding: var(--space-3) 0; border-top: 1px solid rgba(255, 255, 255, .4); }
  .contact__item:first-child { border-top: 0; }
  .contact__item:last-child strong { white-space: normal; }

  /* the drawer: a sheet sliding in from the right, over a scrim; the header's toggle opens it,
     its own close button (or the scrim, or Esc) closes it. Scroll stays inside the sheet.
     No backdrop blur on the header here: it would become the containing block of the fixed drawer. */
  .site-head { backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(24rem, 100% - 3.5rem);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-left: 1px solid var(--rule);
    box-shadow: var(--shadow);
    --drawer-pad-r: max(var(--gutter), env(safe-area-inset-right));
    padding: 0 0 max(var(--space-3), env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(11, 42, 58, .45); touch-action: none;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }

  /* the drawer's columns: head, main list and the contact actions share one inset;
     the secondary group is a tinted band that runs edge to edge */
  .nav__head, .nav__list, .nav__tel, .nav__mail { margin-inline: var(--gutter) var(--drawer-pad-r); }
  .nav__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
    min-height: var(--head-h); padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--rule-strong); margin-bottom: var(--space-1);
  }
  .nav__title { font: 600 .85rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
  .nav__close {
    display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
    background: none; border: 1.5px solid var(--rule-strong); border-radius: 8px; color: var(--ink-strong); cursor: pointer;
  }
  .nav__close .ic { width: 1.4rem; height: 1.4rem; }
  .nav__close:hover { border-color: var(--ink-strong); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    width: 100%; min-height: 3.25rem; padding: .6rem 0; font-size: 1.125rem;
    border-bottom: 1px solid var(--rule); border-radius: 0;
  }
  /* the current page: a short green tick under the label, the drawing's dimension mark */
  .nav__list a::after { left: 0; right: auto; width: 1.75rem; bottom: .45rem; }
  .nav__list a[aria-current="page"] { font-weight: 600; }
  .nav__list > li:last-child a { border-bottom: 0; }
  .nav__list--extra {
    display: flex; margin: var(--space-3) 0 0; padding: var(--space-2) var(--drawer-pad-r) var(--space-2) var(--gutter);
    background: var(--paper-tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  }
  .nav__group { font: 600 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: .5rem 0 .6rem; }
  .nav__list--extra a { min-height: 2.75rem; padding: .35rem 0; font-size: 1rem; color: var(--ink); border-bottom: 0; }
  .nav__list--extra a::after { bottom: .3rem; }

  /* the two contact actions: same width, same height, stacked */
  .nav__tel, .nav__mail { display: inline-flex; justify-content: center; padding-top: 1.1em; padding-bottom: 1.1em; }
  .nav__tel { margin-top: var(--space-4); }
  .nav__mail { margin-top: var(--space-1); font-size: .95rem; overflow-wrap: anywhere; }
  .nav__mail .ic { color: var(--cyan-ink-soft); }

  body.has-drawer { overflow: hidden; }
}

@media (max-width: 600px) {
  :root { --head-h: 64px; }
  .brand img { height: 42px; }
  .topbar__row { font-size: .84rem; }
  .topbar__contact { flex-wrap: wrap; gap: 0 var(--space-2); }
  .topbar__contact a { padding-inline: .2rem; min-height: 0; padding-block: .35em; }
  .topbar__contact .ic { width: 1.25em; height: 1.25em; }
  .topbar__contact a[href^="mailto"] { overflow-wrap: anywhere; }
  .btn { white-space: normal; text-align: center; }
  .foot__cell { padding: var(--space-3) var(--space-2); }
  .sheet__key { display: block; }
  .tiles, .products, .refs { grid-template-columns: 1fr; }
  .foot__block { grid-template-columns: 1fr; }
  .foot__cell { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .foot__cell:first-child { border-top: 0; }
  .hero__actions .btn--lg { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero__copy { padding: var(--space-5) 0 calc(var(--space-5) + 3rem); }
  .hero__ctrls { bottom: var(--space-3); gap: .75rem; flex-wrap: wrap; }
  .section { padding: var(--space-5) 0; }
}

/* touch: a tap must not leave a card floating on its hover state */
@media (hover: none) {
  .tile:hover .slot, .tile:hover .photo, .ref__link:hover .slot, .ref__link:hover .photo, .product a:hover .slot, .product a:hover .photo,
  .news-card__link:hover .photo, .gallery__link:hover .photo, .attachment:hover { transform: none; box-shadow: none; }
  .tile:hover::before { transform: scaleX(.12); }
  .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .metszet .callout, .metszet .dim { opacity: 1; }
  .hero__img { transform: none; }
}

/* ==========================================================================
   Content modules – news, articles, galleries, downloads, videos,
   products, inquiry form, partners map, media rail
   ========================================================================== */

.wrap--narrow { width: min(52rem, 100% - 2 * var(--gutter)); }
.section__head--sub { margin-top: var(--space-5); }
.section__head--sub:first-child { margin-top: 0; }

/* the one uppercase label: category, date line, county, parameter name */
.label, .ref__cat, .news-card__meta, .article__meta, .partner__place, .params dt {
  font: 600 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-ink-soft);
}

/* a row of actions (button + arrow link) outside the hero */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* empty state: the empty title-block cell, drawn like a ghost slot */
.empty {
  width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  color: var(--ink); font-size: 1.05rem; background: var(--paper);
}
.empty a { white-space: nowrap; }

/* 404: the main menu as a ruled list of arrow links */
.notfound__links { margin: var(--space-3) 0 var(--space-4); border-top: 1px solid var(--rule); }
.notfound__links li { border-bottom: 1px solid var(--rule); }
.notfound__links .link-arrow { display: flex; justify-content: space-between; min-height: 3rem; align-items: center; }

/* page head – the sheet's title strip under the header
   crumb → label → h1 → lead, on the tint; tabs may sit on its bottom edge */
.page-head { background: var(--paper-tint); border-bottom: 1px solid var(--rule); padding: var(--space-5) 0; }
.page-head + .section { border-top: 0; }
.page-head__crumb { margin-bottom: var(--space-3); }
.page-head__title { display: grid; gap: var(--space-2); justify-items: start; }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 22ch; }
.page-head__title .label + h1 { margin-top: -.4rem; } /* label and title read as one group */
.page-head__lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.page-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-4); }
.page-head__row .page-head__title { flex: 1 1 32rem; }
.page-head--tabs { padding-bottom: 0; }
.page-head--tabs .tabs { margin: var(--space-4) 0 0; border-bottom: 0; }

/* tabs: one row of filters; the active one carries the green line */
.tabs { position: relative; border-bottom: 1px solid var(--rule); margin-bottom: var(--space-4); }
.tabs ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3.5rem; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--tabs-bg, var(--paper)));
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.tabs.has-more::after { opacity: 1; }
.page-head--tabs { --tabs-bg: var(--paper-tint); }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: .45em; min-height: 3rem;
  padding: 0 .8rem; font: 500 .95rem/1 var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.tabs a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -1px;
  height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.tabs a:hover, .tabs a[aria-current] { color: var(--ink-strong); }
.tabs a:hover::after, .tabs a[aria-current]::after { transform: scaleX(1); }
.tabs li:first-child a { padding-left: 0; }
.tabs li:first-child a::after { left: 0; }

/* in-page index: jump to a group further down the sheet */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.jump a {
  display: inline-flex; align-items: center; gap: .45em; min-height: 2.5rem; padding: .5em .8em;
  border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper);
  font: 600 .9rem/1 var(--font-display); color: var(--ink-strong); text-decoration: none;
  transition: border-color .2s var(--ease-out);
}
.jump a:hover { border-color: var(--ink-strong); }
.jump b { font-weight: 600; color: var(--ink-soft); }

/* breadcrumb / back link */
.link-arrow--back .ic { transform: scaleX(-1); }
.link-arrow--back:hover .ic { transform: scaleX(-1) translateX(4px); }

/* article (news item, reference, product) */
.article__back { margin-top: var(--space-5); }
.photo--news { aspect-ratio: 3 / 2; }
.photo--wide { aspect-ratio: 3 / 2; }
.slot--cover { aspect-ratio: 3 / 2; }
.slot--cover::before, .slot--cover::after { width: 121%; }
.slot--cover::before { transform: translate(-50%, -50%) rotate(33.69deg); }
.slot--cover::after { transform: translate(-50%, -50%) rotate(-33.69deg); }
.slot--video { aspect-ratio: 16 / 9; }
.slot--video::before, .slot--video::after { width: 116%; }
.slot--video::before { transform: translate(-50%, -50%) rotate(29.4deg); }
.slot--video::after { transform: translate(-50%, -50%) rotate(-29.4deg); }
/* modules keep the photo's ratio even while the asset is a ghost:
   references 4:3, products 1:1, whichever slot variant the markup carries */
.refs .slot { aspect-ratio: 4 / 3; }
.refs .slot::before, .refs .slot::after { width: 141%; }
.refs .slot::before { transform: translate(-50%, -50%) rotate(36.87deg); }
.refs .slot::after { transform: translate(-50%, -50%) rotate(-36.87deg); }
.product .slot { aspect-ratio: 1; }
.product .slot::before, .product .slot::after { width: 141%; }
.product .slot::before { transform: translate(-50%, -50%) rotate(45deg); }
.product .slot::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* admin-authored HTML (TinyMCE) */
.prose { max-width: 68ch; }
.prose:not(:first-child) { margin-top: var(--space-4); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 1px solid var(--rule-strong);
  color: var(--ink-strong); font: 500 1.25rem/1.4 var(--font-display); letter-spacing: -.01em;
}
.prose img { border-radius: var(--radius); height: auto; }
.prose a { overflow-wrap: anywhere; }
.prose iframe, .prose video { max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose table tbody, .prose table thead { display: table; width: 100%; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-tint); font-family: var(--font-display); font-weight: 600; }

/* content blocks under an article */
.block { margin-top: var(--space-5); }
.block__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: 1.5rem; margin-bottom: var(--space-3); padding-bottom: .5rem; border-bottom: 1px solid var(--rule-strong);
}
.block__count { font: 600 .85rem/1 var(--font-display); letter-spacing: .08em; color: var(--ink-soft); }

/* news cards */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
.news-card__link { display: flex; flex-direction: column; gap: .5rem; height: 100%; color: inherit; text-decoration: none; }
.news-card__link .photo { margin-bottom: .5rem; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.news-card__link:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card__title { font-size: 1.35rem; }
.news-card__link p { color: var(--ink); font-size: .98rem; flex: 1; }
.news-card__link .tile__more .ic { transition: transform .25s var(--ease-out); }
.news-card__link:hover .tile__more .ic { transform: translateX(4px); }

.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.pager__count { font: 600 .9rem/1 var(--font-display); letter-spacing: .08em; color: var(--ink-soft); }
.pager__back { transform: scaleX(-1); }

/* reference params strip */
.params {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0;
  margin: var(--space-4) 0 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.params__item { padding: var(--space-2) var(--space-3) var(--space-2) 0; border-left: 1px solid var(--rule); padding-left: var(--space-3); }
.params__item:first-child { border-left: 0; padding-left: 0; }
.params dt { margin-bottom: .35rem; }
.params dd { margin: 0; font: 600 1.25rem/1.2 var(--font-display); color: var(--ink-strong); overflow-wrap: anywhere; }
.params dd a { color: inherit; text-decoration: none; }
.params dd a:hover { color: var(--green-deep); }
.block .params { margin-top: 0; }

/* gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.gallery__link { display: block; border-radius: var(--radius); }
.gallery__link .photo { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.gallery__link:hover .photo, .gallery__link:focus-visible .photo { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery__caption { display: block; margin-top: .4rem; font-size: .9rem; color: var(--ink-soft); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(11, 42, 58, .92);
  padding: max(var(--space-3), env(safe-area-inset-top)) max(var(--space-3), env(safe-area-inset-right)) max(var(--space-3), env(safe-area-inset-bottom)) max(var(--space-3), env(safe-area-inset-left));
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); object-fit: contain; border-radius: 6px; background: #000; }
.lightbox__caption { color: #fff; font-size: .95rem; text-align: center; min-height: 1.4em; }
.lightbox__btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 2.8rem; height: 2.8rem; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 8px;
  background: rgba(11, 42, 58, .5); color: #fff; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lightbox__btn:hover { background: var(--green); border-color: var(--green); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__btn--close { top: var(--space-3); right: var(--space-3); }
.lightbox__btn--prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev .ic { transform: scaleX(-1); }
.lightbox__btn--next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: var(--space-3); top: var(--space-3); color: rgba(255, 255, 255, .8); font: 600 .85rem/2.8rem var(--font-display); letter-spacing: .08em; }
body.has-lightbox { overflow: hidden; }

/* downloads */
.attachments { display: grid; gap: .5rem; }
.attachment {
  display: flex; align-items: center; gap: var(--space-2);
  padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: 10px;
  color: inherit; text-decoration: none; background: var(--paper);
  transition: border-color .2s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.attachment:hover { border-color: var(--ink-strong); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.attachment__ext {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 2.4rem;
  border-radius: 6px; background: var(--cyan-ink); color: #fff; font: 700 .72rem/1 var(--font-display); letter-spacing: .08em;
}
.attachment__body { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.attachment__title { font: 600 1.05rem/1.25 var(--font-display); color: var(--ink-strong); }
.attachment__desc { font-size: .95rem; color: var(--ink); }
.attachment__meta { font-size: .85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment > .ic { color: var(--green-deep); }
.attachment--ghost { border-style: dashed; border-color: var(--rule-strong); }
.attachment--ghost:hover { border-color: var(--rule-strong); transform: none; box-shadow: none; }
.attachment--ghost .attachment__ext { background: var(--paper); color: var(--cyan-ink-soft); border: 1px solid var(--rule); }
.attachment--ghost > .ic { color: var(--rule-strong); }
.doc-group { margin-top: var(--space-4); }
.doc-group:first-of-type { margin-top: 0; }

/* Mi az a MIG? – copy left, the video's frame right */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: start; }
.about__copy { display: grid; gap: var(--space-4); justify-items: start; }
.about__links { display: grid; gap: var(--space-2); justify-items: start; }
.about__maker { font-size: .95rem; color: var(--ink-soft); }
.about__video { width: 100%; }
.about__copy .params { margin-top: 0; justify-self: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about__copy .params dd { font-size: 1.1rem; }
.about--more { margin-top: var(--space-5); }
.about--more .about__maker { margin-top: var(--space-3); }

/* the DHMB steps, measured results, milestones */
.steps__lead { max-width: 68ch; font-size: 1.1rem; }
.steps { margin-top: var(--space-4); }
.steps__note { margin-top: var(--space-4); max-width: 68ch; font-size: .98rem; color: var(--ink-soft); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
.figures li { display: grid; gap: .5rem; align-content: start; padding-top: var(--space-2); border-top: 2px solid var(--green); }
.figures b { font: 700 clamp(2.4rem, 4vw, 3.25rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink-strong); }
.figures p { font-size: .98rem; color: var(--ink); }
.uses { margin-top: var(--space-5); }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.timeline li { position: relative; display: grid; gap: .4rem; align-content: start; padding-top: var(--space-2); border-top: 1px solid var(--rule-strong); }
.timeline li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.timeline b { font: 600 1.6rem/1 var(--font-display); color: var(--ink-strong); }
.timeline p { font-size: .95rem; color: var(--ink); }

/* video cover → lightbox player */
.lightbox__video { position: relative; width: min(1200px, 100%, calc((100vh - 8rem) * 16 / 9)); width: min(1200px, 100%, calc((100dvh - 8rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* click-to-load YouTube */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.video-embed { margin: 0; display: grid; gap: .5rem; }
.video-embed__play, .video-embed__frame, .video-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--cyan-ink); cursor: pointer;
}
.video-embed__play img, .video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s var(--ease-out), transform .6s var(--ease-out); }
.video-embed__play:hover img, .video-cover:hover img { opacity: 1; transform: scale(1.03); }
.video-embed__icon {
  position: absolute; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--green); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.video-embed__icon::after { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .75rem 0 .75rem 1.25rem; border-color: transparent transparent transparent #fff; }
.video-embed__play:hover .video-embed__icon, .video-cover:hover .video-embed__icon { transform: translate(-50%, -50%) scale(1.06); }
.video-embed__play:focus-visible, .video-cover:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption { font-size: .95rem; color: var(--ink); display: grid; gap: .15rem; }
.video-embed figcaption strong { font: 600 1.1rem/1.3 var(--font-display); color: var(--ink-strong); }
.video-embed--featured { max-width: 960px; }

/* media rail */
.media-collection + .media-collection { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule); }
.media-rail { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-2) 0 .75rem; margin-top: var(--space-3); scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.media-rail li { flex: 0 0 13rem; scroll-snap-align: start; }
.media-rail__item {
  display: grid; gap: .45rem; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 500 .9rem/1.3 var(--font-body); color: var(--ink);
}
.media-rail__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid transparent; transition: border-color .2s var(--ease-out), transform .3s var(--ease-out); }
.media-rail__item:hover img { transform: translateY(-2px); }
.media-rail__item.is-active img { border-color: var(--green); }
.media-rail__item.is-active span { color: var(--ink-strong); font-weight: 600; }

/* products */
.product-group { margin-top: var(--space-5); }
.product-group:first-of-type { margin-top: 0; }
/* anchor targets land under the sticky header row */
.product-group, .doc-group, .media-collection { scroll-margin-top: calc(var(--head-h) + var(--space-3)); }
.section[id] { scroll-margin-top: var(--head-h); }
.product-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-5); align-items: center; margin-top: var(--space-4); }
.product-hero__img { max-width: 440px; width: 100%; }
.product-hero__copy { display: grid; gap: var(--space-2); justify-items: start; }
.product-hero__copy h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 18ch; }
.product-hero__sub { font: 500 1.05rem/1.4 var(--font-body); color: var(--ink-soft); }
.product-hero__price { display: flex; align-items: baseline; gap: .5rem; padding-top: .25rem; border-top: 1px solid var(--rule); }
.product-hero__price b { font: 700 1.6rem/1.1 var(--font-display); color: var(--ink-strong); }
.product-hero__price span { font: 500 .85rem/1 var(--font-body); color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.product-hero .actions { margin-top: var(--space-2); }
.product-hero .link-arrow { color: var(--ink-strong); }

/* inquiry form */
.notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: var(--space-3); border: 1px solid; font-weight: 500; }
.notice--ok { background: #e9f8e3; border-color: var(--green); color: var(--green-deep); }
.notice--bad { background: #fbe9e7; border-color: #e0a29c; color: #b3261e; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: grid; gap: .4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 600 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-strong); }
.field input, .field textarea, .partners__select select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--rule-strong); border-radius: 8px;
  font: 400 1rem/1.4 var(--font-body); color: var(--ink-strong); background: var(--paper);
  transition: border-color .2s var(--ease-out);
}
.field input:focus, .field textarea:focus, .partners__select select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(2, 172, 241, .18); }
.field textarea { resize: vertical; min-height: 8rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d63a30; }
.field__error { font-size: .88rem; color: #b3261e; }
.form-grid__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.form-gdpr { font-size: .9rem; color: var(--ink-soft); max-width: 40ch; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* radio cards and consent checkboxes (registration form) */
.form-set { display: grid; gap: .75rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-set legend { padding: 0; margin-bottom: .75rem; font: 600 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-strong); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.choice {
  position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; cursor: pointer;
  border: 1.5px solid var(--rule-strong); border-radius: 10px; background: var(--paper);
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--green); background: #f2fbee; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(2, 172, 241, .25); }
.choice input, .check input { flex: none; width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; accent-color: var(--green); cursor: pointer; }
.choice__body { display: grid; gap: .2rem; }
.choice__body b { font: 600 1.15rem/1.2 var(--font-display); color: var(--ink-strong); }
.choice__body span { font-size: .92rem; color: var(--ink-soft); }
.form-set.is-invalid .choice { border-color: #d63a30; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .4rem .85rem; align-items: start; }
.check label { font-size: .95rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.check label b { display: block; margin-bottom: .15rem; font: 600 1.05rem/1.3 var(--font-display); color: var(--ink-strong); }
.check .field__error { grid-column: 2; }
.check.is-invalid input { outline: 2px solid #d63a30; outline-offset: 2px; }
.check + .check { padding-top: .75rem; border-top: 1px solid var(--rule); }

/* event page: topic line, second line in the params strip, program list */
.event-head .params { margin-top: var(--space-4); }
.params__sub { display: block; margin-top: .3rem; font: 400 .95rem/1.35 var(--font-body); color: var(--ink); }
.event-topics { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font: 600 1rem/1.3 var(--font-display); letter-spacing: .02em; color: var(--ink-strong); }
.event-topics li { display: flex; align-items: center; }
.event-topics li + li::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: .9rem; border-radius: 50%; background: var(--green); }
.event-head .page-head__lead { font-style: italic; }
.program { display: grid; border-top: 1px solid var(--rule-strong); }
.program__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-3); padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.program__time { font: 600 1.05rem/1.4 var(--font-display); color: var(--cyan-ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.program__body { display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: baseline; color: var(--ink); }
.program__body b { font: 600 1.1rem/1.4 var(--font-display); color: var(--ink-strong); }
.program__row--break { background: var(--paper); padding-inline: var(--space-2); border-left: 3px solid var(--green); }
.program__row--break b { letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep); }
.program__note { font-size: .92rem; color: var(--ink-soft); }
.program__role { flex-basis: 100%; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }

/* a copy stack on the cyan field: heading, one sentence, one button */
.cta { display: grid; gap: var(--space-3); justify-items: start; }
.cta h2 { max-width: 20ch; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 50ch; font-size: 1.1rem; }

/* partners: map + list */
.partners { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 1fr); gap: var(--space-4); align-items: start; }
.partners__map { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-3); background: var(--paper-tint); }
.hu-map { width: 100%; height: auto; }
.hu-map .county { fill: #dfe6ec; stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .2s var(--ease-out); outline: none; }
.hu-map .county:hover, .hu-map .county:focus-visible { fill: var(--rule-strong); }
.hu-map .county.has-partners { fill: var(--cyan); }
.hu-map .county.has-partners:hover, .hu-map .county.has-partners:focus-visible { fill: #0295d1; }
.hu-map .county.is-active { fill: var(--green) !important; }
.hu-map .county:focus-visible { stroke: var(--ink-strong); stroke-width: 2.5; }
.partners__legend { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-top: var(--space-2); font-size: .85rem; color: var(--ink-soft); }
.partners__swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; background: #dfe6ec; vertical-align: middle; }
.partners__swatch--has { background: var(--cyan); }
.partners__side { display: grid; gap: var(--space-2); }
.partners__select { display: grid; gap: .4rem; }
.partners__select label { font: 600 .82rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-strong); }
.partners__status { font: 600 1.1rem/1.3 var(--font-display); color: var(--ink-strong); }
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.partner { display: flex; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.partner[hidden] { display: none; }
.partner__logo {
  flex: none; width: 5rem; height: 5rem; margin: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); overflow: hidden;
}
.partner__logo img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.partner__logo--mono { background: var(--cyan-ink); border-color: var(--cyan-ink); color: #fff; font: 700 1.5rem/1 var(--font-display); letter-spacing: .04em; }
.partner__body { min-width: 0; display: grid; gap: .35rem; }
.partner__name { font-size: 1.25rem; }
.partner__desc { font-size: .95rem; color: var(--ink); }
.partner__person { font: 500 1rem/1.4 var(--font-body); color: var(--ink-strong); }
.partner__contact { display: grid; gap: .3rem; margin-top: .35rem; font-size: .95rem; }
.partner__contact li { display: flex; align-items: center; gap: .45em; min-width: 0; }
.partner__contact .ic { width: 1em; height: 1em; color: var(--cyan-ink-soft); }
.partner__contact a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partners__empty { margin-top: var(--space-4); max-width: none; }
.partners__empty[hidden] { display: none; }

@media (max-width: 1100px) {
  .news-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .partners { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; gap: var(--space-4); }
  .product-hero__img { max-width: 360px; margin-inline: auto; }
  .videos { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: var(--space-4); }
  .about__video { order: -1; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .page-head { padding: var(--space-4) 0; }
  .page-head--tabs { padding-bottom: 0; }
  .page-head--tabs .tabs { margin-top: var(--space-3); }
  .page-head__lead { font-size: 1.1rem; }
  .product-hero { margin-top: var(--space-3); }
  .product-hero__img { max-width: none; }
  .photo--product img { padding: 12%; }
  .empty { padding: var(--space-3); }
  .actions .btn--lg { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .news-list, .partner-list, .form-grid, .choices { grid-template-columns: 1fr; }
  .program__row { grid-template-columns: 1fr; gap: .2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .params, .about__copy .params { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .params__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .params__item:first-child { border-top: 0; }
  .partner { flex-direction: column; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: var(--space-3); transform: none; }
  .lightbox__img { max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); }
}
