:root {
  --paper: #f6f3eb;
  --ink: #1e201d;
  --amber: #f1bc62;
  --muted: #e2dacc;
  /* A gombok közös arculati beállításai. */
  --button-bg: var(--amber);
  --button-fg: #231c12;
  --button-hover: #f7cc85;
  --button-radius: .25rem;
  --button-focus: #936322;
  --gutter: clamp(1.3rem, 5.2vw, 6rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 Arial, Helvetica, sans-serif; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--button-focus); outline-offset: 4px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem var(--gutter); background: white; }
.logo { display: block; width: clamp(106px, 13vw, 136px); height: auto; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: #21241f; color: var(--paper); }
.hero-copy { padding: clamp(3rem, 7.5vw, 8rem) 1.5rem clamp(3rem, 7vw, 7rem) var(--gutter); align-self: center; }
.eyebrow { font-weight: 700; font-size: .75rem; letter-spacing: .17em; color: var(--amber); }
.eyebrow span { color: #aca395; margin: 0 .3rem; }
.hero h1 { font-size: clamp(2.75rem, 5.9vw, 7.1rem); letter-spacing: -.075em; line-height: .95; margin: 1.55rem 0; }
.hero h1 span { color: var(--amber); }
.hero-copy > p:not(.eyebrow) { color: #e5dfd3; max-width: 34ch; font-size: 1.13rem; }
.hero-copy .hero-slogan { color: var(--amber); font-weight: 700; margin-bottom: .65rem; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--button-bg);
  color: var(--button-fg);
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  padding: .7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover, button:hover { background: var(--button-hover); text-decoration: none; }
.button--outline { --button-bg: transparent; border-color: #aaa396; }
.hero-copy .button, .section-cta { margin-top: 1.65rem; }
.floating-call {
  position: fixed;
  z-index: 5;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 4px 18px #231c1240;
}
.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.public-page main { flex: 1; }
.public-page footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
.contact-email { margin-top: .8rem; }
.contact-email a { text-decoration: underline; }
.hero-image { min-width: 0; position: relative; overflow: hidden; background: #564c3d; }
.hero-image img { display: block; height: 100%; width: 100%; position: absolute; object-fit: cover; object-position: 58% center; }
.hero-image figcaption { position: absolute; right: 1rem; bottom: 1rem; color: white; background: #21241f; padding: .2rem .6rem; font-size: .8rem; }
.services-section, .contact { padding: clamp(3rem, 6vw, 6rem) var(--gutter); }
.page-title { font-size: clamp(2.35rem, 4.9vw, 4.4rem); letter-spacing: -.065em; margin-bottom: 1.65rem; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #c1b5a3; border: 1px solid #c1b5a3; }
.services article { background: var(--paper); padding: clamp(1.25rem, 2.7vw, 2.5rem); }
.services h3, .contact h2 { font-size: 1.24rem; margin-bottom: .7rem; }
.services p { color: #50483d; }
.contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; background: var(--muted); }
.contact p + p { margin-top: .7rem; }
footer { flex-wrap: wrap; font-size: .9rem; }
.doc, .signin { max-width: 790px; padding: 3.5rem var(--gutter); margin: auto; }
.doc h1, .signin h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 1.5rem 0; overflow-wrap: anywhere; }
.doc h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 1.65rem 0 .6rem; }
.doc a, .signin a { text-decoration: underline; }
.signin { max-width: 550px; }
.signin form { display: grid; gap: 1rem; }
.signin input { display: block; width: 100%; margin-top: .3rem; padding: .7rem; font: inherit; background: white; border: 1px solid #9d9282; }
.signin [role="alert"] { color: #942512; }
@media (max-width: 760px) {
  .hero, .contact { grid-template-columns: 1fr; }
  .hero-image { min-height: clamp(245px, 58vw, 430px); }
  .hero h1 { font-size: clamp(3rem, 13vw, 5.6rem); }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 470px) {
  .floating-call { padding-inline: .85rem; }
  .services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* A menü és az űrlap a nyilvános oldal közös arculatát használja. */
.service-details summary {
  cursor: pointer;
  list-style-position: inside;
  font-weight: 700;
}
.section-intro { max-width: 68ch; margin-bottom: 1.65rem; }
.home-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-link { display: inline-block; margin-top: .8rem; text-decoration: underline; text-underline-offset: .18rem; }
.service-details { max-width: 76ch; border-top: 1px solid #c1b5a3; }
.service-details details { border-bottom: 1px solid #c1b5a3; scroll-margin-top: 1rem; }
.service-details summary { padding: 1rem 0; font-size: 1.1rem; }
.service-details details > div { padding: 0 1rem 1.2rem; }
.floating-call { gap: .7rem; line-height: 1.15; padding: .65rem .85rem; }
.floating-call small, .floating-call strong { display: block; text-align: left; }
.floating-call strong { margin-top: .16rem; }
.floating-call small { font-size: .72rem; }
.call-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid currentColor; border-radius: 50%; }
.quote-form form { display: grid; margin-top: 1.4rem; gap: .9rem; }
.quote-form label { display: grid; gap: .25rem; font-weight: 700; }
.quote-form :is(input, select, textarea) { width: 100%; padding: .65rem; border: 1px solid #9d9282; background: white; color: var(--ink); font: inherit; font-weight: 400; }
.quote-form textarea { resize: vertical; }
.quote-form .field-note { font-size: .93rem; }
.form-message { padding: .8rem 1rem; margin: 1rem 0; background: #dfecdf; }
.form-error { background: #fae1db; color: #76251b; }
.doc p + p { margin-top: .65rem; }
@media (max-width: 470px) {
  .home-services { grid-template-columns: 1fr; }
  .floating-call { gap: .5rem; padding: .52rem .64rem; }
  .call-icon { width: 1.85rem; height: 1.85rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .floating-call { animation: call-enter .45s ease-out both; }
}
@keyframes call-enter { from { opacity: 0; transform: translateX(1rem); } }
.signin .remember-option { display: flex; align-items: center; gap: .5rem; }
.signin .remember-option input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--button-bg); }

:root {
  --paper: #f7f5ef;
  --ink: #20231f;
  --amber: #f4bf67;
  --button-radius: .6rem;
  --card-radius: 1.1rem;
  --border: #ddd6c8;
  --panel: #fffdf8;
  --night: #1d211d;
}

.hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); background: var(--night); }
.hero-copy { position: relative; z-index: 1; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night), transparent 40%), linear-gradient(0deg, #12171044, transparent 42%);
  pointer-events: none;
}
.hero-image figcaption { z-index: 1; background: #1d211dcf; }

.page-banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(15rem, 31vw, 29rem);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--night);
  background-image: linear-gradient(90deg, #1b201dfb 4%, #1b201dec 32%, #1b201d48 100%), var(--banner-image);
  background-position: center, center right;
  background-size: cover;
}
.switchgear { --banner-image: url("kapcsoloszekreny.webp"); }
.worksite { --banner-image: url("villamos-kivitelezes.webp"); background-position: center, 62% 44%; }
.brand-banner {
  --banner-image: linear-gradient(125deg, #1d211d 30%, #58452b 100%);
  min-height: clamp(13rem, 24vw, 22rem);
}
.brand-banner::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 10% var(--gutter) 10% 57%;
  background: url("montensione-logo-vizjel.png") center right / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}
.banner-copy { max-width: 61rem; }
.banner-copy h1 { font-size: clamp(2.25rem, 6.4vw, 6rem); line-height: .99; letter-spacing: -.06em; overflow-wrap: anywhere; }
.banner-copy p { margin-top: 1rem; max-width: 49ch; font-size: clamp(1rem, 2vw, 1.24rem); color: #f3eade; }
.banner-caption { position: absolute; right: var(--gutter); bottom: .8rem; color: #fff; background: #1d211dcf; padding: .2rem .45rem; }

.detail-layout, .quote-layout {
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.quote-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); }
.content-card, .brand-card {
  padding: clamp(1.25rem, 3.5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--panel);
  box-shadow: 0 12px 42px #2820120a;
}
.content-card h2, .brand-card h2 { font-size: clamp(1.35rem, 2.8vw, 2.2rem); margin-bottom: 1rem; letter-spacing: -.035em; }
.brand-card {
  color: var(--paper);
  background: linear-gradient(140deg, #252823 30%, #463926);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.brand-card::after {
  content: "";
  display: block;
  width: min(100%, 18rem);
  aspect-ratio: 680 / 287;
  margin: clamp(1.45rem, 3.4vw, 2.4rem) 0 0 auto;
  background: url("montensione-logo-vizjel.png") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}
.prose p + p { margin-top: .75rem; }
.prose ul { padding-left: 1.15rem; }
.contact-links { display: grid; gap: .35rem; justify-items: start; font-weight: 700; font-size: clamp(1rem, 2vw, 1.24rem); overflow-wrap: anywhere; }
.home-contact {
  color: var(--paper);
  background: linear-gradient(90deg, #1d211dfc, #1d211dc9), url("kapcsoloszekreny.webp") center 54% / cover;
}
.services { gap: 1rem; background: transparent; border: 0; }
.services article { background: var(--panel); border: 1px solid var(--border); border-radius: var(--card-radius); }
.legal-copy { max-width: 960px; }

.quote-form form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quote-form :is(label:has(textarea), .field-note, .privacy-confirm, button) { grid-column: 1 / -1; }
.quote-form :is(input, select, textarea) { border-radius: .55rem; border-color: #b6ad9b; }
.quote-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--button-focus); outline-offset: 2px; }
.quote-form button { justify-self: start; }
.privacy-confirm { padding: .9rem; border: 1px solid var(--border); border-radius: .6rem; background: var(--paper); }
.privacy-confirm label { display: flex; gap: .65rem; align-items: flex-start; }
.privacy-confirm input[type="checkbox"] { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; accent-color: #a76a19; }
.privacy-confirm a { display: inline-block; margin: .45rem 0 0 1.8rem; text-decoration: underline; }
.form-message { border-radius: .55rem; }

.floating-call {
  --button-bg: var(--night);
  --button-fg: #ffdda5;
  --button-hover: #343928;
  isolation: isolate;
  gap: .8rem;
  padding: .65rem 1rem .65rem .7rem;
  border: 1px solid #efb75e;
  border-radius: 5rem;
  box-shadow: 0 10px 28px #1d211d4d;
}
.call-icon {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  background: var(--amber);
  color: var(--night);
  font-family: system-ui, sans-serif;
  font-variant-emoji: text;
  position: relative;
}
.call-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  pointer-events: none;
}
.floating-call small { color: #f3eade; font-weight: 500; }
.floating-call strong { font-size: .95rem; letter-spacing: .015em; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-motion [data-reveal] {
    opacity: 0;
    transform: translateX(-.8rem);
    transition: opacity .38s ease, transform .44s ease;
  }
  .scroll-motion [data-reveal].reveal-in, .scroll-motion [data-reveal]:focus-within, .scroll-motion [data-reveal]:target {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero, .detail-layout, .quote-layout { grid-template-columns: 1fr; }
  .hero-image::after { background: linear-gradient(180deg, var(--night), transparent 32%); }
  .quote-layout .brand-card { order: 2; }
}
@media (max-width: 500px) {
  .quote-form form { grid-template-columns: 1fr; }
  .floating-call { padding: .48rem .72rem .48rem .52rem; gap: .5rem; }
  .call-icon { width: 1.95rem; height: 1.95rem; }
  .floating-call strong { font-size: .88rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .staff-page main { animation: staff-enter .38s ease-out both; }
}
@keyframes staff-enter { from { opacity: .25; transform: translateY(.55rem); } }

.editorial { padding: clamp(2.8rem, 6vw, 5.8rem) var(--gutter); }
.band { background: #eeeadf; border-block: 1px solid var(--border); }
.editorial .page-title { max-width: 19ch; }
.editorial h3 { font-size: 1.16rem; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}
.step-grid li { padding: 1.25rem 1.1rem 0 0; border-top: 2px solid #a77b38; }
.step-grid p { margin-top: .6rem; }
.law-note {
  margin-top: 1.65rem;
  padding: 1rem 1.25rem;
  max-width: 76ch;
  border-left: 3px solid #a77b38;
  background: var(--panel);
}
.law-note a { text-decoration: underline; text-underline-offset: .15em; }
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.35rem, 5vw, 4.25rem); align-items: center; }
.feature-split figure { overflow: hidden; border-radius: var(--card-radius); aspect-ratio: 4 / 3; background: var(--night); }
.feature-split img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-split p + p { margin-top: .8rem; }
@media (max-width: 760px) {
  .feature-split, .step-grid { grid-template-columns: 1fr; }
  .step-grid { gap: 1.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-motion [data-reveal="right"] { transform: translateX(.8rem); }
  .scroll-motion [data-reveal="right"].reveal-in,
  .scroll-motion [data-reveal="right"]:focus-within { transform: none; }
  .floating-call {
    animation: call-enter .45s ease-out both, phone-glow 3.1s ease-out .5s infinite;
    animation-composition: replace;
  }
  .call-icon::after { animation: phone-ring 3.1s ease-out .5s infinite; }
}
@keyframes phone-glow {
  0%, 100% { box-shadow: 0 10px 28px #1d211d4d, 0 0 0 0 #d48b3255; }
  54% { box-shadow: 0 10px 28px #1d211d4d, 0 0 0 11px #d48b3200; }
}
@keyframes phone-ring {
  0% { transform: scale(.95); opacity: .85; }
  56%, 100% { transform: scale(1.85); opacity: 0; }
}
footer a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

.hero h1 {
  font-size: clamp(2.55rem, 4.55vw, 5.2rem);
  max-width: 13ch;
  letter-spacing: -.055em;
}
.hero h1 span {
  display: block;
  margin-top: .42em;
  font-size: .55em;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem; }
.hero-copy .cta-pair { margin-top: 1.65rem; }
.hero-copy .cta-pair .button { margin-top: 0; }
.button--hero-outline {
  --button-bg: #1d211d;
  --button-fg: var(--paper);
  --button-hover: #333729;
  border-color: #dbcfb5;
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); }
}

html { scrollbar-gutter: stable; }

.hero h1 { font-size: clamp(2.6rem, 5.7vw, 6.3rem); max-width: 14ch; overflow-wrap: anywhere; }
.hero h1 span { margin-top: .17em; font-size: .7em; letter-spacing: -.035em; }
.cta-pair > a { min-width: 0; max-width: 100%; }
.services > article, .step-grid > li, .detail-layout > *, .quote-layout > *, .feature-split > * { min-width: 0; overflow-wrap: anywhere; }
.doc, .banner-copy { overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-copy { padding-block: clamp(3rem, 7vw, 5.5rem); }
  .detail-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .quote-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .services:not(.home-services) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.55rem, 8.8vw, 4.75rem); }
  .hero-copy { padding-right: var(--gutter); }
  .hero-image img { object-position: 68% center; }
  .detail-layout, .quote-layout { gap: 1rem; }
  .brand-banner::after { inset: 8% var(--gutter) 8% 46%; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .quote-form form { grid-template-columns: minmax(0, 1fr); }
  .cta-pair { gap: .55rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 2.3rem; }
}

.public-page footer {
  justify-content: center;
  text-align: center;
  gap: .3rem 1.2rem;
}
.footer-founded { white-space: nowrap; }
@media (max-width: 560px) {
  .public-page footer { flex-direction: column; }
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .85rem 1.2rem;
  min-height: 78px;
  padding: .8rem var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(.3rem, .8vw, .8rem);
  font-size: .94rem;
  font-weight: 650;
}
.site-header nav > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: .45rem .58rem;
  border-radius: var(--button-radius);
  text-align: center;
  line-height: 1.25;
}
.site-header nav > a:hover { background: #faf2e2; text-decoration: none; }
.site-header nav > a[aria-current="page"] {
  color: #513712;
  background: #f3e5c9;
  box-shadow: inset 0 -2px #a77b38;
}
.site-header .header-quote { border: 1px solid #a99c86; }
@media (max-width: 1150px) {
  .site-header { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .site-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    border-top: 1px solid var(--muted);
    padding-top: .45rem;
  }
}
@media (max-width: 540px) {
  .site-header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .86rem; }
}

.phone-handset { flex-shrink: 0; }
.quote-extra, .quote-attachment { grid-column: 1 / -1; min-width: 0; }
.quote-extra, .quote-attachment, .check-result {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: .9rem 1.15rem;
  background: var(--paper);
}
.quote-extra legend { padding: 0 .35rem; font-weight: 700; }
.quote-extra label + label { margin-top: .6rem; }
.quote-attachment input { margin: .35rem 0; }
.quote-extra[hidden], #check-record-group[hidden] { display: none; }
.check-card { max-width: 54rem; }
.vbf-check { display: grid; gap: .4rem; margin-top: 1rem; }
.vbf-check label { display: block; font-weight: 650; margin-bottom: .25rem; }
.vbf-check select { width: 100%; padding: .65rem; border: 1px solid #b6ad9b; border-radius: .55rem; background: #fff; color: var(--ink); font: inherit; }
#check-record-group { margin-top: .55rem; }
.check-result, .check-source { margin-top: 1rem; }
.check-source a { text-decoration: underline; }

.site-header nav[hidden], .menu-toggle[hidden], [data-career-consent][hidden] { display: none; }
.menu-toggle { flex-shrink: 0; gap: .55rem; min-width: 5.2rem; }
.menu-toggle-icon {
  position: relative;
  width: 1rem;
  height: .7rem;
  border-block: 2px solid currentColor;
}
.menu-toggle-icon::before {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  border-top: 2px solid currentColor;
}
.career-form { max-width: 62rem; margin-inline: auto; }
.career-form .quote-attachment, .career-form [data-career-consent] { grid-column: 1 / -1; }
#jelentkezes { scroll-margin-top: 1rem; }
@media (max-width: 600px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .site-header nav { grid-column: 1 / -1; order: 3; }
  .site-header .menu-toggle { grid-column: 2; justify-self: end; }
}
@media (min-width: 1151px) and (max-width: 1270px) {
  .site-header { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .site-header nav { justify-content: flex-start; flex-wrap: wrap; }
}


/* Generálkivitelezői tájékoztató és nagyprojekt-ajánlatkérés */
.enterprise-intro, .enterprise-home {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  background: var(--night);
  color: var(--paper);
}
.enterprise-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.enterprise-intro h2, .enterprise-home h2 { margin: .55rem 0 1rem; max-width: 24ch; }
.enterprise-intro .enterprise-copy > p:last-child, .enterprise-home > div > p:not(.eyebrow) { max-width: 72ch; color: #e5dfd3; }
.enterprise-points { display: grid; gap: .65rem; }
.enterprise-points p { border-left: 2px solid var(--amber); padding: .45rem .85rem; background: #ffffff0b; }
.enterprise-home { background: #e2dacc; color: var(--ink); }
.enterprise-home > div { max-width: 76rem; margin: 0 auto; }
.enterprise-home > div > p:not(.eyebrow) { color: #50483d; }
.enterprise-home .button { margin-top: 1.3rem; }
@media (max-width: 760px) { .enterprise-intro { grid-template-columns: 1fr; } }


/* Cookie-hozzájárulás és visszavonható süti-beállítások */
.cookie-settings-link { appearance: none; min-height: 0; padding: .15rem 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18rem; }
.cookie-settings-link:hover { background: transparent; color: var(--button-focus); }
.cookie-panel[hidden], .cookie-options[hidden] { display: none; }
.cookie-panel { position: fixed; z-index: 30; left: 50%; bottom: max(5.4rem, calc(env(safe-area-inset-bottom) + 5rem)); transform: translateX(-50%); width: min(58rem, calc(100vw - 2rem)); max-height: min(72vh, 38rem); overflow: auto; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--panel); color: var(--ink); box-shadow: 0 14px 48px #181b1780; }
.cookie-panel-inner { display: grid; gap: 1rem; }
.cookie-copy h2 { font-size: 1.2rem; margin-bottom: .45rem; }
.cookie-copy p { max-width: 80ch; color: #50483d; }
.cookie-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.cookie-controls .button { min-height: 42px; }
.cookie-panel .button--outline { color: var(--ink); border-color: #9d9282; }
.cookie-options { display: grid; gap: .55rem; }
.cookie-option { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: .5rem; background: #fff; }
.cookie-option input { width: 1.15rem; height: 1.15rem; accent-color: var(--button-focus); }
.cookie-option span { display: grid; flex: 1; }
.cookie-option small { color: var(--muted-ink, #60594e); font-weight: 400; }
.cookie-option b { font-size: .8rem; }
.cookie-policy { justify-self: start; text-decoration: underline; text-underline-offset: .18rem; }
@media (max-width: 600px) {
  .cookie-panel { bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.5rem)); padding: 1rem; max-height: 70vh; }
  .cookie-controls { align-items: stretch; }
  .cookie-controls .button { flex: 1 1 10rem; }
}

/* Montensioné arculat */
.site-header { position:sticky; top:0; z-index:15; transition:transform .24s ease; }
.site-header.header-away:not(:focus-within) { transform:translateY(-100%); }
.site-header .logo { transition:scale .24s; transform-origin:left center; }
.site-header.header-compact .logo { scale:.8; }
.site-header nav > a[aria-current="page"] { box-shadow:inset 0 -2px #b47927; }
.button { transition:background-color .2s, border-color .2s, color .2s; }
.button--outline:hover { border-color:#b47927; }
.hero-copy > .hero-slogan { color:var(--amber); margin-bottom:.8rem; }
.hero-copy h1 { margin-bottom:.75rem; }
.design-references,.enterprise-home,.service-close { background:var(--night); color:var(--paper); padding:clamp(2.5rem,6vw,6rem) var(--gutter); }
.design-references .button--outline,.service-close .button--outline { color:var(--paper); --button-hover:#40382b; }
.design-references,.enterprise-intro,.enterprise-home { position:relative; isolation:isolate; }
.design-references::before,.enterprise-home::before,.enterprise-intro::before { content:""; position:absolute; z-index:-1; inset:1rem 2rem auto auto; width:min(38%,28rem); height:9rem; background:url("montensione-logo-vizjel.png") center / contain no-repeat; opacity:.12; pointer-events:none; }
.enterprise-home::after,.enterprise-intro::after { content:""; position:absolute; z-index:-1; inset:auto 0 0 auto; width:min(40%,22rem); height:7rem; background:linear-gradient(#f4bf6720 1px,transparent 1px),linear-gradient(90deg,#f4bf6720 1px,transparent 1px); background-size:20px 20px; mask-image:linear-gradient(135deg,transparent,#000); pointer-events:none; }
.enterprise-home .eyebrow,.enterprise-home > div > p:not(.eyebrow) { color:#efe3ce; }
.project-names { display:flex; flex-wrap:wrap; gap:.5rem 1.3rem; padding-left:1.2rem; }
.work-gallery { display:grid; grid-template-columns:1.55fr 1fr; align-items:start; gap:1.25rem; margin:1.5rem 0; }
.work-gallery img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:.7rem; filter:saturate(.88); }
.work-gallery figcaption { margin-top:.45rem; font-size:.85rem; }
.service-gallery { padding:2.5rem var(--gutter); }
.vbf-photo { --banner-image:url("kapcsoloszekreny.webp"); }
.pdf-card { display:flex; align-items:center; gap:1rem; width:fit-content; padding:.75rem 1rem; margin-top:1rem; background:#ffffff10; border:1px solid #ffffff35; border-radius:.6rem; }
.pdf-card img { width:52px; height:auto; }
.pdf-card small { display:block; }
.site-footer { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.35rem; text-align:center; background:#eee7da; padding-top:1.6rem; }
.site-footer > div { display:grid; justify-items:center; align-content:center; gap:.3rem; min-width:0; overflow-wrap:anywhere; }
.quote-group { min-width:0; border:1px solid var(--border); border-radius:.7rem; display:grid; gap:.85rem; padding:1rem; margin:0; }
.quote-group > legend { font-weight:700; padding:0 .4rem; }
.quote-success { border-left:4px solid #416c48; border-radius:.6rem; padding:1.2rem; scroll-margin-top:9rem; }
.quote-success p { margin-top:.65rem; }
.floating-call.button { background:#252824; color:#fff6e4; border-color:#ad7734; }
.floating-call.button:hover { background:#38342d; }
.floating-call .call-icon { color:var(--amber); animation:none; }
.photo-viewer { max-width:min(92vw,70rem); max-height:90vh; background:var(--night); color:var(--paper); padding:1rem; border:1px solid var(--amber); border-radius:.7rem; }
.photo-viewer::backdrop { background:#111d; }
.photo-viewer img { display:block; max-width:100%; max-height:72vh; object-fit:contain; margin-top:.7rem; }
.page-title::after { content:""; display:block; width:2.7rem; height:2px; margin-top:.55rem; background:#bd832f; transform-origin:left; }
@media (prefers-reduced-motion:no-preference) {
  .scroll-motion .page-title[data-reveal]::after { transform:scaleX(0); transition:transform .45s ease; }
  .scroll-motion .page-title.reveal-in::after { transform:scaleX(1); }
  .scroll-motion figure[data-reveal] { transform:none; }
  .floating-call .call-icon { animation:gold-ring 4s ease-out 3; }
}
@keyframes gold-ring { 0%,72%,100% { box-shadow:0 0 0 0 #f4bf6700; } 79% { box-shadow:0 0 0 3px #f4bf6777; } 94% { box-shadow:0 0 0 10px #f4bf6700; } }
@media (max-width:760px) {
  .work-gallery,.public-page .site-footer,.quote-layout { grid-template-columns:1fr; }
  .quote-layout .quote-form { width:100%; grid-row:1; }
  .floating-call.button { padding:.36rem .55rem; }
  .floating-call strong { font-size:.82rem; }
  .floating-call small { display:none; }
}
@media (prefers-reduced-motion:reduce) { .site-header,.site-header .logo,.button { transition:none; } }
@media (min-width:761px) {
  .site-header.header-compact { min-height:56px; padding-block:.35rem; }
}
.public-page .site-footer { gap:1.25rem; }
html { scroll-padding-top:7rem; }

/* Fekete–sötétzöld felületek és jól elkülönülő műveletek. */
:root {
  --mont-green-gradient: linear-gradient(135deg, #050807 12%, #0c1a14 54%, #133525 100%);
  --night: #0c1a14;
  --button-bg: #a9e9ba;
  --button-fg: #12251b;
  --button-hover: #c5f4d0;
  --button-focus: #347a51;
}
body { background: var(--mont-green-gradient); }
main { background: var(--mont-green-gradient); color: #edf7ef; }
main .band, main .contact, main .vbf-check { background: #12291e; color: #edf7ef; }
main .content-card, main .services article, main .feature-split > div { background: #142a1f; color: #edf7ef; border-color: #42634f; }
main .brand-card { background: var(--mont-green-gradient); border-color: #42634f; }
main .services p { color: #c7ddce; }
main .text-link { color: #b8edc8; }
main .privacy-confirm { background: #1b3527; border-color: #537a62; }
main .form-message:not(.form-error) { color: #123421; }
main .button--outline { --button-fg: #e6faec; --button-hover: #254b36; border-color: #83cc99; }
main .button--hero-outline { --button-bg: #132a1e; --button-hover: #254b36; border-color: #83cc99; }
.site-header, footer.site-footer { background: linear-gradient(90deg,#080d0a,#142f22); color: #edf7ef; border-color: #355947; }
.site-header .logo, .site-footer .logo { background: #fff; padding: .3rem; border-radius: .4rem; }
.site-header .button--outline { --button-fg: #edf7ef; --button-hover: #254b36; }
.site-header .header-quote { border-color: #83cc99; }
.site-header nav > a[aria-current="page"] { color: #e6faec; box-shadow: inset 0 -2px #83cc99; }

.hero, .design-references, .enterprise-home, .service-close, .enterprise-intro { background: var(--mont-green-gradient); }
.page-banner { background-image: linear-gradient(100deg,#050807f5,#133525b5), var(--banner-image); }
.brand-banner { --banner-image: var(--mont-green-gradient); }
.button--outline { --button-bg: transparent; --button-hover: #e4f3e9; border-color: #4b765b; }
.hero .button--outline, .design-references .button--outline, .enterprise-home .button--outline,
.service-close .button--outline, .enterprise-intro .button--outline {
  --button-fg: #e6faec;
  --button-hover: #254b36;
  color: var(--button-fg);
  border-color: #83cc99;
}
.button--outline:hover { border-color: #6da983; }
.hero :focus-visible, .design-references :focus-visible, .enterprise-home :focus-visible,
.service-close :focus-visible, .enterprise-intro :focus-visible { outline-color: #a9e9ba; }
.site-header nav > a:hover { background: #254b36; }
.site-header nav > a[aria-current="page"] { background: #254b36; }
.floating-call.button { background: #153a27; color: #f2fff5; border-color: #83cc99; }
.floating-call.button:hover { background: #245239; }

.cookie-panel .button--outline { --button-fg: var(--ink); --button-hover: #e4f3e9; }

/* A sütibeállítások a nyilvános sötét témát követik. */
.cookie-panel {
  background: #12291e;
  color: #edf7ef;
  border-color: #5a8769;
  box-shadow: 0 14px 48px #0009;
}
.cookie-panel .cookie-copy p, .cookie-panel .cookie-option small { color: #c7ddce; }
.cookie-panel .cookie-option { background: #1b3527; border-color: #4c755c; }
.cookie-panel .button--outline {
  --button-fg: #edf7ef;
  --button-hover: #254b36;
  color: #edf7ef;
  border-color: #83cc99;
}
.cookie-panel :focus-visible { outline-color: #a9e9ba; }

/* Transparent brand marks on the public homepage. */
.home-transparent-logos .site-header .logo,
.home-transparent-logos .site-footer img[alt="Montensioné"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
}

/* Shared transparent logo on every public page. */
.site-header img[alt="Montensioné"], .site-footer img[alt="Montensioné"] {
 background: transparent; padding: 0; border-radius: 0; object-fit: contain;
 content: url("/assets/montensione-logo-vizjel.png");
}

/* Detailed reference cards */
.project-names { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; padding:0; list-style:none; }
.project-names li { display:grid; gap:.4rem; padding:1rem; border:1px solid #ffffff25; border-radius:.7rem; background:#ffffff08; }
.project-names strong { color:#f4bf67; font-size:1.05rem; }
.project-names span { color:#efe3ce; line-height:1.5; }
@media (max-width:800px){ .project-names { grid-template-columns:1fr; } }
