:root {
  --navy: #0b1424;
  --navy-2: #111d30;
  --steel: #223047;
  --muted: #627089;
  --line: #d7deea;
  --soft: #f4f7fb;
  --white: #ffffff;
  --red: #e31b2b;
  --red-dark: #bf1322;
  --amber: #8a5200;
  --amber-light: #ffd166;
  --shadow: 0 22px 70px rgba(13, 24, 43, 0.14);
  --focus: #1d4ed8;
  --radius: 8px;
  --max: 1680px;
  --font-ui: Arial, Helvetica, sans-serif;
}

/* Concise service pages: keep navigation and explanatory helper copy out of view. */
.breadcrumb,
.category-intro-block,
.section-head > p.muted,
.section--soft:has(.card-grid .number) {
  display: none !important;
}

.section-head {
  grid-template-columns: minmax(0, 1fr);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#iranyok {
  scroll-margin-top: 140px;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.slideshow-playback-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  margin: auto;
  pointer-events: none;
}

/* Keep the pause action explicit instead of relying on a two-bar glyph alone. */
.slideshow-control {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 100px;
  gap: 7px;
  padding-inline: 10px !important;
}

.slideshow-control::after {
  content: "Pause";
  font: 700 12px/1 var(--font-ui);
  white-space: nowrap;
}

.slideshow-control[data-playback-state="paused"]::after { content: "Resume"; }
html:lang(hu) .slideshow-control::after { content: "Szünet"; }
html:lang(hu) .slideshow-control[data-playback-state="paused"]::after { content: "Folytatás"; }
html:lang(de) .slideshow-control::after { content: "Pause"; }
html:lang(de) .slideshow-control[data-playback-state="paused"]::after { content: "Weiter"; }
html:lang(nl) .slideshow-control::after { content: "Pauze"; }
html:lang(nl) .slideshow-control[data-playback-state="paused"]::after { content: "Verder"; }
html:lang(tr) .slideshow-control::after { content: "Duraklat"; }
html:lang(tr) .slideshow-control[data-playback-state="paused"]::after { content: "Devam"; }
html:lang(zh) .slideshow-control::after { content: "暂停"; }
html:lang(zh) .slideshow-control[data-playback-state="paused"]::after { content: "继续"; }

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="link"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.65);
  outline-offset: 3px;
}

.topbar {
  background: var(--navy);
  color: #dbe3f2;
  font-size: 13px;
}

.topbar__inner,
.header__inner,
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header__inner {
  width: min(1720px, calc(100% - 56px));
}

.topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 160;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  flex: 0 0 300px;
  min-width: 300px;
}

.brand img {
  width: 92px;
  height: auto;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand strong {
  display: block;
  min-width: 0;
  line-height: 1.12;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav a,
.nav-dropdown__button {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nav > a:not(.btn),
.nav > .nav-dropdown > .nav-dropdown__button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--navy);
  border-radius: 0;
}

.nav > a:not(.btn):hover,
.nav > a:not(.btn):focus-visible,
.nav > .nav-dropdown > .nav-dropdown__button:hover,
.nav > .nav-dropdown > .nav-dropdown__button:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 -2px 0 currentColor;
}

.nav-dropdown {
  position: relative;
}

@media (min-width: 981px) {
  .nav-dropdown {
    padding-bottom: 10px;
    margin-bottom: -10px;
  }
}

.nav-dropdown__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  cursor: pointer;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 330px;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: grid;
}

.nav-dropdown__label {
  padding: 8px 10px 4px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-dropdown__menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.25;
}

.nav-dropdown__menu a strong {
  display: block;
  font-size: 14px;
}

.nav-dropdown__menu a span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus {
  background: var(--soft);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(13, 24, 43, 0.16);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover,
.btn--red:focus {
  background: var(--red-dark);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--outline {
  border-color: currentColor;
  background: transparent;
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}

.nav .btn {
  min-height: 48px;
  padding-inline: 16px;
  flex: 0 0 auto;
}

.nav > a:not(.btn),
.nav > .nav-dropdown > .nav-dropdown__button,
.header__inner > .language-dropdown .language-dropdown__trigger {
  min-height: 48px;
}

.hero {
  position: relative;
  min-height: calc(620px + 2 * var(--hero-extra-space, 0px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.72), rgba(8, 16, 30, 0.5) 42%, rgba(8, 16, 30, 0.2) 70%, rgba(8, 16, 30, 0.02)), var(--hero-image);
  background-size: cover;
  background-position: center 46%;
}

.hero--telephely::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.72), rgba(8, 16, 30, 0.5) 42%, rgba(8, 16, 30, 0.2) 70%, rgba(8, 16, 30, 0.02)), url("../images/alabama-telephely-rendezett-20261027-v2.jpg");
}

.hero--residential::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.76), rgba(8, 16, 30, 0.54) 46%, rgba(8, 16, 30, 0.18) 72%, rgba(8, 16, 30, 0.04)), url("../images/klima-szereles.jpg");
  background-position: center 44%;
}

.hero--residential-heating::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.8), rgba(8, 16, 30, 0.54) 48%, rgba(8, 16, 30, 0.14)), url("../images/optimized/lakossagi/futes-hero.webp");
  background-position: center 50%;
}

.hero--residential-water::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.8), rgba(8, 16, 30, 0.54) 48%, rgba(8, 16, 30, 0.14)), url("../images/optimized/lakossagi/vizvezetek-hero.webp");
  background-position: center 50%;
}

.hero--residential-ventilation::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.8), rgba(8, 16, 30, 0.54) 48%, rgba(8, 16, 30, 0.14)), url("../images/optimized/lakossagi/legtechnika-hero.webp");
  background-position: center 50%;
}

.hero--residential-heatpump::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.8), rgba(8, 16, 30, 0.54) 48%, rgba(8, 16, 30, 0.14)), url("../images/optimized/lakossagi/hoszivattyu-hero.webp");
  background-position: center 50%;
}

.hero--newsletter::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.76), rgba(8, 16, 30, 0.54) 46%, rgba(8, 16, 30, 0.18) 72%, rgba(8, 16, 30, 0.04)), url("../images/lakossagi-klima.jpg");
  background-position: center 44%;
}

.hero--steel::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.5) 50%, rgba(8, 16, 30, 0.14)), url("../images/optimized/ipari/uveghazi-szerkezetgyartas-hero-20261027.webp");
  background-position: center 54%;
}

.hero--hall::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.48) 50%, rgba(8, 16, 30, 0.1)), url("../images/sajat/sajat-csarnok-kesz.jpg");
}

.hero--mechanical::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.48) 50%, rgba(8, 16, 30, 0.1)), url("../images/ipari-gepeszet.jpg");
}

.hero--greenhouse-fabrication::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, .8), rgba(8, 16, 30, .52) 50%, rgba(8, 16, 30, .18)), url("../images/optimized/ipari/uveghazi-szerkezetgyartas-hero-20261027.webp");
  background-position: center 42%;
}

.hero--greenhouse-service::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, .82), rgba(8, 16, 30, .52) 50%, rgba(8, 16, 30, .18)), url("../images/optimized/ipari/uveghaz-karbantartas-hero-20261027.webp");
  background-position: center 43%;
}

.hero--pipes::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.1)), url("../images/referenciak/generated-v2/csohalozatok/csohalozatok-alabama-referencia-0115.jpg");
  background-position: center 54%;
}

.hero--preinsulated-pipes::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.1)), url("../images/edited-cards-20261027/csohalozat-piros-munkaruha-rendezett-v2.jpg");
}

.hero--earthworks::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.12)), url("../images/referenciak/generated-v2/csohalozatok/csohalozatok-alabama-referencia-0057.jpg");
  background-position: center 52%;
}

.hero--support-building::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.1)), url("../images/optimized/ipari/kiszolgaloepulet-parkositott-20261026.webp");
  background-position: center 52%;
}

.hero--greenhouse-heating::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.1)), url("../images/referenciak/generated-v2/csohalozatok/csohalozatok-alabama-referencia-0488.jpg");
  background-position: center 50%;
}

.hero--bolted-tanks::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.5) 52%, rgba(8, 16, 30, 0.1)), url("/assets/images/optimized/seo-20261107/csavarozott-elemes-aceltartalyok-es-silok-1554w.webp");
  background-position: center;
}

.hero--tank::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.48) 50%, rgba(8, 16, 30, 0.1)), url("../images/tartalyepites-gallery/csanytelek-kesz-tartaly-logoval.jpg");
  background-position: center 46%;
}

.hero--cnc::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.48) 50%, rgba(8, 16, 30, 0.1)), url("../images/projektek/lezervagas-valogatas-20261027/lezervagas-munkafazis-05.jpg");
  background-position: center 50%;
}

.hero--cnc-bending::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.5) 50%, rgba(8, 16, 30, 0.14)), url("../images/projektek/cnc/cnc-hajlito-gep.jpg");
  background-position: center 50%;
}

.hero--badogos::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.8), rgba(8, 16, 30, 0.52) 48%, rgba(8, 16, 30, 0.12)), url("../images/optimized/ipari/badogos-csarnokszeges-hero.webp");
  background-position: center 46%;
}

.hero--rolling::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.5) 50%, rgba(8, 16, 30, 0.14)), url("../images/projektek/hengeritett-lemezek-20261027/ivelt-lemez-beemelese.jpg");
  background-position: center 50%;
}

.hero--welding::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.78), rgba(8, 16, 30, 0.48) 50%, rgba(8, 16, 30, 0.1)), url("../images/tartalyepites-gallery/tartaly-hegesztes-reszlet.jpg");
}

.hero__content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(96px + var(--hero-extra-space, 0px)) 0;
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(300px, 420px);
  justify-content: center;
  gap: 48px;
  align-items: center;
}

.hero__content > * {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero--telephely .home-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.24em;
}

.home-hero-title__company {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding: 0 0.04em 0.1em;
  font-size: 1em;
  font-weight: 950;
  letter-spacing: 0.012em;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(3, 9, 18, 0.5);
}

.home-hero-title__company::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.1em;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(1);
  transform-origin: left center;
}

.home-hero-title__service {
  display: block;
  font-size: 0.66em;
  line-height: 1.08;
}

.hero--telephely .home-hero-title + .hero-lead {
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 800;
}

/* Keep the overview-page title and its short explanation clearly separated. */
.greenhouse-page .greenhouse-hero .hero__content > div > .hero-lead,
.hero--cnc .hero__content > div > h1 + p,
.category-hub .category-hero .category-summary {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 780px) {
  .hero--telephely .home-hero-title + .hero-lead {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 800;
  }

  .greenhouse-page .greenhouse-hero .hero__content > div > .hero-lead,
  .hero--cnc .hero__content > div > h1 + p,
  .category-hub .category-hero .category-summary {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }
}

.hero p {
  max-width: 680px;
  color: #e2e8f4;
  font-size: 18px;
  margin: 0 0 26px;
  overflow-wrap: anywhere;
}

.hero .hero-lead {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 18px;
}

.hero--telephely .hero-lead {
  font-size: clamp(30px, 3.3vw, 44px);
}

.hero--telephely .hero-lead + p {
  max-width: 680px;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-contact-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-panel h2,
.hero-panel h3 {
  margin-top: 0;
}

.hero-contact-panel h2 {
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-contact-panel .eyebrow {
  color: var(--amber);
}

.hero > .hero__content .eyebrow,
.section--dark .eyebrow {
  color: var(--amber-light);
}

.hero-route-actions {
  margin: 30px 0 6px;
}

.hero .hero-panel-note {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.subcontractor-page .hero {
  min-height: calc(500px + 2 * var(--hero-extra-space, 0px));
}

.subcontractor-page .hero__content {
  grid-template-columns: minmax(0, 700px);
  padding: calc(70px + var(--hero-extra-space, 0px)) 0;
}

.subcontractor-page .hero h1 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.04;
}

.subcontractor-page .hero .hero-lead {
  max-width: 640px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.42;
  font-weight: 800;
}

.subcontractor-page .hero .breadcrumb {
  display: none;
}

.hero-proof-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.hero-proof-list li {
  position: relative;
  padding-left: 18px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}

.hero-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.hero-contact-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.hero-contact-card {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #f8fafc;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hero-contact-card:hover,
.hero-contact-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(227, 27, 43, 0.5);
  background: var(--white);
  outline: none;
}

.hero-contact-card span {
  color: var(--amber);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-contact-card strong {
  font-size: 21px;
  line-height: 1.15;
}

.hero-contact-card em {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
  font-size: 20px;
}

.hero-panel .small-list {
  margin-bottom: 20px;
}

.section {
  padding: 88px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark .muted {
  color: #c8d2e4;
}

.brand-entity {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand-entity__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 44px;
  align-items: start;
}

.brand-entity__copy {
  max-width: 980px;
}

.brand-entity__copy p:not(.eyebrow) {
  max-width: 920px;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.72;
}

.brand-entity__facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.brand-entity__facts div {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 18px;
}

.brand-entity__facts dt {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.brand-entity__facts dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 760px) {
  .brand-entity__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .brand-entity__copy p:not(.eyebrow) {
    font-size: 16px;
  }
}

.about-industrial {
  background:
    linear-gradient(90deg, rgba(7, 16, 31, 0.96), rgba(11, 20, 36, 0.9)),
    url("../images/alabama-telephely-rendezett-20261027-v2.jpg") center / cover;
}

.about-industrial__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: start;
}

.about-industrial__copy {
  max-width: 780px;
}

.about-industrial h2,
.about-industrial h3 {
  color: var(--white);
}

.about-industrial__copy p {
  color: #dbe3f2;
  font-size: 17px;
}

.leadership {
  display: grid;
  gap: 18px;
}

.leader-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.leader-card--primary {
  border-color: rgba(227, 27, 43, 0.72);
  background: linear-gradient(145deg, rgba(227, 27, 43, 0.18), rgba(255, 255, 255, 0.1));
}

.leader-photo,
.leader-portrait {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: var(--white);
}

.leader-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.leader-photo img,
.leader-portrait {
  object-fit: cover;
}

.leader-portrait--szabolcs {
  object-position: center 24%;
}

.leader-portrait--marcell {
  object-position: center 24%;
}

.leader-photo img {
  width: 100%;
  height: auto;
}

.leader-card h3 {
  margin-bottom: 2px;
  font-size: 24px;
}

.leader-role {
  margin: 0 0 10px;
  color: #dbe3f2;
  font-weight: 800;
}

.leader-phone {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 900;
}

.leader-phone:hover,
.leader-phone:focus-visible {
  color: var(--amber);
}

.leader-note {
  margin: 0;
  color: #dbe3f2;
  font-size: 14px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.contact-mini-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
  box-shadow: 0 16px 42px rgba(12, 24, 42, 0.08);
}

.contact-mini-card strong,
.contact-mini-card span,
.contact-mini-card a {
  display: block;
}

.contact-mini-card strong {
  font-size: 19px;
}

.contact-mini-card span {
  color: var(--muted);
  font-weight: 800;
  margin: 4px 0 10px;
}

.contact-mini-card a {
  color: var(--red);
  font-weight: 900;
}

.contact-leader-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-leader-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
  box-shadow: 0 16px 42px rgba(12, 24, 42, 0.08);
}

.contact-leader-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--white);
}

.contact-leader-card img.leader-portrait--szabolcs {
  object-position: center 24%;
}

.contact-leader-card img.leader-portrait--marcell {
  object-position: center 24%;
}

.contact-leader-card small,
.contact-leader-card strong,
.contact-leader-card span,
.contact-leader-card a {
  display: block;
}

.contact-leader-card small {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-leader-card strong {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.1;
}

.contact-leader-card span {
  color: var(--muted);
  font-weight: 800;
  margin: 4px 0 8px;
}

.contact-leader-card a {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 34px;
}

.greenhouse-services-intro {
  max-width: 1180px;
  margin: -12px auto 34px;
  color: var(--steel);
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: 1.72;
  text-align: center;
  text-wrap: pretty;
}

.greenhouse-services-intro strong {
  color: var(--navy);
  font-weight: 900;
}

.category-intro-block {
  margin: -8px 0 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--steel);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.category-intro-block p {
  margin: 0;
}

.eyebrow {
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin: 0 0 8px;
}

h2 {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.1;
  margin: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 12px;
}

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

.audience-grid,
.card-grid,
.service-grid,
.legal-grid {
  display: grid;
  gap: 22px;
}

.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.audience-card,
.card,
.service-card,
.quote-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(12, 24, 42, 0.08);
}

.audience-card {
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 42px;
  color: var(--white);
  background: var(--navy);
}

.audience-card h3 {
  font-size: clamp(28px, 2.4vw, 36px);
}

.audience-grid--primary .audience-card h3 {
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

.audience-grid--primary .audience-card h3::after {
  content: none;
}

.audience-grid--primary .audience-card .eyebrow {
  color: var(--amber-light);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.audience-card li {
  font-size: 18px;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.84;
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.04), rgba(8, 16, 30, 0.26) 42%, rgba(8, 16, 30, 0.94));
}

.audience-card--residential::before {
  background-image: url("../images/klima-szereles.jpg");
  background-position: center 46%;
}

.audience-card--industrial::before {
  background-image: url("../images/alabama-telephely-rendezett-20261027-v2.jpg");
  background-position: center 58%;
}

.audience-card--metal::before {
  background-image: url("../images/optimized/ipari/lezervagas-szikrak-jobb-20261023.webp");
  background-position: center;
}

.audience-card--general::before {
  background-image: url("../images/sajat/sajat-csarnok-parkositott-alabama-molino-20261026.webp");
  background-position: 62% 52%;
}

.audience-card--heating::before {
  background-image: url("../images/projektek/gepeszet/gepeszeti-rendszer-jobb-20261023.webp");
  background-position: center;
}

.audience-card--tank::before {
  background-image: url("/assets/images/edited-cards-20261029/project-retouch/gyulahaza-photo-01-v1-1440.webp");
  background-position: center;
}

.audience-card--pipe::before {
  background-image: url("../images/edited-cards-20261027/csohalozat-piros-munkaruha-rendezett-v2.jpg");
  background-position: center 52%;
}

.audience-card > div {
  position: relative;
  z-index: 1;
}

.audience-card ul,
.small-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.audience-card li,
.small-list li {
  margin: 8px 0;
  padding-left: 18px;
  position: relative;
}

.audience-card li::before,
.small-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

.reference-proof-section {
  background: var(--white);
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.proof-metrics article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(12, 24, 42, 0.07);
}

.proof-metrics strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.proof-metrics span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.featured-reference-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.featured-reference-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(12, 24, 42, 0.08);
}

.featured-reference-card a {
  display: grid;
  grid-template-rows: 190px auto auto;
  min-height: 100%;
}

.featured-reference-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--soft);
}

.featured-reference-card span,
.featured-reference-card strong {
  display: block;
  min-width: 0;
}

.featured-reference-card span {
  padding: 14px 16px 0;
  color: var(--amber);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.featured-reference-card strong {
  padding: 6px 16px 18px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
}

.featured-reference-card a:hover img,
.featured-reference-card a:focus-visible img {
  filter: saturate(1.05) contrast(1.03);
}

.partner-section {
  background: var(--white);
}

.partner-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.partner-panel {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 42px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partner-panel::before,
.partner-panel::after {
  content: "";
  position: absolute;
  inset: 0;
}

.partner-panel::before {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.partner-panel::after {
  background: linear-gradient(90deg, rgba(8, 16, 30, 0.92), rgba(8, 16, 30, 0.72) 48%, rgba(8, 16, 30, 0.22));
}

.partner-panel--subs::before {
  background-image: url("../images/projektek/csarnok/csarnok-helyszini-szereles.jpg");
  background-position: center 48%;
}

.partner-panel--subs::after {
  background:
    linear-gradient(90deg, rgba(227, 27, 43, 0.88), rgba(8, 16, 30, 0.76) 46%, rgba(8, 16, 30, 0.18)),
    linear-gradient(180deg, rgba(8, 16, 30, 0.06), rgba(8, 16, 30, 0.42));
}

.partner-panel--career::before {
  background-image: url("../images/alabama-telephely-rendezett-20261027-v2.jpg");
  background-position: center 52%;
}

.partner-panel--career::after {
  background:
    linear-gradient(90deg, rgba(8, 16, 30, 0.9), rgba(8, 16, 30, 0.72) 56%, rgba(8, 16, 30, 0.24)),
    linear-gradient(180deg, rgba(8, 16, 30, 0.08), rgba(8, 16, 30, 0.5));
}

.partner-panel__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.partner-panel .btn {
  position: relative;
  z-index: 2;
}

.partner-panel .eyebrow {
  color: #ffd166;
}

.partner-panel h3 {
  font-size: clamp(28px, 2vw, 38px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.partner-panel p {
  margin: 0 0 18px;
  color: #eef3fb;
  font-size: 17px;
}

.partner-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.partner-list li {
  position: relative;
  padding-left: 18px;
  color: var(--white);
  font-weight: 800;
  line-height: 1.35;
}

.partner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  background: #ffd800;
}

.partner-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 4px solid #ffd800;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 18px;
}

.partner-detail {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.partner-detail strong,
.partner-detail span {
  display: block;
}

.partner-detail strong {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 14px;
}

.partner-detail span {
  color: #eaf1fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.local-seo-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eef3f9 100%);
}

.local-seo-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(11, 20, 36, 0.09);
}

.local-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: start;
}

.local-seo-card h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
}

.local-seo-card h3 {
  margin: 6px 0 14px;
  font-size: 21px;
}

.local-seo-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.local-seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.local-seo-tags li {
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 9px 12px;
}

.local-seo-city-list {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.card,
.service-card,
.quote-card,
.legal-card {
  padding: 26px;
}

.service-card {
  display: block;
  color: inherit;
}

.service-card img,
.media-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-card img.image-focus-tank,
.media-card img.image-focus-tank {
  object-position: center 56%;
}

.service-card img.image-focus-badogos,
.media-card img.image-focus-badogos {
  object-position: 58% center;
}

.service-photo.image-focus-badogos {
  object-position: 58% center;
}

.service-card p,
.card p {
  margin-bottom: 0;
}

.industrial-proof-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 26px;
  padding: 22px 26px;
  border: 1px solid rgba(226, 17, 31, 0.24);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff5f6, var(--white));
  box-shadow: 0 16px 40px rgba(12, 24, 42, 0.06);
}

.industrial-proof-strip strong {
  font-size: 23px;
  line-height: 1.18;
}

.industrial-proof-strip span {
  color: var(--muted);
  line-height: 1.65;
}

.service-card--clickable {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card--clickable:hover,
.service-card--clickable:focus {
  border-color: rgba(226, 17, 31, 0.44);
  box-shadow: 0 24px 58px rgba(12, 24, 42, 0.14);
  outline: none;
  transform: translateY(-2px);
}

.service-card--clickable::after {
  content: "Részletek megnyitása";
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.industrial-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.detail-intro {
  max-width: 860px;
  margin: 54px 0 22px;
}

.detail-intro h2 {
  margin-bottom: 12px;
}

.industrial-detail {
  scroll-margin-top: 120px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(12, 24, 42, 0.08);
}

.industrial-detail--wide {
  grid-column: span 2;
}

.industrial-detail h3 {
  margin-top: 0;
  font-size: 28px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--amber);
}

.check-list--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--red);
}

.service-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.tank-intro-grid {
  width: min(1280px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 34px;
}

.tank-intro-grid .content-panel {
  padding: 38px;
}

.tank-intro-grid .content-panel p,
.tank-intro-grid .check-list li {
  font-size: 17px;
  line-height: 1.65;
}

.tank-intro-grid .service-photo-stack .service-photo {
  height: 390px;
}

.tank-story-section {
  padding-block: clamp(72px, 8vw, 126px);
}

.tank-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: clamp(42px, 5vw, 82px);
  align-items: start;
}

.tank-story__copy {
  max-width: 920px;
}

.tank-story__copy h2 {
  margin: 8px 0 30px;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tank-story__prose {
  color: var(--steel);
  font-size: clamp(18px, 1.18vw, 21px);
  line-height: 1.75;
}

.tank-story__prose p {
  margin: 0 0 1.25em;
}

.tank-story__prose p:first-child {
  color: var(--navy);
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.58;
}

.tank-story__prose strong {
  color: var(--navy);
}

.tank-story__visuals {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.tank-story__visuals .service-photo,
.tank-story__visuals .service-photo--small {
  height: clamp(280px, 27vw, 430px);
  border-radius: 12px;
  object-fit: cover;
}

.tank-story__visuals .service-photo--small {
  height: clamp(240px, 22vw, 350px);
}

.service-detail-section {
  padding-block: clamp(72px, 8vw, 126px);
}

.service-detail-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.service-detail-story__copy {
  min-width: 0;
}

.service-detail-story__visuals {
  display: grid;
  gap: 20px;
}

.service-detail-story__photo {
  min-width: 0;
  margin: 0;
}

.service-detail-story__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(12, 24, 42, 0.1);
}

.service-detail-story h2 {
  max-width: 980px;
  margin: 8px 0 30px;
  font-size: clamp(32px, 2.8vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.service-detail-story__prose {
  max-width: 1080px;
  color: var(--steel);
  font-size: clamp(18px, 1.18vw, 21px);
  line-height: 1.75;
}

.service-detail-story__prose p {
  margin: 0 0 1.25em;
}

.service-detail-story__prose p:first-child {
  color: var(--navy);
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.58;
}

.service-detail-story__prose strong {
  color: var(--navy);
}

.service-detail-gallery {
  margin-top: clamp(42px, 5vw, 72px);
}

.service-detail-gallery__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.service-detail-gallery__header h2,
.service-detail-gallery__header h3 {
  margin: 0;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Photo strips have no visible captions; retain their headings for navigation. */
.service-detail-gallery__header > div:first-child,
.service-gallery-lightbox__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.service-detail-gallery__header > .service-detail-gallery__navigation {
  margin-left: auto;
}

.category-services-intro {
  max-width: 1180px;
  margin: 0 auto 34px;
  color: var(--steel);
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

.category-hero h1 {
  max-width: 100%;
  white-space: normal;
}

.service-detail-gallery__navigation {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.service-detail-gallery__status,
.service-detail-gallery__header [data-carousel-status] {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.service-detail-gallery__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-detail-gallery__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
}

.service-detail-gallery__controls button:hover {
  border-color: var(--red);
  color: var(--red);
}

.service-detail-gallery__controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.service-detail-gallery__viewport {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0 22px;
}

.service-detail-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.service-detail-gallery__viewport.is-slideshow {
  overflow: hidden;
  scroll-snap-type: none;
}

.service-detail-gallery__viewport.is-slideshow .service-detail-gallery__track {
  transform: translate3d(var(--gallery-offset, 0px), 0, 0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-detail-gallery__viewport.is-resetting .service-detail-gallery__track,
.service-detail-gallery__viewport.is-resetting .service-detail-gallery__item {
  transition: none !important;
}

.service-detail-gallery__track {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.service-detail-gallery__item {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(12, 24, 42, 0.1);
  scroll-snap-align: start;
}

.is-slideshow .service-detail-gallery__item {
  opacity: 0.6;
  transform: scale(0.9);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), opacity 650ms ease;
}

.is-slideshow .service-detail-gallery__item.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-detail-gallery__item > button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--soft);
  cursor: zoom-in;
}

.service-detail-gallery button:focus-visible,
.service-detail-gallery__viewport:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -3px;
}

.service-detail-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-detail-gallery__item figcaption {
  display: none;
}

.service-detail-section--legacy .content-panel--accent {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.service-detail-section--legacy .service-photo-stack > img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

html.service-gallery-open {
  overflow: hidden;
}

.service-gallery-lightbox {
  width: min(1500px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
}

.service-gallery-lightbox::backdrop {
  background: rgba(4, 10, 18, 0.9);
}

.service-gallery-lightbox__content {
  padding: 20px;
}

.service-gallery-lightbox__toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.service-gallery-lightbox__title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  color: var(--white);
}

.service-gallery-lightbox__counter {
  margin: 0;
  font-size: 14px;
}

.service-gallery-lightbox__controls {
  display: flex;
  gap: 8px;
}

.service-gallery-lightbox__controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 23px;
}

.service-gallery-lightbox__figure {
  margin: 0;
}

.service-gallery-lightbox__image {
  display: block;
  width: 100%;
  height: min(72dvh, 980px);
  object-fit: contain;
  background: #060d17;
}

.service-gallery-lightbox__caption {
  display: none;
}

@media (max-width: 980px) {
  .service-detail-story {
    grid-template-columns: 1fr;
  }

  .service-detail-story__visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .service-detail-gallery__header {
    flex-wrap: wrap;
    gap: 18px;
  }

  .service-detail-gallery__item {
    flex-basis: 72%;
    width: 72%;
  }

  .service-detail-gallery__track {
    gap: 14px;
  }

  .service-gallery-lightbox__content {
    padding: 12px;
  }

  .service-gallery-lightbox__toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .service-gallery-lightbox__title {
    flex-basis: 80%;
    font-size: 18px;
  }

  .service-gallery-lightbox__image {
    height: 58dvh;
  }
}

.service-related-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(52px, 7vw, 92px);
  padding: clamp(26px, 3.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 22px 58px rgba(12, 24, 42, 0.1);
  scroll-margin-top: 120px;
}

.service-related-feature__media {
  overflow: hidden;
  border-radius: 14px;
  background: var(--soft);
}

.service-related-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.service-related-feature__copy h3 {
  margin: 6px 0 22px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.service-related-feature__copy p:not(.eyebrow) {
  margin: 0 0 1em;
  color: var(--steel);
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.7;
}

.tank-process {
  margin-top: clamp(46px, 6vw, 82px);
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(237, 27, 47, 0.12), transparent 48%),
    var(--navy);
  color: var(--white);
  box-shadow: 0 24px 56px rgba(7, 18, 34, 0.18);
}

.tank-process__header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(26px, 3vw, 38px);
}

.tank-process__header .eyebrow {
  margin-bottom: 8px;
  color: #ffd25d;
}

.tank-process__header h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.tank-process__header > p {
  margin: 0;
  color: #d9e1ed;
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.6;
}

.tank-process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.tank-process__step {
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2.4vw, 32px) 0;
}

.tank-process__step:first-child {
  padding-left: 0;
}

.tank-process__step + .tank-process__step {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.tank-process__number {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tank-process__step h4 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.2;
}

.tank-process__step p {
  margin: 0;
  color: #cbd5e3;
  font-size: 16px;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .service-detail-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-related-feature {
    grid-template-columns: 1fr;
  }

  .service-related-feature__media {
    max-width: 640px;
  }

  .tank-story {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tank-story__copy {
    max-width: none;
  }

  .tank-story__visuals {
    position: static;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .tank-process__header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tank-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tank-process__step:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .tank-process__step:nth-child(n + 3) {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 620px) {
  .service-detail-section {
    padding-block: 54px;
  }

  .service-detail-story h2 {
    margin-bottom: 24px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .service-detail-story__prose,
  .service-detail-story__prose p:first-child {
    font-size: 17px;
    line-height: 1.68;
  }

  .service-detail-gallery__grid {
    grid-template-columns: 1fr;
  }

  .service-detail-gallery__item figcaption {
    min-height: 0;
  }

  .service-related-feature {
    padding: 22px;
  }

  .tank-story-section {
    padding-block: 54px;
  }

  .tank-story__copy h2 {
    margin-bottom: 24px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .tank-story__prose,
  .tank-story__prose p:first-child {
    font-size: 17px;
    line-height: 1.68;
  }

  .tank-story__visuals {
    grid-template-columns: 1fr;
  }

  .tank-story__visuals .service-photo,
  .tank-story__visuals .service-photo--small {
    height: 250px;
  }

  .tank-process {
    margin-top: 38px;
    padding: 26px 22px;
    border-radius: 14px;
  }

  .tank-process__steps {
    grid-template-columns: 1fr;
  }

  .tank-process__step,
  .tank-process__step:first-child,
  .tank-process__step:nth-child(odd) {
    padding: 24px 0 0;
    border-left: 0;
  }

  .tank-process__step + .tank-process__step,
  .tank-process__step:nth-child(n + 3) {
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px;
  box-shadow: 0 18px 48px rgba(12, 24, 42, 0.08);
}

.content-panel--dark {
  background: var(--navy);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
}

.content-panel--accent {
  border-left: 6px solid var(--red);
}

.content-panel h2,
.content-panel h3 {
  margin-bottom: 16px;
}

.content-panel h2 {
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 1.14;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.service-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-photo-stack {
  display: grid;
  gap: 16px;
}

.service-photo-stack .service-photo {
  height: 320px;
}

.service-photo-stack .service-photo--small {
  height: 190px;
}

.service-caption {
  border-left: 4px solid var(--amber);
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff7e8;
  font-weight: 800;
  color: var(--navy);
}

.machine-flow {
  display: grid;
  gap: 26px;
}

.machine-flow__lead {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
}

.machine-flow__lead--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.machine-flow__lead p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.machine-flow__lead strong,
.machine-card strong,
.machine-note strong {
  color: var(--navy);
  font-weight: 900;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.machine-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(12, 24, 42, 0.08);
}

.machine-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #f7f9fc;
}

.machine-card--contain img {
  object-fit: contain;
  padding: 20px;
}

.machine-card__body {
  padding: 20px;
}

.machine-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.machine-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.machine-note {
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7f7, #fff);
  padding: 22px 24px;
  box-shadow: 0 16px 38px rgba(12, 24, 42, 0.06);
  color: var(--navy);
  font-size: 18px;
  line-height: 1.55;
}

.machine-note span {
  color: var(--red);
}

.service-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-showcase__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 38px rgba(12, 24, 42, 0.08);
}

.service-showcase__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.service-showcase__item div {
  padding: 18px;
}

.service-showcase__item strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.service-showcase__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-deep-dive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.service-detail-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.service-detail-list div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
}

.service-detail-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(12, 24, 42, 0.08);
}

.service-gallery img,
.service-gallery video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #0b1423;
}

.service-gallery--fit img {
  height: 300px;
  object-fit: cover;
  object-position: center center;
  background: #0b1423;
}

.media-fit-contain {
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

.service-gallery figcaption {
  padding: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.finished-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.finished-gallery__item {
  position: relative;
  min-height: 410px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(12, 24, 42, 0.12);
}

.finished-gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  display: block;
}

.finished-gallery__item::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 31, 0.88));
  pointer-events: none;
}

.finished-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 20px;
  color: var(--white);
  line-height: 1.2;
}

.finished-gallery__item figcaption strong {
  font-size: 20px;
}

.finished-gallery__item figcaption span {
  color: #dbe3f2;
  font-size: 14px;
  font-weight: 800;
}

.process-block {
  margin-top: 70px;
}

.section-head--compact {
  margin-bottom: 24px;
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.build-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
  box-shadow: 0 14px 34px rgba(12, 24, 42, 0.08);
}

.build-steps span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.build-steps h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.build-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.build-steps--with-images article {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.build-steps--with-images img,
.build-steps--with-images video {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.build-step__body {
  padding: 18px;
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-gallery__item {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 16px 38px rgba(12, 24, 42, 0.1);
}

.process-gallery__item--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 516px;
}

.process-gallery__item img,
.process-gallery__item video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.process-gallery__item--featured img,
.process-gallery__item--featured video {
  min-height: 516px;
}

.process-gallery__item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 31, 0.88));
  pointer-events: none;
}

.process-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 18px;
  color: var(--white);
  line-height: 1.2;
}

.process-gallery__item figcaption em {
  width: fit-content;
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.process-gallery__item figcaption strong {
  font-size: 18px;
}

.process-gallery__item figcaption span {
  color: #dbe3f2;
  font-size: 14px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}

.info-box strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.related-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 900;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #18263d);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-strip p {
  margin: 0;
  color: #dbe3f2;
}

.number {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 12px;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(215, 222, 234, 0.18);
}

.step::before {
  content: counter(step);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__media--natural {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
}

.location-grid h2 {
  max-width: 620px;
}

.location-grid .muted {
  font-size: 17px;
  line-height: 1.7;
}

.location-highlights {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}

.location-highlight {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(12, 24, 42, 0.08);
}

.location-highlight span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.location-highlight strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 18px;
}

.location-highlight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.location-map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.location-map-card .consent-embed {
  flex: 1 1 auto;
  height: auto;
  min-height: 320px;
}

.location-map-card .consent-embed__placeholder {
  min-height: 320px;
  border: 0;
  border-radius: 0;
}

.location-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  pointer-events: auto;
}

.location-map-card::after {
  content: none;
}

.location-map-link {
  display: block;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.location-map-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
}

.location-map-badge strong {
  font-size: 18px;
}

.location-map-badge span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e4;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.form textarea {
  min-height: 124px;
  resize: vertical;
}

.form-privacy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-privacy a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form .form-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.form .form-consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.form .form-consent a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.notice {
  border-left: 5px solid var(--red);
  padding: 18px 20px;
  background: #fff4f5;
  border-radius: 8px;
}

.grant-banner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.footer {
  background: #07101f;
  color: #dbe3f2;
  padding: 48px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.78fr 0.78fr 1.05fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand img {
  width: 118px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.footer-brand p {
  margin-top: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-social span {
  color: #dbe3f2;
  font-weight: 800;
  margin-right: 4px;
}

.footer .footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer .footer-social a:hover,
.footer .footer-social a:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

.footer-social img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.footer a {
  color: #dbe3f2;
  display: block;
  margin: 8px 0;
}

.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-contact strong {
  color: #fff;
}

.footer-contact a {
  font-weight: 800;
}

.fixed-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: 0 18px 40px rgba(227, 27, 43, 0.32);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  font-size: 13px;
}

.dark-card {
  background: #142037;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.status {
  min-height: 22px;
  color: var(--red);
  font-weight: 800;
}

.has-cookie-consent .fixed-cta {
  bottom: 112px;
}

@media (max-width: 1680px) {
  .menu-button {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    z-index: 170;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__button {
    width: 100%;
    justify-content: space-between;
  }

  .nav.is-open .nav-dropdown__button {
    cursor: default;
    pointer-events: none;
  }

  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
    background: var(--soft);
  }

  .nav .nav-dropdown__menu a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    gap: 2px;
    min-width: 0;
  }

  .nav .nav-dropdown__menu a strong,
  .nav .nav-dropdown__menu a span {
    min-width: 0;
  }

  .nav.is-open .nav-dropdown__menu {
    display: grid;
  }

  .header__inner {
    position: relative;
  }

  .menu-button {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 1120px) {
  .hero__content,
  .section-head,
  .local-seo-grid,
  .about-industrial__grid,
  .split,
  .location-grid,
  .legal-grid,
  .industrial-proof-strip,
  .service-landing-grid,
  .service-deep-dive,
  .machine-flow__lead,
  .contact-strip,
  .proof-metrics,
  .grant-banner {
    grid-template-columns: 1fr;
  }

  .audience-grid,
  .card-grid,
  .service-grid,
  .industrial-details,
  .contact-card-grid,
  .info-grid,
  .service-gallery,
  .service-showcase,
  .finished-gallery,
  .build-steps,
  .process-gallery,
  .machine-grid,
  .check-list--columns {
    grid-template-columns: 1fr;
  }

  .partner-detail-grid {
    grid-template-columns: 1fr;
  }

  .finished-gallery__item,
  .finished-gallery__item img {
    min-height: 360px;
  }

  .process-gallery__item,
  .process-gallery__item--featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 340px;
  }

  .process-gallery__item img,
  .process-gallery__item--featured img {
    min-height: 340px;
  }

  .industrial-detail--wide {
    grid-column: auto;
  }

  .contact-leader-card {
    grid-template-columns: 1fr;
  }

  .contact-leader-card img {
    width: 100%;
    height: 220px;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 620px;
  }

  .leadership {
    max-width: 720px;
  }

  .featured-reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .partner-panels {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .featured-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar__inner,
  .header__inner,
  .container,
  .hero__content {
    width: calc(100% - 44px);
    margin-left: auto;
    margin-right: auto;
  }

  .header__inner {
    position: relative;
    min-height: 76px;
    gap: 10px;
    padding-right: 62px;
  }

  .topbar__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 0;
  }

  .brand img {
    width: 64px;
  }

  .brand {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
  }

  .brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
  }

  .brand span {
    display: none;
  }

  .topbar__inner a[href^="mailto"] {
    display: none;
  }

  .menu-button {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    transform: translateY(-50%);
  }

  .hero h1 {
    max-width: 100%;
    font-size: 29px;
    line-height: 1.08;
  }

  .hero .hero-lead {
    font-size: 25px;
    line-height: 1.16;
  }

  .hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero .actions {
    align-items: stretch;
  }

  .hero .actions .btn {
    flex: 1 1 100%;
  }

  .hero .chip {
    max-width: 100%;
  }

  .hero-panel h2,
  .hero-panel h3 {
    font-size: 25px !important;
  }

  .hero-panel {
    max-width: 100%;
    padding: 22px;
    overflow: hidden;
  }

  .hero-panel li,
  .small-list li {
    overflow-wrap: break-word;
  }

  .hero-contact-card strong,
  .hero-contact-card em {
    font-size: 19px;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-photo,
  .leader-portrait {
    width: 100%;
    height: 220px;
  }

  .section {
    padding: 62px 0;
  }

  .audience-card {
    min-height: 440px;
    padding: 28px;
  }

  .proof-metrics,
  .featured-reference-grid {
    grid-template-columns: 1fr;
  }

  .featured-reference-card a {
    grid-template-rows: 210px auto auto;
  }

  .featured-reference-card img {
    height: 210px;
  }

  .form .row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-brand img {
    width: 104px;
  }

  .content-panel {
    padding: 22px;
  }

  .service-photo {
    height: 240px;
  }

  .service-photo-stack .service-photo,
  .service-photo-stack .service-photo--small {
    height: 220px;
  }

  .service-gallery img {
    height: 220px;
  }

  .location-highlight {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .location-highlight span {
    width: 40px;
    height: 40px;
  }

  .location-map-card,
  .location-map-card iframe {
    min-height: 300px;
  }

  .location-map-badge {
    align-items: flex-start;
    flex-direction: column;
  }

  .finished-gallery__item,
  .finished-gallery__item img {
    min-height: 300px;
  }

  .process-gallery__item,
  .process-gallery__item--featured,
  .process-gallery__item img,
  .process-gallery__item--featured img {
    min-height: 260px;
  }

  .contact-strip {
    padding: 22px;
    align-items: stretch;
  }

  .fixed-cta {
    display: none;
  }
}

html.mobile-nav-open .al-ai-chat,
html.mobile-nav-open .fixed-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Alabama decorative section polish */
.section {
  position: relative;
  isolation: isolate;
}

.section:not(.section--dark) {
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(135deg, rgba(15, 30, 52, 0.045) 0 1px, transparent 1px 22px);
}

.section--soft {
  background:
    linear-gradient(135deg, rgba(244, 247, 252, 0.97), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(15, 30, 52, 0.055) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, rgba(237, 28, 36, 0.04), transparent 36%, rgba(255, 153, 0, 0.06));
}

.section--soft::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.72), transparent 18%, transparent 82%, rgba(226, 232, 240, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 44%, rgba(15, 30, 52, 0.03));
  z-index: -1;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  position: relative;
  padding-left: 24px;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  height: auto;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--red), var(--amber));
  opacity: 0.92;
}

.national-badge {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 30, 52, 0.12);
}

.national-badge img {
  width: 64px;
  height: auto;
  display: block;
}

.national-badge strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.national-badge span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.national-badge--dark {
  grid-column: 1 / -1;
  max-width: 920px;
  margin-top: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.national-badge--dark img {
  width: 70px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.national-badge--dark strong {
  color: #fff;
}

.national-badge--dark span {
  color: #dbe3f2;
}

.footer-national {
  margin-top: 18px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #dbe3f2;
  font-weight: 800;
}

.footer-national img {
  width: 34px;
  height: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

@media (max-width: 780px) {
  .section-head {
    padding-left: 16px;
  }

  .section-head::before {
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .national-badge {
    grid-template-columns: 1fr;
  }
}

/* Stabil listajel: nem fontfüggő, ezért nem tud üres négyzetként megjelenni. */
.small-list li::before,
.audience-card li::before {
  content: "" !important;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
}

.footer-national img {
  width: 42px;
  min-width: 42px;
}

.national-badge--dark img {
  width: 82px;
}
/* stable inline icons for imported contact blocks */
.alabama-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #e21825;
}
.alabama-inline-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.footer-national img {
  width: 42px;
  padding: 3px;
  border-radius: 8px;
}
.national-badge--dark img {
  width: 78px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(7, 15, 29, .88), rgba(18, 32, 53, .92)),
    url("../images/alabama-telephely-rendezett-20261027-v2.jpg") center/cover no-repeat;
}

.thanks-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.thanks-logo {
  width: 150px;
  height: auto;
  margin-bottom: 24px;
}

.thanks-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: .98;
}

.thanks-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.thanks-actions .button {
  min-width: 190px;
}


.seo-media-section {
  background:
    linear-gradient(135deg, rgba(245, 247, 251, 0.96), rgba(255, 255, 255, 0.98));
}

.seo-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.seo-media-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  min-height: 100%;
}

.seo-media-card--large {
  grid-column: span 2;
}

.seo-media-card img,
.seo-media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.seo-media-card--large img,
.seo-media-card--large video {
  aspect-ratio: 16 / 10;
}

.seo-media-card figcaption,
.seo-media-card__body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.seo-media-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.seo-media-card span {
  color: var(--muted);
  line-height: 1.55;
}

.seo-media-video {
  position: relative;
  background: #0b1423;
}

.seo-media-video img,
.seo-media-video video {
  filter: brightness(0.58);
}

.seo-media-video--live video {
  filter: none;
}

.seo-media-video video {
  background: #0b1423;
}

.service-video {
  display: block;
  background: #0b1423;
}

.seo-media-video__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1;
}

.seo-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.seo-media-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--red);
}

@media (max-width: 980px) {
  .seo-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .seo-media-grid {
    grid-template-columns: 1fr;
  }

  .seo-media-card--large {
    grid-column: span 1;
  }
}

.hero--references::before {
  background-image:
    linear-gradient(90deg, rgba(7, 15, 29, .86), rgba(7, 15, 29, .62)),
    url("../images/alabama-telephely-rendezett-20261027-v2.jpg");
  background-position: center;
}

.hero--tank-references::before {
  background-image:
    linear-gradient(90deg, rgba(7, 15, 29, .88), rgba(7, 15, 29, .54)),
    url("../images/tartalyepites-gallery/gyulahaza-kesz-tartaly-logo.jpg");
  background-position: center;
}

.references-page .section {
  overflow: clip;
}

.reference-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 26px;
}

.reference-filter {
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.reference-filter:hover,
.reference-filter:focus-visible {
  border-color: rgba(226, 24, 37, .48);
  transform: translateY(-1px);
}

.reference-filter.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(226, 24, 37, .18);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.reference-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.reference-card--wide {
  grid-column: span 6;
}

.reference-card--tall {
  grid-row: span 2;
}

.reference-card__open {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.reference-card figure {
  position: relative;
  margin: 0;
}

.reference-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0b1423;
}

.reference-card--wide .reference-card__media {
  aspect-ratio: 16 / 9;
}

.reference-card--tall .reference-card__media {
  aspect-ratio: 4 / 5;
}

.reference-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.reference-card__media::before {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 15, 29, 0), rgba(7, 15, 29, .82));
  pointer-events: none;
}

.reference-card__media::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 118px;
  height: 52px;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: .9;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
  pointer-events: none;
}

.reference-card figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  gap: 5px;
  color: #fff;
  pointer-events: none;
}

.reference-card__meta {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-card figcaption strong {
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.06;
}

.reference-card figcaption em {
  color: rgba(255, 255, 255, .86);
  font-style: normal;
  line-height: 1.35;
}

.reference-card__body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.reference-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reference-card__link {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 24, 37, .08);
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 7px 12px;
}

.reference-card__link--dark {
  background: #111827;
  color: #fff;
}

.reference-card:hover .reference-card__media img,
.reference-card__open:focus-visible .reference-card__media img {
  transform: scale(1.035);
}

.reference-card__open:focus-visible {
  outline: 3px solid rgba(226, 24, 37, .28);
  outline-offset: -3px;
}

.featured-references {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.featured-references .reference-card {
  grid-column: auto;
}

.reference-seo-block {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.reference-seo-block p {
  color: var(--muted);
  line-height: 1.68;
}

.reference-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.reference-seo-links a {
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .4);
  color: var(--ink);
  font-weight: 900;
  padding: 10px 14px;
}

.reference-project-cards {
  display: grid;
  grid-template-columns: 1.25fr .875fr .875fr;
  gap: 20px;
}

.reference-project-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 26px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 15, 29, .12), rgba(7, 15, 29, .88)),
    url("../images/projektek/csarnok/csarnok-acelvaz-szereles.jpg") center/cover no-repeat;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}

.reference-project-card--tank {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(7, 15, 29, .10), rgba(7, 15, 29, .88)),
    url("../images/tartalyepites-gallery/gyulahaza-kesz-tartaly-logo.jpg") center/cover no-repeat;
}

.reference-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: inherit;
  pointer-events: none;
}

.reference-project-card span {
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.reference-project-card strong {
  max-width: 620px;
  font-size: clamp(1.55rem, 2.4vw, 2.7rem);
  line-height: 1.02;
}

.reference-project-card p {
  max-width: 620px;
  margin: 14px 0 18px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.58;
}

.reference-project-card em {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  padding: 9px 13px;
}

.reference-service-sections {
  display: grid;
  gap: 18px;
}

.reference-service-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .34);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.reference-service-section__content {
  display: grid;
  gap: 10px;
}

.reference-service-section__content > span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(226, 24, 37, .08);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.reference-service-section__content h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 1.75vw, 1.85rem);
  line-height: 1.1;
}

.reference-service-section__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.reference-service-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.reference-service-section__media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reference-service-thumb {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #07111f;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.reference-service-thumb__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  min-height: 0;
  overflow: hidden;
  background: #07111f;
}

.reference-service-thumb__media::before {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 15, 29, 0), rgba(7, 15, 29, .86));
  pointer-events: none;
}

.reference-service-thumb__media::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 78px;
  height: 34px;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: .96;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .72));
  pointer-events: none;
}

.reference-service-thumb__media img,
.reference-service-thumb__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-service-thumb__text {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  gap: 3px;
  pointer-events: none;
}

.reference-service-thumb__text small {
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-service-thumb__text strong {
  color: #fff;
  font-size: clamp(12px, .95vw, 15px);
  line-height: 1.1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.reference-service-thumb--video .reference-service-thumb__media::before {
  content: "Videó";
  inset: 10px auto auto 10px;
  z-index: 4;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
}

.reference-service-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 8px;
  background: rgba(248, 250, 252, .9);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 18px;
}

.reference-lightbox[hidden] {
  display: none !important;
}

.reference-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
  background: rgba(7, 15, 29, .86);
  backdrop-filter: blur(10px);
}

.reference-lightbox-open {
  overflow: hidden;
}

.reference-lightbox__panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.reference-lightbox__figure {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
  margin: 0;
  min-height: 0;
}

.reference-lightbox__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 680px);
  background: #0b1423;
}

.reference-lightbox__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
}

.reference-lightbox__media em {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 154px;
  height: 68px;
  background: url("../images/logo.png") center / contain no-repeat;
  color: transparent;
  font-style: normal;
  font-size: 0;
  font-weight: 900;
  opacity: .92;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .55));
  pointer-events: none;
}

.reference-lightbox figcaption {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
}

.reference-lightbox figcaption span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-lightbox figcaption strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.reference-lightbox figcaption p,
.reference-lightbox figcaption small {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.reference-lightbox__close,
.reference-lightbox__nav {
  position: absolute;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.reference-lightbox__close {
  top: 14px;
  right: 14px;
}

.reference-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.reference-lightbox__nav--prev {
  left: 14px;
}

.reference-lightbox__nav--next {
  right: 14px;
}

.reference-project-page .hero {
  min-height: 640px;
}

.reference-project-section {
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.project-photo-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-photo-card {
  grid-column: span 3;
  display: block;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-photo-grid--featured .project-photo-card {
  grid-column: auto;
}

.project-photo-card:hover,
.project-photo-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(226, 24, 37, .36);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .13);
}

.project-photo-card figure {
  margin: 0;
  display: grid;
}

.project-photo-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b1423;
}

.project-photo-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.project-photo-card:hover .project-photo-card__media img,
.project-photo-card:focus-visible .project-photo-card__media img {
  transform: scale(1.035);
}

.project-photo-card figcaption {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.project-photo-card figcaption span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-photo-card figcaption strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
}

.project-photo-card figcaption em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
}

.reference-project-page .contact-strip {
  align-items: center;
}

@media (max-width: 1100px) {
  .reference-card,
  .reference-card--wide,
  .reference-card--tall {
    grid-column: span 6;
  }

  .featured-references {
    grid-template-columns: 1fr 1fr;
  }

  .reference-project-cards {
    grid-template-columns: 1fr;
  }

  .project-photo-card {
    grid-column: span 4;
  }

  .project-photo-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .reference-filters {
    gap: 8px;
  }

  .reference-filter {
    padding: 9px 12px;
    font-size: 14px;
  }

  .references-grid,
  .featured-references,
  .reference-seo-block {
    grid-template-columns: 1fr;
  }

  .reference-card,
  .reference-card--wide,
  .reference-card--tall {
    grid-column: span 1;
  }

  .reference-card__media,
  .reference-card--wide .reference-card__media,
  .reference-card--tall .reference-card__media {
    aspect-ratio: 4 / 3;
  }

  .reference-lightbox__figure {
    grid-template-columns: 1fr;
  }

  .reference-lightbox__media {
    min-height: 48vh;
  }

  .reference-lightbox figcaption {
    padding: 22px;
  }

  .reference-lightbox__nav {
    top: 42%;
  }

  .reference-project-page .hero {
    min-height: 560px;
  }

  .project-photo-grid,
  .project-photo-grid--featured {
    grid-template-columns: 1fr;
  }

  .project-photo-card,
  .project-photo-grid--featured .project-photo-card {
    grid-column: span 1;
  }
}

/* Reference landing cleanup: fixed rhythm, stronger watermark, clearer media hierarchy. */
.reference-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.reference-video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .10);
}

.reference-video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07111f;
}

.reference-video-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-video-card__media::before {
  content: "Videó";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  pointer-events: none;
}

.reference-video-card__media::after,
.reference-card__media::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  width: 124px;
  height: 54px;
  background: url("../images/logo.png") center / contain no-repeat;
  opacity: .92;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .62));
  pointer-events: none;
}

.reference-video-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.reference-video-card__body span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-video-card__body strong {
  color: var(--ink);
  font-size: clamp(1.22rem, 1.7vw, 1.65rem);
  line-height: 1.08;
}

.reference-video-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.references-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.reference-card,
.reference-card--wide,
.reference-card--tall {
  grid-column: auto;
  grid-row: auto;
  height: 100%;
}

.reference-card__open,
.reference-card figure {
  height: 100%;
}

.reference-card figure {
  display: grid;
  grid-template-rows: auto 1fr;
}

.reference-card__media,
.reference-card--wide .reference-card__media,
.reference-card--tall .reference-card__media {
  aspect-ratio: 4 / 3;
}

.reference-card__body {
  min-height: 170px;
  align-content: start;
}

.reference-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.reference-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin: 28px auto 0;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(237, 27, 47, .18);
}

.reference-load-more:hover {
  background: #c91527;
  border-color: #c91527;
}

.reference-load-more:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .65);
  outline-offset: 3px;
}

.reference-load-more[hidden] {
  display: none;
}

.reference-card figcaption strong {
  font-size: clamp(18px, 1.35vw, 23px);
}

.reference-card figcaption em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.reference-lightbox {
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
}

.reference-lightbox__panel {
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  border-radius: 12px;
}

.reference-lightbox__figure {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  width: 100%;
}

.reference-lightbox__media {
  min-height: 0;
  height: min(76vh, 760px);
}

.reference-lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reference-lightbox__media em {
  right: 24px;
  bottom: 20px;
  width: 162px;
  height: 72px;
  background: url("../images/logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  opacity: .94;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .7));
}

.reference-lightbox figcaption {
  max-height: min(76vh, 760px);
  overflow: auto;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
}

.reference-lightbox figcaption strong {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  overflow-wrap: anywhere;
}

.reference-lightbox__link {
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  padding: 10px 14px;
}

.reference-lightbox__media {
  background: #fff;
}

[data-static-lightbox] .reference-lightbox__media em {
  display: none;
}

@media (max-width: 1100px) {
  .reference-service-section {
    grid-template-columns: 1fr;
  }

  .reference-service-section__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-video-grid,
  .references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .reference-service-section {
    padding: 18px;
  }

  .reference-service-section__media {
    grid-template-columns: 1fr;
  }

  .reference-service-thumb__media {
    min-height: 220px;
  }

  .reference-service-section__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-service-section__actions .reference-card__link {
    width: 100%;
    text-align: center;
  }

  .reference-video-grid,
  .references-grid {
    grid-template-columns: 1fr;
  }

  .reference-card__body {
    min-height: 0;
  }

  .reference-lightbox {
    padding: 10px;
  }

  .reference-lightbox__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .reference-lightbox__figure {
    grid-template-columns: 1fr;
  }

  .reference-lightbox__media {
    height: 52vh;
  }

  .reference-lightbox figcaption {
    max-height: 34vh;
    padding: 20px;
  }
}

/* Reference overview v3: compact service landing cards, full media on subpages. */
.reference-service-section {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.reference-service-section__content {
  gap: 8px;
}

.reference-service-section__content h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
}

.reference-service-section__content p {
  font-size: 14px;
  line-height: 1.48;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.reference-service-section__media {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reference-service-thumb {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .11);
}

.reference-service-thumb__media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.reference-service-thumb__media::after,
.reference-card__media::after,
.reference-video-card__media::after {
  width: 92px;
  height: 40px;
  opacity: 1;
}

.reference-service-thumb__text {
  left: 8px;
  right: 8px;
  bottom: 8px;
}

.reference-service-thumb__text strong {
  font-size: 12px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.reference-gallery-page .references-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.reference-gallery-page .reference-card {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.reference-gallery-page .reference-card__media,
.reference-gallery-page .reference-card--wide .reference-card__media,
.reference-gallery-page .reference-card--tall .reference-card__media {
  aspect-ratio: 1 / 1;
}

.reference-gallery-page .reference-card__body {
  display: none;
}

.reference-gallery-page .reference-card figcaption {
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.reference-gallery-page .reference-card__meta {
  font-size: 10px;
}

.reference-gallery-page .reference-card figcaption strong {
  font-size: 14px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}

.reference-gallery-page .reference-card figcaption em {
  display: none;
}

.reference-lightbox__panel {
  background: #fff;
}

.reference-lightbox__media {
  background: #fff !important;
}

.reference-lightbox__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #fff;
}

.reference-lightbox__media em {
  width: 126px;
  height: 56px;
  opacity: 1;
}

@media (max-width: 1100px) {
  .reference-service-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .reference-service-section__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-service-thumb__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .reference-gallery-page .references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Reference overview v4: lighter, more elegant service cards. */
.reference-service-sections {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.reference-service-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-content: start;
  border-left: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .075);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.reference-service-section:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 24, 37, .32);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .11);
}

.reference-service-section__media {
  order: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(148, 163, 184, .25);
}

.reference-service-thumb {
  border-radius: 0;
  box-shadow: none;
}

.reference-service-thumb__media {
  aspect-ratio: 1.35 / 1;
}

.reference-service-thumb__media::before {
  inset: 48% 0 0;
  background: linear-gradient(180deg, rgba(7, 15, 29, 0), rgba(7, 15, 29, .28));
}

.reference-service-thumb__media::after {
  right: 8px;
  bottom: 8px;
  width: 68px;
  height: 30px;
}

.reference-service-thumb--video .reference-service-thumb__media::before {
  left: 8px;
  top: 8px;
  padding: 6px 9px;
  font-size: 11px;
}

.reference-service-thumb__text {
  display: none;
}

.reference-service-thumb__text small {
  display: none;
}

.reference-service-thumb__text strong {
  font-size: 12px;
  line-height: 1.08;
}

.reference-service-section__content {
  order: 2;
  padding: 13px 14px 14px;
}

.reference-service-section__content > span {
  padding: 5px 9px;
  font-size: 10px;
}

.reference-service-section__content h3 {
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  line-height: 1.12;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.reference-service-section__content p {
  display: none;
}

.reference-service-section__actions {
  gap: 7px;
  margin-top: 1px;
}

.reference-service-section__actions .reference-card__link {
  padding: 7px 10px;
  font-size: 11.5px;
}

.reference-service-empty {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 12px;
}

@media (max-width: 1240px) {
  .reference-service-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .reference-service-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .reference-service-sections {
    grid-template-columns: 1fr;
  }

  .reference-service-section__media {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 2026-07-21: compact reference overview cards and legal/career pages. */
@media (min-width: 981px) {
  .header__inner {
    gap: 14px;
  }

  .brand {
    flex-basis: 270px;
    min-width: 270px;
  }

  .nav {
    gap: 4px;
  }

  .nav a,
  .nav-dropdown__button {
    padding: 9px 9px;
    font-size: 13px;
  }

  .nav .btn {
    padding-inline: 14px;
  }
}

.references-page .reference-service-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.references-page .reference-service-section {
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .075);
}

.references-page .reference-service-section__media {
  height: 78px;
  overflow: hidden;
}

.references-page .reference-service-thumb__media {
  height: 78px;
  aspect-ratio: auto;
}

.references-page .reference-service-section__content {
  min-height: 118px;
  padding: 11px 12px 12px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.references-page .reference-service-section__content > span {
  width: fit-content;
  padding: 4px 8px;
  font-size: 10px;
}

.references-page .reference-service-section__content h3 {
  min-height: 39px;
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.references-page .reference-service-section__actions {
  margin-top: auto;
}

.references-page .reference-service-section__actions .reference-card__link {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 11px;
}

.references-page .reference-service-empty {
  min-height: 78px;
  font-size: 11px;
  text-align: center;
}

.legal-page h1,
.career-page h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-page .legal-grid,
.career-page .legal-grid {
  align-items: start;
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card--note {
  background: #fff7e8;
  border-color: rgba(245, 158, 11, .32);
  border-left: 5px solid #f59e0b;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 960px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 28px);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.career-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.career-role-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.career-role-card span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.career-role-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.career-role-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.checkbox-line input {
  width: auto;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .career-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .references-page .reference-service-sections,
  .career-role-grid {
    grid-template-columns: 1fr;
  }

  .references-page .reference-service-section__media,
  .references-page .reference-service-thumb__media {
    height: 86px;
  }
}

@media (min-width: 1681px) {
  .header:not(.header--compact) .menu-button {
    display: none;
  }

  .header:not(.header--compact) .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

/* 2026-07-22: referencia főoldal kártyák és karrier űrlap finomítás. */
.references-page .reference-service-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.references-page .reference-service-section {
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border-left: 4px solid var(--red);
  border-radius: 10px;
}

.references-page .reference-service-section__content {
  min-height: 0;
  padding: 22px;
  gap: 10px;
}

.references-page .reference-service-section__content > span {
  padding: 6px 10px;
  font-size: 11px;
}

.references-page .reference-service-section__content h3 {
  min-height: 0;
  display: block;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.08;
}

.references-page .reference-service-section__content p {
  display: -webkit-box;
  max-height: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  color: var(--muted);
  line-height: 1.55;
}

.references-page .reference-service-section__actions .reference-card__link {
  padding: 9px 12px;
  font-size: 12px;
}

.references-page .reference-service-section__media {
  height: auto;
  min-height: 260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.references-page .reference-service-thumb:nth-child(n+5) {
  display: none;
}

.references-page .reference-service-thumb__media {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.career-page h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.8vw, 64px);
}

.career-hero .hero__content {
  grid-template-columns: minmax(0, 680px) minmax(320px, 420px);
  align-items: start;
  padding: calc(72px + var(--hero-extra-space, 0px)) 0;
  gap: 56px;
}

.career-page .career-hero h1 {
  max-width: 100%;
  font-size: clamp(34px, 2.35vw, 40px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.career-hero .hero-lead {
  max-width: 640px;
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.career-hero .hero-panel {
  align-self: start;
}

.form label.checkbox-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.form label.checkbox-line input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0 !important;
  padding: 0;
  appearance: auto;
}

.form label.checkbox-line span {
  display: inline;
  font-weight: 800;
}

@media (max-width: 980px) {
  .references-page .reference-service-sections {
    grid-template-columns: 1fr;
  }

  .references-page .reference-service-section {
    grid-template-columns: 1fr;
  }

  .references-page .reference-service-section__media {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .references-page .reference-service-section__content {
    padding: 18px;
  }

  .references-page .reference-service-section__media {
    min-height: 180px;
  }
}

/* 2026-07-25: phone-only layout safety layer. Desktop rules above stay intact. */
@media (max-width: 780px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  .topbar {
    display: none;
  }

  .topbar__inner,
  .header__inner,
  .container,
  .hero__content {
    width: calc(100% - 28px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .header__inner {
    min-height: 72px;
    padding: 8px 64px 8px 0;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100vw - 110px);
  }

  .brand img {
    width: 70px;
    flex: 0 0 auto;
  }

  .brand strong {
    min-width: 0;
    font-size: 16px;
    line-height: 1.08;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .brand span {
    display: none;
  }

  .menu-button {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 75;
    min-width: 54px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    transform: translateY(-50%);
  }

  .nav {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    border-radius: 10px;
  }

  .nav a,
  .nav-dropdown__button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }

  .nav .btn {
    width: 100%;
  }

  .nav-dropdown__menu {
    max-height: none;
    overflow: visible;
  }

  .hero {
    min-height: auto;
    overflow: hidden;
  }

  .hero__content {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 54px 0;
    gap: 24px;
  }

  .hero__content > *,
  .hero-panel,
  .content-panel,
  .service-card,
  .audience-card,
  .legal-card,
  .career-role-card,
  .contact-leader-card,
  .reference-card,
  .reference-service-section,
  .location-map-card,
  .form {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  strong,
  span,
  label {
    overflow-wrap: break-word;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.06;
  }

  .hero .hero-lead {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.14;
  }

  .hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .actions,
  .hero .actions,
  .reference-service-section__actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .btn,
  .actions .btn,
  .hero .actions .btn {
    width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    white-space: normal;
  }

  .chip-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chip {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .section-head h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
  }

  .audience-grid,
  .card-grid,
  .service-grid,
  .industrial-details,
  .contact-card-grid,
  .info-grid,
  .service-gallery,
  .service-showcase,
  .finished-gallery,
  .build-steps,
  .process-gallery,
  .machine-grid,
  .partner-panels,
  .split,
  .location-grid,
  .legal-grid,
  .contact-strip,
  .grant-banner,
  .footer__grid,
  .references-grid,
  .featured-references,
  .reference-service-sections,
  .career-role-grid {
    grid-template-columns: 1fr !important;
  }

  .reference-card,
  .reference-card--wide,
  .reference-card--tall,
  .project-photo-card {
    grid-column: span 1 !important;
  }

  .reference-service-section {
    min-height: 0;
  }

  .reference-service-section__media {
    min-height: 190px;
  }

  .service-card img,
  .service-gallery img,
  .service-showcase img,
  .finished-gallery__item img,
  .process-gallery__item img {
    max-width: 100%;
    object-fit: cover;
  }

  .form .row {
    grid-template-columns: 1fr !important;
  }

  input,
  select,
  textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .location-map-card,
  .location-map-card iframe {
    min-height: 300px;
  }

  .footer__grid {
    gap: 24px;
  }

  .fixed-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar__inner,
  .header__inner,
  .container,
  .hero__content {
    width: calc(100% - 24px);
  }

  .hero__content {
    padding: 46px 0;
  }

  .hero-panel,
  .content-panel,
  .legal-card,
  .career-role-card,
  .contact-leader-card,
  .form,
  .info-box {
    padding: 20px;
  }

  .audience-card {
    min-height: 0;
    padding: 24px;
  }

  .partner-panel {
    min-height: 0;
    padding: 28px 24px;
  }

  .partner-panel h3 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .section-head h2 {
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* 2026-07-25: narrow-phone overflow hardening for the shared pages only. */
@media (max-width: 780px) {
  .hero,
  .section,
  .footer,
  .header {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .header {
    overflow: visible;
  }

  .hero__content {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .hero__content > div,
  .hero-panel,
  .content-panel,
  .audience-card,
  .service-card,
  .form,
  .info-box,
  .location-map-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 34px !important;
    line-height: 1.08 !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere !important;
  }

  .hero .hero-lead,
  .hero p,
  .hero-panel p,
  .hero-panel li,
  .content-panel p,
  .service-card p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere !important;
  }

  .hero--telephely .hero-lead {
    font-size: clamp(20px, 5.5vw, 23px) !important;
    line-height: 1.18 !important;
  }

  .hero--telephely .hero-lead + p {
    font-size: 17px !important;
    line-height: 1.52 !important;
  }

  .hero-panel h2,
  .hero-panel h3,
  .content-panel h2,
  .content-panel h3 {
    font-size: 25px !important;
    line-height: 1.12 !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 480px) {
  .hero__content {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    font-size: 31px !important;
  }

  .hero-panel h2,
  .hero-panel h3,
  .content-panel h2,
  .content-panel h3 {
    font-size: 24px !important;
  }
}

.cookie-consent {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(760px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin: 0 auto;
  padding: 16px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18);
  color: var(--ink, #07162d);
  animation: cookie-consent-enter 220ms ease-out both;
}

.cookie-consent__text {
  max-width: 760px;
}

.cookie-consent__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.cookie-consent__text p {
  margin: 0 0 6px;
  color: var(--muted, #52627a);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__text a {
  color: var(--red, #ed1b2f);
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cookie-consent__button--ghost {
  border: 1px solid rgba(148, 163, 184, 0.85);
  background: #fff;
  color: var(--ink, #07162d);
}

.cookie-consent__button--primary {
  border: 1px solid var(--red, #ed1b2f);
  background: var(--red, #ed1b2f);
  color: #fff;
}

.cookie-consent__link {
  color: var(--muted, #52627a);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: var(--red, #ed1b2f);
}

@keyframes cookie-consent-enter {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 780px) {
  .cookie-consent {
    left: 50%;
    right: auto;
    bottom: 12px;
    width: min(100vw - 20px, 440px);
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-gallery__viewport.is-slideshow .service-detail-gallery__track,
  .is-slideshow .service-detail-gallery__item {
    transition: none !important;
  }

  .btn,
  .hero-contact-card,
  .featured-reference-card img,
  .cookie-consent,
  .cookie-consent__button {
    transition: none;
    animation: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .hero-contact-card:hover,
  .hero-contact-card:focus-visible {
    transform: none;
  }
}

/* Reference overview hero: a taller, real-project photo slideshow. */
.hero--references.reference-hero {
  min-height: clamp(700px, 78vh, 820px);
  isolation: isolate;
}

.hero--references.reference-hero::before {
  content: none;
}

.reference-hero__slides,
.reference-hero__slide,
.reference-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reference-hero__slides {
  z-index: -1;
  overflow: hidden;
  background: var(--navy);
}

.reference-hero__slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.86) 0%, rgba(6, 14, 28, 0.68) 45%, rgba(6, 14, 28, 0.34) 76%, rgba(6, 14, 28, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 14, 28, 0.34), transparent 48%);
}

.reference-hero__slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.15s ease, visibility 1.15s step-end;
}

.reference-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.15s ease, visibility 0s step-start;
}

.reference-hero__slide img {
  object-fit: cover;
  object-position: var(--slide-position, center center);
  filter: saturate(1.03) contrast(1.03);
}

.reference-hero__slide.is-active img {
  animation: reference-hero-drift 7.2s ease-out both;
}

@keyframes reference-hero-drift {
  from { transform: scale(1.01); }
  to { transform: scale(1.075); }
}

.reference-hero .hero__content {
  z-index: 3;
  padding-top: 112px;
  padding-bottom: 132px;
}

.reference-hero__controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 15, 29, 0.58);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.reference-hero__control,
.reference-hero__dot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.reference-hero__control {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font: 900 24px/1 Arial, sans-serif;
}

.reference-hero__control--pause {
  font-size: 15px;
  letter-spacing: -2px;
}

.reference-hero__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.reference-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 180ms ease, background-color 180ms ease;
}

.reference-hero__dot[aria-current="true"] {
  width: 26px;
  background: var(--red);
}

.reference-hero__control:hover,
.reference-hero__control:focus-visible,
.reference-hero__dot:hover,
.reference-hero__dot:focus-visible {
  background-color: var(--red);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero--references.reference-hero {
    min-height: auto;
  }

  .reference-hero .hero__content {
    padding-top: 82px;
    padding-bottom: 112px;
  }

  .reference-hero__slides::after {
    background: linear-gradient(180deg, rgba(6, 14, 28, 0.62), rgba(6, 14, 28, 0.78));
  }
}

@media (max-width: 620px) {
  .reference-hero .hero__content {
    padding-top: 58px;
    padding-bottom: 100px;
  }

  .reference-hero__controls {
    bottom: 22px;
    gap: 7px;
  }

  .reference-hero__control {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-hero__slide {
    transition: none;
  }

  .reference-hero__slide img,
  .reference-hero__slide.is-active img {
    animation: none;
    transform: none;
  }
}

/* Reference overview: selected real-project photos with a full-screen gallery. */
.hero--references.reference-showcase {
  display: block;
  min-height: 0;
  padding: clamp(54px, 6vw, 86px) 0 clamp(28px, 4vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(226, 24, 37, 0.16), transparent 30%),
    linear-gradient(145deg, #07111f 0%, #0c1a2d 54%, #07111f 100%);
}

.hero--references.reference-showcase::before {
  content: none;
}

.reference-showcase__inner {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.reference-showcase__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 24px;
}

.reference-showcase__intro h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.reference-showcase__intro p {
  max-width: 580px;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  text-align: right;
}

.reference-showcase__stage {
  position: relative;
  height: clamp(520px, 58vw, 690px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #050b14;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.reference-showcase__slides,
.reference-showcase__slide,
.reference-showcase__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reference-showcase__slide {
  z-index: 1;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050b14;
  color: #fff;
  cursor: zoom-in;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 620ms ease, visibility 620ms step-end;
}

.reference-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 620ms ease, visibility 0s step-start;
}

.reference-showcase__slide img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.005);
  transition: transform 6.2s ease-out;
}

.reference-showcase__slide.is-active img {
  transform: scale(1.035);
}

.reference-showcase__slide::after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(0deg, rgba(5, 11, 20, 0.82), transparent);
  pointer-events: none;
}

.reference-showcase__caption {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3vw, 42px);
  bottom: clamp(20px, 3vw, 36px);
  max-width: min(70%, 720px);
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.reference-showcase__expand {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(5, 11, 20, 0.58);
  color: #fff;
  font-size: 23px;
  backdrop-filter: blur(8px);
}

.reference-showcase__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(5, 11, 20, 0.62);
  color: #fff;
  cursor: pointer;
  font: 900 34px/1 Arial, sans-serif;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.reference-showcase__nav--prev { left: 20px; }
.reference-showcase__nav--next { right: 20px; }

.reference-showcase__nav:hover,
.reference-showcase__nav:focus-visible,
.reference-showcase__status button:hover,
.reference-showcase__status button:focus-visible {
  background: var(--red);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.reference-showcase__status {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 11, 20, 0.68);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.reference-showcase__status button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.reference-showcase__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 3px 1px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.reference-showcase__thumb {
  position: relative;
  flex: 0 0 clamp(108px, 10vw, 152px);
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border: 3px solid transparent;
  border-radius: 9px;
  background: #111c2d;
  cursor: pointer;
  opacity: 0.64;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.reference-showcase__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-showcase__thumb:hover,
.reference-showcase__thumb:focus-visible,
.reference-showcase__thumb.is-active {
  border-color: var(--red);
  opacity: 1;
  outline: none;
  transform: translateY(-2px);
}

.reference-lightbox--showcase {
  padding: 12px;
  background: rgba(3, 8, 16, 0.96) !important;
  backdrop-filter: blur(14px);
}

.reference-lightbox--showcase,
.reference-lightbox--showcase .reference-lightbox__panel,
.reference-lightbox--showcase .reference-lightbox__figure,
.reference-lightbox--showcase .reference-lightbox__media {
  background-color: #030810 !important;
}

.reference-lightbox--showcase .reference-lightbox__panel {
  width: calc(100vw - 24px);
  height: calc(100vh - 24px);
  max-width: none;
  max-height: calc(100vh - 24px);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #030810;
}

.reference-lightbox--showcase .reference-lightbox__figure {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.reference-lightbox--showcase .reference-lightbox__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #030810;
}

.reference-lightbox--showcase .reference-lightbox__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #030810 !important;
}

.reference-lightbox--showcase figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  max-height: none;
  padding: 80px clamp(74px, 7vw, 116px) 24px;
  overflow: visible;
  background: linear-gradient(0deg, rgba(3, 8, 16, 0.88), transparent);
  pointer-events: none;
}

.reference-lightbox--showcase figcaption span {
  color: rgba(255, 255, 255, 0.74);
}

.reference-lightbox--showcase figcaption strong {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 34px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.reference-lightbox--showcase figcaption p,
.reference-lightbox--showcase figcaption small,
.reference-lightbox--showcase .reference-lightbox__link {
  display: none;
}

.reference-lightbox--showcase .reference-lightbox__close,
.reference-lightbox--showcase .reference-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(3, 8, 16, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
}

.reference-lightbox--showcase .reference-lightbox__close:hover,
.reference-lightbox--showcase .reference-lightbox__close:focus-visible,
.reference-lightbox--showcase .reference-lightbox__nav:hover,
.reference-lightbox--showcase .reference-lightbox__nav:focus-visible {
  background: var(--red);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .hero--references.reference-showcase {
    padding: 38px 0 24px;
  }

  .reference-showcase__inner {
    width: min(100% - 24px, 1480px);
  }

  .reference-showcase__intro {
    display: block;
    margin-bottom: 16px;
  }

  .reference-showcase__intro h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .reference-showcase__intro p {
    margin-top: 10px;
    max-width: 42ch;
    font-size: 15px;
    text-align: left;
  }

  .reference-showcase__stage {
    height: clamp(330px, 84vw, 460px);
    border-radius: 12px;
  }

  .reference-showcase__nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .reference-showcase__nav--prev { left: 10px; }
  .reference-showcase__nav--next { right: 10px; }

  .reference-showcase__expand {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .reference-showcase__caption {
    left: 16px;
    bottom: 18px;
    max-width: 62%;
    font-size: 18px;
  }

  .reference-showcase__status {
    right: 12px;
    bottom: 12px;
  }

  .reference-showcase__thumb {
    flex-basis: 96px;
  }

  .reference-lightbox--showcase {
    padding: 0;
  }

  .reference-lightbox--showcase .reference-lightbox__panel {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .reference-lightbox--showcase .reference-lightbox__media {
    height: 100vh;
  }

  .reference-lightbox--showcase figcaption {
    padding: 70px 64px 18px;
  }

  .reference-lightbox--showcase .reference-lightbox__nav {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-showcase__slide,
  .reference-showcase__slide img,
  .reference-showcase__thumb {
    transition: none;
    transform: none;
  }
}

/* Reference overview: separate photo mosaic and copy, without overlapping tiles. */
.references-page .reference-service-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.references-page .reference-service-section {
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
}

.references-page .reference-service-section__media {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  height: 230px;
  min-height: 230px;
  min-width: 0;
  overflow: hidden;
  align-self: start;
}

.references-page .reference-service-section__media--count-0,
.references-page .reference-service-section__media--count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.references-page .reference-service-section__media--count-2 {
  grid-template-rows: 1fr;
}

.references-page .reference-service-section__media--count-3 .reference-service-thumb:last-child {
  grid-column: 1 / -1;
}

.references-page .reference-service-thumb {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.references-page .reference-service-thumb__media {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.references-page .reference-service-thumb__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.references-page .reference-service-section__media .reference-service-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #f5f7fb;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.references-page .reference-service-section__content {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 230px;
  padding: 22px 20px;
  align-content: center;
}

.references-page .reference-service-section__content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 1120px) {
  .references-page .reference-service-sections {
    grid-template-columns: 1fr;
  }

  .references-page .reference-service-section {
    grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .references-page .reference-service-section {
    grid-template-columns: 1fr;
  }

  .references-page .reference-service-section__media {
    grid-column: 1;
    grid-row: 1;
  }

  .references-page .reference-service-section__content {
    grid-column: 1;
    grid-row: 2;
  }

  .references-page .reference-service-section__media,
  .references-page .reference-service-section__media .reference-service-empty {
    min-height: 210px;
    height: 210px;
  }

  .references-page .reference-service-thumb,
  .references-page .reference-service-thumb__media {
    min-height: 0;
    height: 100%;
  }

  .references-page .reference-service-section__content {
    min-height: 0;
    padding: 18px;
  }
}

/* Keep every preview tile inside its own mosaic column. */
.references-page .reference-service-section__media,
.references-page .reference-service-thumb,
.references-page .reference-service-thumb__media {
  min-width: 0;
  max-width: 100%;
}

/* 2026-10-13: primary service cards and the greenhouse service overview. */
.audience-grid--primary .audience-card {
  min-height: 550px;
  padding: clamp(28px, 3vw, 42px);
}

.audience-grid--primary .audience-card > div {
  width: 100%;
}

.audience-card__intro {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin: 16px 0 20px;
}

.audience-grid--primary .audience-card ul {
  margin-bottom: 26px;
}

.audience-grid--primary .audience-card li {
  font-size: 16px;
}

.audience-card--greenhouse::before {
  background-image: linear-gradient(135deg, var(--navy-2), #243b50);
  opacity: 1;
}

.audience-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.greenhouse-page .greenhouse-hero::before {
  background-image: linear-gradient(90deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.55) 50%, rgba(8, 16, 30, 0.24)), url("/assets/images/optimized/seo-20261107/uveghaz-belso-szemlelteto-lossless-20261027-1675w.webp");
  background-position: center top;
}

.greenhouse-page .greenhouse-image-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.audience-card__illustration {
  position: absolute;
  inset: 28px 0 auto;
  width: 100%;
  height: 220px;
  color: rgba(255, 255, 255, 0.38);
}

.greenhouse-page .greenhouse-hero .hero__content {
  align-items: center;
}

.greenhouse-page .greenhouse-hero-contact {
  border-top: 4px solid var(--red);
  background: var(--white);
}

.greenhouse-page .greenhouse-hero-contact > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.greenhouse-page .greenhouse-hero-contact > .eyebrow {
  color: #805600;
}

.greenhouse-page .service-grid--industrial .service-card img {
  aspect-ratio: 1;
  object-fit: cover;
}

.greenhouse-page .greenhouse-overview-grid,
.greenhouse-page .greenhouse-process-grid,
.greenhouse-page .greenhouse-capability-grid {
  display: grid;
  align-items: stretch;
  gap: 24px;
}

.greenhouse-page .greenhouse-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.greenhouse-page .greenhouse-process-grid,
.greenhouse-page .greenhouse-capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.greenhouse-page .greenhouse-overview-card,
.greenhouse-page .greenhouse-step-card,
.greenhouse-page .greenhouse-capability-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 38px rgba(12, 24, 42, 0.06);
}

.greenhouse-page .greenhouse-overview-card {
  position: relative;
  border-top: 3px solid var(--red);
}

.greenhouse-page .greenhouse-overview-card .greenhouse-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.greenhouse-page .greenhouse-card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 28, 58, 0.12);
  border-radius: 16px;
  color: var(--red);
  background: #fff2f4;
}

.greenhouse-page .greenhouse-card-icon svg {
  width: 32px;
  height: 32px;
}

.greenhouse-page .greenhouse-card-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.greenhouse-page .greenhouse-overview-card h3 {
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.2;
}

.greenhouse-page .greenhouse-overview-card > p:last-of-type,
.greenhouse-page .greenhouse-capability-card > p {
  margin: 4px 0 28px;
  line-height: 1.75;
  color: var(--muted);
}

.greenhouse-page .greenhouse-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.greenhouse-page .greenhouse-card-link span {
  font-size: 24px;
}

.greenhouse-page .greenhouse-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.greenhouse-page .greenhouse-card-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 6px;
  border-radius: 4px;
}

.greenhouse-page .greenhouse-intro {
  align-items: center;
  gap: 44px;
}

.greenhouse-page .greenhouse-intro__copy {
  padding: clamp(28px, 3.5vw, 44px);
}

.greenhouse-page .greenhouse-intro__copy p {
  line-height: 1.75;
}

.greenhouse-page .greenhouse-intro__copy .greenhouse-card-link {
  margin-top: 28px;
}

.greenhouse-page .greenhouse-intro__media {
  margin: 0;
}

.greenhouse-page .greenhouse-intro__media .service-photo {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.greenhouse-page .greenhouse-step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.greenhouse-page .greenhouse-step-card h3,
.greenhouse-page .greenhouse-capability-card h3 {
  font-size: 22px;
  line-height: 1.3;
}

.greenhouse-page .greenhouse-step-card p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.greenhouse-page .greenhouse-inquiry-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.greenhouse-page .greenhouse-inquiry-panel > div > p:not(.eyebrow) {
  margin-top: 24px;
  line-height: 1.75;
  color: var(--muted);
}

.greenhouse-page .greenhouse-inquiry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.greenhouse-page .greenhouse-inquiry-list li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.greenhouse-page .greenhouse-inquiry-list strong,
.greenhouse-page .greenhouse-inquiry-list span {
  display: block;
}

.greenhouse-page .greenhouse-inquiry-list strong {
  margin-bottom: 8px;
}

.greenhouse-page .greenhouse-inquiry-list span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.greenhouse-page .greenhouse-contact {
  border-top: 4px solid var(--red);
  padding: 36px;
}

@media (max-width: 1120px) {
  .greenhouse-page .greenhouse-process-grid,
  .greenhouse-page .greenhouse-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .greenhouse-page .greenhouse-inquiry-panel {
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .greenhouse-page .greenhouse-overview-grid,
  .greenhouse-page .greenhouse-intro,
  .greenhouse-page .greenhouse-inquiry-panel {
    grid-template-columns: 1fr;
  }
  .greenhouse-page .greenhouse-intro__media {
    width: min(100%, 500px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .audience-grid--primary .audience-card {
    min-height: 510px;
  }
  .greenhouse-page .greenhouse-process-grid,
  .greenhouse-page .greenhouse-capability-grid,
  .greenhouse-page .greenhouse-inquiry-list {
    grid-template-columns: 1fr;
  }
  .greenhouse-page .greenhouse-overview-card,
  .greenhouse-page .greenhouse-step-card,
  .greenhouse-page .greenhouse-capability-card,
  .greenhouse-page .greenhouse-contact {
    padding: 24px;
  }
}

.residential-secondary-section {
  padding-block: 42px;
}

.residential-secondary {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.residential-secondary > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 8px;
}

.residential-secondary h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2vw, 30px);
}

.residential-secondary p {
  margin-bottom: 0;
}

.residential-secondary .eyebrow {
  margin-bottom: 10px;
}

.general-scope-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 730px;
  margin-bottom: 28px;
}

.general-scope-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 116px;
  padding: 14px 10px;
  border: 1px solid #e5dfe3;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fff5f6);
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.general-scope-tile svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--red);
}

.general-scope-tile:hover,
.general-scope-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 20px rgb(220 18 43 / 10%);
}

.general-scope-tile:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.service-detail-story__copy p[id^="general-"] {
  scroll-margin-top: 110px;
}

@media (max-width: 820px) {
  .general-scope-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 440px;
  }
}

@media (max-width: 420px) {
  .general-scope-tile {
    padding-inline: 7px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .general-scope-tile {
    transition: none;
  }
  .general-scope-tile:hover,
  .general-scope-tile:focus-visible {
    transform: none;
  }
}

.service-grid--industrial {
  grid-auto-rows: 1fr;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

/* Keep hub photos proportional on wide screens, aligned with their intro. */
.greenhouse-services-intro + .service-grid--industrial,
.category-services-intro + .service-grid--industrial {
  max-width: 1380px;
}

.service-grid--industrial > .service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 22px;
}

/* Service cards use an equally sized square photo window. */
.service-grid--industrial > .service-card > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 1 !important;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
  align-self: center;
}

/* Keep the key action visible in the shared square photo window. */
.service-grid--industrial > .service-card > img[src*="padlofutes-nyomvonal"] {
  object-position: center 44%;
}

.service-grid--industrial > .service-card > img[src*="csohalozat-hegesztes"] {
  object-position: center 40%;
}

.service-grid--industrial > .service-card > img[src*="csanytelek-helyszini-szereles"],
.service-grid--industrial > .service-card > img[src*="csanytelek-hegesztes"],
.service-grid--industrial > .service-card > img[src*="csanytelek-kesz-tartaly-logoval"],
.service-grid--industrial > .service-card > img[src*="gyulahaza-kesz-tartaly-logo"],
.service-grid--industrial > .service-card > img[src*="csohalozatok-alabama-referencia-0020"] {
  object-position: center 44%;
}

.service-grid--industrial .service-card > h3 {
  line-height: 1.42;
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
}

.service-grid--industrial .service-card > h3::after {
  content: none;
}

.service-grid--industrial .service-card--clickable::after {
  align-self: flex-start;
  margin-top: auto;
}

/* A deliberately covered preview, not a link to an available service. */
.service-grid--industrial > .service-card--coming-soon {
  border-style: dashed;
  border-color: #bdc7d5;
  background: #f8fafc;
  cursor: default;
}

.service-card__teaser-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #182334;
}

.service-grid--industrial .service-card__teaser-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) grayscale(.65) brightness(.55);
  opacity: .58;
  transform: scale(1.06);
}

.service-card__teaser-media::after {
  position: absolute;
  z-index: 1;
  inset: 24% -12% -12%;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-radius: 46% 48% 0 0 / 15% 24% 0 0;
  background: linear-gradient(116deg, #182334 4%, #3b495e 28%, #1b2638 47%, #4b586b 51%, #172235 68%, #334156 86%, #101a28);
  box-shadow: 0 -10px 32px rgb(0 0 0 / 24%);
  content: "";
  transform: rotate(-6deg);
}

.service-card__teaser-ribbon {
  position: absolute;
  z-index: 2;
  top: 43%;
  left: -10%;
  width: 120%;
  padding: 15px 8px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-13deg);
}

.service-grid--industrial .service-card--coming-soon > h3 {
  color: #526074;
  text-decoration-line: line-through;
  text-decoration-color: rgb(237 24 46 / 52%);
  text-decoration-thickness: 1.5px;
}

.service-card__coming-soon-status {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 12px;
  border: 1px solid #f3c8ce;
  border-radius: 999px;
  color: #a91428;
  background: #fff0f2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.greenhouse-page .service-grid--industrial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.greenhouse-page .service-grid--industrial > .service-card > img {
  aspect-ratio: 1 !important;
  object-fit: cover;
}

@media (max-width: 1120px) {
  .greenhouse-page .service-grid--industrial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .greenhouse-page .service-grid--industrial {
    grid-template-columns: 1fr;
  }
}

/* Metalworking cards share one stable crop; individual focal points stay adjustable. */
.service-grid--metal .service-card > img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 620px) {
  .audience-card--metal::before {
    background-position: 82% center;
  }

  .service-grid--metal .service-card:first-child > img {
    object-position: 72% center;
  }
}

.category-hero h1 {
  position: relative;
  display: block;
  width: auto;
  padding-bottom: 0;
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 5px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.category-hero h1::after {
  content: none;
}

/* Detail-page titles receive the same hierarchy even without .category-hero. */
.hero:is(
  .hero--cnc,
  .hero--cnc-bending,
  .hero--badogos,
  .hero--rolling,
  .hero--welding,
  .hero--steel,
  .hero--hall,
  .hero--mechanical,
  .hero--pipes,
  .hero--tank
) h1 {
  position: relative;
  display: block;
  width: auto;
  padding-bottom: 0;
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 5px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.hero:is(
  .hero--cnc,
  .hero--cnc-bending,
  .hero--badogos,
  .hero--rolling,
  .hero--welding,
  .hero--steel,
  .hero--hall,
  .hero--mechanical,
  .hero--pipes,
  .hero--tank
) h1::after {
  content: none;
}

/* The company-story title follows the same full-width red underline as the homepage brand title. */
.hero--telephely h1:not(.home-hero-title) {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0;
  overflow-wrap: normal;
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 5px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.hero--telephely h1:not(.home-hero-title)::after {
  content: none;
}

@media (min-width: 981px) {
  .hero--telephely:not(.category-hero) h1:not(.home-hero-title) {
    white-space: normal;
    font-size: clamp(34px, 3.25vw, 56px);
    letter-spacing: -0.015em;
    text-wrap: balance;
    line-height: 1.1;
  }

  .career-page .career-hero h1 {
    white-space: normal;
    font-size: clamp(34px, 2.35vw, 40px);
  }
}

/* Compact trust-building leader cards in every homepage and category hero. */
.hero-contact-list--leaders {
  display: grid;
  grid-template-rows: repeat(2, minmax(130px, 1fr));
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}

.hero-contact-panel:has(.hero-contact-list--leaders) {
  display: flex;
  flex-direction: column;
}

.hero-contact-list--leaders .hero-leader-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 130px;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #111c2e;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  color: var(--white);
  backdrop-filter: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-contact-list--leaders .hero-leader-card > div {
  min-width: 0;
}

.hero-contact-list--leaders .hero-leader-card--primary,
.hero-contact-list--leaders .hero-leader-card.leader-card--primary {
  border-color: rgba(255, 255, 255, 0.2);
  background: #111c2e;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.hero-contact-list--leaders .hero-leader-card .leader-portrait {
  width: 92px;
  height: 92px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.hero-contact-list--leaders .hero-leader-card .eyebrow {
  display: none !important;
}

.hero-contact-list--leaders .hero-leader-card h3 {
  margin: 0 0 4px;
  color: var(--white) !important;
  font-size: 21px !important;
  line-height: 1.1;
}

.hero-contact-list--leaders .hero-leader-card .leader-role {
  margin: 0 0 7px;
  color: #e7edf7 !important;
  font-size: 13px;
  line-height: 1.2;
}

.hero-contact-list--leaders .hero-leader-card .leader-phone {
  margin: 0;
  color: var(--white) !important;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-contact-list--leaders .hero-leader-card .leader-note {
  display: none;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders {
  grid-template-rows: repeat(2, minmax(174px, 1fr));
  gap: 16px;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .hero-leader-card {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 174px;
  padding: 18px;
  border-color: rgba(227, 27, 43, 0.78);
  background: linear-gradient(120deg, rgba(227, 27, 43, 0.17), rgba(227, 27, 43, 0.04)), #162132;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .leader-portrait {
  width: 104px;
  height: 104px;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .hero-leader-card h3 {
  font-size: 24px !important;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .leader-role {
  font-size: 15px;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .leader-phone {
  font-size: 20px;
}

.hero:has(.home-hero-title) .hero-contact-list--leaders .leader-note {
  display: block;
  margin: 10px 0 0;
  color: #e0e6ef;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .hero:has(.home-hero-title) .hero-contact-list--leaders .hero-leader-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .hero:has(.home-hero-title) .hero-contact-list--leaders .leader-portrait {
    width: 72px;
    height: 72px;
  }

  .hero:has(.home-hero-title) .hero-contact-list--leaders .hero-leader-card h3 {
    font-size: 21px !important;
  }

  .hero:has(.home-hero-title) .hero-contact-list--leaders .leader-phone {
    font-size: 17px;
  }
}

/* Long translated navigation and hero copy must wrap by words, never collide. */
.hero h1,
.hero .hero-lead,
.category-summary,
.section-head h2,
.service-card h3 {
  word-break: normal;
  overflow-wrap: break-word !important;
  hyphens: auto;
}

.hero h1,
.hero .hero-lead,
.section-head h2 {
  text-wrap: balance;
}

@media (min-width: 1681px) {
  .header__inner {
    width: min(1960px, calc(100% - 32px));
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(0, max-content) minmax(210px, 1fr);
    gap: clamp(8px, 0.7vw, 14px);
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    max-width: 260px;
  }

  .brand span {
    white-space: normal;
    line-height: 1.2;
  }

  .nav {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    gap: 3px;
    flex: none;
  }

  .nav > a,
  .nav > .nav-dropdown > .nav-dropdown__button {
    min-width: 0;
    padding-inline: clamp(6px, 0.45vw, 9px);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
  }

  .nav > .btn {
    max-width: none;
    white-space: nowrap;
    hyphens: none;
  }

  .header__inner > .language-switcher,
  .header__inner > .language-dropdown {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }
}

/* Progressive reveal: content remains visible unless JavaScript opts in. */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.reveal-enabled [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
}

html.reveal-enabled [data-reveal="hero-copy"]:not(.is-revealed) {
  transform: translate3d(0, 32px, 0) scale(0.99);
}

html.reveal-enabled [data-reveal="panel"]:not(.is-revealed) {
  transform: translate3d(36px, 0, 0) scale(0.985);
}

html.reveal-enabled [data-reveal="card"]:not(.is-revealed) {
  transform: translate3d(var(--reveal-x, 0px), 36px, 0) scale(0.975);
}

html.reveal-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.reveal-enabled .home-hero-title__company::after {
  animation: home-hero-underline-draw 620ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Site-wide opening polish: the real page is usable immediately; only painted layers move. */
html.site-motion .header {
  animation: site-header-arrive 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.site-motion main .hero:first-of-type::before {
  transform-origin: center center;
  animation: site-hero-background-settle 880ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

@keyframes site-header-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes site-hero-background-settle {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

@keyframes home-hero-underline-draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1120px) {
  .residential-secondary {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .residential-secondary > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .residential-secondary {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .residential-secondary > img {
    max-width: 220px;
  }

  .residential-secondary > .btn {
    grid-column: 1;
  }

  .hero-contact-list--leaders .hero-leader-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    min-height: 120px;
    padding: 14px;
  }

  .hero-contact-list--leaders {
    grid-template-rows: repeat(2, minmax(120px, 1fr));
  }

  .hero-contact-panel {
    width: 100%;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
  }

  .hero-contact-list--leaders .hero-leader-card .leader-portrait {
    width: 72px;
    height: 72px;
  }

  .hero-contact-list--leaders .hero-leader-card h3 {
    font-size: 19px !important;
  }

  .hero-contact-list--leaders .hero-leader-card .leader-phone {
    font-size: 16px;
  }
}

/* Keep floating assistance clear of mobile content and the fixed CTA zone. */
@media (max-width: 780px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  html body .fixed-cta {
    display: none !important;
  }

  html body .al-ai-chat {
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  html body .al-ai-chat__button {
    width: 60px;
    height: 52px;
    border-radius: 10px;
  }

  html body .al-ai-chat__button strong {
    font-size: 14px;
  }

  html body .al-ai-chat__panel {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 112px - env(safe-area-inset-bottom, 0px));
  }

  html.has-cookie-consent body .al-ai-chat {
    bottom: calc(164px + env(safe-area-inset-bottom, 0px));
  }

  html.has-cookie-consent body .al-ai-chat__panel {
    bottom: calc(238px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 262px - env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-motion .header,
  html.site-motion main .hero:first-of-type::before {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  .home-hero-title__company::after,
  html.reveal-enabled .home-hero-title__company::after {
    transform: scaleX(1) !important;
    animation: none !important;
  }

  html.reveal-enabled [data-reveal],
  html.reveal-enabled [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 780px) {
  .career-page .career-hero .hero-lead {
    max-width: 34ch;
    font-size: 18px !important;
    line-height: 1.3 !important;
    text-wrap: pretty;
  }
}

/* Explicit dropdown dismissal wins over hover and keyboard focus. */
.nav-dropdown[data-dropdown-dismissed] > .nav-dropdown__menu { display: none !important; }

/* Technology pipework has its own photograph, distinct from pre-insulated pipework. */
.hero--technological-pipes::before{background-image:linear-gradient(90deg,rgba(8,16,30,.82),rgba(8,16,30,.5) 52%,rgba(8,16,30,.1)),url("/assets/images/edited-cards-20261101/technologiai-csohalozat-manifold-clean-v1-941.webp");background-position:center 42%}

/* Floating launchers appear only after the first main hero clears the sticky header. */
html[data-floating-controls-after-hero="false"] body .fixed-cta,
html[data-floating-controls-after-hero="false"] body .al-ai-chat__button {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hide before main.js runs, including the asynchronously inserted chat launcher. */
@supports selector(:has(*)) {
  html:not([data-floating-controls-after-hero]):has(main .hero, main .project-hero, main .fleet-hero) body .fixed-cta,
  html:not([data-floating-controls-after-hero]):has(main .hero, main .project-hero, main .fleet-hero) body .al-ai-chat__button {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
