:root {
  --navy: #F4F5F6;       /* titluri, pe fundal închis */
  --navy-deep: #FFFFFF;
  --red: #E30613;        /* roșul mărcii KEMFORT */
  --red-deep: #B8000E;
  --steel: #9AA0A6;
  --line: #33373C;
  --bg: #0B0C0D;
  --bg-tint: #141618;
  --ink: #ECEDEE;
  --ink-soft: #B3B8BD;
  --signal: #E30613;
  --on-navy: #ECEDEE;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #F2F3F4; --navy-deep: #FFFFFF; --steel: #9AA0A6; --line: #33383E;
    --bg: #17191C; --bg-tint: #1E2125; --ink: #ECEDEE; --ink-soft: #AEB3B8;
    --on-navy: #E8EEF4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #F2F3F4; --navy-deep: #FFFFFF; --steel: #9AA0A6; --line: #33383E;
  --bg: #17191C; --bg-tint: #1E2125; --ink: #ECEDEE; --ink-soft: #AEB3B8;
  --on-navy: #E8EEF4; color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(106px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* --- antet --- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 100px; }
@media (max-width: 720px) { .topbar__in { height: 86px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
.brand .brand__logo { height: 66px; width: auto; }
@media (max-width: 720px) { .brand .brand__logo { height: 54px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.navtoggle { display: none; }

/* --- butoane --- */
.btn { display: inline-block; padding: 14px 26px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 2px solid var(--red); border-radius: 2px; transition: background .15s; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--navy); }
.btn--small { padding: 9px 16px; font-size: 14px; color: #fff !important; }
.btn--light { background: var(--red); border-color: var(--red); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--red); }

/* --- hero --- */
.hero { padding: 72px 0 0; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
h1 { font-stretch: 75%; font-weight: 700; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 24px; color: var(--navy); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.frame { width: 100%; height: auto; overflow: visible; }


.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.facts p { margin: 0; padding: 22px 24px 26px 0; font-size: 15px; color: var(--ink-soft); }
.facts p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-size: 17px; }

/* --- secțiuni --- */
.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.h2 { font-stretch: 75%; font-weight: 700; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; margin: 0 0 16px; color: var(--navy); }
.intro { color: var(--ink-soft); max-width: 36em; margin: 0 0 48px; font-size: 18px; }

.services { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--navy); }
.service { padding: 24px 20px 8px 0; }
.service__n { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--red); }
.service + .service { padding-left: 20px; border-left: 1px solid var(--line); }
.service h3 { font-size: 20px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; font-stretch: 85%; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-soft); }


/* --- portofoliu --- */
.portfolio__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.portfolio__head .h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; border-radius: 2px; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { position: relative; margin: 0; cursor: pointer; background: var(--bg-tint); border: 0; padding: 0; text-align: left; font: inherit; color: inherit; display: block; }
.work:first-child { grid-column: span 2; grid-row: span 2; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.work:first-child .work__img { aspect-ratio: auto; height: calc(100% - 92px); min-height: 320px; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work__img img { transform: scale(1.03); }
.work__meta { padding: 14px 16px 16px; background: var(--bg); border: 1px solid var(--line); border-top: 0; }
.work__meta h3 { margin: 0 0 4px; font-size: 17px; }
.work__meta p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.work__count { position: absolute; top: 12px; right: 12px; background: rgba(31,35,40,.85); color: #fff; font-size: 13px; padding: 4px 10px; }
.empty { color: var(--ink-soft); }
/* --- calitate --- */
.quality { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.docs { margin: 0; border-top: 3px solid var(--navy); }
.docs div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.docs dt { font-weight: 600; }
.docs dd { margin: 0; color: var(--ink-soft); }

/* --- contact --- */
.contact { background: #1F2328; color: var(--on-navy); padding: 96px 0; border-top: 6px solid var(--red); }
.contact .h2 { color: #fff; }
.contact .lead { color: #B8BCC1; }
.contact__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.contact__data { margin: 0; }
.contact__data div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact__data dt { color: #9AA0A6; font-size: 15px; }
.contact__data dd { margin: 0; font-size: 18px; }
.contact__data a { text-decoration: none; }
.contact__data a:hover { text-decoration: underline; }

.footer { background: #121417; color: #AEB3B8; font-size: 14px; padding: 40px 0; }
.footer__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 26px; }
.footer__brand p { margin: 0; line-height: 1.5; }
.footer__logo { height: 88px; width: auto; display: block; }
.footer__name { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 2px !important; }
.footer__legal { text-align: right; color: #8A9096; font-size: 13px; }
.footer__legal p { margin: 2px 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.footer__links a { color: #C9CDD1; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.all-works { margin: 28px 0 0; text-align: center; }
.all-works a { color: var(--ink-soft); text-decoration-color: var(--red); text-underline-offset: 5px; }
.all-works a:hover { color: #fff; }
@media (max-width: 720px) { .footer__legal { text-align: left; } }

/* --- lightbox --- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12,13,15,.94); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 80vh; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: #DCE4EC; font-size: 15px; text-align: center; max-width: 60ch; }
.lightbox .lb__exec { display: block; margin-top: 4px; font-size: 13px; color: #9AA6B2; }
.lb__nav, .lb__close { background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; line-height: 1; }
.lb__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 20px; font-size: 36px; }

/* --- responsive --- */
@media (max-width: 1000px) {
  .hero__in, .quality, .contact__in { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .service:nth-child(odd) { padding-left: 0; border-left: 0; }
      .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .navtoggle { display: block; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); padding: 8px 14px; color: var(--ink); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .hero { padding-top: 40px; }
  .facts { grid-template-columns: 1fr; }
  .facts p, .facts p + p { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts p:first-child { border-top: 0; }
  .section { padding: 72px 0; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 24px 0 8px; border-left: 0; }
          .grid { grid-template-columns: 1fr; }
  .work:first-child { grid-column: auto; grid-row: auto; }
  .work:first-child .work__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .docs div { grid-template-columns: 1fr; gap: 4px; }
  .contact__data div { grid-template-columns: 1fr; gap: 2px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
}


/* ===== Direcția Grafit: antet și prima secțiune pe fundal închis ===== */
.topbar { background: #0E0F10; border-top: 5px solid var(--red); border-bottom: 1px solid #26292D; backdrop-filter: none; }
.topbar .nav a:not(.btn) { color: #E4E6E8; }
.topbar .nav a:not(.btn):hover { color: #fff; text-decoration-color: var(--red); }
.topbar .navtoggle { color: #fff; border-color: #3A3E43; }
body::before { background: var(--red); }
@media (max-width: 720px) { .topbar .nav { background: #0E0F10; top: 91px; border-bottom-color: #26292D; } .topbar .nav a { border-bottom-color: #26292D; } }

.hero { position: relative; overflow: hidden; background: transparent; border-bottom: 0; color: #ECEDEE; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
/* umbră peste zona textului, ca titlul să rămână perfect lizibil */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,12,13,.94) 0%, rgba(11,12,13,.82) 34%, rgba(11,12,13,.30) 62%, rgba(11,12,13,.15) 100%),
              linear-gradient(0deg, rgba(11,12,13,.95) 0%, rgba(11,12,13,0) 30%); }
.hero h1 { color: #fff; font-stretch: 62%; font-weight: 800; font-size: clamp(48px, 7vw, 96px); line-height: .95; }
.hero .lead { color: #C3C7CB; }
.hero .btn--ghost { background: rgba(11,12,13,.4); border-color: #7A8086; color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.1); }
.facts { border-top-color: rgba(255,255,255,.14); } .facts p { color: #A9AEB3; } .facts p + p { border-left-color: rgba(255,255,255,.14); } .facts strong { color: #fff; }
@media (max-width: 720px) { .hero::after { background: linear-gradient(180deg, rgba(11,12,13,.80) 0%, rgba(11,12,13,.70) 55%, rgba(11,12,13,.45) 75%, rgba(11,12,13,.95) 100%); } }
@media (max-width: 720px) { .facts p, .facts p + p { border-top-color: rgba(255,255,255,.14); } }

.h2 { font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 5vw, 64px); }
.h2::after { content: ""; display: block; width: 56px; height: 6px; background: var(--red); margin-top: 14px; }
.contact .h2::after { background: #fff; }
.portfolio__head .h2::after { margin-bottom: 0; }

/* ===== Desen axonometric din modelul IFC ===== */
.hero__drawing { margin: 0 -6% 0 0; position: relative; }
.hero__drawing::before { content: ""; position: absolute; inset: -12% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11,12,13,.88) 0%, rgba(11,12,13,.7) 55%, rgba(11,12,13,0) 100%); }
.frame { width: 100%; height: auto; display: block; overflow: visible; }
.frame .grid line { stroke: rgba(255,255,255,.28); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 9 3 2 3; }
.frame .bubble circle { fill: #0B0C0D; stroke: rgba(255,255,255,.45); stroke-width: .8; }
.frame .bubble text { font-family: var(--font); font-size: 11px; font-weight: 600; fill: #C3C7CB; text-anchor: middle; }
.frame .model path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s cubic-bezier(.5,.1,.3,1) forwards; animation-delay: var(--d); }
.frame .col { stroke: #FFFFFF; stroke-width: 2px; }   /* stâlpi de fațadă (fronton) */
.frame .webp { stroke: #FF2A35; stroke-width: 1px; fill: #FF2A35; fill-opacity: 0; }   /* cadre sudate: inimi și tălpi (contur real) */
.frame .model .webp { animation: draw .9s cubic-bezier(.5,.1,.3,1) forwards, fillin .6s ease-out forwards; animation-delay: var(--d), calc(var(--d) + .6s); }
.frame .fl { stroke: #FF2A35; stroke-width: 2px; }      /* cadre sudate: tălpi înguste */
@keyframes fillin { to { fill-opacity: .28; } }
.frame .chd { stroke: #F2F3F4; stroke-width: 1.7px; }   /* ferme: tălpi și montanți */
.frame .web { stroke: #FFFFFF; stroke-width: 1.3px; }   /* ferme: diagonale */
.frame .sec { stroke: #C9CDD1; stroke-width: 1.1px; }   /* pane */
.frame .brc { stroke: #3D9BFF; stroke-width: 1.5px; }   /* contravântuiri */
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .frame .model path { animation: none; stroke-dashoffset: 0; } .frame .model .webp { fill-opacity: .28; } html { scroll-behavior: auto; } }
@media (max-width: 1000px) { .hero__drawing { margin: 0 -24px; } }

/* ===== Tabla perforată pe toată pagina ===== */
body { background: #0B0C0D; }
.page-plate { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0B0C0D; }
.page-plate__sheet { position: absolute; left: -30%; right: -30%; top: -80px; height: 1700px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2748.00%27%20height%3D%2727.71%27%3E%3Cpath%20d%3D%27M11.20%2C0.00%20L5.60%2C9.70%20L-5.60%2C9.70%20L-11.20%2C0.00%20L-5.60%2C-9.70%20L5.60%2C-9.70Z%20M59.20%2C0.00%20L53.60%2C9.70%20L42.40%2C9.70%20L36.80%2C0.00%20L42.40%2C-9.70%20L53.60%2C-9.70Z%20M11.20%2C27.71%20L5.60%2C37.41%20L-5.60%2C37.41%20L-11.20%2C27.71%20L-5.60%2C18.01%20L5.60%2C18.01Z%20M59.20%2C27.71%20L53.60%2C37.41%20L42.40%2C37.41%20L36.80%2C27.71%20L42.40%2C18.01%20L53.60%2C18.01Z%20M35.20%2C13.86%20L29.60%2C23.56%20L18.40%2C23.56%20L12.80%2C13.86%20L18.40%2C4.16%20L29.60%2C4.16Z%27%20fill%3D%27%23050506%27/%3E%3C/svg%3E"),
    radial-gradient(ellipse 48% 36% at 72% 16%, #9BA0A5 0%, #63686D 24%, #33363A 50%, #18191B 74%, #0E0F10 100%);
  background-size: 48.00px 27.71px, 100% 100%;
  transform: perspective(2400px) rotateX(40deg) rotateZ(-8deg); transform-origin: 50% 0%; }
/* voalul secțiunilor: tabla se vede, textul rămâne lizibil */
.section { background: rgba(11,12,13,.80); }
.section--tint { background: rgba(20,22,24,.86); }
.contact { background: rgba(18,19,21,.90); }
.footer { background: rgba(8,9,10,.94); }
.services { border-top-color: var(--red); }
.docs { border-top-color: var(--red); }
.work { background: #141618; }
.work__img { background: #1B1E21; }
.work__meta { background: #111214; border-color: var(--line); }
.filters button { background: transparent; color: var(--ink); border-color: #41464C; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { color: #fff; border-color: #7A8086; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 720px) { .page-plate__sheet { left: -80%; right: -80%; height: 1500px; }  }

/* ===== Servicii: 5 domenii + Atelier ===== */
@media (max-width: 1200px) and (min-width: 1001px) {
  .services { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .service:nth-child(4) { padding-left: 0; border-left: 0; }
}

/* ===== Dotări atelier, pe grupe ===== */
.atelier { margin-top: 64px; }
.atelier__head { display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 3px solid var(--red); }
.atelier__title { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; font-stretch: 85%; }
.atelier__intro { margin: 0; color: var(--ink-soft); font-size: 15px; }
.atelier__groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.dotare { background: rgba(255,255,255,.035); border: 1px solid #2B2F34; padding: 20px 20px 16px; }
.dotare h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #FF2A35; }
.dotare ul { list-style: none; margin: 0; padding: 0; }
.dotare li { position: relative; padding: 5px 0 5px 16px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.dotare li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; background: var(--red); }
@media (max-width: 1000px) { .atelier__groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .atelier__groups { grid-template-columns: 1fr; } }

/* ===== Calitate: coloana din stânga ===== */
.quality__exc { color: var(--ink); font-size: 17px; line-height: 1.55; margin: -24px 0 28px; max-width: 30em; }
.quality__exc strong { color: #fff; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 440px; }
.badges li { border: 1px solid #3A3F45; border-left: 3px solid var(--red); background: rgba(255,255,255,.035); padding: 12px 14px; font-weight: 700; font-size: 14px; letter-spacing: .02em; color: #fff; }
.docs div { padding: 14px 0; }
@media (max-width: 720px) { .quality__exc { margin-top: -12px; } }

/* ===== Componentele grupului ===== */
.grup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.firma { display: flex; flex-direction: column; background: #111214; border: 1px solid #2B2F34; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.firma:hover { border-color: var(--red); transform: translateY(-2px); }
.firma__logo { background: #fff; height: 150px; display: grid; place-items: center; padding: 18px 20px; border-bottom: 3px solid var(--red); }
.firma__logo img { max-width: 78%; max-height: 74px; width: auto; height: auto; }
.firma__logo--sq img { max-height: 124px; max-width: 124px; }
.firma__ph { font-weight: 800; font-stretch: 75%; font-size: 26px; letter-spacing: .02em; color: #1F2328; }
.firma__txt { padding: 16px 18px 18px; flex: 1; }
.firma__txt h3 { margin: 0 0 6px; font-size: 17px; }
.firma__txt p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.firma__txt .firma__loc { margin-top: 6px; color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.firma__go { padding: 0 18px 16px; font-size: 13px; font-weight: 600; color: #FF2A35; }
@media (max-width: 1000px) { .grup { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grup { gap: 12px; } .firma__logo { height: 110px; } .firma__logo--sq img { max-height: 92px; } }
@media (max-width: 420px) { .grup { grid-template-columns: 1fr; } }

/* ---- portofoliu: titlu peste poză, etichete, colaj Uzinare/Montaje, „Afișează mai multe” ---- */

/* 4. număr în filtre */
.filters button small { font-size: 12px; opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] small { opacity: .85; }

/* 2. titlul peste poză, pe gradient */
.work { overflow: hidden; background: #141618; }
.work__img, .work:first-child .work__img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
.work:first-child .work__img { aspect-ratio: auto; height: 100%; min-height: 420px; }
.work__img img { filter: brightness(.88); transition: transform .5s, filter .3s; }
.work__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 18px 16px; border: 0;
  background: linear-gradient(to top, rgba(8,9,10,.92) 0%, rgba(8,9,10,.6) 55%, rgba(8,9,10,0) 100%);
}
.work__meta h3 { color: #fff; font-size: 18px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.work__meta p { color: #C9CDD1; font-size: 14px; }
.work:first-child .work__meta { padding: 90px 28px 26px; }
.work:first-child .work__meta h3 { font-size: 28px; font-stretch: 75%; }

/* 3. anul și tonajul ca etichete */
.work__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.work__tags span { background: rgba(11,12,13,.82); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; letter-spacing: .02em; }
.work__tags span:first-child { background: var(--red); }
.work__count { background: rgba(11,12,13,.82); font-size: 12px; }

/* 6. efect la mouse: poza se luminează, linie roșie jos */
.work::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.work:hover::after, .work:focus-visible::after { transform: scaleX(1); }
.work:hover .work__img img { filter: brightness(1.05); transform: scale(1.04); }

/* 5. Uzinare și Montaje: colaj de 4 poze + chenar roșu */
.work--galerie { outline: 1px solid var(--red); outline-offset: -1px; }
.work__mozaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #0B0C0D; }
.work__mozaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.work--galerie .work__meta h3 { font-size: 22px; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; }
.work--galerie .work__meta h3::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red); vertical-align: middle; margin-right: 10px; }

/* 1. Afișează mai multe */
.more { display: flex; justify-content: center; margin-top: 32px; }
.more[hidden] { display: none; }
.more__btn { min-width: 260px; text-align: center; cursor: pointer; font: inherit; font-weight: 600; }

@media (max-width: 600px) {
  .work:first-child .work__img { min-height: 0; aspect-ratio: 4 / 3; }
  .work:first-child .work__meta { padding: 56px 18px 16px; }
  .work:first-child .work__meta h3 { font-size: 20px; }
  .filters button { padding: 7px 12px; font-size: 13px; }
}

/* ---- KEMFORT GROUP: ordine după flux, rol numerotat, casete logo mai joase, linie roșie la hover ---- */

.firma { position: relative; overflow: hidden; }

/* 1. casete de logo mai joase, alb mai cald */
.firma__logo { height: 118px; background: #ECEEF0; padding: 14px 20px; border-bottom: 0; }
.firma__logo img { max-height: 60px; transition: transform .35s, filter .35s; }
.firma__logo--sq img { max-height: 96px; max-width: 96px; }

/* 2. eticheta cu rolul, numerotată după fluxul lucrării (3) */
.firma__txt .firma__rol { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FF2A35; }
.firma__rol span { color: #6D747B; font-variant-numeric: tabular-nums; }
.firma__rol span::after { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--red); vertical-align: middle; margin-left: 8px; }

/* 4. orașul la toate */
.firma__txt .firma__loc { margin-top: 10px; }

/* 5. efect la mouse: logo mărit, linie roșie jos */
.firma::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
a.firma:hover { transform: none; border-color: #3A3F45; }
a.firma:hover::after, a.firma:focus-visible::after { transform: scaleX(1); }
a.firma:hover .firma__logo img { transform: scale(1.06); }
.firma__logo { position: relative; }
.firma__logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }

@media (max-width: 720px) { .firma__logo { height: 96px; } .firma__logo img { max-height: 48px; } .firma__logo--sq img { max-height: 78px; } }

/* Cursor „pistol de sudură” + punct de sudură la click – doar pe calculator (mouse) */
.sudura__cv { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147483000; }
@media (hover: hover) and (pointer: fine) {
  html.sudura, html.sudura * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 104 104'%3E%3Cdefs%3E%3ClinearGradient id='cu' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F6C29A'/%3E%3Cstop offset='.3' stop-color='%23E08A52'/%3E%3Cstop offset='.7' stop-color='%23B85A2A'/%3E%3Cstop offset='1' stop-color='%237E3416'/%3E%3C/linearGradient%3E%3ClinearGradient id='br' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FBE7A0'/%3E%3Cstop offset='.45' stop-color='%23D9AE45'/%3E%3Cstop offset='1' stop-color='%238F6A1E'/%3E%3C/linearGradient%3E%3ClinearGradient id='rd' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF4A50'/%3E%3Cstop offset='.5' stop-color='%23E30613'/%3E%3Cstop offset='1' stop-color='%239E0410'/%3E%3C/linearGradient%3E%3CradialGradient id='ar'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23FFE29A'/%3E%3Cstop offset='1' stop-color='%23FF8A1F' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate%284 0%29'%3E%3Cpath d='M37 12H48Q64 12 71 33' fill='none' stroke='%238A6420' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M37 12H48Q64 12 71 33' fill='none' stroke='%23D6A93E' stroke-width='7.6'/%3E%3Cpath d='M37 9.6H48Q61.6 9.6 68.2 27.5' fill='none' stroke='%23FBE7A0' stroke-width='2' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M4 6.5L30 5V19L4 17.5Z' fill='url%28%23cu%29' stroke='%235A240E' stroke-width='.8'/%3E%3Cpath d='M8 7.6L29 6.6' stroke='%23FFE3CC' stroke-width='1.2' opacity='.8'/%3E%3Cellipse cx='4' cy='12' rx='2.2' ry='5.5' fill='%236E2C12' stroke='%23E39A66' stroke-width='.8'/%3E%3Ccircle cx='3.6' cy='12' r='1.3' fill='%23F2B07C'/%3E%3Crect x='30' y='4' width='5' height='16' rx='1' fill='%23141414' stroke='%237A8086' stroke-width='.8'/%3E%3Crect x='35' y='6' width='3.5' height='12' fill='url%28%23br%29' stroke='%237A5A18' stroke-width='.6'/%3E%3Cg transform='translate%2870 32%29 rotate%2868%29'%3E%3Cpath d='M-2 -6Q2 -10 12 -9.5L50 -8V8L15 9.5Q11 9.5 6 8L-2 6Z' fill='url%28%23rd%29' stroke='%236E020A' stroke-width='.8'/%3E%3Cpath d='M10 -9.4L22 -8.9L21 -4.2Q15 -3.6 10 -5Z' fill='%231C1C1C'/%3E%3Cpath d='M22 8.9L48 8.1V3.4Q35 2 22 4Z' fill='%231C1C1C'/%3E%3Cpath d='M7 8L9 15Q10 17 13 16L17 9.3Z' fill='%231A1A1A' stroke='%237A8086' stroke-width='.7'/%3E%3Crect x='50' y='-9' width='5' height='18' rx='1.5' fill='%23C8050F' stroke='%236E020A' stroke-width='.8'/%3E%3Crect x='55' y='-5.5' width='9' height='11' fill='%23111' stroke='%237A8086' stroke-width='.8'/%3E%3Cpath d='M57.5 -5.5V5.5M60 -5.5V5.5M62.5 -5.5V5.5' stroke='%234A4F55' stroke-width='.9'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 3 6, crosshair !important;
  }
  /* pe linkuri și butoane: același pistol, cu arcul aprins la vârf */
  html.sudura a, html.sudura a *, html.sudura button, html.sudura button *, html.sudura [role="button"], html.sudura .work, html.sudura .work *, html.sudura label, html.sudura select, html.sudura summary {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 104 104'%3E%3Cdefs%3E%3ClinearGradient id='cu' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F6C29A'/%3E%3Cstop offset='.3' stop-color='%23E08A52'/%3E%3Cstop offset='.7' stop-color='%23B85A2A'/%3E%3Cstop offset='1' stop-color='%237E3416'/%3E%3C/linearGradient%3E%3ClinearGradient id='br' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FBE7A0'/%3E%3Cstop offset='.45' stop-color='%23D9AE45'/%3E%3Cstop offset='1' stop-color='%238F6A1E'/%3E%3C/linearGradient%3E%3ClinearGradient id='rd' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF4A50'/%3E%3Cstop offset='.5' stop-color='%23E30613'/%3E%3Cstop offset='1' stop-color='%239E0410'/%3E%3C/linearGradient%3E%3CradialGradient id='ar'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.3' stop-color='%23FFE29A'/%3E%3Cstop offset='1' stop-color='%23FF8A1F' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg transform='translate%284 0%29'%3E%3Cpath d='M37 12H48Q64 12 71 33' fill='none' stroke='%238A6420' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M37 12H48Q64 12 71 33' fill='none' stroke='%23D6A93E' stroke-width='7.6'/%3E%3Cpath d='M37 9.6H48Q61.6 9.6 68.2 27.5' fill='none' stroke='%23FBE7A0' stroke-width='2' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M4 6.5L30 5V19L4 17.5Z' fill='url%28%23cu%29' stroke='%235A240E' stroke-width='.8'/%3E%3Cpath d='M8 7.6L29 6.6' stroke='%23FFE3CC' stroke-width='1.2' opacity='.8'/%3E%3Cellipse cx='4' cy='12' rx='2.2' ry='5.5' fill='%236E2C12' stroke='%23E39A66' stroke-width='.8'/%3E%3Ccircle cx='3.6' cy='12' r='1.3' fill='%23F2B07C'/%3E%3Crect x='30' y='4' width='5' height='16' rx='1' fill='%23141414' stroke='%237A8086' stroke-width='.8'/%3E%3Crect x='35' y='6' width='3.5' height='12' fill='url%28%23br%29' stroke='%237A5A18' stroke-width='.6'/%3E%3Cg transform='translate%2870 32%29 rotate%2868%29'%3E%3Cpath d='M-2 -6Q2 -10 12 -9.5L50 -8V8L15 9.5Q11 9.5 6 8L-2 6Z' fill='url%28%23rd%29' stroke='%236E020A' stroke-width='.8'/%3E%3Cpath d='M10 -9.4L22 -8.9L21 -4.2Q15 -3.6 10 -5Z' fill='%231C1C1C'/%3E%3Cpath d='M22 8.9L48 8.1V3.4Q35 2 22 4Z' fill='%231C1C1C'/%3E%3Cpath d='M7 8L9 15Q10 17 13 16L17 9.3Z' fill='%231A1A1A' stroke='%237A8086' stroke-width='.7'/%3E%3Crect x='50' y='-9' width='5' height='18' rx='1.5' fill='%23C8050F' stroke='%236E020A' stroke-width='.8'/%3E%3Crect x='55' y='-5.5' width='9' height='11' fill='%23111' stroke='%237A8086' stroke-width='.8'/%3E%3Cpath d='M57.5 -5.5V5.5M60 -5.5V5.5M62.5 -5.5V5.5' stroke='%234A4F55' stroke-width='.9'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='5' cy='12' r='6.5' fill='url%28%23ar%29'/%3E%3Cpath d='M5 12L1 6M5 12L1.5 18.5M5 12L.5 12' stroke='%23FF9A2E' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 3 6, pointer !important;
  }
  html.sudura input, html.sudura textarea { cursor: text !important; }
}
